StreamingAnalyzeContentResponse constructor
StreamingAnalyzeContentResponse({
- StreamingRecognitionResult? recognitionResult,
- String? replyText,
- OutputAudio? replyAudio,
- AutomatedAgentReply? automatedAgentReply,
- Message? message,
- Iterable<
SuggestionResult> ? humanAgentSuggestionResults, - Iterable<
SuggestionResult> ? endUserSuggestionResults, - DtmfParameters? dtmfParameters,
Implementation
factory StreamingAnalyzeContentResponse({
$9.StreamingRecognitionResult? recognitionResult,
$core.String? replyText,
OutputAudio? replyAudio,
AutomatedAgentReply? automatedAgentReply,
Message? message,
$core.Iterable<SuggestionResult>? humanAgentSuggestionResults,
$core.Iterable<SuggestionResult>? endUserSuggestionResults,
DtmfParameters? dtmfParameters,
}) {
final _result = create();
if (recognitionResult != null) {
_result.recognitionResult = recognitionResult;
}
if (replyText != null) {
_result.replyText = replyText;
}
if (replyAudio != null) {
_result.replyAudio = replyAudio;
}
if (automatedAgentReply != null) {
_result.automatedAgentReply = automatedAgentReply;
}
if (message != null) {
_result.message = message;
}
if (humanAgentSuggestionResults != null) {
_result.humanAgentSuggestionResults.addAll(humanAgentSuggestionResults);
}
if (endUserSuggestionResults != null) {
_result.endUserSuggestionResults.addAll(endUserSuggestionResults);
}
if (dtmfParameters != null) {
_result.dtmfParameters = dtmfParameters;
}
return _result;
}