Google Cloud Retail V2 Client - Class MergedFacetValue (2.0.0-RC1)

Reference documentation and code samples for the Google Cloud Retail V2 Client class MergedFacetValue.

Replaces a set of textual facet values by the same (possibly different) merged facet value. Each facet value should appear at most once as a value per CatalogAttribute.

This feature is available only for textual custom attributes.

Generated from protobuf message google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue

Namespace

Google \ Cloud \ Retail \ V2 \ CatalogAttribute \ FacetConfig

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ values array

All the facet values that are replaces by the same merged_value that follows. The maximum number of values per MergedFacetValue is 25. Each value can have up to 128 characters.

↳ merged_value string

All the previous values are replaced by this merged facet value. This merged_value must be non-empty and can have up to 128 characters.

getValues

All the facet values that are replaces by the same merged_value that follows. The maximum number of values per MergedFacetValue is 25.

Each value can have up to 128 characters.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setValues

All the facet values that are replaces by the same merged_value that follows. The maximum number of values per MergedFacetValue is 25.

Each value can have up to 128 characters.

Parameter
Name Description
var string[]
Returns
Type Description
$this

getMergedValue

All the previous values are replaced by this merged facet value.

This merged_value must be non-empty and can have up to 128 characters.

Returns
Type Description
string

setMergedValue

All the previous values are replaced by this merged facet value.

This merged_value must be non-empty and can have up to 128 characters.

Parameter
Name Description
var string
Returns
Type Description
$this