Class RemoteAgentTool.Builder (0.19.0)

public static final class RemoteAgentTool.Builder extends GeneratedMessage.Builder<RemoteAgentTool.Builder> implements RemoteAgentToolOrBuilder

Represents a tool that allows the agent to call another remote agent.

Protobuf type google.cloud.ces.v1.RemoteAgentTool

Static Methods

getDescriptor()

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

Methods

build()

public RemoteAgentTool build()
Returns
Type Description
RemoteAgentTool

buildPartial()

public RemoteAgentTool buildPartial()
Returns
Type Description
RemoteAgentTool

clear()

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

clearAgentCard()

public RemoteAgentTool.Builder clearAgentCard()

Required. The agent card of the remote agent that this tool invokes.

.google.cloud.ces.v1.AgentCard agent_card = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
RemoteAgentTool.Builder

clearApiAuthentication()

public RemoteAgentTool.Builder clearApiAuthentication()

Optional. Authentication configuration for calling the remote agent.

.google.cloud.ces.v1.ApiAuthentication api_authentication = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RemoteAgentTool.Builder

clearDescription()

public RemoteAgentTool.Builder clearDescription()

Required. The description of the tool.

string description = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
RemoteAgentTool.Builder

This builder for chaining.

clearInputVariableMapping()

public RemoteAgentTool.Builder clearInputVariableMapping()
Returns
Type Description
RemoteAgentTool.Builder

clearName()

public RemoteAgentTool.Builder clearName()

Required. The name of the tool.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
RemoteAgentTool.Builder

This builder for chaining.

clearOutputVariableMapping()

public RemoteAgentTool.Builder clearOutputVariableMapping()
Returns
Type Description
RemoteAgentTool.Builder

clearStatefulAgent()

public RemoteAgentTool.Builder clearStatefulAgent()

Optional. When enabled, the interaction between the CXAS app and the remote agent will share the same context. If the remote agent returns a context_id, it will be persisted for the entirety of the session for this remote agent tool.

bool stateful_agent = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RemoteAgentTool.Builder

This builder for chaining.

containsInputVariableMapping(String key)

public boolean containsInputVariableMapping(String key)

Optional. Mapping of input variable names of remote agent to GECX variable names.

map<string, string> input_variable_mapping = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
boolean

containsOutputVariableMapping(String key)

public boolean containsOutputVariableMapping(String key)

Optional. Mapping of output variable names of remote agent to GECX variable names.

map<string, string> output_variable_mapping = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
boolean

getAgentCard()

public AgentCard getAgentCard()

Required. The agent card of the remote agent that this tool invokes.

.google.cloud.ces.v1.AgentCard agent_card = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AgentCard

The agentCard.

getAgentCardBuilder()

public AgentCard.Builder getAgentCardBuilder()

Required. The agent card of the remote agent that this tool invokes.

.google.cloud.ces.v1.AgentCard agent_card = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AgentCard.Builder

getAgentCardOrBuilder()

public AgentCardOrBuilder getAgentCardOrBuilder()

Required. The agent card of the remote agent that this tool invokes.

.google.cloud.ces.v1.AgentCard agent_card = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AgentCardOrBuilder

getApiAuthentication()

public ApiAuthentication getApiAuthentication()

Optional. Authentication configuration for calling the remote agent.

.google.cloud.ces.v1.ApiAuthentication api_authentication = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ApiAuthentication

The apiAuthentication.

getApiAuthenticationBuilder()

public ApiAuthentication.Builder getApiAuthenticationBuilder()

Optional. Authentication configuration for calling the remote agent.

.google.cloud.ces.v1.ApiAuthentication api_authentication = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ApiAuthentication.Builder

getApiAuthenticationOrBuilder()

public ApiAuthenticationOrBuilder getApiAuthenticationOrBuilder()

Optional. Authentication configuration for calling the remote agent.

.google.cloud.ces.v1.ApiAuthentication api_authentication = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ApiAuthenticationOrBuilder

getDefaultInstanceForType()

public RemoteAgentTool getDefaultInstanceForType()
Returns
Type Description
RemoteAgentTool

