Class RemoteAgentTool.Builder (0.9.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.v1beta.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.v1beta.AgentCard agent_card = 3 [(.google.api.field_behavior) = REQUIRED];

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.

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.

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.

getAgentCardBuilder()

public AgentCard.Builder getAgentCardBuilder()

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

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

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

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.

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.

internalGetFieldAccessorTable()

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

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.v1beta.AgentCard agent_card = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value AgentCard
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

setAgentCard(AgentCard value)

public RemoteAgentTool.Builder setAgentCard(AgentCard value)

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

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.v1beta.AgentCard agent_card = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue AgentCard.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.