public sealed class StreamingDetectIntentResponse : IMessage<StreamingDetectIntentResponse>, IEquatable<StreamingDetectIntentResponse>, IDeepCloneable<StreamingDetectIntentResponse>, IBufferMessage, IMessage
The top-level message returned from the StreamingDetectIntent
method.
Multiple response messages can be returned in order:
If the input was set to streaming audio, the first one or more messages contain
recognition_result
. Eachrecognition_result
represents a more complete transcript of what the user said. The lastrecognition_result
hasis_final
set totrue
.If
enable_partial_response
is true, the following N messages (currently 1 <= N <= 4) containdetect_intent_response
. The first (N-1)detect_intent_response
s will haveresponse_type
set toPARTIAL
. The lastdetect_intent_response
hasresponse_type
set toFINAL
. Ifresponse_type
is false, response stream only contains the finaldetect_intent_response
.
Implements
IMessage<StreamingDetectIntentResponse>, IEquatable<StreamingDetectIntentResponse>, IDeepCloneable<StreamingDetectIntentResponse>, 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
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 |
StreamingDetectIntentResponse.ResponseOneofCase |