# Dialogflow CX V3 API - Class Google::Cloud::Dialogflow::CX::V3::StreamingDetectIntentResponse (v1.12.1)

1.12.1 (latest) 1.12.0 1.11.0 1.10.1 1.9.0 1.8.0 1.7.0 1.6.1 1.5.0 1.4.0 1.3.0 1.2.0 1.1.1 1.0.0 0.26.0 0.25.0 0.24.2 0.23.0 0.22.0 0.21.0 0.20.0 0.19.0 0.18.0 0.17.0 0.16.0 0.15.1 0.14.0 0.13.0 0.12.0 0.11.0 0.10.2 0.9.0 0.8.1 0.7.1 0.6.0 0.5.0 0.4.0 Reference documentation and code samples for the Dialogflow CX V3 API class Google::Cloud::Dialogflow::CX::V3::StreamingDetectIntentResponse.

The top-level message returned from the
[StreamingDetectIntent](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-Sessions-Client#Google__Cloud__Dialogflow__CX__V3__Sessions__Client_streaming_detect_intent_instance_ "Google::Cloud::Dialogflow::CX::V3::Sessions::Client#streaming_detect_intent (method)")
method.


Multiple response messages can be returned in order:

- If the `StreamingDetectIntentRequest.query_input.audio` field was
  set, the first M 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`.

- If the `StreamingDetectIntentRequest.enable_partial_response` field was
  true, the `detect_intent_response` field is populated for each
  of the following N responses, where 0 \<= N \<= 5.
  These responses set the
  [DetectIntentResponse.response_type](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-DetectIntentResponse#Google__Cloud__Dialogflow__CX__V3__DetectIntentResponse_response_type_instance_ "Google::Cloud::Dialogflow::CX::V3::DetectIntentResponse#response_type (method)")
  field to `PARTIAL`.

<br />

For the last response message, the `detect_intent_response` is fully
populated, and
[DetectIntentResponse.response_type](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-DetectIntentResponse#Google__Cloud__Dialogflow__CX__V3__DetectIntentResponse_response_type_instance_ "Google::Cloud::Dialogflow::CX::V3::DetectIntentResponse#response_type (method)")
is set to `FINAL`.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #debugging_info

    def debugging_info() -> ::Google::Cloud::Dialogflow::CX::V3::CloudConversationDebuggingInfo

**Returns**

- ([::Google::Cloud::Dialogflow::CX::V3::CloudConversationDebuggingInfo](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-CloudConversationDebuggingInfo)) --- Debugging info that would get populated when `StreamingDetectIntentRequest.enable_debugging_info` is set to true.

### #debugging_info=

    def debugging_info=(value) -> ::Google::Cloud::Dialogflow::CX::V3::CloudConversationDebuggingInfo

**Parameter**

- **value** ([::Google::Cloud::Dialogflow::CX::V3::CloudConversationDebuggingInfo](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-CloudConversationDebuggingInfo)) --- Debugging info that would get populated when `StreamingDetectIntentRequest.enable_debugging_info` is set to true.
**Returns**

- ([::Google::Cloud::Dialogflow::CX::V3::CloudConversationDebuggingInfo](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-CloudConversationDebuggingInfo)) --- Debugging info that would get populated when `StreamingDetectIntentRequest.enable_debugging_info` is set to true.

### #detect_intent_response

    def detect_intent_response() -> ::Google::Cloud::Dialogflow::CX::V3::DetectIntentResponse

**Returns**

- ([::Google::Cloud::Dialogflow::CX::V3::DetectIntentResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-DetectIntentResponse)) --- The response from detect intent.


  Note: The following fields are mutually exclusive: `detect_intent_response`, `recognition_result`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #detect_intent_response=

    def detect_intent_response=(value) -> ::Google::Cloud::Dialogflow::CX::V3::DetectIntentResponse

**Parameter**

- **value** ([::Google::Cloud::Dialogflow::CX::V3::DetectIntentResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-DetectIntentResponse)) --- The response from detect intent.


  Note: The following fields are mutually exclusive: `detect_intent_response`, `recognition_result`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::Dialogflow::CX::V3::DetectIntentResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-DetectIntentResponse)) --- The response from detect intent.


  Note: The following fields are mutually exclusive: `detect_intent_response`, `recognition_result`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #recognition_result

    def recognition_result() -> ::Google::Cloud::Dialogflow::CX::V3::StreamingRecognitionResult

**Returns**

- ([::Google::Cloud::Dialogflow::CX::V3::StreamingRecognitionResult](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-StreamingRecognitionResult)) --- The result of speech recognition.


  Note: The following fields are mutually exclusive: `recognition_result`, `detect_intent_response`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #recognition_result=

    def recognition_result=(value) -> ::Google::Cloud::Dialogflow::CX::V3::StreamingRecognitionResult

**Parameter**

- **value** ([::Google::Cloud::Dialogflow::CX::V3::StreamingRecognitionResult](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-StreamingRecognitionResult)) --- The result of speech recognition.


  Note: The following fields are mutually exclusive: `recognition_result`, `detect_intent_response`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::Dialogflow::CX::V3::StreamingRecognitionResult](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-StreamingRecognitionResult)) --- The result of speech recognition.


  Note: The following fields are mutually exclusive: `recognition_result`, `detect_intent_response`. If a field in that set is populated, all other fields in the set will automatically be cleared.