Class TriggerAction (0.1.0)

public final class TriggerAction extends GeneratedMessage implements TriggerActionOrBuilder

Action that is taken when a certain precondition is met.

Protobuf type google.cloud.ces.v1.TriggerAction

Static Fields

GENERATIVE_ANSWER_FIELD_NUMBER

public static final int GENERATIVE_ANSWER_FIELD_NUMBER
Field Value
Type Description
int

RESPOND_IMMEDIATELY_FIELD_NUMBER

public static final int RESPOND_IMMEDIATELY_FIELD_NUMBER
Field Value
Type Description
int

TRANSFER_AGENT_FIELD_NUMBER

public static final int TRANSFER_AGENT_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static TriggerAction getDefaultInstance()
Returns
Type Description
TriggerAction

getDescriptor()

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

newBuilder()

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

newBuilder(TriggerAction prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getActionCase()

public TriggerAction.ActionCase getActionCase()
Returns
Type Description
TriggerAction.ActionCase

getDefaultInstanceForType()

public TriggerAction getDefaultInstanceForType()
Returns
Type Description
TriggerAction

getGenerativeAnswer()

public TriggerAction.GenerativeAnswer getGenerativeAnswer()

Optional. Respond with a generative answer.

.google.cloud.ces.v1.TriggerAction.GenerativeAnswer generative_answer = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TriggerAction.GenerativeAnswer

The generativeAnswer.

getGenerativeAnswerOrBuilder()

public TriggerAction.GenerativeAnswerOrBuilder getGenerativeAnswerOrBuilder()

Optional. Respond with a generative answer.

.google.cloud.ces.v1.TriggerAction.GenerativeAnswer generative_answer = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TriggerAction.GenerativeAnswerOrBuilder

getParserForType()

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

getRespondImmediately()

public TriggerAction.RespondImmediately getRespondImmediately()

Optional. Immediately respond with a preconfigured response.

.google.cloud.ces.v1.TriggerAction.RespondImmediately respond_immediately = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TriggerAction.RespondImmediately

The respondImmediately.

getRespondImmediatelyOrBuilder()

public TriggerAction.RespondImmediatelyOrBuilder getRespondImmediatelyOrBuilder()

Optional. Immediately respond with a preconfigured response.

.google.cloud.ces.v1.TriggerAction.RespondImmediately respond_immediately = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TriggerAction.RespondImmediatelyOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getTransferAgent()

public TriggerAction.TransferAgent getTransferAgent()

Optional. Transfer the conversation to a different agent.

.google.cloud.ces.v1.TriggerAction.TransferAgent transfer_agent = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TriggerAction.TransferAgent

The transferAgent.

getTransferAgentOrBuilder()

public TriggerAction.TransferAgentOrBuilder getTransferAgentOrBuilder()

Optional. Transfer the conversation to a different agent.

.google.cloud.ces.v1.TriggerAction.TransferAgent transfer_agent = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TriggerAction.TransferAgentOrBuilder

hasGenerativeAnswer()

public boolean hasGenerativeAnswer()

Optional. Respond with a generative answer.

.google.cloud.ces.v1.TriggerAction.GenerativeAnswer generative_answer = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the generativeAnswer field is set.

hasRespondImmediately()

public boolean hasRespondImmediately()

Optional. Immediately respond with a preconfigured response.

.google.cloud.ces.v1.TriggerAction.RespondImmediately respond_immediately = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the respondImmediately field is set.

hasTransferAgent()

public boolean hasTransferAgent()

Optional. Transfer the conversation to a different agent.

.google.cloud.ces.v1.TriggerAction.TransferAgent transfer_agent = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the transferAgent field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(AbstractMessage.BuilderParent parent)

protected TriggerAction.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
TriggerAction.Builder
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

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