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\u003eThis documentation is for the \u003ccode\u003eAnswerQueryResponse\u003c/code\u003e class within the Google Cloud Discovery Engine v1 API, specifically version 1.1.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eAnswerQueryResponse\u003c/code\u003e is a response message type for the \u003ccode\u003eConversationalSearchService.AnswerQuery\u003c/code\u003e method and is part of the \u003ccode\u003eGoogle.Cloud.DiscoveryEngine.V1\u003c/code\u003e namespace.\u003c/p\u003e\n"],["\u003cp\u003eThe class inherits from the \u003ccode\u003eobject\u003c/code\u003e class and implements \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e interfaces.\u003c/p\u003e\n"],["\u003cp\u003eKey properties include \u003ccode\u003eAnswer\u003c/code\u003e which holds the answer resource object, \u003ccode\u003eAnswerQueryToken\u003c/code\u003e for logging, and \u003ccode\u003eSession\u003c/code\u003e for session data when available in the request.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation covers the class's constructors, including a default constructor and a copy constructor that takes another \u003ccode\u003eAnswerQueryResponse\u003c/code\u003e object as input.\u003c/p\u003e\n"]]],[],null,[]]