Enum Class FieldType
- 所有已实现的接口:
Serializable,Comparable<FieldType>,java.lang.constant.Constable
Field type for Protobuf.
- 从以下版本开始:
- 1.0.0
- 作者:
- xiemalin
-
嵌套类概要
从类继承的嵌套类/接口 java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
枚举常量概要
枚举常量 -
方法概要
修饰符和类型方法说明get the defaultValuecom.google.protobuf.WireFormat.FieldTypeget the internalFieldTypeget java original typeget primitive type in stringgetType()get protobuf typeget protobuf wire format typebooleanisEnum()Checks if is enum.booleanChecks if is primitive.voidsetDefaultValue(String defaultValue) set defaultValue value to defaultValuevoidsetInternalFieldType(com.google.protobuf.WireFormat.FieldType internalFieldType) set internalFieldType value to internalFieldTypestatic FieldTypeReturns the enum constant of this class with the specified name.static FieldType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
枚举常量详细资料
-
DOUBLE
types defined in .proto file. -
FLOAT
-
INT64
-
UINT64
-
INT32
-
FIXED64
-
FIXED32
-
BOOL
-
STRING
-
BYTES
-
UINT32
-
SFIXED32
-
SFIXED64
-
SINT32
-
SINT64
-
OBJECT
-
ENUM
-
MAP
-
DATE
-
BIGDECIMAL
-
BIGINTEGER
-
DEFAULT
-
-
方法详细资料
-
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
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 nameNullPointerException- 如果参数为空值
-
getDefaultValue
get the defaultValue- 返回:
- the defaultValue
-
setDefaultValue
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
get primitive type in string- 返回:
- primitive type in string
-
getWireFormat
get protobuf wire format type- 返回:
- protobuf wire format type
-
getType
get protobuf type- 返回:
- protobuf type
-
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
-