public enum FieldType extends Enum<FieldType>
| 枚举常量和说明 |
|---|
BIGDECIMAL |
BIGINTEGER |
BOOL |
BYTES |
DATE |
DEFAULT |
DOUBLE
types defined in .proto file.
|
ENUM |
FIXED32 |
FIXED64 |
FLOAT |
INT32 |
INT64 |
MAP |
OBJECT |
SFIXED32 |
SFIXED64 |
SINT32 |
SINT64 |
STRING |
UINT32 |
UINT64 |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getDefaultValue()
get the defaultValue
|
com.google.protobuf.WireFormat.FieldType |
getInternalFieldType()
get the internalFieldType
|
String |
getJavaType()
get java original type
|
String |
getToPrimitiveType()
get primitive type in string
|
String |
getType()
get protobuf type
|
String |
getWireFormat()
get protobuf wire format type
|
boolean |
isEnum()
Checks if is enum.
|
boolean |
isPrimitive()
Checks if is primitive.
|
void |
setDefaultValue(String defaultValue)
set defaultValue value to defaultValue
|
void |
setInternalFieldType(com.google.protobuf.WireFormat.FieldType internalFieldType)
set internalFieldType value to internalFieldType
|
static FieldType |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static FieldType[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final FieldType DOUBLE
public static final FieldType FLOAT
public static final FieldType INT64
public static final FieldType UINT64
public static final FieldType INT32
public static final FieldType FIXED64
public static final FieldType FIXED32
public static final FieldType BOOL
public static final FieldType STRING
public static final FieldType BYTES
public static final FieldType UINT32
public static final FieldType SFIXED32
public static final FieldType SFIXED64
public static final FieldType SINT32
public static final FieldType SINT64
public static final FieldType OBJECT
public static final FieldType ENUM
public static final FieldType MAP
public static final FieldType DATE
public static final FieldType BIGDECIMAL
public static final FieldType BIGINTEGER
public static final FieldType DEFAULT
public static FieldType[] values()
for (FieldType c : FieldType.values()) System.out.println(c);
public static FieldType valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public String getDefaultValue()
public void setDefaultValue(String defaultValue)
defaultValue - the defaultValue to setpublic com.google.protobuf.WireFormat.FieldType getInternalFieldType()
public void setInternalFieldType(com.google.protobuf.WireFormat.FieldType internalFieldType)
internalFieldType - the internalFieldType to setpublic String getToPrimitiveType()
public String getWireFormat()
public String getType()
public String getJavaType()
public boolean isPrimitive()
public boolean isEnum()
Copyright © 2022 Baidu, Inc.. All rights reserved.