<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/security/privateca/v1beta1/service.proto

namespace Google\Cloud\Security\PrivateCA\V1beta1;

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

/**
 * Response message for
 * [CertificateAuthorityService.FetchCertificateAuthorityCsr][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.FetchCertificateAuthorityCsr].
 *
 * Generated from protobuf message <code>google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse</code>
 */
class FetchCertificateAuthorityCsrResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * Output only. The PEM-encoded signed certificate signing request (CSR).
     *
     * Generated from protobuf field <code>string pem_csr = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    private $pem_csr = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $pem_csr
     *           Output only. The PEM-encoded signed certificate signing request (CSR).
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Security\Privateca\V1Beta1\Service::initOnce();
        parent::__construct($data);
    }

    /**
     * Output only. The PEM-encoded signed certificate signing request (CSR).
     *
     * Generated from protobuf field <code>string pem_csr = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return string
     */
    public function getPemCsr()
    {
        return $this->pem_csr;
    }

    /**
     * Output only. The PEM-encoded signed certificate signing request (CSR).
     *
     * Generated from protobuf field <code>string pem_csr = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param string $var
     * @return $this
     */
    public function setPemCsr($var)
    {
        GPBUtil::checkString($var, True);
        $this->pem_csr = $var;

        return $this;
    }

}

