MessageOptions constructor
MessageOptions({
- bool? messageSetWireFormat,
- bool? noStandardDescriptorAccessor,
- bool? deprecated,
- bool? mapEntry,
- @Deprecated('This field is deprecated.') bool? deprecatedLegacyJsonFieldConflicts,
- FeatureSet? features,
- Iterable<
UninterpretedOption> ? uninterpretedOption,
Implementation
factory MessageOptions({
$core.bool? messageSetWireFormat,
$core.bool? noStandardDescriptorAccessor,
$core.bool? deprecated,
$core.bool? mapEntry,
@$core.Deprecated('This field is deprecated.')
$core.bool? deprecatedLegacyJsonFieldConflicts,
FeatureSet? features,
$core.Iterable<UninterpretedOption>? uninterpretedOption,
}) {
final $result = create();
if (messageSetWireFormat != null) {
$result.messageSetWireFormat = messageSetWireFormat;
}
if (noStandardDescriptorAccessor != null) {
$result.noStandardDescriptorAccessor = noStandardDescriptorAccessor;
}
if (deprecated != null) {
$result.deprecated = deprecated;
}
if (mapEntry != null) {
$result.mapEntry = mapEntry;
}
if (deprecatedLegacyJsonFieldConflicts != null) {
// ignore: deprecated_member_use_from_same_package
$result.deprecatedLegacyJsonFieldConflicts = deprecatedLegacyJsonFieldConflicts;
}
if (features != null) {
$result.features = features;
}
if (uninterpretedOption != null) {
$result.uninterpretedOption.addAll(uninterpretedOption);
}
return $result;
}