Class: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1CatalogItemLevelConfig
- Inherits:
-
Object
- Object
- Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1CatalogItemLevelConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/recommendationengine_v1beta1/classes.rb,
lib/google/apis/recommendationengine_v1beta1/representations.rb,
lib/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
-
#event_item_level ⇒ String
Optional.
-
#predict_item_level ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRecommendationengineV1beta1CatalogItemLevelConfig
constructor
A new instance of GoogleCloudRecommendationengineV1beta1CatalogItemLevelConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRecommendationengineV1beta1CatalogItemLevelConfig
Returns a new instance of GoogleCloudRecommendationengineV1beta1CatalogItemLevelConfig.
376 377 378 |
# File 'lib/google/apis/recommendationengine_v1beta1/classes.rb', line 376 def initialize(**args) update!(**args) end |
Instance Attribute Details
#event_item_level ⇒ String
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
367 368 369 |
# File 'lib/google/apis/recommendationengine_v1beta1/classes.rb', line 367 def event_item_level @event_item_level end |
#predict_item_level ⇒ String
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
374 375 376 |
# File 'lib/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 'lib/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 |