public final class ColorInfo extends GeneratedMessageV3 implements ColorInfoOrBuilder
The color information of a Product.
Protobuf type google.cloud.retail.v2alpha.ColorInfo
Static Fields
COLORS_FIELD_NUMBER
public static final int COLORS_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
COLOR_FAMILIES_FIELD_NUMBER
public static final int COLOR_FAMILIES_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
getDefaultInstance()
public static ColorInfo getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static ColorInfo.Builder newBuilder()
newBuilder(ColorInfo prototype)
public static ColorInfo.Builder newBuilder(ColorInfo prototype)
public static ColorInfo parseDelimitedFrom(InputStream input)
public static ColorInfo parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static ColorInfo parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ColorInfo parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static ColorInfo parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ColorInfo parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ColorInfo parseFrom(CodedInputStream input)
public static ColorInfo parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static ColorInfo parseFrom(InputStream input)
public static ColorInfo parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static ColorInfo parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ColorInfo parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<ColorInfo> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
getColorFamilies(int index)
public String getColorFamilies(int index)
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.
repeated string color_families = 1;
Parameter |
---|
Name | Description |
index | int
The index of the element to return.
|
Returns |
---|
Type | Description |
String | The colorFamilies at the given index.
|
getColorFamiliesBytes(int index)
public ByteString getColorFamiliesBytes(int index)
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.
repeated string color_families = 1;
Parameter |
---|
Name | Description |
index | int
The index of the value to return.
|
Returns |
---|
Type | Description |
ByteString | The bytes of the colorFamilies at the given index.
|
getColorFamiliesCount()
public int getColorFamiliesCount()
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.
repeated string color_families = 1;
Returns |
---|
Type | Description |
int | The count of colorFamilies.
|
getColorFamiliesList()
public ProtocolStringList getColorFamiliesList()
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.
repeated string color_families = 1;
getColors(int index)
public String getColors(int index)
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.
repeated string colors = 2;
Parameter |
---|
Name | Description |
index | int
The index of the element to return.
|
Returns |
---|
Type | Description |
String | The colors at the given index.
|
getColorsBytes(int index)
public ByteString getColorsBytes(int index)
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.
repeated string colors = 2;
Parameter |
---|
Name | Description |
index | int
The index of the value to return.
|
Returns |
---|
Type | Description |
ByteString | The bytes of the colors at the given index.
|
getColorsCount()
public int getColorsCount()
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.
repeated string colors = 2;
Returns |
---|
Type | Description |
int | The count of colors.
|
getColorsList()
public ProtocolStringList getColorsList()
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.
repeated string colors = 2;
getDefaultInstanceForType()
public ColorInfo getDefaultInstanceForType()
getParserForType()
public Parser<ColorInfo> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Overrides
hashCode()
Returns |
---|
Type | Description |
int | |
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public ColorInfo.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected ColorInfo.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
toBuilder()
public ColorInfo.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides