Class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCatalog

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

Overview

The catalog configuration.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRetailV2alphaCatalog

Returns a new instance of GoogleCloudRetailV2alphaCatalog.



1894
1895
1896
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 1894

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)


1875
1876
1877
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 1875

def display_name
  @display_name
end

#merchant_center_linking_configGoogle::Apis::RetailV2alpha::GoogleCloudRetailV2alphaMerchantCenterLinkingConfig

Configures Merchant Center linking. Links contained in the config will be used to sync data from a Merchant Center account to a Cloud Retail branch. Corresponds to the JSON property merchantCenterLinkingConfig



1881
1882
1883
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 1881

def merchant_center_linking_config
  @merchant_center_linking_config
end

#nameString

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

Returns:

  • (String)


1886
1887
1888
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 1886

def name
  @name
end

#product_level_configGoogle::Apis::RetailV2alpha::GoogleCloudRetailV2alphaProductLevelConfig

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



1892
1893
1894
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 1892

def product_level_config
  @product_level_config
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1899
1900
1901
1902
1903
1904
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 1899

def update!(**args)
  @display_name = args[:display_name] if args.key?(:display_name)
  @merchant_center_linking_config = args[:merchant_center_linking_config] if args.key?(:merchant_center_linking_config)
  @name = args[:name] if args.key?(:name)
  @product_level_config = args[:product_level_config] if args.key?(:product_level_config)
end