Class Action.Builder (0.65.0)

public static final class Action.Builder extends GeneratedMessageV3.Builder<Action.Builder> implements ActionOrBuilder

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

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

Implements

ActionOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Action.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Action.Builder
Overrides

build()

public Action build()
Returns
Type Description
Action

buildPartial()

public Action buildPartial()
Returns
Type Description
Action

clear()

public Action.Builder clear()
Returns
Type Description
Action.Builder
Overrides

clearAction()

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

clearAgentUtterance()

public Action.Builder clearAgentUtterance()

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
Action.Builder

clearField(Descriptors.FieldDescriptor field)

public Action.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Action.Builder
Overrides

clearFlowInvocation()

public Action.Builder clearFlowInvocation()

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
Action.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public Action.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Action.Builder
Overrides

clearPlaybookInvocation()

public Action.Builder clearPlaybookInvocation()

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
Action.Builder

clearToolUse()

public Action.Builder clearToolUse()

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
Action.Builder

clearUserUtterance()

public Action.Builder clearUserUtterance()

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
Action.Builder

clone()

public Action.Builder clone()
Returns
Type Description
Action.Builder
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.

getAgentUtteranceBuilder()

public AgentUtterance.Builder getAgentUtteranceBuilder()

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.Builder

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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.

getFlowInvocationBuilder()

public FlowInvocation.Builder getFlowInvocationBuilder()

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.Builder

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

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.

getPlaybookInvocationBuilder()

public PlaybookInvocation.Builder getPlaybookInvocationBuilder()

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.Builder

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

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.

getToolUseBuilder()

public ToolUse.Builder getToolUseBuilder()

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.Builder

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.

getUserUtteranceBuilder()

public UserUtterance.Builder getUserUtteranceBuilder()

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.Builder

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAgentUtterance(AgentUtterance value)

public Action.Builder mergeAgentUtterance(AgentUtterance value)

Optional. Action performed by the agent as a message.

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

Parameter
Name Description
value AgentUtterance
Returns
Type Description
Action.Builder

mergeFlowInvocation(FlowInvocation value)

public Action.Builder mergeFlowInvocation(FlowInvocation value)

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];

Parameter
Name Description
value FlowInvocation
Returns
Type Description
Action.Builder

mergeFrom(Action other)

public Action.Builder mergeFrom(Action other)
Parameter
Name Description
other Action
Returns
Type Description
Action.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Action.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Action.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Action.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Action.Builder
Overrides

mergePlaybookInvocation(PlaybookInvocation value)

public Action.Builder mergePlaybookInvocation(PlaybookInvocation value)

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];

Parameter
Name Description
value PlaybookInvocation
Returns
Type Description
Action.Builder

mergeToolUse(ToolUse value)

public Action.Builder mergeToolUse(ToolUse value)

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];

Parameter
Name Description
value ToolUse
Returns
Type Description
Action.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Action.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Action.Builder
Overrides

mergeUserUtterance(UserUtterance value)

public Action.Builder mergeUserUtterance(UserUtterance value)

Optional. Agent obtained a message from the customer.

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

Parameter
Name Description
value UserUtterance
Returns
Type Description
Action.Builder

setAgentUtterance(AgentUtterance value)

public Action.Builder setAgentUtterance(AgentUtterance value)

Optional. Action performed by the agent as a message.

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

Parameter
Name Description
value AgentUtterance
Returns
Type Description
Action.Builder

setAgentUtterance(AgentUtterance.Builder builderForValue)

public Action.Builder setAgentUtterance(AgentUtterance.Builder builderForValue)

Optional. Action performed by the agent as a message.

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

Parameter
Name Description
builderForValue AgentUtterance.Builder
Returns
Type Description
Action.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Action.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Action.Builder
Overrides

setFlowInvocation(FlowInvocation value)

public Action.Builder setFlowInvocation(FlowInvocation value)

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];

Parameter
Name Description
value FlowInvocation
Returns
Type Description
Action.Builder

setFlowInvocation(FlowInvocation.Builder builderForValue)

public Action.Builder setFlowInvocation(FlowInvocation.Builder builderForValue)

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];

Parameter
Name Description
builderForValue FlowInvocation.Builder
Returns
Type Description
Action.Builder

setPlaybookInvocation(PlaybookInvocation value)

public Action.Builder setPlaybookInvocation(PlaybookInvocation value)

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];

Parameter
Name Description
value PlaybookInvocation
Returns
Type Description
Action.Builder

setPlaybookInvocation(PlaybookInvocation.Builder builderForValue)

public Action.Builder setPlaybookInvocation(PlaybookInvocation.Builder builderForValue)

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];

Parameter
Name Description
builderForValue PlaybookInvocation.Builder
Returns
Type Description
Action.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Action.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Action.Builder
Overrides

setToolUse(ToolUse value)

public Action.Builder setToolUse(ToolUse value)

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];

Parameter
Name Description
value ToolUse
Returns
Type Description
Action.Builder

setToolUse(ToolUse.Builder builderForValue)

public Action.Builder setToolUse(ToolUse.Builder builderForValue)

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];

Parameter
Name Description
builderForValue ToolUse.Builder
Returns
Type Description
Action.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final Action.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Action.Builder
Overrides

setUserUtterance(UserUtterance value)

public Action.Builder setUserUtterance(UserUtterance value)

Optional. Agent obtained a message from the customer.

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

Parameter
Name Description
value UserUtterance
Returns
Type Description
Action.Builder

setUserUtterance(UserUtterance.Builder builderForValue)

public Action.Builder setUserUtterance(UserUtterance.Builder builderForValue)

Optional. Agent obtained a message from the customer.

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

Parameter
Name Description
builderForValue UserUtterance.Builder
Returns
Type Description
Action.Builder