Class: Google::Cloud::Retail::V2::SearchRequest::ConversationalSearchSpec::UserAnswer

Inherits:
Object
  • Object
show all
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

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][].

Returns:



780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
# File 'proto_docs/google/cloud/retail/v2/search_service.rb', line 780

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.

Returns:

  • (::String)

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



780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
# File 'proto_docs/google/cloud/retail/v2/search_service.rb', line 780

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