# Vision AI V1 API - Class Google::Cloud::VisionAI::V1::FacetProperty::DateTimeBucketSpec (v1.5.0)

1.5.0 (latest) 1.4.1 1.3.1 1.2.0 1.1.1 1.0.1 0.4.0 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the Vision AI V1 API class Google::Cloud::VisionAI::V1::FacetProperty::DateTimeBucketSpec.

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

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #granularity

    def granularity() -> ::Google::Cloud::VisionAI::V1::FacetProperty::DateTimeBucketSpec::Granularity

**Returns**

- ([::Google::Cloud::VisionAI::V1::FacetProperty::DateTimeBucketSpec::Granularity](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision_ai-v1/latest/Google-Cloud-VisionAI-V1-FacetProperty-DateTimeBucketSpec-Granularity)) --- Granularity of date type facet.

### #granularity=

    def granularity=(value) -> ::Google::Cloud::VisionAI::V1::FacetProperty::DateTimeBucketSpec::Granularity

**Parameter**

- **value** ([::Google::Cloud::VisionAI::V1::FacetProperty::DateTimeBucketSpec::Granularity](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision_ai-v1/latest/Google-Cloud-VisionAI-V1-FacetProperty-DateTimeBucketSpec-Granularity)) --- Granularity of date type facet.
**Returns**

- ([::Google::Cloud::VisionAI::V1::FacetProperty::DateTimeBucketSpec::Granularity](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision_ai-v1/latest/Google-Cloud-VisionAI-V1-FacetProperty-DateTimeBucketSpec-Granularity)) --- Granularity of date type facet.