Class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCatalog

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

Overview

The catalog configuration.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRetailV2betaCatalog

Returns a new instance of GoogleCloudRetailV2betaCatalog.



1333
1334
1335
# File 'lib/google/apis/retail_v2beta/classes.rb', line 1333

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

Instance Attribute Details

#display_nameString

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

Returns:

  • (String)


1320
1321
1322
# File 'lib/google/apis/retail_v2beta/classes.rb', line 1320

def display_name
  @display_name
end

#nameString

Required. Immutable. The fully qualified resource name of the catalog. Corresponds to the JSON property name

Returns:

  • (String)


1325
1326
1327
# File 'lib/google/apis/retail_v2beta/classes.rb', line 1325

def name
  @name
end

#product_level_configGoogle::Apis::RetailV2beta::GoogleCloudRetailV2betaProductLevelConfig

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



1331
1332
1333
# File 'lib/google/apis/retail_v2beta/classes.rb', line 1331

def product_level_config
  @product_level_config
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1338
1339
1340
1341
1342
# File 'lib/google/apis/retail_v2beta/classes.rb', line 1338

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