Class StreamingDetectIntentResponse (1.40.0)

StreamingDetectIntentResponse(
    mapping=None, *, ignore_unknown_fields=False, **kwargs
)

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 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 field to PARTIAL.

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

This message has oneof_ fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Attributes

Name Description
recognition_result google.cloud.dialogflowcx_v3.types.StreamingRecognitionResult
The result of speech recognition. This field is a member of oneof_ response.
detect_intent_response google.cloud.dialogflowcx_v3.types.DetectIntentResponse
The response from detect intent. This field is a member of oneof_ response.
debugging_info google.cloud.dialogflowcx_v3.types.CloudConversationDebuggingInfo
Debugging info that would get populated when StreamingDetectIntentRequest.enable_debugging_info is set to true.