StreamingAnalyzeContentResponse constructor

StreamingAnalyzeContentResponse({
  1. StreamingRecognitionResult? recognitionResult,
  2. String? replyText,
  3. OutputAudio? replyAudio,
  4. AutomatedAgentReply? automatedAgentReply,
  5. Message? message,
  6. Iterable<SuggestionResult>? humanAgentSuggestionResults,
  7. Iterable<SuggestionResult>? endUserSuggestionResults,
  8. 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;
}