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 \ HandlerMethods
__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 |
Google\Cloud\Dialogflow\Cx\V3\Fulfillment|null |
|
hasFulfillment
clearFulfillment
setFulfillment
Required. The fulfillment to call when the event occurs.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Cloud\Dialogflow\Cx\V3\Fulfillment
|
| Returns | |
|---|---|
| Type | Description |
$this |
|