class Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1PredictResponse

Response message for predict method.

Attributes

dry_run[RW]

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

dry_run?[RW]

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

items_missing_in_catalog[RW]

IDs of items in the request that were missing from the catalog. Corresponds to the JSON property `itemsMissingInCatalog` @return [Array<String>]

metadata[RW]

Additional domain specific prediction response metadata. Corresponds to the JSON property `metadata` @return [Hash<String,Object>]

next_page_token[RW]

If empty, the list is complete. If nonempty, the token to pass to the next request's PredictRequest.page_token. Corresponds to the JSON property `nextPageToken` @return [String]

recommendation_token[RW]

A unique recommendation token. This should be included in the user event logs resulting from this recommendation, which enables accurate attribution of recommendation model performance. Corresponds to the JSON property `recommendationToken` @return [String]

results[RW]

A list of recommended items. The order represents the ranking (from the most relevant item to the least). Corresponds to the JSON property `results` @return [Array<Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1PredictResponsePredictionResult>]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/recommendationengine_v1beta1/classes.rb, line 1100
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 1105
def update!(**args)
  @dry_run = args[:dry_run] if args.key?(:dry_run)
  @items_missing_in_catalog = args[:items_missing_in_catalog] if args.key?(:items_missing_in_catalog)
  @metadata = args[:metadata] if args.key?(:metadata)
  @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
  @recommendation_token = args[:recommendation_token] if args.key?(:recommendation_token)
  @results = args[:results] if args.key?(:results)
end