Class: Google::Cloud::RecommendationEngine::V1beta1::PredictResponse::PredictionResult

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/recommendationengine/v1beta1/prediction_service.rb

Overview

PredictionResult represents the recommendation prediction results.

Defined Under Namespace

Classes: ItemMetadataEntry

Instance Attribute Summary collapse

Instance Attribute Details

#id::String

Returns ID of the recommended catalog item.

Returns:

  • (::String)

    ID of the recommended catalog item



186
187
188
189
190
191
192
193
194
195
196
197
198
# File 'proto_docs/google/cloud/recommendationengine/v1beta1/prediction_service.rb', line 186

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

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::Google::Protobuf::Value]
  class ItemMetadataEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#item_metadata::Google::Protobuf::Map{::String => ::Google::Protobuf::Value}

Returns Additional item metadata / annotations.

Possible values:

  • catalogItem: JSON representation of the catalogItem. Will be set if returnCatalogItem is set to true in PredictRequest.params.
  • score: Prediction score in double value. Will be set if returnItemScore is set to true in PredictRequest.params.

Returns:

  • (::Google::Protobuf::Map{::String => ::Google::Protobuf::Value})

    Additional item metadata / annotations.

    Possible values:

    • catalogItem: JSON representation of the catalogItem. Will be set if returnCatalogItem is set to true in PredictRequest.params.
    • score: Prediction score in double value. Will be set if returnItemScore is set to true in PredictRequest.params.


186
187
188
189
190
191
192
193
194
195
196
197
198
# File 'proto_docs/google/cloud/recommendationengine/v1beta1/prediction_service.rb', line 186

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

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::Google::Protobuf::Value]
  class ItemMetadataEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end