Class StandardSqlDataType (2.6.2)

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 `.standard_sql.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 `.standard_sql.StandardSqlDataType`
The type of the array's elements, if type_kind = "ARRAY".
struct_type `.standard_sql.StandardSqlStructType`
The fields of this struct, in order, if type_kind = "STRUCT".

Inheritance

builtins.object > proto.message.Message > StandardSqlDataType

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.