DetectIntentRequest constructor

DetectIntentRequest({
  1. String? session,
  2. QueryParameters? queryParams,
  3. QueryInput? queryInput,
  4. OutputAudioConfig? outputAudioConfig,
  5. List<int>? inputAudio,
  6. FieldMask? outputAudioConfigMask,
})

Implementation

factory DetectIntentRequest({
  $core.String? session,
  QueryParameters? queryParams,
  QueryInput? queryInput,
  $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 (outputAudioConfig != null) {
    _result.outputAudioConfig = outputAudioConfig;
  }
  if (inputAudio != null) {
    _result.inputAudio = inputAudio;
  }
  if (outputAudioConfigMask != null) {
    _result.outputAudioConfigMask = outputAudioConfigMask;
  }
  return _result;
}