AnalyzeContentResponse constructor

AnalyzeContentResponse({
  1. String? replyText,
  2. OutputAudio? replyAudio,
  3. AutomatedAgentReply? automatedAgentReply,
  4. Message? message,
  5. Iterable<SuggestionResult>? humanAgentSuggestionResults,
  6. Iterable<SuggestionResult>? endUserSuggestionResults,
  7. DtmfParameters? dtmfParameters,
})

Implementation

factory AnalyzeContentResponse({
  $core.String? replyText,
  OutputAudio? replyAudio,
  AutomatedAgentReply? automatedAgentReply,
  Message? message,
  $core.Iterable<SuggestionResult>? humanAgentSuggestionResults,
  $core.Iterable<SuggestionResult>? endUserSuggestionResults,
  DtmfParameters? dtmfParameters,
}) {
  final _result = create();
  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;
}