Package com.google.protobuf
Interface ProtocolMessageEnum
-
- All Superinterfaces:
Internal.EnumLite
- All Known Implementing Classes:
DescriptorProtos.FieldDescriptorProto.Label,DescriptorProtos.FieldDescriptorProto.Type,DescriptorProtos.FieldOptions.CType,DescriptorProtos.FieldOptions.JSType,DescriptorProtos.FileOptions.OptimizeMode,DescriptorProtos.MethodOptions.IdempotencyLevel,Field.Cardinality,Field.Kind,NullValue,PluginProtos.CodeGeneratorResponse.Feature,Syntax,Type.PrimitiveType,Type.WellKnownType
public interface ProtocolMessageEnum extends Internal.EnumLite
Interface of useful methods added to all enums generated by the protocol compiler.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Descriptors.EnumDescriptorgetDescriptorForType()Return the enum type's descriptor, which contains information about each defined value, etc.intgetNumber()Return the value's numeric value as defined in the .proto file.Descriptors.EnumValueDescriptorgetValueDescriptor()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.- Specified by:
getNumberin interfaceInternal.EnumLite
-
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.
-
-