# Google Cloud Chronicle V1 Client - Class QueryRuntimeErrorMetadata (0.4.0)

0.4.0 (latest) 0.3.0 0.2.3 0.1.2 Reference documentation and code samples for the Google Cloud Chronicle V1 Client class QueryRuntimeErrorMetadata.

Metadata for the error.

Generated from protobuf message `google.cloud.chronicle.v1.QueryRuntimeError.QueryRuntimeErrorMetadata`

## Namespace

Google \\ Cloud \\ Chronicle \\ V1 \\ QueryRuntimeError

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ key` | `int` Metadata key. |
| `↳ value` | `string` Metadata value. |

### getKey

Metadata key.

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

### setKey

Metadata key.

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

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

### getValue

Metadata value.

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

### setValue

Metadata value.

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

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