Class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaColorInfo
- Inherits:
-
Object
- Object
- Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaColorInfo
- 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 color information of a Product.
Instance Attribute Summary collapse
-
#color_families ⇒ Array<String>
The standard color families.
-
#colors ⇒ Array<String>
The color display names, which may be different from standard color family names, such as the color aliases used in the website frontend.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRetailV2alphaColorInfo
constructor
A new instance of GoogleCloudRetailV2alphaColorInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRetailV2alphaColorInfo
Returns a new instance of GoogleCloudRetailV2alphaColorInfo.
2226 2227 2228 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 2226 def initialize(**args) update!(**args) end |
Instance Attribute Details
#color_families ⇒ Array<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
2212 2213 2214 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 2212 def color_families @color_families end |
#colors ⇒ Array<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
2224 2225 2226 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 2224 def colors @colors end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2231 2232 2233 2234 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 2231 def update!(**args) @color_families = args[:color_families] if args.key?(:color_families) @colors = args[:colors] if args.key?(:colors) end |