Class WriteStream (2.23.0)

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

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


name str
Output only. Name of the stream, in the form projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}.
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.
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.
Immutable. Mode of the stream.
location str
Immutable. The geographic location where the stream's dataset resides. See for supported locations.




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.



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.