Class: Google::Cloud::RecommendationEngine::V1beta1::PredictResponse::PredictionResult
- Inherits:
-
Object
- Object
- Google::Cloud::RecommendationEngine::V1beta1::PredictResponse::PredictionResult
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/recommendationengine/v1beta1/prediction_service.rb
Overview
PredictionResult represents the recommendation prediction results.
Defined Under Namespace
Classes: ItemMetadataEntry
Instance Attribute Summary collapse
-
#id ⇒ ::String
ID of the recommended catalog item.
-
#item_metadata ⇒ ::Google::Protobuf::Map{::String => ::Google::Protobuf::Value}
Additional item metadata / annotations.
Instance Attribute Details
#id ⇒ ::String
Returns ID of the recommended catalog item.
186 187 188 189 190 191 192 193 194 195 196 197 198 |
# File 'proto_docs/google/cloud/recommendationengine/v1beta1/prediction_service.rb', line 186 class PredictionResult include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::Google::Protobuf::Value] class ItemMetadataEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#item_metadata ⇒ ::Google::Protobuf::Map{::String => ::Google::Protobuf::Value}
Returns Additional item metadata / annotations.
Possible values:
catalogItem
: JSON representation of the catalogItem. Will be set ifreturnCatalogItem
is set to true inPredictRequest.params
.score
: Prediction score in double value. Will be set ifreturnItemScore
is set to true inPredictRequest.params
.
186 187 188 189 190 191 192 193 194 195 196 197 198 |
# File 'proto_docs/google/cloud/recommendationengine/v1beta1/prediction_service.rb', line 186 class PredictionResult include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::Google::Protobuf::Value] class ItemMetadataEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |