# Google Cloud Dialogflow Cx V3 Client - Class ValidationMessage (0.11.1)

0.11.1 (latest) 0.11.0 0.10.2 0.9.2 0.8.1 0.7.2 0.6.0 0.5.2 0.4.1 0.3.4 0.2.1 0.1.1 Reference documentation and code samples for the Google Cloud Dialogflow Cx V3 Client class ValidationMessage.

Agent/flow validation message.

Generated from protobuf message `google.cloud.dialogflow.cx.v3.ValidationMessage`

## Namespace

Google \\ Cloud \\ Dialogflow \\ Cx \\ V3

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ resource_type` | `int` The type of the resources where the message is found. |
| `↳ resources` | `string[]` The names of the resources where the message is found. |
| `↳ resource_names` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.ResourceName>` The resource names of the resources where the message is found. |
| `↳ severity` | `int` Indicates the severity of the message. |
| `↳ detail` | `string` The message detail. |

### getResourceType

The type of the resources where the message is found.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [ResourceType](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.ValidationMessage.ResourceType). |

### setResourceType

The type of the resources where the message is found.

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

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

### getResources

The names of the resources where the message is found.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setResources

The names of the resources where the message is found.

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

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

### getResourceNames

The resource names of the resources where the message is found.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.ResourceName>` |   |

### setResourceNames

The resource names of the resources where the message is found.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.ResourceName>` |

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

### getSeverity

Indicates the severity of the message.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [Severity](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.ValidationMessage.Severity). |

### setSeverity

Indicates the severity of the message.

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

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

### getDetail

The message detail.

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

### setDetail

The message detail.

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

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