AnalyzeContentResponse constructor
AnalyzeContentResponse({
- String? replyText,
- OutputAudio? replyAudio,
- AutomatedAgentReply? automatedAgentReply,
- Message? message,
- Iterable<
SuggestionResult> ? humanAgentSuggestionResults, - Iterable<
SuggestionResult> ? endUserSuggestionResults, - 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;
}