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

namespace Google\Cloud\StorageTransfer\V1\AgentPool;

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

/**
 * Specifies a bandwidth limit for an agent pool.
 *
 * Generated from protobuf message <code>google.storagetransfer.v1.AgentPool.BandwidthLimit</code>
 */
class BandwidthLimit extends \Google\Protobuf\Internal\Message
{
    /**
     * Bandwidth rate in megabytes per second, distributed across all the agents
     * in the pool.
     *
     * Generated from protobuf field <code>int64 limit_mbps = 1;</code>
     */
    private $limit_mbps = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int|string $limit_mbps
     *           Bandwidth rate in megabytes per second, distributed across all the agents
     *           in the pool.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Storagetransfer\V1\TransferTypes::initOnce();
        parent::__construct($data);
    }

    /**
     * Bandwidth rate in megabytes per second, distributed across all the agents
     * in the pool.
     *
     * Generated from protobuf field <code>int64 limit_mbps = 1;</code>
     * @return int|string
     */
    public function getLimitMbps()
    {
        return $this->limit_mbps;
    }

    /**
     * Bandwidth rate in megabytes per second, distributed across all the agents
     * in the pool.
     *
     * Generated from protobuf field <code>int64 limit_mbps = 1;</code>
     * @param int|string $var
     * @return $this
     */
    public function setLimitMbps($var)
    {
        GPBUtil::checkInt64($var);
        $this->limit_mbps = $var;

        return $this;
    }

}


