Reference documentation and code samples for the Google Cloud Discovery Engine V1 Client class Answer.
Defines an answer.
Generated from protobuf message google.cloud.discoveryengine.v1.Answer
Namespace
Google \ Cloud \ DiscoveryEngine \ V1Methods
__construct
Constructor.
data
mixed
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.
setState
The state of the answer generation.
$this
getAnswerText
The textual answer.
string
setAnswerText
The textual answer.
var
string
$this
getGroundingScore
A score in the range of [0, 1] describing how grounded the answer is by the reference chunks.
float
hasGroundingScore
clearGroundingScore
setGroundingScore
A score in the range of [0, 1] describing how grounded the answer is by the reference chunks.
var
float
$this
getCitations
Citations.
setCitations
Citations.
$this
getGroundingSupports
Optional. Grounding supports.
setGroundingSupports
Optional. Grounding supports.
$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
getSafetyRatings
Optional. Safety ratings.
setSafetyRatings
Optional. Safety ratings.
$this

