# Google Cloud Dialogflow Cx V3 Client - Class UserInput (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 UserInput.

The input from the human user.

Generated from protobuf message `google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput`

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ input` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.QueryInput` Supports [text input](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.QueryInput#_Google_Cloud_Dialogflow_Cx_V3_QueryInput__getText__), [event input](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.QueryInput#_Google_Cloud_Dialogflow_Cx_V3_QueryInput__getEvent__), [dtmf input](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.QueryInput#_Google_Cloud_Dialogflow_Cx_V3_QueryInput__getDtmf__) in the test case. |
| `↳ injected_parameters` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Struct` Parameters that need to be injected into the conversation during intent detection. |
| `↳ is_webhook_enabled` | `bool` If webhooks should be allowed to trigger in response to the user utterance. Often if parameters are injected, webhooks should not be enabled. |
| `↳ enable_sentiment_analysis` | `bool` Whether sentiment analysis is enabled. |

### getInput

Supports [text input](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.QueryInput#_Google_Cloud_Dialogflow_Cx_V3_QueryInput__getText__),
[event input](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.QueryInput#_Google_Cloud_Dialogflow_Cx_V3_QueryInput__getEvent__), [dtmf
input](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.QueryInput#_Google_Cloud_Dialogflow_Cx_V3_QueryInput__getDtmf__) in the test case.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.QueryInput|null` |   |

### hasInput

### clearInput

### setInput

Supports [text input](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.QueryInput#_Google_Cloud_Dialogflow_Cx_V3_QueryInput__getText__),
[event input](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.QueryInput#_Google_Cloud_Dialogflow_Cx_V3_QueryInput__getEvent__), [dtmf
input](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.QueryInput#_Google_Cloud_Dialogflow_Cx_V3_QueryInput__getDtmf__) in the test case.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.QueryInput` |

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

### getInjectedParameters

Parameters that need to be injected into the conversation during intent
detection.

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

### hasInjectedParameters

### clearInjectedParameters

### setInjectedParameters

Parameters that need to be injected into the conversation during intent
detection.

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

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

### getIsWebhookEnabled

If webhooks should be allowed to trigger in response to the user
utterance. Often if parameters are injected, webhooks should not be
enabled.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setIsWebhookEnabled

If webhooks should be allowed to trigger in response to the user
utterance. Often if parameters are injected, webhooks should not be
enabled.

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

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

### getEnableSentimentAnalysis

Whether sentiment analysis is enabled.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setEnableSentimentAnalysis

Whether sentiment analysis is enabled.

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

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