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

/**
 * Collection of Kubernetes [node
 * taints](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration).
 *
 * Generated from protobuf message <code>google.container.v1.NodeTaints</code>
 */
class NodeTaints extends \Google\Protobuf\Internal\Message
{
    /**
     * List of node taints.
     *
     * Generated from protobuf field <code>repeated .google.container.v1.NodeTaint taints = 1;</code>
     */
    private $taints;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<\Google\Cloud\Container\V1\NodeTaint>|\Google\Protobuf\Internal\RepeatedField $taints
     *           List of node taints.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Container\V1\ClusterService::initOnce();
        parent::__construct($data);
    }

    /**
     * List of node taints.
     *
     * Generated from protobuf field <code>repeated .google.container.v1.NodeTaint taints = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getTaints()
    {
        return $this->taints;
    }

    /**
     * List of node taints.
     *
     * Generated from protobuf field <code>repeated .google.container.v1.NodeTaint taints = 1;</code>
     * @param array<\Google\Cloud\Container\V1\NodeTaint>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setTaints($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\NodeTaint::class);
        $this->taints = $arr;

        return $this;
    }

}

