public sealed class StreamingDetectIntentResponse : IMessage<StreamingDetectIntentResponse>, IEquatable<StreamingDetectIntentResponse>, IDeepCloneable<StreamingDetectIntentResponse>, IBufferMessage, IMessageReference documentation and code samples for the Dialogflow v3 API class StreamingDetectIntentResponse.
The top-level message returned from the [StreamingDetectIntent][google.cloud.dialogflow.cx.v3.Sessions.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][google.cloud.dialogflow.cx.v3.DetectIntentResponse.response_type] field toPARTIAL.
For the last response message, the detect_intent_response is fully
populated, and
[DetectIntentResponse.response_type][google.cloud.dialogflow.cx.v3.DetectIntentResponse.response_type]
is set to FINAL.
Implements
IMessageStreamingDetectIntentResponse, IEquatableStreamingDetectIntentResponse, IDeepCloneableStreamingDetectIntentResponse, IBufferMessage, IMessageNamespace
Google.Cloud.Dialogflow.Cx.V3Assembly
Google.Cloud.Dialogflow.Cx.V3.dll
Constructors
StreamingDetectIntentResponse()
public StreamingDetectIntentResponse()StreamingDetectIntentResponse(StreamingDetectIntentResponse)
public StreamingDetectIntentResponse(StreamingDetectIntentResponse other)| Parameter | |
|---|---|
| Name | Description |
other |
StreamingDetectIntentResponse |
Properties
DebuggingInfo
public CloudConversationDebuggingInfo DebuggingInfo { get; set; }Debugging info that would get populated when
StreamingDetectIntentRequest.enable_debugging_info is set to true.
| Property Value | |
|---|---|
| Type | Description |
CloudConversationDebuggingInfo |
|
DetectIntentResponse
public DetectIntentResponse DetectIntentResponse { get; set; }The response from detect intent.
| Property Value | |
|---|---|
| Type | Description |
DetectIntentResponse |
|
RecognitionResult
public StreamingRecognitionResult RecognitionResult { get; set; }The result of speech recognition.
| Property Value | |
|---|---|
| Type | Description |
StreamingRecognitionResult |
|
ResponseCase
public StreamingDetectIntentResponse.ResponseOneofCase ResponseCase { get; }| Property Value | |
|---|---|
| Type | Description |
StreamingDetectIntentResponseResponseOneofCase |
|