# Google Cloud Storage Batch Operations V1 Client - Class BucketList (0.7.0)

0.7.0 (latest) 0.6.0 0.5.0 0.4.0 0.3.1 0.2.1 0.1.2 Reference documentation and code samples for the Google Cloud Storage Batch Operations V1 Client class BucketList.

Describes list of buckets and their objects to be transformed.

Generated from protobuf message `google.cloud.storagebatchoperations.v1.BucketList`

## Namespace

Google \\ Cloud \\ StorageBatchOperations \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ buckets` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-storagebatchoperations/latest/V1.BucketList.Bucket>` Required. List of buckets and their objects to be transformed. Currently, only one bucket configuration is supported. If multiple buckets are specified, an error will be returned. |

### getBuckets

Required. List of buckets and their objects to be transformed. Currently,
only one bucket configuration is supported. If multiple buckets are
specified, an error will be returned.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-storagebatchoperations/latest/V1.BucketList.Bucket>` |   |

### setBuckets

Required. List of buckets and their objects to be transformed. Currently,
only one bucket configuration is supported. If multiple buckets are
specified, an error will be returned.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-storagebatchoperations/latest/V1.BucketList.Bucket>` |

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