|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<DescriptorProtos.FieldDescriptorProto.Label>
com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Label
public static enum DescriptorProtos.FieldDescriptorProto.Label
Enum Constant Summary | |
---|---|
LABEL_OPTIONAL
|
|
LABEL_REPEATED
|
|
LABEL_REQUIRED
|
Method Summary | |
---|---|
static Descriptors.EnumDescriptor |
getDescriptor()
|
Descriptors.EnumDescriptor |
getDescriptorForType()
Return the enum type's descriptor, which contains information about each defined value, etc. |
int |
getNumber()
Return the value's numeric value as defined in the .proto file. |
Descriptors.EnumValueDescriptor |
getValueDescriptor()
Return the value's descriptor, which contains information such as value name, number, and type. |
static Internal.EnumLiteMap<DescriptorProtos.FieldDescriptorProto.Label> |
internalGetValueMap()
|
static DescriptorProtos.FieldDescriptorProto.Label |
valueOf(Descriptors.EnumValueDescriptor desc)
|
static DescriptorProtos.FieldDescriptorProto.Label |
valueOf(int value)
|
static DescriptorProtos.FieldDescriptorProto.Label |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static DescriptorProtos.FieldDescriptorProto.Label[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final DescriptorProtos.FieldDescriptorProto.Label LABEL_OPTIONAL
public static final DescriptorProtos.FieldDescriptorProto.Label LABEL_REQUIRED
public static final DescriptorProtos.FieldDescriptorProto.Label LABEL_REPEATED
Method Detail |
---|
public static DescriptorProtos.FieldDescriptorProto.Label[] values()
for (DescriptorProtos.FieldDescriptorProto.Label c : DescriptorProtos.FieldDescriptorProto.Label.values()) System.out.println(c);
public static DescriptorProtos.FieldDescriptorProto.Label valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic final int getNumber()
ProtocolMessageEnum
getNumber
in interface Internal.EnumLite
getNumber
in interface ProtocolMessageEnum
public static DescriptorProtos.FieldDescriptorProto.Label valueOf(int value)
public static Internal.EnumLiteMap<DescriptorProtos.FieldDescriptorProto.Label> internalGetValueMap()
public final Descriptors.EnumValueDescriptor getValueDescriptor()
ProtocolMessageEnum
getValueDescriptor
in interface ProtocolMessageEnum
public final Descriptors.EnumDescriptor getDescriptorForType()
ProtocolMessageEnum
getDescriptorForType
in interface ProtocolMessageEnum
public static final Descriptors.EnumDescriptor getDescriptor()
public static DescriptorProtos.FieldDescriptorProto.Label valueOf(Descriptors.EnumValueDescriptor desc)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |