MessageOptions constructor

MessageOptions({
  1. bool? messageSetWireFormat,
  2. bool? noStandardDescriptorAccessor,
  3. bool? deprecated,
  4. bool? mapEntry,
  5. @Deprecated('This field is deprecated.') bool? deprecatedLegacyJsonFieldConflicts,
  6. FeatureSet? features,
  7. 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;
}