Class StandardSqlDataType (3.3.5)

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"}} ]}}

This message has oneof_ fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

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". This field is a member of oneof_ sub_type.
struct_type google.cloud.bigquery_v2.types.StandardSqlStructType
The fields of this struct, in order, if type_kind = "STRUCT". This field is a member of oneof_ sub_type.

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.