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

namespace Google\Cloud\Security\PrivateCA\V1beta1\CertificateAuthority;

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

/**
 * URLs where a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] will publish content.
 *
 * Generated from protobuf message <code>google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls</code>
 */
class AccessUrls extends \Google\Protobuf\Internal\Message
{
    /**
     * The URL where this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s CA certificate is
     * published. This will only be set for CAs that have been activated.
     *
     * Generated from protobuf field <code>string ca_certificate_access_url = 1;</code>
     */
    private $ca_certificate_access_url = '';
    /**
     * The URL where this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s CRLs are published. This
     * will only be set for CAs that have been activated.
     *
     * Generated from protobuf field <code>string crl_access_url = 2;</code>
     */
    private $crl_access_url = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $ca_certificate_access_url
     *           The URL where this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s CA certificate is
     *           published. This will only be set for CAs that have been activated.
     *     @type string $crl_access_url
     *           The URL where this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s CRLs are published. This
     *           will only be set for CAs that have been activated.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Security\Privateca\V1Beta1\Resources::initOnce();
        parent::__construct($data);
    }

    /**
     * The URL where this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s CA certificate is
     * published. This will only be set for CAs that have been activated.
     *
     * Generated from protobuf field <code>string ca_certificate_access_url = 1;</code>
     * @return string
     */
    public function getCaCertificateAccessUrl()
    {
        return $this->ca_certificate_access_url;
    }

    /**
     * The URL where this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s CA certificate is
     * published. This will only be set for CAs that have been activated.
     *
     * Generated from protobuf field <code>string ca_certificate_access_url = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setCaCertificateAccessUrl($var)
    {
        GPBUtil::checkString($var, True);
        $this->ca_certificate_access_url = $var;

        return $this;
    }

    /**
     * The URL where this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s CRLs are published. This
     * will only be set for CAs that have been activated.
     *
     * Generated from protobuf field <code>string crl_access_url = 2;</code>
     * @return string
     */
    public function getCrlAccessUrl()
    {
        return $this->crl_access_url;
    }

    /**
     * The URL where this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s CRLs are published. This
     * will only be set for CAs that have been activated.
     *
     * Generated from protobuf field <code>string crl_access_url = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setCrlAccessUrl($var)
    {
        GPBUtil::checkString($var, True);
        $this->crl_access_url = $var;

        return $this;
    }

}


