Class Handler (0.75.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

Static Fields

EVENT_HANDLER_FIELD_NUMBER

public static final int EVENT_HANDLER_FIELD_NUMBER
Field Value
TypeDescription
int

LIFECYCLE_HANDLER_FIELD_NUMBER

public static final int LIFECYCLE_HANDLER_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Handler getDefaultInstance()
Returns
TypeDescription
Handler

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static Handler.Builder newBuilder()
Returns
TypeDescription
Handler.Builder

newBuilder(Handler )

public static Handler.Builder newBuilder(Handler )
Parameter
NameDescription
Handler
Returns
TypeDescription
Handler.Builder

parseDelimitedFrom(InputStream input)

public static Handler parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Handler
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Handler parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Handler
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Handler parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Handler
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Handler parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Handler
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Handler parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Handler
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Handler parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Handler
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Handler parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Handler
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Handler parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Handler
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Handler parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Handler
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Handler parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Handler
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Handler parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Handler
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Handler parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Handler
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<Handler> parser()
Returns
TypeDescription
Parser<Handler>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public Handler getDefaultInstanceForType()
Returns
TypeDescription
Handler

getEventHandler()

public Handler.EventHandler getEventHandler()

A handler triggered by event.

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

Returns
TypeDescription
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
TypeDescription
Handler.EventHandlerOrBuilder

getHandlerCase()

public Handler.HandlerCase getHandlerCase()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
Handler.LifecycleHandlerOrBuilder

getParserForType()

public Parser<Handler> getParserForType()
Returns
TypeDescription
Parser<Handler>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hasEventHandler()

public boolean hasEventHandler()

A handler triggered by event.

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

Returns
TypeDescription
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
TypeDescription
boolean

Whether the lifecycleHandler field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Handler.Builder newBuilderForType()
Returns
TypeDescription
Handler.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Handler.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Handler.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Handler.Builder toBuilder()
Returns
TypeDescription
Handler.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException