Reference documentation and code samples for the Google Cloud Dialogflow V2 Client class ValidationError.
Represents a single validation error.
Generated from protobuf message google.cloud.dialogflow.v2.ValidationError
Namespace
Google \ Cloud \ Dialogflow \ V2
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ severity
int
The severity of the error.
↳ entries
array
The names of the entries that the error is associated with. Format: - projects/<Project ID>/agent, if the error is associated with the entire agent. - projects/<Project ID>/agent/intents/<Intent ID>, if the error is associated with certain intents. - projects/<Project ID>/agent/intents/<Intent Id>/trainingPhrases/<Training Phrase ID>, if the error is associated with certain intent training phrases. - projects/<Project ID>/agent/intents/<Intent Id>/parameters/<Parameter ID>, if the error is associated with certain intent parameters. - projects/<Project ID>/agent/entities/<Entity ID>, if the error is associated with certain entities.
↳ error_message
string
The detailed error message.
getSeverity
The severity of the error.
Returns
Type
Description
int
setSeverity
The severity of the error.
Parameter
Name
Description
var
int
Returns
Type
Description
$this
getEntries
The names of the entries that the error is associated with.
Format:
projects/<Project ID>/agent, if the error is associated with the entire
agent.
projects/<Project ID>/agent/intents/<Intent ID>, if the error is
associated with certain intents.
projects/<Project ID>/agent/intents/<Intent
Id>/trainingPhrases/<Training Phrase ID>, if the error is associated with
certain intent training phrases.
projects/<Project ID>/agent/intents/<Intent Id>/parameters/<Parameter
ID>, if the error is associated with certain intent parameters.
projects/<Project ID>/agent/entities/<Entity ID>, if the error is
associated with certain entities.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Dialogflow V2 Client - Class ValidationError (2.1.2)\n\nVersion latestkeyboard_arrow_down\n\n- [2.1.2 (latest)](/php/docs/reference/cloud-dialogflow/latest/V2.ValidationError)\n- [2.1.1](/php/docs/reference/cloud-dialogflow/2.1.1/V2.ValidationError)\n- [2.0.1](/php/docs/reference/cloud-dialogflow/2.0.1/V2.ValidationError)\n- [1.17.2](/php/docs/reference/cloud-dialogflow/1.17.2/V2.ValidationError)\n- [1.16.0](/php/docs/reference/cloud-dialogflow/1.16.0/V2.ValidationError)\n- [1.15.1](/php/docs/reference/cloud-dialogflow/1.15.1/V2.ValidationError)\n- [1.14.0](/php/docs/reference/cloud-dialogflow/1.14.0/V2.ValidationError)\n- [1.13.0](/php/docs/reference/cloud-dialogflow/1.13.0/V2.ValidationError)\n- [1.12.3](/php/docs/reference/cloud-dialogflow/1.12.3/V2.ValidationError)\n- [1.11.0](/php/docs/reference/cloud-dialogflow/1.11.0/V2.ValidationError)\n- [1.10.2](/php/docs/reference/cloud-dialogflow/1.10.2/V2.ValidationError)\n- [1.9.0](/php/docs/reference/cloud-dialogflow/1.9.0/V2.ValidationError)\n- [1.8.0](/php/docs/reference/cloud-dialogflow/1.8.0/V2.ValidationError)\n- [1.7.2](/php/docs/reference/cloud-dialogflow/1.7.2/V2.ValidationError)\n- [1.6.0](/php/docs/reference/cloud-dialogflow/1.6.0/V2.ValidationError)\n- [1.5.0](/php/docs/reference/cloud-dialogflow/1.5.0/V2.ValidationError)\n- [1.4.0](/php/docs/reference/cloud-dialogflow/1.4.0/V2.ValidationError)\n- [1.3.2](/php/docs/reference/cloud-dialogflow/1.3.2/V2.ValidationError)\n- [1.2.0](/php/docs/reference/cloud-dialogflow/1.2.0/V2.ValidationError)\n- [1.1.1](/php/docs/reference/cloud-dialogflow/1.1.1/V2.ValidationError)\n- [1.0.1](/php/docs/reference/cloud-dialogflow/1.0.1/V2.ValidationError) \nReference documentation and code samples for the Google Cloud Dialogflow V2 Client class ValidationError.\n\nRepresents a single validation error.\n\nGenerated from protobuf message `google.cloud.dialogflow.v2.ValidationError`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Dialogflow \\\\ V2\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getSeverity\n\nThe severity of the error.\n\n### setSeverity\n\nThe severity of the error.\n\n### getEntries\n\nThe names of the entries that the error is associated with.\n\nFormat:\n\n- `projects/\u003cProject ID\u003e/agent`, if the error is associated with the entire agent.\n- `projects/\u003cProject ID\u003e/agent/intents/\u003cIntent ID\u003e`, if the error is associated with certain intents.\n- `projects/\u003cProject ID\u003e/agent/intents/\u003cIntent\n Id\u003e/trainingPhrases/\u003cTraining Phrase ID\u003e`, if the error is associated with certain intent training phrases.\n- `projects/\u003cProject ID\u003e/agent/intents/\u003cIntent Id\u003e/parameters/\u003cParameter\n ID\u003e`, if the error is associated with certain intent parameters.\n- `projects/\u003cProject ID\u003e/agent/entities/\u003cEntity ID\u003e`, if the error is associated with certain entities.\n\n### setEntries\n\nThe names of the entries that the error is associated with.\n\nFormat:\n\n- `projects/\u003cProject ID\u003e/agent`, if the error is associated with the entire agent.\n- `projects/\u003cProject ID\u003e/agent/intents/\u003cIntent ID\u003e`, if the error is associated with certain intents.\n- `projects/\u003cProject ID\u003e/agent/intents/\u003cIntent\n Id\u003e/trainingPhrases/\u003cTraining Phrase ID\u003e`, if the error is associated with certain intent training phrases.\n- `projects/\u003cProject ID\u003e/agent/intents/\u003cIntent Id\u003e/parameters/\u003cParameter\n ID\u003e`, if the error is associated with certain intent parameters.\n- `projects/\u003cProject ID\u003e/agent/entities/\u003cEntity ID\u003e`, if the error is associated with certain entities.\n\n### getErrorMessage\n\nThe detailed error message.\n\n### setErrorMessage\n\nThe detailed error message."]]