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

Collection of bucket locations.

Generated from protobuf message `google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageLocations`

## Namespace

Google \\ Cloud \\ Storage \\ Control \\ V2 \\ IntelligenceConfig \\ Filter

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ locations` | `string[]` Optional. Bucket locations. Location can be any of the Cloud Storage regions specified in lower case format. For example, `us-east1`, `us-west1`. |

### getLocations

Optional. Bucket locations. Location can be any of the Cloud Storage
regions specified in lower case format. For example, `us-east1`,
`us-west1`.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setLocations

Optional. Bucket locations. Location can be any of the Cloud Storage
regions specified in lower case format. For example, `us-east1`,
`us-west1`.

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

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