NAME

Google::Bigtable::Admin::V2::Table - Compiled Protocol Buffers messages for google/bigtable/admin/v2/table.proto

SYNOPSIS

use Google::Bigtable::Admin::V2::Table;

my $msg = Google::Bigtable::Admin::V2::Table::RestoreInfo->new({
    source_type => $source_type,
    backup_info => $backup_info,
});

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

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Bigtable::Admin::V2::Table::RestoreInfo->parse($bytes);

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/bigtable/admin/v2/table.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().

MESSAGES

Google::Bigtable::Admin::V2::Table::RestoreInfo

Information about a table restore.

Inherits from Protobuf::Message.

Accessors

Google::Bigtable::Admin::V2::Table::ChangeStreamConfig

Change stream configuration.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Protobuf::Duration::Duration)

    How long the change stream should be retained. Change stream data older than the retention period will not be returned when reading the change stream from the table. Values must be at least 1 day and at most 7 days, and will be truncated to microsecond granularity.

Google::Bigtable::Admin::V2::Table::Table

A collection of user data indexed by row, column, and timestamp. Each table is served using the resources of its parent cluster.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    The unique name of the table. Values are of the form `projects/{project}/instances/{instance}/tables/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`. Views: `NAME_ONLY`, `SCHEMA_VIEW`, `REPLICATION_VIEW`, `FULL`

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

    Type: Message (Google::Bigtable::Admin::V2::Table::Table::ClusterStatesEntry)

    Output only. Map from cluster ID to per-cluster table state. If it could not be determined whether or not the table has data in a particular cluster (for example, if its zone is unavailable), then there will be an entry for the cluster with UNKNOWN `replication_status`. Views: `REPLICATION_VIEW`, `ENCRYPTION_VIEW`, `FULL`

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

    Type: Message (Google::Bigtable::Admin::V2::Table::Table::ColumnFamiliesEntry)

    The column families configured for this table, mapped by column family ID. Views: `SCHEMA_VIEW`, `STATS_VIEW`, `FULL`

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

    Type: Enum (Google::Bigtable::Admin::V2::Table::TimestampGranularity)

    Immutable. The granularity (i.e. `MILLIS`) at which timestamps are stored in this table. Timestamps not matching the granularity will be rejected. If unspecified at creation time, the value will be set to `MILLIS`. Views: `SCHEMA_VIEW`, `FULL`.

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

    Type: Message (Google::Bigtable::Admin::V2::Table::RestoreInfo)

    Output only. If this table was restored from another data source (e.g. a backup), this field will be populated with information about the restore.

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

    Type: Message (Google::Bigtable::Admin::V2::Table::ChangeStreamConfig)

    If specified, enable the change stream on this table. Otherwise, the change stream is disabled and the change stream is not retained.

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

    Type: Bool

    Set to true to make the table protected against data loss. i.e. deleting the following resources through Admin APIs are prohibited:

    * The table. * The column families in the table. * The instance containing the table.

    Note one can still delete the data stored in the table through Data APIs.

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

    Type: Message (Google::Bigtable::Admin::V2::Table::Table::AutomatedBackupPolicy)

    If specified, automated backups are enabled for this table. Otherwise, automated backups are disabled.

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

    Type: Message (Google::Bigtable::Admin::V2::Table::Table::AutomatedBackupPolicy)

    Output only. The effective automated backup policy applied to the table. This represents the policy actually in effect, which may be a system-default policy if the user has not explicitly configured one. Views: `SCHEMA_VIEW`, `FULL`.

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

    Type: Message (Google::Bigtable::Admin::V2::Table::TieredStorageConfig)

    Rules to specify what data is stored in each storage tier. Different tiers store data differently, providing different trade-offs between cost and performance. Different parts of a table can be stored separately on different tiers. If a config is specified, tiered storage is enabled for this table. Otherwise, tiered storage is disabled. Only SSD instances can configure tiered storage.

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

    Type: Message (Google::Bigtable::Admin::V2::Types::Type::Struct)

    The row key schema for this table. The schema is used to decode the raw row key bytes into a structured format. The order of field declarations in this schema is important, as it reflects how the raw row key bytes are structured. Currently, this only affects how the key is read via a GoogleSQL query from the ExecuteQuery API.

    For a SQL query, the _key column is still read as raw bytes. But queries can reference the key fields by name, which will be decoded from _key using provided type and encoding. Queries that reference key fields will fail if they encounter an invalid row key.

    For example, if _key = "some_id#2024-04-30#\x00\x13\x00\xf3" with the following schema: { fields { field_name: "id" type { string { encoding: utf8_bytes {} } } } fields { field_name: "date" type { string { encoding: utf8_bytes {} } } } fields { field_name: "product_code" type { int64 { encoding: big_endian_bytes {} } } } encoding { delimited_bytes { delimiter: "#" } } }

    The decoded key parts would be: id = "some_id", date = "2024-04-30", product_code = 1245427 The query "SELECT _key, product_code FROM table" will return two columns: /------------------------------------------------------\ | _key | product_code | | --------------------------------------|--------------| | "some_id#2024-04-30#\x00\x13\x00\xf3" | 1245427 | \------------------------------------------------------/

    The schema has the following invariants: (1) The decoded field values are order-preserved. For read, the field values will be decoded in sorted mode from the raw bytes. (2) Every field in the schema must specify a non-empty name. (3) Every field must specify a type with an associated encoding. The type is limited to scalar types only: Array, Map, Aggregate, and Struct are not allowed. (4) The field names must not collide with existing column family names and reserved keywords "_key" and "_timestamp".

    The following update operations are allowed for row_key_schema: - Update from an empty schema to a new schema. - Remove the existing schema. This operation requires setting the `ignore_warnings` flag to `true`, since it might be a backward incompatible change. Without the flag, the update request will fail with an INVALID_ARGUMENT error. Any other row key schema update operation (e.g. update existing schema columns names or types) is currently unsupported.

