Discovery Engine v1 API - Class AnswerQueryResponse (1.5.0)

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.

Inheritance

object > AnswerQueryResponse

Namespace

Google.Cloud.DiscoveryEngine.V1

Assembly

Google.Cloud.DiscoveryEngine.V1.dll

Constructors

AnswerQueryResponse()

public AnswerQueryResponse()

AnswerQueryResponse(AnswerQueryResponse)

public AnswerQueryResponse(AnswerQueryResponse other)
Parameter
Name Description
other AnswerQueryResponse

Properties

Answer

public Answer Answer { get; set; }

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.

Property Value
Type Description
Answer

AnswerQueryToken

public string AnswerQueryToken { get; set; }

A global unique ID used for logging.

Property Value
Type Description
string

Session

public Session Session { get; set; }

Session resource object. It will be only available when session field is set and valid in the [AnswerQueryRequest][google.cloud.discoveryengine.v1.AnswerQueryRequest] request.

Property Value
Type Description
Session