Class RemoteAgentTool (0.19.0)

public final class RemoteAgentTool extends GeneratedMessage implements RemoteAgentToolOrBuilder

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

Protobuf type google.cloud.ces.v1beta.RemoteAgentTool

Static Fields

AGENT_CARD_FIELD_NUMBER

public static final int AGENT_CARD_FIELD_NUMBER
Field Value
Type Description
int

API_AUTHENTICATION_FIELD_NUMBER

public static final int API_AUTHENTICATION_FIELD_NUMBER
Field Value
Type Description
int

DESCRIPTION_FIELD_NUMBER

public static final int DESCRIPTION_FIELD_NUMBER
Field Value
Type Description
int

INPUT_VARIABLE_MAPPING_FIELD_NUMBER

public static final int INPUT_VARIABLE_MAPPING_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

OUTPUT_VARIABLE_MAPPING_FIELD_NUMBER

public static final int OUTPUT_VARIABLE_MAPPING_FIELD_NUMBER
Field Value
Type Description
int

STATEFUL_AGENT_FIELD_NUMBER

public static final int STATEFUL_AGENT_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static RemoteAgentTool getDefaultInstance()
Returns
Type Description
RemoteAgentTool

getDescriptor()

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

newBuilder()

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

newBuilder(RemoteAgentTool prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

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

equals(Object obj)

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

getAgentCard()

public AgentCard getAgentCard()

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

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

Returns
Type Description
AgentCard

The agentCard.

getAgentCardOrBuilder()

public AgentCardOrBuilder getAgentCardOrBuilder()

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

.google.cloud.ces.v1beta.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.v1beta.ApiAuthentication api_authentication = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ApiAuthentication

The apiAuthentication.

getApiAuthenticationOrBuilder()

public ApiAuthenticationOrBuilder getApiAuthenticationOrBuilder()

Optional. Authentication configuration for calling the remote agent.

.google.cloud.ces.v1beta.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.

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

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

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.v1beta.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.v1beta.ApiAuthentication api_authentication = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the apiAuthentication field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

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.internalGetMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(AbstractMessage.BuilderParent parent)

protected RemoteAgentTool.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
RemoteAgentTool.Builder
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

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