StreamingRecognizeResponse constructor
StreamingRecognizeResponse({
- Status? error,
- Iterable<
StreamingRecognitionResult> ? results, - StreamingRecognizeResponse_SpeechEventType? speechEventType,
- Duration? totalBilledTime,
- Duration? speechEventTime,
- SpeechAdaptationInfo? speechAdaptationInfo,
- 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;
}