Enum: Table::TimestampGranularity

  • TIMESTAMP_GRANULARITY_UNSPECIFIED => 0

  • MILLIS => 1

  • MICROS => 2

Enum: Table::View

  • VIEW_UNSPECIFIED => 0

  • NAME_ONLY => 1

  • SCHEMA_VIEW => 2

  • REPLICATION_VIEW => 3

  • ENCRYPTION_VIEW => 5

  • FULL => 4

Google::Bigtable::Admin::V2::Table::AuthorizedView

AuthorizedViews represent subsets of a particular Cloud Bigtable table. Users can configure access to each Authorized View independently from the table and use the existing Data APIs to access the subset of data.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Identifier. The name of this AuthorizedView. Values are of the form `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`

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

    Type: Message (Google::Bigtable::Admin::V2::Table::AuthorizedView::SubsetView)

    An AuthorizedView permitting access to an explicit subset of a Table.

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

    Type: String

    The etag for this AuthorizedView. If this is provided on update, it must match the server's etag. The server returns ABORTED error on a mismatched etag.

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

    Type: Bool

    Set to true to make the AuthorizedView protected against deletion. The parent Table and containing Instance cannot be deleted if an AuthorizedView has this bit set.

Enum: AuthorizedView::ResponseView

  • RESPONSE_VIEW_UNSPECIFIED => 0

  • NAME_ONLY => 1

  • BASIC => 2

  • FULL => 3

Google::Bigtable::Admin::V2::Table::ColumnFamily

A set of columns within a table which share a common configuration.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Bigtable::Admin::V2::Table::GcRule)

    Garbage collection rule specified as a protobuf. Must serialize to at most 500 bytes.

    NOTE: Garbage collection executes opportunistically in the background, and so it's possible for reads to return a cell even if it matches the active GC expression for its family.

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

    Type: Message (Google::Bigtable::Admin::V2::Types::Type)

    The type of data stored in each of this family's cell values, including its full encoding. If omitted, the family only serves raw untyped bytes.

    For now, only the `Aggregate` type is supported.

    `Aggregate` can only be set at family creation and is immutable afterwards.

    If `value_type` is `Aggregate`, written data must be compatible with: * `value_type.input_type` for `AddInput` mutations

