The type of a variable, e.g., a function argument. Examples: INT64: {typeKind="INT64"} ARRAY
JSON representation | |
---|---|
{ "typeKind": enum ( |
Fields | ||
---|---|---|
typeKind |
Required. The top level type of this field. Can be any standard SQL data type (e.g., "INT64", "DATE", "ARRAY"). |
|
Union field
|
||
arrayElementType |
The type of the array's elements, if typeKind = "ARRAY". |
|
structType |
The fields of this struct, in order, if typeKind = "STRUCT". |
TypeKind
Enums | |
---|---|
TYPE_KIND_UNSPECIFIED |
Invalid type. |
INT64 |
Encoded as a string in decimal format. |
BOOL |
Encoded as a boolean "false" or "true". |
FLOAT64 |
Encoded as a number, or string "NaN", "Infinity" or "-Infinity". |
STRING |
Encoded as a string value. |
BYTES |
Encoded as a base64 string per RFC 4648, section 4. |
TIMESTAMP |
Encoded as an RFC 3339 timestamp with mandatory "Z" time zone string: 1985-04-12T23:20:50.52Z |
DATE |
Encoded as RFC 3339 full-date format string: 1985-04-12 |
TIME |
Encoded as RFC 3339 partial-time format string: 23:20:50.52 |
DATETIME |
Encoded as RFC 3339 full-date "T" partial-time: 1985-04-12T23:20:50.52 |
GEOGRAPHY |
Encoded as WKT |
NUMERIC |
Encoded as a decimal string. |
BIGNUMERIC |
Encoded as a decimal string. |
ARRAY |
Encoded as a list with types matching Type.array_type. |
STRUCT |
Encoded as a list with fields of type Type.struct_type[i]. tabledata.list is used because a JSON object cannot have duplicate field names. |
StandardSqlStructType
JSON representation | |
---|---|
{
"fields": [
{
object ( |
Fields | |
---|---|
fields[] |
|