CodeGeneratorRequest constructor

CodeGeneratorRequest({
  1. Iterable<String>? fileToGenerate,
  2. String? parameter,
  3. Version? compilerVersion,
  4. Iterable<FileDescriptorProto>? protoFile,
})

Implementation

factory CodeGeneratorRequest({
  $core.Iterable<$core.String>? fileToGenerate,
  $core.String? parameter,
  Version? compilerVersion,
  $core.Iterable<$0.FileDescriptorProto>? protoFile,
}) {
  final $result = create();
  if (fileToGenerate != null) {
    $result.fileToGenerate.addAll(fileToGenerate);
  }
  if (parameter != null) {
    $result.parameter = parameter;
  }
  if (compilerVersion != null) {
    $result.compilerVersion = compilerVersion;
  }
  if (protoFile != null) {
    $result.protoFile.addAll(protoFile);
  }
  return $result;
}