<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/orchestration/airflow/service/v1/environments.proto

namespace Google\Cloud\Orchestration\Airflow\Service\V1;

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

/**
 * Network-level access control policy for the Airflow web server.
 *
 * Generated from protobuf message <code>google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl</code>
 */
class WebServerNetworkAccessControl extends \Google\Protobuf\Internal\Message
{
    /**
     * A collection of allowed IP ranges with descriptions.
     *
     * Generated from protobuf field <code>repeated .google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange allowed_ip_ranges = 1;</code>
     */
    private $allowed_ip_ranges;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\Orchestration\Airflow\Service\V1\WebServerNetworkAccessControl\AllowedIpRange[]|\Google\Protobuf\Internal\RepeatedField $allowed_ip_ranges
     *           A collection of allowed IP ranges with descriptions.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Orchestration\Airflow\Service\V1\Environments::initOnce();
        parent::__construct($data);
    }

    /**
     * A collection of allowed IP ranges with descriptions.
     *
     * Generated from protobuf field <code>repeated .google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange allowed_ip_ranges = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getAllowedIpRanges()
    {
        return $this->allowed_ip_ranges;
    }

    /**
     * A collection of allowed IP ranges with descriptions.
     *
     * Generated from protobuf field <code>repeated .google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange allowed_ip_ranges = 1;</code>
     * @param \Google\Cloud\Orchestration\Airflow\Service\V1\WebServerNetworkAccessControl\AllowedIpRange[]|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setAllowedIpRanges($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Orchestration\Airflow\Service\V1\WebServerNetworkAccessControl\AllowedIpRange::class);
        $this->allowed_ip_ranges = $arr;

        return $this;
    }

}

