# Google Cloud Storage Transfer V1 Client - Class BandwidthLimit (2.4.0)

2.4.0 (latest) 2.3.2 2.2.1 2.1.1 2.0.2 1.5.0 1.4.5 1.3.1 1.2.0 1.1.1 1.0.6 Reference documentation and code samples for the Google Cloud Storage Transfer V1 Client class BandwidthLimit.

Specifies a bandwidth limit for an agent pool.

Generated from protobuf message `google.storagetransfer.v1.AgentPool.BandwidthLimit`

## Namespace

Google \\ Cloud \\ StorageTransfer \\ V1 \\ AgentPool

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ limit_mbps` | `int|string` Bandwidth rate in megabytes per second, distributed across all the agents in the pool. |

### getLimitMbps

Bandwidth rate in megabytes per second, distributed across all the agents
in the pool.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int|string` |   |

### setLimitMbps

Bandwidth rate in megabytes per second, distributed across all the agents
in the pool.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int|string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |