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.
[[["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::CustomRangeBucketSpec (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-CustomRangeBucketSpec)\n- [1.1.0](/ruby/docs/reference/google-cloud-vision_ai-v1/1.1.0/Google-Cloud-VisionAI-V1-FacetProperty-CustomRangeBucketSpec)\n- [1.0.1](/ruby/docs/reference/google-cloud-vision_ai-v1/1.0.1/Google-Cloud-VisionAI-V1-FacetProperty-CustomRangeBucketSpec)\n- [0.4.0](/ruby/docs/reference/google-cloud-vision_ai-v1/0.4.0/Google-Cloud-VisionAI-V1-FacetProperty-CustomRangeBucketSpec)\n- [0.3.0](/ruby/docs/reference/google-cloud-vision_ai-v1/0.3.0/Google-Cloud-VisionAI-V1-FacetProperty-CustomRangeBucketSpec)\n- [0.2.0](/ruby/docs/reference/google-cloud-vision_ai-v1/0.2.0/Google-Cloud-VisionAI-V1-FacetProperty-CustomRangeBucketSpec)\n- [0.1.0](/ruby/docs/reference/google-cloud-vision_ai-v1/0.1.0/Google-Cloud-VisionAI-V1-FacetProperty-CustomRangeBucketSpec) \nReference documentation and code samples for the Vision AI V1 API class Google::Cloud::VisionAI::V1::FacetProperty::CustomRangeBucketSpec.\n\nIf bucket type is CUSTOM_RANGE, specify how values are bucketized. Use\ninteger bucket value as an example, when the endpoints are 0, 10, 100, and\n1000, we will generate the following facets:\n\\[-inf, 0), \\[0, 10), \\[10, 100), \\[100, 1000), \\[1000, inf).\nNotably:\n\n- endpoints must be listed in ascending order. Otherwise, the SearchConfig API will reject the facet config.\n- \\\u003c 1 endpoints 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### #endpoints\n\n def endpoints() -\u003e ::Array\u003c::Google::Cloud::VisionAI::V1::FacetValue\u003e\n\n**Returns**\n\n- (::Array\\\u003c[::Google::Cloud::VisionAI::V1::FacetValue](./Google-Cloud-VisionAI-V1-FacetValue)\\\u003e) --- Currently, only integer type is supported for this field.\n\n### #endpoints=\n\n def endpoints=(value) -\u003e ::Array\u003c::Google::Cloud::VisionAI::V1::FacetValue\u003e\n\n**Parameter**\n\n- **value** (::Array\\\u003c[::Google::Cloud::VisionAI::V1::FacetValue](./Google-Cloud-VisionAI-V1-FacetValue)\\\u003e) --- Currently, only integer type is supported for this field. \n**Returns**\n\n- (::Array\\\u003c[::Google::Cloud::VisionAI::V1::FacetValue](./Google-Cloud-VisionAI-V1-FacetValue)\\\u003e) --- Currently, only integer type is supported for this field."]]