# Vision AI V1 API - Module Google::Cloud::VisionAI::V1::FacetProperty::DateTimeBucketSpec::Granularity (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 module Google::Cloud::VisionAI::V1::FacetProperty::DateTimeBucketSpec::Granularity.

Granularity enum for the datetime bucket.

## Constants

### GRANULARITY_UNSPECIFIED

**value:** 0  
Unspecified granularity.

### YEAR

**value:** 1  
Granularity is year.

### MONTH

**value:** 2  
Granularity is month.

### DAY

**value:** 3  
Granularity is day.