Cloud AutoML V1beta1 Client - Class TimestampStats (1.5.4)

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

The data statistics of a series of TIMESTAMP values.

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

Namespace

Google \ Cloud \ AutoMl \ V1beta1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ granular_stats array|Google\Protobuf\Internal\MapField

The string key is the pre-defined granularity. Currently supported: hour_of_day, day_of_week, month_of_year. Granularities finer that the granularity of timestamp data are not populated (e.g. if timestamps are at day granularity, then hour_of_day is not populated).

getGranularStats

The string key is the pre-defined granularity. Currently supported: hour_of_day, day_of_week, month_of_year.

Granularities finer that the granularity of timestamp data are not populated (e.g. if timestamps are at day granularity, then hour_of_day is not populated).

Returns
TypeDescription
Google\Protobuf\Internal\MapField

setGranularStats

The string key is the pre-defined granularity. Currently supported: hour_of_day, day_of_week, month_of_year.

Granularities finer that the granularity of timestamp data are not populated (e.g. if timestamps are at day granularity, then hour_of_day is not populated).

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