# 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 the operation spike details for an object prefix.

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

## Namespace

Google \\ Cloud \\ Storage \\ Control \\ V2 \\ IntelligenceFinding \\ ColdlineAndArchivalStorageOperationsSpike \\ 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. |
| `↳ percentage_increase` | `float` Output only. The percentage increase in operations for the object prefix. |
| `↳ total_operations_count` | `int|string` Output only. The total count of operations 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` |   |

### getPercentageIncrease

Output only. The percentage increase in operations for the object
prefix.

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

### setPercentageIncrease

Output only. The percentage increase in operations for the object
prefix.

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

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

### getTotalOperationsCount

Output only. The total count of operations for the object prefix.

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

### setTotalOperationsCount

Output only. The total count of operations for the object prefix.

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

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