StreamingDetectIntentRequest constructor

StreamingDetectIntentRequest({
  1. String? session,
  2. QueryParameters? queryParams,
  3. QueryInput? queryInput,
  4. @Deprecated('This field is deprecated.') bool? singleUtterance,
  5. OutputAudioConfig? outputAudioConfig,
  6. List<int>? inputAudio,
  7. FieldMask? outputAudioConfigMask,
})

Implementation

factory StreamingDetectIntentRequest({
  $core.String? session,
  QueryParameters? queryParams,
  QueryInput? queryInput,
  @$core.Deprecated('This field is deprecated.') $core.bool? singleUtterance,
  $20.OutputAudioConfig? outputAudioConfig,
  $core.List<$core.int>? inputAudio,
  $18.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;
}