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

namespace Google\Cloud\Kms\V1;

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

/**
 * ExternalProtectionLevelOptions stores a group of additional fields for
 * configuring a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] that are specific to the
 * [EXTERNAL][google.cloud.kms.v1.ProtectionLevel.EXTERNAL] protection level.
 *
 * Generated from protobuf message <code>google.cloud.kms.v1.ExternalProtectionLevelOptions</code>
 */
class ExternalProtectionLevelOptions extends \Google\Protobuf\Internal\Message
{
    /**
     * The URI for an external resource that this [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] represents.
     *
     * Generated from protobuf field <code>string external_key_uri = 1;</code>
     */
    private $external_key_uri = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $external_key_uri
     *           The URI for an external resource that this [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] represents.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Kms\V1\Resources::initOnce();
        parent::__construct($data);
    }

    /**
     * The URI for an external resource that this [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] represents.
     *
     * Generated from protobuf field <code>string external_key_uri = 1;</code>
     * @return string
     */
    public function getExternalKeyUri()
    {
        return $this->external_key_uri;
    }

    /**
     * The URI for an external resource that this [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] represents.
     *
     * Generated from protobuf field <code>string external_key_uri = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setExternalKeyUri($var)
    {
        GPBUtil::checkString($var, True);
        $this->external_key_uri = $var;

        return $this;
    }

}

