java.lang.Object
java.lang.Enum<FieldType>
tools.jackson.dataformat.protobuf.schema.FieldType
All Implemented Interfaces:
Serializable, Comparable<FieldType>, Constable

public enum FieldType extends Enum<FieldType>
Set of distinct types parsed from protoc, as unified considering that Java makes no distinction between signed and unsigned types.
  • Enum Constant Details

    • DOUBLE

      public static final FieldType DOUBLE
    • FLOAT

      public static final FieldType FLOAT
    • VINT32_Z

      public static final FieldType VINT32_Z
    • VINT64_Z

      public static final FieldType VINT64_Z
    • VINT32_STD

      public static final FieldType VINT32_STD
    • VINT64_STD

      public static final FieldType VINT64_STD
    • FIXINT32

      public static final FieldType FIXINT32
    • FIXINT64

      public static final FieldType FIXINT64
    • BOOLEAN

      public static final FieldType BOOLEAN
    • STRING

      public static final FieldType STRING
    • BYTES

      public static final FieldType BYTES
    • ENUM

      public static final FieldType ENUM
    • MESSAGE

      public static final FieldType MESSAGE
  • Method Details

    • values

      public static FieldType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static FieldType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getWireType

      public int getWireType()
    • usesZigZag

      public boolean usesZigZag()
    • aliases

      public Iterable<com.squareup.protoparser.DataType.ScalarType> aliases()