Service Client: Google::Cloud::Bigquery::Storage::V1alpha::MetastorePartition::MetastorePartitionServiceClient

Client stub representing the remote MetastorePartitionService 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::V1alpha::MetastorePartition - Compiled Protocol Buffers messages for google/cloud/bigquery/storage/v1alpha/metastore_partition.proto

SYNOPSIS

use Google::Cloud::Bigquery::Storage::V1alpha::MetastorePartition;

my $msg = Google::Cloud::Bigquery::Storage::V1alpha::MetastorePartition::CreateMetastorePartitionRequest->new({
    parent => $parent,
    metastore_partition => $metastore_partition,
});

# Read or update a field
my $val = $msg->parent();

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Cloud::Bigquery::Storage::V1alpha::MetastorePartition::CreateMetastorePartitionRequest->parse($bytes);

# Canonical ProtoJSON
my $json = $msg->to_json();

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/bigquery/storage/v1alpha/metastore_partition.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::V1alpha::MetastorePartition::CreateMetastorePartitionRequest

Request message for CreateMetastorePartition. The MetastorePartition is uniquely identified by values, which is an ordered list. Hence, there is no separate name or partition id field.

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Required. Reference to the table to where the metastore partition to be added, in the format of projects/{project}/databases/{databases}/tables/{table}.

  • $msg->metastore_partition() / $msg->metastore_partition($value)

    Type: Message (Google::Cloud::Bigquery::Storage::V1alpha::Partition::MetastorePartition)

    Required. The metastore partition to be added.

Google::Cloud::Bigquery::Storage::V1alpha::MetastorePartition::BatchCreateMetastorePartitionsRequest

Request message for BatchCreateMetastorePartitions.

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Required. Reference to the table to where the metastore partitions to be added, in the format of projects/{project}/locations/{location}/datasets/{dataset}/tables/{table}.

  • $msg->requests() / $msg->requests($value)

    Type: Message (Google::Cloud::Bigquery::Storage::V1alpha::MetastorePartition::CreateMetastorePartitionRequest)

    Required. Requests to add metastore partitions to the table.

  • $msg->skip_existing_partitions() / $msg->skip_existing_partitions($value)

    Type: Bool

    Optional. Mimics the ifNotExists flag in IMetaStoreClient add_partitions(..). If the flag is set to false, the server will return ALREADY_EXISTS if any partition already exists. If the flag is set to true, the server will skip existing partitions and insert only the non-existing partitions. A maximum of 900 partitions can be inserted in a batch.

  • $msg->trace_id() / $msg->trace_id($value)

    Type: String

    Optional. Optional trace id to be used for debugging. It is expected that the client sets the same `trace_id` for all the batches in the same operation, so that it is possible to tie together the logs to all the batches in the same operation. Limited to 256 characters. This is expected, but not required, to be globally unique.

Google::Cloud::Bigquery::Storage::V1alpha::MetastorePartition::BatchCreateMetastorePartitionsResponse

Response message for BatchCreateMetastorePartitions.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Bigquery::Storage::V1alpha::MetastorePartition::BatchDeleteMetastorePartitionsRequest

Request message for BatchDeleteMetastorePartitions. The MetastorePartition is uniquely identified by values, which is an ordered list. Hence, there is no separate name or partition id field.

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Required. Reference to the table to which these metastore partitions belong, in the format of projects/{project}/locations/{location}/datasets/{dataset}/tables/{table}.

  • $msg->partition_values() / $msg->partition_values($value)

    Type: Message (Google::Cloud::Bigquery::Storage::V1alpha::Partition::MetastorePartitionValues)

    Required. The list of metastore partitions (identified by its values) to be deleted. A maximum of 900 partitions can be deleted in a batch.

  • $msg->trace_id() / $msg->trace_id($value)

    Type: String

    Optional. Optional trace id to be used for debugging. It is expected that the client sets the same `trace_id` for all the batches in the same operation, so that it is possible to tie together the logs to all the batches in the same operation. This is expected, but not required, to be globally unique.

Google::Cloud::Bigquery::Storage::V1alpha::MetastorePartition::UpdateMetastorePartitionRequest

Request message for UpdateMetastorePartition.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Bigquery::Storage::V1alpha::MetastorePartition::BatchUpdateMetastorePartitionsRequest

