Package com.google.cloud.retail.v2
Class ColorInfo.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ColorInfo.Builder>
-
- com.google.cloud.retail.v2.ColorInfo.Builder
-
- All Implemented Interfaces:
ColorInfoOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- ColorInfo
public static final class ColorInfo.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ColorInfo.Builder> implements ColorInfoOrBuilder
The color information of a [Product][google.cloud.retail.v2.Product].
Protobuf typegoogle.cloud.retail.v2.ColorInfo
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ColorInfo.Builder
addAllColorFamilies(Iterable<String> values)
The standard color families.ColorInfo.Builder
addAllColors(Iterable<String> values)
The color display names, which may be different from standard color family names, such as the color aliases used in the website frontend.ColorInfo.Builder
addColorFamilies(String value)
The standard color families.ColorInfo.Builder
addColorFamiliesBytes(com.google.protobuf.ByteString value)
The standard color families.ColorInfo.Builder
addColors(String value)
The color display names, which may be different from standard color family names, such as the color aliases used in the website frontend.ColorInfo.Builder
addColorsBytes(com.google.protobuf.ByteString value)
The color display names, which may be different from standard color family names, such as the color aliases used in the website frontend.ColorInfo.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ColorInfo
build()
ColorInfo
buildPartial()
ColorInfo.Builder
clear()
ColorInfo.Builder
clearColorFamilies()
The standard color families.ColorInfo.Builder
clearColors()
The color display names, which may be different from standard color family names, such as the color aliases used in the website frontend.ColorInfo.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
ColorInfo.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
ColorInfo.Builder
clone()
String
getColorFamilies(int index)
The standard color families.com.google.protobuf.ByteString
getColorFamiliesBytes(int index)
The standard color families.int
getColorFamiliesCount()
The standard color families.com.google.protobuf.ProtocolStringList
getColorFamiliesList()
The standard color families.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.com.google.protobuf.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.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.com.google.protobuf.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.ColorInfo
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
ColorInfo.Builder
mergeFrom(ColorInfo other)
ColorInfo.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
ColorInfo.Builder
mergeFrom(com.google.protobuf.Message other)
ColorInfo.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
ColorInfo.Builder
setColorFamilies(int index, String value)
The standard color families.ColorInfo.Builder
setColors(int index, String value)
The color display names, which may be different from standard color family names, such as the color aliases used in the website frontend.ColorInfo.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ColorInfo.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
ColorInfo.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<ColorInfo.Builder>
-
clear
public ColorInfo.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<ColorInfo.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<ColorInfo.Builder>
-
getDefaultInstanceForType
public ColorInfo getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public ColorInfo build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ColorInfo buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ColorInfo.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<ColorInfo.Builder>
-
setField
public ColorInfo.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ColorInfo.Builder>
-
clearField
public ColorInfo.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ColorInfo.Builder>
-
clearOneof
public ColorInfo.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<ColorInfo.Builder>
-
setRepeatedField
public ColorInfo.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ColorInfo.Builder>
-
addRepeatedField
public ColorInfo.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ColorInfo.Builder>
-
mergeFrom
public ColorInfo.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ColorInfo.Builder>
-
mergeFrom
public ColorInfo.Builder mergeFrom(ColorInfo other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<ColorInfo.Builder>
-
mergeFrom
public ColorInfo.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ColorInfo.Builder>
- Throws:
IOException
-
getColorFamiliesList
public com.google.protobuf.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](https://support.google.com/merchants/answer/6324487). Schema.org property [Product.color](https://schema.org/color).
repeated string color_families = 1;
- Specified by:
getColorFamiliesList
in interfaceColorInfoOrBuilder
- Returns:
- A list containing the colorFamilies.
-
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](https://support.google.com/merchants/answer/6324487). Schema.org property [Product.color](https://schema.org/color).
repeated string color_families = 1;
- Specified by:
getColorFamiliesCount
in interfaceColorInfoOrBuilder
- Returns:
- The count of colorFamilies.
-
getColorFamilies
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](https://support.google.com/merchants/answer/6324487). Schema.org property [Product.color](https://schema.org/color).
repeated string color_families = 1;
- Specified by:
getColorFamilies
in interfaceColorInfoOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The colorFamilies at the given index.
-
getColorFamiliesBytes
public com.google.protobuf.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](https://support.google.com/merchants/answer/6324487). Schema.org property [Product.color](https://schema.org/color).
repeated string color_families = 1;
- Specified by:
getColorFamiliesBytes
in interfaceColorInfoOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the colorFamilies at the given index.
-
setColorFamilies
public ColorInfo.Builder setColorFamilies(int index, String value)
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](https://support.google.com/merchants/answer/6324487). Schema.org property [Product.color](https://schema.org/color).
repeated string color_families = 1;
- Parameters:
index
- The index to set the value at.value
- The colorFamilies to set.- Returns:
- This builder for chaining.
-
addColorFamilies
public ColorInfo.Builder addColorFamilies(String value)
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](https://support.google.com/merchants/answer/6324487). Schema.org property [Product.color](https://schema.org/color).
repeated string color_families = 1;
- Parameters:
value
- The colorFamilies to add.- Returns:
- This builder for chaining.
-
addAllColorFamilies
public ColorInfo.Builder addAllColorFamilies(Iterable<String> values)
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](https://support.google.com/merchants/answer/6324487). Schema.org property [Product.color](https://schema.org/color).
repeated string color_families = 1;
- Parameters:
values
- The colorFamilies to add.- Returns:
- This builder for chaining.
-
clearColorFamilies
public ColorInfo.Builder clearColorFamilies()
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](https://support.google.com/merchants/answer/6324487). Schema.org property [Product.color](https://schema.org/color).
repeated string color_families = 1;
- Returns:
- This builder for chaining.
-
addColorFamiliesBytes
public ColorInfo.Builder addColorFamiliesBytes(com.google.protobuf.ByteString value)
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](https://support.google.com/merchants/answer/6324487). Schema.org property [Product.color](https://schema.org/color).
repeated string color_families = 1;
- Parameters:
value
- The bytes of the colorFamilies to add.- Returns:
- This builder for chaining.
-
getColorsList
public com.google.protobuf.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](https://support.google.com/merchants/answer/6324487). Schema.org property [Product.color](https://schema.org/color).
repeated string colors = 2;
- Specified by:
getColorsList
in interfaceColorInfoOrBuilder
- Returns:
- A list containing the colors.
-
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](https://support.google.com/merchants/answer/6324487). Schema.org property [Product.color](https://schema.org/color).
repeated string colors = 2;
- Specified by:
getColorsCount
in interfaceColorInfoOrBuilder
- Returns:
- The count of colors.
-
getColors
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](https://support.google.com/merchants/answer/6324487). Schema.org property [Product.color](https://schema.org/color).
repeated string colors = 2;
- Specified by:
getColors
in interfaceColorInfoOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The colors at the given index.
-
getColorsBytes
public com.google.protobuf.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](https://support.google.com/merchants/answer/6324487). Schema.org property [Product.color](https://schema.org/color).
repeated string colors = 2;
- Specified by:
getColorsBytes
in interfaceColorInfoOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the colors at the given index.
-
setColors
public ColorInfo.Builder setColors(int index, String value)
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](https://support.google.com/merchants/answer/6324487). Schema.org property [Product.color](https://schema.org/color).
repeated string colors = 2;
- Parameters:
index
- The index to set the value at.value
- The colors to set.- Returns:
- This builder for chaining.
-
addColors
public ColorInfo.Builder addColors(String value)
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](https://support.google.com/merchants/answer/6324487). Schema.org property [Product.color](https://schema.org/color).
repeated string colors = 2;
- Parameters:
value
- The colors to add.- Returns:
- This builder for chaining.
-
addAllColors
public ColorInfo.Builder addAllColors(Iterable<String> values)
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](https://support.google.com/merchants/answer/6324487). Schema.org property [Product.color](https://schema.org/color).
repeated string colors = 2;
- Parameters:
values
- The colors to add.- Returns:
- This builder for chaining.
-
clearColors
public ColorInfo.Builder clearColors()
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](https://support.google.com/merchants/answer/6324487). Schema.org property [Product.color](https://schema.org/color).
repeated string colors = 2;
- Returns:
- This builder for chaining.
-
addColorsBytes
public ColorInfo.Builder addColorsBytes(com.google.protobuf.ByteString value)
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](https://support.google.com/merchants/answer/6324487). Schema.org property [Product.color](https://schema.org/color).
repeated string colors = 2;
- Parameters:
value
- The bytes of the colors to add.- Returns:
- This builder for chaining.
-
setUnknownFields
public final ColorInfo.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ColorInfo.Builder>
-
mergeUnknownFields
public final ColorInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ColorInfo.Builder>
-
-