Class StandardSqlDataType (2.13.1)

StandardSqlDataType(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The type of a variable, e.g., a function argument. Examples: INT64: {type_kind="INT64"} ARRAY: {type_kind="ARRAY", array_element_type="STRING"} STRUCT<x STRING, y ARRAY>: {type_kind="STRUCT", struct_type={fields=[ {name="x", type={type_kind="STRING"}}, {name="y", type={type_kind="ARRAY", array_element_type="DATE"}} ]}}

Attributes

NameDescription
type_kind google.cloud.bigquery_v2.types.StandardSqlDataType.TypeKind
Required. The top level type of this field. Can be any standard SQL data type (e.g., "INT64", "DATE", "ARRAY").
array_element_type google.cloud.bigquery_v2.types.StandardSqlDataType
The type of the array's elements, if type_kind = "ARRAY".
struct_type google.cloud.bigquery_v2.types.StandardSqlStructType
The fields of this struct, in order, if type_kind = "STRUCT".

Inheritance

builtins.object > proto.message.Message > StandardSqlDataType

Classes

TypeKind

TypeKind(value)

API documentation for bigquery_v2.types.StandardSqlDataType.TypeKind class.

Methods

__delattr__

__delattr__(key)

Delete the value on the given field.

This is generally equivalent to setting a falsy value.

__eq__

__eq__(other)

Return True if the messages are equal, False otherwise.

__ne__

__ne__(other)

Return True if the messages are unequal, False otherwise.

__setattr__

__setattr__(key, value)

Set the value on the given field.

For well-known protocol buffer types which are marshalled, either the protocol buffer object or the Python equivalent is accepted.