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, setUnknownFields
findInitializationErrors, getInitializationErrorString, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, newUninitializedMessageException
public 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.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessage.Builder<DescriptorProtos.EnumDescriptorProto.Builder>
public DescriptorProtos.EnumDescriptorProto.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessage.Builder<DescriptorProtos.EnumDescriptorProto.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessage.Builder<DescriptorProtos.EnumDescriptorProto.Builder>
public DescriptorProtos.EnumDescriptorProto getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public DescriptorProtos.EnumDescriptorProto build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public DescriptorProtos.EnumDescriptorProto buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public DescriptorProtos.EnumDescriptorProto.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
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.MessageLiteOrBuilder
isInitialized
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.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<DescriptorProtos.EnumDescriptorProto.Builder>
java.io.IOException
public boolean hasName()
optional string name = 1;
hasName
in interface DescriptorProtos.EnumDescriptorProtoOrBuilder
public java.lang.String getName()
optional string name = 1;
getName
in interface DescriptorProtos.EnumDescriptorProtoOrBuilder
public com.google.protobuf.ByteString getNameBytes()
optional string name = 1;
getNameBytes
in interface DescriptorProtos.EnumDescriptorProtoOrBuilder
public 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.EnumDescriptorProtoOrBuilder
public int getValueCount()
repeated .google.protobuf.EnumValueDescriptorProto value = 2;
getValueCount
in interface DescriptorProtos.EnumDescriptorProtoOrBuilder
public DescriptorProtos.EnumValueDescriptorProto getValue(int index)
repeated .google.protobuf.EnumValueDescriptorProto value = 2;
getValue
in interface DescriptorProtos.EnumDescriptorProtoOrBuilder
public 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.EnumDescriptorProtoOrBuilder
public java.util.List<? extends DescriptorProtos.EnumValueDescriptorProtoOrBuilder> getValueOrBuilderList()
repeated .google.protobuf.EnumValueDescriptorProto value = 2;
getValueOrBuilderList
in interface DescriptorProtos.EnumDescriptorProtoOrBuilder
public 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.EnumDescriptorProtoOrBuilder
public DescriptorProtos.EnumOptions getOptions()
optional .google.protobuf.EnumOptions options = 3;
getOptions
in interface DescriptorProtos.EnumDescriptorProtoOrBuilder
public 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