getDescription()

public String getDescription()

Required. The description of the tool.

string description = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Required. The description of the tool.

string description = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

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

getInputVariableMapping() (deprecated)

public Map<String,String> getInputVariableMapping()
Returns
Type Description
Map<String,String>

getInputVariableMappingCount()

public int getInputVariableMappingCount()

Optional. Mapping of input variable names of remote agent to GECX variable names.

map<string, string> input_variable_mapping = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getInputVariableMappingMap()

public Map<String,String> getInputVariableMappingMap()

Optional. Mapping of input variable names of remote agent to GECX variable names.

map<string, string> input_variable_mapping = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Map<String,String>

getInputVariableMappingOrDefault(String key, String defaultValue)

public String getInputVariableMappingOrDefault(String key, String defaultValue)

Optional. Mapping of input variable names of remote agent to GECX variable names.

map<string, string> input_variable_mapping = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getInputVariableMappingOrThrow(String key)

public String getInputVariableMappingOrThrow(String key)

Optional. Mapping of input variable names of remote agent to GECX variable names.

map<string, string> input_variable_mapping = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
String

getMutableInputVariableMapping() (deprecated)

public Map<String,String> getMutableInputVariableMapping()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getMutableOutputVariableMapping() (deprecated)

public Map<String,String> getMutableOutputVariableMapping()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getName()

public String getName()

Required. The name of the tool.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The name of the tool.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for name.

getOutputVariableMapping() (deprecated)

public Map<String,String> getOutputVariableMapping()
Returns
Type Description
Map<String,String>

getOutputVariableMappingCount()

public int getOutputVariableMappingCount()

Optional. Mapping of output variable names of remote agent to GECX variable names.

map<string, string> output_variable_mapping = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getOutputVariableMappingMap()

public Map<String,String> getOutputVariableMappingMap()

Optional. Mapping of output variable names of remote agent to GECX variable names.

map<string, string> output_variable_mapping = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Map<String,String>

getOutputVariableMappingOrDefault(String key, String defaultValue)

public String getOutputVariableMappingOrDefault(String key, String defaultValue)

Optional. Mapping of output variable names of remote agent to GECX variable names.

map<string, string> output_variable_mapping = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getOutputVariableMappingOrThrow(String key)

public String getOutputVariableMappingOrThrow(String key)

Optional. Mapping of output variable names of remote agent to GECX variable names.

map<string, string> output_variable_mapping = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
String

getStatefulAgent()

public boolean getStatefulAgent()

Optional. When enabled, the interaction between the CXAS app and the remote agent will share the same context. If the remote agent returns a context_id, it will be persisted for the entirety of the session for this remote agent tool.

bool stateful_agent = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The statefulAgent.

hasAgentCard()

public boolean hasAgentCard()

Required. The agent card of the remote agent that this tool invokes.

.google.cloud.ces.v1.AgentCard agent_card = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the agentCard field is set.

hasApiAuthentication()

public boolean hasApiAuthentication()

Optional. Authentication configuration for calling the remote agent.

.google.cloud.ces.v1.ApiAuthentication api_authentication = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the apiAuthentication field is set.

internalGetFieldAccessorTable()

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

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAgentCard(AgentCard value)

public RemoteAgentTool.Builder mergeAgentCard(AgentCard value)

Required. The agent card of the remote agent that this tool invokes.

.google.cloud.ces.v1.AgentCard agent_card = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value AgentCard
Returns
Type Description
RemoteAgentTool.Builder

mergeApiAuthentication(ApiAuthentication value)

public RemoteAgentTool.Builder mergeApiAuthentication(ApiAuthentication value)

Optional. Authentication configuration for calling the remote agent.

.google.cloud.ces.v1.ApiAuthentication api_authentication = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ApiAuthentication
Returns
Type Description
RemoteAgentTool.Builder

