class Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1PredictResponsePredictionResult
PredictionResult represents the recommendation prediction results.
Attributes
id[RW]
ID of the recommended catalog item Corresponds to the JSON property `id` @return [String]
item_metadata[RW]
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`. Corresponds to the JSON property `itemMetadata` @return [Hash<String,Object>]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/recommendationengine_v1beta1/classes.rb, line 1133 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File lib/google/apis/recommendationengine_v1beta1/classes.rb, line 1138 def update!(**args) @id = args[:id] if args.key?(:id) @item_metadata = args[:item_metadata] if args.key?(:item_metadata) end