<?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;

/**
 * Node pool configs that apply to all auto-provisioned node pools
 * in autopilot clusters and node auto-provisioning enabled clusters.
 *
 * Generated from protobuf message <code>google.container.v1.NodePoolAutoConfig</code>
 */
class NodePoolAutoConfig extends \Google\Protobuf\Internal\Message
{
    /**
     * The list of instance tags applied to all nodes. Tags are used to identify
     * valid sources or targets for network firewalls and are specified by
     * the client during cluster creation. Each tag within the list
     * must comply with RFC1035.
     *
     * Generated from protobuf field <code>.google.container.v1.NetworkTags network_tags = 1;</code>
     */
    private $network_tags = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\Container\V1\NetworkTags $network_tags
     *           The list of instance tags applied to all nodes. Tags are used to identify
     *           valid sources or targets for network firewalls and are specified by
     *           the client during cluster creation. Each tag within the list
     *           must comply with RFC1035.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Container\V1\ClusterService::initOnce();
        parent::__construct($data);
    }

    /**
     * The list of instance tags applied to all nodes. Tags are used to identify
     * valid sources or targets for network firewalls and are specified by
     * the client during cluster creation. Each tag within the list
     * must comply with RFC1035.
     *
     * Generated from protobuf field <code>.google.container.v1.NetworkTags network_tags = 1;</code>
     * @return \Google\Cloud\Container\V1\NetworkTags|null
     */
    public function getNetworkTags()
    {
        return $this->network_tags;
    }

    public function hasNetworkTags()
    {
        return isset($this->network_tags);
    }

    public function clearNetworkTags()
    {
        unset($this->network_tags);
    }

    /**
     * The list of instance tags applied to all nodes. Tags are used to identify
     * valid sources or targets for network firewalls and are specified by
     * the client during cluster creation. Each tag within the list
     * must comply with RFC1035.
     *
     * Generated from protobuf field <code>.google.container.v1.NetworkTags network_tags = 1;</code>
     * @param \Google\Cloud\Container\V1\NetworkTags $var
     * @return $this
     */
    public function setNetworkTags($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NetworkTags::class);
        $this->network_tags = $var;

        return $this;
    }

}

