LongRunningRecognizeResponse constructor

LongRunningRecognizeResponse({
  1. Iterable<SpeechRecognitionResult>? results,
  2. Duration? totalBilledTime,
  3. TranscriptOutputConfig? outputConfig,
  4. Status? outputError,
  5. SpeechAdaptationInfo? speechAdaptationInfo,
  6. Int64? requestId,
})

Implementation

factory LongRunningRecognizeResponse({
  $core.Iterable<SpeechRecognitionResult>? results,
  $3.Duration? totalBilledTime,
  TranscriptOutputConfig? outputConfig,
  $6.Status? outputError,
  SpeechAdaptationInfo? speechAdaptationInfo,
  $fixnum.Int64? requestId,
}) {
  final $result = create();
  if (results != null) {
    $result.results.addAll(results);
  }
  if (totalBilledTime != null) {
    $result.totalBilledTime = totalBilledTime;
  }
  if (outputConfig != null) {
    $result.outputConfig = outputConfig;
  }
  if (outputError != null) {
    $result.outputError = outputError;
  }
  if (speechAdaptationInfo != null) {
    $result.speechAdaptationInfo = speechAdaptationInfo;
  }
  if (requestId != null) {
    $result.requestId = requestId;
  }
  return $result;
}