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.BuilderaddAllColorFamilies(Iterable<String> values)The standard color families.ColorInfo.BuilderaddAllColors(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.BuilderaddColorFamilies(String value)The standard color families.ColorInfo.BuilderaddColorFamiliesBytes(com.google.protobuf.ByteString value)The standard color families.ColorInfo.BuilderaddColors(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.BuilderaddColorsBytes(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.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ColorInfobuild()ColorInfobuildPartial()ColorInfo.Builderclear()ColorInfo.BuilderclearColorFamilies()The standard color families.ColorInfo.BuilderclearColors()The color display names, which may be different from standard color family names, such as the color aliases used in the website frontend.ColorInfo.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)ColorInfo.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)ColorInfo.Builderclone()StringgetColorFamilies(int index)The standard color families.com.google.protobuf.ByteStringgetColorFamiliesBytes(int index)The standard color families.intgetColorFamiliesCount()The standard color families.com.google.protobuf.ProtocolStringListgetColorFamiliesList()The standard color families.StringgetColors(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.ByteStringgetColorsBytes(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.intgetColorsCount()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.ProtocolStringListgetColorsList()The color display names, which may be different from standard color family names, such as the color aliases used in the website frontend.ColorInfogetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()ColorInfo.BuildermergeFrom(ColorInfo other)ColorInfo.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)ColorInfo.BuildermergeFrom(com.google.protobuf.Message other)ColorInfo.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)ColorInfo.BuildersetColorFamilies(int index, String value)The standard color families.ColorInfo.BuildersetColors(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.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ColorInfo.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)ColorInfo.BuildersetUnknownFields(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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<ColorInfo.Builder>
-
clear
public ColorInfo.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<ColorInfo.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<ColorInfo.Builder>
-
getDefaultInstanceForType
public ColorInfo getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public ColorInfo build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ColorInfo buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ColorInfo.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<ColorInfo.Builder>
-
setField
public ColorInfo.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ColorInfo.Builder>
-
clearField
public ColorInfo.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ColorInfo.Builder>
-
clearOneof
public ColorInfo.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<ColorInfo.Builder>
-
setRepeatedField
public ColorInfo.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ColorInfo.Builder>
-
addRepeatedField
public ColorInfo.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ColorInfo.Builder>
-
mergeFrom
public ColorInfo.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ColorInfo.Builder>
-
mergeFrom
public ColorInfo.Builder mergeFrom(ColorInfo other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin 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:
getColorFamiliesListin 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:
getColorFamiliesCountin 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:
getColorFamiliesin 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:
getColorFamiliesBytesin 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:
getColorsListin 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:
getColorsCountin 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:
getColorsin 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:
getColorsBytesin 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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ColorInfo.Builder>
-
mergeUnknownFields
public final ColorInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ColorInfo.Builder>
-
-