# Google Cloud Backup Dr V1 Client - Class BackupLocation (0.13.0)

0.13.0 (latest) 0.12.1 0.11.1 0.10.0 0.9.0 0.8.1 0.7.0 0.6.2 0.5.1 0.4.2 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the Google Cloud Backup Dr V1 Client class BackupLocation.

BackupLocation represents a cloud location where a backup can be stored.

Generated from protobuf message `google.cloud.backupdr.v1.BackupLocation`

## Namespace

Google \\ Cloud \\ BackupDR \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ type` | `int` Output only. The type of the location. |
| `↳ location_id` | `string` Output only. The id of the cloud location. Example: "us-central1" |

### getType

Output only. The type of the location.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [Type](https://docs.cloud.google.com/php/docs/reference/cloud-backupdr/latest/V1.BackupLocation.Type). |

### setType

Output only. The type of the location.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [Type](https://docs.cloud.google.com/php/docs/reference/cloud-backupdr/latest/V1.BackupLocation.Type). |

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

### getLocationId

Output only. The id of the cloud location. Example: "us-central1"

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setLocationId

Output only. The id of the cloud location. Example: "us-central1"

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

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