Google Cloud Billing V1 Client - Class AggregationInfo (1.6.0)

Reference documentation and code samples for the Google Cloud Billing V1 Client class AggregationInfo.

Represents the aggregation level and interval for pricing of a single SKU.

Generated from protobuf message google.cloud.billing.v1.AggregationInfo

Namespace

Google \ Cloud \ Billing \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ aggregation_level int
↳ aggregation_interval int
↳ aggregation_count int

The number of intervals to aggregate over. Example: If aggregation_level is "DAILY" and aggregation_count is 14, aggregation will be over 14 days.

getAggregationLevel

Generated from protobuf field .google.cloud.billing.v1.AggregationInfo.AggregationLevel aggregation_level = 1;

Returns
TypeDescription
int

setAggregationLevel

Generated from protobuf field .google.cloud.billing.v1.AggregationInfo.AggregationLevel aggregation_level = 1;

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getAggregationInterval

Generated from protobuf field .google.cloud.billing.v1.AggregationInfo.AggregationInterval aggregation_interval = 2;

Returns
TypeDescription
int

setAggregationInterval

Generated from protobuf field .google.cloud.billing.v1.AggregationInfo.AggregationInterval aggregation_interval = 2;

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getAggregationCount

The number of intervals to aggregate over.

Example: If aggregation_level is "DAILY" and aggregation_count is 14, aggregation will be over 14 days.

Returns
TypeDescription
int

setAggregationCount

The number of intervals to aggregate over.

Example: If aggregation_level is "DAILY" and aggregation_count is 14, aggregation will be over 14 days.

Parameter
NameDescription
var int
Returns
TypeDescription
$this