public static enum Message.Datatype extends Enum<Message.Datatype>
| Enum Constant and Description |
|---|
BOOL |
BYTES |
DOUBLE |
ENUM |
FIXED32 |
FIXED64 |
FLOAT |
INT32 |
INT64 |
MESSAGE |
SFIXED32 |
SFIXED64 |
SINT32 |
SINT64 |
STRING |
UINT32 |
UINT64 |
| Modifier and Type | Field and Description |
|---|---|
static Comparator<Message.Datatype> |
ORDER_BY_NAME |
| Modifier and Type | Method and Description |
|---|---|
static Message.Datatype |
of(String typeString) |
int |
value() |
static Message.Datatype |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Message.Datatype[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
WireType |
wireType() |
public static final Message.Datatype INT32
public static final Message.Datatype INT64
public static final Message.Datatype UINT32
public static final Message.Datatype UINT64
public static final Message.Datatype SINT32
public static final Message.Datatype SINT64
public static final Message.Datatype BOOL
public static final Message.Datatype ENUM
public static final Message.Datatype STRING
public static final Message.Datatype BYTES
public static final Message.Datatype MESSAGE
public static final Message.Datatype FIXED32
public static final Message.Datatype SFIXED32
public static final Message.Datatype FIXED64
public static final Message.Datatype SFIXED64
public static final Message.Datatype FLOAT
public static final Message.Datatype DOUBLE
public static final Comparator<Message.Datatype> ORDER_BY_NAME
public static Message.Datatype[] values()
for (Message.Datatype c : Message.Datatype.values()) System.out.println(c);
public static Message.Datatype 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 int value()
public WireType wireType()
public static Message.Datatype of(String typeString)
Copyright © 2013 Square, Inc.. All Rights Reserved.