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

namespace Google\Cloud\Video\Stitcher\V1;

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

/**
 * Configuration for a Media CDN key.
 *
 * Generated from protobuf message <code>google.cloud.video.stitcher.v1.MediaCdnKey</code>
 */
class MediaCdnKey extends \Google\Protobuf\Internal\Message
{
    /**
     * Input only. 64-byte ed25519 private key for this Media CDN key.
     *
     * Generated from protobuf field <code>bytes private_key = 1 [(.google.api.field_behavior) = INPUT_ONLY];</code>
     */
    private $private_key = '';
    /**
     * The keyset name of the Media CDN key.
     *
     * Generated from protobuf field <code>string key_name = 2;</code>
     */
    private $key_name = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $private_key
     *           Input only. 64-byte ed25519 private key for this Media CDN key.
     *     @type string $key_name
     *           The keyset name of the Media CDN key.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Video\Stitcher\V1\CdnKeys::initOnce();
        parent::__construct($data);
    }

    /**
     * Input only. 64-byte ed25519 private key for this Media CDN key.
     *
     * Generated from protobuf field <code>bytes private_key = 1 [(.google.api.field_behavior) = INPUT_ONLY];</code>
     * @return string
     */
    public function getPrivateKey()
    {
        return $this->private_key;
    }

    /**
     * Input only. 64-byte ed25519 private key for this Media CDN key.
     *
     * Generated from protobuf field <code>bytes private_key = 1 [(.google.api.field_behavior) = INPUT_ONLY];</code>
     * @param string $var
     * @return $this
     */
    public function setPrivateKey($var)
    {
        GPBUtil::checkString($var, False);
        $this->private_key = $var;

        return $this;
    }

    /**
     * The keyset name of the Media CDN key.
     *
     * Generated from protobuf field <code>string key_name = 2;</code>
     * @return string
     */
    public function getKeyName()
    {
        return $this->key_name;
    }

    /**
     * The keyset name of the Media CDN key.
     *
     * Generated from protobuf field <code>string key_name = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setKeyName($var)
    {
        GPBUtil::checkString($var, True);
        $this->key_name = $var;

        return $this;
    }

}

