class Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaPredictResponse
Response message for predict method.
Attributes
A unique attribution token. This should be included in the UserEvent logs resulting from this recommendation, which enables accurate attribution of recommendation model performance. Corresponds to the JSON property `attributionToken` @return [String]
IDs of products in the request that were missing from the inventory. Corresponds to the JSON property `missingIds` @return [Array<String>]
A list of recommended products. The order represents the ranking (from the most relevant product to the least). Corresponds to the JSON property `results` @return [Array<Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaPredictResponsePredictionResult>]
True if the validateOnly property was set in the request. Corresponds to the JSON property `validateOnly` @return [Boolean]
True if the validateOnly property was set in the request. Corresponds to the JSON property `validateOnly` @return [Boolean]
Public Class Methods
# File lib/google/apis/retail_v2alpha/classes.rb, line 1889 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/retail_v2alpha/classes.rb, line 1894 def update!(**args) @attribution_token = args[:attribution_token] if args.key?(:attribution_token) @missing_ids = args[:missing_ids] if args.key?(:missing_ids) @results = args[:results] if args.key?(:results) @validate_only = args[:validate_only] if args.key?(:validate_only) end