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

Configuration for Custom Dual Regions. It should specify precisely two
eligible regions within the same Multiregion. More information on regions
may be found [here](https://cloud.google.com/storage/docs/locations).

Generated from protobuf message `google.storage.control.v2.StorageLayout.CustomPlacementConfig`

## Namespace

Google \\ Cloud \\ Storage \\ Control \\ V2 \\ StorageLayout

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ data_locations` | `string[]` List of locations to use for data placement. |

### getDataLocations

List of locations to use for data placement.

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

### setDataLocations

List of locations to use for data placement.

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

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