public sealed class AnswerQueryResponse : IMessage<AnswerQueryResponse>, IEquatable<AnswerQueryResponse>, IDeepCloneable<AnswerQueryResponse>, IBufferMessage, IMessage
Reference documentation and code samples for the Discovery Engine v1 API class AnswerQueryResponse.
Response message for
[ConversationalSearchService.AnswerQuery][google.cloud.discoveryengine.v1.ConversationalSearchService.AnswerQuery]
method.
Answer resource object.
If
[AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.max_rephrase_steps][google.cloud.discoveryengine.v1.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.max_rephrase_steps]
is greater than 1, use
[Answer.name][google.cloud.discoveryengine.v1.Answer.name] to fetch answer
information using
[ConversationalSearchService.GetAnswer][google.cloud.discoveryengine.v1.ConversationalSearchService.GetAnswer]
API.
Session resource object.
It will be only available when session field is set and valid in the
[AnswerQueryRequest][google.cloud.discoveryengine.v1.AnswerQueryRequest]
request.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis page provides documentation for the \u003ccode\u003eAnswerQueryResponse\u003c/code\u003e class within the Google Cloud Discovery Engine v1 API, specifically version 1.4.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eAnswerQueryResponse\u003c/code\u003e is a sealed class used as a response message for the \u003ccode\u003eConversationalSearchService.AnswerQuery\u003c/code\u003e method, and it implements multiple interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eAnswerQueryResponse\u003c/code\u003e class includes properties like \u003ccode\u003eAnswer\u003c/code\u003e, \u003ccode\u003eAnswerQueryToken\u003c/code\u003e, and \u003ccode\u003eSession\u003c/code\u003e, which are used to convey the answer, a unique logging ID, and session details, respectively.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation also lists other available versions of the \u003ccode\u003eAnswerQueryResponse\u003c/code\u003e class, from 1.0.0-beta06 up to the latest 1.6.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eAnswerQueryResponse\u003c/code\u003e class can be constructed using a parameter-less constructor, or a constructor passing in another \u003ccode\u003eAnswerQueryResponse\u003c/code\u003e instance.\u003c/p\u003e\n"]]],[],null,[]]