Skip to main content

catalogs_generative_question_feature

Creates, updates, deletes, gets or lists a catalogs_generative_question_feature resource.

Overview

Namecatalogs_generative_question_feature
TypeResource
Idgoogle.retail.catalogs_generative_question_feature

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
catalogstringRequired. Resource name of the affected catalog. Format: projects/{project}/locations/{location}/catalogs/{catalog}
featureEnabledbooleanOptional. Determines whether questions will be used at serving time. Note: This feature cannot be enabled until initial data requirements are satisfied.
minimumProductsinteger (int32)Optional. Minimum number of products in the response to trigger follow-up questions. Value must be 0 or positive.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
projects_locations_catalogs_get_generative_question_featureselectprojectsId, locationsId, catalogsIdManages overal generative question feature state -- enables toggling feature on and off.
projects_locations_catalogs_update_generative_question_featureupdateprojectsId, locationsId, catalogsIdupdateMaskManages overal generative question feature state -- enables toggling feature on and off.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
catalogsIdstring
locationsIdstring
projectsIdstring
updateMaskstring (google-fieldmask)

SELECT examples

Manages overal generative question feature state -- enables toggling feature on and off.

SELECT
catalog,
featureEnabled,
minimumProducts
FROM google.retail.catalogs_generative_question_feature
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND catalogsId = '{{ catalogsId }}' -- required;

UPDATE examples

Manages overal generative question feature state -- enables toggling feature on and off.

UPDATE google.retail.catalogs_generative_question_feature
SET
data__catalog = '{{ catalog }}',
data__featureEnabled = {{ featureEnabled }},
data__minimumProducts = {{ minimumProducts }}
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND catalogsId = '{{ catalogsId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
catalog,
featureEnabled,
minimumProducts;