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

namespace Google\Cloud\AlloyDb\V1\Instance\InstanceNetworkConfig;

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

/**
 * AuthorizedNetwork contains metadata for an authorized network.
 *
 * Generated from protobuf message <code>google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetwork</code>
 */
class AuthorizedNetwork extends \Google\Protobuf\Internal\Message
{
    /**
     * CIDR range for one authorzied network of the instance.
     *
     * Generated from protobuf field <code>string cidr_range = 1 [(.google.api.field_info) = {</code>
     */
    protected $cidr_range = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $cidr_range
     *           CIDR range for one authorzied network of the instance.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Alloydb\V1\Resources::initOnce();
        parent::__construct($data);
    }

    /**
     * CIDR range for one authorzied network of the instance.
     *
     * Generated from protobuf field <code>string cidr_range = 1 [(.google.api.field_info) = {</code>
     * @return string
     */
    public function getCidrRange()
    {
        return $this->cidr_range;
    }

    /**
     * CIDR range for one authorzied network of the instance.
     *
     * Generated from protobuf field <code>string cidr_range = 1 [(.google.api.field_info) = {</code>
     * @param string $var
     * @return $this
     */
    public function setCidrRange($var)
    {
        GPBUtil::checkString($var, True);
        $this->cidr_range = $var;

        return $this;
    }

}


