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

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

Reference documentation and code samples for the Vision AI v1 API class FacetProperty.Types.CustomRangeBucketSpec.

If bucket type is CUSTOM_RANGE, specify how values are bucketized. Use integer bucket value as an example, when the endpoints are 0, 10, 100, and 1000, we will generate the following facets: [-inf, 0), [0, 10), [10, 100), [100, 1000), [1000, inf). Notably:

  • endpoints must be listed in ascending order. Otherwise, the SearchConfig API will reject the facet config.
  • < 1 endpoints is an invalid spec.

Inheritance

object > FacetProperty.Types.CustomRangeBucketSpec

Namespace

Google.Cloud.VisionAI.V1

Assembly

Google.Cloud.VisionAI.V1.dll

Constructors

CustomRangeBucketSpec()

public CustomRangeBucketSpec()

CustomRangeBucketSpec(CustomRangeBucketSpec)

public CustomRangeBucketSpec(FacetProperty.Types.CustomRangeBucketSpec other)
Parameter
Name Description
other FacetPropertyTypesCustomRangeBucketSpec

Properties

Endpoints

public RepeatedField<FacetValue> Endpoints { get; }

Currently, only integer type is supported for this field.

Property Value
Type Description
RepeatedFieldFacetValue