Google::Bigtable::Admin::V2::Table::GcRule

Rule for determining which cells to delete during garbage collection.

Inherits from Protobuf::Message.

Accessors

Google::Bigtable::Admin::V2::Table::EncryptionInfo

Encryption information for a given resource. If this resource is protected with customer managed encryption, the in-use Cloud Key Management Service (Cloud KMS) key version is specified along with its status.

Inherits from Protobuf::Message.

Accessors

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

    Type: Enum (Google::Bigtable::Admin::V2::EncryptionInfo::EncryptionType)

    Output only. The type of encryption used to protect this resource.

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

    Type: Message (Google::Rpc::Status::Status)

    Output only. The status of encrypt/decrypt calls on underlying data for this resource. Regardless of status, the existing data is always encrypted at rest.

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

    Type: String

    Output only. The version of the Cloud KMS key specified in the parent cluster that is in use for the data underlying this table.

Enum: EncryptionInfo::EncryptionType

  • ENCRYPTION_TYPE_UNSPECIFIED => 0

  • GOOGLE_DEFAULT_ENCRYPTION => 1

  • CUSTOMER_MANAGED_ENCRYPTION => 2

Google::Bigtable::Admin::V2::Table::Snapshot

A snapshot of a table at a particular time. A snapshot can be used as a checkpoint for data restoration or a data source for a new table.

Note: This is a private alpha release of Cloud Bigtable snapshots. This feature is not currently available to most Cloud Bigtable customers. This feature might be changed in backward-incompatible ways and is not recommended for production use. It is not subject to any SLA or deprecation policy.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    The unique name of the snapshot. Values are of the form `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`.

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

    Type: Message (Google::Bigtable::Admin::V2::Table::Table)

    Output only. The source table at the time the snapshot was taken.

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

    Type: Int64

    Output only. The size of the data in the source table at the time the snapshot was taken. In some cases, this value may be computed asynchronously via a background process and a placeholder of 0 will be used in the meantime.

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

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The time when the snapshot is created.

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

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    The time when the snapshot will be deleted. The maximum amount of time a snapshot can stay active is 365 days. If 'ttl' is not specified, the default maximum of 365 days will be used.

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

    Type: Enum (Google::Bigtable::Admin::V2::Snapshot::State)

    Output only. The current state of the snapshot.

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

    Type: String

    Description of the snapshot.

Enum: Snapshot::State

  • STATE_NOT_KNOWN => 0

  • READY => 1

  • CREATING => 2

Google::Bigtable::Admin::V2::Table::Backup

A backup of a Cloud Bigtable table.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    A globally unique identifier for the backup which cannot be changed. Values are of the form `projects/{project}/instances/{instance}/clusters/{cluster}/ backups/[_a-zA-Z0-9][-_.a-zA-Z0-9]*` The final segment of the name must be between 1 and 50 characters in length.

    The backup is stored in the cluster identified by the prefix of the backup name of the form `projects/{project}/instances/{instance}/clusters/{cluster}`.

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

    Type: String

    Required. Immutable. Name of the table from which this backup was created. This needs to be in the same instance as the backup. Values are of the form `projects/{project}/instances/{instance}/tables/{source_table}`.

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

    Type: String

    Output only. Name of the backup from which this backup was copied. If a backup is not created by copying a backup, this field will be empty. Values are of the form: projects/<project>/instances/<instance>/clusters/<cluster>/backups/<backup>

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

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Required. The expiration time of the backup. When creating a backup or updating its `expire_time`, the value must be greater than the backup creation time by: - At least 6 hours - At most 90 days

    Once the `expire_time` has passed, Cloud Bigtable will delete the backup.

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

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. `start_time` is the time that the backup was started (i.e. approximately the time the [CreateBackup][google.bigtable.admin.v2.BigtableTableAdmin.CreateBackup] request is received). The row data in this backup will be no older than this timestamp.

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

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. `end_time` is the time that the backup was finished. The row data in the backup will be no newer than this timestamp.

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

    Type: Int64

    Output only. Size of the backup in bytes.

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

    Type: Enum (Google::Bigtable::Admin::V2::Backup::State)

    Output only. The current state of the backup.

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

    Type: Message (Google::Bigtable::Admin::V2::Table::EncryptionInfo)

    Output only. The encryption information for the backup.

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

    Type: Enum (Google::Bigtable::Admin::V2::Backup::BackupType)

    Indicates the backup type of the backup.

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

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    The time at which the hot backup will be converted to a standard backup. Once the `hot_to_standard_time` has passed, Cloud Bigtable will convert the hot backup to a standard backup. This value must be greater than the backup creation time by: - At least 24 hours

    This field only applies for hot backups. When creating or updating a standard backup, attempting to set this field will fail the request.

