class BillingDestination extends Message

Configuration of a specific billing destination (Currently only support bill against consumer project).

Generated from protobuf message google.api.Billing.BillingDestination

Methods

__construct(array $data = NULL)

Constructor.

string
getMonitoredResource()

The monitored resource type. The type must be defined in [Service.monitored_resources][google.api.Service.monitored_resources] section.

$this
setMonitoredResource(string $var)

The monitored resource type. The type must be defined in [Service.monitored_resources][google.api.Service.monitored_resources] section.

RepeatedField
getMetrics()

Names of the metrics to report to this billing destination.

$this
setMetrics(string[]|RepeatedField $var)

Names of the metrics to report to this billing destination.

Details

at line 48
__construct(array $data = NULL)

Constructor.

Parameters

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

@type string $monitored_resource
      The monitored resource type. The type must be defined in
      [Service.monitored_resources][google.api.Service.monitored_resources] section.
@type string[]|\Google\Protobuf\Internal\RepeatedField $metrics
      Names of the metrics to report to this billing destination.
      Each name must be defined in [Service.metrics][google.api.Service.metrics] section.

}

at line 60
string getMonitoredResource()

The monitored resource type. The type must be defined in [Service.monitored_resources][google.api.Service.monitored_resources] section.

Generated from protobuf field string monitored_resource = 1;

Return Value

string

at line 73
$this setMonitoredResource(string $var)

The monitored resource type. The type must be defined in [Service.monitored_resources][google.api.Service.monitored_resources] section.

Generated from protobuf field string monitored_resource = 1;

Parameters

string $var

Return Value

$this

at line 88
RepeatedField getMetrics()

Names of the metrics to report to this billing destination.

Each name must be defined in [Service.metrics][google.api.Service.metrics] section.

Generated from protobuf field repeated string metrics = 2;

Return Value

RepeatedField

at line 101
$this setMetrics(string[]|RepeatedField $var)

Names of the metrics to report to this billing destination.

Each name must be defined in [Service.metrics][google.api.Service.metrics] section.

Generated from protobuf field repeated string metrics = 2;

Parameters

string[]|RepeatedField $var

Return Value

$this