Dialogflow v3 API - Class StreamingDetectIntentResponse (2.8.0)

public sealed class StreamingDetectIntentResponse : IMessage<StreamingDetectIntentResponse>, IEquatable<StreamingDetectIntentResponse>, IDeepCloneable<StreamingDetectIntentResponse>, IBufferMessage, IMessage

Reference 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 (N) can be returned in order.

The first (N-1) responses set either the recognition_result or detect_intent_response field, depending on the request:

  • If the StreamingDetectIntentRequest.query_input.audio field was set, and the StreamingDetectIntentRequest.enable_partial_response field was false, the recognition_result field is populated for each of the (N-1) responses. See the [StreamingRecognitionResult][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult] message for details about the result message sequence.

  • If the StreamingDetectIntentRequest.enable_partial_response field was true, the detect_intent_response field is populated for each of the (N-1) responses, where 1 <= N <= 4. These responses set the [DetectIntentResponse.response_type][google.cloud.dialogflow.cx.v3.DetectIntentResponse.response_type] field to PARTIAL.

For the final Nth 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.

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

DebuggingInfo

public CloudConversationDebuggingInfo DebuggingInfo { get; set; }

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

Property Value
TypeDescription
CloudConversationDebuggingInfo

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
StreamingDetectIntentResponseResponseOneofCase