Google Cloud Dialogflow Cx V3 Client - Class StreamingDetectIntentResponse (0.2.1)

Reference documentation and code samples for the Google Cloud Dialogflow Cx V3 Client class 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.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.

Generated from protobuf message google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse

Namespace

Google \ Cloud \ Dialogflow \ Cx \ V3

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ recognition_result Google\Cloud\Dialogflow\Cx\V3\StreamingRecognitionResult

The result of speech recognition.

↳ detect_intent_response Google\Cloud\Dialogflow\Cx\V3\DetectIntentResponse

The response from detect intent.

↳ debugging_info Google\Cloud\Dialogflow\Cx\V3\CloudConversationDebuggingInfo

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

getRecognitionResult

The result of speech recognition.

Returns
TypeDescription
Google\Cloud\Dialogflow\Cx\V3\StreamingRecognitionResult|null

hasRecognitionResult

setRecognitionResult

The result of speech recognition.

Parameter
NameDescription
var Google\Cloud\Dialogflow\Cx\V3\StreamingRecognitionResult
Returns
TypeDescription
$this

getDetectIntentResponse

The response from detect intent.

Returns
TypeDescription
Google\Cloud\Dialogflow\Cx\V3\DetectIntentResponse|null

hasDetectIntentResponse

setDetectIntentResponse

The response from detect intent.

Parameter
NameDescription
var Google\Cloud\Dialogflow\Cx\V3\DetectIntentResponse
Returns
TypeDescription
$this

getDebuggingInfo

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

Returns
TypeDescription
Google\Cloud\Dialogflow\Cx\V3\CloudConversationDebuggingInfo|null

hasDebuggingInfo

clearDebuggingInfo

setDebuggingInfo

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

Parameter
NameDescription
var Google\Cloud\Dialogflow\Cx\V3\CloudConversationDebuggingInfo
Returns
TypeDescription
$this

getResponse

Returns
TypeDescription
string