Retail v2 API - Class SearchRequest.Types.ConversationalSearchSpec.Types.UserAnswer (2.12.0)

public sealed class SearchRequest.Types.ConversationalSearchSpec.Types.UserAnswer : IMessage<SearchRequest.Types.ConversationalSearchSpec.Types.UserAnswer>, IEquatable<SearchRequest.Types.ConversationalSearchSpec.Types.UserAnswer>, IDeepCloneable<SearchRequest.Types.ConversationalSearchSpec.Types.UserAnswer>, IBufferMessage, IMessage

Reference documentation and code samples for the Retail v2 API class SearchRequest.Types.ConversationalSearchSpec.Types.UserAnswer.

This field specifies the current user answer during the conversational search. This can be either user selected from suggested answers or user input plain text.

Inheritance

object > SearchRequest.Types.ConversationalSearchSpec.Types.UserAnswer

Namespace

Google.Cloud.Retail.V2

Assembly

Google.Cloud.Retail.V2.dll

Constructors

UserAnswer()

public UserAnswer()

UserAnswer(UserAnswer)

public UserAnswer(SearchRequest.Types.ConversationalSearchSpec.Types.UserAnswer other)
Parameter
Name Description
other SearchRequestTypesConversationalSearchSpecTypesUserAnswer

Properties

HasTextAnswer

public bool HasTextAnswer { get; }

Gets whether the "text_answer" field is set

Property Value
Type Description
bool

SelectedAnswer

public SearchRequest.Types.ConversationalSearchSpec.Types.UserAnswer.Types.SelectedAnswer SelectedAnswer { get; set; }

This field specifies the selected attributes during the conversational search. This should be a subset of [ConversationalSearchResult.suggested_answers][].

Property Value
Type Description
SearchRequestTypesConversationalSearchSpecTypesUserAnswerTypesSelectedAnswer

TextAnswer

public string TextAnswer { get; set; }

This field specifies the incremental input text from the user during the conversational search.

Property Value
Type Description
string

TypeCase

public SearchRequest.Types.ConversationalSearchSpec.Types.UserAnswer.TypeOneofCase TypeCase { get; }
Property Value
Type Description
SearchRequestTypesConversationalSearchSpecTypesUserAnswerTypeOneofCase