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

namespace Google\Cloud\Container\V1;

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

/**
 * Configuration for all of the cluster's control plane endpoints.
 *
 * Generated from protobuf message <code>google.container.v1.ControlPlaneEndpointsConfig</code>
 */
class ControlPlaneEndpointsConfig extends \Google\Protobuf\Internal\Message
{
    /**
     * DNS endpoint configuration.
     *
     * Generated from protobuf field <code>.google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig dns_endpoint_config = 1;</code>
     */
    protected $dns_endpoint_config = null;
    /**
     * IP endpoints configuration.
     *
     * Generated from protobuf field <code>.google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig ip_endpoints_config = 3;</code>
     */
    protected $ip_endpoints_config = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\Container\V1\ControlPlaneEndpointsConfig\DNSEndpointConfig $dns_endpoint_config
     *           DNS endpoint configuration.
     *     @type \Google\Cloud\Container\V1\ControlPlaneEndpointsConfig\IPEndpointsConfig $ip_endpoints_config
     *           IP endpoints configuration.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Container\V1\ClusterService::initOnce();
        parent::__construct($data);
    }

    /**
     * DNS endpoint configuration.
     *
     * Generated from protobuf field <code>.google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig dns_endpoint_config = 1;</code>
     * @return \Google\Cloud\Container\V1\ControlPlaneEndpointsConfig\DNSEndpointConfig|null
     */
    public function getDnsEndpointConfig()
    {
        return $this->dns_endpoint_config;
    }

    public function hasDnsEndpointConfig()
    {
        return isset($this->dns_endpoint_config);
    }

    public function clearDnsEndpointConfig()
    {
        unset($this->dns_endpoint_config);
    }

    /**
     * DNS endpoint configuration.
     *
     * Generated from protobuf field <code>.google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig dns_endpoint_config = 1;</code>
     * @param \Google\Cloud\Container\V1\ControlPlaneEndpointsConfig\DNSEndpointConfig $var
     * @return $this
     */
    public function setDnsEndpointConfig($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ControlPlaneEndpointsConfig\DNSEndpointConfig::class);
        $this->dns_endpoint_config = $var;

        return $this;
    }

    /**
     * IP endpoints configuration.
     *
     * Generated from protobuf field <code>.google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig ip_endpoints_config = 3;</code>
     * @return \Google\Cloud\Container\V1\ControlPlaneEndpointsConfig\IPEndpointsConfig|null
     */
    public function getIpEndpointsConfig()
    {
        return $this->ip_endpoints_config;
    }

    public function hasIpEndpointsConfig()
    {
        return isset($this->ip_endpoints_config);
    }

    public function clearIpEndpointsConfig()
    {
        unset($this->ip_endpoints_config);
    }

    /**
     * IP endpoints configuration.
     *
     * Generated from protobuf field <code>.google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig ip_endpoints_config = 3;</code>
     * @param \Google\Cloud\Container\V1\ControlPlaneEndpointsConfig\IPEndpointsConfig $var
     * @return $this
     */
    public function setIpEndpointsConfig($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ControlPlaneEndpointsConfig\IPEndpointsConfig::class);
        $this->ip_endpoints_config = $var;

        return $this;
    }

}

