Class AgentTool.Builder (0.3.0)

public static final class AgentTool.Builder extends GeneratedMessage.Builder<AgentTool.Builder> implements AgentToolOrBuilder

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

Protobuf type google.cloud.ces.v1beta.AgentTool

Implements

AgentToolOrBuilder

Static Methods

getDescriptor()

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

Methods

build()

public AgentTool build()
Returns
Type Description
AgentTool

buildPartial()

public AgentTool buildPartial()
Returns
Type Description
AgentTool

clear()

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

clearDescription()

public AgentTool.Builder clearDescription()

Optional. Description of the tool's purpose.

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

Returns
Type Description
AgentTool.Builder

This builder for chaining.

clearName()

public AgentTool.Builder clearName()

Required. The name of the agent tool.

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

Returns
Type Description
AgentTool.Builder

This builder for chaining.

clearRootAgent()

public AgentTool.Builder clearRootAgent()

Optional. The resource name of the root agent that is the entry point of the tool. Format: projects/{project}/locations/{location}/agents/{agent}

string root_agent = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
AgentTool.Builder

This builder for chaining.

getDefaultInstanceForType()

public AgentTool getDefaultInstanceForType()
Returns
Type Description
AgentTool

getDescription()

public String getDescription()

Optional. Description of the tool's purpose.

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

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Optional. Description of the tool's purpose.

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

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 agent tool.

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The name of the agent tool.

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

Returns
Type Description
ByteString

The bytes for name.

getRootAgent()

public String getRootAgent()

Optional. The resource name of the root agent that is the entry point of the tool. Format: projects/{project}/locations/{location}/agents/{agent}

string root_agent = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The rootAgent.

getRootAgentBytes()

public ByteString getRootAgentBytes()

Optional. The resource name of the root agent that is the entry point of the tool. Format: projects/{project}/locations/{location}/agents/{agent}

string root_agent = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for rootAgent.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AgentTool other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setDescription(String value)

public AgentTool.Builder setDescription(String value)

Optional. Description of the tool's purpose.

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

Parameter
Name Description
value String

The description to set.

Returns
Type Description
AgentTool.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public AgentTool.Builder setDescriptionBytes(ByteString value)

Optional. Description of the tool's purpose.

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

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
AgentTool.Builder

This builder for chaining.

setName(String value)

public AgentTool.Builder setName(String value)

Required. The name of the agent tool.

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
AgentTool.Builder

This builder for chaining.

setNameBytes(ByteString value)

public AgentTool.Builder setNameBytes(ByteString value)

Required. The name of the agent tool.

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
AgentTool.Builder

This builder for chaining.

setRootAgent(String value)

public AgentTool.Builder setRootAgent(String value)

Optional. The resource name of the root agent that is the entry point of the tool. Format: projects/{project}/locations/{location}/agents/{agent}

string root_agent = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The rootAgent to set.

Returns
Type Description
AgentTool.Builder

This builder for chaining.

setRootAgentBytes(ByteString value)

public AgentTool.Builder setRootAgentBytes(ByteString value)

Optional. The resource name of the root agent that is the entry point of the tool. Format: projects/{project}/locations/{location}/agents/{agent}

string root_agent = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for rootAgent to set.

Returns
Type Description
AgentTool.Builder

This builder for chaining.