public static enum DataType.ScalarType extends Enum<DataType.ScalarType> implements DataType
DataType.Kind, DataType.MapType, DataType.NamedType, DataType.ScalarType
Enum Constant and Description |
---|
ANY |
BOOL |
BYTES |
DOUBLE |
FIXED32 |
FIXED64 |
FLOAT |
INT32 |
INT64 |
SFIXED32 |
SFIXED64 |
SINT32 |
SINT64 |
STRING |
UINT32 |
UINT64 |
Modifier and Type | Method and Description |
---|---|
DataType.Kind |
kind()
The kind of this type (and therefore implementing class).
|
String |
toString() |
static DataType.ScalarType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DataType.ScalarType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DataType.ScalarType ANY
public static final DataType.ScalarType BOOL
public static final DataType.ScalarType BYTES
public static final DataType.ScalarType DOUBLE
public static final DataType.ScalarType FLOAT
public static final DataType.ScalarType FIXED32
public static final DataType.ScalarType FIXED64
public static final DataType.ScalarType INT32
public static final DataType.ScalarType INT64
public static final DataType.ScalarType SFIXED32
public static final DataType.ScalarType SFIXED64
public static final DataType.ScalarType SINT32
public static final DataType.ScalarType SINT64
public static final DataType.ScalarType STRING
public static final DataType.ScalarType UINT32
public static final DataType.ScalarType UINT64
public static DataType.ScalarType[] values()
for (DataType.ScalarType c : DataType.ScalarType.values()) System.out.println(c);
public static DataType.ScalarType 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 DataType.Kind kind()
DataType
public String toString()
toString
in class Enum<DataType.ScalarType>
Copyright © 2015 Square, Inc.. All Rights Reserved.