Class Handler (0.70.0)

public final class Handler extends GeneratedMessageV3 implements HandlerOrBuilder

Handler can be used to define custom logic to be executed based on the user-specified triggers.

Protobuf type google.cloud.dialogflow.cx.v3beta1.Handler

Implements

HandlerOrBuilder

Static Fields

EVENT_HANDLER_FIELD_NUMBER

public static final int EVENT_HANDLER_FIELD_NUMBER
Field Value
Type Description
int

LIFECYCLE_HANDLER_FIELD_NUMBER

public static final int LIFECYCLE_HANDLER_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Handler getDefaultInstance()
Returns
Type Description
Handler

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static Handler.Builder newBuilder()
Returns
Type Description
Handler.Builder

newBuilder(Handler prototype)

public static Handler.Builder newBuilder(Handler prototype)
Parameter
Name Description
prototype Handler
Returns
Type Description
Handler.Builder

parseDelimitedFrom(InputStream input)

public static Handler parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Handler
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Handler parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Handler
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Handler parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Handler
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Handler parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Handler
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Handler parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Handler
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Handler parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Handler
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Handler parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Handler
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Handler parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Handler
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Handler parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Handler
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Handler parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Handler
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Handler parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Handler
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Handler parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Handler
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<Handler> parser()
Returns
Type Description
Parser<Handler>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public Handler getDefaultInstanceForType()
Returns
Type Description
Handler

getEventHandler()

public Handler.EventHandler getEventHandler()

A handler triggered by event.

.google.cloud.dialogflow.cx.v3beta1.Handler.EventHandler event_handler = 1;

Returns
Type Description
Handler.EventHandler

The eventHandler.

getEventHandlerOrBuilder()

public Handler.EventHandlerOrBuilder getEventHandlerOrBuilder()

A handler triggered by event.

.google.cloud.dialogflow.cx.v3beta1.Handler.EventHandler event_handler = 1;

Returns
Type Description
Handler.EventHandlerOrBuilder

getHandlerCase()

public Handler.HandlerCase getHandlerCase()
Returns
Type Description
Handler.HandlerCase

getLifecycleHandler()

public Handler.LifecycleHandler getLifecycleHandler()

A handler triggered during specific lifecycle of the playbook execution.

.google.cloud.dialogflow.cx.v3beta1.Handler.LifecycleHandler lifecycle_handler = 3;

Returns
Type Description
Handler.LifecycleHandler

The lifecycleHandler.

getLifecycleHandlerOrBuilder()

public Handler.LifecycleHandlerOrBuilder getLifecycleHandlerOrBuilder()

A handler triggered during specific lifecycle of the playbook execution.

.google.cloud.dialogflow.cx.v3beta1.Handler.LifecycleHandler lifecycle_handler = 3;

Returns
Type Description
Handler.LifecycleHandlerOrBuilder

getParserForType()

public Parser<Handler> getParserForType()
Returns
Type Description
Parser<Handler>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasEventHandler()

public boolean hasEventHandler()

A handler triggered by event.

.google.cloud.dialogflow.cx.v3beta1.Handler.EventHandler event_handler = 1;

Returns
Type Description
boolean

Whether the eventHandler field is set.

hasLifecycleHandler()

public boolean hasLifecycleHandler()

A handler triggered during specific lifecycle of the playbook execution.

.google.cloud.dialogflow.cx.v3beta1.Handler.LifecycleHandler lifecycle_handler = 3;

Returns
Type Description
boolean

Whether the lifecycleHandler field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Handler.Builder newBuilderForType()
Returns
Type Description
Handler.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Handler.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Handler.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public Handler.Builder toBuilder()
Returns
Type Description
Handler.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException