Class: Google::Cloud::Retail::V2::ConversationalSearchRequest::UserAnswer
- Inherits:
-
Object
- Object
- Google::Cloud::Retail::V2::ConversationalSearchRequest::UserAnswer
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/retail/v2/conversational_search_service.rb
Overview
This field specifies the current user answer during the conversational filtering search. This can be either user selected from suggested answers or user input plain text.
Defined Under Namespace
Classes: SelectedAnswer
Instance Attribute Summary collapse
-
#selected_answer ⇒ ::Google::Cloud::Retail::V2::ConversationalSearchRequest::UserAnswer::SelectedAnswer
Optional.
-
#text_answer ⇒ ::String
This field specifies the incremental input text from the user during the conversational search.
Instance Attribute Details
#selected_answer ⇒ ::Google::Cloud::Retail::V2::ConversationalSearchRequest::UserAnswer::SelectedAnswer
Returns Optional. This field specifies the selected answer during the conversational search. This should be a subset of [ConversationalSearchResponse.followup_question.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.
164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 |
# File 'proto_docs/google/cloud/retail/v2/conversational_search_service.rb', line 164 class UserAnswer include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # This field specifies the selected answers during the conversational # search. # @!attribute [rw] product_attribute_value # @return [::Google::Cloud::Retail::V2::ProductAttributeValue] # Optional. This field specifies the selected answer which is a attribute # key-value. class SelectedAnswer include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#text_answer ⇒ ::String
Returns 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.
164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 |
# File 'proto_docs/google/cloud/retail/v2/conversational_search_service.rb', line 164 class UserAnswer include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # This field specifies the selected answers during the conversational # search. # @!attribute [rw] product_attribute_value # @return [::Google::Cloud::Retail::V2::ProductAttributeValue] # Optional. This field specifies the selected answer which is a attribute # key-value. class SelectedAnswer include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |