TableFieldSchema(mapping=None, *, ignore_unknown_fields=False, **kwargs)
A field in TableSchema
Attributes |
|
---|---|
Name | Description |
name |
str
Required. The field name. The name must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_), and must start with a letter or underscore. The maximum length is 128 characters. |
type_ |
google.cloud.bigquery_storage_v1beta2.types.TableFieldSchema.Type
Required. The field data type. |
mode |
google.cloud.bigquery_storage_v1beta2.types.TableFieldSchema.Mode
Optional. The field mode. The default value is NULLABLE. |
fields |
MutableSequence[google.cloud.bigquery_storage_v1beta2.types.TableFieldSchema]
Optional. Describes the nested schema fields if the type property is set to STRUCT. |
description |
str
Optional. The field description. The maximum length is 1,024 characters. |
Classes
Mode
Mode(value)
Enum values:
MODE_UNSPECIFIED (0):
Illegal value
NULLABLE (1):
No description available.
REQUIRED (2):
No description available.
REPEATED (3):
No description available.
Type
Type(value)
Enum values:
TYPE_UNSPECIFIED (0):
Illegal value
STRING (1):
64K, UTF8
INT64 (2):
64-bit signed
DOUBLE (3):
64-bit IEEE floating point
STRUCT (4):
Aggregate type
BYTES (5):
64K, Binary
BOOL (6):
2-valued
TIMESTAMP (7):
64-bit signed usec since UTC epoch
DATE (8):
Civil date - Year, Month, Day
TIME (9):
Civil time - Hour, Minute, Second,
Microseconds
DATETIME (10):
Combination of civil date and civil time
GEOGRAPHY (11):
Geography object
NUMERIC (12):
Numeric value
BIGNUMERIC (13):
BigNumeric value
INTERVAL (14):
Interval
JSON (15):
JSON, String