Request message for BatchUpdateMetastorePartitions.

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Required. Reference to the table to which these metastore partitions belong, in the format of projects/{project}/locations/{location}/datasets/{dataset}/tables/{table}.

  • $msg->requests() / $msg->requests($value)

    Type: Message (Google::Cloud::Bigquery::Storage::V1alpha::MetastorePartition::UpdateMetastorePartitionRequest)

    Required. Requests to update metastore partitions in the table.

  • $msg->trace_id() / $msg->trace_id($value)

    Type: String

    Optional. Optional trace id to be used for debugging. It is expected that the client sets the same `trace_id` for all the batches in the same operation, so that it is possible to tie together the logs to all the batches in the same operation. This is expected, but not required, to be globally unique.

Google::Cloud::Bigquery::Storage::V1alpha::MetastorePartition::BatchUpdateMetastorePartitionsResponse

Response message for BatchUpdateMetastorePartitions.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Bigquery::Storage::V1alpha::MetastorePartition::ListMetastorePartitionsRequest

Request message for ListMetastorePartitions.

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Required. Reference to the table to which these metastore partitions belong, in the format of projects/{project}/locations/{location}/datasets/{dataset}/tables/{table}.

  • $msg->filter() / $msg->filter($value)

    Type: String

    Optional. SQL text filtering statement, similar to a WHERE clause in a query. Only supports single-row expressions. Aggregate functions are not supported.

    Examples: "int_field > 5" "date_field = CAST('2014-9-27' as DATE)" "nullable_field is not NULL" "st_equals(geo_field, st_geofromtext("POINT(2, 2)"))" "numeric_field BETWEEN 1.0 AND 5.0" Restricted to a maximum length for 1 MB.

  • $msg->trace_id() / $msg->trace_id($value)

    Type: String

    Optional. Optional trace id to be used for debugging. It is expected that the client sets the same `trace_id` for all the batches in the same operation, so that it is possible to tie together the logs to all the batches in the same operation. Limited to 256 characters. This is expected, but not required, to be globally unique.

Google::Cloud::Bigquery::Storage::V1alpha::MetastorePartition::ListMetastorePartitionsResponse

Response message for ListMetastorePartitions.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Bigquery::Storage::V1alpha::MetastorePartition::StreamMetastorePartitionsRequest

The top-level message sent by the client to the [Partitions.StreamMetastorePartitions][] method. Follows the default gRPC streaming maximum size of 4 MB.

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Required. Reference to the table to where the partition to be added, in the format of projects/{project}/locations/{location}/datasets/{dataset}/tables/{table}.

  • $msg->metastore_partitions() / $msg->metastore_partitions($value)

    Type: Message (Google::Cloud::Bigquery::Storage::V1alpha::Partition::MetastorePartition)

    Optional. A list of metastore partitions to be added to the table.

  • $msg->skip_existing_partitions() / $msg->skip_existing_partitions($value)

    Type: Bool

    Optional. Mimics the ifNotExists flag in IMetaStoreClient add_partitions(..). If the flag is set to false, the server will return ALREADY_EXISTS on commit if any partition already exists. If the flag is set to true: 1) the server will skip existing partitions insert only the non-existing partitions as part of the commit. 2) The client must set the `skip_existing_partitions` field to true for all requests in the stream.

Google::Cloud::Bigquery::Storage::V1alpha::MetastorePartition::StreamMetastorePartitionsResponse

This is the response message sent by the server to the client for the [Partitions.StreamMetastorePartitions][] method when the commit is successful. Server will close the stream after sending this message.

Inherits from Protobuf::Message.

Accessors

  • $msg->total_partitions_streamed_count() / $msg->total_partitions_streamed_count($value)

    Type: Int64

    Total count of partitions streamed by the client during the lifetime of the stream. This is only set in the final response message before closing the stream.

  • $msg->total_partitions_inserted_count() / $msg->total_partitions_inserted_count($value)

    Type: Int64

    Total count of partitions inserted by the server during the lifetime of the stream. This is only set in the final response message before closing the stream.

Google::Cloud::Bigquery::Storage::V1alpha::MetastorePartition::BatchSizeTooLargeError

Structured custom error message for batch size too large error. The error can be attached as error details in the returned rpc Status for more structured error handling in the client.

Inherits from Protobuf::Message.

Accessors

  • $msg->max_batch_size() / $msg->max_batch_size($value)

    Type: Int64

    The maximum number of items that are supported in a single batch. This is returned as a hint to the client to adjust the batch size.

  • $msg->error_message() / $msg->error_message($value)

    Type: String

    Optional. The error message that is returned to the client.

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Bigquery::Storage::V1alpha::MetastorePartition::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.