Reference documentation and code samples for the Google Cloud Retail V2 Client class GenerativeQuestionConfig.
Configuration for a single generated question.
Generated from protobuf messagegoogle.cloud.retail.v2.GenerativeQuestionConfig
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 catalog. Format: projects/{project}/locations/{location}/catalogs/{catalog}
↳ facet
string
Required. The facet to which the question is associated.
↳ generated_question
string
Output only. The LLM generated question.
↳ final_question
string
Optional. The question that will be used at serving time. Question can have a max length of 300 bytes. When not populated, generated_question should be used.
↳ example_values
array
Output only. Values that can be used to answer the question.
↳ frequency
float
Output only. The ratio of how often a question was asked.
↳ allowed_in_conversation
bool
Optional. Whether the question is asked at serving time.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Retail V2 Client - Class GenerativeQuestionConfig (2.3.1)\n\nVersion latestkeyboard_arrow_down\n\n- [2.3.1 (latest)](/php/docs/reference/cloud-retail/latest/V2.GenerativeQuestionConfig)\n- [2.3.0](/php/docs/reference/cloud-retail/2.3.0/V2.GenerativeQuestionConfig)\n- [2.2.1](/php/docs/reference/cloud-retail/2.2.1/V2.GenerativeQuestionConfig)\n- [2.1.3](/php/docs/reference/cloud-retail/2.1.3/V2.GenerativeQuestionConfig)\n- [2.0.0](/php/docs/reference/cloud-retail/2.0.0/V2.GenerativeQuestionConfig)\n- [1.7.0](/php/docs/reference/cloud-retail/1.7.0/V2.GenerativeQuestionConfig)\n- [1.6.4](/php/docs/reference/cloud-retail/1.6.4/V2.GenerativeQuestionConfig)\n- [1.5.0](/php/docs/reference/cloud-retail/1.5.0/V2.GenerativeQuestionConfig)\n- [1.4.2](/php/docs/reference/cloud-retail/1.4.2/V2.GenerativeQuestionConfig)\n- [1.3.1](/php/docs/reference/cloud-retail/1.3.1/V2.GenerativeQuestionConfig)\n- [1.2.1](/php/docs/reference/cloud-retail/1.2.1/V2.GenerativeQuestionConfig)\n- [1.1.1](/php/docs/reference/cloud-retail/1.1.1/V2.GenerativeQuestionConfig)\n- [1.0.1](/php/docs/reference/cloud-retail/1.0.1/V2.GenerativeQuestionConfig) \nReference documentation and code samples for the Google Cloud Retail V2 Client class GenerativeQuestionConfig.\n\nConfiguration for a single generated question.\n\nGenerated from protobuf message `google.cloud.retail.v2.GenerativeQuestionConfig`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Retail \\\\ V2\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getCatalog\n\nRequired. Resource name of the catalog.\n\nFormat: projects/{project}/locations/{location}/catalogs/{catalog}\n\n### setCatalog\n\nRequired. Resource name of the catalog.\n\nFormat: projects/{project}/locations/{location}/catalogs/{catalog}\n\n### getFacet\n\nRequired. The facet to which the question is associated.\n\n### setFacet\n\nRequired. The facet to which the question is associated.\n\n### getGeneratedQuestion\n\nOutput only. The LLM generated question.\n\n### setGeneratedQuestion\n\nOutput only. The LLM generated question.\n\n### getFinalQuestion\n\nOptional. The question that will be used at serving time.\n\nQuestion can have a max length of 300 bytes.\nWhen not populated, generated_question should be used.\n\n### setFinalQuestion\n\nOptional. The question that will be used at serving time.\n\nQuestion can have a max length of 300 bytes.\nWhen not populated, generated_question should be used.\n\n### getExampleValues\n\nOutput only. Values that can be used to answer the question.\n\n### setExampleValues\n\nOutput only. Values that can be used to answer the question.\n\n### getFrequency\n\nOutput only. The ratio of how often a question was asked.\n\n### setFrequency\n\nOutput only. The ratio of how often a question was asked.\n\n### getAllowedInConversation\n\nOptional. Whether the question is asked at serving time.\n\n### setAllowedInConversation\n\nOptional. Whether the question is asked at serving time."]]