public enum Type extends java.lang.Enum<Type>
| Enum Constant and Description |
|---|
BOOL |
BYTES |
DOUBLE |
ENUM |
FIXED32 |
FIXED64 |
FLOAT |
GROUP |
INT32 |
INT64 |
MESSAGE |
SFIXED32 |
SFIXED64 |
SINT32 |
SINT64 |
STRING |
UINT32 |
UINT64 |
| Modifier and Type | Field and Description |
|---|---|
private JavaType |
javaType |
private int |
wireType |
| Modifier and Type | Method and Description |
|---|---|
JavaType |
getJavaType() |
int |
getWireType() |
static Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Type DOUBLE
public static final Type FLOAT
public static final Type INT64
public static final Type UINT64
public static final Type INT32
public static final Type FIXED64
public static final Type FIXED32
public static final Type BOOL
public static final Type STRING
public static final Type GROUP
public static final Type MESSAGE
public static final Type BYTES
public static final Type UINT32
public static final Type ENUM
public static final Type SFIXED32
public static final Type SFIXED64
public static final Type SINT32
public static final Type SINT64
private final JavaType javaType
private final int wireType
public static Type[] values()
for (Type c : Type.values()) System.out.println(c);
public static Type valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic JavaType getJavaType()
public int getWireType()