TestHugeFieldNumbers constructor

TestHugeFieldNumbers({
  1. int? optionalInt32,
  2. int? fixed32,
  3. Iterable<int>? repeatedInt32,
  4. Iterable<int>? packedInt32,
  5. ForeignEnum? optionalEnum,
  6. String? optionalString,
  7. List<int>? optionalBytes,
  8. ForeignMessage? optionalMessage,
  9. TestHugeFieldNumbers_OptionalGroup? optionalGroup,
  10. Map<String, String>? stringStringMap,
  11. int? oneofUint32,
  12. TestAllTypes? oneofTestAllTypes,
  13. String? oneofString,
  14. List<int>? oneofBytes,
})

Implementation

factory TestHugeFieldNumbers({
  $core.int? optionalInt32,
  $core.int? fixed32,
  $core.Iterable<$core.int>? repeatedInt32,
  $core.Iterable<$core.int>? packedInt32,
  ForeignEnum? optionalEnum,
  $core.String? optionalString,
  $core.List<$core.int>? optionalBytes,
  ForeignMessage? optionalMessage,
  TestHugeFieldNumbers_OptionalGroup? optionalGroup,
  $core.Map<$core.String, $core.String>? stringStringMap,
  $core.int? oneofUint32,
  TestAllTypes? oneofTestAllTypes,
  $core.String? oneofString,
  $core.List<$core.int>? oneofBytes,
}) {
  final _result = create();
  if (optionalInt32 != null) {
    _result.optionalInt32 = optionalInt32;
  }
  if (fixed32 != null) {
    _result.fixed32 = fixed32;
  }
  if (repeatedInt32 != null) {
    _result.repeatedInt32.addAll(repeatedInt32);
  }
  if (packedInt32 != null) {
    _result.packedInt32.addAll(packedInt32);
  }
  if (optionalEnum != null) {
    _result.optionalEnum = optionalEnum;
  }
  if (optionalString != null) {
    _result.optionalString = optionalString;
  }
  if (optionalBytes != null) {
    _result.optionalBytes = optionalBytes;
  }
  if (optionalMessage != null) {
    _result.optionalMessage = optionalMessage;
  }
  if (optionalGroup != null) {
    _result.optionalGroup = optionalGroup;
  }
  if (stringStringMap != null) {
    _result.stringStringMap.addAll(stringStringMap);
  }
  if (oneofUint32 != null) {
    _result.oneofUint32 = oneofUint32;
  }
  if (oneofTestAllTypes != null) {
    _result.oneofTestAllTypes = oneofTestAllTypes;
  }
  if (oneofString != null) {
    _result.oneofString = oneofString;
  }
  if (oneofBytes != null) {
    _result.oneofBytes = oneofBytes;
  }
  return _result;
}