NAME
Google::Cloud::Bigquery::Storage::V1beta2::Stream - Compiled Protocol Buffers messages for google/cloud/bigquery/storage/v1beta2/stream.proto
SYNOPSIS
use Google::Cloud::Bigquery::Storage::V1beta2::Stream;
my $msg = Google::Cloud::Bigquery::Storage::V1beta2::Stream::ReadSession->new({
name => $name,
expire_time => $expire_time,
data_format => $data_format,
avro_schema => $avro_schema,
});
# Read or update a field
my $val = $msg->name();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Bigquery::Storage::V1beta2::Stream::ReadSession->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/bigquery/storage/v1beta2/stream.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().
MESSAGES
Google::Cloud::Bigquery::Storage::V1beta2::Stream::ReadSession
Information about the ReadSession.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringOutput only. Unique identifier for the session, in the form `projects/{project_id}/locations/{location}/sessions/{session_id}`.
$msg->expire_time()/$msg->expire_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. Time at which the session becomes invalid. After this time, subsequent requests to read this Session will return errors. The expire_time is automatically assigned and currently cannot be specified or updated.
$msg->data_format()/$msg->data_format($value)Type:
Enum(Google::Cloud::Bigquery::Storage::V1beta2::DataFormat)Immutable. Data format of the output data.
$msg->avro_schema()/$msg->avro_schema($value)Type:
Message(Google::Cloud::Bigquery::Storage::V1beta2::Avro::AvroSchema)Output only. Avro schema.
$msg->arrow_schema()/$msg->arrow_schema($value)Type:
Message(Google::Cloud::Bigquery::Storage::V1beta2::Arrow::ArrowSchema)Output only. Arrow schema.
$msg->table()/$msg->table($value)Type:
StringImmutable. Table that this ReadSession is reading from, in the form `projects/{project_id}/datasets/{dataset_id}/tables/{table_id}
$msg->table_modifiers()/$msg->table_modifiers($value)Type:
Message(Google::Cloud::Bigquery::Storage::V1beta2::Stream::ReadSession::TableModifiers)Optional. Any modifiers which are applied when reading from the specified table.
$msg->read_options()/$msg->read_options($value)Type:
Message(Google::Cloud::Bigquery::Storage::V1beta2::Stream::ReadSession::TableReadOptions)Optional. Read options for this session (e.g. column selection, filters).
$msg->streams()/$msg->streams($value)Type:
Message(Google::Cloud::Bigquery::Storage::V1beta2::Stream::ReadStream)Output only. A list of streams created with the session.
At least one stream is created with the session. In the future, larger request_stream_count values *may* result in this list being unpopulated, in that case, the user will need to use a List method to get the streams instead, which is not yet available.
Google::Cloud::Bigquery::Storage::V1beta2::Stream::ReadStream
Information about a single stream that gets data out of the storage system. Most of the information about `ReadStream` instances is aggregated, making `ReadStream` lightweight.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringOutput only. Name of the stream, in the form `projects/{project_id}/locations/{location}/sessions/{session_id}/streams/{stream_id}`.
Google::Cloud::Bigquery::Storage::V1beta2::Stream::WriteStream
Information about a single stream that gets data inside the storage system.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringOutput only. Name of the stream, in the form `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
$msg->type()/$msg->type($value)Type:
Enum(Google::Cloud::Bigquery::Storage::V1beta2::WriteStream::Type)Immutable. Type of the stream.
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. Create time of the stream. For the _default stream, this is the creation_time of the table.
$msg->commit_time()/$msg->commit_time($value)Type:
Message(Google::Protobuf::Timestamp::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, commit_time being empty means it is not committed.
$msg->table_schema()/$msg->table_schema($value)Type:
Message(Google::Cloud::Bigquery::Storage::V1beta2::Table::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.
Enum: WriteStream::Type
TYPE_UNSPECIFIED=>0COMMITTED=>1PENDING=>2BUFFERED=>3
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Bigquery::Storage::V1beta2::Stream::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.