StreamingRecognizeResponse constructor

StreamingRecognizeResponse({
  1. StreamingRecognizeResponse_SpeechEventType? speechEventType,
  2. RecognitionResponseMetadata? metadata,
  3. Iterable<StreamingRecognitionResult>? results,
  4. Duration? speechEventOffset,
})

Implementation

factory StreamingRecognizeResponse({
  StreamingRecognizeResponse_SpeechEventType? speechEventType,
  RecognitionResponseMetadata? metadata,
  $core.Iterable<StreamingRecognitionResult>? results,
  $5.Duration? speechEventOffset,
}) {
  final $result = create();
  if (speechEventType != null) {
    $result.speechEventType = speechEventType;
  }
  if (metadata != null) {
    $result.metadata = metadata;
  }
  if (results != null) {
    $result.results.addAll(results);
  }
  if (speechEventOffset != null) {
    $result.speechEventOffset = speechEventOffset;
  }
  return $result;
}