Top Description Methods
com.google.protobuf

public Interface ProtocolMessageEnum

extends EnumLite
Known Direct Implementers
com.google.protobuf.Syntax, com.google.protobuf.Field.Kind, com.google.protobuf.Field.Cardinality, com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Type, com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Label, com.google.protobuf.DescriptorProtos.FileOptions.OptimizeMode, com.google.protobuf.DescriptorProtos.FieldOptions.CType, com.google.protobuf.DescriptorProtos.FieldOptions.JSType, com.google.protobuf.DescriptorProtos.MethodOptions.IdempotencyLevel, com.google.protobuf.NullValue
Imports
com.google.protobuf.Descriptors.EnumDescriptor, .Descriptors.EnumValueDescriptor

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

Method Summary

Modifier and TypeMethod and Description
public Descriptors.EnumDescriptor
getDescriptorForType()

Return the enum type's descriptor, which contains information about each defined value, etc.

public int
getNumber()

Redeclares com.google.protobuf.Internal.EnumLite.getNumber.

Return the value's numeric value as defined in the .proto file.
public Descriptors.EnumValueDescriptor
getValueDescriptor()

Return the value's descriptor, which contains information such as value name, number, and type.

Method Detail

getDescriptorForTypeback to summary
public Descriptors.EnumDescriptor getDescriptorForType()

Return the enum type's descriptor, which contains information about each defined value, etc.

getNumberback to summary
public int getNumber()

Redeclares com.google.protobuf.Internal.EnumLite.getNumber.

Return the value's numeric value as defined in the .proto file.

Annotations
@Override
getValueDescriptorback to summary
public Descriptors.EnumValueDescriptor getValueDescriptor()

Return the value's descriptor, which contains information such as value name, number, and type.