Class: Google::Cloud::Retail::V2::PredictResponse::PredictionResult

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

Overview

PredictionResult represents the recommendation prediction results.

Defined Under Namespace

Classes: MetadataEntry

Instance Attribute Summary collapse

Instance Attribute Details

#id::String

Returns ID of the recommended product.

Returns:

  • (::String)

    ID of the recommended product



220
221
222
223
224
225
226
227
228
229
230
231
232
# File 'proto_docs/google/cloud/retail/v2/prediction_service.rb', line 220

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

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

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

Returns Additional product metadata / annotations.

Possible values:

  • product: JSON representation of the product. Is set if returnProduct is set to true in PredictRequest.params.
  • score: Prediction score in double value. Is set if returnScore is set to true in PredictRequest.params.

Returns:

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

    Additional product metadata / annotations.

    Possible values:

    • product: JSON representation of the product. Is set if returnProduct is set to true in PredictRequest.params.
    • score: Prediction score in double value. Is set if returnScore is set to true in PredictRequest.params.


220
221
222
223
224
225
226
227
228
229
230
231
232
# File 'proto_docs/google/cloud/retail/v2/prediction_service.rb', line 220

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

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