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,
})

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