Class: Google::Cloud::Dialogflow::CX::V3::StreamingDetectIntentResponse
- Inherits:
-
Object
- Object
- Google::Cloud::Dialogflow::CX::V3::StreamingDetectIntentResponse
- 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 can be returned in order:
If the
StreamingDetectIntentRequest.query_input.audio
field was set, the first M messages containrecognition_result
. Eachrecognition_result
represents a more complete transcript of what the user said. The lastrecognition_result
hasis_final
set totrue
.If the
StreamingDetectIntentRequest.enable_partial_response
field was true, thedetect_intent_response
field is populated for each of the following N responses, where 0 <= N <= 5. These responses set the DetectIntentResponse.response_type field toPARTIAL
.
For the last response message, the detect_intent_response
is fully
populated, and
DetectIntentResponse.response_type
is set to FINAL
.
Instance Attribute Summary collapse
-
#debugging_info ⇒ ::Google::Cloud::Dialogflow::CX::V3::CloudConversationDebuggingInfo
Debugging info that would get populated when
StreamingDetectIntentRequest.enable_debugging_info
is set to true. -
#detect_intent_response ⇒ ::Google::Cloud::Dialogflow::CX::V3::DetectIntentResponse
The response from detect intent.
-
#recognition_result ⇒ ::Google::Cloud::Dialogflow::CX::V3::StreamingRecognitionResult
The result of speech recognition.
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.
359 360 361 362 |
# File 'proto_docs/google/cloud/dialogflow/cx/v3/session.rb', line 359 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.
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.
359 360 361 362 |
# File 'proto_docs/google/cloud/dialogflow/cx/v3/session.rb', line 359 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.
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.
359 360 361 362 |
# File 'proto_docs/google/cloud/dialogflow/cx/v3/session.rb', line 359 class StreamingDetectIntentResponse include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |