Class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaAttributesConfig

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

Catalog level attribute config.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRetailV2betaAttributesConfig

Returns a new instance of GoogleCloudRetailV2betaAttributesConfig.



2662
2663
2664
# File 'lib/google/apis/retail_v2beta/classes.rb', line 2662

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

Instance Attribute Details

#attribute_config_levelString

Output only. The AttributeConfigLevel used for this catalog. Corresponds to the JSON property attributeConfigLevel

Returns:

  • (String)


2645
2646
2647
# File 'lib/google/apis/retail_v2beta/classes.rb', line 2645

def attribute_config_level
  @attribute_config_level
end

#catalog_attributesHash<String,Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCatalogAttribute>

Enable attribute(s) config at catalog level. For example, indexable, dynamic_facetable, or searchable for each attribute. The key is catalog attribute's name. For example: color, brands, attributes.custom_attribute , such as attributes.xyz. The maximum number of catalog attributes allowed in a request is 1000. Corresponds to the JSON property catalogAttributes



2654
2655
2656
# File 'lib/google/apis/retail_v2beta/classes.rb', line 2654

def catalog_attributes
  @catalog_attributes
end

#nameString

Required. Immutable. The fully qualified resource name of the attribute config. Format: projects/*/locations/*/catalogs/*/attributesConfig Corresponds to the JSON property name

Returns:

  • (String)


2660
2661
2662
# File 'lib/google/apis/retail_v2beta/classes.rb', line 2660

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2667
2668
2669
2670
2671
# File 'lib/google/apis/retail_v2beta/classes.rb', line 2667

def update!(**args)
  @attribute_config_level = args[:attribute_config_level] if args.key?(:attribute_config_level)
  @catalog_attributes = args[:catalog_attributes] if args.key?(:catalog_attributes)
  @name = args[:name] if args.key?(:name)
end