public final class EventHandler extends com.google.protobuf.GeneratedMessageV3 implements EventHandlerOrBuilder
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.Protobuf type
google.cloud.dialogflow.cx.v3.EventHandler| Modifier and Type | Class and Description |
|---|---|
static class |
EventHandler.Builder
An event handler specifies an [event][google.cloud.dialogflow.cx.v3.EventHandler.event] that can be handled
during a session.
|
static class |
EventHandler.TargetCase |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
EVENT_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
TARGET_FLOW_FIELD_NUMBER |
static int |
TARGET_PAGE_FIELD_NUMBER |
static int |
TRIGGER_FULFILLMENT_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static EventHandler |
getDefaultInstance() |
EventHandler |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
String |
getEvent()
Required.
|
com.google.protobuf.ByteString |
getEventBytes()
Required.
|
String |
getName()
Output only.
|
com.google.protobuf.ByteString |
getNameBytes()
Output only.
|
com.google.protobuf.Parser<EventHandler> |
getParserForType() |
int |
getSerializedSize() |
EventHandler.TargetCase |
getTargetCase() |
String |
getTargetFlow()
The target flow to transition to.
|
com.google.protobuf.ByteString |
getTargetFlowBytes()
The target flow to transition to.
|
String |
getTargetPage()
The target page to transition to.
|
com.google.protobuf.ByteString |
getTargetPageBytes()
The target page to transition to.
|
Fulfillment |
getTriggerFulfillment()
The fulfillment to call when the event occurs.
|
FulfillmentOrBuilder |
getTriggerFulfillmentOrBuilder()
The fulfillment to call when the event occurs.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
boolean |
hasTargetFlow()
The target flow to transition to.
|
boolean |
hasTargetPage()
The target page to transition to.
|
boolean |
hasTriggerFulfillment()
The fulfillment to call when the event occurs.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static EventHandler.Builder |
newBuilder() |
static EventHandler.Builder |
newBuilder(EventHandler prototype) |
EventHandler.Builder |
newBuilderForType() |
protected EventHandler.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static EventHandler |
parseDelimitedFrom(InputStream input) |
static EventHandler |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static EventHandler |
parseFrom(byte[] data) |
static EventHandler |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static EventHandler |
parseFrom(ByteBuffer data) |
static EventHandler |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static EventHandler |
parseFrom(com.google.protobuf.ByteString data) |
static EventHandler |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static EventHandler |
parseFrom(com.google.protobuf.CodedInputStream input) |
static EventHandler |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static EventHandler |
parseFrom(InputStream input) |
static EventHandler |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<EventHandler> |
parser() |
EventHandler.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int NAME_FIELD_NUMBER
public static final int EVENT_FIELD_NUMBER
public static final int TRIGGER_FULFILLMENT_FIELD_NUMBER
public static final int TARGET_PAGE_FIELD_NUMBER
public static final int TARGET_FLOW_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public EventHandler.TargetCase getTargetCase()
getTargetCase in interface EventHandlerOrBuilderpublic String getName()
Output only. The unique identifier of this event handler.
string name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];getName in interface EventHandlerOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
Output only. The unique identifier of this event handler.
string name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];getNameBytes in interface EventHandlerOrBuilderpublic String getEvent()
Required. The name of the event to handle.
string event = 4 [(.google.api.field_behavior) = REQUIRED];getEvent in interface EventHandlerOrBuilderpublic com.google.protobuf.ByteString getEventBytes()
Required. The name of the event to handle.
string event = 4 [(.google.api.field_behavior) = REQUIRED];getEventBytes in interface EventHandlerOrBuilderpublic boolean hasTriggerFulfillment()
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.
.google.cloud.dialogflow.cx.v3.Fulfillment trigger_fulfillment = 5;hasTriggerFulfillment in interface EventHandlerOrBuilderpublic Fulfillment 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.
.google.cloud.dialogflow.cx.v3.Fulfillment trigger_fulfillment = 5;getTriggerFulfillment in interface EventHandlerOrBuilderpublic FulfillmentOrBuilder getTriggerFulfillmentOrBuilder()
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.
.google.cloud.dialogflow.cx.v3.Fulfillment trigger_fulfillment = 5;getTriggerFulfillmentOrBuilder in interface EventHandlerOrBuilderpublic boolean hasTargetPage()
The target page to transition to. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/pages/<Page ID>`.
string target_page = 2 [(.google.api.resource_reference) = { ... }hasTargetPage in interface EventHandlerOrBuilderpublic String getTargetPage()
The target page to transition to. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/pages/<Page ID>`.
string target_page = 2 [(.google.api.resource_reference) = { ... }getTargetPage in interface EventHandlerOrBuilderpublic com.google.protobuf.ByteString getTargetPageBytes()
The target page to transition to. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/pages/<Page ID>`.
string target_page = 2 [(.google.api.resource_reference) = { ... }getTargetPageBytes in interface EventHandlerOrBuilderpublic boolean hasTargetFlow()
The target flow to transition to. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>`.
string target_flow = 3 [(.google.api.resource_reference) = { ... }hasTargetFlow in interface EventHandlerOrBuilderpublic String getTargetFlow()
The target flow to transition to. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>`.
string target_flow = 3 [(.google.api.resource_reference) = { ... }getTargetFlow in interface EventHandlerOrBuilderpublic com.google.protobuf.ByteString getTargetFlowBytes()
The target flow to transition to. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>`.
string target_flow = 3 [(.google.api.resource_reference) = { ... }getTargetFlowBytes in interface EventHandlerOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static EventHandler parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static EventHandler parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static EventHandler parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static EventHandler parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static EventHandler parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static EventHandler parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static EventHandler parseFrom(InputStream input) throws IOException
IOExceptionpublic static EventHandler parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static EventHandler parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static EventHandler parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static EventHandler parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static EventHandler parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic EventHandler.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static EventHandler.Builder newBuilder()
public static EventHandler.Builder newBuilder(EventHandler prototype)
public EventHandler.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected EventHandler.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static EventHandler getDefaultInstance()
public static com.google.protobuf.Parser<EventHandler> parser()
public com.google.protobuf.Parser<EventHandler> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public EventHandler getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2022 Google LLC. All rights reserved.