Reference documentation and code samples for the Google Cloud Dialogflow Cx V3 Client class StreamingDetectIntentResponse.
The top-level message returned from the StreamingDetectIntent method.
Multiple response messages can be returned in order:
- If the
StreamingDetectIntentRequest.query_input.audiofield was set, the first M messages containrecognition_result. Eachrecognition_resultrepresents a more complete transcript of what the user said. The lastrecognition_resulthasis_finalset totrue. - If the
StreamingDetectIntentRequest.enable_partial_responsefield was true, thedetect_intent_responsefield is populated for each of the following N responses, where 0 <= N <= 5. These responses set the DetectIntentResponse.response_type field toPARTIAL. For the last response message, thedetect_intent_responseis fully populated, and DetectIntentResponse.response_type is set toFINAL.
Generated from protobuf message google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse
Namespace
Google \ Cloud \ Dialogflow \ Cx \ V3Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ recognition_result |
StreamingRecognitionResult
The result of speech recognition. |
↳ detect_intent_response |
DetectIntentResponse
The response from detect intent. |
↳ debugging_info |
CloudConversationDebuggingInfo
Debugging info that would get populated when |
getRecognitionResult
The result of speech recognition.
| Returns | |
|---|---|
| Type | Description |
StreamingRecognitionResult|null |
|
hasRecognitionResult
setRecognitionResult
The result of speech recognition.
| Parameter | |
|---|---|
| Name | Description |
var |
StreamingRecognitionResult
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getDetectIntentResponse
The response from detect intent.
| Returns | |
|---|---|
| Type | Description |
DetectIntentResponse|null |
|
hasDetectIntentResponse
setDetectIntentResponse
The response from detect intent.
| Parameter | |
|---|---|
| Name | Description |
var |
DetectIntentResponse
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getDebuggingInfo
Debugging info that would get populated when
StreamingDetectIntentRequest.enable_debugging_info is set to true.
| Returns | |
|---|---|
| Type | Description |
CloudConversationDebuggingInfo|null |
|
hasDebuggingInfo
clearDebuggingInfo
setDebuggingInfo
Debugging info that would get populated when
StreamingDetectIntentRequest.enable_debugging_info is set to true.
| Parameter | |
|---|---|
| Name | Description |
var |
CloudConversationDebuggingInfo
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getResponse
| Returns | |
|---|---|
| Type | Description |
string |
|