class Google::Apis::RetailV2beta::GoogleCloudRetailV2betaPredictResponse

Response message for predict method.

Attributes

attribution_token[RW]

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]

missing_ids[RW]

IDs of products in the request that were missing from the inventory. Corresponds to the JSON property `missingIds` @return [Array<String>]

results[RW]

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::RetailV2beta::GoogleCloudRetailV2betaPredictResponsePredictionResult>]

validate_only[RW]

True if the validateOnly property was set in the request. Corresponds to the JSON property `validateOnly` @return [Boolean]

validate_only?[RW]

True if the validateOnly property was set in the request. Corresponds to the JSON property `validateOnly` @return [Boolean]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/retail_v2beta/classes.rb, line 2251
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_v2beta/classes.rb, line 2256
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