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 ifreturnProduct
is set to true inPredictRequest.params
.score
: Prediction score in double value. Is set ifreturnScore
is set to true inPredictRequest.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 ifreturnProduct
is set to true inPredictRequest.params
.score
: Prediction score in double value. Is set ifreturnScore
is set to true inPredictRequest.params
.
Returns
-
(::Google::Protobuf::Map{::String => ::Google::Protobuf::Value}) —
Additional product metadata / annotations.
Possible values:
product
: JSON representation of the product. Is set ifreturnProduct
is set to true inPredictRequest.params
.score
: Prediction score in double value. Is set ifreturnScore
is set to true inPredictRequest.params
.