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

namespace Google\Cloud\BareMetalSolution\V2;

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

/**
 * Response with Networks with IPs
 *
 * Generated from protobuf message <code>google.cloud.baremetalsolution.v2.ListNetworkUsageResponse</code>
 */
class ListNetworkUsageResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * Networks with IPs.
     *
     * Generated from protobuf field <code>repeated .google.cloud.baremetalsolution.v2.NetworkUsage networks = 1;</code>
     */
    private $networks;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<\Google\Cloud\BareMetalSolution\V2\NetworkUsage>|\Google\Protobuf\Internal\RepeatedField $networks
     *           Networks with IPs.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Baremetalsolution\V2\Network::initOnce();
        parent::__construct($data);
    }

    /**
     * Networks with IPs.
     *
     * Generated from protobuf field <code>repeated .google.cloud.baremetalsolution.v2.NetworkUsage networks = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getNetworks()
    {
        return $this->networks;
    }

    /**
     * Networks with IPs.
     *
     * Generated from protobuf field <code>repeated .google.cloud.baremetalsolution.v2.NetworkUsage networks = 1;</code>
     * @param array<\Google\Cloud\BareMetalSolution\V2\NetworkUsage>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setNetworks($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\BareMetalSolution\V2\NetworkUsage::class);
        $this->networks = $arr;

        return $this;
    }

}

