Class StreamingDetectIntentResponse (1.2.0)

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:

  1. If the input was set to streaming audio, the first one or more 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.

  2. If enable_partial_response is true, the following N messages (currently 1 <= N <= 4) contain detect_intent_response. The first (N-1) detect_intent_responses will have response_type set to PARTIAL. The last detect_intent_response has response_type set to FINAL. If response_type is false, response stream only contains the final detect_intent_response.

Inheritance

Object > StreamingDetectIntentResponse

Namespace

Google.Cloud.Dialogflow.Cx.V3

Assembly

Google.Cloud.Dialogflow.Cx.V3.dll

Constructors

StreamingDetectIntentResponse()

public StreamingDetectIntentResponse()

StreamingDetectIntentResponse(StreamingDetectIntentResponse)

public StreamingDetectIntentResponse(StreamingDetectIntentResponse other)
Parameter
NameDescription
otherStreamingDetectIntentResponse

Properties

DetectIntentResponse

public DetectIntentResponse DetectIntentResponse { get; set; }

The response from detect intent.

Property Value
TypeDescription
DetectIntentResponse

RecognitionResult

public StreamingRecognitionResult RecognitionResult { get; set; }

The result of speech recognition.

Property Value
TypeDescription
StreamingRecognitionResult

ResponseCase

public StreamingDetectIntentResponse.ResponseOneofCase ResponseCase { get; }
Property Value
TypeDescription
StreamingDetectIntentResponse.ResponseOneofCase