Google API Common Protos Client - Class BillingDestination (4.8.1)

Reference documentation and code samples for the Google API Common Protos Client class BillingDestination.

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

Generated from protobuf message google.api.Billing.BillingDestination

Namespace

Google \ Api \ Billing

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ monitored_resource string

The monitored resource type. The type must be defined in Service.monitored_resources section.

↳ metrics array

Names of the metrics to report to this billing destination. Each name must be defined in Service.metrics section.

getMonitoredResource

The monitored resource type. The type must be defined in Service.monitored_resources section.

Returns
Type Description
string

setMonitoredResource

The monitored resource type. The type must be defined in Service.monitored_resources section.

Parameter
Name Description
var string
Returns
Type Description
$this

getMetrics

Names of the metrics to report to this billing destination.

Each name must be defined in Service.metrics section.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setMetrics

Names of the metrics to report to this billing destination.

Each name must be defined in Service.metrics section.

Parameter
Name Description
var string[]
Returns
Type Description
$this