FileOptions constructor

FileOptions({
  1. String? javaPackage,
  2. String? javaOuterClassname,
  3. FileOptions_OptimizeMode? optimizeFor,
  4. bool? javaMultipleFiles,
  5. String? goPackage,
  6. bool? ccGenericServices,
  7. bool? javaGenericServices,
  8. bool? pyGenericServices,
  9. @Deprecated('This field is deprecated.') bool? javaGenerateEqualsAndHash,
  10. bool? deprecated,
  11. bool? javaStringCheckUtf8,
  12. bool? ccEnableArenas,
  13. String? objcClassPrefix,
  14. String? csharpNamespace,
  15. String? swiftPrefix,
  16. String? phpClassPrefix,
  17. String? phpNamespace,
  18. bool? phpGenericServices,
  19. String? phpMetadataNamespace,
  20. String? rubyPackage,
  21. Iterable<UninterpretedOption>? uninterpretedOption,
})

Implementation

factory FileOptions({
  $core.String? javaPackage,
  $core.String? javaOuterClassname,
  FileOptions_OptimizeMode? optimizeFor,
  $core.bool? javaMultipleFiles,
  $core.String? goPackage,
  $core.bool? ccGenericServices,
  $core.bool? javaGenericServices,
  $core.bool? pyGenericServices,
  @$core.Deprecated('This field is deprecated.')
      $core.bool? javaGenerateEqualsAndHash,
  $core.bool? deprecated,
  $core.bool? javaStringCheckUtf8,
  $core.bool? ccEnableArenas,
  $core.String? objcClassPrefix,
  $core.String? csharpNamespace,
  $core.String? swiftPrefix,
  $core.String? phpClassPrefix,
  $core.String? phpNamespace,
  $core.bool? phpGenericServices,
  $core.String? phpMetadataNamespace,
  $core.String? rubyPackage,
  $core.Iterable<UninterpretedOption>? uninterpretedOption,
}) {
  final _result = create();
  if (javaPackage != null) {
    _result.javaPackage = javaPackage;
  }
  if (javaOuterClassname != null) {
    _result.javaOuterClassname = javaOuterClassname;
  }
  if (optimizeFor != null) {
    _result.optimizeFor = optimizeFor;
  }
  if (javaMultipleFiles != null) {
    _result.javaMultipleFiles = javaMultipleFiles;
  }
  if (goPackage != null) {
    _result.goPackage = goPackage;
  }
  if (ccGenericServices != null) {
    _result.ccGenericServices = ccGenericServices;
  }
  if (javaGenericServices != null) {
    _result.javaGenericServices = javaGenericServices;
  }
  if (pyGenericServices != null) {
    _result.pyGenericServices = pyGenericServices;
  }
  if (javaGenerateEqualsAndHash != null) {
    // ignore: deprecated_member_use_from_same_package
    _result.javaGenerateEqualsAndHash = javaGenerateEqualsAndHash;
  }
  if (deprecated != null) {
    _result.deprecated = deprecated;
  }
  if (javaStringCheckUtf8 != null) {
    _result.javaStringCheckUtf8 = javaStringCheckUtf8;
  }
  if (ccEnableArenas != null) {
    _result.ccEnableArenas = ccEnableArenas;
  }
  if (objcClassPrefix != null) {
    _result.objcClassPrefix = objcClassPrefix;
  }
  if (csharpNamespace != null) {
    _result.csharpNamespace = csharpNamespace;
  }
  if (swiftPrefix != null) {
    _result.swiftPrefix = swiftPrefix;
  }
  if (phpClassPrefix != null) {
    _result.phpClassPrefix = phpClassPrefix;
  }
  if (phpNamespace != null) {
    _result.phpNamespace = phpNamespace;
  }
  if (phpGenericServices != null) {
    _result.phpGenericServices = phpGenericServices;
  }
  if (phpMetadataNamespace != null) {
    _result.phpMetadataNamespace = phpMetadataNamespace;
  }
  if (rubyPackage != null) {
    _result.rubyPackage = rubyPackage;
  }
  if (uninterpretedOption != null) {
    _result.uninterpretedOption.addAll(uninterpretedOption);
  }
  return _result;
}