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,
- String? barStringWithEmptyDefault,
- String? barCordWithEmptyDefault,
- String? barStringPieceWithEmptyDefault,
- List<
int> ? barBytesWithEmptyDefault,
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,
$core.String? barStringWithEmptyDefault,
$core.String? barCordWithEmptyDefault,
$core.String? barStringPieceWithEmptyDefault,
$core.List<$core.int>? barBytesWithEmptyDefault,
}) {
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;
}
if (barStringWithEmptyDefault != null) {
_result.barStringWithEmptyDefault = barStringWithEmptyDefault;
}
if (barCordWithEmptyDefault != null) {
_result.barCordWithEmptyDefault = barCordWithEmptyDefault;
}
if (barStringPieceWithEmptyDefault != null) {
_result.barStringPieceWithEmptyDefault = barStringPieceWithEmptyDefault;
}
if (barBytesWithEmptyDefault != null) {
_result.barBytesWithEmptyDefault = barBytesWithEmptyDefault;
}
return _result;
}