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
-
(::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][].
Note: The following fields are mutually exclusive:
selected_answer
,text_answer
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#selected_answer=
def selected_answer=(value) -> ::Google::Cloud::Retail::V2::SearchRequest::ConversationalSearchSpec::UserAnswer::SelectedAnswer
-
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][].
Note: The following fields are mutually exclusive:
selected_answer
,text_answer
. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::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][].
Note: The following fields are mutually exclusive:
selected_answer
,text_answer
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#text_answer
def text_answer() -> ::String
-
(::String) — This field specifies the incremental input text from the user during
the conversational search.
Note: The following fields are mutually exclusive:
text_answer
,selected_answer
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#text_answer=
def text_answer=(value) -> ::String
-
value (::String) — This field specifies the incremental input text from the user during
the conversational search.
Note: The following fields are mutually exclusive:
text_answer
,selected_answer
. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::String) — This field specifies the incremental input text from the user during
the conversational search.
Note: The following fields are mutually exclusive:
text_answer
,selected_answer
. If a field in that set is populated, all other fields in the set will automatically be cleared.