# Google Cloud Storage Insights V1 Client - Class CloudStorageBuckets (1.4.0)

1.4.0 (latest) 1.3.3 1.2.1 1.1.0 1.0.3 0.3.5 0.2.3 0.1.1 Reference documentation and code samples for the Google Cloud Storage Insights V1 Client class CloudStorageBuckets.

Collection of Cloud Storage buckets.

Generated from protobuf message `google.cloud.storageinsights.v1.DatasetConfig.CloudStorageBuckets`

## Namespace

Google \\ Cloud \\ StorageInsights \\ V1 \\ DatasetConfig

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ cloud_storage_buckets` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-storageinsights/latest/V1.DatasetConfig.CloudStorageBuckets.CloudStorageBucket>` |

### getCloudStorageBuckets

Generated from protobuf field `repeated .google.cloud.storageinsights.v1.DatasetConfig.CloudStorageBuckets.CloudStorageBucket cloud_storage_buckets = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-storageinsights/latest/V1.DatasetConfig.CloudStorageBuckets.CloudStorageBucket>` |   |

### setCloudStorageBuckets

Generated from protobuf field `repeated .google.cloud.storageinsights.v1.DatasetConfig.CloudStorageBuckets.CloudStorageBucket cloud_storage_buckets = 1;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-storageinsights/latest/V1.DatasetConfig.CloudStorageBuckets.CloudStorageBucket>` |

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