com.google.protobuf
Class Descriptors.EnumValueDescriptor

java.lang.Object
  extended by com.google.protobuf.Descriptors.EnumValueDescriptor
Enclosing class:
Descriptors

public static final class Descriptors.EnumValueDescriptor
extends java.lang.Object

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.
 com.google.protobuf.DescriptorProtos.EnumValueOptions getOptions()
          Get the EnumValueOptions, defined in descriptor.proto.
 Descriptors.EnumDescriptor getType()
          Get the value's enum type.
 com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto 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

getIndex

public int getIndex()
Get the index of this descriptor within its parent.

See Also:
Descriptors.Descriptor.getIndex()

toProto

public com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto toProto()
Convert the descriptor to its protocol message representation.


getName

public java.lang.String getName()
Get the value's unqualified name.


getNumber

public int getNumber()
Get the value's number.


getFullName

public java.lang.String getFullName()
Get the value's fully-qualified name.

See Also:
Descriptors.Descriptor.getFullName()

getFile

public Descriptors.FileDescriptor getFile()
Get the Descriptors.FileDescriptor containing this descriptor.


getType

public Descriptors.EnumDescriptor getType()
Get the value's enum type.


getOptions

public com.google.protobuf.DescriptorProtos.EnumValueOptions getOptions()
Get the EnumValueOptions, defined in descriptor.proto.



Copyright © 2008-2010 Google. All Rights Reserved.