# Google Cloud Dialogflow Cx V3 Client - Class ToolCall (0.11.1)

0.11.1 (latest) 0.11.0 0.10.2 0.9.2 0.8.1 0.7.2 0.6.0 0.5.2 0.4.1 0.3.4 0.2.1 0.1.1 Reference documentation and code samples for the Google Cloud Dialogflow Cx V3 Client class ToolCall.

Represents a call of a specific tool's action with the specified inputs.

Generated from protobuf message `google.cloud.dialogflow.cx.v3.ToolCall`

## Namespace

Google \\ Cloud \\ Dialogflow \\ Cx \\ V3

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ tool` | `string` Required. The [tool](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.Tool) associated with this call. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/tools/<ToolID>`. |
| `↳ action` | `string` Required. The name of the tool's action associated with this call. |
| `↳ input_parameters` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Struct` Optional. The action's input parameters. |

### getTool

Required. The [tool](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.Tool) associated with
this call. Format:
`projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/tools/<ToolID>`.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setTool

Required. The [tool](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.Tool) associated with
this call. Format:
`projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/tools/<ToolID>`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getAction

Required. The name of the tool's action associated with this call.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setAction

Required. The name of the tool's action associated with this call.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getInputParameters

Optional. The action's input parameters.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Struct|null` |   |

### hasInputParameters

### clearInputParameters

### setInputParameters

Optional. The action's input parameters.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Struct` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |