class Google::Apis::RetailV2::GoogleCloudRetailV2PredictResponsePredictionResult
PredictionResult represents the recommendation prediction results.
Attributes
id[RW]
ID of the recommended product Corresponds to the JSON property `id` @return [String]
metadata[RW]
Additional product metadata / annotations. Possible values: * `product`: JSON representation of the product. Will be set if `returnProduct` is set to true in `PredictRequest.params`. * `score`: Prediction score in double value. Will be set if `returnScore` is set to true in `PredictRequest.params`. Corresponds to the JSON property `metadata` @return [Hash<String,Object>]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/retail_v2/classes.rb, line 1399 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File lib/google/apis/retail_v2/classes.rb, line 1404 def update!(**args) @id = args[:id] if args.key?(:id) @metadata = args[:metadata] if args.key?(:metadata) end