NAME

Google::Cloud::Tasks::V2::CmekConfig - Compiled Protocol Buffers messages for google/cloud/tasks/v2/cmek_config.proto

SYNOPSIS

use Google::Cloud::Tasks::V2::CmekConfig;

my $msg = Google::Cloud::Tasks::V2::CmekConfig::CmekConfig->new({
    name => $name,
    kms_key => $kms_key,
});

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

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Cloud::Tasks::V2::CmekConfig::CmekConfig->parse($bytes);

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/tasks/v2/cmek_config.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::Tasks::V2::CmekConfig::CmekConfig

Describes the customer-managed encryption key (CMEK) configuration associated with a project and location.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Output only. The config resource name which includes the project and location and must end in 'cmekConfig', in the format `projects/PROJECT_ID/locations/LOCATION_ID/cmekConfig`

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

    Type: String

    Resource name of the Cloud KMS key, of the form `projects/PROJECT_ID/locations/LOCATION_ID/keyRings/KEY_RING_ID/cryptoKeys/KEY_ID`, that will be used to encrypt the Queues & Tasks in the region. Setting this as blank will turn off CMEK encryption.

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Tasks::V2::CmekConfig::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.