# Class FixedRangeBucketSpec (0.5.1)

0.5.1 (latest) 0.5.0 0.4.0 0.3.0 0.2.0 0.1.10

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

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.

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `bucket_start` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-visionai/latest/google.cloud.visionai_v1.types.FacetValue` Lower bound of the bucket. NOTE: Only integer type is currently supported for this field. |
| `bucket_granularity` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-visionai/latest/google.cloud.visionai_v1.types.FacetValue` Bucket granularity. NOTE: Only integer type is currently supported for this field. |
| `bucket_count` | `int` Total number of buckets. |