mergeFrom(RemoteAgentTool other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

putAllInputVariableMapping(Map<String,String> values)

public RemoteAgentTool.Builder putAllInputVariableMapping(Map<String,String> values)

Optional. Mapping of input variable names of remote agent to GECX variable names.

map<string, string> input_variable_mapping = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Map<String,String>
Returns
Type Description
RemoteAgentTool.Builder

putAllOutputVariableMapping(Map<String,String> values)

public RemoteAgentTool.Builder putAllOutputVariableMapping(Map<String,String> values)

Optional. Mapping of output variable names of remote agent to GECX variable names.

map<string, string> output_variable_mapping = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Map<String,String>
Returns
Type Description
RemoteAgentTool.Builder

putInputVariableMapping(String key, String value)

public RemoteAgentTool.Builder putInputVariableMapping(String key, String value)

Optional. Mapping of input variable names of remote agent to GECX variable names.

map<string, string> input_variable_mapping = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
value String
Returns
Type Description
RemoteAgentTool.Builder

putOutputVariableMapping(String key, String value)

public RemoteAgentTool.Builder putOutputVariableMapping(String key, String value)

Optional. Mapping of output variable names of remote agent to GECX variable names.

map<string, string> output_variable_mapping = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
value String
Returns
Type Description
RemoteAgentTool.Builder

removeInputVariableMapping(String key)

public RemoteAgentTool.Builder removeInputVariableMapping(String key)

Optional. Mapping of input variable names of remote agent to GECX variable names.

map<string, string> input_variable_mapping = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
RemoteAgentTool.Builder

removeOutputVariableMapping(String key)

public RemoteAgentTool.Builder removeOutputVariableMapping(String key)

Optional. Mapping of output variable names of remote agent to GECX variable names.

map<string, string> output_variable_mapping = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
RemoteAgentTool.Builder

setAgentCard(AgentCard value)

public RemoteAgentTool.Builder setAgentCard(AgentCard value)

Required. The agent card of the remote agent that this tool invokes.

.google.cloud.ces.v1.AgentCard agent_card = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value AgentCard
Returns
Type Description
RemoteAgentTool.Builder

setAgentCard(AgentCard.Builder builderForValue)

public RemoteAgentTool.Builder setAgentCard(AgentCard.Builder builderForValue)

Required. The agent card of the remote agent that this tool invokes.

.google.cloud.ces.v1.AgentCard agent_card = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue AgentCard.Builder
Returns
Type Description
RemoteAgentTool.Builder

setApiAuthentication(ApiAuthentication value)

public RemoteAgentTool.Builder setApiAuthentication(ApiAuthentication value)

Optional. Authentication configuration for calling the remote agent.

.google.cloud.ces.v1.ApiAuthentication api_authentication = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ApiAuthentication
Returns
Type Description
RemoteAgentTool.Builder

setApiAuthentication(ApiAuthentication.Builder builderForValue)

public RemoteAgentTool.Builder setApiAuthentication(ApiAuthentication.Builder builderForValue)

Optional. Authentication configuration for calling the remote agent.

.google.cloud.ces.v1.ApiAuthentication api_authentication = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue ApiAuthentication.Builder
Returns
Type Description
RemoteAgentTool.Builder

setDescription(String value)

public RemoteAgentTool.Builder setDescription(String value)

Required. The description of the tool.

string description = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The description to set.

Returns
Type Description
RemoteAgentTool.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public RemoteAgentTool.Builder setDescriptionBytes(ByteString value)

Required. The description of the tool.

string description = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
RemoteAgentTool.Builder

This builder for chaining.

setName(String value)

public RemoteAgentTool.Builder setName(String value)

Required. The name of the tool.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
RemoteAgentTool.Builder

This builder for chaining.

setNameBytes(ByteString value)

public RemoteAgentTool.Builder setNameBytes(ByteString value)

Required. The name of the tool.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
RemoteAgentTool.Builder

This builder for chaining.

setStatefulAgent(boolean value)

public RemoteAgentTool.Builder setStatefulAgent(boolean value)

Optional. When enabled, the interaction between the CXAS app and the remote agent will share the same context. If the remote agent returns a context_id, it will be persisted for the entirety of the session for this remote agent tool.

bool stateful_agent = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The statefulAgent to set.

Returns
Type Description
RemoteAgentTool.Builder

This builder for chaining.