Class: Google::Cloud::Dialogflow::CX::V3::StreamingDetectIntentResponse

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/dialogflow/cx/v3/session.rb

Overview

The top-level message returned from the 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 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 field to PARTIAL.

For the final Nth response message, the detect_intent_response is fully populated, and DetectIntentResponse.response_type is set to FINAL.

Instance Attribute Summary collapse

Instance Attribute Details

#debugging_info::Google::Cloud::Dialogflow::CX::V3::CloudConversationDebuggingInfo

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

Returns:



360
361
362
363
# File 'proto_docs/google/cloud/dialogflow/cx/v3/session.rb', line 360

class StreamingDetectIntentResponse
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#detect_intent_response::Google::Cloud::Dialogflow::CX::V3::DetectIntentResponse

Returns The response from detect intent.

Returns:



360
361
362
363
# File 'proto_docs/google/cloud/dialogflow/cx/v3/session.rb', line 360

class StreamingDetectIntentResponse
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#recognition_result::Google::Cloud::Dialogflow::CX::V3::StreamingRecognitionResult

Returns The result of speech recognition.

Returns:



360
361
362
363
# File 'proto_docs/google/cloud/dialogflow/cx/v3/session.rb', line 360

class StreamingDetectIntentResponse
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end