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.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#bucket_count
def bucket_count() -> ::Integer
- (::Integer) — Total number of buckets.
#bucket_count=
def bucket_count=(value) -> ::Integer
- value (::Integer) — Total number of buckets.
- (::Integer) — Total number of buckets.
#bucket_granularity
def bucket_granularity() -> ::Google::Cloud::VisionAI::V1::FacetValue
- (::Google::Cloud::VisionAI::V1::FacetValue) — Bucket granularity. NOTE: Only integer type is currently supported for this field.
#bucket_granularity=
def bucket_granularity=(value) -> ::Google::Cloud::VisionAI::V1::FacetValue
- value (::Google::Cloud::VisionAI::V1::FacetValue) — Bucket granularity. NOTE: Only integer type is currently supported for this field.
- (::Google::Cloud::VisionAI::V1::FacetValue) — Bucket granularity. NOTE: Only integer type is currently supported for this field.
#bucket_start
def bucket_start() -> ::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.
#bucket_start=
def bucket_start=(value) -> ::Google::Cloud::VisionAI::V1::FacetValue
- value (::Google::Cloud::VisionAI::V1::FacetValue) — Lower bound of the bucket. NOTE: Only integer type is currently supported for this field.
- (::Google::Cloud::VisionAI::V1::FacetValue) — Lower bound of the bucket. NOTE: Only integer type is currently supported for this field.