Service Client: Google::Cloud::Bigquery::Storage::V1beta2::Storage::BigQueryReadClient
Client stub representing the remote BigQueryRead 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.
Service Client: Google::Cloud::Bigquery::Storage::V1beta2::Storage::BigQueryWriteClient
Client stub representing the remote BigQueryWrite 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::V1beta2::Storage - Compiled Protocol Buffers messages for google/cloud/bigquery/storage/v1beta2/storage.proto
SYNOPSIS
use Google::Cloud::Bigquery::Storage::V1beta2::Storage;
my $msg = Google::Cloud::Bigquery::Storage::V1beta2::Storage::CreateReadSessionRequest->new({
parent => $parent,
read_session => $read_session,
max_stream_count => $max_stream_count,
});
# Read or update a field
my $val = $msg->parent();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Bigquery::Storage::V1beta2::Storage::CreateReadSessionRequest->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/bigquery/storage/v1beta2/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::V1beta2::Storage::CreateReadSessionRequest
Request message for `CreateReadSession`.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The request project that owns the session, in the form of `projects/{project_id}`.
$msg->read_session()/$msg->read_session($value)Type:
Message(Google::Cloud::Bigquery::Storage::V1beta2::Stream::ReadSession)Required. Session to be created.
$msg->max_stream_count()/$msg->max_stream_count($value)Type:
Int32Max initial number of streams. If unset or zero, the server 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. Error will be returned if the max count is greater than the current system max limit of 1,000.
Streams must be read starting from offset 0.
Google::Cloud::Bigquery::Storage::V1beta2::Storage::ReadRowsRequest
Request message for `ReadRows`.
Inherits from Protobuf::Message.
Accessors
$msg->read_stream()/$msg->read_stream($value)Type:
StringRequired. Stream to read rows from.
$msg->offset()/$msg->offset($value)Type:
Int64The offset requested must be less than the last row read from Read. Requesting a larger offset is undefined. If not specified, start reading from offset zero.
Google::Cloud::Bigquery::Storage::V1beta2::Storage::ThrottleState
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. Zero means no throttling, 100 means fully throttled.
Google::Cloud::Bigquery::Storage::V1beta2::Storage::StreamStats
Estimated stream statistics for a given Stream.
Inherits from Protobuf::Message.
Accessors
$msg->progress()/$msg->progress($value)Type:
Message(Google::Cloud::Bigquery::Storage::V1beta2::Storage::StreamStats::Progress)Represents the progress of the current stream.
Google::Cloud::Bigquery::Storage::V1beta2::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::V1beta2::Avro::AvroRows)Serialized row data in AVRO format.
$msg->arrow_record_batch()/$msg->arrow_record_batch($value)Type:
Message(Google::Cloud::Bigquery::Storage::V1beta2::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.
$msg->stats()/$msg->stats($value)Type:
Message(Google::Cloud::Bigquery::Storage::V1beta2::Storage::StreamStats)Statistics for the stream.
$msg->throttle_state()/$msg->throttle_state($value)Type:
Message(Google::Cloud::Bigquery::Storage::V1beta2::Storage::ThrottleState)Throttling state. If unset, the latest response still describes the current throttling status.
$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.
Google::Cloud::Bigquery::Storage::V1beta2::Storage::SplitReadStreamRequest
Request message for `SplitReadStream`.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. Name of the stream to split.
$msg->fraction()/$msg->fraction($value)Type:
DoubleA 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 a data storage boundary on the server side.
Google::Cloud::Bigquery::Storage::V1beta2::Storage::SplitReadStreamResponse
Inherits from Protobuf::Message.
Accessors
$msg->primary_stream()/$msg->primary_stream($value)Type:
Message(Google::Cloud::Bigquery::Storage::V1beta2::Stream::ReadStream)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::V1beta2::Stream::ReadStream)Remainder stream, which contains the tail of |original_stream|. An empty value indicates that the original stream can no longer be split.
Google::Cloud::Bigquery::Storage::V1beta2::Storage::CreateWriteStreamRequest
Request message for `CreateWriteStream`.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. Reference to the table to which the stream belongs, in the format of `projects/{project}/datasets/{dataset}/tables/{table}`.
$msg->write_stream()/$msg->write_stream($value)Type:
Message(Google::Cloud::Bigquery::Storage::V1beta2::Stream::WriteStream)Required. Stream to be created.
Google::Cloud::Bigquery::Storage::V1beta2::Storage::AppendRowsRequest
Request message for `AppendRows`.
Inherits from Protobuf::Message.
Accessors
$msg->write_stream()/$msg->write_stream($value)Type:
StringRequired. The stream that is the target of the append operation. This value must be specified for the initial request. If subsequent requests specify the stream name, it must equal to the value provided in the first request. To write to the _default stream, populate this field with a string in the format `projects/{project}/datasets/{dataset}/tables/{table}/_default`.
$msg->offset()/$msg->offset($value)Type:
Message(Google::Protobuf::Wrappers::Int64Value)If present, the write is only performed if the next append offset is same as the provided value. If not present, the write is performed at the current end of stream. Specifying a value for this field is not allowed when calling AppendRows for the '_default' stream.
$msg->proto_rows()/$msg->proto_rows($value)Type:
Message(Google::Cloud::Bigquery::Storage::V1beta2::Storage::AppendRowsRequest::ProtoData)Rows in proto format.
$msg->trace_id()/$msg->trace_id($value)Type:
StringId set by client to annotate its identity. Only initial request setting is respected.
Google::Cloud::Bigquery::Storage::V1beta2::Storage::AppendRowsResponse
Response message for `AppendRows`.
Inherits from Protobuf::Message.
Accessors
$msg->append_result()/$msg->append_result($value)Type:
Message(Google::Cloud::Bigquery::Storage::V1beta2::Storage::AppendRowsResponse::AppendResult)Result if the append is successful.
$msg->error()/$msg->error($value)Type:
Message(Google::Rpc::Status::Status)Error returned when problems were encountered. If present, it indicates rows were not accepted into the system. Users can retry or continue with other append requests within the same connection.
Additional information about error signalling:
ALREADY_EXISTS: Happens when an append specified an offset, and the backend already has received data at this offset. Typically encountered in retry scenarios, and can be ignored.
OUT_OF_RANGE: Returned when the specified offset in the stream is beyond the current end of the stream.
INVALID_ARGUMENT: Indicates a malformed request or data.
ABORTED: Request processing is aborted because of prior failures. The request can be retried if previous failure is addressed.
INTERNAL: Indicates server side error(s) that can be retried.
$msg->updated_schema()/$msg->updated_schema($value)Type:
Message(Google::Cloud::Bigquery::Storage::V1beta2::Table::TableSchema)If backend detects a schema update, pass it to user so that user can use it to input new type of message. It will be empty when no schema updates have occurred.
Google::Cloud::Bigquery::Storage::V1beta2::Storage::GetWriteStreamRequest
Request message for `GetWriteStreamRequest`.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. Name of the stream to get, in the form of `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
Google::Cloud::Bigquery::Storage::V1beta2::Storage::BatchCommitWriteStreamsRequest
Request message for `BatchCommitWriteStreams`.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. Parent table that all the streams should belong to, in the form of `projects/{project}/datasets/{dataset}/tables/{table}`.
$msg->write_streams()/$msg->write_streams($value)Type:
StringRequired. The group of streams that will be committed atomically.
Google::Cloud::Bigquery::Storage::V1beta2::Storage::BatchCommitWriteStreamsResponse
Response message for `BatchCommitWriteStreams`.
Inherits from Protobuf::Message.
Accessors
$msg->commit_time()/$msg->commit_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)The time at which streams were committed in microseconds granularity. This field will only exist when there are no stream errors. Note if this field is not set, it means the commit was not successful.
$msg->stream_errors()/$msg->stream_errors($value)Type:
Message(Google::Cloud::Bigquery::Storage::V1beta2::Storage::StorageError)Stream level error if commit failed. Only streams with error will be in the list. If empty, there is no error and all streams are committed successfully. If non empty, certain streams have errors and ZERO stream is committed due to atomicity guarantee.
Google::Cloud::Bigquery::Storage::V1beta2::Storage::FinalizeWriteStreamRequest
Request message for invoking `FinalizeWriteStream`.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. Name of the stream to finalize, in the form of `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
Google::Cloud::Bigquery::Storage::V1beta2::Storage::FinalizeWriteStreamResponse
Response message for `FinalizeWriteStream`.
Inherits from Protobuf::Message.
Accessors
$msg->row_count()/$msg->row_count($value)Type:
Int64Number of rows in the finalized stream.
Google::Cloud::Bigquery::Storage::V1beta2::Storage::FlushRowsRequest
Request message for `FlushRows`.
Inherits from Protobuf::Message.
Accessors
$msg->write_stream()/$msg->write_stream($value)Type:
StringRequired. The stream that is the target of the flush operation.
$msg->offset()/$msg->offset($value)Type:
Message(Google::Protobuf::Wrappers::Int64Value)Ending offset of the flush operation. Rows before this offset(including this offset) will be flushed.
Google::Cloud::Bigquery::Storage::V1beta2::Storage::FlushRowsResponse
Respond message for `FlushRows`.
Inherits from Protobuf::Message.
Accessors
$msg->offset()/$msg->offset($value)Type:
Int64The rows before this offset (including this offset) are flushed.
Google::Cloud::Bigquery::Storage::V1beta2::Storage::StorageError
Structured custom BigQuery Storage error message. The error can be attached as error details in the returned rpc Status. In particular, the use of error codes allows more structured error handling, and reduces the need to evaluate unstructured error text strings.
Inherits from Protobuf::Message.
Accessors
$msg->code()/$msg->code($value)Type:
Enum(Google::Cloud::Bigquery::Storage::V1beta2::StorageError::StorageErrorCode)BigQuery Storage specific error code.
$msg->entity()/$msg->entity($value)Type:
StringName of the failed entity.
$msg->error_message()/$msg->error_message($value)Type:
StringMessage that describes the error.
Enum: StorageError::StorageErrorCode
STORAGE_ERROR_CODE_UNSPECIFIED=>0TABLE_NOT_FOUND=>1STREAM_ALREADY_COMMITTED=>2STREAM_NOT_FOUND=>3INVALID_STREAM_TYPE=>4INVALID_STREAM_STATE=>5STREAM_FINALIZED=>6
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Bigquery::Storage::V1beta2::Storage::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.