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. FeatureSet? features,
  22. 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,
  FeatureSet? features,
  $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 (features != null) {
    $result.features = features;
  }
  if (uninterpretedOption != null) {
    $result.uninterpretedOption.addAll(uninterpretedOption);
  }
  return $result;
}