Service Client: Google::Cloud::Bigquery::Storage::V1beta1::Storage::BigQueryStorageClient
Client stub representing the remote BigQueryStorage gRPC service. Delegates call dispatching to Google::gRPC::Client.
target
The endpoint target address. Defaults to bigquery.googleapis.com:443.
credentials
The authentication credentials provider. Defaults to application default credentials via Google::Auth.
NAME
Google::Cloud::Bigquery::Storage::V1beta1::Storage - Compiled Protocol Buffers messages for google/cloud/bigquery/storage/v1beta1/storage.proto
SYNOPSIS
use Google::Cloud::Bigquery::Storage::V1beta1::Storage;
my $msg = Google::Cloud::Bigquery::Storage::V1beta1::Storage::Stream->new({
name => $name,
});
# Read or update a field
my $val = $msg->name();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Bigquery::Storage::V1beta1::Storage::Stream->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/bigquery/storage/v1beta1/storage.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::V1beta1::Storage::Stream
Information about a single data stream within a read session.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringName of the stream, in the form `projects/{project_id}/locations/{location}/streams/{stream_id}`.
Google::Cloud::Bigquery::Storage::V1beta1::Storage::StreamPosition
Expresses a point within a given stream using an offset position.
Inherits from Protobuf::Message.
Accessors
$msg->stream()/$msg->stream($value)Type:
Message(Google::Cloud::Bigquery::Storage::V1beta1::Storage::Stream)Identifier for a given Stream.
$msg->offset()/$msg->offset($value)Type:
Int64Position in the stream.
Google::Cloud::Bigquery::Storage::V1beta1::Storage::ReadSession
Information returned from a `CreateReadSession` request.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringUnique 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)Time at which the session becomes invalid. After this time, subsequent requests to read this Session will return errors.
$msg->avro_schema()/$msg->avro_schema($value)Type:
Message(Google::Cloud::Bigquery::Storage::V1beta1::Avro::AvroSchema)Avro schema.
$msg->arrow_schema()/$msg->arrow_schema($value)Type:
Message(Google::Cloud::Bigquery::Storage::V1beta1::Arrow::ArrowSchema)Arrow schema.
$msg->streams()/$msg->streams($value)Type:
Message(Google::Cloud::Bigquery::Storage::V1beta1::Storage::Stream)Streams associated with this session.
$msg->table_reference()/$msg->table_reference($value)Type:
Message(Google::Cloud::Bigquery::Storage::V1beta1::TableReference::TableReference)Table that this ReadSession is reading from.
$msg->table_modifiers()/$msg->table_modifiers($value)Type:
Message(Google::Cloud::Bigquery::Storage::V1beta1::TableReference::TableModifiers)Any modifiers which are applied when reading from the specified table.
$msg->sharding_strategy()/$msg->sharding_strategy($value)Type:
Enum(Google::Cloud::Bigquery::Storage::V1beta1::ShardingStrategy)The strategy to use for distributing data among the streams.
Google::Cloud::Bigquery::Storage::V1beta1::Storage::CreateReadSessionRequest
Creates a new read session, which may include additional options such as requested parallelism, projection filters and constraints.
Inherits from Protobuf::Message.
Accessors
$msg->table_reference()/$msg->table_reference($value)Type:
Message(Google::Cloud::Bigquery::Storage::V1beta1::TableReference::TableReference)Required. Reference to the table to read.
$msg->parent()/$msg->parent($value)Type:
StringRequired. String of the form `projects/{project_id}` indicating the project this ReadSession is associated with. This is the project that will be billed for usage.
$msg->table_modifiers()/$msg->table_modifiers($value)Type:
Message(Google::Cloud::Bigquery::Storage::V1beta1::TableReference::TableModifiers)Any modifiers to the Table (e.g. snapshot timestamp).
$msg->requested_streams()/$msg->requested_streams($value)Type:
Int32Initial number of streams. If unset or 0, we will provide a value of streams so as to produce reasonable throughput. Must be non-negative. The number of streams may be lower than the requested number, depending on the amount parallelism that is reasonable for the table and the maximum amount of parallelism allowed by the system.
Streams must be read starting from offset 0.
$msg->read_options()/$msg->read_options($value)Type:
Message(Google::Cloud::Bigquery::Storage::V1beta1::ReadOptions::TableReadOptions)Read options for this session (e.g. column selection, filters).
$msg->format()/$msg->format($value)Type:
Enum(Google::Cloud::Bigquery::Storage::V1beta1::DataFormat)Data output format. Currently default to Avro. DATA_FORMAT_UNSPECIFIED not supported.
$msg->sharding_strategy()/$msg->sharding_strategy($value)Type:
Enum(Google::Cloud::Bigquery::Storage::V1beta1::ShardingStrategy)The strategy to use for distributing data among multiple streams. Currently defaults to liquid sharding.
Google::Cloud::Bigquery::Storage::V1beta1::Storage::ReadRowsRequest
Requesting row data via `ReadRows` must provide Stream position information.
Inherits from Protobuf::Message.
Accessors
$msg->read_position()/$msg->read_position($value)Type:
Message(Google::Cloud::Bigquery::Storage::V1beta1::Storage::StreamPosition)Required. Identifier of the position in the stream to start reading from. The offset requested must be less than the last row read from ReadRows. Requesting a larger offset is undefined.
Google::Cloud::Bigquery::Storage::V1beta1::Storage::StreamStatus
Progress information for a given Stream.
Inherits from Protobuf::Message.
Accessors
$msg->estimated_row_count()/$msg->estimated_row_count($value)Type:
Int64Number of estimated rows in the current stream. May change over time as different readers in the stream progress at rates which are relatively fast or slow.
$msg->fraction_consumed()/$msg->fraction_consumed($value)Type:
FloatA value in the range [0.0, 1.0] that represents the fraction of rows assigned to this stream that have been processed by the server. In the presence of read filters, the server may process more rows than it returns, so this value reflects progress through the pre-filtering rows.
This value is only populated for sessions created through the BALANCED sharding strategy.
$msg->progress()/$msg->progress($value)Type:
Message(Google::Cloud::Bigquery::Storage::V1beta1::Storage::Progress)Represents the progress of the current stream.
$msg->is_splittable()/$msg->is_splittable($value)Type:
BoolWhether this stream can be split. For sessions that use the LIQUID sharding strategy, this value is always false. For BALANCED sessions, this value is false when enough data have been read such that no more splits are possible at that point or beyond. For small tables or streams that are the result of a chain of splits, this value may never be true.
Google::Cloud::Bigquery::Storage::V1beta1::Storage::Progress
Inherits from Protobuf::Message.
Accessors
$msg->at_response_start()/$msg->at_response_start($value)Type:
FloatThe fraction of rows assigned to the stream that have been processed by the server so far, not including the rows in the current response message.
This value, along with `at_response_end`, can be used to interpolate the progress made as the rows in the message are being processed using the following formula: `at_response_start + (at_response_end - at_response_start) * rows_processed_from_response / rows_in_response`.
Note that if a filter is provided, the `at_response_end` value of the previous response may not necessarily be equal to the `at_response_start` value of the current response.
$msg->at_response_end()/$msg->at_response_end($value)Type:
FloatSimilar to `at_response_start`, except that this value includes the rows in the current response.
Google::Cloud::Bigquery::Storage::V1beta1::Storage::ThrottleStatus
Information on if the current connection is being throttled.
Inherits from Protobuf::Message.
Accessors
$msg->throttle_percent()/$msg->throttle_percent($value)Type:
Int32How much this connection is being throttled. 0 is no throttling, 100 is completely throttled.
Google::Cloud::Bigquery::Storage::V1beta1::Storage::ReadRowsResponse
Response from calling `ReadRows` may include row data, progress and throttling information.
Inherits from Protobuf::Message.
Accessors
$msg->avro_rows()/$msg->avro_rows($value)Type:
Message(Google::Cloud::Bigquery::Storage::V1beta1::Avro::AvroRows)Serialized row data in AVRO format.
$msg->arrow_record_batch()/$msg->arrow_record_batch($value)Type:
Message(Google::Cloud::Bigquery::Storage::V1beta1::Arrow::ArrowRecordBatch)Serialized row data in Arrow RecordBatch format.
$msg->row_count()/$msg->row_count($value)Type:
Int64Number of serialized rows in the rows block. This value is recorded here, in addition to the row_count values in the output-specific messages in `rows`, so that code which needs to record progress through the stream can do so in an output format-independent way.
$msg->status()/$msg->status($value)Type:
Message(Google::Cloud::Bigquery::Storage::V1beta1::Storage::StreamStatus)Estimated stream statistics.
$msg->throttle_status()/$msg->throttle_status($value)Type:
Message(Google::Cloud::Bigquery::Storage::V1beta1::Storage::ThrottleStatus)Throttling status. If unset, the latest response still describes the current throttling status.
$msg->avro_schema()/$msg->avro_schema($value)Type:
Message(Google::Cloud::Bigquery::Storage::V1beta1::Avro::AvroSchema)Output only. Avro schema.
$msg->arrow_schema()/$msg->arrow_schema($value)Type:
Message(Google::Cloud::Bigquery::Storage::V1beta1::Arrow::ArrowSchema)Output only. Arrow schema.
Google::Cloud::Bigquery::Storage::V1beta1::Storage::BatchCreateReadSessionStreamsRequest
Information needed to request additional streams for an established read session.
Inherits from Protobuf::Message.
Accessors
$msg->session()/$msg->session($value)Type:
Message(Google::Cloud::Bigquery::Storage::V1beta1::Storage::ReadSession)Required. Must be a non-expired session obtained from a call to CreateReadSession. Only the name field needs to be set.
$msg->requested_streams()/$msg->requested_streams($value)Type:
Int32Required. Number of new streams requested. Must be positive. Number of added streams may be less than this, see CreateReadSessionRequest for more information.
Google::Cloud::Bigquery::Storage::V1beta1::Storage::BatchCreateReadSessionStreamsResponse
The response from `BatchCreateReadSessionStreams` returns the stream identifiers for the newly created streams.
Inherits from Protobuf::Message.
Accessors
$msg->streams()/$msg->streams($value)Type:
Message(Google::Cloud::Bigquery::Storage::V1beta1::Storage::Stream)Newly added streams.
Google::Cloud::Bigquery::Storage::V1beta1::Storage::FinalizeStreamRequest
Request information for invoking `FinalizeStream`.
Inherits from Protobuf::Message.
Accessors
$msg->stream()/$msg->stream($value)Type:
Message(Google::Cloud::Bigquery::Storage::V1beta1::Storage::Stream)Required. Stream to finalize.
Google::Cloud::Bigquery::Storage::V1beta1::Storage::SplitReadStreamRequest
Request information for `SplitReadStream`.
Inherits from Protobuf::Message.
Accessors
$msg->original_stream()/$msg->original_stream($value)Type:
Message(Google::Cloud::Bigquery::Storage::V1beta1::Storage::Stream)Required. Stream to split.
$msg->fraction()/$msg->fraction($value)Type:
FloatA value in the range (0.0, 1.0) that specifies the fractional point at which the original stream should be split. The actual split point is evaluated on pre-filtered rows, so if a filter is provided, then there is no guarantee that the division of the rows between the new child streams will be proportional to this fractional value. Additionally, because the server-side unit for assigning data is collections of rows, this fraction will always map to to a data storage boundary on the server side.
Google::Cloud::Bigquery::Storage::V1beta1::Storage::SplitReadStreamResponse
Response from `SplitReadStream`.
Inherits from Protobuf::Message.
Accessors
$msg->primary_stream()/$msg->primary_stream($value)Type:
Message(Google::Cloud::Bigquery::Storage::V1beta1::Storage::Stream)Primary stream, which contains the beginning portion of |original_stream|. An empty value indicates that the original stream can no longer be split.
$msg->remainder_stream()/$msg->remainder_stream($value)Type:
Message(Google::Cloud::Bigquery::Storage::V1beta1::Storage::Stream)Remainder stream, which contains the tail of |original_stream|. An empty value indicates that the original stream can no longer be split.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Bigquery::Storage::V1beta1::Storage::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.