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 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.audiofield was set, and theStreamingDetectIntentRequest.enable_partial_responsefield was false, therecognition_resultfield 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_responsefield was true, thedetect_intent_responsefield is populated for each of the (N-1) responses, where 1 <= N <= 4. These responses set the DetectIntentResponse.response_type field toPARTIAL.
For the final Nth response message, the detect_intent_response is fully
populated, and
DetectIntentResponse.response_type
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-
(::Google::Cloud::Dialogflow::CX::V3::CloudConversationDebuggingInfo) — Debugging info that would get populated when
StreamingDetectIntentRequest.enable_debugging_infois set to true.
#debugging_info=
def debugging_info=(value) -> ::Google::Cloud::Dialogflow::CX::V3::CloudConversationDebuggingInfo-
value (::Google::Cloud::Dialogflow::CX::V3::CloudConversationDebuggingInfo) — Debugging info that would get populated when
StreamingDetectIntentRequest.enable_debugging_infois set to true.
-
(::Google::Cloud::Dialogflow::CX::V3::CloudConversationDebuggingInfo) — Debugging info that would get populated when
StreamingDetectIntentRequest.enable_debugging_infois set to true.
#detect_intent_response
def detect_intent_response() -> ::Google::Cloud::Dialogflow::CX::V3::DetectIntentResponse-
(::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-
value (::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.
-
(::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-
(::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-
value (::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.
-
(::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.