Vision AI V1 API - Class Google::Cloud::VisionAI::V1::FacetProperty::FixedRangeBucketSpec (v0.1.0)

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
Returns
  • (::Integer) — Total number of buckets.

#bucket_count=

def bucket_count=(value) -> ::Integer
Parameter
  • value (::Integer) — Total number of buckets.
Returns
  • (::Integer) — Total number of buckets.

#bucket_granularity

def bucket_granularity() -> ::Google::Cloud::VisionAI::V1::FacetValue
Returns

#bucket_granularity=

def bucket_granularity=(value) -> ::Google::Cloud::VisionAI::V1::FacetValue
Parameter
Returns

#bucket_start

def bucket_start() -> ::Google::Cloud::VisionAI::V1::FacetValue
Returns

#bucket_start=

def bucket_start=(value) -> ::Google::Cloud::VisionAI::V1::FacetValue
Parameter
Returns