class Billing extends Message

Billing related configuration of the service.

The following example shows how to configure monitored resources and metrics for billing: monitored_resources: - type: library.googleapis.com/branch labels: - key: /city description: The city where the library branch is located in. - key: /name description: The name of the branch. metrics: - name: library.googleapis.com/book/borrowed_count metric_kind: DELTA value_type: INT64 billing: consumer_destinations: - monitored_resource: library.googleapis.com/branch metrics: - library.googleapis.com/book/borrowed_count

Generated from protobuf message google.api.Billing

Methods

__construct(array $data = NULL)

Constructor.

RepeatedField
getConsumerDestinations()

Billing configurations for sending metrics to the consumer project.

$this
setConsumerDestinations(BillingDestination[]|RepeatedField $var)

Billing configurations for sending metrics to the consumer project.

Details

at line 59
__construct(array $data = NULL)

Constructor.

Parameters

array $data { Optional. Data for populating the Message object.

@type \Google\Api\Billing\BillingDestination[]|\Google\Protobuf\Internal\RepeatedField $consumer_destinations
      Billing configurations for sending metrics to the consumer project.
      There can be multiple consumer destinations per service, each one must have
      a different monitored resource type. A metric can be used in at most
      one consumer destination.

}

at line 73
RepeatedField getConsumerDestinations()

Billing configurations for sending metrics to the consumer project.

There can be multiple consumer destinations per service, each one must have a different monitored resource type. A metric can be used in at most one consumer destination.

Generated from protobuf field repeated .google.api.Billing.BillingDestination consumer_destinations = 8;

Return Value

RepeatedField

at line 88
$this setConsumerDestinations(BillingDestination[]|RepeatedField $var)

Billing configurations for sending metrics to the consumer project.

There can be multiple consumer destinations per service, each one must have a different monitored resource type. A metric can be used in at most one consumer destination.

Generated from protobuf field repeated .google.api.Billing.BillingDestination consumer_destinations = 8;

Parameters

BillingDestination[]|RepeatedField $var

Return Value

$this