Package com.google.shopping.type
Class CustomAttribute.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CustomAttribute.Builder>
com.google.shopping.type.CustomAttribute.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,CustomAttributeOrBuilder,Cloneable
- Enclosing class:
- CustomAttribute
public static final class CustomAttribute.Builder
extends com.google.protobuf.GeneratedMessage.Builder<CustomAttribute.Builder>
implements CustomAttributeOrBuilder
A message that represents custom attributes. Exactly one of `value` or `group_values` must not be empty.Protobuf type
google.shopping.type.CustomAttribute-
Method Summary
Modifier and TypeMethodDescriptionaddAllGroupValues(Iterable<? extends CustomAttribute> values) Subattributes within this attribute group.addGroupValues(int index, CustomAttribute value) Subattributes within this attribute group.addGroupValues(int index, CustomAttribute.Builder builderForValue) Subattributes within this attribute group.addGroupValues(CustomAttribute value) Subattributes within this attribute group.addGroupValues(CustomAttribute.Builder builderForValue) Subattributes within this attribute group.Subattributes within this attribute group.addGroupValuesBuilder(int index) Subattributes within this attribute group.build()clear()Subattributes within this attribute group.The name of the attribute.The value of the attribute.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetGroupValues(int index) Subattributes within this attribute group.getGroupValuesBuilder(int index) Subattributes within this attribute group.Subattributes within this attribute group.intSubattributes within this attribute group.Subattributes within this attribute group.getGroupValuesOrBuilder(int index) Subattributes within this attribute group.List<? extends CustomAttributeOrBuilder>Subattributes within this attribute group.getName()The name of the attribute.com.google.protobuf.ByteStringThe name of the attribute.getValue()The value of the attribute.com.google.protobuf.ByteStringThe value of the attribute.booleanhasName()The name of the attribute.booleanhasValue()The value of the attribute.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(CustomAttribute other) removeGroupValues(int index) Subattributes within this attribute group.setGroupValues(int index, CustomAttribute value) Subattributes within this attribute group.setGroupValues(int index, CustomAttribute.Builder builderForValue) Subattributes within this attribute group.The name of the attribute.setNameBytes(com.google.protobuf.ByteString value) The name of the attribute.The value of the attribute.setValueBytes(com.google.protobuf.ByteString value) The value of the attribute.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<CustomAttribute.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<CustomAttribute.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.GeneratedMessage.Builder<CustomAttribute.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CustomAttribute.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<CustomAttribute.Builder>
-
mergeFrom
public CustomAttribute.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<CustomAttribute.Builder>- Throws:
IOException
-
hasName
public boolean hasName()The name of the attribute.
optional string name = 1;- Specified by:
hasNamein interfaceCustomAttributeOrBuilder- Returns:
- Whether the name field is set.
-
getName
The name of the attribute.
optional string name = 1;- Specified by:
getNamein interfaceCustomAttributeOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()The name of the attribute.
optional string name = 1;- Specified by:
getNameBytesin interfaceCustomAttributeOrBuilder- Returns:
- The bytes for name.
-
setName
The name of the attribute.
optional string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
The name of the attribute.
optional string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
The name of the attribute.
optional string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
hasValue
public boolean hasValue()The value of the attribute. If `value` is not empty, `group_values` must be empty.
optional string value = 2;- Specified by:
hasValuein interfaceCustomAttributeOrBuilder- Returns:
- Whether the value field is set.
-
getValue
The value of the attribute. If `value` is not empty, `group_values` must be empty.
optional string value = 2;- Specified by:
getValuein interfaceCustomAttributeOrBuilder- Returns:
- The value.
-
getValueBytes
public com.google.protobuf.ByteString getValueBytes()The value of the attribute. If `value` is not empty, `group_values` must be empty.
optional string value = 2;- Specified by:
getValueBytesin interfaceCustomAttributeOrBuilder- Returns:
- The bytes for value.
-
setValue
The value of the attribute. If `value` is not empty, `group_values` must be empty.
optional string value = 2;- Parameters:
value- The value to set.- Returns:
- This builder for chaining.
-
clearValue
The value of the attribute. If `value` is not empty, `group_values` must be empty.
optional string value = 2;- Returns:
- This builder for chaining.
-
setValueBytes
The value of the attribute. If `value` is not empty, `group_values` must be empty.
optional string value = 2;- Parameters:
value- The bytes for value to set.- Returns:
- This builder for chaining.
-
getGroupValuesList
Subattributes within this attribute group. If `group_values` is not empty, `value` must be empty.
repeated .google.shopping.type.CustomAttribute group_values = 3;- Specified by:
getGroupValuesListin interfaceCustomAttributeOrBuilder
-
getGroupValuesCount
public int getGroupValuesCount()Subattributes within this attribute group. If `group_values` is not empty, `value` must be empty.
repeated .google.shopping.type.CustomAttribute group_values = 3;- Specified by:
getGroupValuesCountin interfaceCustomAttributeOrBuilder
-
getGroupValues
Subattributes within this attribute group. If `group_values` is not empty, `value` must be empty.
repeated .google.shopping.type.CustomAttribute group_values = 3;- Specified by:
getGroupValuesin interfaceCustomAttributeOrBuilder
-
setGroupValues
Subattributes within this attribute group. If `group_values` is not empty, `value` must be empty.
repeated .google.shopping.type.CustomAttribute group_values = 3; -
setGroupValues
Subattributes within this attribute group. If `group_values` is not empty, `value` must be empty.
repeated .google.shopping.type.CustomAttribute group_values = 3; -
addGroupValues
Subattributes within this attribute group. If `group_values` is not empty, `value` must be empty.
repeated .google.shopping.type.CustomAttribute group_values = 3; -
addGroupValues
Subattributes within this attribute group. If `group_values` is not empty, `value` must be empty.
repeated .google.shopping.type.CustomAttribute group_values = 3; -
addGroupValues
Subattributes within this attribute group. If `group_values` is not empty, `value` must be empty.
repeated .google.shopping.type.CustomAttribute group_values = 3; -
addGroupValues
Subattributes within this attribute group. If `group_values` is not empty, `value` must be empty.
repeated .google.shopping.type.CustomAttribute group_values = 3; -
addAllGroupValues
Subattributes within this attribute group. If `group_values` is not empty, `value` must be empty.
repeated .google.shopping.type.CustomAttribute group_values = 3; -
clearGroupValues
Subattributes within this attribute group. If `group_values` is not empty, `value` must be empty.
repeated .google.shopping.type.CustomAttribute group_values = 3; -
removeGroupValues
Subattributes within this attribute group. If `group_values` is not empty, `value` must be empty.
repeated .google.shopping.type.CustomAttribute group_values = 3; -
getGroupValuesBuilder
Subattributes within this attribute group. If `group_values` is not empty, `value` must be empty.
repeated .google.shopping.type.CustomAttribute group_values = 3; -
getGroupValuesOrBuilder
Subattributes within this attribute group. If `group_values` is not empty, `value` must be empty.
repeated .google.shopping.type.CustomAttribute group_values = 3;- Specified by:
getGroupValuesOrBuilderin interfaceCustomAttributeOrBuilder
-
getGroupValuesOrBuilderList
Subattributes within this attribute group. If `group_values` is not empty, `value` must be empty.
repeated .google.shopping.type.CustomAttribute group_values = 3;- Specified by:
getGroupValuesOrBuilderListin interfaceCustomAttributeOrBuilder
-
addGroupValuesBuilder
Subattributes within this attribute group. If `group_values` is not empty, `value` must be empty.
repeated .google.shopping.type.CustomAttribute group_values = 3; -
addGroupValuesBuilder
Subattributes within this attribute group. If `group_values` is not empty, `value` must be empty.
repeated .google.shopping.type.CustomAttribute group_values = 3; -
getGroupValuesBuilderList
Subattributes within this attribute group. If `group_values` is not empty, `value` must be empty.
repeated .google.shopping.type.CustomAttribute group_values = 3;
-