<?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\GPBUtil;
use Google\Protobuf\RepeatedField;

/**
 * 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 \Google\Cloud\Container\V1\AdditionalIPRangesConfig[] $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 RepeatedField<\Google\Cloud\Container\V1\AdditionalIPRangesConfig>
     */
    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 \Google\Cloud\Container\V1\AdditionalIPRangesConfig[] $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;
    }

}

