catalogs_generative_question_feature
Creates, updates, deletes, gets or lists a catalogs_generative_question_feature
resource.
Overview
Name | catalogs_generative_question_feature |
Type | Resource |
Id | google.retail.catalogs_generative_question_feature |
Fields
The following fields are returned by SELECT
queries:
- projects_locations_catalogs_get_generative_question_feature
Successful response
Name | Datatype | Description |
---|---|---|
catalog | string | Required. Resource name of the affected catalog. Format: projects/{project}/locations/{location}/catalogs/{catalog} |
featureEnabled | boolean | Optional. Determines whether questions will be used at serving time. Note: This feature cannot be enabled until initial data requirements are satisfied. |
minimumProducts | integer (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:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
projects_locations_catalogs_get_generative_question_feature | select | projectsId , locationsId , catalogsId | Manages overal generative question feature state -- enables toggling feature on and off. | |
projects_locations_catalogs_update_generative_question_feature | update | projectsId , locationsId , catalogsId | updateMask | Manages 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.
Name | Datatype | Description |
---|---|---|
catalogsId | string | |
locationsId | string | |
projectsId | string | |
updateMask | string (google-fieldmask) |
SELECT
examples
- projects_locations_catalogs_get_generative_question_feature
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
- projects_locations_catalogs_update_generative_question_feature
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;