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

Represents the query input. It can contain one of:

1. A conversational query in the form of text.

2. An intent query that specifies which intent to trigger.

3. Natural language speech audio to be processed.
4. An event to be triggered.
5. DTMF digits to invoke an intent and fill in parameter value.
6. The results of a tool executed by the client.

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

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ text` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.TextInput` The natural language text to be processed. |
| `↳ intent` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.IntentInput` The intent to be triggered. |
| `↳ audio` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.AudioInput` The natural language speech audio to be processed. |
| `↳ event` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.EventInput` The event to be triggered. |
| `↳ dtmf` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.DtmfInput` The DTMF event to be handled. |
| `↳ tool_call_result` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.ToolCallResult` The results of a tool executed by the client. |
| `↳ language_code` | `string` Required. The language of the input. See [Language Support](https://cloud.google.com/dialogflow/cx/docs/reference/language) for a list of the currently supported language codes. Note that queries in the same session do not necessarily need to specify the same language. |

### getText

The natural language text to be processed.

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

### hasText

### setText

The natural language text to be processed.

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

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

### getIntent

The intent to be triggered.

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

### hasIntent

### setIntent

The intent to be triggered.

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

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

### getAudio

The natural language speech audio to be processed.

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

### hasAudio

### setAudio

The natural language speech audio to be processed.

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

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

### getEvent

The event to be triggered.

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

### hasEvent

### setEvent

The event to be triggered.

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

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

### getDtmf

The DTMF event to be handled.

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

### hasDtmf

### setDtmf

The DTMF event to be handled.

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

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

### getToolCallResult

The results of a tool executed by the client.

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

### hasToolCallResult

### setToolCallResult

The results of a tool executed by the client.

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

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

### getLanguageCode

Required. The language of the input. See [Language
Support](https://cloud.google.com/dialogflow/cx/docs/reference/language)
for a list of the currently supported language codes. Note that queries in
the same session do not necessarily need to specify the same language.

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

### setLanguageCode

Required. The language of the input. See [Language
Support](https://cloud.google.com/dialogflow/cx/docs/reference/language)
for a list of the currently supported language codes. Note that queries in
the same session do not necessarily need to specify the same language.

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

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

### getInput

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