Class DescriptorProtos.EnumDescriptorProto.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<DescriptorProtos.EnumDescriptorProto.Builder>
com.google.protobuf.GeneratedMessage.Builder<DescriptorProtos.EnumDescriptorProto.Builder>
com.google.protobuf.generated.DescriptorProtos.EnumDescriptorProto.Builder
- All Implemented Interfaces:
DescriptorProtos.EnumDescriptorProtoOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
DescriptorProtos.EnumDescriptorProto
public static final class DescriptorProtos.EnumDescriptorProto.Builder
extends com.google.protobuf.GeneratedMessage.Builder<DescriptorProtos.EnumDescriptorProto.Builder>
implements DescriptorProtos.EnumDescriptorProtoOrBuilder
Describes an enum type.Protobuf type
google.protobuf.EnumDescriptorProto
-
Method Summary
Modifier and TypeMethodDescriptionaddAllReservedName
(Iterable<String> values) Reserved enum value names, which may not be reused.addAllReservedRange
(Iterable<? extends DescriptorProtos.EnumDescriptorProto.EnumReservedRange> values) Range of reserved numeric values.addAllValue
(Iterable<? extends DescriptorProtos.EnumValueDescriptorProto> values) repeated .google.protobuf.EnumValueDescriptorProto value = 2;
addReservedName
(String value) Reserved enum value names, which may not be reused.addReservedNameBytes
(com.google.protobuf.ByteString value) Reserved enum value names, which may not be reused.addReservedRange
(int index, DescriptorProtos.EnumDescriptorProto.EnumReservedRange value) Range of reserved numeric values.addReservedRange
(int index, DescriptorProtos.EnumDescriptorProto.EnumReservedRange.Builder builderForValue) Range of reserved numeric values.Range of reserved numeric values.Range of reserved numeric values.Range of reserved numeric values.addReservedRangeBuilder
(int index) Range of reserved numeric values.addValue
(int index, DescriptorProtos.EnumValueDescriptorProto value) repeated .google.protobuf.EnumValueDescriptorProto value = 2;
addValue
(int index, DescriptorProtos.EnumValueDescriptorProto.Builder builderForValue) repeated .google.protobuf.EnumValueDescriptorProto value = 2;
repeated .google.protobuf.EnumValueDescriptorProto value = 2;
addValue
(DescriptorProtos.EnumValueDescriptorProto.Builder builderForValue) repeated .google.protobuf.EnumValueDescriptorProto value = 2;
repeated .google.protobuf.EnumValueDescriptorProto value = 2;
addValueBuilder
(int index) repeated .google.protobuf.EnumValueDescriptorProto value = 2;
build()
clear()
optional string name = 1;
optional .google.protobuf.EnumOptions options = 3;
Reserved enum value names, which may not be reused.Range of reserved numeric values.repeated .google.protobuf.EnumValueDescriptorProto value = 2;
static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
getName()
optional string name = 1;
com.google.protobuf.ByteString
optional string name = 1;
optional .google.protobuf.EnumOptions options = 3;
optional .google.protobuf.EnumOptions options = 3;
optional .google.protobuf.EnumOptions options = 3;
getReservedName
(int index) Reserved enum value names, which may not be reused.com.google.protobuf.ByteString
getReservedNameBytes
(int index) Reserved enum value names, which may not be reused.int
Reserved enum value names, which may not be reused.com.google.protobuf.ProtocolStringList
Reserved enum value names, which may not be reused.getReservedRange
(int index) Range of reserved numeric values.getReservedRangeBuilder
(int index) Range of reserved numeric values.Range of reserved numeric values.int
Range of reserved numeric values.Range of reserved numeric values.getReservedRangeOrBuilder
(int index) Range of reserved numeric values.Range of reserved numeric values.getValue
(int index) repeated .google.protobuf.EnumValueDescriptorProto value = 2;
getValueBuilder
(int index) repeated .google.protobuf.EnumValueDescriptorProto value = 2;
repeated .google.protobuf.EnumValueDescriptorProto value = 2;
int
repeated .google.protobuf.EnumValueDescriptorProto value = 2;
repeated .google.protobuf.EnumValueDescriptorProto value = 2;
getValueOrBuilder
(int index) repeated .google.protobuf.EnumValueDescriptorProto value = 2;
repeated .google.protobuf.EnumValueDescriptorProto value = 2;
boolean
hasName()
optional string name = 1;
boolean
optional .google.protobuf.EnumOptions options = 3;
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
final boolean
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) optional .google.protobuf.EnumOptions options = 3;
removeReservedRange
(int index) Range of reserved numeric values.removeValue
(int index) repeated .google.protobuf.EnumValueDescriptorProto value = 2;
optional string name = 1;
setNameBytes
(com.google.protobuf.ByteString value) optional string name = 1;
optional .google.protobuf.EnumOptions options = 3;
setOptions
(DescriptorProtos.EnumOptions.Builder builderForValue) optional .google.protobuf.EnumOptions options = 3;
setReservedName
(int index, String value) Reserved enum value names, which may not be reused.setReservedRange
(int index, DescriptorProtos.EnumDescriptorProto.EnumReservedRange value) Range of reserved numeric values.setReservedRange
(int index, DescriptorProtos.EnumDescriptorProto.EnumReservedRange.Builder builderForValue) Range of reserved numeric values.setValue
(int index, DescriptorProtos.EnumValueDescriptorProto value) repeated .google.protobuf.EnumValueDescriptorProto value = 2;
setValue
(int index, DescriptorProtos.EnumValueDescriptorProto.Builder builderForValue) repeated .google.protobuf.EnumValueDescriptorProto value = 2;
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, 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.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage.Builder<DescriptorProtos.EnumDescriptorProto.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.GeneratedMessage.Builder<DescriptorProtos.EnumDescriptorProto.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<DescriptorProtos.EnumDescriptorProto.Builder>
-
getDefaultInstanceForType
- 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
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<DescriptorProtos.EnumDescriptorProto.Builder>
-
mergeFrom
public DescriptorProtos.EnumDescriptorProto.Builder mergeFrom(DescriptorProtos.EnumDescriptorProto other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.Builder<DescriptorProtos.EnumDescriptorProto.Builder>
-
mergeFrom
public DescriptorProtos.EnumDescriptorProto.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<DescriptorProtos.EnumDescriptorProto.Builder>
- Throws:
IOException
-
hasName
public boolean hasName()optional string name = 1;
- Specified by:
hasName
in interfaceDescriptorProtos.EnumDescriptorProtoOrBuilder
- Returns:
- Whether the name field is set.
-
getName
optional string name = 1;
- Specified by:
getName
in interfaceDescriptorProtos.EnumDescriptorProtoOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()optional string name = 1;
- Specified by:
getNameBytes
in interfaceDescriptorProtos.EnumDescriptorProtoOrBuilder
- Returns:
- The bytes for name.
-
setName
optional string name = 1;
- Parameters:
value
- The name to set.- Returns:
- This builder for chaining.
-
clearName
optional string name = 1;
- Returns:
- This builder for chaining.
-
setNameBytes
public DescriptorProtos.EnumDescriptorProto.Builder setNameBytes(com.google.protobuf.ByteString value) optional string name = 1;
- Parameters:
value
- The bytes for name to set.- Returns:
- This builder for chaining.
-
getValueList
repeated .google.protobuf.EnumValueDescriptorProto value = 2;
- Specified by:
getValueList
in interfaceDescriptorProtos.EnumDescriptorProtoOrBuilder
-
getValueCount
public int getValueCount()repeated .google.protobuf.EnumValueDescriptorProto value = 2;
- Specified by:
getValueCount
in interfaceDescriptorProtos.EnumDescriptorProtoOrBuilder
-
getValue
repeated .google.protobuf.EnumValueDescriptorProto value = 2;
- Specified by:
getValue
in interfaceDescriptorProtos.EnumDescriptorProtoOrBuilder
-
setValue
public DescriptorProtos.EnumDescriptorProto.Builder setValue(int index, DescriptorProtos.EnumValueDescriptorProto value) repeated .google.protobuf.EnumValueDescriptorProto value = 2;
-
setValue
public DescriptorProtos.EnumDescriptorProto.Builder setValue(int index, DescriptorProtos.EnumValueDescriptorProto.Builder builderForValue) repeated .google.protobuf.EnumValueDescriptorProto value = 2;
-
addValue
public DescriptorProtos.EnumDescriptorProto.Builder addValue(DescriptorProtos.EnumValueDescriptorProto value) repeated .google.protobuf.EnumValueDescriptorProto value = 2;
-
addValue
public DescriptorProtos.EnumDescriptorProto.Builder addValue(int index, DescriptorProtos.EnumValueDescriptorProto value) repeated .google.protobuf.EnumValueDescriptorProto value = 2;
-
addValue
public DescriptorProtos.EnumDescriptorProto.Builder addValue(DescriptorProtos.EnumValueDescriptorProto.Builder builderForValue) repeated .google.protobuf.EnumValueDescriptorProto value = 2;
-
addValue
public DescriptorProtos.EnumDescriptorProto.Builder addValue(int index, DescriptorProtos.EnumValueDescriptorProto.Builder builderForValue) repeated .google.protobuf.EnumValueDescriptorProto value = 2;
-
addAllValue
public DescriptorProtos.EnumDescriptorProto.Builder addAllValue(Iterable<? extends DescriptorProtos.EnumValueDescriptorProto> values) repeated .google.protobuf.EnumValueDescriptorProto value = 2;
-
clearValue
repeated .google.protobuf.EnumValueDescriptorProto value = 2;
-
removeValue
repeated .google.protobuf.EnumValueDescriptorProto value = 2;
-
getValueBuilder
repeated .google.protobuf.EnumValueDescriptorProto value = 2;
-
getValueOrBuilder
repeated .google.protobuf.EnumValueDescriptorProto value = 2;
- Specified by:
getValueOrBuilder
in interfaceDescriptorProtos.EnumDescriptorProtoOrBuilder
-
getValueOrBuilderList
repeated .google.protobuf.EnumValueDescriptorProto value = 2;
- Specified by:
getValueOrBuilderList
in interfaceDescriptorProtos.EnumDescriptorProtoOrBuilder
-
addValueBuilder
repeated .google.protobuf.EnumValueDescriptorProto value = 2;
-
addValueBuilder
repeated .google.protobuf.EnumValueDescriptorProto value = 2;
-
getValueBuilderList
repeated .google.protobuf.EnumValueDescriptorProto value = 2;
-
hasOptions
public boolean hasOptions()optional .google.protobuf.EnumOptions options = 3;
- Specified by:
hasOptions
in interfaceDescriptorProtos.EnumDescriptorProtoOrBuilder
- Returns:
- Whether the options field is set.
-
getOptions
optional .google.protobuf.EnumOptions options = 3;
- Specified by:
getOptions
in interfaceDescriptorProtos.EnumDescriptorProtoOrBuilder
- Returns:
- The options.
-
setOptions
optional .google.protobuf.EnumOptions options = 3;
-
setOptions
public DescriptorProtos.EnumDescriptorProto.Builder setOptions(DescriptorProtos.EnumOptions.Builder builderForValue) optional .google.protobuf.EnumOptions options = 3;
-
mergeOptions
public DescriptorProtos.EnumDescriptorProto.Builder mergeOptions(DescriptorProtos.EnumOptions value) optional .google.protobuf.EnumOptions options = 3;
-
clearOptions
optional .google.protobuf.EnumOptions options = 3;
-
getOptionsBuilder
optional .google.protobuf.EnumOptions options = 3;
-
getOptionsOrBuilder
optional .google.protobuf.EnumOptions options = 3;
- Specified by:
getOptionsOrBuilder
in interfaceDescriptorProtos.EnumDescriptorProtoOrBuilder
-
getReservedRangeList
Range of reserved numeric values. Reserved numeric values may not be used by enum values in the same enum declaration. Reserved ranges may not overlap.
repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;
- Specified by:
getReservedRangeList
in interfaceDescriptorProtos.EnumDescriptorProtoOrBuilder
-
getReservedRangeCount
public int getReservedRangeCount()Range of reserved numeric values. Reserved numeric values may not be used by enum values in the same enum declaration. Reserved ranges may not overlap.
repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;
- Specified by:
getReservedRangeCount
in interfaceDescriptorProtos.EnumDescriptorProtoOrBuilder
-
getReservedRange
Range of reserved numeric values. Reserved numeric values may not be used by enum values in the same enum declaration. Reserved ranges may not overlap.
repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;
- Specified by:
getReservedRange
in interfaceDescriptorProtos.EnumDescriptorProtoOrBuilder
-
setReservedRange
public DescriptorProtos.EnumDescriptorProto.Builder setReservedRange(int index, DescriptorProtos.EnumDescriptorProto.EnumReservedRange value) Range of reserved numeric values. Reserved numeric values may not be used by enum values in the same enum declaration. Reserved ranges may not overlap.
repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;
-
setReservedRange
public DescriptorProtos.EnumDescriptorProto.Builder setReservedRange(int index, DescriptorProtos.EnumDescriptorProto.EnumReservedRange.Builder builderForValue) Range of reserved numeric values. Reserved numeric values may not be used by enum values in the same enum declaration. Reserved ranges may not overlap.
repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;
-
addReservedRange
public DescriptorProtos.EnumDescriptorProto.Builder addReservedRange(DescriptorProtos.EnumDescriptorProto.EnumReservedRange value) Range of reserved numeric values. Reserved numeric values may not be used by enum values in the same enum declaration. Reserved ranges may not overlap.
repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;
-
addReservedRange
public DescriptorProtos.EnumDescriptorProto.Builder addReservedRange(int index, DescriptorProtos.EnumDescriptorProto.EnumReservedRange value) Range of reserved numeric values. Reserved numeric values may not be used by enum values in the same enum declaration. Reserved ranges may not overlap.
repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;
-
addReservedRange
public DescriptorProtos.EnumDescriptorProto.Builder addReservedRange(DescriptorProtos.EnumDescriptorProto.EnumReservedRange.Builder builderForValue) Range of reserved numeric values. Reserved numeric values may not be used by enum values in the same enum declaration. Reserved ranges may not overlap.
repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;
-
addReservedRange
public DescriptorProtos.EnumDescriptorProto.Builder addReservedRange(int index, DescriptorProtos.EnumDescriptorProto.EnumReservedRange.Builder builderForValue) Range of reserved numeric values. Reserved numeric values may not be used by enum values in the same enum declaration. Reserved ranges may not overlap.
repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;
-
addAllReservedRange
public DescriptorProtos.EnumDescriptorProto.Builder addAllReservedRange(Iterable<? extends DescriptorProtos.EnumDescriptorProto.EnumReservedRange> values) Range of reserved numeric values. Reserved numeric values may not be used by enum values in the same enum declaration. Reserved ranges may not overlap.
repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;
-
clearReservedRange
Range of reserved numeric values. Reserved numeric values may not be used by enum values in the same enum declaration. Reserved ranges may not overlap.
repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;
-
removeReservedRange
Range of reserved numeric values. Reserved numeric values may not be used by enum values in the same enum declaration. Reserved ranges may not overlap.
repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;
-
getReservedRangeBuilder
public DescriptorProtos.EnumDescriptorProto.EnumReservedRange.Builder getReservedRangeBuilder(int index) Range of reserved numeric values. Reserved numeric values may not be used by enum values in the same enum declaration. Reserved ranges may not overlap.
repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;
-
getReservedRangeOrBuilder
public DescriptorProtos.EnumDescriptorProto.EnumReservedRangeOrBuilder getReservedRangeOrBuilder(int index) Range of reserved numeric values. Reserved numeric values may not be used by enum values in the same enum declaration. Reserved ranges may not overlap.
repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;
- Specified by:
getReservedRangeOrBuilder
in interfaceDescriptorProtos.EnumDescriptorProtoOrBuilder
-
getReservedRangeOrBuilderList
public List<? extends DescriptorProtos.EnumDescriptorProto.EnumReservedRangeOrBuilder> getReservedRangeOrBuilderList()Range of reserved numeric values. Reserved numeric values may not be used by enum values in the same enum declaration. Reserved ranges may not overlap.
repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;
- Specified by:
getReservedRangeOrBuilderList
in interfaceDescriptorProtos.EnumDescriptorProtoOrBuilder
-
addReservedRangeBuilder
Range of reserved numeric values. Reserved numeric values may not be used by enum values in the same enum declaration. Reserved ranges may not overlap.
repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;
-
addReservedRangeBuilder
public DescriptorProtos.EnumDescriptorProto.EnumReservedRange.Builder addReservedRangeBuilder(int index) Range of reserved numeric values. Reserved numeric values may not be used by enum values in the same enum declaration. Reserved ranges may not overlap.
repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;
-
getReservedRangeBuilderList
public List<DescriptorProtos.EnumDescriptorProto.EnumReservedRange.Builder> getReservedRangeBuilderList()Range of reserved numeric values. Reserved numeric values may not be used by enum values in the same enum declaration. Reserved ranges may not overlap.
repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;
-
getReservedNameList
public com.google.protobuf.ProtocolStringList getReservedNameList()Reserved enum value names, which may not be reused. A given name may only be reserved once.
repeated string reserved_name = 5;
- Specified by:
getReservedNameList
in interfaceDescriptorProtos.EnumDescriptorProtoOrBuilder
- Returns:
- A list containing the reservedName.
-
getReservedNameCount
public int getReservedNameCount()Reserved enum value names, which may not be reused. A given name may only be reserved once.
repeated string reserved_name = 5;
- Specified by:
getReservedNameCount
in interfaceDescriptorProtos.EnumDescriptorProtoOrBuilder
- Returns:
- The count of reservedName.
-
getReservedName
Reserved enum value names, which may not be reused. A given name may only be reserved once.
repeated string reserved_name = 5;
- Specified by:
getReservedName
in interfaceDescriptorProtos.EnumDescriptorProtoOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The reservedName at the given index.
-
getReservedNameBytes
public com.google.protobuf.ByteString getReservedNameBytes(int index) Reserved enum value names, which may not be reused. A given name may only be reserved once.
repeated string reserved_name = 5;
- Specified by:
getReservedNameBytes
in interfaceDescriptorProtos.EnumDescriptorProtoOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the reservedName at the given index.
-
setReservedName
Reserved enum value names, which may not be reused. A given name may only be reserved once.
repeated string reserved_name = 5;
- Parameters:
index
- The index to set the value at.value
- The reservedName to set.- Returns:
- This builder for chaining.
-
addReservedName
Reserved enum value names, which may not be reused. A given name may only be reserved once.
repeated string reserved_name = 5;
- Parameters:
value
- The reservedName to add.- Returns:
- This builder for chaining.
-
addAllReservedName
Reserved enum value names, which may not be reused. A given name may only be reserved once.
repeated string reserved_name = 5;
- Parameters:
values
- The reservedName to add.- Returns:
- This builder for chaining.
-
clearReservedName
Reserved enum value names, which may not be reused. A given name may only be reserved once.
repeated string reserved_name = 5;
- Returns:
- This builder for chaining.
-
addReservedNameBytes
public DescriptorProtos.EnumDescriptorProto.Builder addReservedNameBytes(com.google.protobuf.ByteString value) Reserved enum value names, which may not be reused. A given name may only be reserved once.
repeated string reserved_name = 5;
- Parameters:
value
- The bytes of the reservedName to add.- Returns:
- This builder for chaining.
-