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<BuilderT>
-
- com.google.protobuf.GeneratedMessage.ExtendableBuilder<com.google.protobuf.GeneratedMessageV3,BuilderT>
-
- 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
,java.lang.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 typegoogle.shopping.type.CustomAttribute
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CustomAttribute.Builder
addAllGroupValues(java.lang.Iterable<? extends CustomAttribute> values)
Subattributes within this attribute group.CustomAttribute.Builder
addGroupValues(int index, CustomAttribute value)
Subattributes within this attribute group.CustomAttribute.Builder
addGroupValues(int index, CustomAttribute.Builder builderForValue)
Subattributes within this attribute group.CustomAttribute.Builder
addGroupValues(CustomAttribute value)
Subattributes within this attribute group.CustomAttribute.Builder
addGroupValues(CustomAttribute.Builder builderForValue)
Subattributes within this attribute group.CustomAttribute.Builder
addGroupValuesBuilder()
Subattributes within this attribute group.CustomAttribute.Builder
addGroupValuesBuilder(int index)
Subattributes within this attribute group.CustomAttribute.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
CustomAttribute
build()
CustomAttribute
buildPartial()
CustomAttribute.Builder
clear()
CustomAttribute.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
CustomAttribute.Builder
clearGroupValues()
Subattributes within this attribute group.CustomAttribute.Builder
clearName()
The name of the attribute.CustomAttribute.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
CustomAttribute.Builder
clearValue()
The value of the attribute.CustomAttribute.Builder
clone()
CustomAttribute
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
CustomAttribute
getGroupValues(int index)
Subattributes within this attribute group.CustomAttribute.Builder
getGroupValuesBuilder(int index)
Subattributes within this attribute group.java.util.List<CustomAttribute.Builder>
getGroupValuesBuilderList()
Subattributes within this attribute group.int
getGroupValuesCount()
Subattributes within this attribute group.java.util.List<CustomAttribute>
getGroupValuesList()
Subattributes within this attribute group.CustomAttributeOrBuilder
getGroupValuesOrBuilder(int index)
Subattributes within this attribute group.java.util.List<? extends CustomAttributeOrBuilder>
getGroupValuesOrBuilderList()
Subattributes within this attribute group.java.lang.String
getName()
The name of the attribute.com.google.protobuf.ByteString
getNameBytes()
The name of the attribute.java.lang.String
getValue()
The value of the attribute.com.google.protobuf.ByteString
getValueBytes()
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
internalGetFieldAccessorTable()
boolean
isInitialized()
CustomAttribute.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
CustomAttribute.Builder
mergeFrom(com.google.protobuf.Message other)
CustomAttribute.Builder
mergeFrom(CustomAttribute other)
CustomAttribute.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
CustomAttribute.Builder
removeGroupValues(int index)
Subattributes within this attribute group.CustomAttribute.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
CustomAttribute.Builder
setGroupValues(int index, CustomAttribute value)
Subattributes within this attribute group.CustomAttribute.Builder
setGroupValues(int index, CustomAttribute.Builder builderForValue)
Subattributes within this attribute group.CustomAttribute.Builder
setName(java.lang.String value)
The name of the attribute.CustomAttribute.Builder
setNameBytes(com.google.protobuf.ByteString value)
The name of the attribute.CustomAttribute.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
CustomAttribute.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
CustomAttribute.Builder
setValue(java.lang.String value)
The value of the attribute.CustomAttribute.Builder
setValueBytes(com.google.protobuf.ByteString value)
The value of the attribute.-
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
-
-
-
-
Method Detail
-
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
public 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
public CustomAttribute 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
public CustomAttribute build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public CustomAttribute buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public CustomAttribute.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, java.lang.Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CustomAttribute.Builder>
-
clearField
public CustomAttribute.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<CustomAttribute.Builder>
-
clearOneof
public CustomAttribute.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<CustomAttribute.Builder>
-
setRepeatedField
public CustomAttribute.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.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, java.lang.Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CustomAttribute.Builder>
-
mergeFrom
public CustomAttribute.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<CustomAttribute.Builder>
-
mergeFrom
public CustomAttribute.Builder mergeFrom(CustomAttribute other)
-
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 java.io.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:
java.io.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
public java.lang.String 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
public CustomAttribute.Builder setName(java.lang.String value)
The name of the attribute.
optional string name = 1;
- Parameters:
value
- The name to set.- Returns:
- This builder for chaining.
-
clearName
public CustomAttribute.Builder clearName()
The name of the attribute.
optional string name = 1;
- Returns:
- This builder for chaining.
-
setNameBytes
public CustomAttribute.Builder setNameBytes(com.google.protobuf.ByteString value)
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
public java.lang.String 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
public CustomAttribute.Builder setValue(java.lang.String value)
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
public CustomAttribute.Builder 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
public CustomAttribute.Builder setValueBytes(com.google.protobuf.ByteString value)
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
public java.util.List<CustomAttribute> 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
public CustomAttribute getGroupValues(int index)
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
public CustomAttribute.Builder setGroupValues(int index, CustomAttribute value)
Subattributes within this attribute group. If `group_values` is not empty, `value` must be empty.
repeated .google.shopping.type.CustomAttribute group_values = 3;
-
setGroupValues
public CustomAttribute.Builder setGroupValues(int index, CustomAttribute.Builder builderForValue)
Subattributes within this attribute group. If `group_values` is not empty, `value` must be empty.
repeated .google.shopping.type.CustomAttribute group_values = 3;
-
addGroupValues
public CustomAttribute.Builder addGroupValues(CustomAttribute value)
Subattributes within this attribute group. If `group_values` is not empty, `value` must be empty.
repeated .google.shopping.type.CustomAttribute group_values = 3;
-
addGroupValues
public CustomAttribute.Builder addGroupValues(int index, CustomAttribute value)
Subattributes within this attribute group. If `group_values` is not empty, `value` must be empty.
repeated .google.shopping.type.CustomAttribute group_values = 3;
-
addGroupValues
public CustomAttribute.Builder addGroupValues(CustomAttribute.Builder builderForValue)
Subattributes within this attribute group. If `group_values` is not empty, `value` must be empty.
repeated .google.shopping.type.CustomAttribute group_values = 3;
-
addGroupValues
public CustomAttribute.Builder addGroupValues(int index, CustomAttribute.Builder builderForValue)
Subattributes within this attribute group. If `group_values` is not empty, `value` must be empty.
repeated .google.shopping.type.CustomAttribute group_values = 3;
-
addAllGroupValues
public CustomAttribute.Builder addAllGroupValues(java.lang.Iterable<? extends CustomAttribute> values)
Subattributes within this attribute group. If `group_values` is not empty, `value` must be empty.
repeated .google.shopping.type.CustomAttribute group_values = 3;
-
clearGroupValues
public CustomAttribute.Builder 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
public CustomAttribute.Builder removeGroupValues(int index)
Subattributes within this attribute group. If `group_values` is not empty, `value` must be empty.
repeated .google.shopping.type.CustomAttribute group_values = 3;
-
getGroupValuesBuilder
public CustomAttribute.Builder getGroupValuesBuilder(int index)
Subattributes within this attribute group. If `group_values` is not empty, `value` must be empty.
repeated .google.shopping.type.CustomAttribute group_values = 3;
-
getGroupValuesOrBuilder
public CustomAttributeOrBuilder getGroupValuesOrBuilder(int index)
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
public java.util.List<? extends CustomAttributeOrBuilder> 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
public CustomAttribute.Builder 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
public CustomAttribute.Builder addGroupValuesBuilder(int index)
Subattributes within this attribute group. If `group_values` is not empty, `value` must be empty.
repeated .google.shopping.type.CustomAttribute group_values = 3;
-
getGroupValuesBuilderList
public java.util.List<CustomAttribute.Builder> 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>
-
-