com.google.protobuf
Interface ProtocolMessageEnum

All Known Implementing Classes:
DescriptorProtos.FieldDescriptorProto.Label, DescriptorProtos.FieldDescriptorProto.Type, DescriptorProtos.FieldOptions.CType, DescriptorProtos.FileOptions.OptimizeMode

public interface ProtocolMessageEnum

Interface of useful methods added to all enums generated by the protocol compiler.


Method Summary
 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.
 

Method Detail

getNumber

int getNumber()
Return the value's numeric value as defined in the .proto file.


getValueDescriptor

Descriptors.EnumValueDescriptor getValueDescriptor()
Return the value's descriptor, which contains information such as value name, number, and type.


getDescriptorForType

Descriptors.EnumDescriptor getDescriptorForType()
Return the enum type's descriptor, which contains information about each defined value, etc.



Copyright © 2008-2009. All Rights Reserved.