BatchRecognizeRequest constructor

BatchRecognizeRequest({
  1. String? recognizer,
  2. Iterable<BatchRecognizeFileMetadata>? files,
  3. RecognitionConfig? config,
  4. FieldMask? configMask,
  5. RecognitionOutputConfig? recognitionOutputConfig,
  6. BatchRecognizeRequest_ProcessingStrategy? processingStrategy,
})

Implementation

factory BatchRecognizeRequest({
  $core.String? recognizer,
  $core.Iterable<BatchRecognizeFileMetadata>? files,
  RecognitionConfig? config,
  $4.FieldMask? configMask,
  RecognitionOutputConfig? recognitionOutputConfig,
  BatchRecognizeRequest_ProcessingStrategy? processingStrategy,
}) {
  final $result = create();
  if (recognizer != null) {
    $result.recognizer = recognizer;
  }
  if (files != null) {
    $result.files.addAll(files);
  }
  if (config != null) {
    $result.config = config;
  }
  if (configMask != null) {
    $result.configMask = configMask;
  }
  if (recognitionOutputConfig != null) {
    $result.recognitionOutputConfig = recognitionOutputConfig;
  }
  if (processingStrategy != null) {
    $result.processingStrategy = processingStrategy;
  }
  return $result;
}