NAME

Google::Cloud::Datacatalog::V1::TableSpec - Compiled Protocol Buffers messages for google/cloud/datacatalog/v1/table_spec.proto

SYNOPSIS

use Google::Cloud::Datacatalog::V1::TableSpec;

my $msg = Google::Cloud::Datacatalog::V1::TableSpec::BigQueryTableSpec->new({
    table_source_type => $table_source_type,
    view_spec => $view_spec,
    table_spec => $table_spec,
});

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

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Cloud::Datacatalog::V1::TableSpec::BigQueryTableSpec->parse($bytes);

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/datacatalog/v1/table_spec.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::Datacatalog::V1::TableSpec::BigQueryTableSpec

Describes a BigQuery table.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Datacatalog::V1::TableSpec::ViewSpec

Table view specification.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Output only. The query that defines the table view.

Google::Cloud::Datacatalog::V1::TableSpec::TableSpec

Normal BigQuery table specification.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Output only. If the table is date-sharded, that is, it matches the `[prefix]YYYYMMDD` name pattern, this field is the Data Catalog resource name of the date-sharded grouped entry. For example:

    `projects/{PROJECT_ID}/locations/{LOCATION}/entrygroups/{ENTRY_GROUP_ID}/entries/{ENTRY_ID}`.

    Otherwise, `grouped_entry` is empty.

Google::Cloud::Datacatalog::V1::TableSpec::BigQueryDateShardedSpec

Specification for a group of BigQuery tables with the `[prefix]YYYYMMDD` name pattern.

For more information, see [Introduction to partitioned tables] (https://cloud.google.com/bigquery/docs/partitioned-tables#partitioning_versus_sharding).

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Output only. The Data Catalog resource name of the dataset entry the current table belongs to. For example:

    `projects/{PROJECT_ID}/locations/{LOCATION}/entrygroups/{ENTRY_GROUP_ID}/entries/{ENTRY_ID}`.

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

    Type: String

    Output only. The table name prefix of the shards.

    The name of any given shard is `[table_prefix]YYYYMMDD`. For example, for the `MyTable20180101` shard, the `table_prefix` is `MyTable`.

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

    Type: Int64

    Output only. Total number of shards.

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

    Type: String

    Output only. BigQuery resource name of the latest shard.

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Datacatalog::V1::TableSpec::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.