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;
}