Google Cloud Retail V2 Client - Class MergedFacet (2.0.0)

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

The current facet key (i.e. attribute config) maps into the merged_facet_key.

A facet key can have at most one child. The current facet key and the merged facet key need both to be textual custom attributes or both numerical custom attributes (same type).

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

Namespace

Google \ Cloud \ Retail \ V2 \ CatalogAttribute \ FacetConfig

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ merged_facet_key string

The merged facet key should be a valid facet key that is different than the facet key of the current catalog attribute. We refer this is merged facet key as the child of the current catalog attribute. This merged facet key can't be a parent of another facet key (i.e. no directed path of length 2). This merged facet key needs to be either a textual custom attribute or a numerical custom attribute.

getMergedFacetKey

The merged facet key should be a valid facet key that is different than the facet key of the current catalog attribute. We refer this is merged facet key as the child of the current catalog attribute. This merged facet key can't be a parent of another facet key (i.e. no directed path of length 2). This merged facet key needs to be either a textual custom attribute or a numerical custom attribute.

Returns
Type Description
string

setMergedFacetKey

The merged facet key should be a valid facet key that is different than the facet key of the current catalog attribute. We refer this is merged facet key as the child of the current catalog attribute. This merged facet key can't be a parent of another facet key (i.e. no directed path of length 2). This merged facet key needs to be either a textual custom attribute or a numerical custom attribute.

Parameter
Name Description
var string
Returns
Type Description
$this