Retail V2 API - Class Google::Cloud::Retail::V2::PredictResponse::PredictionResult (v0.10.0)

Reference documentation and code samples for the Retail V2 API class Google::Cloud::Retail::V2::PredictResponse::PredictionResult.

PredictionResult represents the recommendation prediction results.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#id

def id() -> ::String
Returns
  • (::String) — ID of the recommended product

#id=

def id=(value) -> ::String
Parameter
  • value (::String) — ID of the recommended product
Returns
  • (::String) — ID of the recommended product

#metadata

def metadata() -> ::Google::Protobuf::Map{::String => ::Google::Protobuf::Value}
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.

#metadata=

def metadata=(value) -> ::Google::Protobuf::Map{::String => ::Google::Protobuf::Value}
Parameter
  • value (::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.
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.