# Google Cloud Dialogflow V2 Client - Class SuggestionInput (2.4.0)

2.4.0 (latest) 2.3.1 2.2.1 2.1.2 2.0.1 1.17.2 1.16.0 1.15.1 1.14.0 1.13.0 1.12.3 1.11.0 1.10.2 1.9.0 1.8.0 1.7.2 1.6.0 1.5.0 1.4.0 1.3.2 1.2.0 1.1.1 1.0.1 Reference documentation and code samples for the Google Cloud Dialogflow V2 Client class SuggestionInput.

Represents the action to take for a tool call that requires confirmation.

Generated from protobuf message `google.cloud.dialogflow.v2.SuggestionInput`

## Namespace

Google \\ Cloud \\ Dialogflow \\ V2

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ answer_record` | `string` Required. Format: `projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record ID>` The answer record associated with the tool call. |
| `↳ parameters` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Struct` Optional. Parameters to be used for the tool call. If not provided, the tool will be called without any parameters. |
| `↳ action` | `int` Optional. The type of action to take with the tool. |
| `↳ send_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Optional. Time when the current suggest input is sent. For tool calls, this timestamp (along with the answer record) will be included in the corresponding tool call result so that it can be identified. |

### getAnswerRecord

Required. Format: `projects/<Project ID>/locations/<Location
ID>/answerRecords/<Answer Record ID>`
The answer record associated with the tool call.

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

### setAnswerRecord

Required. Format: `projects/<Project ID>/locations/<Location
ID>/answerRecords/<Answer Record ID>`
The answer record associated with the tool call.

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

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

### getParameters

Optional. Parameters to be used for the tool call. If not provided, the
tool will be called without any parameters.

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

### hasParameters

### clearParameters

### setParameters

Optional. Parameters to be used for the tool call. If not provided, the
tool will be called without any parameters.

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

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

### getAction

Optional. The type of action to take with the tool.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [Action](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.SuggestionInput.Action). |

### setAction

Optional. The type of action to take with the tool.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [Action](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.SuggestionInput.Action). |

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

### getSendTime

Optional. Time when the current suggest input is sent. For tool calls, this
timestamp (along with the answer record) will be included in the
corresponding tool call result so that it can be identified.

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

### hasSendTime

### clearSendTime

### setSendTime

Optional. Time when the current suggest input is sent. For tool calls, this
timestamp (along with the answer record) will be included in the
corresponding tool call result so that it can be identified.

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

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