# Stackdriver Logging V2 Client - Class LocationMetadata (2.1.0)

2.1.0 (latest) 2.0.0 1.34.5 1.33.0 1.32.3 1.31.3 1.30.3 1.29.0 1.28.5 1.27.1 1.26.0 1.25.5 1.24.10 Reference documentation and code samples for the Stackdriver Logging V2 Client class LocationMetadata.

Cloud Logging specific location metadata.

Generated from protobuf message `google.logging.v2.LocationMetadata`

## Namespace

Google \\ Cloud \\ Logging \\ V2

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ log_analytics_enabled` | `bool` Indicates whether or not Log Analytics features are supported in the given location. |

### getLogAnalyticsEnabled

Indicates whether or not Log Analytics features are supported in the given
location.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setLogAnalyticsEnabled

Indicates whether or not Log Analytics features are supported in the given
location.

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

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