Interface ProtocolMessageEnum

All Superinterfaces:
com.google.protobuf.Internal.EnumLite
All Known Implementing Classes:
DescriptorProtos.Edition, DescriptorProtos.ExtensionRangeOptions.VerificationState, DescriptorProtos.FeatureSet.EnumType, DescriptorProtos.FeatureSet.FieldPresence, DescriptorProtos.FeatureSet.JsonFormat, DescriptorProtos.FeatureSet.MessageEncoding, DescriptorProtos.FeatureSet.RepeatedFieldEncoding, DescriptorProtos.FeatureSet.Utf8Validation, DescriptorProtos.FieldDescriptorProto.Label, DescriptorProtos.FieldDescriptorProto.Type, DescriptorProtos.FieldOptions.CType, DescriptorProtos.FieldOptions.JSType, DescriptorProtos.FieldOptions.OptionRetention, DescriptorProtos.FieldOptions.OptionTargetType, DescriptorProtos.FileOptions.OptimizeMode, DescriptorProtos.GeneratedCodeInfo.Annotation.Semantic, DescriptorProtos.MethodOptions.IdempotencyLevel, Field.Cardinality, Field.Kind, JavaFeaturesProto.JavaFeatures.Utf8Validation, Log.Severity, NullValue, PluginProtos.CodeGeneratorResponse.Feature, Syntax

public interface ProtocolMessageEnum extends com.google.protobuf.Internal.EnumLite
Interface of useful methods added to all enums generated by the protocol compiler.
  • Method Details

    • getNumber

      int getNumber()
      Return the value's numeric value as defined in the .proto file.
      Specified by:
      getNumber in interface com.google.protobuf.Internal.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.