Cloud AutoML V1beta1 Client - Class GranularStats (1.4.17)

Reference documentation and code samples for the Cloud AutoML V1beta1 Client class GranularStats.

Stats split by a defined in context granularity.

Generated from protobuf message google.cloud.automl.v1beta1.TimestampStats.GranularStats

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ buckets array|Google\Protobuf\Internal\MapField

A map from granularity key to example count for that key. E.g. for hour_of_day 13 means 1pm, or for month_of_year 5 means May).

getBuckets

A map from granularity key to example count for that key.

E.g. for hour_of_day 13 means 1pm, or for month_of_year 5 means May).

Returns
TypeDescription
Google\Protobuf\Internal\MapField

setBuckets

A map from granularity key to example count for that key.

E.g. for hour_of_day 13 means 1pm, or for month_of_year 5 means May).

Parameter
NameDescription
var array|Google\Protobuf\Internal\MapField
Returns
TypeDescription
$this