NAME

Google::Spanner::Admin::Database::V1::Common - Compiled Protocol Buffers messages for google/spanner/admin/database/v1/common.proto

SYNOPSIS

use Google::Spanner::Admin::Database::V1::Common;

my $msg = Google::Spanner::Admin::Database::V1::Common::OperationProgress->new({
    progress_percent => $progress_percent,
    start_time => $start_time,
    end_time => $end_time,
});

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

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Spanner::Admin::Database::V1::Common::OperationProgress->parse($bytes);

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

DESCRIPTION

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

MESSAGES

Google::Spanner::Admin::Database::V1::Common::OperationProgress

Encapsulates progress related information for a Cloud Spanner long running operation.

Inherits from Protobuf::Message.

Accessors

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

    Type: Int32

    Percent completion of the operation. Values are between 0 and 100 inclusive.

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

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

    Time the request was received.

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

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

    If set, the time at which this operation failed or was completed successfully.

Google::Spanner::Admin::Database::V1::Common::EncryptionConfig

Encryption configuration for a Cloud Spanner database.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    The Cloud KMS key to be used for encrypting and decrypting the database. Values are of the form `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.

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

    Type: String

    Specifies the KMS configuration for the one or more keys used to encrypt the database. Values are of the form `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.

    The keys referenced by kms_key_names must fully cover all regions of the database instance configuration. Some examples: * For single region database instance configs, specify a single regional location KMS key. * For multi-regional database instance configs of type GOOGLE_MANAGED, either specify a multi-regional location KMS key or multiple regional location KMS keys that cover all regions in the instance config. * For a database instance config of type USER_MANAGED, please specify only regional location KMS keys to cover each region in the instance config. Multi-regional location KMS keys are not supported for USER_MANAGED instance configs.

Google::Spanner::Admin::Database::V1::Common::EncryptionInfo

Encryption information for a Cloud Spanner database or backup.

Inherits from Protobuf::Message.

Accessors

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

    Type: Enum (Google::Spanner::Admin::Database::V1::EncryptionInfo::Type)

    Output only. The type of encryption.

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

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

    Output only. If present, the status of a recent encrypt/decrypt call on underlying data for this database or backup. Regardless of status, data is always encrypted at rest.

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

    Type: String

    Output only. A Cloud KMS key version that is being used to protect the database or backup.

Enum: EncryptionInfo::Type

  • TYPE_UNSPECIFIED => 0

  • GOOGLE_DEFAULT_ENCRYPTION => 1

  • CUSTOMER_MANAGED_ENCRYPTION => 2

SEE ALSO

Protobuf, Protobuf::Message, Google::Spanner::Admin::Database::V1::Common::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.