Class: Google::Cloud::Retail::V2::PredictResponse::PredictionResult
- Inherits:
-
Object
- Object
- Google::Cloud::Retail::V2::PredictResponse::PredictionResult
- 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
-
#id ⇒ ::String
ID of the recommended product.
-
#metadata ⇒ ::Google::Protobuf::Map{::String => ::Google::Protobuf::Value}
Additional product metadata / annotations.
Instance Attribute Details
#id ⇒ ::String
Returns 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 ifreturnProduct
is set to true inPredictRequest.params
.score
: Prediction score in double value. Is set ifreturnScore
is set to true inPredictRequest.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 |