Retail v2 API - Class ColorInfo (2.9.0)

public sealed class ColorInfo : IMessage<ColorInfo>, IEquatable<ColorInfo>, IDeepCloneable<ColorInfo>, IBufferMessage, IMessage

Reference documentation and code samples for the Retail v2 API class ColorInfo.

The color information of a [Product][google.cloud.retail.v2.Product].

Inheritance

object > ColorInfo

Namespace

Google.Cloud.Retail.V2

Assembly

Google.Cloud.Retail.V2.dll

Constructors

ColorInfo()

public ColorInfo()

ColorInfo(ColorInfo)

public ColorInfo(ColorInfo other)
Parameter
Name Description
other ColorInfo

Properties

ColorFamilies

public RepeatedField<string> ColorFamilies { get; }

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.

Property Value
Type Description
RepeatedFieldstring

Colors

public RepeatedField<string> Colors { get; }

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.

Property Value
Type Description
RepeatedFieldstring