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

If bucket type is CUSTOM_RANGE, specify how values are bucketized. Use
integer bucket value as an example, when the endpoints are 0, 10, 100, and
1000, we will generate the following facets:
\[-inf, 0), \[0, 10), \[10, 100), \[100, 1000), \[1000, inf).
Notably:

- endpoints must be listed in ascending order. Otherwise, the SearchConfig API will reject the facet config.
- \< 1 endpoints is an invalid spec.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #endpoints

    def endpoints() -> ::Array<::Google::Cloud::VisionAI::V1::FacetValue>

**Returns**

- (::Array\<[::Google::Cloud::VisionAI::V1::FacetValue](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision_ai-v1/latest/Google-Cloud-VisionAI-V1-FacetValue)\>) --- Currently, only integer type is supported for this field.

### #endpoints=

    def endpoints=(value) -> ::Array<::Google::Cloud::VisionAI::V1::FacetValue>

**Parameter**

- **value** (::Array\<[::Google::Cloud::VisionAI::V1::FacetValue](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision_ai-v1/latest/Google-Cloud-VisionAI-V1-FacetValue)\>) --- Currently, only integer type is supported for this field.
**Returns**

- (::Array\<[::Google::Cloud::VisionAI::V1::FacetValue](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision_ai-v1/latest/Google-Cloud-VisionAI-V1-FacetValue)\>) --- Currently, only integer type is supported for this field.