StreamingRecognizeResponse constructor
StreamingRecognizeResponse({
- StreamingRecognizeResponse_SpeechEventType? speechEventType,
- RecognitionResponseMetadata? metadata,
- Iterable<
StreamingRecognitionResult> ? results, - 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;
}