Class Action (0.46.0)

public final class Action extends GeneratedMessageV3 implements ActionOrBuilder

Action performed by end user or Dialogflow agent in the conversation.

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

Implements

ActionOrBuilder

Static Fields

AGENT_UTTERANCE_FIELD_NUMBER

public static final int AGENT_UTTERANCE_FIELD_NUMBER
Field Value
Type Description
int

FLOW_INVOCATION_FIELD_NUMBER

public static final int FLOW_INVOCATION_FIELD_NUMBER
Field Value
Type Description
int

PLAYBOOK_INVOCATION_FIELD_NUMBER

public static final int PLAYBOOK_INVOCATION_FIELD_NUMBER
Field Value
Type Description
int

TOOL_USE_FIELD_NUMBER

public static final int TOOL_USE_FIELD_NUMBER
Field Value
Type Description
int

USER_UTTERANCE_FIELD_NUMBER

public static final int USER_UTTERANCE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Action getDefaultInstance()
Returns
Type Description
Action

getDescriptor()

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

newBuilder()

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

newBuilder(Action prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getActionCase()

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

getAgentUtterance()

public AgentUtterance getAgentUtterance()

Optional. Action performed by the agent as a message.

.google.cloud.dialogflow.cx.v3beta1.AgentUtterance agent_utterance = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AgentUtterance

The agentUtterance.

getAgentUtteranceOrBuilder()

public AgentUtteranceOrBuilder getAgentUtteranceOrBuilder()

Optional. Action performed by the agent as a message.

.google.cloud.dialogflow.cx.v3beta1.AgentUtterance agent_utterance = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AgentUtteranceOrBuilder

getDefaultInstanceForType()

public Action getDefaultInstanceForType()
Returns
Type Description
Action

getFlowInvocation()

public FlowInvocation getFlowInvocation()

Optional. Action performed on behalf of the agent by invoking a CX flow.

.google.cloud.dialogflow.cx.v3beta1.FlowInvocation flow_invocation = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
FlowInvocation

The flowInvocation.

getFlowInvocationOrBuilder()

public FlowInvocationOrBuilder getFlowInvocationOrBuilder()

Optional. Action performed on behalf of the agent by invoking a CX flow.

.google.cloud.dialogflow.cx.v3beta1.FlowInvocation flow_invocation = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
FlowInvocationOrBuilder

getParserForType()

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

getPlaybookInvocation()

public PlaybookInvocation getPlaybookInvocation()

Optional. Action performed on behalf of the agent by invoking a child playbook.

.google.cloud.dialogflow.cx.v3beta1.PlaybookInvocation playbook_invocation = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PlaybookInvocation

The playbookInvocation.

getPlaybookInvocationOrBuilder()

public PlaybookInvocationOrBuilder getPlaybookInvocationOrBuilder()

Optional. Action performed on behalf of the agent by invoking a child playbook.

.google.cloud.dialogflow.cx.v3beta1.PlaybookInvocation playbook_invocation = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PlaybookInvocationOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getToolUse()

public ToolUse getToolUse()

Optional. Action performed on behalf of the agent by calling a plugin tool.

.google.cloud.dialogflow.cx.v3beta1.ToolUse tool_use = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ToolUse

The toolUse.

getToolUseOrBuilder()

public ToolUseOrBuilder getToolUseOrBuilder()

Optional. Action performed on behalf of the agent by calling a plugin tool.

.google.cloud.dialogflow.cx.v3beta1.ToolUse tool_use = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ToolUseOrBuilder

getUserUtterance()

public UserUtterance getUserUtterance()

Optional. Agent obtained a message from the customer.

.google.cloud.dialogflow.cx.v3beta1.UserUtterance user_utterance = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
UserUtterance

The userUtterance.

getUserUtteranceOrBuilder()

public UserUtteranceOrBuilder getUserUtteranceOrBuilder()

Optional. Agent obtained a message from the customer.

.google.cloud.dialogflow.cx.v3beta1.UserUtterance user_utterance = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
UserUtteranceOrBuilder

hasAgentUtterance()

public boolean hasAgentUtterance()

Optional. Action performed by the agent as a message.

.google.cloud.dialogflow.cx.v3beta1.AgentUtterance agent_utterance = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the agentUtterance field is set.

hasFlowInvocation()

public boolean hasFlowInvocation()

Optional. Action performed on behalf of the agent by invoking a CX flow.

.google.cloud.dialogflow.cx.v3beta1.FlowInvocation flow_invocation = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the flowInvocation field is set.

hasPlaybookInvocation()

public boolean hasPlaybookInvocation()

Optional. Action performed on behalf of the agent by invoking a child playbook.

.google.cloud.dialogflow.cx.v3beta1.PlaybookInvocation playbook_invocation = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the playbookInvocation field is set.

hasToolUse()

public boolean hasToolUse()

Optional. Action performed on behalf of the agent by calling a plugin tool.

.google.cloud.dialogflow.cx.v3beta1.ToolUse tool_use = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the toolUse field is set.

hasUserUtterance()

public boolean hasUserUtterance()

Optional. Agent obtained a message from the customer.

.google.cloud.dialogflow.cx.v3beta1.UserUtterance user_utterance = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the userUtterance 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 Action.Builder newBuilderForType()
Returns
Type Description
Action.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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