Reference documentation and code samples for the Google Cloud Discovery Engine V1beta Client class Answer.
Defines an answer.
Generated from protobuf message google.cloud.discoveryengine.v1beta.Answer
Namespace
Google \ Cloud \ DiscoveryEngine \ V1betaMethods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ name
string
Immutable. Fully qualified name projects/{project}/locations/global/collections/{collection}/engines/{engine}/sessions/*/answers/*
↳ state
int
The state of the answer generation.
↳ answer_text
string
The textual answer.
↳ citations
↳ references
↳ related_questions
array
Suggested related questions.
↳ steps
↳ query_understanding_info
↳ answer_skipped_reasons
array
Additional answer-skipped reasons. This provides the reason for ignored cases. If nothing is skipped, this field is not set.
↳ create_time
↳ complete_time
getName
Immutable. Fully qualified name projects/{project}/locations/global/collections/{collection}/engines/{engine}/sessions/*/answers/*
string
setName
Immutable. Fully qualified name projects/{project}/locations/global/collections/{collection}/engines/{engine}/sessions/*/answers/*
var
string
$this
getState
The state of the answer generation.
int
setState
The state of the answer generation.
var
int
$this
getAnswerText
The textual answer.
string
setAnswerText
The textual answer.
var
string
$this
getCitations
Citations.
setCitations
Citations.
$this
getReferences
References.
setReferences
References.
$this
getRelatedQuestions
Suggested related questions.
setRelatedQuestions
Suggested related questions.
var
string[]
$this
getSteps
Answer generation steps.
setSteps
Answer generation steps.
$this
getQueryUnderstandingInfo
Query understanding information.
hasQueryUnderstandingInfo
clearQueryUnderstandingInfo
setQueryUnderstandingInfo
Query understanding information.
$this
getAnswerSkippedReasons
Additional answer-skipped reasons. This provides the reason for ignored cases. If nothing is skipped, this field is not set.
setAnswerSkippedReasons
Additional answer-skipped reasons. This provides the reason for ignored cases. If nothing is skipped, this field is not set.
var
int[]
$this
getCreateTime
Output only. Answer creation timestamp.
hasCreateTime
clearCreateTime
setCreateTime
Output only. Answer creation timestamp.
$this
getCompleteTime
Output only. Answer completed timestamp.
hasCompleteTime
clearCompleteTime
setCompleteTime
Output only. Answer completed timestamp.
$this