Reference documentation and code samples for the Retail V2 API class Google::Cloud::Retail::V2::SearchRequest::ConversationalSearchSpec::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.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#selected_answer
def selected_answer() -> ::Google::Cloud::Retail::V2::SearchRequest::ConversationalSearchSpec::UserAnswer::SelectedAnswer
Returns
- (::Google::Cloud::Retail::V2::SearchRequest::ConversationalSearchSpec::UserAnswer::SelectedAnswer) — This field specifies the selected attributes during the conversational search. This should be a subset of [ConversationalSearchResult.suggested_answers][].
#selected_answer=
def selected_answer=(value) -> ::Google::Cloud::Retail::V2::SearchRequest::ConversationalSearchSpec::UserAnswer::SelectedAnswer
Parameter
- value (::Google::Cloud::Retail::V2::SearchRequest::ConversationalSearchSpec::UserAnswer::SelectedAnswer) — This field specifies the selected attributes during the conversational search. This should be a subset of [ConversationalSearchResult.suggested_answers][].
Returns
- (::Google::Cloud::Retail::V2::SearchRequest::ConversationalSearchSpec::UserAnswer::SelectedAnswer) — This field specifies the selected attributes during the conversational search. This should be a subset of [ConversationalSearchResult.suggested_answers][].
#text_answer
def text_answer() -> ::String
Returns
- (::String) — This field specifies the incremental input text from the user during the conversational search.
#text_answer=
def text_answer=(value) -> ::String
Parameter
- value (::String) — This field specifies the incremental input text from the user during the conversational search.
Returns
- (::String) — This field specifies the incremental input text from the user during the conversational search.