DetectIntentResponse constructor
DetectIntentResponse({
- String? responseId,
- QueryResult? queryResult,
- Status? webhookStatus,
- List<
int> ? outputAudio, - Iterable<
QueryResult> ? alternativeQueryResults, - OutputAudioConfig? outputAudioConfig,
Implementation
factory DetectIntentResponse({
$core.String? responseId,
QueryResult? queryResult,
$21.Status? webhookStatus,
$core.List<$core.int>? outputAudio,
$core.Iterable<QueryResult>? alternativeQueryResults,
$20.OutputAudioConfig? outputAudioConfig,
}) {
final _result = create();
if (responseId != null) {
_result.responseId = responseId;
}
if (queryResult != null) {
_result.queryResult = queryResult;
}
if (webhookStatus != null) {
_result.webhookStatus = webhookStatus;
}
if (outputAudio != null) {
_result.outputAudio = outputAudio;
}
if (alternativeQueryResults != null) {
_result.alternativeQueryResults.addAll(alternativeQueryResults);
}
if (outputAudioConfig != null) {
_result.outputAudioConfig = outputAudioConfig;
}
return _result;
}