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<$3.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;
}