MyMessagePlusExtra constructor
MyMessagePlusExtra({
- MyEnumPlusExtra? e,
- Iterable<
MyEnumPlusExtra> ? repeatedE, - Iterable<
MyEnumPlusExtra> ? repeatedPackedE, - Iterable<
MyEnumPlusExtra> ? repeatedPackedUnexpectedE, - MyEnumPlusExtra? oneofE1,
- 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;
}