Class: Google::Cloud::VisionAI::V1::FacetProperty::FixedRangeBucketSpec

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 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.

Instance Attribute Summary collapse

Instance Attribute Details

#bucket_count::Integer

Returns Total number of buckets.

Returns:

  • (::Integer)

    Total number of buckets.



2212
2213
2214
2215
# File 'proto_docs/google/cloud/visionai/v1/warehouse.rb', line 2212

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

#bucket_granularity::Google::Cloud::VisionAI::V1::FacetValue

Returns Bucket granularity. NOTE: Only integer type is currently supported for this field.

Returns:



2212
2213
2214
2215
# File 'proto_docs/google/cloud/visionai/v1/warehouse.rb', line 2212

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

#bucket_start::Google::Cloud::VisionAI::V1::FacetValue

Returns Lower bound of the bucket. NOTE: Only integer type is currently supported for this field.

Returns:



2212
2213
2214
2215
# File 'proto_docs/google/cloud/visionai/v1/warehouse.rb', line 2212

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