TestOneof2 constructor
TestOneof2({
- int? fooInt,
- String? fooString,
- String? fooCord,
- String? fooStringPiece,
- List<
int> ? fooBytes, - TestOneof2_NestedEnum? fooEnum,
- TestOneof2_NestedMessage? fooMessage,
- TestOneof2_FooGroup? fooGroup,
- TestOneof2_NestedMessage? fooLazyMessage,
- int? barInt,
- String? barString,
- String? barCord,
- String? barStringPiece,
- List<
int> ? barBytes, - TestOneof2_NestedEnum? barEnum,
- int? bazInt,
- String? bazString,
Implementation
factory TestOneof2({
$core.int? fooInt,
$core.String? fooString,
$core.String? fooCord,
$core.String? fooStringPiece,
$core.List<$core.int>? fooBytes,
TestOneof2_NestedEnum? fooEnum,
TestOneof2_NestedMessage? fooMessage,
TestOneof2_FooGroup? fooGroup,
TestOneof2_NestedMessage? fooLazyMessage,
$core.int? barInt,
$core.String? barString,
$core.String? barCord,
$core.String? barStringPiece,
$core.List<$core.int>? barBytes,
TestOneof2_NestedEnum? barEnum,
$core.int? bazInt,
$core.String? bazString,
}) {
final _result = create();
if (fooInt != null) {
_result.fooInt = fooInt;
}
if (fooString != null) {
_result.fooString = fooString;
}
if (fooCord != null) {
_result.fooCord = fooCord;
}
if (fooStringPiece != null) {
_result.fooStringPiece = fooStringPiece;
}
if (fooBytes != null) {
_result.fooBytes = fooBytes;
}
if (fooEnum != null) {
_result.fooEnum = fooEnum;
}
if (fooMessage != null) {
_result.fooMessage = fooMessage;
}
if (fooGroup != null) {
_result.fooGroup = fooGroup;
}
if (fooLazyMessage != null) {
_result.fooLazyMessage = fooLazyMessage;
}
if (barInt != null) {
_result.barInt = barInt;
}
if (barString != null) {
_result.barString = barString;
}
if (barCord != null) {
_result.barCord = barCord;
}
if (barStringPiece != null) {
_result.barStringPiece = barStringPiece;
}
if (barBytes != null) {
_result.barBytes = barBytes;
}
if (barEnum != null) {
_result.barEnum = barEnum;
}
if (bazInt != null) {
_result.bazInt = bazInt;
}
if (bazString != null) {
_result.bazString = bazString;
}
return _result;
}