StreamingDetectIntentResponse constructor

StreamingDetectIntentResponse({
  1. String? responseId,
  2. StreamingRecognitionResult? recognitionResult,
  3. QueryResult? queryResult,
  4. Status? webhookStatus,
  5. List<int>? outputAudio,
  6. OutputAudioConfig? outputAudioConfig,
  7. Iterable<QueryResult>? alternativeQueryResults,
})

Implementation

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