# Vision AI V1 API - Class Google::Cloud::VisionAI::V1::FacetProperty::FixedRangeBucketSpec (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::FixedRangeBucketSpec.

If bucket type is FIXED_RANGE, specify how values are bucketized. Use
FixedRangeBucketSpec when you want to create multiple buckets with equal
granularities. Using integer bucket value as an example, when
bucket_start = 0, bucket_granularity = 10, bucket_count = 5, this facet
will be aggregated via the following buckets:
\[-inf, 0), \[0, 10), \[10, 20), \[20, 30), \[30, inf).
Notably, bucket_count \<= 1 is an invalid spec.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #bucket_count

    def bucket_count() -> ::Integer

**Returns**

- (::Integer) --- Total number of buckets.

### #bucket_count=

    def bucket_count=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- Total number of buckets.
**Returns**

- (::Integer) --- Total number of buckets.

### #bucket_granularity

    def bucket_granularity() -> ::Google::Cloud::VisionAI::V1::FacetValue

**Returns**

- ([::Google::Cloud::VisionAI::V1::FacetValue](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision_ai-v1/latest/Google-Cloud-VisionAI-V1-FacetValue)) --- Bucket granularity. NOTE: Only integer type is currently supported for this field.

### #bucket_granularity=

    def bucket_granularity=(value) -> ::Google::Cloud::VisionAI::V1::FacetValue

**Parameter**

- **value** ([::Google::Cloud::VisionAI::V1::FacetValue](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision_ai-v1/latest/Google-Cloud-VisionAI-V1-FacetValue)) --- Bucket granularity. NOTE: Only integer type is currently supported for this field.
**Returns**

- ([::Google::Cloud::VisionAI::V1::FacetValue](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision_ai-v1/latest/Google-Cloud-VisionAI-V1-FacetValue)) --- Bucket granularity. NOTE: Only integer type is currently supported for this field.

### #bucket_start

    def bucket_start() -> ::Google::Cloud::VisionAI::V1::FacetValue

**Returns**

- ([::Google::Cloud::VisionAI::V1::FacetValue](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision_ai-v1/latest/Google-Cloud-VisionAI-V1-FacetValue)) --- Lower bound of the bucket. NOTE: Only integer type is currently supported for this field.

### #bucket_start=

    def bucket_start=(value) -> ::Google::Cloud::VisionAI::V1::FacetValue

**Parameter**

- **value** ([::Google::Cloud::VisionAI::V1::FacetValue](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision_ai-v1/latest/Google-Cloud-VisionAI-V1-FacetValue)) --- Lower bound of the bucket. NOTE: Only integer type is currently supported for this field.
**Returns**

- ([::Google::Cloud::VisionAI::V1::FacetValue](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision_ai-v1/latest/Google-Cloud-VisionAI-V1-FacetValue)) --- Lower bound of the bucket. NOTE: Only integer type is currently supported for this field.