Class: Google::Cloud::VisionAI::V1::FacetProperty::CustomRangeBucketSpec

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/visionai/v1/warehouse.rb

Overview

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.

Instance Attribute Summary collapse

Instance Attribute Details

#endpoints::Array<::Google::Cloud::VisionAI::V1::FacetValue>

Returns Currently, only integer type is supported for this field.

Returns:



2228
2229
2230
2231
# File 'proto_docs/google/cloud/visionai/v1/warehouse.rb', line 2228

class CustomRangeBucketSpec
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end