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

Represents the cross-region egress spike details for a bucket.

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

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ bucket` | `string` Output only. The name of the bucket. |
| `↳ total_egress_bytes` | `int|string` Output only. The total cross-region egress volume in bytes for the bucket. |
| `↳ percentage_increase` | `float` Output only. The percentage increase in cross-region egress for the bucket. |
| `↳ contribution` | `https://docs.cloud.google.com/php/docs/reference/cloud-storage-control/latest/V2.IntelligenceFinding.CrossRegionEgressSpike.BucketContribution.Contribution` Output only. The details about the contribution of the bucket. |
| `↳ error` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Rpc.Status.html` Output only. The error related to accessing the details about the contribution of the bucket. |

### getBucket

Output only. The name of the bucket.

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

### setBucket

Output only. The name of the bucket.

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

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

### getTotalEgressBytes

Output only. The total cross-region egress volume in bytes for the
bucket.

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

### setTotalEgressBytes

Output only. The total cross-region egress volume in bytes for the
bucket.

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

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

### getPercentageIncrease

Output only. The percentage increase in cross-region egress for the
bucket.

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

### setPercentageIncrease

Output only. The percentage increase in cross-region egress for the
bucket.

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

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

### getContribution

Output only. The details about the contribution of the bucket.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-storage-control/latest/V2.IntelligenceFinding.CrossRegionEgressSpike.BucketContribution.Contribution|null` |   |

### hasContribution

### setContribution

Output only. The details about the contribution of the bucket.

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

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

### getError

Output only. The error related to accessing the details about the
contribution of the bucket.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Rpc.Status.html|null` |   |

### hasError

### setError

Output only. The error related to accessing the details about the
contribution of the bucket.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Rpc.Status.html` |

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

### getDetails

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