The fulfillment to call when the event occurs. Handling webhook errors with a fulfillment enabled with webhook could cause infinite loop. It is invalid to specify such fulfillment for a handler handling webhooks.
↳ target_page
string
The target page to transition to. Format:projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/pages/<PageID>.
↳ target_flow
string
The target flow to transition to. Format:projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>.
getName
Output only. The unique identifier of this event handler.
Returns
Type
Description
string
setName
Output only. The unique identifier of this event handler.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getEvent
Required. The name of the event to handle.
Returns
Type
Description
string
setEvent
Required. The name of the event to handle.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getTriggerFulfillment
The fulfillment to call when the event occurs.
Handling webhook errors with a fulfillment enabled with webhook could
cause infinite loop. It is invalid to specify such fulfillment for a
handler handling webhooks.
Handling webhook errors with a fulfillment enabled with webhook could
cause infinite loop. It is invalid to specify such fulfillment for a
handler handling webhooks.
[[["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 Cx V3 Client - Class EventHandler (0.8.1)\n\nVersion latestkeyboard_arrow_down\n\n- [0.8.1 (latest)](/php/docs/reference/cloud-dialogflow-cx/latest/V3.EventHandler)\n- [0.8.0](/php/docs/reference/cloud-dialogflow-cx/0.8.0/V3.EventHandler)\n- [0.7.2](/php/docs/reference/cloud-dialogflow-cx/0.7.2/V3.EventHandler)\n- [0.6.0](/php/docs/reference/cloud-dialogflow-cx/0.6.0/V3.EventHandler)\n- [0.5.2](/php/docs/reference/cloud-dialogflow-cx/0.5.2/V3.EventHandler)\n- [0.4.1](/php/docs/reference/cloud-dialogflow-cx/0.4.1/V3.EventHandler)\n- [0.3.4](/php/docs/reference/cloud-dialogflow-cx/0.3.4/V3.EventHandler)\n- [0.2.1](/php/docs/reference/cloud-dialogflow-cx/0.2.1/V3.EventHandler)\n- [0.1.1](/php/docs/reference/cloud-dialogflow-cx/0.1.1/V3.EventHandler) \nReference documentation and code samples for the Google Cloud Dialogflow Cx V3 Client class EventHandler.\n\nAn event handler specifies an\n[event](/php/docs/reference/cloud-dialogflow-cx/latest/V3.EventHandler#_Google_Cloud_Dialogflow_Cx_V3_EventHandler__getEvent__) that can be handled\nduring a session. When the specified event happens, the following actions are\ntaken in order:\n\n- If there is a\n [`trigger_fulfillment`](/php/docs/reference/cloud-dialogflow-cx/latest/V3.EventHandler#_Google_Cloud_Dialogflow_Cx_V3_EventHandler__getTriggerFulfillment__)\n associated with the event, it will be called.\n\n- If there is a\n [`target_page`](/php/docs/reference/cloud-dialogflow-cx/latest/V3.EventHandler#_Google_Cloud_Dialogflow_Cx_V3_EventHandler__getTargetPage__)\n associated with the event, the session will transition into the specified\n page.\n\n- If there is a [`target_flow`](/php/docs/reference/cloud-dialogflow-cx/latest/V3.EventHandler#_Google_Cloud_Dialogflow_Cx_V3_EventHandler__getTargetFlow__) associated with the event, the session will transition into the specified flow.\n\nGenerated from protobuf message `google.cloud.dialogflow.cx.v3.EventHandler`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Dialogflow \\\\ Cx \\\\ V3\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getName\n\nOutput only. The unique identifier of this event handler.\n\n### setName\n\nOutput only. The unique identifier of this event handler.\n\n### getEvent\n\nRequired. The name of the event to handle.\n\n### setEvent\n\nRequired. The name of the event to handle.\n\n### getTriggerFulfillment\n\nThe fulfillment to call when the event occurs.\n\nHandling webhook errors with a fulfillment enabled with webhook could\ncause infinite loop. It is invalid to specify such fulfillment for a\nhandler handling webhooks.\n\n### hasTriggerFulfillment\n\n### clearTriggerFulfillment\n\n### setTriggerFulfillment\n\nThe fulfillment to call when the event occurs.\n\nHandling webhook errors with a fulfillment enabled with webhook could\ncause infinite loop. It is invalid to specify such fulfillment for a\nhandler handling webhooks.\n\n### getTargetPage\n\nThe target page to transition to.\n\nFormat:\n`projects/\u003cProjectID\u003e/locations/\u003cLocationID\u003e/agents/\u003cAgentID\u003e/flows/\u003cFlowID\u003e/pages/\u003cPageID\u003e`.\n\n### hasTargetPage\n\n### setTargetPage\n\nThe target page to transition to.\n\nFormat:\n`projects/\u003cProjectID\u003e/locations/\u003cLocationID\u003e/agents/\u003cAgentID\u003e/flows/\u003cFlowID\u003e/pages/\u003cPageID\u003e`.\n\n### getTargetFlow\n\nThe target flow to transition to.\n\nFormat:\n`projects/\u003cProjectID\u003e/locations/\u003cLocationID\u003e/agents/\u003cAgentID\u003e/flows/\u003cFlowID\u003e`.\n\n### hasTargetFlow\n\n### setTargetFlow\n\nThe target flow to transition to.\n\nFormat:\n`projects/\u003cProjectID\u003e/locations/\u003cLocationID\u003e/agents/\u003cAgentID\u003e/flows/\u003cFlowID\u003e`.\n\n### getTarget"]]