Google Cloud Dialogflow Cx V3 Client - Class EventHandler (0.11.0)

Reference documentation and code samples for the Google Cloud Dialogflow Cx V3 Client class EventHandler.

A handler that is triggered by the specified event .

Generated from protobuf message google.cloud.dialogflow.cx.v3.Handler.EventHandler

Namespace

Google \ Cloud \ Dialogflow \ Cx \ V3 \ Handler

Methods

__construct

Constructor.

Parameters
Name
Description
data
array

Optional. Data for populating the Message object.

↳ event
string

Required. The name of the event that triggers this handler.

↳ condition
string

Optional. The condition that must be satisfied to trigger this handler.

↳ fulfillment
Google\Cloud\Dialogflow\Cx\V3\Fulfillment

Required. The fulfillment to call when the event occurs.

getEvent

Required. The name of the event that triggers this handler.

Returns
Type
Description
string

setEvent

Required. The name of the event that triggers this handler.

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getCondition

Optional. The condition that must be satisfied to trigger this handler.

Returns
Type
Description
string

setCondition

Optional. The condition that must be satisfied to trigger this handler.

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getFulfillment

Required. The fulfillment to call when the event occurs.

Returns
Type
Description

hasFulfillment

clearFulfillment

setFulfillment

Required. The fulfillment to call when the event occurs.

Parameter
Name
Description
Returns
Type
Description
$this
Create a Mobile Website
View Site in Mobile | Classic
Share by: