public static final class DescriptorProtos.EnumDescriptorProto.Builder extends com.google.protobuf.GeneratedMessage.Builder<DescriptorProtos.EnumDescriptorProto.Builder> implements DescriptorProtos.EnumDescriptorProtoOrBuilder
google.protobuf.EnumDescriptorProto
Describes an enum type.
| Modifier and Type | Method and Description |
|---|---|
DescriptorProtos.EnumDescriptorProto.Builder |
addAllValue(java.lang.Iterable<? extends DescriptorProtos.EnumValueDescriptorProto> values)
repeated .google.protobuf.EnumValueDescriptorProto value = 2; |
DescriptorProtos.EnumDescriptorProto.Builder |
addValue(DescriptorProtos.EnumValueDescriptorProto.Builder builderForValue)
repeated .google.protobuf.EnumValueDescriptorProto value = 2; |
DescriptorProtos.EnumDescriptorProto.Builder |
addValue(DescriptorProtos.EnumValueDescriptorProto value)
repeated .google.protobuf.EnumValueDescriptorProto value = 2; |
DescriptorProtos.EnumDescriptorProto.Builder |
addValue(int index,
DescriptorProtos.EnumValueDescriptorProto.Builder builderForValue)
repeated .google.protobuf.EnumValueDescriptorProto value = 2; |
DescriptorProtos.EnumDescriptorProto.Builder |
addValue(int index,
DescriptorProtos.EnumValueDescriptorProto value)
repeated .google.protobuf.EnumValueDescriptorProto value = 2; |
DescriptorProtos.EnumValueDescriptorProto.Builder |
addValueBuilder()
repeated .google.protobuf.EnumValueDescriptorProto value = 2; |
DescriptorProtos.EnumValueDescriptorProto.Builder |
addValueBuilder(int index)
repeated .google.protobuf.EnumValueDescriptorProto value = 2; |
DescriptorProtos.EnumDescriptorProto |
build() |
DescriptorProtos.EnumDescriptorProto |
buildPartial() |
DescriptorProtos.EnumDescriptorProto.Builder |
clear() |
DescriptorProtos.EnumDescriptorProto.Builder |
clearName()
optional string name = 1; |
DescriptorProtos.EnumDescriptorProto.Builder |
clearOptions()
optional .google.protobuf.EnumOptions options = 3; |
DescriptorProtos.EnumDescriptorProto.Builder |
clearValue()
repeated .google.protobuf.EnumValueDescriptorProto value = 2; |
DescriptorProtos.EnumDescriptorProto.Builder |
clone() |
DescriptorProtos.EnumDescriptorProto |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
java.lang.String |
getName()
optional string name = 1; |
com.google.protobuf.ByteString |
getNameBytes()
optional string name = 1; |
DescriptorProtos.EnumOptions |
getOptions()
optional .google.protobuf.EnumOptions options = 3; |
DescriptorProtos.EnumOptions.Builder |
getOptionsBuilder()
optional .google.protobuf.EnumOptions options = 3; |
DescriptorProtos.EnumOptionsOrBuilder |
getOptionsOrBuilder()
optional .google.protobuf.EnumOptions options = 3; |
DescriptorProtos.EnumValueDescriptorProto |
getValue(int index)
repeated .google.protobuf.EnumValueDescriptorProto value = 2; |
DescriptorProtos.EnumValueDescriptorProto.Builder |
getValueBuilder(int index)
repeated .google.protobuf.EnumValueDescriptorProto value = 2; |
java.util.List<DescriptorProtos.EnumValueDescriptorProto.Builder> |
getValueBuilderList()
repeated .google.protobuf.EnumValueDescriptorProto value = 2; |
int |
getValueCount()
repeated .google.protobuf.EnumValueDescriptorProto value = 2; |
java.util.List<DescriptorProtos.EnumValueDescriptorProto> |
getValueList()
repeated .google.protobuf.EnumValueDescriptorProto value = 2; |
DescriptorProtos.EnumValueDescriptorProtoOrBuilder |
getValueOrBuilder(int index)
repeated .google.protobuf.EnumValueDescriptorProto value = 2; |
java.util.List<? extends DescriptorProtos.EnumValueDescriptorProtoOrBuilder> |
getValueOrBuilderList()
repeated .google.protobuf.EnumValueDescriptorProto value = 2; |
boolean |
hasName()
optional string name = 1; |
boolean |
hasOptions()
optional .google.protobuf.EnumOptions options = 3; |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
DescriptorProtos.EnumDescriptorProto.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
DescriptorProtos.EnumDescriptorProto.Builder |
mergeFrom(DescriptorProtos.EnumDescriptorProto other) |
DescriptorProtos.EnumDescriptorProto.Builder |
mergeFrom(com.google.protobuf.Message other) |
DescriptorProtos.EnumDescriptorProto.Builder |
mergeOptions(DescriptorProtos.EnumOptions value)
optional .google.protobuf.EnumOptions options = 3; |
DescriptorProtos.EnumDescriptorProto.Builder |
removeValue(int index)
repeated .google.protobuf.EnumValueDescriptorProto value = 2; |
DescriptorProtos.EnumDescriptorProto.Builder |
setName(java.lang.String value)
optional string name = 1; |
DescriptorProtos.EnumDescriptorProto.Builder |
setNameBytes(com.google.protobuf.ByteString value)
optional string name = 1; |
DescriptorProtos.EnumDescriptorProto.Builder |
setOptions(DescriptorProtos.EnumOptions.Builder builderForValue)
optional .google.protobuf.EnumOptions options = 3; |
DescriptorProtos.EnumDescriptorProto.Builder |
setOptions(DescriptorProtos.EnumOptions value)
optional .google.protobuf.EnumOptions options = 3; |
DescriptorProtos.EnumDescriptorProto.Builder |
setValue(int index,
DescriptorProtos.EnumValueDescriptorProto.Builder builderForValue)
repeated .google.protobuf.EnumValueDescriptorProto value = 2; |
DescriptorProtos.EnumDescriptorProto.Builder |
setValue(int index,
DescriptorProtos.EnumValueDescriptorProto value)
repeated .google.protobuf.EnumValueDescriptorProto value = 2; |
addRepeatedField, clearField, clearOneof, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isClean, markClean, mergeUnknownFields, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFieldsfindInitializationErrors, getInitializationErrorString, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, newUninitializedMessageExceptionpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<DescriptorProtos.EnumDescriptorProto.Builder>public DescriptorProtos.EnumDescriptorProto.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<DescriptorProtos.EnumDescriptorProto.Builder>public DescriptorProtos.EnumDescriptorProto.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessage.Builder<DescriptorProtos.EnumDescriptorProto.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<DescriptorProtos.EnumDescriptorProto.Builder>public DescriptorProtos.EnumDescriptorProto getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic DescriptorProtos.EnumDescriptorProto build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic DescriptorProtos.EnumDescriptorProto buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic DescriptorProtos.EnumDescriptorProto.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<DescriptorProtos.EnumDescriptorProto.Builder>public DescriptorProtos.EnumDescriptorProto.Builder mergeFrom(DescriptorProtos.EnumDescriptorProto other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<DescriptorProtos.EnumDescriptorProto.Builder>public DescriptorProtos.EnumDescriptorProto.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<DescriptorProtos.EnumDescriptorProto.Builder>java.io.IOExceptionpublic boolean hasName()
optional string name = 1;hasName in interface DescriptorProtos.EnumDescriptorProtoOrBuilderpublic java.lang.String getName()
optional string name = 1;getName in interface DescriptorProtos.EnumDescriptorProtoOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
optional string name = 1;getNameBytes in interface DescriptorProtos.EnumDescriptorProtoOrBuilderpublic DescriptorProtos.EnumDescriptorProto.Builder setName(java.lang.String value)
optional string name = 1;public DescriptorProtos.EnumDescriptorProto.Builder clearName()
optional string name = 1;public DescriptorProtos.EnumDescriptorProto.Builder setNameBytes(com.google.protobuf.ByteString value)
optional string name = 1;public java.util.List<DescriptorProtos.EnumValueDescriptorProto> getValueList()
repeated .google.protobuf.EnumValueDescriptorProto value = 2;getValueList in interface DescriptorProtos.EnumDescriptorProtoOrBuilderpublic int getValueCount()
repeated .google.protobuf.EnumValueDescriptorProto value = 2;getValueCount in interface DescriptorProtos.EnumDescriptorProtoOrBuilderpublic DescriptorProtos.EnumValueDescriptorProto getValue(int index)
repeated .google.protobuf.EnumValueDescriptorProto value = 2;getValue in interface DescriptorProtos.EnumDescriptorProtoOrBuilderpublic DescriptorProtos.EnumDescriptorProto.Builder setValue(int index, DescriptorProtos.EnumValueDescriptorProto value)
repeated .google.protobuf.EnumValueDescriptorProto value = 2;public DescriptorProtos.EnumDescriptorProto.Builder setValue(int index, DescriptorProtos.EnumValueDescriptorProto.Builder builderForValue)
repeated .google.protobuf.EnumValueDescriptorProto value = 2;public DescriptorProtos.EnumDescriptorProto.Builder addValue(DescriptorProtos.EnumValueDescriptorProto value)
repeated .google.protobuf.EnumValueDescriptorProto value = 2;public DescriptorProtos.EnumDescriptorProto.Builder addValue(int index, DescriptorProtos.EnumValueDescriptorProto value)
repeated .google.protobuf.EnumValueDescriptorProto value = 2;public DescriptorProtos.EnumDescriptorProto.Builder addValue(DescriptorProtos.EnumValueDescriptorProto.Builder builderForValue)
repeated .google.protobuf.EnumValueDescriptorProto value = 2;public DescriptorProtos.EnumDescriptorProto.Builder addValue(int index, DescriptorProtos.EnumValueDescriptorProto.Builder builderForValue)
repeated .google.protobuf.EnumValueDescriptorProto value = 2;public DescriptorProtos.EnumDescriptorProto.Builder addAllValue(java.lang.Iterable<? extends DescriptorProtos.EnumValueDescriptorProto> values)
repeated .google.protobuf.EnumValueDescriptorProto value = 2;public DescriptorProtos.EnumDescriptorProto.Builder clearValue()
repeated .google.protobuf.EnumValueDescriptorProto value = 2;public DescriptorProtos.EnumDescriptorProto.Builder removeValue(int index)
repeated .google.protobuf.EnumValueDescriptorProto value = 2;public DescriptorProtos.EnumValueDescriptorProto.Builder getValueBuilder(int index)
repeated .google.protobuf.EnumValueDescriptorProto value = 2;public DescriptorProtos.EnumValueDescriptorProtoOrBuilder getValueOrBuilder(int index)
repeated .google.protobuf.EnumValueDescriptorProto value = 2;getValueOrBuilder in interface DescriptorProtos.EnumDescriptorProtoOrBuilderpublic java.util.List<? extends DescriptorProtos.EnumValueDescriptorProtoOrBuilder> getValueOrBuilderList()
repeated .google.protobuf.EnumValueDescriptorProto value = 2;getValueOrBuilderList in interface DescriptorProtos.EnumDescriptorProtoOrBuilderpublic DescriptorProtos.EnumValueDescriptorProto.Builder addValueBuilder()
repeated .google.protobuf.EnumValueDescriptorProto value = 2;public DescriptorProtos.EnumValueDescriptorProto.Builder addValueBuilder(int index)
repeated .google.protobuf.EnumValueDescriptorProto value = 2;public java.util.List<DescriptorProtos.EnumValueDescriptorProto.Builder> getValueBuilderList()
repeated .google.protobuf.EnumValueDescriptorProto value = 2;public boolean hasOptions()
optional .google.protobuf.EnumOptions options = 3;hasOptions in interface DescriptorProtos.EnumDescriptorProtoOrBuilderpublic DescriptorProtos.EnumOptions getOptions()
optional .google.protobuf.EnumOptions options = 3;getOptions in interface DescriptorProtos.EnumDescriptorProtoOrBuilderpublic DescriptorProtos.EnumDescriptorProto.Builder setOptions(DescriptorProtos.EnumOptions value)
optional .google.protobuf.EnumOptions options = 3;public DescriptorProtos.EnumDescriptorProto.Builder setOptions(DescriptorProtos.EnumOptions.Builder builderForValue)
optional .google.protobuf.EnumOptions options = 3;public DescriptorProtos.EnumDescriptorProto.Builder mergeOptions(DescriptorProtos.EnumOptions value)
optional .google.protobuf.EnumOptions options = 3;public DescriptorProtos.EnumDescriptorProto.Builder clearOptions()
optional .google.protobuf.EnumOptions options = 3;public DescriptorProtos.EnumOptions.Builder getOptionsBuilder()
optional .google.protobuf.EnumOptions options = 3;public DescriptorProtos.EnumOptionsOrBuilder getOptionsOrBuilder()
optional .google.protobuf.EnumOptions options = 3;getOptionsOrBuilder in interface DescriptorProtos.EnumDescriptorProtoOrBuilder