Reference documentation and code samples for the Google Cloud Dialogflow V2 Client class EventInput.
Events allow for matching intents by event name instead of the natural
language input. For instance, input <event: { name: "welcome_event",
parameters: { name: "Sam" } }> can trigger a personalized welcome response.
The parameter name may be used by the agent in the response:
"Hello #welcome_event.name! What can I do for you today?".
Generated from protobuf message google.cloud.dialogflow.v2.EventInput
The collection of parameters associated with the event. Depending on your protocol or client library language, this is a map, associative array, symbol table, dictionary, or JSON object composed of a collection of (MapKey, MapValue) pairs: * * MapKey type: string * * MapKey value: parameter name * * MapValue type: If parameter's entity type is a composite entity then use map, otherwise, depending on the parameter value type, it could be one of string, number, boolean, null, list or map. * * MapValue value: If parameter's entity type is a composite entity then use map from composite entity property names to property values, otherwise, use parameter value.
↳ language_code
string
Required. The language of this query. See Language Support for a list of the currently supported language codes. Note that queries in the same session do not necessarily need to specify the same language. This field is ignored when used in the context of a WebhookResponse.followup_event_input field, because the language was already defined in the originating detect intent request.
getName
Required. The unique identifier of the event.
Returns
Type
Description
string
setName
Required. The unique identifier of the event.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getParameters
The collection of parameters associated with the event.
Depending on your protocol or client library language, this is a
map, associative array, symbol table, dictionary, or JSON object
composed of a collection of (MapKey, MapValue) pairs:
MapKey type: string
MapKey value: parameter name
MapValue type: If parameter's entity type is a composite entity then use
map, otherwise, depending on the parameter value type, it could be one of
string, number, boolean, null, list or map.
MapValue value: If parameter's entity type is a composite entity then use
map from composite entity property names to property values, otherwise,
use parameter value.
The collection of parameters associated with the event.
Depending on your protocol or client library language, this is a
map, associative array, symbol table, dictionary, or JSON object
composed of a collection of (MapKey, MapValue) pairs:
MapKey type: string
MapKey value: parameter name
MapValue type: If parameter's entity type is a composite entity then use
map, otherwise, depending on the parameter value type, it could be one of
string, number, boolean, null, list or map.
MapValue value: If parameter's entity type is a composite entity then use
map from composite entity property names to property values, otherwise,
use parameter value.
Required. The language of this query. See Language
Support
for a list of the currently supported language codes. Note that queries in
the same session do not necessarily need to specify the same language.
This field is ignored when used in the context of a
WebhookResponse.followup_event_input
field, because the language was already defined in the originating detect
intent request.
Returns
Type
Description
string
setLanguageCode
Required. The language of this query. See Language
Support
for a list of the currently supported language codes. Note that queries in
the same session do not necessarily need to specify the same language.
This field is ignored when used in the context of a
WebhookResponse.followup_event_input
field, because the language was already defined in the originating detect
intent request.
[[["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 EventInput (2.1.2)\n\nVersion latestkeyboard_arrow_down\n\n- [2.1.2 (latest)](/php/docs/reference/cloud-dialogflow/latest/V2.EventInput)\n- [2.1.1](/php/docs/reference/cloud-dialogflow/2.1.1/V2.EventInput)\n- [2.0.1](/php/docs/reference/cloud-dialogflow/2.0.1/V2.EventInput)\n- [1.17.2](/php/docs/reference/cloud-dialogflow/1.17.2/V2.EventInput)\n- [1.16.0](/php/docs/reference/cloud-dialogflow/1.16.0/V2.EventInput)\n- [1.15.1](/php/docs/reference/cloud-dialogflow/1.15.1/V2.EventInput)\n- [1.14.0](/php/docs/reference/cloud-dialogflow/1.14.0/V2.EventInput)\n- [1.13.0](/php/docs/reference/cloud-dialogflow/1.13.0/V2.EventInput)\n- [1.12.3](/php/docs/reference/cloud-dialogflow/1.12.3/V2.EventInput)\n- [1.11.0](/php/docs/reference/cloud-dialogflow/1.11.0/V2.EventInput)\n- [1.10.2](/php/docs/reference/cloud-dialogflow/1.10.2/V2.EventInput)\n- [1.9.0](/php/docs/reference/cloud-dialogflow/1.9.0/V2.EventInput)\n- [1.8.0](/php/docs/reference/cloud-dialogflow/1.8.0/V2.EventInput)\n- [1.7.2](/php/docs/reference/cloud-dialogflow/1.7.2/V2.EventInput)\n- [1.6.0](/php/docs/reference/cloud-dialogflow/1.6.0/V2.EventInput)\n- [1.5.0](/php/docs/reference/cloud-dialogflow/1.5.0/V2.EventInput)\n- [1.4.0](/php/docs/reference/cloud-dialogflow/1.4.0/V2.EventInput)\n- [1.3.2](/php/docs/reference/cloud-dialogflow/1.3.2/V2.EventInput)\n- [1.2.0](/php/docs/reference/cloud-dialogflow/1.2.0/V2.EventInput)\n- [1.1.1](/php/docs/reference/cloud-dialogflow/1.1.1/V2.EventInput)\n- [1.0.1](/php/docs/reference/cloud-dialogflow/1.0.1/V2.EventInput) \nReference documentation and code samples for the Google Cloud Dialogflow V2 Client class EventInput.\n\nEvents allow for matching intents by event name instead of the natural\nlanguage input. For instance, input `\u003cevent: { name: \"welcome_event\",\nparameters: { name: \"Sam\" } }\u003e` can trigger a personalized welcome response.\n\nThe parameter `name` may be used by the agent in the response:\n`\"Hello #welcome_event.name! What can I do for you today?\"`.\n\nGenerated from protobuf message `google.cloud.dialogflow.v2.EventInput`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Dialogflow \\\\ V2\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getName\n\nRequired. The unique identifier of the event.\n\n### setName\n\nRequired. The unique identifier of the event.\n\n### getParameters\n\nThe collection of parameters associated with the event.\n\nDepending on your protocol or client library language, this is a\nmap, associative array, symbol table, dictionary, or JSON object\ncomposed of a collection of (MapKey, MapValue) pairs:\n\n- MapKey type: string\n- MapKey value: parameter name\n- MapValue type: If parameter's entity type is a composite entity then use map, otherwise, depending on the parameter value type, it could be one of string, number, boolean, null, list or map.\n- MapValue value: If parameter's entity type is a composite entity then use map from composite entity property names to property values, otherwise, use parameter value.\n\n### hasParameters\n\n### clearParameters\n\n### setParameters\n\nThe collection of parameters associated with the event.\n\nDepending on your protocol or client library language, this is a\nmap, associative array, symbol table, dictionary, or JSON object\ncomposed of a collection of (MapKey, MapValue) pairs:\n\n- MapKey type: string\n- MapKey value: parameter name\n- MapValue type: If parameter's entity type is a composite entity then use map, otherwise, depending on the parameter value type, it could be one of string, number, boolean, null, list or map.\n- MapValue value: If parameter's entity type is a composite entity then use map from composite entity property names to property values, otherwise, use parameter value.\n\n### getLanguageCode\n\nRequired. The language of this query. See [Language\nSupport](https://cloud.google.com/dialogflow/docs/reference/language)\nfor a list of the currently supported language codes. Note that queries in\nthe same session do not necessarily need to specify the same language.\n\nThis field is ignored when used in the context of a\n[WebhookResponse.followup_event_input](/php/docs/reference/cloud-dialogflow/latest/V2.WebhookResponse#_Google_Cloud_Dialogflow_V2_WebhookResponse__getFollowupEventInput__)\nfield, because the language was already defined in the originating detect\nintent request.\n\n### setLanguageCode\n\nRequired. The language of this query. See [Language\nSupport](https://cloud.google.com/dialogflow/docs/reference/language)\nfor a list of the currently supported language codes. Note that queries in\nthe same session do not necessarily need to specify the same language.\n\nThis field is ignored when used in the context of a\n[WebhookResponse.followup_event_input](/php/docs/reference/cloud-dialogflow/latest/V2.WebhookResponse#_Google_Cloud_Dialogflow_V2_WebhookResponse__getFollowupEventInput__)\nfield, because the language was already defined in the originating detect\nintent request."]]