Class: Google::Cloud::Retail::V2::SearchRequest::ConversationalSearchSpec::UserAnswer
- Inherits:
-
Object
- Object
- Google::Cloud::Retail::V2::SearchRequest::ConversationalSearchSpec::UserAnswer
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/retail/v2/search_service.rb
Overview
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.
Defined Under Namespace
Classes: SelectedAnswer
Instance Attribute Summary collapse
-
#selected_answer ⇒ ::Google::Cloud::Retail::V2::SearchRequest::ConversationalSearchSpec::UserAnswer::SelectedAnswer
This field specifies the selected attributes during the conversational search.
-
#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::SearchRequest::ConversationalSearchSpec::UserAnswer::SelectedAnswer
Returns 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.
831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 |
# File 'proto_docs/google/cloud/retail/v2/search_service.rb', line 831 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_values # @deprecated This field is deprecated and may be removed in the next major version update. # @return [::Array<::Google::Cloud::Retail::V2::ProductAttributeValue>] # This field is deprecated and should not be set. # @!attribute [rw] product_attribute_value # @return [::Google::Cloud::Retail::V2::ProductAttributeValue] # 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.
831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 |
# File 'proto_docs/google/cloud/retail/v2/search_service.rb', line 831 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_values # @deprecated This field is deprecated and may be removed in the next major version update. # @return [::Array<::Google::Cloud::Retail::V2::ProductAttributeValue>] # This field is deprecated and should not be set. # @!attribute [rw] product_attribute_value # @return [::Google::Cloud::Retail::V2::ProductAttributeValue] # 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 |