FileOptions constructor
FileOptions({
- String? javaPackage,
- String? javaOuterClassname,
- FileOptions_OptimizeMode? optimizeFor,
- bool? javaMultipleFiles,
- String? goPackage,
- bool? ccGenericServices,
- bool? javaGenericServices,
- bool? pyGenericServices,
- @Deprecated('This field is deprecated.') bool? javaGenerateEqualsAndHash,
- bool? deprecated,
- bool? javaStringCheckUtf8,
- bool? ccEnableArenas,
- String? objcClassPrefix,
- String? csharpNamespace,
- String? swiftPrefix,
- String? phpClassPrefix,
- String? phpNamespace,
- bool? phpGenericServices,
- String? phpMetadataNamespace,
- String? rubyPackage,
- 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;
}