Class: Google::Cloud::Retail::V2::CompleteQueryResponse::CompletionResult

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/retail/v2/completion_service.rb

Overview

Resource that represents completion results.

Defined Under Namespace

Classes: AttributesEntry

Instance Attribute Summary collapse

Instance Attribute Details

#attributes::Google::Protobuf::Map{::String => ::Google::Cloud::Retail::V2::CustomAttribute}

Returns Custom attributes for the suggestion term.

  • For user-data, the attributes are additional custom attributes ingested through BigQuery.

  • For cloud-retail, the attributes are product attributes generated by Cloud Retail. It requires UserEvent.product_details is imported properly.

Returns:

  • (::Google::Protobuf::Map{::String => ::Google::Cloud::Retail::V2::CustomAttribute})

    Custom attributes for the suggestion term.

    • For user-data, the attributes are additional custom attributes ingested through BigQuery.

    • For cloud-retail, the attributes are product attributes generated by Cloud Retail. It requires UserEvent.product_details is imported properly.



185
186
187
188
189
190
191
192
193
194
195
196
197
# File 'proto_docs/google/cloud/retail/v2/completion_service.rb', line 185

class CompletionResult
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::Google::Cloud::Retail::V2::CustomAttribute]
  class AttributesEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#suggestion::String

Returns The suggestion for the query.

Returns:

  • (::String)

    The suggestion for the query.



185
186
187
188
189
190
191
192
193
194
195
196
197
# File 'proto_docs/google/cloud/retail/v2/completion_service.rb', line 185

class CompletionResult
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::Google::Cloud::Retail::V2::CustomAttribute]
  class AttributesEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end