Enum: Backup::State

  • STATE_UNSPECIFIED => 0

  • CREATING => 1

  • READY => 2

Enum: Backup::BackupType

  • BACKUP_TYPE_UNSPECIFIED => 0

  • STANDARD => 1

  • HOT => 2

Google::Bigtable::Admin::V2::Table::BackupInfo

Information about a backup.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Output only. Name of the backup.

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

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The time that the backup was started. Row data in the backup will be no older than this timestamp.

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

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. This time that the backup was finished. Row data in the backup will be no newer than this timestamp.

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

    Type: String

    Output only. Name of the table the backup was created from.

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

    Type: String

    Output only. Name of the backup from which this backup was copied. If a backup is not created by copying a backup, this field will be empty. Values are of the form: projects/<project>/instances/<instance>/clusters/<cluster>/backups/<backup>

Google::Bigtable::Admin::V2::Table::TieredStorageConfig

Config for tiered storage. A valid config must have a valid TieredStorageRule. Otherwise the whole TieredStorageConfig must be unset. By default all data is stored in the SSD tier (only SSD instances can configure tiered storage).

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Bigtable::Admin::V2::Table::TieredStorageRule)

    Rule to specify what data is stored in the infrequent access(IA) tier. The IA tier allows storing more data per node with reduced performance.

Google::Bigtable::Admin::V2::Table::TieredStorageRule

Rule to specify what data is stored in a storage tier.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Protobuf::Duration::Duration)

    Include cells older than the given age. For the infrequent access tier, this value must be at least 30 days.

Google::Bigtable::Admin::V2::Table::ProtoSchema

Represents a collection of protobuf schemas.

Inherits from Protobuf::Message.

Accessors

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

    Type: Bytes

    Required. Contains a protobuf-serialized [google.protobuf.FileDescriptorSet](https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/descriptor.proto), which could include multiple proto files. To generate it, [install](https://grpc.io/docs/protoc-installation/) and run `protoc` with `--include_imports` and `--descriptor_set_out`. For example, to generate for moon/shot/app.proto, run ``` $protoc --proto_path=/app_path --proto_path=/lib_path \ --include_imports \ --descriptor_set_out=descriptors.pb \ moon/shot/app.proto ``` For more details, see protobuffer [self description](https://developers.google.com/protocol-buffers/docs/techniques#self-description).

Google::Bigtable::Admin::V2::Table::AvroSchema

Represents a collection of Avro schemas.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The Avro schemas in JSON format. Each element must be the content of a valid, self-contained Avro schema file (.avsc), as described in https://avro.apache.org/docs/1.8.1/spec.html. Use repeated elements to include multiple Avro schema files in a single bundle.

Google::Bigtable::Admin::V2::Table::SchemaBundle

A named collection of related schemas.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Identifier. The unique name identifying this schema bundle. Values are of the form `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}`

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

    Type: Message (Google::Bigtable::Admin::V2::Table::ProtoSchema)

    Schema for Protobufs.

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

    Type: Message (Google::Bigtable::Admin::V2::Table::AvroSchema)

    Optional. Schema for Avros.

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

    Type: String

    Optional. The etag for this schema bundle. This may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding. The server returns an ABORTED error on a mismatched etag.

SEE ALSO

Protobuf, Protobuf::Message, Google::Bigtable::Admin::V2::Table::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.