Reference documentation and code samples for the Google Cloud Dialogflow V2 Client class BidiStreamingAnalyzeContentResponse.
The response message for Participants.BidiStreamingAnalyzeContent.
Generated from protobuf message google.cloud.dialogflow.v2.BidiStreamingAnalyzeContentResponse
Namespace
Google \ Cloud \ Dialogflow \ V2Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ recognition_result |
StreamingRecognitionResult
The result of speech recognition. |
↳ barge_in_signal |
BidiStreamingAnalyzeContentResponse\BargeInSignal
Indicate the user barge-in has been detected, and client should stop playing back the audio. |
↳ analyze_content_response |
AnalyzeContentResponse
The agent response from analyze content. |
↳ turn_complete |
BidiStreamingAnalyzeContentResponse\TurnComplete
Indicate that the turn is complete. |
getRecognitionResult
The result of speech recognition.
| Returns | |
|---|---|
| Type | Description |
StreamingRecognitionResult|null |
|
hasRecognitionResult
setRecognitionResult
The result of speech recognition.
| Parameter | |
|---|---|
| Name | Description |
var |
StreamingRecognitionResult
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getBargeInSignal
Indicate the user barge-in has been detected, and client should stop playing back the audio.
| Returns | |
|---|---|
| Type | Description |
BidiStreamingAnalyzeContentResponse\BargeInSignal|null |
|
hasBargeInSignal
setBargeInSignal
Indicate the user barge-in has been detected, and client should stop playing back the audio.
| Parameter | |
|---|---|
| Name | Description |
var |
BidiStreamingAnalyzeContentResponse\BargeInSignal
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getAnalyzeContentResponse
The agent response from analyze content.
| Returns | |
|---|---|
| Type | Description |
AnalyzeContentResponse|null |
|
hasAnalyzeContentResponse
setAnalyzeContentResponse
The agent response from analyze content.
| Parameter | |
|---|---|
| Name | Description |
var |
AnalyzeContentResponse
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getTurnComplete
Indicate that the turn is complete.
| Returns | |
|---|---|
| Type | Description |
BidiStreamingAnalyzeContentResponse\TurnComplete|null |
|
hasTurnComplete
setTurnComplete
Indicate that the turn is complete.
| Parameter | |
|---|---|
| Name | Description |
var |
BidiStreamingAnalyzeContentResponse\TurnComplete
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getResponse
| Returns | |
|---|---|
| Type | Description |
string |
|