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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-09 UTC."],[],[],null,["# Vision AI V1 API - Class Google::Cloud::VisionAI::V1::FacetProperty::FixedRangeBucketSpec (v1.1.1)\n\nVersion latestkeyboard_arrow_down\n\n- [1.1.1 (latest)](/ruby/docs/reference/google-cloud-vision_ai-v1/latest/Google-Cloud-VisionAI-V1-FacetProperty-FixedRangeBucketSpec)\n- [1.1.0](/ruby/docs/reference/google-cloud-vision_ai-v1/1.1.0/Google-Cloud-VisionAI-V1-FacetProperty-FixedRangeBucketSpec)\n- [1.0.1](/ruby/docs/reference/google-cloud-vision_ai-v1/1.0.1/Google-Cloud-VisionAI-V1-FacetProperty-FixedRangeBucketSpec)\n- [0.4.0](/ruby/docs/reference/google-cloud-vision_ai-v1/0.4.0/Google-Cloud-VisionAI-V1-FacetProperty-FixedRangeBucketSpec)\n- [0.3.0](/ruby/docs/reference/google-cloud-vision_ai-v1/0.3.0/Google-Cloud-VisionAI-V1-FacetProperty-FixedRangeBucketSpec)\n- [0.2.0](/ruby/docs/reference/google-cloud-vision_ai-v1/0.2.0/Google-Cloud-VisionAI-V1-FacetProperty-FixedRangeBucketSpec)\n- [0.1.0](/ruby/docs/reference/google-cloud-vision_ai-v1/0.1.0/Google-Cloud-VisionAI-V1-FacetProperty-FixedRangeBucketSpec) \nReference documentation and code samples for the Vision AI V1 API class Google::Cloud::VisionAI::V1::FacetProperty::FixedRangeBucketSpec.\n\nIf bucket type is FIXED_RANGE, specify how values are bucketized. Use\nFixedRangeBucketSpec when you want to create multiple buckets with equal\ngranularities. Using integer bucket value as an example, when\nbucket_start = 0, bucket_granularity = 10, bucket_count = 5, this facet\nwill be aggregated via the following buckets:\n\\[-inf, 0), \\[0, 10), \\[10, 20), \\[20, 30), \\[30, inf).\nNotably, bucket_count \\\u003c= 1 is an invalid spec. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #bucket_count\n\n def bucket_count() -\u003e ::Integer\n\n**Returns**\n\n- (::Integer) --- Total number of buckets.\n\n### #bucket_count=\n\n def bucket_count=(value) -\u003e ::Integer\n\n**Parameter**\n\n- **value** (::Integer) --- Total number of buckets. \n**Returns**\n\n- (::Integer) --- Total number of buckets.\n\n### #bucket_granularity\n\n def bucket_granularity() -\u003e ::Google::Cloud::VisionAI::V1::FacetValue\n\n**Returns**\n\n- ([::Google::Cloud::VisionAI::V1::FacetValue](./Google-Cloud-VisionAI-V1-FacetValue)) --- Bucket granularity. NOTE: Only integer type is currently supported for this field.\n\n### #bucket_granularity=\n\n def bucket_granularity=(value) -\u003e ::Google::Cloud::VisionAI::V1::FacetValue\n\n**Parameter**\n\n- **value** ([::Google::Cloud::VisionAI::V1::FacetValue](./Google-Cloud-VisionAI-V1-FacetValue)) --- Bucket granularity. NOTE: Only integer type is currently supported for this field. \n**Returns**\n\n- ([::Google::Cloud::VisionAI::V1::FacetValue](./Google-Cloud-VisionAI-V1-FacetValue)) --- Bucket granularity. NOTE: Only integer type is currently supported for this field.\n\n### #bucket_start\n\n def bucket_start() -\u003e ::Google::Cloud::VisionAI::V1::FacetValue\n\n**Returns**\n\n- ([::Google::Cloud::VisionAI::V1::FacetValue](./Google-Cloud-VisionAI-V1-FacetValue)) --- Lower bound of the bucket. NOTE: Only integer type is currently supported for this field.\n\n### #bucket_start=\n\n def bucket_start=(value) -\u003e ::Google::Cloud::VisionAI::V1::FacetValue\n\n**Parameter**\n\n- **value** ([::Google::Cloud::VisionAI::V1::FacetValue](./Google-Cloud-VisionAI-V1-FacetValue)) --- Lower bound of the bucket. NOTE: Only integer type is currently supported for this field. \n**Returns**\n\n- ([::Google::Cloud::VisionAI::V1::FacetValue](./Google-Cloud-VisionAI-V1-FacetValue)) --- Lower bound of the bucket. NOTE: Only integer type is currently supported for this field."]]