Reference documentation and code samples for the Google Cloud Retail V2 Client class GenerativeQuestionConfig.
Configuration for a single generated question.
Generated from protobuf message google.cloud.retail.v2.GenerativeQuestionConfig
Namespace
Google \ Cloud \ Retail \ V2Methods
__construct
Constructor.
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.
getCatalog
Required. Resource name of the catalog.
Format: projects/{project}/locations/{location}/catalogs/{catalog}
string
setCatalog
Required. Resource name of the catalog.
Format: projects/{project}/locations/{location}/catalogs/{catalog}
var
string
$this
getFacet
Required. The facet to which the question is associated.
string
setFacet
Required. The facet to which the question is associated.
var
string
$this
getGeneratedQuestion
Output only. The LLM generated question.
string
setGeneratedQuestion
Output only. The LLM generated question.
var
string
$this
getFinalQuestion
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.
string
setFinalQuestion
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.
var
string
$this
getExampleValues
Output only. Values that can be used to answer the question.
setExampleValues
Output only. Values that can be used to answer the question.
var
string[]
$this
getFrequency
Output only. The ratio of how often a question was asked.
float
setFrequency
Output only. The ratio of how often a question was asked.
var
float
$this
getAllowedInConversation
Optional. Whether the question is asked at serving time.
bool
setAllowedInConversation
Optional. Whether the question is asked at serving time.
var
bool
$this