Google Cloud Retail V2 Client - Class DynamicFacetSpec (1.0.1)

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

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.

Generated from protobuf field .google.cloud.retail.v2.SearchRequest.DynamicFacetSpec.Mode mode = 1;

Returns
TypeDescription
int

setMode

Mode of the DynamicFacet feature.

Defaults to Mode.DISABLED if it's unset.

Generated from protobuf field .google.cloud.retail.v2.SearchRequest.DynamicFacetSpec.Mode mode = 1;

Parameter
NameDescription
var int
Returns
TypeDescription
$this