public enum TypeCode extends Enum<TypeCode> implements ProtocolMessageEnum
TypeCode
is used as part of Type to
indicate the type of a Cloud Spanner value.
Each legal value of a type can be encoded to or decoded from a JSON
value, using the encodings described below. All Cloud Spanner values can
be null
, regardless of type; null
s are always encoded as a JSON
null
.
Protobuf enum google.spanner.v1.TypeCode
Implements
ProtocolMessageEnumStatic Fields |
|
---|---|
Name | Description |
ARRAY |
Encoded as |
ARRAY_VALUE |
Encoded as |
BOOL |
Encoded as JSON |
BOOL_VALUE |
Encoded as JSON |
BYTES |
Encoded as a base64-encoded |
BYTES_VALUE |
Encoded as a base64-encoded |
DATE |
Encoded as |
DATE_VALUE |
Encoded as |
ENUM |
Encoded as |
ENUM_VALUE |
Encoded as |
FLOAT32 |
Encoded as |
FLOAT32_VALUE |
Encoded as |
FLOAT64 |
Encoded as |
FLOAT64_VALUE |
Encoded as |
INT64 |
Encoded as |
INT64_VALUE |
Encoded as |
INTERVAL |
Encoded as |
INTERVAL_VALUE |
Encoded as |
JSON |
Encoded as a JSON-formatted
|
JSON_VALUE |
Encoded as a JSON-formatted
|
NUMERIC |
Encoded as Scientific notation:
|
NUMERIC_VALUE |
Encoded as Scientific notation:
|
PROTO |
Encoded as a base64-encoded |
PROTO_VALUE |
Encoded as a base64-encoded |
STRING |
Encoded as |
STRING_VALUE |
Encoded as |
STRUCT |
Encoded as |
STRUCT_VALUE |
Encoded as |
TIMESTAMP |
Encoded as If the schema has the column option
|
TIMESTAMP_VALUE |
Encoded as If the schema has the column option
|
TYPE_CODE_UNSPECIFIED |
Not specified. |
TYPE_CODE_UNSPECIFIED_VALUE |
Not specified. |
UNRECOGNIZED |
|
UUID |
Encoded as |
UUID_VALUE |
Encoded as |
Static Methods |
|
---|---|
Name | Description |
forNumber(int value) |
|
getDescriptor() |
|
internalGetValueMap() |
|
valueOf(Descriptors.EnumValueDescriptor desc) |
|
valueOf(int value) |
Deprecated. Use #forNumber(int) instead. |
valueOf(String name) |
|
values() |
Methods |
|
---|---|
Name | Description |
getDescriptorForType() |
|
getNumber() |
|
getValueDescriptor() |