public enum Type extends 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 | Method and Description |
---|---|
JavaType |
getJavaType() |
int |
getWireType() |
static Type |
valueOf(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 BYTES
public static final Type UINT32
public static final Type SFIXED32
public static final Type SFIXED64
public static final Type SINT32
public static final Type SINT64
public static final Type GROUP
public static final Type MESSAGE
public static final Type ENUM
public static Type[] values()
for (Type c : Type.values()) System.out.println(c);
public static Type valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic JavaType getJavaType()
public int getWireType()
Copyright © 2017 JBoss, a division of Red Hat. All rights reserved.