# Google Cloud Service Health V1 Client - Class Location (0.5.0)

0.5.0 (latest) 0.4.3 0.3.1 0.2.3 0.1.8 Reference documentation and code samples for the Google Cloud Service Health V1 Client class Location.

Represents the locations impacted by the event.

Generated from protobuf message `google.cloud.servicehealth.v1.Location`

## Namespace

Google \\ Cloud \\ ServiceHealth \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ location_name` | `string` Location impacted by the event. Example: `"us-central1"` |

### getLocationName

Location impacted by the event. Example: `"us-central1"`

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

### setLocationName

Location impacted by the event. Example: `"us-central1"`

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

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