Class StreamingDetectIntentResponse (1.27.0)

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

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.

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

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