Google Cloud Vision Ai V1 Client - Class DateTimeBucketSpec (0.1.0)

Reference documentation and code samples for the Google Cloud Vision Ai V1 Client class DateTimeBucketSpec.

If bucket type is DATE, specify how date values are bucketized.

Generated from protobuf message google.cloud.visionai.v1.FacetProperty.DateTimeBucketSpec

Namespace

Google \ Cloud \ VisionAI \ V1 \ FacetProperty

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ granularity int

Granularity of date type facet.

getGranularity

Granularity of date type facet.

Returns
Type Description
int Enum of type Granularity.

setGranularity

Granularity of date type facet.

Parameter
Name Description
var int

Enum of type Granularity.

Returns
Type Description
$this