TestOneofParsingLite constructor

TestOneofParsingLite({
  1. int? oneofInt32,
  2. TestAllTypesLite? oneofSubmessage,
  3. String? oneofString,
  4. List<int>? oneofBytes,
  5. String? oneofStringCord,
  6. List<int>? oneofBytesCord,
  7. String? oneofStringStringPiece,
  8. List<int>? oneofBytesStringPiece,
  9. V2EnumLite? oneofEnum,
})

Implementation

factory TestOneofParsingLite({
  $core.int? oneofInt32,
  TestAllTypesLite? oneofSubmessage,
  $core.String? oneofString,
  $core.List<$core.int>? oneofBytes,
  $core.String? oneofStringCord,
  $core.List<$core.int>? oneofBytesCord,
  $core.String? oneofStringStringPiece,
  $core.List<$core.int>? oneofBytesStringPiece,
  V2EnumLite? oneofEnum,
}) {
  final _result = create();
  if (oneofInt32 != null) {
    _result.oneofInt32 = oneofInt32;
  }
  if (oneofSubmessage != null) {
    _result.oneofSubmessage = oneofSubmessage;
  }
  if (oneofString != null) {
    _result.oneofString = oneofString;
  }
  if (oneofBytes != null) {
    _result.oneofBytes = oneofBytes;
  }
  if (oneofStringCord != null) {
    _result.oneofStringCord = oneofStringCord;
  }
  if (oneofBytesCord != null) {
    _result.oneofBytesCord = oneofBytesCord;
  }
  if (oneofStringStringPiece != null) {
    _result.oneofStringStringPiece = oneofStringStringPiece;
  }
  if (oneofBytesStringPiece != null) {
    _result.oneofBytesStringPiece = oneofBytesStringPiece;
  }
  if (oneofEnum != null) {
    _result.oneofEnum = oneofEnum;
  }
  return _result;
}