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

/**
 * DesiredAdditionalIPRangesConfig is a wrapper used for cluster update
 * operation and contains multiple AdditionalIPRangesConfigs.
 *
 * Generated from protobuf message <code>google.container.v1.DesiredAdditionalIPRangesConfig</code>
 */
class DesiredAdditionalIPRangesConfig extends \Google\Protobuf\Internal\Message
{
    /**
     * List of additional IP ranges configs where each AdditionalIPRangesConfig
     * corresponds to one subnetwork's IP ranges
     *
     * Generated from protobuf field <code>repeated .google.container.v1.AdditionalIPRangesConfig additional_ip_ranges_configs = 1;</code>
     */
    private $additional_ip_ranges_configs;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<\Google\Cloud\Container\V1\AdditionalIPRangesConfig>|\Google\Protobuf\Internal\RepeatedField $additional_ip_ranges_configs
     *           List of additional IP ranges configs where each AdditionalIPRangesConfig
     *           corresponds to one subnetwork's IP ranges
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Container\V1\ClusterService::initOnce();
        parent::__construct($data);
    }

    /**
     * List of additional IP ranges configs where each AdditionalIPRangesConfig
     * corresponds to one subnetwork's IP ranges
     *
     * Generated from protobuf field <code>repeated .google.container.v1.AdditionalIPRangesConfig additional_ip_ranges_configs = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getAdditionalIpRangesConfigs()
    {
        return $this->additional_ip_ranges_configs;
    }

    /**
     * List of additional IP ranges configs where each AdditionalIPRangesConfig
     * corresponds to one subnetwork's IP ranges
     *
     * Generated from protobuf field <code>repeated .google.container.v1.AdditionalIPRangesConfig additional_ip_ranges_configs = 1;</code>
     * @param array<\Google\Cloud\Container\V1\AdditionalIPRangesConfig>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setAdditionalIpRangesConfigs($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\AdditionalIPRangesConfig::class);
        $this->additional_ip_ranges_configs = $arr;

        return $this;
    }

}

