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

namespace Google\Cloud\Compute\V1;

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

/**
 * Configuration and status of a managed SSL certificate.
 *
 * Generated from protobuf message <code>google.cloud.compute.v1.SslCertificateManagedSslCertificate</code>
 */
class SslCertificateManagedSslCertificate extends \Google\Protobuf\Internal\Message
{
    /**
     * [Output only] Detailed statuses of the domains specified for managed certificate resource.
     *
     * Generated from protobuf field <code>map<string, string> domain_status = 360305613;</code>
     */
    private $domain_status;
    /**
     * The domains for which a managed SSL certificate will be generated. Each Google-managed SSL certificate supports up to the [maximum number of domains per Google-managed SSL certificate](https://cloud.google.com/load-balancing/docs/quotas#ssl_certificates).
     *
     * Generated from protobuf field <code>repeated string domains = 226935855;</code>
     */
    private $domains;
    /**
     * [Output only] Status of the managed certificate resource.
     * Check the Status enum for the list of possible values.
     *
     * Generated from protobuf field <code>optional string status = 181260274;</code>
     */
    private $status = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array|\Google\Protobuf\Internal\MapField $domain_status
     *           [Output only] Detailed statuses of the domains specified for managed certificate resource.
     *     @type array<string>|\Google\Protobuf\Internal\RepeatedField $domains
     *           The domains for which a managed SSL certificate will be generated. Each Google-managed SSL certificate supports up to the [maximum number of domains per Google-managed SSL certificate](https://cloud.google.com/load-balancing/docs/quotas#ssl_certificates).
     *     @type string $status
     *           [Output only] Status of the managed certificate resource.
     *           Check the Status enum for the list of possible values.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Compute\V1\Compute::initOnce();
        parent::__construct($data);
    }

    /**
     * [Output only] Detailed statuses of the domains specified for managed certificate resource.
     *
     * Generated from protobuf field <code>map<string, string> domain_status = 360305613;</code>
     * @return \Google\Protobuf\Internal\MapField
     */
    public function getDomainStatus()
    {
        return $this->domain_status;
    }

    /**
     * [Output only] Detailed statuses of the domains specified for managed certificate resource.
     *
     * Generated from protobuf field <code>map<string, string> domain_status = 360305613;</code>
     * @param array|\Google\Protobuf\Internal\MapField $var
     * @return $this
     */
    public function setDomainStatus($var)
    {
        $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING);
        $this->domain_status = $arr;

        return $this;
    }

    /**
     * The domains for which a managed SSL certificate will be generated. Each Google-managed SSL certificate supports up to the [maximum number of domains per Google-managed SSL certificate](https://cloud.google.com/load-balancing/docs/quotas#ssl_certificates).
     *
     * Generated from protobuf field <code>repeated string domains = 226935855;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getDomains()
    {
        return $this->domains;
    }

    /**
     * The domains for which a managed SSL certificate will be generated. Each Google-managed SSL certificate supports up to the [maximum number of domains per Google-managed SSL certificate](https://cloud.google.com/load-balancing/docs/quotas#ssl_certificates).
     *
     * Generated from protobuf field <code>repeated string domains = 226935855;</code>
     * @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setDomains($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->domains = $arr;

        return $this;
    }

    /**
     * [Output only] Status of the managed certificate resource.
     * Check the Status enum for the list of possible values.
     *
     * Generated from protobuf field <code>optional string status = 181260274;</code>
     * @return string
     */
    public function getStatus()
    {
        return isset($this->status) ? $this->status : '';
    }

    public function hasStatus()
    {
        return isset($this->status);
    }

    public function clearStatus()
    {
        unset($this->status);
    }

    /**
     * [Output only] Status of the managed certificate resource.
     * Check the Status enum for the list of possible values.
     *
     * Generated from protobuf field <code>optional string status = 181260274;</code>
     * @param string $var
     * @return $this
     */
    public function setStatus($var)
    {
        GPBUtil::checkString($var, True);
        $this->status = $var;

        return $this;
    }

}

