StreamingRecognizeResponse constructor

StreamingRecognizeResponse({
  1. Status? error,
  2. Iterable<StreamingRecognitionResult>? results,
  3. StreamingRecognizeResponse_SpeechEventType? speechEventType,
  4. Duration? totalBilledTime,
  5. Duration? speechEventTime,
  6. SpeechAdaptationInfo? speechAdaptationInfo,
  7. Int64? requestId,
})

Implementation

factory StreamingRecognizeResponse({
  $6.Status? error,
  $core.Iterable<StreamingRecognitionResult>? results,
  StreamingRecognizeResponse_SpeechEventType? speechEventType,
  $3.Duration? totalBilledTime,
  $3.Duration? speechEventTime,
  SpeechAdaptationInfo? speechAdaptationInfo,
  $fixnum.Int64? requestId,
}) {
  final $result = create();
  if (error != null) {
    $result.error = error;
  }
  if (results != null) {
    $result.results.addAll(results);
  }
  if (speechEventType != null) {
    $result.speechEventType = speechEventType;
  }
  if (totalBilledTime != null) {
    $result.totalBilledTime = totalBilledTime;
  }
  if (speechEventTime != null) {
    $result.speechEventTime = speechEventTime;
  }
  if (speechAdaptationInfo != null) {
    $result.speechAdaptationInfo = speechAdaptationInfo;
  }
  if (requestId != null) {
    $result.requestId = requestId;
  }
  return $result;
}