|
|||||||||
| 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(java.lang.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're declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
finalize, 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 final DescriptorProtos.FieldDescriptorProto.Label[] values()
for(DescriptorProtos.FieldDescriptorProto.Label c : DescriptorProtos.FieldDescriptorProto.Label.values())
System.out.println(c);
public static DescriptorProtos.FieldDescriptorProto.Label valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified namepublic final int getNumber()
ProtocolMessageEnum
getNumber in interface Internal.EnumLitegetNumber in interface ProtocolMessageEnumpublic static DescriptorProtos.FieldDescriptorProto.Label valueOf(int value)
public static Internal.EnumLiteMap<DescriptorProtos.FieldDescriptorProto.Label> internalGetValueMap()
public final Descriptors.EnumValueDescriptor getValueDescriptor()
ProtocolMessageEnum
getValueDescriptor in interface ProtocolMessageEnumpublic final Descriptors.EnumDescriptor getDescriptorForType()
ProtocolMessageEnum
getDescriptorForType in interface ProtocolMessageEnumpublic 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 | ||||||||