Class: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1CatalogItemLevelConfig

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/recommendationengine_v1beta1/classes.rb,
generated/google/apis/recommendationengine_v1beta1/representations.rb,
generated/google/apis/recommendationengine_v1beta1/representations.rb

Overview

Configures the catalog level that users send events to, and the level at which predictions are made.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRecommendationengineV1beta1CatalogItemLevelConfig

Returns a new instance of GoogleCloudRecommendationengineV1beta1CatalogItemLevelConfig.



376
377
378
# File 'generated/google/apis/recommendationengine_v1beta1/classes.rb', line 376

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#event_item_levelString

Optional. Level of the catalog at which events are uploaded. See https://cloud. google.com/recommendations-ai/docs/catalog#catalog-levels for more details. Corresponds to the JSON property eventItemLevel

Returns:

  • (String)


367
368
369
# File 'generated/google/apis/recommendationengine_v1beta1/classes.rb', line 367

def event_item_level
  @event_item_level
end

#predict_item_levelString

Optional. Level of the catalog at which predictions are made. See https:// cloud.google.com/recommendations-ai/docs/catalog#catalog-levels for more details. Corresponds to the JSON property predictItemLevel

Returns:

  • (String)


374
375
376
# File 'generated/google/apis/recommendationengine_v1beta1/classes.rb', line 374

def predict_item_level
  @predict_item_level
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



381
382
383
384
# File 'generated/google/apis/recommendationengine_v1beta1/classes.rb', line 381

def update!(**args)
  @event_item_level = args[:event_item_level] if args.key?(:event_item_level)
  @predict_item_level = args[:predict_item_level] if args.key?(:predict_item_level)
end