# Interface ToolCallOrBuilder (0.9.0)

0.9.0 (latest) 0.7.0 0.4.0 0.3.0 0.1.0

    public interface ToolCallOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getArgs()

    public abstract Struct getArgs()

Optional. The input parameters and values for the tool in JSON object
format.

`.google.protobuf.Struct args = 3 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Struct.html` | The args. |

### getArgsOrBuilder()

    public abstract StructOrBuilder getArgsOrBuilder()

Optional. The input parameters and values for the tool in JSON object
format.

`.google.protobuf.Struct args = 3 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.StructOrBuilder.html` |   |

### getDisplayName()

    public abstract String getDisplayName()

Output only. Display name of the tool.

`string display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];`

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

### getDisplayNameBytes()

    public abstract ByteString getDisplayNameBytes()

Output only. Display name of the tool.

`string display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];`

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

### getId()

    public abstract String getId()

Optional. The unique identifier of the tool call. If populated, the client
should return the execution result with the matching ID in
ToolResponse.

`string id = 1 [(.google.api.field_behavior) = OPTIONAL];`

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

### getIdBytes()

    public abstract ByteString getIdBytes()

Optional. The unique identifier of the tool call. If populated, the client
should return the execution result with the matching ID in
ToolResponse.

`string id = 1 [(.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 id. |

### getTool()

    public abstract String getTool()

Optional. The name of the tool to execute.
Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`

`
string tool = 2 [(.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 tool. |

### getToolBytes()

    public abstract ByteString getToolBytes()

Optional. The name of the tool to execute.
Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`

`
string tool = 2 [(.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 tool. |

### getToolIdentifierCase()

    public abstract ToolCall.ToolIdentifierCase getToolIdentifierCase()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1beta.ToolCall.ToolIdentifierCase` |   |

### getToolsetTool()

    public abstract ToolsetTool getToolsetTool()

Optional. The toolset tool to execute.

`
.google.cloud.ces.v1beta.ToolsetTool toolset_tool = 5 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1beta.ToolsetTool` | The toolsetTool. |

### getToolsetToolOrBuilder()

    public abstract ToolsetToolOrBuilder getToolsetToolOrBuilder()

Optional. The toolset tool to execute.

`
.google.cloud.ces.v1beta.ToolsetTool toolset_tool = 5 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1beta.ToolsetToolOrBuilder` |   |

### hasArgs()

    public abstract boolean hasArgs()

Optional. The input parameters and values for the tool in JSON object
format.

`.google.protobuf.Struct args = 3 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the args field is set. |

### hasTool()

    public abstract boolean hasTool()

Optional. The name of the tool to execute.
Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`

`
string tool = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the tool field is set. |

### hasToolsetTool()

    public abstract boolean hasToolsetTool()

Optional. The toolset tool to execute.

`
.google.cloud.ces.v1beta.ToolsetTool toolset_tool = 5 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the toolsetTool field is set. |