java.lang.Object
tools.jackson.dataformat.protobuf.schema.ProtobufEnum

public class ProtobufEnum extends Object
  • Field Details

    • _name

      protected final String _name
    • _valuesByName

      protected final Map<String,Integer> _valuesByName
    • _standardIndexing

      protected final boolean _standardIndexing
      Flag that indicates whether mapping from enum value and id is standard or not; standard means that first enum has value 0, and all following enums have value one bigger than preceding one.
  • Constructor Details

    • ProtobufEnum

      public ProtobufEnum(String name, Map<String,Integer> valuesByName, boolean standardIndexing)
  • Method Details

    • findEnum

      public Integer findEnum(String name)
    • valueMapping

      public Map<String,Integer> valueMapping()
    • usesStandardIndexing

      public boolean usesStandardIndexing()