|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.google.protobuf.Descriptors.GenericDescriptor
com.google.protobuf.Descriptors.EnumValueDescriptor
public static final class Descriptors.EnumValueDescriptor
Describes one value within an enum type. Note that multiple defined values may have the same number. In generated Java code, all values with the same number after the first become aliases of the first. However, they still have independent EnumValueDescriptors.
| Method Summary | |
|---|---|
Descriptors.FileDescriptor |
getFile()
Get the Descriptors.FileDescriptor containing this descriptor. |
java.lang.String |
getFullName()
Get the value's fully-qualified name. |
int |
getIndex()
Get the index of this descriptor within its parent. |
java.lang.String |
getName()
Get the value's unqualified name. |
int |
getNumber()
Get the value's number. |
DescriptorProtos.EnumValueOptions |
getOptions()
Get the EnumValueOptions, defined in descriptor.proto. |
Descriptors.EnumDescriptor |
getType()
Get the value's enum type. |
DescriptorProtos.EnumValueDescriptorProto |
toProto()
Convert the descriptor to its protocol message representation. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public int getIndex()
Descriptors.Descriptor.getIndex()public DescriptorProtos.EnumValueDescriptorProto toProto()
toProto in class Descriptors.GenericDescriptorpublic java.lang.String getName()
getName in class Descriptors.GenericDescriptorpublic int getNumber()
getNumber in interface Internal.EnumLitepublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getFullName()
getFullName in class Descriptors.GenericDescriptorDescriptors.Descriptor.getFullName()public Descriptors.FileDescriptor getFile()
Descriptors.FileDescriptor containing this descriptor.
getFile in class Descriptors.GenericDescriptorpublic Descriptors.EnumDescriptor getType()
public DescriptorProtos.EnumValueOptions getOptions()
EnumValueOptions, defined in descriptor.proto.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||