# Interface AgentToolOrBuilder (0.9.0)

0.9.0 (latest) 0.7.0 0.4.0 0.3.0 0.1.0

    public interface AgentToolOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### getAgent()

    public abstract String getAgent()

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

`
string agent = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The agent. |

### getAgentBytes()

    public abstract ByteString getAgentBytes()

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

`
string agent = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for agent. |

### getDescription()

    public abstract String getDescription()

Optional. Description of the tool's purpose.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The description. |

### getDescriptionBytes()

    public abstract ByteString getDescriptionBytes()

Optional. Description of the tool's purpose.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for description. |

### getName()

    public abstract String getName()

Required. The name of the agent tool.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The name. |

### getNameBytes()

    public abstract ByteString getNameBytes()

Required. The name of the agent tool.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for name. |

### getRootAgent() (deprecated)

    public abstract String getRootAgent()

**Deprecated.** *google.cloud.ces.v1beta.AgentTool.root_agent is deprecated. See
google/cloud/ces/v1beta/agent_tool.proto;l=37*

Optional. Deprecated: Use `agent` instead.
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 [deprecated = true, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The rootAgent. |

### getRootAgentBytes() (deprecated)

    public abstract ByteString getRootAgentBytes()

**Deprecated.** *google.cloud.ces.v1beta.AgentTool.root_agent is deprecated. See
google/cloud/ces/v1beta/agent_tool.proto;l=37*

Optional. Deprecated: Use `agent` instead.
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 [deprecated = true, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for rootAgent. |