# Google Cloud Storage Control V2 Client - Class Contribution (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 Contribution.

Represents the contribution of the bucket towards the
`IntelligenceFinding`.

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

## Namespace

Google \\ Cloud \\ Storage \\ Control \\ V2 \\ IntelligenceFinding \\ CrossRegionEgressSpike \\ BucketContribution

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ top_prefixes` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-storage-control/latest/V2.IntelligenceFinding.CrossRegionEgressSpike.BucketContribution.Contribution.PrefixContribution>` Output only. A list of the top object prefixes driving the increase in cross-region egress. |

### getTopPrefixes

Output only. A list of the top object prefixes driving the increase
in cross-region egress.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-storage-control/latest/V2.IntelligenceFinding.CrossRegionEgressSpike.BucketContribution.Contribution.PrefixContribution>` |   |

### setTopPrefixes

Output only. A list of the top object prefixes driving the increase
in cross-region egress.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-storage-control/latest/V2.IntelligenceFinding.CrossRegionEgressSpike.BucketContribution.Contribution.PrefixContribution>` |

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