public sealed class FacetProperty.Types.FixedRangeBucketSpec : IMessage<FacetProperty.Types.FixedRangeBucketSpec>, IEquatable<FacetProperty.Types.FixedRangeBucketSpec>, IDeepCloneable<FacetProperty.Types.FixedRangeBucketSpec>, IBufferMessage, IMessageReference 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.
Implements
IMessageFacetPropertyTypesFixedRangeBucketSpec, IEquatableFacetPropertyTypesFixedRangeBucketSpec, IDeepCloneableFacetPropertyTypesFixedRangeBucketSpec, IBufferMessage, IMessageNamespace
Google.Cloud.VisionAI.V1Assembly
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 |
|