Service Client: Google::Cloud::Bigquery::Storage::V1beta::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::V1beta::MetastorePartition - Compiled Protocol Buffers messages for google/cloud/bigquery/storage/v1beta/metastore_partition.proto
SYNOPSIS
use Google::Cloud::Bigquery::Storage::V1beta::MetastorePartition;
my $msg = Google::Cloud::Bigquery::Storage::V1beta::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::V1beta::MetastorePartition::CreateMetastorePartitionRequest->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/bigquery/storage/v1beta/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::V1beta::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:
StringRequired. 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::V1beta::Partition::MetastorePartition)Required. The metastore partition to be added.
Google::Cloud::Bigquery::Storage::V1beta::MetastorePartition::BatchCreateMetastorePartitionsRequest
Request message for BatchCreateMetastorePartitions.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. 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::V1beta::MetastorePartition::CreateMetastorePartitionRequest)Required. Requests to add metastore partitions to the table.
$msg->skip_existing_partitions()/$msg->skip_existing_partitions($value)Type:
BoolOptional. 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:
StringOptional. 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::V1beta::MetastorePartition::BatchCreateMetastorePartitionsResponse
Response message for BatchCreateMetastorePartitions.
Inherits from Protobuf::Message.
Accessors
$msg->partitions()/$msg->partitions($value)Type:
Message(Google::Cloud::Bigquery::Storage::V1beta::Partition::MetastorePartition)The list of metastore partitions that have been created.
Google::Cloud::Bigquery::Storage::V1beta::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:
StringRequired. 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::V1beta::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:
StringOptional. 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::V1beta::MetastorePartition::UpdateMetastorePartitionRequest
Request message for UpdateMetastorePartition.
Inherits from Protobuf::Message.
Accessors
$msg->metastore_partition()/$msg->metastore_partition($value)Type:
Message(Google::Cloud::Bigquery::Storage::V1beta::Partition::MetastorePartition)Required. The metastore partition to be updated.
$msg->update_mask()/$msg->update_mask($value)Type:
Message(Google::Protobuf::FieldMask::FieldMask)Optional. The list of fields to update.
Google::Cloud::Bigquery::Storage::V1beta::MetastorePartition::BatchUpdateMetastorePartitionsRequest
Request message for BatchUpdateMetastorePartitions.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. 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::V1beta::MetastorePartition::UpdateMetastorePartitionRequest)Required. Requests to update metastore partitions in the table.
$msg->trace_id()/$msg->trace_id($value)Type:
StringOptional. 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::V1beta::MetastorePartition::BatchUpdateMetastorePartitionsResponse
Response message for BatchUpdateMetastorePartitions.
Inherits from Protobuf::Message.
Accessors
$msg->partitions()/$msg->partitions($value)Type:
Message(Google::Cloud::Bigquery::Storage::V1beta::Partition::MetastorePartition)The list of metastore partitions that have been updated. A maximum of 900 partitions can be updated in a batch.
Google::Cloud::Bigquery::Storage::V1beta::MetastorePartition::ListMetastorePartitionsRequest
Request message for ListMetastorePartitions.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. 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:
StringOptional. 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 of 1 MB.
$msg->trace_id()/$msg->trace_id($value)Type:
StringOptional. 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::V1beta::MetastorePartition::ListMetastorePartitionsResponse
Response message for ListMetastorePartitions.
Inherits from Protobuf::Message.
Accessors
$msg->partitions()/$msg->partitions($value)Type:
Message(Google::Cloud::Bigquery::Storage::V1beta::Partition::MetastorePartitionList)The list of partitions.
$msg->streams()/$msg->streams($value)Type:
Message(Google::Cloud::Bigquery::Storage::V1beta::Partition::StreamList)The list of streams.
Google::Cloud::Bigquery::Storage::V1beta::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:
StringRequired. 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::V1beta::Partition::MetastorePartition)Optional. A list of metastore partitions to be added to the table.
$msg->skip_existing_partitions()/$msg->skip_existing_partitions($value)Type:
BoolOptional. 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::V1beta::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:
Int64Total 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:
Int64Total 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::V1beta::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:
Int64The 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:
StringOptional. The error message that is returned to the client.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Bigquery::Storage::V1beta::MetastorePartition::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.