# Google Cloud Capacity Planner V1beta Client - Class LocationIdentifier (0.1.2)

0.1.2 (latest) 0.1.1

> [!WARNING]
> **Beta**
>
>
> This library is covered by the [Pre-GA Offerings Terms](https://docs.cloud.google.com/terms/service-terms#1)
> of the Terms of Service. Pre-GA libraries might have limited support,
> and changes to pre-GA libraries might not be compatible with other pre-GA versions.
> For more information, see the
> [launch stage descriptions](https://docs.cloud.google.com/products#product-launch-stages).

Reference documentation and code samples for the Google Cloud Capacity Planner V1beta Client class LocationIdentifier.

Identifier for a Google Cloud Platform location.

Generated from protobuf message `google.cloud.capacityplanner.v1beta.LocationIdentifier`

## Namespace

Google \\ Cloud \\ CapacityPlanner \\ V1beta

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ location_level` | `int` The location level such as a region. |
| `↳ source` | `string` Required. Location where resource is sourced. For Cloud Storage, the alphabetically first location is the source. |
| `↳ linked_locations` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-capacityplanner/latest/V1beta.LocationIdentifier.LinkedLocation>` Optional. Other linked locations. |

### getLocationLevel

The location level such as a region.

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

### setLocationLevel

The location level such as a region.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [LocationLevel](https://docs.cloud.google.com/php/docs/reference/cloud-capacityplanner/latest/V1beta.LocationLevel). |

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

### getSource

Required. Location where resource is sourced. For Cloud Storage, the
alphabetically first location is the source.

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

### setSource

Required. Location where resource is sourced. For Cloud Storage, the
alphabetically first location is the source.

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

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

### getLinkedLocations

Optional. Other linked locations.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-capacityplanner/latest/V1beta.LocationIdentifier.LinkedLocation>` |   |

### setLinkedLocations

Optional. Other linked locations.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-capacityplanner/latest/V1beta.LocationIdentifier.LinkedLocation>` |

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