StreamingDetectIntentRequest constructor
StreamingDetectIntentRequest({
- String? session,
- QueryParameters? queryParams,
- QueryInput? queryInput,
- @Deprecated('This field is deprecated.') bool? singleUtterance,
- OutputAudioConfig? outputAudioConfig,
- List<
int> ? inputAudio, - FieldMask? outputAudioConfigMask,
Implementation
factory StreamingDetectIntentRequest({
$core.String? session,
QueryParameters? queryParams,
QueryInput? queryInput,
@$core.Deprecated('This field is deprecated.') $core.bool? singleUtterance,
$19.OutputAudioConfig? outputAudioConfig,
$core.List<$core.int>? inputAudio,
$16.FieldMask? outputAudioConfigMask,
}) {
final _result = create();
if (session != null) {
_result.session = session;
}
if (queryParams != null) {
_result.queryParams = queryParams;
}
if (queryInput != null) {
_result.queryInput = queryInput;
}
if (singleUtterance != null) {
// ignore: deprecated_member_use_from_same_package
_result.singleUtterance = singleUtterance;
}
if (outputAudioConfig != null) {
_result.outputAudioConfig = outputAudioConfig;
}
if (inputAudio != null) {
_result.inputAudio = inputAudio;
}
if (outputAudioConfigMask != null) {
_result.outputAudioConfigMask = outputAudioConfigMask;
}
return _result;
}