Google Cloud Retail V2 Client - Class DynamicFacetSpec (1.5.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
NameDescription
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
TypeDescription
int

setMode

Mode of the DynamicFacet feature.

Defaults to Mode.DISABLED if it's unset.

Parameter
NameDescription
var int
Returns
TypeDescription
$this