# Class CustomRangeBucketSpec (0.5.1)

0.5.1 (latest) 0.5.0 0.4.0 0.3.0 0.2.0 0.1.10

    CustomRangeBucketSpec(mapping=None, *, ignore_unknown_fields=False, **kwargs)

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.

| ## Attribute ||
|---|---|
| **Name** | **Description** |
| `endpoints` | `MutableSequence[https://docs.cloud.google.com/python/docs/reference/google-cloud-visionai/latest/google.cloud.visionai_v1.types.FacetValue]` Currently, only integer type is supported for this field. |