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.StepSpec.max_step_count][] 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\u003eThe latest version available for the \u003ccode\u003eAnswerQueryResponse\u003c/code\u003e class is 1.6.0, but this documentation specifically covers version 1.3.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eAnswerQueryResponse\u003c/code\u003e is a response message used by the \u003ccode\u003eConversationalSearchService.AnswerQuery\u003c/code\u003e method within the Discovery Engine v1 API.\u003c/p\u003e\n"],["\u003cp\u003eThis class inherits from \u003ccode\u003eobject\u003c/code\u003e and implements several interfaces including \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 such as \u003ccode\u003eAnswer\u003c/code\u003e, \u003ccode\u003eAnswerQueryToken\u003c/code\u003e, and \u003ccode\u003eSession\u003c/code\u003e, which are used for retrieving answer resources, logging, and session management, respectively.\u003c/p\u003e\n"],["\u003cp\u003eThe namespace of the AnswerQueryResponse class is \u003ccode\u003eGoogle.Cloud.DiscoveryEngine.V1\u003c/code\u003e, and the assembly is \u003ccode\u003eGoogle.Cloud.DiscoveryEngine.V1.dll\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]