Google Cloud Retail V2 Client - Class GenerativeQuestionsFeatureConfig (2.1.1)

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

Configuration for overall generative question feature state.

Generated from protobuf message google.cloud.retail.v2.GenerativeQuestionsFeatureConfig

Namespace

Google \ Cloud \ Retail \ V2

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ catalog string

Required. Resource name of the affected catalog. Format: projects/{project}/locations/{location}/catalogs/{catalog}

↳ feature_enabled bool

Optional. Determines whether questions will be used at serving time. Note: This feature cannot be enabled until initial data requirements are satisfied.

↳ minimum_products int

Optional. Minimum number of products in the response to trigger follow-up questions. Value must be 0 or positive.

getCatalog

Required. Resource name of the affected catalog.

Format: projects/{project}/locations/{location}/catalogs/{catalog}

Returns
Type Description
string

setCatalog

Required. Resource name of the affected catalog.

Format: projects/{project}/locations/{location}/catalogs/{catalog}

Parameter
Name Description
var string
Returns
Type Description
$this

getFeatureEnabled

Optional. Determines whether questions will be used at serving time.

Note: This feature cannot be enabled until initial data requirements are satisfied.

Returns
Type Description
bool

setFeatureEnabled

Optional. Determines whether questions will be used at serving time.

Note: This feature cannot be enabled until initial data requirements are satisfied.

Parameter
Name Description
var bool
Returns
Type Description
$this

getMinimumProducts

Optional. Minimum number of products in the response to trigger follow-up questions. Value must be 0 or positive.

Returns
Type Description
int

setMinimumProducts

Optional. Minimum number of products in the response to trigger follow-up questions. Value must be 0 or positive.

Parameter
Name Description
var int
Returns
Type Description
$this