Class TriggerAction.TransferAgent.Builder (0.1.0)

public static final class TriggerAction.TransferAgent.Builder extends GeneratedMessage.Builder<TriggerAction.TransferAgent.Builder> implements TriggerAction.TransferAgentOrBuilder

The agent will transfer the conversation to a different agent.

Protobuf type google.cloud.ces.v1.TriggerAction.TransferAgent

Static Methods

getDescriptor()

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

Methods

build()

public TriggerAction.TransferAgent build()
Returns
Type Description
TriggerAction.TransferAgent

buildPartial()

public TriggerAction.TransferAgent buildPartial()
Returns
Type Description
TriggerAction.TransferAgent

clear()

public TriggerAction.TransferAgent.Builder clear()
Returns
Type Description
TriggerAction.TransferAgent.Builder
Overrides

clearAgent()

public TriggerAction.TransferAgent.Builder clearAgent()

Required. The name of the agent to transfer the conversation to. The agent must be in the same app as the current agent. Format: projects/{project}/locations/{location}/apps/{app}/agents/{agent}

string agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
TriggerAction.TransferAgent.Builder

This builder for chaining.

getAgent()

public String getAgent()

Required. The name of the agent to transfer the conversation to. The agent must be in the same app as the current agent. Format: projects/{project}/locations/{location}/apps/{app}/agents/{agent}

string agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The agent.

getAgentBytes()

public ByteString getAgentBytes()

Required. The name of the agent to transfer the conversation to. The agent must be in the same app as the current agent. Format: projects/{project}/locations/{location}/apps/{app}/agents/{agent}

string agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for agent.

getDefaultInstanceForType()

public TriggerAction.TransferAgent getDefaultInstanceForType()
Returns
Type Description
TriggerAction.TransferAgent

getDescriptorForType()

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(TriggerAction.TransferAgent other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setAgent(String value)

public TriggerAction.TransferAgent.Builder setAgent(String value)

Required. The name of the agent to transfer the conversation to. The agent must be in the same app as the current agent. Format: projects/{project}/locations/{location}/apps/{app}/agents/{agent}

string agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The agent to set.

Returns
Type Description
TriggerAction.TransferAgent.Builder

This builder for chaining.

setAgentBytes(ByteString value)

public TriggerAction.TransferAgent.Builder setAgentBytes(ByteString value)

Required. The name of the agent to transfer the conversation to. The agent must be in the same app as the current agent. Format: projects/{project}/locations/{location}/apps/{app}/agents/{agent}

string agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for agent to set.

Returns
Type Description
TriggerAction.TransferAgent.Builder

This builder for chaining.