Recommendations AI V1beta1 API - Class Google::Cloud::RecommendationEngine::V1beta1::PredictResponse::PredictionResult (v0.8.2)

Reference documentation and code samples for the Recommendations AI V1beta1 API class Google::Cloud::RecommendationEngine::V1beta1::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 catalog item

#id=

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

#item_metadata

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

#item_metadata=

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