Package com.google.protobuf
Class DescriptorProtos.EnumDescriptorProto
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite<MessageType,BuilderType>
-
- com.google.protobuf.GeneratedMessageLite<DescriptorProtos.EnumDescriptorProto,DescriptorProtos.EnumDescriptorProto.Builder>
-
- com.google.protobuf.DescriptorProtos.EnumDescriptorProto
-
- All Implemented Interfaces:
DescriptorProtos.EnumDescriptorProtoOrBuilder
,MessageLite
,MessageLiteOrBuilder
- Enclosing class:
- DescriptorProtos
public static final class DescriptorProtos.EnumDescriptorProto extends GeneratedMessageLite<DescriptorProtos.EnumDescriptorProto,DescriptorProtos.EnumDescriptorProto.Builder> implements DescriptorProtos.EnumDescriptorProtoOrBuilder
Protobuf typegoogle.protobuf.EnumDescriptorProto
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DescriptorProtos.EnumDescriptorProto.Builder
Protobuf typegoogle.protobuf.EnumDescriptorProto
static class
DescriptorProtos.EnumDescriptorProto.EnumReservedRange
Protobuf typegoogle.protobuf.EnumDescriptorProto.EnumReservedRange
static interface
DescriptorProtos.EnumDescriptorProto.EnumReservedRangeOrBuilder
-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageLite
GeneratedMessageLite.DefaultInstanceBasedParser<T extends GeneratedMessageLite<T,?>>, GeneratedMessageLite.ExtendableBuilder<MessageType extends GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageLite.ExtendableMessage<MessageType extends GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageLite.GeneratedExtension<ContainingType extends MessageLite,Type>, GeneratedMessageLite.MethodToInvoke, GeneratedMessageLite.SerializedForm
-
Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
AbstractMessageLite.InternalOneOfEnum
-
-
Field Summary
Fields Modifier and Type Field Description static int
NAME_FIELD_NUMBER
static int
OPTIONS_FIELD_NUMBER
static int
RESERVED_NAME_FIELD_NUMBER
static int
RESERVED_RANGE_FIELD_NUMBER
static int
VALUE_FIELD_NUMBER
-
Fields inherited from class com.google.protobuf.GeneratedMessageLite
unknownFields
-
Fields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.Object
dynamicMethod(GeneratedMessageLite.MethodToInvoke method, java.lang.Object arg0, java.lang.Object arg1)
A method that implements different types of operations described inGeneratedMessageLite.MethodToInvoke
.static DescriptorProtos.EnumDescriptorProto
getDefaultInstance()
java.lang.String
getName()
optional string name = 1 [json_name = "name"];
ByteString
getNameBytes()
optional string name = 1 [json_name = "name"];
DescriptorProtos.EnumOptions
getOptions()
optional .google.protobuf.EnumOptions options = 3 [json_name = "options"];
java.lang.String
getReservedName(int index)
repeated string reserved_name = 5 [json_name = "reservedName"];
ByteString
getReservedNameBytes(int index)
repeated string reserved_name = 5 [json_name = "reservedName"];
int
getReservedNameCount()
repeated string reserved_name = 5 [json_name = "reservedName"];
java.util.List<java.lang.String>
getReservedNameList()
repeated string reserved_name = 5 [json_name = "reservedName"];
DescriptorProtos.EnumDescriptorProto.EnumReservedRange
getReservedRange(int index)
repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4 [json_name = "reservedRange"];
int
getReservedRangeCount()
repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4 [json_name = "reservedRange"];
java.util.List<DescriptorProtos.EnumDescriptorProto.EnumReservedRange>
getReservedRangeList()
repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4 [json_name = "reservedRange"];
DescriptorProtos.EnumDescriptorProto.EnumReservedRangeOrBuilder
getReservedRangeOrBuilder(int index)
repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4 [json_name = "reservedRange"];
java.util.List<? extends DescriptorProtos.EnumDescriptorProto.EnumReservedRangeOrBuilder>
getReservedRangeOrBuilderList()
repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4 [json_name = "reservedRange"];
DescriptorProtos.EnumValueDescriptorProto
getValue(int index)
repeated .google.protobuf.EnumValueDescriptorProto value = 2 [json_name = "value"];
int
getValueCount()
repeated .google.protobuf.EnumValueDescriptorProto value = 2 [json_name = "value"];
java.util.List<DescriptorProtos.EnumValueDescriptorProto>
getValueList()
repeated .google.protobuf.EnumValueDescriptorProto value = 2 [json_name = "value"];
DescriptorProtos.EnumValueDescriptorProtoOrBuilder
getValueOrBuilder(int index)
repeated .google.protobuf.EnumValueDescriptorProto value = 2 [json_name = "value"];
java.util.List<? extends DescriptorProtos.EnumValueDescriptorProtoOrBuilder>
getValueOrBuilderList()
repeated .google.protobuf.EnumValueDescriptorProto value = 2 [json_name = "value"];
boolean
hasName()
optional string name = 1 [json_name = "name"];
boolean
hasOptions()
optional .google.protobuf.EnumOptions options = 3 [json_name = "options"];
static DescriptorProtos.EnumDescriptorProto.Builder
newBuilder()
static DescriptorProtos.EnumDescriptorProto.Builder
newBuilder(DescriptorProtos.EnumDescriptorProto prototype)
static DescriptorProtos.EnumDescriptorProto
parseDelimitedFrom(java.io.InputStream input)
static DescriptorProtos.EnumDescriptorProto
parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry)
static DescriptorProtos.EnumDescriptorProto
parseFrom(byte[] data)
static DescriptorProtos.EnumDescriptorProto
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
static DescriptorProtos.EnumDescriptorProto
parseFrom(ByteString data)
static DescriptorProtos.EnumDescriptorProto
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
static DescriptorProtos.EnumDescriptorProto
parseFrom(CodedInputStream input)
static DescriptorProtos.EnumDescriptorProto
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
static DescriptorProtos.EnumDescriptorProto
parseFrom(java.io.InputStream input)
static DescriptorProtos.EnumDescriptorProto
parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry)
static DescriptorProtos.EnumDescriptorProto
parseFrom(java.nio.ByteBuffer data)
static DescriptorProtos.EnumDescriptorProto
parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry)
static Parser<DescriptorProtos.EnumDescriptorProto>
parser()
-
Methods inherited from class com.google.protobuf.GeneratedMessageLite
createBuilder, createBuilder, dynamicMethod, dynamicMethod, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, getSerializedSize, hashCode, isInitialized, isInitialized, makeImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newMessageInfo, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parseUnknownField, registerDefaultInstance, toBuilder, toString, writeTo
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
-
-
-
Field Detail
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
VALUE_FIELD_NUMBER
public static final int VALUE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
OPTIONS_FIELD_NUMBER
public static final int OPTIONS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
RESERVED_RANGE_FIELD_NUMBER
public static final int RESERVED_RANGE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
RESERVED_NAME_FIELD_NUMBER
public static final int RESERVED_NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
hasName
public boolean hasName()
optional string name = 1 [json_name = "name"];
- Specified by:
hasName
in interfaceDescriptorProtos.EnumDescriptorProtoOrBuilder
- Returns:
- Whether the name field is set.
-
getName
public java.lang.String getName()
optional string name = 1 [json_name = "name"];
- Specified by:
getName
in interfaceDescriptorProtos.EnumDescriptorProtoOrBuilder
- Returns:
- The name.
-
getNameBytes
public ByteString getNameBytes()
optional string name = 1 [json_name = "name"];
- Specified by:
getNameBytes
in interfaceDescriptorProtos.EnumDescriptorProtoOrBuilder
- Returns:
- The bytes for name.
-
getValueList
public java.util.List<DescriptorProtos.EnumValueDescriptorProto> getValueList()
repeated .google.protobuf.EnumValueDescriptorProto value = 2 [json_name = "value"];
- Specified by:
getValueList
in interfaceDescriptorProtos.EnumDescriptorProtoOrBuilder
-
getValueOrBuilderList
public java.util.List<? extends DescriptorProtos.EnumValueDescriptorProtoOrBuilder> getValueOrBuilderList()
repeated .google.protobuf.EnumValueDescriptorProto value = 2 [json_name = "value"];
-
getValueCount
public int getValueCount()
repeated .google.protobuf.EnumValueDescriptorProto value = 2 [json_name = "value"];
- Specified by:
getValueCount
in interfaceDescriptorProtos.EnumDescriptorProtoOrBuilder
-
getValue
public DescriptorProtos.EnumValueDescriptorProto getValue(int index)
repeated .google.protobuf.EnumValueDescriptorProto value = 2 [json_name = "value"];
- Specified by:
getValue
in interfaceDescriptorProtos.EnumDescriptorProtoOrBuilder
-
getValueOrBuilder
public DescriptorProtos.EnumValueDescriptorProtoOrBuilder getValueOrBuilder(int index)
repeated .google.protobuf.EnumValueDescriptorProto value = 2 [json_name = "value"];
-
hasOptions
public boolean hasOptions()
optional .google.protobuf.EnumOptions options = 3 [json_name = "options"];
- Specified by:
hasOptions
in interfaceDescriptorProtos.EnumDescriptorProtoOrBuilder
- Returns:
- Whether the options field is set.
-
getOptions
public DescriptorProtos.EnumOptions getOptions()
optional .google.protobuf.EnumOptions options = 3 [json_name = "options"];
- Specified by:
getOptions
in interfaceDescriptorProtos.EnumDescriptorProtoOrBuilder
- Returns:
- The options.
-
getReservedRangeList
public java.util.List<DescriptorProtos.EnumDescriptorProto.EnumReservedRange> getReservedRangeList()
repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4 [json_name = "reservedRange"];
- Specified by:
getReservedRangeList
in interfaceDescriptorProtos.EnumDescriptorProtoOrBuilder
-
getReservedRangeOrBuilderList
public java.util.List<? extends DescriptorProtos.EnumDescriptorProto.EnumReservedRangeOrBuilder> getReservedRangeOrBuilderList()
repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4 [json_name = "reservedRange"];
-
getReservedRangeCount
public int getReservedRangeCount()
repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4 [json_name = "reservedRange"];
- Specified by:
getReservedRangeCount
in interfaceDescriptorProtos.EnumDescriptorProtoOrBuilder
-
getReservedRange
public DescriptorProtos.EnumDescriptorProto.EnumReservedRange getReservedRange(int index)
repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4 [json_name = "reservedRange"];
- Specified by:
getReservedRange
in interfaceDescriptorProtos.EnumDescriptorProtoOrBuilder
-
getReservedRangeOrBuilder
public DescriptorProtos.EnumDescriptorProto.EnumReservedRangeOrBuilder getReservedRangeOrBuilder(int index)
repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4 [json_name = "reservedRange"];
-
getReservedNameList
public java.util.List<java.lang.String> getReservedNameList()
repeated string reserved_name = 5 [json_name = "reservedName"];
- Specified by:
getReservedNameList
in interfaceDescriptorProtos.EnumDescriptorProtoOrBuilder
- Returns:
- A list containing the reservedName.
-
getReservedNameCount
public int getReservedNameCount()
repeated string reserved_name = 5 [json_name = "reservedName"];
- Specified by:
getReservedNameCount
in interfaceDescriptorProtos.EnumDescriptorProtoOrBuilder
- Returns:
- The count of reservedName.
-
getReservedName
public java.lang.String getReservedName(int index)
repeated string reserved_name = 5 [json_name = "reservedName"];
- Specified by:
getReservedName
in interfaceDescriptorProtos.EnumDescriptorProtoOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The reservedName at the given index.
-
getReservedNameBytes
public ByteString getReservedNameBytes(int index)
repeated string reserved_name = 5 [json_name = "reservedName"];
- 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.
-
parseFrom
public static DescriptorProtos.EnumDescriptorProto parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static DescriptorProtos.EnumDescriptorProto parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static DescriptorProtos.EnumDescriptorProto parseFrom(ByteString data) throws InvalidProtocolBufferException
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static DescriptorProtos.EnumDescriptorProto parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static DescriptorProtos.EnumDescriptorProto parseFrom(byte[] data) throws InvalidProtocolBufferException
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static DescriptorProtos.EnumDescriptorProto parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static DescriptorProtos.EnumDescriptorProto parseFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static DescriptorProtos.EnumDescriptorProto parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static DescriptorProtos.EnumDescriptorProto parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static DescriptorProtos.EnumDescriptorProto parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static DescriptorProtos.EnumDescriptorProto parseFrom(CodedInputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static DescriptorProtos.EnumDescriptorProto parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
newBuilder
public static DescriptorProtos.EnumDescriptorProto.Builder newBuilder()
-
newBuilder
public static DescriptorProtos.EnumDescriptorProto.Builder newBuilder(DescriptorProtos.EnumDescriptorProto prototype)
-
dynamicMethod
protected final java.lang.Object dynamicMethod(GeneratedMessageLite.MethodToInvoke method, java.lang.Object arg0, java.lang.Object arg1)
Description copied from class:GeneratedMessageLite
A method that implements different types of operations described inGeneratedMessageLite.MethodToInvoke
. These different kinds of operations are required to implement message-level operations for builders in the runtime. This method bundles those operations to reduce the generated methods count.NEW_INSTANCE
returns a new instance of the protocol buffer that has not yet been made immutable. SeeMAKE_IMMUTABLE
.IS_INITIALIZED
returnsnull
for false and the default instance for true. It doesn't use or modify any memoized value.GET_MEMOIZED_IS_INITIALIZED
returns the memoizedisInitialized
byte value.SET_MEMOIZED_IS_INITIALIZED
sets the memoizedisInitialized
byte value to 1 if the first parameter is not null, or to 0 if the first parameter is null.NEW_BUILDER
returns aBuilderType
instance.
For use by generated code only.
-
getDefaultInstance
public static DescriptorProtos.EnumDescriptorProto getDefaultInstance()
-
parser
public static Parser<DescriptorProtos.EnumDescriptorProto> parser()
-
-