MyMessagePlusExtra constructor

MyMessagePlusExtra({
  1. MyEnumPlusExtra? e,
  2. Iterable<MyEnumPlusExtra>? repeatedE,
  3. Iterable<MyEnumPlusExtra>? repeatedPackedE,
  4. Iterable<MyEnumPlusExtra>? repeatedPackedUnexpectedE,
  5. MyEnumPlusExtra? oneofE1,
  6. MyEnumPlusExtra? oneofE2,
})

Implementation

factory MyMessagePlusExtra({
  MyEnumPlusExtra? e,
  $core.Iterable<MyEnumPlusExtra>? repeatedE,
  $core.Iterable<MyEnumPlusExtra>? repeatedPackedE,
  $core.Iterable<MyEnumPlusExtra>? repeatedPackedUnexpectedE,
  MyEnumPlusExtra? oneofE1,
  MyEnumPlusExtra? oneofE2,
}) {
  final _result = create();
  if (e != null) {
    _result.e = e;
  }
  if (repeatedE != null) {
    _result.repeatedE.addAll(repeatedE);
  }
  if (repeatedPackedE != null) {
    _result.repeatedPackedE.addAll(repeatedPackedE);
  }
  if (repeatedPackedUnexpectedE != null) {
    _result.repeatedPackedUnexpectedE.addAll(repeatedPackedUnexpectedE);
  }
  if (oneofE1 != null) {
    _result.oneofE1 = oneofE1;
  }
  if (oneofE2 != null) {
    _result.oneofE2 = oneofE2;
  }
  return _result;
}