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

namespace Google\Cloud\Compute\V1;

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

/**
 *
 * Generated from protobuf message <code>google.cloud.compute.v1.SecurityPolicyRuleMatcherConfig</code>
 */
class SecurityPolicyRuleMatcherConfig extends \Google\Protobuf\Internal\Message
{
    /**
     * CIDR IP address range. Maximum number of src_ip_ranges allowed is 10.
     *
     * Generated from protobuf field <code>repeated string src_ip_ranges = 163692627;</code>
     */
    private $src_ip_ranges;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string[]|\Google\Protobuf\Internal\RepeatedField $src_ip_ranges
     *           CIDR IP address range. Maximum number of src_ip_ranges allowed is 10.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Compute\V1\Compute::initOnce();
        parent::__construct($data);
    }

    /**
     * CIDR IP address range. Maximum number of src_ip_ranges allowed is 10.
     *
     * Generated from protobuf field <code>repeated string src_ip_ranges = 163692627;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getSrcIpRanges()
    {
        return $this->src_ip_ranges;
    }

    /**
     * CIDR IP address range. Maximum number of src_ip_ranges allowed is 10.
     *
     * Generated from protobuf field <code>repeated string src_ip_ranges = 163692627;</code>
     * @param string[]|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setSrcIpRanges($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->src_ip_ranges = $arr;

        return $this;
    }

}

