Google Cloud Retail V2 Client - Class PersonalizationSpec (1.0.1)

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

The specification for personalization.

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

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ mode int

Defaults to Mode.AUTO.

getMode

Defaults to Mode.AUTO.

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

Returns
TypeDescription
int

setMode

Defaults to Mode.AUTO.

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

Parameter
NameDescription
var int
Returns
TypeDescription
$this