public sealed class AnswerQueryResponse : IMessage<AnswerQueryResponse>, IEquatable<AnswerQueryResponse>, IDeepCloneable<AnswerQueryResponse>, IBufferMessage, IMessage
Reference documentation and code samples for the Discovery Engine v1beta API class AnswerQueryResponse.
Response message for
[ConversationalSearchService.AnswerQuery][google.cloud.discoveryengine.v1beta.ConversationalSearchService.AnswerQuery]
method.
Answer resource object.
If
[AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.max_rephrase_steps][google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.max_rephrase_steps]
is greater than 1, use
[Answer.name][google.cloud.discoveryengine.v1beta.Answer.name] to fetch
answer information using
[ConversationalSearchService.GetAnswer][google.cloud.discoveryengine.v1beta.ConversationalSearchService.GetAnswer]
API.
Session resource object.
It will be only available when session field is set and valid in the
[AnswerQueryRequest][google.cloud.discoveryengine.v1beta.AnswerQueryRequest]
request.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis documentation details the \u003ccode\u003eAnswerQueryResponse\u003c/code\u003e class within the Google Cloud Discovery Engine v1beta API, which is the response message for the \u003ccode\u003eConversationalSearchService.AnswerQuery\u003c/code\u003e method.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the \u003ccode\u003eAnswerQueryResponse\u003c/code\u003e class is 1.0.0-beta18, with an earlier version, 1.0.0-beta17, also available.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eAnswerQueryResponse\u003c/code\u003e class implements multiple 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\u003eKey properties of the \u003ccode\u003eAnswerQueryResponse\u003c/code\u003e class include \u003ccode\u003eAnswer\u003c/code\u003e, \u003ccode\u003eAnswerQueryToken\u003c/code\u003e, and \u003ccode\u003eSession\u003c/code\u003e, each representing specific aspects of the query response.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eAnswerQueryResponse\u003c/code\u003e class has two constructors: a default constructor and one that takes another \u003ccode\u003eAnswerQueryResponse\u003c/code\u003e object as a parameter for copying.\u003c/p\u003e\n"]]],[],null,[]]