2.5.3 (latest) 2.5.2 2.4.0 2.3.1 2.2.0 2.1.1 2.0.1 1.5.5 1.4.2 1.3.0 1.2.1 1.1.0 1.0.5 Reference documentation and code samples for the Google Cloud Datastream V1 Client class ValidationMessage.

Represent user-facing validation result message.

Generated from protobuf message `google.cloud.datastream.v1.ValidationMessage`

## Namespace

Google \\ Cloud \\ Datastream \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ message` | `string` The result of the validation. |
| `↳ level` | `int` Message severity level (warning or error). |
| `↳ metadata` | `array|Google\Protobuf\Internal\MapField` Additional metadata related to the result. |
| `↳ code` | `string` A custom code identifying this specific message. |

### getMessage

The result of the validation.

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

### setMessage

The result of the validation.

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

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

### getLevel

Message severity level (warning or error).

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

### setLevel

Message severity level (warning or error).

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

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

### getMetadata

Additional metadata related to the result.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\Internal\MapField` |   |

### setMetadata

Additional metadata related to the result.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array|Google\Protobuf\Internal\MapField` |

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

### getCode

A custom code identifying this specific message.

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

### setCode

A custom code identifying this specific message.

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

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