Class WriteStream (2.18.1)

Stay organized with collections Save and categorize content based on your preferences.
WriteStream(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Information about a single stream that gets data inside the storage system.

Attributes

NameDescription
name str
Output only. Name of the stream, in the form projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}.
type_ google.cloud.bigquery_storage_v1.types.WriteStream.Type
Immutable. Type of the stream.
create_time google.protobuf.timestamp_pb2.Timestamp
Output only. Create time of the stream. For the \_default stream, this is the creation_time of the table.
commit_time google.protobuf.timestamp_pb2.Timestamp
Output only. Commit time of the stream. If a stream is of COMMITTED type, then it will have a commit_time same as create_time. If the stream is of PENDING type, empty commit_time means it is not committed.
table_schema google.cloud.bigquery_storage_v1.types.TableSchema
Output only. The schema of the destination table. It is only returned in CreateWriteStream response. Caller should generate data that's compatible with this schema to send in initial AppendRowsRequest. The table schema could go out of date during the life time of the stream.
write_mode google.cloud.bigquery_storage_v1.types.WriteStream.WriteMode
Immutable. Mode of the stream.
location str
Immutable. The geographic location where the stream's dataset resides. See https://cloud.google.com/bigquery/docs/locations for supported locations.

Classes

Type

Type(value)

Type enum of the stream.

Values: TYPE_UNSPECIFIED (0): Unknown type. COMMITTED (1): Data will commit automatically and appear as soon as the write is acknowledged. PENDING (2): Data is invisible until the stream is committed. BUFFERED (3): Data is only visible up to the offset to which it was flushed.

WriteMode

WriteMode(value)

Mode enum of the stream.

Values: WRITE_MODE_UNSPECIFIED (0): Unknown type. INSERT (1): Insert new records into the table. It is the default value if customers do not specify it.