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;
}