public sealed class EventHandler : IMessage<EventHandler>, IEquatable<EventHandler>, IDeepCloneable<EventHandler>, IBufferMessage, IMessage
An event handler specifies an [event][google.cloud.dialogflow.cx.v3.EventHandler.event] that can be handled during a session. When the specified event happens, the following actions are taken in order:
- If there is a
[
trigger_fulfillment
][google.cloud.dialogflow.cx.v3.EventHandler.trigger_fulfillment] associated with the event, it will be called. - If there is a [
target_page
][google.cloud.dialogflow.cx.v3.EventHandler.target_page] associated with the event, the session will transition into the specified page. - If there is a [
target_flow
][google.cloud.dialogflow.cx.v3.EventHandler.target_flow] associated with the event, the session will transition into the specified flow.
Inheritance
System.Object > EventHandlerImplements
Google.Protobuf.IMessage<EventHandler>, System.IEquatable<EventHandler>, Google.Protobuf.IDeepCloneable<EventHandler>, Google.Protobuf.IBufferMessage, Google.Protobuf.IMessageNamespace
Google.Cloud.Dialogflow.Cx.V3Assembly
Google.Cloud.Dialogflow.Cx.V3.dll
Constructors
EventHandler()
public EventHandler()
EventHandler(EventHandler)
public EventHandler(EventHandler other)
Parameter | |
---|---|
Name | Description |
other | EventHandler |
Properties
Event
public string Event { get; set; }
Required. The name of the event to handle.
Property Value | |
---|---|
Type | Description |
System.String |
Name
public string Name { get; set; }
Output only. The unique identifier of this event handler.
Property Value | |
---|---|
Type | Description |
System.String |
TargetCase
public EventHandler.TargetOneofCase TargetCase { get; }
Property Value | |
---|---|
Type | Description |
EventHandler.TargetOneofCase |
TargetFlow
public string TargetFlow { get; set; }
The target flow to transition to.
Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
ID>/flows/<Flow ID>
.
Property Value | |
---|---|
Type | Description |
System.String |
TargetFlowAsFlowName
public FlowName TargetFlowAsFlowName { get; set; }
FlowName-typed view over the TargetFlow resource name property.
Property Value | |
---|---|
Type | Description |
FlowName |
TargetPage
public string TargetPage { get; set; }
The target page to transition to.
Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
ID>/flows/<Flow ID>/pages/<Page ID>
.
Property Value | |
---|---|
Type | Description |
System.String |
TargetPageAsPageName
public PageName TargetPageAsPageName { get; set; }
PageName-typed view over the TargetPage resource name property.
Property Value | |
---|---|
Type | Description |
PageName |
TriggerFulfillment
public Fulfillment TriggerFulfillment { get; set; }
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.
Property Value | |
---|---|
Type | Description |
Fulfillment |