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

namespace Google\Cloud\Batch\V1\Environment;

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

/**
 * Generated from protobuf message <code>google.cloud.batch.v1.Environment.KMSEnvMap</code>
 */
class KMSEnvMap extends \Google\Protobuf\Internal\Message
{
    /**
     * The name of the KMS key that will be used to decrypt the cipher text.
     *
     * Generated from protobuf field <code>string key_name = 1;</code>
     */
    protected $key_name = '';
    /**
     * The value of the cipherText response from the `encrypt` method.
     *
     * Generated from protobuf field <code>string cipher_text = 2;</code>
     */
    protected $cipher_text = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $key_name
     *           The name of the KMS key that will be used to decrypt the cipher text.
     *     @type string $cipher_text
     *           The value of the cipherText response from the `encrypt` method.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Batch\V1\Task::initOnce();
        parent::__construct($data);
    }

    /**
     * The name of the KMS key that will be used to decrypt the cipher text.
     *
     * Generated from protobuf field <code>string key_name = 1;</code>
     * @return string
     */
    public function getKeyName()
    {
        return $this->key_name;
    }

    /**
     * The name of the KMS key that will be used to decrypt the cipher text.
     *
     * Generated from protobuf field <code>string key_name = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setKeyName($var)
    {
        GPBUtil::checkString($var, True);
        $this->key_name = $var;

        return $this;
    }

    /**
     * The value of the cipherText response from the `encrypt` method.
     *
     * Generated from protobuf field <code>string cipher_text = 2;</code>
     * @return string
     */
    public function getCipherText()
    {
        return $this->cipher_text;
    }

    /**
     * The value of the cipherText response from the `encrypt` method.
     *
     * Generated from protobuf field <code>string cipher_text = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setCipherText($var)
    {
        GPBUtil::checkString($var, True);
        $this->cipher_text = $var;

        return $this;
    }

}

