<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/gkemulticloud/v1/azure_resources.proto

namespace Google\Cloud\GkeMultiCloud\V1;

use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;

/**
 * Configuration related to application-layer secrets encryption.
 * Anthos clusters on Azure encrypts your Kubernetes data at rest
 * in etcd using Azure Key Vault.
 *
 * Generated from protobuf message <code>google.cloud.gkemulticloud.v1.AzureDatabaseEncryption</code>
 */
class AzureDatabaseEncryption extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. The ARM ID of the Azure Key Vault key to encrypt / decrypt data.
     * For example:
     * `/subscriptions/<subscription-id>/resourceGroups/<resource-group-id>/providers/Microsoft.KeyVault/vaults/<key-vault-id>/keys/<key-name>`
     * Encryption will always take the latest version of the key and hence
     * specific version is not supported.
     *
     * Generated from protobuf field <code>string key_id = 3 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    private $key_id = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $key_id
     *           Required. The ARM ID of the Azure Key Vault key to encrypt / decrypt data.
     *           For example:
     *           `/subscriptions/<subscription-id>/resourceGroups/<resource-group-id>/providers/Microsoft.KeyVault/vaults/<key-vault-id>/keys/<key-name>`
     *           Encryption will always take the latest version of the key and hence
     *           specific version is not supported.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureResources::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. The ARM ID of the Azure Key Vault key to encrypt / decrypt data.
     * For example:
     * `/subscriptions/<subscription-id>/resourceGroups/<resource-group-id>/providers/Microsoft.KeyVault/vaults/<key-vault-id>/keys/<key-name>`
     * Encryption will always take the latest version of the key and hence
     * specific version is not supported.
     *
     * Generated from protobuf field <code>string key_id = 3 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getKeyId()
    {
        return $this->key_id;
    }

    /**
     * Required. The ARM ID of the Azure Key Vault key to encrypt / decrypt data.
     * For example:
     * `/subscriptions/<subscription-id>/resourceGroups/<resource-group-id>/providers/Microsoft.KeyVault/vaults/<key-vault-id>/keys/<key-name>`
     * Encryption will always take the latest version of the key and hence
     * specific version is not supported.
     *
     * Generated from protobuf field <code>string key_id = 3 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setKeyId($var)
    {
        GPBUtil::checkString($var, True);
        $this->key_id = $var;

        return $this;
    }

}

