MessageOptions constructor

MessageOptions({
  1. bool? messageSetWireFormat,
  2. bool? noStandardDescriptorAccessor,
  3. bool? deprecated,
  4. bool? mapEntry,
  5. Iterable<UninterpretedOption>? uninterpretedOption,
})

Implementation

factory MessageOptions({
  $core.bool? messageSetWireFormat,
  $core.bool? noStandardDescriptorAccessor,
  $core.bool? deprecated,
  $core.bool? mapEntry,
  $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 (uninterpretedOption != null) {
    _result.uninterpretedOption.addAll(uninterpretedOption);
  }
  return _result;
}