Enum Class FieldType

java.lang.Object
java.lang.Enum<FieldType>
com.baidu.bjf.remoting.protobuf.FieldType
所有已实现的接口:
Serializable, Comparable<FieldType>, java.lang.constant.Constable

public enum FieldType extends Enum<FieldType>
Field type for Protobuf.
从以下版本开始:
1.0.0
作者:
xiemalin
  • 枚举常量详细资料

    • DOUBLE

      public static final FieldType DOUBLE
      types defined in .proto file.
    • FLOAT

      public static final FieldType FLOAT
    • INT64

      public static final FieldType INT64
    • UINT64

      public static final FieldType UINT64
    • INT32

      public static final FieldType INT32
    • FIXED64

      public static final FieldType FIXED64
    • FIXED32

      public static final FieldType FIXED32
    • BOOL

      public static final FieldType BOOL
    • STRING

      public static final FieldType STRING
    • BYTES

      public static final FieldType BYTES
    • UINT32

      public static final FieldType UINT32
    • SFIXED32

      public static final FieldType SFIXED32
    • SFIXED64

      public static final FieldType SFIXED64
    • SINT32

      public static final FieldType SINT32
    • SINT64

      public static final FieldType SINT64
    • OBJECT

      public static final FieldType OBJECT
    • ENUM

      public static final FieldType ENUM
    • MAP

      public static final FieldType MAP
    • DATE

      public static final FieldType DATE
    • BIGDECIMAL

      public static final FieldType BIGDECIMAL
    • BIGINTEGER

      public static final FieldType BIGINTEGER
    • DEFAULT

      public static final FieldType DEFAULT
  • 方法详细资料

    • values

      public static FieldType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      返回:
      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.)
      参数:
      name - 要返回的枚举常量的名称。
      返回:
      返回带有指定名称的枚举常量
      抛出:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - 如果参数为空值
    • getDefaultValue

      public String getDefaultValue()
      get the defaultValue
      返回:
      the defaultValue
    • setDefaultValue

      public void setDefaultValue(String defaultValue)
      set defaultValue value to defaultValue
      参数:
      defaultValue - the defaultValue to set
    • getInternalFieldType

      public com.google.protobuf.WireFormat.FieldType getInternalFieldType()
      get the internalFieldType
      返回:
      the internalFieldType
    • setInternalFieldType

      public void setInternalFieldType(com.google.protobuf.WireFormat.FieldType internalFieldType)
      set internalFieldType value to internalFieldType
      参数:
      internalFieldType - the internalFieldType to set
    • getToPrimitiveType

      public String getToPrimitiveType()
      get primitive type in string
      返回:
      primitive type in string
    • getWireFormat

      public String getWireFormat()
      get protobuf wire format type
      返回:
      protobuf wire format type
    • getType

      public String getType()
      get protobuf type
      返回:
      protobuf type
    • getJavaType

      public String getJavaType()
      get java original type
      返回:
      java original type
    • isPrimitive

      public boolean isPrimitive()
      Checks if is primitive.
      返回:
      true, if is primitive
    • isEnum

      public boolean isEnum()
      Checks if is enum.
      返回:
      true, if is enum