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

The top-level message returned from the
[StreamingDetectIntent](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.Client.SessionsClient#_Google_Cloud_Dialogflow_Cx_V3_Client_SessionsClient__streamingDetectIntent__)
method.

Multiple response messages can be returned in order:

- If the `StreamingDetectIntentRequest.query_input.audio` field was set, the first M messages contain `recognition_result`. Each `recognition_result` represents a more complete transcript of what the user said. The last `recognition_result` has `is_final` set to `true`.
- If the `StreamingDetectIntentRequest.enable_partial_response` field was true, the `detect_intent_response` field is populated for each of the following N responses, where 0 \<= N \<= 5. These responses set the [DetectIntentResponse.response_type](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.DetectIntentResponse#_Google_Cloud_Dialogflow_Cx_V3_DetectIntentResponse__getResponseType__) field to `PARTIAL`. For the last response message, the `detect_intent_response` is fully populated, and [DetectIntentResponse.response_type](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.DetectIntentResponse#_Google_Cloud_Dialogflow_Cx_V3_DetectIntentResponse__getResponseType__) is set to `FINAL`.

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

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ recognition_result` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.StreamingRecognitionResult` The result of speech recognition. |
| `↳ detect_intent_response` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.DetectIntentResponse` The response from detect intent. |
| `↳ debugging_info` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.CloudConversationDebuggingInfo` Debugging info that would get populated when `StreamingDetectIntentRequest.enable_debugging_info` is set to true. |

### getRecognitionResult

The result of speech recognition.

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

### hasRecognitionResult

### setRecognitionResult

The result of speech recognition.

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

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

### getDetectIntentResponse

The response from detect intent.

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

### hasDetectIntentResponse

### setDetectIntentResponse

The response from detect intent.

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

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

### getDebuggingInfo

Debugging info that would get populated when
`StreamingDetectIntentRequest.enable_debugging_info` is set to true.

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

### hasDebuggingInfo

### clearDebuggingInfo

### setDebuggingInfo

Debugging info that would get populated when
`StreamingDetectIntentRequest.enable_debugging_info` is set to true.

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

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

### getResponse

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