# FlowValidationResult

- [JSON representation](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3/FlowValidationResult#SCHEMA_REPRESENTATION)
- [ValidationMessage](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3/FlowValidationResult#ValidationMessage)
  - [JSON representation](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3/FlowValidationResult#ValidationMessage.SCHEMA_REPRESENTATION)
- [ResourceType](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3/FlowValidationResult#ResourceType)
- [ResourceName](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3/FlowValidationResult#ResourceName)
  - [JSON representation](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3/FlowValidationResult#ResourceName.SCHEMA_REPRESENTATION)
- [Severity](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3/FlowValidationResult#Severity)

The response message for `https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3/projects.locations.agents.flows/getValidationResult#google.cloud.dialogflow.cx.v3.Flows.GetFlowValidationResult`.

| JSON representation |
|---|
| ``` { "name": string, "validationMessages": [ { object (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3/FlowValidationResult#ValidationMessage`) } ], "updateTime": string } ``` |

| Fields ||
|---|---|
| `name` | `string` The unique identifier of the flow validation result. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/validationResult`. |
| `validationMessages[]` | ``object (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3/FlowValidationResult#ValidationMessage`)`` Contains all validation messages. |
| `updateTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Last time the flow was validated. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |

## ValidationMessage

Agent/flow validation message.

| JSON representation |
|---|
| ``` { "resourceType": enum (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3/FlowValidationResult#ResourceType`), "resources": [ string ], "resourceNames": [ { object (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3/FlowValidationResult#ResourceName`) } ], "severity": enum (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3/FlowValidationResult#Severity`), "detail": string } ``` |

| Fields ||
|---|---|
| `resourceType` | ``enum (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3/FlowValidationResult#ResourceType`)`` The type of the resources where the message is found. |
| `resources[] (deprecated)` | `string` > [!WARNING] > This item is deprecated! The names of the resources where the message is found. |
| `resourceNames[]` | ``object (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3/FlowValidationResult#ResourceName`)`` The resource names of the resources where the message is found. |
| `severity` | ``enum (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3/FlowValidationResult#Severity`)`` Indicates the severity of the message. |
| `detail` | `string` The message detail. |

## ResourceType

Resource types.

| Enums ||
|---|---|
| `RESOURCE_TYPE_UNSPECIFIED` | Unspecified. |
| `AGENT` | Agent. |
| `INTENT` | Intent. |
| `INTENT_TRAINING_PHRASE` | Intent training phrase. |
| `INTENT_PARAMETER` | Intent parameter. |
| `INTENTS` | Multiple intents. |
| `INTENT_TRAINING_PHRASES` | Multiple training phrases. |
| `ENTITY_TYPE` | Entity type. |
| `ENTITY_TYPES` | Multiple entity types. |
| `WEBHOOK` | Webhook. |
| `FLOW` | Flow. |
| `PAGE` | Page. |
| `PAGES` | Multiple pages. |
| `TRANSITION_ROUTE_GROUP` | Transition route group. |
| `AGENT_TRANSITION_ROUTE_GROUP` | Agent transition route group. |

## ResourceName

Resource name and display name.

| JSON representation |
|---|
| ``` { "name": string, "displayName": string } ``` |

| Fields ||
|---|---|
| `name` | `string` Name. |
| `displayName` | `string` Display name. |

## Severity

Severity level.

| Enums ||
|---|---|
| `SEVERITY_UNSPECIFIED` | Unspecified. |
| `INFO` | The agent doesn't follow Dialogflow best practices. |
| `WARNING` | The agent may not behave as expected. |
| `ERROR` | The agent may experience failures. |