Class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaColorInfo

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 color information of a Product.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRetailV2betaColorInfo

Returns a new instance of GoogleCloudRetailV2betaColorInfo.



3249
3250
3251
# File 'lib/google/apis/retail_v2beta/classes.rb', line 3249

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

Instance Attribute Details

#color_familiesArray<String>

The standard color families. Strongly recommended to use the following standard color groups: "Red", "Pink", "Orange", "Yellow", "Purple", "Green", " Cyan", "Blue", "Brown", "White", "Gray", "Black" and "Mixed". Normally it is expected to have only 1 color family. May consider using single "Mixed" instead of multiple values. A maximum of 5 values are allowed. Each value must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Google Merchant Center property color. Schema.org property Product.color. Corresponds to the JSON property colorFamilies

Returns:

  • (Array<String>)


3235
3236
3237
# File 'lib/google/apis/retail_v2beta/classes.rb', line 3235

def color_families
  @color_families
end

#colorsArray<String>

The color display names, which may be different from standard color family names, such as the color aliases used in the website frontend. Normally it is expected to have only 1 color. May consider using single "Mixed" instead of multiple values. A maximum of 75 colors are allowed. Each value must be a UTF- 8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Google Merchant Center property color. Schema.org property Product.color. Corresponds to the JSON property colors

Returns:

  • (Array<String>)


3247
3248
3249
# File 'lib/google/apis/retail_v2beta/classes.rb', line 3247

def colors
  @colors
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3254
3255
3256
3257
# File 'lib/google/apis/retail_v2beta/classes.rb', line 3254

def update!(**args)
  @color_families = args[:color_families] if args.key?(:color_families)
  @colors = args[:colors] if args.key?(:colors)
end