Vision AI v1 API - Class FacetProperty.Types.FixedRangeBucketSpec (1.0.0-beta01)

public sealed class FacetProperty.Types.FixedRangeBucketSpec : IMessage<FacetProperty.Types.FixedRangeBucketSpec>, IEquatable<FacetProperty.Types.FixedRangeBucketSpec>, IDeepCloneable<FacetProperty.Types.FixedRangeBucketSpec>, IBufferMessage, IMessage

Reference documentation and code samples for the Vision AI v1 API class FacetProperty.Types.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.

Inheritance

object > FacetProperty.Types.FixedRangeBucketSpec

Namespace

Google.Cloud.VisionAI.V1

Assembly

Google.Cloud.VisionAI.V1.dll

Constructors

FixedRangeBucketSpec()

public FixedRangeBucketSpec()

FixedRangeBucketSpec(FixedRangeBucketSpec)

public FixedRangeBucketSpec(FacetProperty.Types.FixedRangeBucketSpec other)
Parameter
Name Description
other FacetPropertyTypesFixedRangeBucketSpec

Properties

BucketCount

public int BucketCount { get; set; }

Total number of buckets.

Property Value
Type Description
int

BucketGranularity

public FacetValue BucketGranularity { get; set; }

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

Property Value
Type Description
FacetValue

BucketStart

public FacetValue BucketStart { get; set; }

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

Property Value
Type Description
FacetValue