<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/dialogflow/cx/v3/agent.proto

namespace Google\Cloud\Dialogflow\Cx\V3\Agent;

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

/**
 * Settings for custom client certificates.
 *
 * Generated from protobuf message <code>google.cloud.dialogflow.cx.v3.Agent.ClientCertificateSettings</code>
 */
class ClientCertificateSettings extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. The ssl certificate encoded in PEM format. This string must
     * include the begin header and end footer lines.
     *
     * Generated from protobuf field <code>string ssl_certificate = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $ssl_certificate = '';
    /**
     * Required. The name of the SecretManager secret version resource storing
     * the private key encoded in PEM format. Format:
     * `projects/{project}/secrets/{secret}/versions/{version}`
     *
     * Generated from protobuf field <code>string private_key = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     */
    protected $private_key = '';
    /**
     * Optional. The name of the SecretManager secret version resource storing
     * the passphrase. 'passphrase' should be left unset if the private key is
     * not encrypted.
     * Format: `projects/{project}/secrets/{secret}/versions/{version}`
     *
     * Generated from protobuf field <code>string passphrase = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = {</code>
     */
    protected $passphrase = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $ssl_certificate
     *           Required. The ssl certificate encoded in PEM format. This string must
     *           include the begin header and end footer lines.
     *     @type string $private_key
     *           Required. The name of the SecretManager secret version resource storing
     *           the private key encoded in PEM format. Format:
     *           `projects/{project}/secrets/{secret}/versions/{version}`
     *     @type string $passphrase
     *           Optional. The name of the SecretManager secret version resource storing
     *           the passphrase. 'passphrase' should be left unset if the private key is
     *           not encrypted.
     *           Format: `projects/{project}/secrets/{secret}/versions/{version}`
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Dialogflow\Cx\V3\Agent::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. The ssl certificate encoded in PEM format. This string must
     * include the begin header and end footer lines.
     *
     * Generated from protobuf field <code>string ssl_certificate = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getSslCertificate()
    {
        return $this->ssl_certificate;
    }

    /**
     * Required. The ssl certificate encoded in PEM format. This string must
     * include the begin header and end footer lines.
     *
     * Generated from protobuf field <code>string ssl_certificate = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setSslCertificate($var)
    {
        GPBUtil::checkString($var, True);
        $this->ssl_certificate = $var;

        return $this;
    }

    /**
     * Required. The name of the SecretManager secret version resource storing
     * the private key encoded in PEM format. Format:
     * `projects/{project}/secrets/{secret}/versions/{version}`
     *
     * Generated from protobuf field <code>string private_key = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     * @return string
     */
    public function getPrivateKey()
    {
        return $this->private_key;
    }

    /**
     * Required. The name of the SecretManager secret version resource storing
     * the private key encoded in PEM format. Format:
     * `projects/{project}/secrets/{secret}/versions/{version}`
     *
     * Generated from protobuf field <code>string private_key = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     * @param string $var
     * @return $this
     */
    public function setPrivateKey($var)
    {
        GPBUtil::checkString($var, True);
        $this->private_key = $var;

        return $this;
    }

    /**
     * Optional. The name of the SecretManager secret version resource storing
     * the passphrase. 'passphrase' should be left unset if the private key is
     * not encrypted.
     * Format: `projects/{project}/secrets/{secret}/versions/{version}`
     *
     * Generated from protobuf field <code>string passphrase = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = {</code>
     * @return string
     */
    public function getPassphrase()
    {
        return $this->passphrase;
    }

    /**
     * Optional. The name of the SecretManager secret version resource storing
     * the passphrase. 'passphrase' should be left unset if the private key is
     * not encrypted.
     * Format: `projects/{project}/secrets/{secret}/versions/{version}`
     *
     * Generated from protobuf field <code>string passphrase = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = {</code>
     * @param string $var
     * @return $this
     */
    public function setPassphrase($var)
    {
        GPBUtil::checkString($var, True);
        $this->passphrase = $var;

        return $this;
    }

}

