Google Cloud Vision Ai V1 Client - Class CustomRangeBucketSpec (0.1.0)

Reference documentation and code samples for the Google Cloud Vision Ai V1 Client class 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.

Generated from protobuf message google.cloud.visionai.v1.FacetProperty.CustomRangeBucketSpec

Namespace

Google \ Cloud \ VisionAI \ V1 \ FacetProperty

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ endpoints array<Google\Cloud\VisionAI\V1\FacetValue>

Currently, only integer type is supported for this field.

getEndpoints

Currently, only integer type is supported for this field.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setEndpoints

Currently, only integer type is supported for this field.

Parameter
Name Description
var array<Google\Cloud\VisionAI\V1\FacetValue>
Returns
Type Description
$this