Class: Google::Apis::RetailV2::GoogleCloudRetailV2Catalog
- Inherits:
-
Object
- Object
- Google::Apis::RetailV2::GoogleCloudRetailV2Catalog
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/retail_v2/classes.rb,
lib/google/apis/retail_v2/representations.rb,
lib/google/apis/retail_v2/representations.rb
Overview
The catalog configuration.
Instance Attribute Summary collapse
-
#display_name ⇒ String
Required.
-
#name ⇒ String
Required.
-
#product_level_config ⇒ Google::Apis::RetailV2::GoogleCloudRetailV2ProductLevelConfig
Configures what level the product should be uploaded with regards to how users will be send events and how predictions will be made.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRetailV2Catalog
constructor
A new instance of GoogleCloudRetailV2Catalog.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRetailV2Catalog
Returns a new instance of GoogleCloudRetailV2Catalog.
581 582 583 |
# File 'lib/google/apis/retail_v2/classes.rb', line 581 def initialize(**args) update!(**args) end |
Instance Attribute Details
#display_name ⇒ String
Required. Immutable. The catalog display name. This field must be a UTF-8
encoded string with a length limit of 128 characters. Otherwise, an
INVALID_ARGUMENT error is returned.
Corresponds to the JSON property displayName
568 569 570 |
# File 'lib/google/apis/retail_v2/classes.rb', line 568 def display_name @display_name end |
#name ⇒ String
Required. Immutable. The fully qualified resource name of the catalog.
Corresponds to the JSON property name
573 574 575 |
# File 'lib/google/apis/retail_v2/classes.rb', line 573 def name @name end |
#product_level_config ⇒ Google::Apis::RetailV2::GoogleCloudRetailV2ProductLevelConfig
Configures what level the product should be uploaded with regards to how users
will be send events and how predictions will be made.
Corresponds to the JSON property productLevelConfig
579 580 581 |
# File 'lib/google/apis/retail_v2/classes.rb', line 579 def product_level_config @product_level_config end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
586 587 588 589 590 |
# File 'lib/google/apis/retail_v2/classes.rb', line 586 def update!(**args) @display_name = args[:display_name] if args.key?(:display_name) @name = args[:name] if args.key?(:name) @product_level_config = args[:product_level_config] if args.key?(:product_level_config) end |