Reference documentation and code samples for the Google Cloud Discovery Engine V1 Client class AnswerQueryResponse.
Response message for ConversationalSearchService.AnswerQuery method.
Generated from protobuf message google.cloud.discoveryengine.v1.AnswerQueryResponse
Namespace
Google \ Cloud \ DiscoveryEngine \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ answer
Answer
Answer resource object. If AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.max_rephrase_steps is greater than 1, use Answer.name to fetch answer information using ConversationalSearchService.GetAnswer API.
↳ session
Session
Session resource object. It will be only available when session field is set and valid in the AnswerQueryRequest request.
↳ answer_query_token
string
A global unique ID used for logging.
getAnswer
Answer resource object.
If AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.max_rephrase_steps is greater than 1, use Answer.name to fetch answer information using ConversationalSearchService.GetAnswer API.
hasAnswer
clearAnswer
setAnswer
Answer resource object.
If AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.max_rephrase_steps is greater than 1, use Answer.name to fetch answer information using ConversationalSearchService.GetAnswer API.
$this
getSession
Session resource object.
It will be only available when session field is set and valid in the AnswerQueryRequest request.
hasSession
clearSession
setSession
Session resource object.
It will be only available when session field is set and valid in the AnswerQueryRequest request.
$this
getAnswerQueryToken
A global unique ID used for logging.
string
setAnswerQueryToken
A global unique ID used for logging.
var
string
$this