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 |
JSON |
Encoded as a JSON-formatted
|
JSON_VALUE |
Encoded as a JSON-formatted
|
NUMERIC |
Encoded as Scientific notation:
<br> |
NUMERIC_VALUE |
Encoded as Scientific notation:
<br> |
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 |
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() |