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

Collection of Cloud Storage locations.

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

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ locations` | `string[]` |

### getLocations

Generated from protobuf field `repeated string locations = 1;`

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

### setLocations

Generated from protobuf field `repeated string locations = 1;`

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

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