# Google Cloud Storage Control V2 Client - Class PrefixContribution (1.9.0)

1.9.0 (latest) 1.8.0 1.7.0 1.6.3 1.5.0 1.4.1 1.3.0 1.1.0 1.0.3 0.2.1 0.1.1 Reference documentation and code samples for the Google Cloud Storage Control V2 Client class PrefixContribution.

Represents throttled requests details for an object prefix.

Generated from protobuf message `google.storage.control.v2.IntelligenceFinding.ThrottledRequestSpike.BucketContribution.Contribution.PrefixContribution`

## Namespace

Google \\ Cloud \\ Storage \\ Control \\ V2 \\ IntelligenceFinding \\ ThrottledRequestSpike \\ BucketContribution \\ Contribution

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ prefix` | `string` Output only. The object prefix. Format: `a/b/c`, 'a/b/d', etc. |
| `↳ throttled_requests` | `int|string` Output only. The count of throttled requests for the object prefix. |
| `↳ percentage_increase` | `float` Output only. The percentage increase in throttled requests for the object prefix. |

### getPrefix

Output only. The object prefix.

Format: `a/b/c`, 'a/b/d', etc.

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

### setPrefix

Output only. The object prefix.

Format: `a/b/c`, 'a/b/d', etc.

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

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

### getThrottledRequests

Output only. The count of throttled requests for the object prefix.

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

### setThrottledRequests

Output only. The count of throttled requests for the object prefix.

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

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

### getPercentageIncrease

Output only. The percentage increase in throttled requests for the
object prefix.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `float` |   |

### setPercentageIncrease

Output only. The percentage increase in throttled requests for the
object prefix.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `float` |

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