TestOneof2 constructor

TestOneof2({
  1. int? fooInt,
  2. String? fooString,
  3. String? fooCord,
  4. String? fooStringPiece,
  5. List<int>? fooBytes,
  6. TestOneof2_NestedEnum? fooEnum,
  7. TestOneof2_NestedMessage? fooMessage,
  8. TestOneof2_FooGroup? fooGroup,
  9. TestOneof2_NestedMessage? fooLazyMessage,
  10. int? barInt,
  11. String? barString,
  12. String? barCord,
  13. String? barStringPiece,
  14. List<int>? barBytes,
  15. TestOneof2_NestedEnum? barEnum,
  16. int? bazInt,
  17. String? bazString,
  18. String? barStringWithEmptyDefault,
  19. String? barCordWithEmptyDefault,
  20. String? barStringPieceWithEmptyDefault,
  21. 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;
}