Class Action.Builder (0.52.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Action.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Action.Builder
Overrides

build()

public Action build()
Returns
TypeDescription
Action

buildPartial()

public Action buildPartial()
Returns
TypeDescription
Action

clear()

public Action.Builder clear()
Returns
TypeDescription
Action.Builder
Overrides

clearAction()

public Action.Builder clearAction()
Returns
TypeDescription
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
TypeDescription
Action.Builder

clearField(Descriptors.FieldDescriptor field)

public Action.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
Action.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public Action.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
Action.Builder

clone()

public Action.Builder clone()
Returns
TypeDescription
Action.Builder
Overrides

getActionCase()

public Action.ActionCase getActionCase()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
AgentUtteranceOrBuilder

getDefaultInstanceForType()

public Action getDefaultInstanceForType()
Returns
TypeDescription
Action

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the userUtterance field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueAgentUtterance
Returns
TypeDescription
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
NameDescription
valueFlowInvocation
Returns
TypeDescription
Action.Builder

mergeFrom(Action other)

public Action.Builder mergeFrom(Action other)
Parameter
NameDescription
otherAction
Returns
TypeDescription
Action.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Action.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Action.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Action.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valuePlaybookInvocation
Returns
TypeDescription
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
NameDescription
valueToolUse
Returns
TypeDescription
Action.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Action.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueUserUtterance
Returns
TypeDescription
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
NameDescription
valueAgentUtterance
Returns
TypeDescription
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
NameDescription
builderForValueAgentUtterance.Builder
Returns
TypeDescription
Action.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Action.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueFlowInvocation
Returns
TypeDescription
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
NameDescription
builderForValueFlowInvocation.Builder
Returns
TypeDescription
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
NameDescription
valuePlaybookInvocation
Returns
TypeDescription
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
NameDescription
builderForValuePlaybookInvocation.Builder
Returns
TypeDescription
Action.Builder

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

public Action.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueToolUse
Returns
TypeDescription
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
NameDescription
builderForValueToolUse.Builder
Returns
TypeDescription
Action.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final Action.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueUserUtterance
Returns
TypeDescription
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
NameDescription
builderForValueUserUtterance.Builder
Returns
TypeDescription
Action.Builder