|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.google.protobuf.Descriptors.EnumDescriptor
public static final class Descriptors.EnumDescriptor
Describes an enum type.
| Method Summary | |
|---|---|
Descriptors.EnumValueDescriptor |
findValueByName(java.lang.String name)
Find an enum value by name. |
Descriptors.EnumValueDescriptor |
findValueByNumber(int number)
Find an enum value by number. |
Descriptors.Descriptor |
getContainingType()
If this is a nested type, get the outer descriptor, otherwise null. |
Descriptors.FileDescriptor |
getFile()
Get the Descriptors.FileDescriptor containing this descriptor. |
java.lang.String |
getFullName()
Get the type's fully-qualified name. |
int |
getIndex()
Get the index of this descriptor within its parent. |
java.lang.String |
getName()
Get the type's unqualified name. |
DescriptorProtos.EnumOptions |
getOptions()
Get the EnumOptions, defined in descriptor.proto. |
java.util.List<Descriptors.EnumValueDescriptor> |
getValues()
Get a list of defined values for this enum. |
DescriptorProtos.EnumDescriptorProto |
toProto()
Convert the descriptor to its protocol message representation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public int getIndex()
Descriptors.Descriptor.getIndex()public DescriptorProtos.EnumDescriptorProto toProto()
public java.lang.String getName()
public java.lang.String getFullName()
Descriptors.Descriptor.getFullName()public Descriptors.FileDescriptor getFile()
Descriptors.FileDescriptor containing this descriptor.
public Descriptors.Descriptor getContainingType()
public DescriptorProtos.EnumOptions getOptions()
EnumOptions, defined in descriptor.proto.
public java.util.List<Descriptors.EnumValueDescriptor> getValues()
public Descriptors.EnumValueDescriptor findValueByName(java.lang.String name)
name - The unqualified name of the value (e.g. "FOO").
null if not found.public Descriptors.EnumValueDescriptor findValueByNumber(int number)
number - The value's number.
null if not found.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||