Google Cloud Retail V2 Client - Class DynamicFacetSpec (1.7.0)

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

The specifications of dynamically generated facets.

Generated from protobuf message google.cloud.retail.v2.SearchRequest.DynamicFacetSpec

Namespace

Google \ Cloud \ Retail \ V2 \ SearchRequest

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ mode int

Mode of the DynamicFacet feature. Defaults to Mode.DISABLED if it's unset.

getMode

Mode of the DynamicFacet feature.

Defaults to Mode.DISABLED if it's unset.

Returns
Type Description
int

setMode

Mode of the DynamicFacet feature.

Defaults to Mode.DISABLED if it's unset.

Parameter
Name Description
var int
Returns
Type Description
$this