public static final class Descriptors.EnumValueDescriptor extends Descriptors.GenericDescriptor implements Internal.EnumLite
Modifier and Type | Method and Description |
---|---|
Descriptors.FileDescriptor |
getFile()
Get the
Descriptors.FileDescriptor containing this descriptor. |
String |
getFullName()
Get the value's fully-qualified name.
|
int |
getIndex()
Get the index of this descriptor within its parent.
|
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.
|
String |
toString() |
public int getIndex()
Descriptors.Descriptor.getIndex()
public DescriptorProtos.EnumValueDescriptorProto toProto()
toProto
in class Descriptors.GenericDescriptor
public String getName()
getName
in class Descriptors.GenericDescriptor
public int getNumber()
getNumber
in interface Internal.EnumLite
public String getFullName()
getFullName
in class Descriptors.GenericDescriptor
Descriptors.Descriptor.getFullName()
public Descriptors.FileDescriptor getFile()
Descriptors.FileDescriptor
containing this descriptor.getFile
in class Descriptors.GenericDescriptor
public Descriptors.EnumDescriptor getType()
public DescriptorProtos.EnumValueOptions getOptions()
EnumValueOptions
, defined in descriptor.proto
.Copyright © 2008–2019. All rights reserved.