Package com.google.shopping.type
Class CustomAttribute.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<CustomAttribute.Builder>
com.google.protobuf.GeneratedMessage.Builder<CustomAttribute.Builder>
com.google.protobuf.GeneratedMessage.ExtendableBuilder<com.google.protobuf.GeneratedMessageV3,CustomAttribute.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<CustomAttribute.Builder>
com.google.shopping.type.CustomAttribute.Builder
- All Implemented Interfaces:
com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>
,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.GeneratedMessageV3.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.addRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) Subattributes within this attribute group.The name of the attribute.clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) The value of the attribute.clone()
static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
getGroupValues
(int index) Subattributes within this attribute group.getGroupValuesBuilder
(int index) Subattributes within this attribute group.Subattributes within this attribute group.int
Subattributes 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.ByteString
The name of the attribute.getValue()
The value of the attribute.com.google.protobuf.ByteString
The value of the attribute.boolean
hasName()
The name of the attribute.boolean
hasValue()
The value of the attribute.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeFrom
(CustomAttribute other) final CustomAttribute.Builder
mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) 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.setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) final CustomAttribute.Builder
setUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) The value of the attribute.setValueBytes
(com.google.protobuf.ByteString value) The value of the attribute.Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getParentForChildren
Methods inherited from class com.google.protobuf.GeneratedMessage.ExtendableBuilder
addExtension, clearExtension, extensionsAreInitialized, getAllFields, getExtension, getExtension, getExtensionCount, getField, getFieldBuilder, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, hasExtension, hasField, mergeExtensionFields, newBuilderForField, parseUnknownField, setExtension, setExtension
Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
getOneofFieldDescriptor, getUnknownFields, getUnknownFieldSetBuilder, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, onBuilt, onChanged, 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
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods 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.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Overrides:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<CustomAttribute.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<CustomAttribute.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.GeneratedMessage.Builder<CustomAttribute.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.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<CustomAttribute.Builder>
-
setField
public CustomAttribute.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<CustomAttribute.Builder>
-
clearField
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CustomAttribute.Builder>
-
clearOneof
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<CustomAttribute.Builder>
-
setRepeatedField
public CustomAttribute.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<CustomAttribute.Builder>
-
addRepeatedField
public CustomAttribute.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<CustomAttribute.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<CustomAttribute.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.ExtendableBuilder<com.google.protobuf.GeneratedMessageV3,
CustomAttribute.Builder>
-
mergeFrom
public CustomAttribute.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<CustomAttribute.Builder>
- Throws:
IOException
-
hasName
public boolean hasName()The name of the attribute.
optional string name = 1;
- Specified by:
hasName
in interfaceCustomAttributeOrBuilder
- Returns:
- Whether the name field is set.
-
getName
The name of the attribute.
optional string name = 1;
- Specified by:
getName
in interfaceCustomAttributeOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()The name of the attribute.
optional string name = 1;
- Specified by:
getNameBytes
in 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:
hasValue
in 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:
getValue
in 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:
getValueBytes
in 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:
getGroupValuesList
in 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:
getGroupValuesCount
in 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:
getGroupValues
in 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:
getGroupValuesOrBuilder
in 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:
getGroupValuesOrBuilderList
in 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;
-
setUnknownFields
public final CustomAttribute.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<CustomAttribute.Builder>
-
mergeUnknownFields
public final CustomAttribute.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<CustomAttribute.Builder>
-