@stanterprise/protobuf 0.0.10 → 0.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. package/README.md +24 -0
  2. package/dist/chunk-4NKV5THZ.mjs +1507 -0
  3. package/dist/chunk-4NKV5THZ.mjs.map +1 -0
  4. package/dist/chunk-BS6UMTC7.mjs +29 -0
  5. package/dist/chunk-BS6UMTC7.mjs.map +1 -0
  6. package/dist/chunk-F6CKBSG3.mjs +294 -0
  7. package/dist/chunk-F6CKBSG3.mjs.map +1 -0
  8. package/dist/chunk-JOH5DJAY.mjs +26 -0
  9. package/dist/chunk-JOH5DJAY.mjs.map +1 -0
  10. package/dist/chunk-OYBN67JW.mjs +52 -0
  11. package/dist/chunk-OYBN67JW.mjs.map +1 -0
  12. package/dist/chunk-S5P2S67H.mjs +20 -0
  13. package/dist/chunk-S5P2S67H.mjs.map +1 -0
  14. package/dist/chunk-TJOHFA2M.mjs +1217 -0
  15. package/dist/chunk-TJOHFA2M.mjs.map +1 -0
  16. package/dist/chunk-VBR2HXFF.mjs +179 -0
  17. package/dist/chunk-VBR2HXFF.mjs.map +1 -0
  18. package/dist/chunk-YYTEIJXG.mjs +22 -0
  19. package/dist/chunk-YYTEIJXG.mjs.map +1 -0
  20. package/dist/index.js +920 -1020
  21. package/dist/index.js.map +1 -1
  22. package/dist/index.mjs +14 -3248
  23. package/dist/index.mjs.map +1 -1
  24. package/dist/lib/testsystem/v1/entities/test_case.d.ts +36 -78
  25. package/dist/lib/testsystem/v1/entities/test_case.d.ts.map +1 -1
  26. package/dist/lib/testsystem/v1/entities/test_suite.d.ts +64 -101
  27. package/dist/lib/testsystem/v1/entities/test_suite.d.ts.map +1 -1
  28. package/dist/lib/testsystem/v1/events/events.d.ts +44 -0
  29. package/dist/lib/testsystem/v1/events/events.d.ts.map +1 -1
  30. package/dist/lib/testsystem/v1/observer/observer.d.ts +11 -0
  31. package/dist/lib/testsystem/v1/observer/observer.d.ts.map +1 -1
  32. package/dist/testsystem/index.d.ts +2 -0
  33. package/dist/testsystem/index.d.ts.map +1 -0
  34. package/dist/testsystem/index.js +3252 -0
  35. package/dist/testsystem/index.js.map +1 -0
  36. package/dist/testsystem/index.mjs +15 -0
  37. package/dist/testsystem/index.mjs.map +1 -0
  38. package/dist/testsystem/v1/common/index.d.ts +6 -0
  39. package/dist/testsystem/v1/common/index.d.ts.map +1 -0
  40. package/dist/testsystem/v1/common/index.js +212 -0
  41. package/dist/testsystem/v1/common/index.js.map +1 -0
  42. package/dist/testsystem/v1/common/index.mjs +10 -0
  43. package/dist/testsystem/v1/common/index.mjs.map +1 -0
  44. package/dist/testsystem/v1/entities/index.d.ts +9 -0
  45. package/dist/testsystem/v1/entities/index.d.ts.map +1 -0
  46. package/dist/testsystem/v1/entities/index.js +1704 -0
  47. package/dist/testsystem/v1/entities/index.js.map +1 -0
  48. package/dist/testsystem/v1/entities/index.mjs +13 -0
  49. package/dist/testsystem/v1/entities/index.mjs.map +1 -0
  50. package/dist/testsystem/v1/events/index.d.ts +26 -0
  51. package/dist/testsystem/v1/events/index.d.ts.map +1 -0
  52. package/dist/testsystem/v1/events/index.js +2933 -0
  53. package/dist/testsystem/v1/events/index.js.map +1 -0
  54. package/dist/testsystem/v1/events/index.mjs +32 -0
  55. package/dist/testsystem/v1/events/index.mjs.map +1 -0
  56. package/dist/testsystem/v1/index.d.ts +5 -0
  57. package/dist/testsystem/v1/index.d.ts.map +1 -0
  58. package/dist/testsystem/v1/index.js +3249 -0
  59. package/dist/testsystem/v1/index.js.map +1 -0
  60. package/dist/testsystem/v1/index.mjs +24 -0
  61. package/dist/testsystem/v1/index.mjs.map +1 -0
  62. package/dist/testsystem/v1/observer/index.d.ts +6 -0
  63. package/dist/testsystem/v1/observer/index.d.ts.map +1 -0
  64. package/dist/testsystem/v1/observer/index.js +3185 -0
  65. package/dist/testsystem/v1/observer/index.js.map +1 -0
  66. package/dist/testsystem/v1/observer/index.mjs +13 -0
  67. package/dist/testsystem/v1/observer/index.mjs.map +1 -0
  68. package/lib/testsystem/v1/entities/test_case.ts +169 -335
  69. package/lib/testsystem/v1/entities/test_suite.ts +261 -406
  70. package/lib/testsystem/v1/events/events.ts +182 -0
  71. package/lib/testsystem/v1/observer/observer.ts +13 -0
  72. package/package.json +31 -1
package/dist/index.js CHANGED
@@ -404,12 +404,12 @@ var testsystem2;
404
404
  ((v12) => {
405
405
  let entities;
406
406
  ((entities2) => {
407
- var _one_of_decls, _one_of_decls2, _one_of_decls3;
408
- const _TestCaseSpec = class _TestCaseSpec extends pb_14.Message {
407
+ var _one_of_decls, _one_of_decls2;
408
+ const _TestCaseRun = class _TestCaseRun extends pb_14.Message {
409
409
  constructor(data) {
410
410
  super();
411
411
  __privateAdd(this, _one_of_decls, []);
412
- pb_14.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [7], __privateGet(this, _one_of_decls));
412
+ pb_14.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [10, 13, 15], __privateGet(this, _one_of_decls));
413
413
  if (!Array.isArray(data) && typeof data == "object") {
414
414
  if ("id" in data && data.id != void 0) {
415
415
  this.id = data.id;
@@ -420,18 +420,54 @@ var testsystem2;
420
420
  if ("description" in data && data.description != void 0) {
421
421
  this.description = data.description;
422
422
  }
423
- if ("metadata" in data && data.metadata != void 0) {
424
- this.metadata = data.metadata;
423
+ if ("run_id" in data && data.run_id != void 0) {
424
+ this.run_id = data.run_id;
425
+ }
426
+ if ("test_suite_run_id" in data && data.test_suite_run_id != void 0) {
427
+ this.test_suite_run_id = data.test_suite_run_id;
425
428
  }
426
429
  if ("status" in data && data.status != void 0) {
427
430
  this.status = data.status;
428
431
  }
429
- if ("parent_suite_id" in data && data.parent_suite_id != void 0) {
430
- this.parent_suite_id = data.parent_suite_id;
432
+ if ("start_time" in data && data.start_time != void 0) {
433
+ this.start_time = data.start_time;
434
+ }
435
+ if ("end_time" in data && data.end_time != void 0) {
436
+ this.end_time = data.end_time;
437
+ }
438
+ if ("duration" in data && data.duration != void 0) {
439
+ this.duration = data.duration;
440
+ }
441
+ if ("attachments" in data && data.attachments != void 0) {
442
+ this.attachments = data.attachments;
443
+ }
444
+ if ("error_message" in data && data.error_message != void 0) {
445
+ this.error_message = data.error_message;
446
+ }
447
+ if ("stack_trace" in data && data.stack_trace != void 0) {
448
+ this.stack_trace = data.stack_trace;
449
+ }
450
+ if ("errors" in data && data.errors != void 0) {
451
+ this.errors = data.errors;
452
+ }
453
+ if ("metadata" in data && data.metadata != void 0) {
454
+ this.metadata = data.metadata;
431
455
  }
432
456
  if ("tags" in data && data.tags != void 0) {
433
457
  this.tags = data.tags;
434
458
  }
459
+ if ("location" in data && data.location != void 0) {
460
+ this.location = data.location;
461
+ }
462
+ if ("retry_count" in data && data.retry_count != void 0) {
463
+ this.retry_count = data.retry_count;
464
+ }
465
+ if ("retry_index" in data && data.retry_index != void 0) {
466
+ this.retry_index = data.retry_index;
467
+ }
468
+ if ("timeout" in data && data.timeout != void 0) {
469
+ this.timeout = data.timeout;
470
+ }
435
471
  }
436
472
  if (!this.metadata)
437
473
  this.metadata = /* @__PURE__ */ new Map();
@@ -454,32 +490,113 @@ var testsystem2;
454
490
  set description(value) {
455
491
  pb_14.Message.setField(this, 3, value);
456
492
  }
457
- get metadata() {
458
- return pb_14.Message.getField(this, 4);
493
+ get run_id() {
494
+ return pb_14.Message.getFieldWithDefault(this, 4, "");
459
495
  }
460
- set metadata(value) {
496
+ set run_id(value) {
461
497
  pb_14.Message.setField(this, 4, value);
462
498
  }
463
- get status() {
464
- return pb_14.Message.getFieldWithDefault(this, 5, testsystem.v1.common.TestStatus.UNKNOWN);
499
+ get test_suite_run_id() {
500
+ return pb_14.Message.getFieldWithDefault(this, 5, "");
465
501
  }
466
- set status(value) {
502
+ set test_suite_run_id(value) {
467
503
  pb_14.Message.setField(this, 5, value);
468
504
  }
469
- get parent_suite_id() {
470
- return pb_14.Message.getFieldWithDefault(this, 6, "");
505
+ get status() {
506
+ return pb_14.Message.getFieldWithDefault(this, 6, testsystem.v1.common.TestStatus.UNKNOWN);
471
507
  }
472
- set parent_suite_id(value) {
508
+ set status(value) {
473
509
  pb_14.Message.setField(this, 6, value);
474
510
  }
511
+ get start_time() {
512
+ return pb_14.Message.getWrapperField(this, google.protobuf.Timestamp, 7);
513
+ }
514
+ set start_time(value) {
515
+ pb_14.Message.setWrapperField(this, 7, value);
516
+ }
517
+ get has_start_time() {
518
+ return pb_14.Message.getField(this, 7) != null;
519
+ }
520
+ get end_time() {
521
+ return pb_14.Message.getWrapperField(this, google.protobuf.Timestamp, 8);
522
+ }
523
+ set end_time(value) {
524
+ pb_14.Message.setWrapperField(this, 8, value);
525
+ }
526
+ get has_end_time() {
527
+ return pb_14.Message.getField(this, 8) != null;
528
+ }
529
+ get duration() {
530
+ return pb_14.Message.getWrapperField(this, google2.protobuf.Duration, 9);
531
+ }
532
+ set duration(value) {
533
+ pb_14.Message.setWrapperField(this, 9, value);
534
+ }
535
+ get has_duration() {
536
+ return pb_14.Message.getField(this, 9) != null;
537
+ }
538
+ get attachments() {
539
+ return pb_14.Message.getRepeatedWrapperField(this, testsystem.v1.common.Attachment, 10);
540
+ }
541
+ set attachments(value) {
542
+ pb_14.Message.setRepeatedWrapperField(this, 10, value);
543
+ }
544
+ get error_message() {
545
+ return pb_14.Message.getFieldWithDefault(this, 11, "");
546
+ }
547
+ set error_message(value) {
548
+ pb_14.Message.setField(this, 11, value);
549
+ }
550
+ get stack_trace() {
551
+ return pb_14.Message.getFieldWithDefault(this, 12, "");
552
+ }
553
+ set stack_trace(value) {
554
+ pb_14.Message.setField(this, 12, value);
555
+ }
556
+ get errors() {
557
+ return pb_14.Message.getFieldWithDefault(this, 13, []);
558
+ }
559
+ set errors(value) {
560
+ pb_14.Message.setField(this, 13, value);
561
+ }
562
+ get metadata() {
563
+ return pb_14.Message.getField(this, 14);
564
+ }
565
+ set metadata(value) {
566
+ pb_14.Message.setField(this, 14, value);
567
+ }
475
568
  get tags() {
476
- return pb_14.Message.getFieldWithDefault(this, 7, []);
569
+ return pb_14.Message.getFieldWithDefault(this, 15, []);
477
570
  }
478
571
  set tags(value) {
479
- pb_14.Message.setField(this, 7, value);
572
+ pb_14.Message.setField(this, 15, value);
573
+ }
574
+ get location() {
575
+ return pb_14.Message.getFieldWithDefault(this, 16, "");
576
+ }
577
+ set location(value) {
578
+ pb_14.Message.setField(this, 16, value);
579
+ }
580
+ get retry_count() {
581
+ return pb_14.Message.getFieldWithDefault(this, 17, 0);
582
+ }
583
+ set retry_count(value) {
584
+ pb_14.Message.setField(this, 17, value);
585
+ }
586
+ get retry_index() {
587
+ return pb_14.Message.getFieldWithDefault(this, 18, 0);
588
+ }
589
+ set retry_index(value) {
590
+ pb_14.Message.setField(this, 18, value);
591
+ }
592
+ get timeout() {
593
+ return pb_14.Message.getFieldWithDefault(this, 19, 0);
594
+ }
595
+ set timeout(value) {
596
+ pb_14.Message.setField(this, 19, value);
480
597
  }
481
598
  static fromObject(data) {
482
- const message = new _TestCaseSpec({});
599
+ const message = new _TestCaseRun({});
483
600
  if (data.id != null) {
484
601
  message.id = data.id;
485
602
  }
@@ -489,18 +606,54 @@ var testsystem2;
489
606
  if (data.description != null) {
490
607
  message.description = data.description;
491
608
  }
492
- if (typeof data.metadata == "object") {
493
- message.metadata = new Map(Object.entries(data.metadata));
609
+ if (data.run_id != null) {
610
+ message.run_id = data.run_id;
611
+ }
612
+ if (data.test_suite_run_id != null) {
613
+ message.test_suite_run_id = data.test_suite_run_id;
494
614
  }
495
615
  if (data.status != null) {
496
616
  message.status = data.status;
497
617
  }
498
- if (data.parent_suite_id != null) {
499
- message.parent_suite_id = data.parent_suite_id;
618
+ if (data.start_time != null) {
619
+ message.start_time = google.protobuf.Timestamp.fromObject(data.start_time);
620
+ }
621
+ if (data.end_time != null) {
622
+ message.end_time = google.protobuf.Timestamp.fromObject(data.end_time);
623
+ }
624
+ if (data.duration != null) {
625
+ message.duration = google2.protobuf.Duration.fromObject(data.duration);
626
+ }
627
+ if (data.attachments != null) {
628
+ message.attachments = data.attachments.map((item) => testsystem.v1.common.Attachment.fromObject(item));
629
+ }
630
+ if (data.error_message != null) {
631
+ message.error_message = data.error_message;
632
+ }
633
+ if (data.stack_trace != null) {
634
+ message.stack_trace = data.stack_trace;
635
+ }
636
+ if (data.errors != null) {
637
+ message.errors = data.errors;
638
+ }
639
+ if (typeof data.metadata == "object") {
640
+ message.metadata = new Map(Object.entries(data.metadata));
500
641
  }
501
642
  if (data.tags != null) {
502
643
  message.tags = data.tags;
503
644
  }
645
+ if (data.location != null) {
646
+ message.location = data.location;
647
+ }
648
+ if (data.retry_count != null) {
649
+ message.retry_count = data.retry_count;
650
+ }
651
+ if (data.retry_index != null) {
652
+ message.retry_index = data.retry_index;
653
+ }
654
+ if (data.timeout != null) {
655
+ message.timeout = data.timeout;
656
+ }
504
657
  return message;
505
658
  }
506
659
  toObject() {
@@ -514,18 +667,54 @@ var testsystem2;
514
667
  if (this.description != null) {
515
668
  data.description = this.description;
516
669
  }
517
- if (this.metadata != null) {
518
- data.metadata = Object.fromEntries(this.metadata);
670
+ if (this.run_id != null) {
671
+ data.run_id = this.run_id;
672
+ }
673
+ if (this.test_suite_run_id != null) {
674
+ data.test_suite_run_id = this.test_suite_run_id;
519
675
  }
520
676
  if (this.status != null) {
521
677
  data.status = this.status;
522
678
  }
523
- if (this.parent_suite_id != null) {
524
- data.parent_suite_id = this.parent_suite_id;
679
+ if (this.start_time != null) {
680
+ data.start_time = this.start_time.toObject();
681
+ }
682
+ if (this.end_time != null) {
683
+ data.end_time = this.end_time.toObject();
684
+ }
685
+ if (this.duration != null) {
686
+ data.duration = this.duration.toObject();
687
+ }
688
+ if (this.attachments != null) {
689
+ data.attachments = this.attachments.map((item) => item.toObject());
690
+ }
691
+ if (this.error_message != null) {
692
+ data.error_message = this.error_message;
693
+ }
694
+ if (this.stack_trace != null) {
695
+ data.stack_trace = this.stack_trace;
696
+ }
697
+ if (this.errors != null) {
698
+ data.errors = this.errors;
699
+ }
700
+ if (this.metadata != null) {
701
+ data.metadata = Object.fromEntries(this.metadata);
525
702
  }
526
703
  if (this.tags != null) {
527
704
  data.tags = this.tags;
528
705
  }
706
+ if (this.location != null) {
707
+ data.location = this.location;
708
+ }
709
+ if (this.retry_count != null) {
710
+ data.retry_count = this.retry_count;
711
+ }
712
+ if (this.retry_index != null) {
713
+ data.retry_index = this.retry_index;
714
+ }
715
+ if (this.timeout != null) {
716
+ data.timeout = this.timeout;
717
+ }
529
718
  return data;
530
719
  }
531
720
  serialize(w) {
@@ -536,23 +725,47 @@ var testsystem2;
536
725
  writer.writeString(2, this.name);
537
726
  if (this.description.length)
538
727
  writer.writeString(3, this.description);
728
+ if (this.run_id.length)
729
+ writer.writeString(4, this.run_id);
730
+ if (this.test_suite_run_id.length)
731
+ writer.writeString(5, this.test_suite_run_id);
732
+ if (this.status != testsystem.v1.common.TestStatus.UNKNOWN)
733
+ writer.writeEnum(6, this.status);
734
+ if (this.has_start_time)
735
+ writer.writeMessage(7, this.start_time, () => this.start_time.serialize(writer));
736
+ if (this.has_end_time)
737
+ writer.writeMessage(8, this.end_time, () => this.end_time.serialize(writer));
738
+ if (this.has_duration)
739
+ writer.writeMessage(9, this.duration, () => this.duration.serialize(writer));
740
+ if (this.attachments.length)
741
+ writer.writeRepeatedMessage(10, this.attachments, (item) => item.serialize(writer));
742
+ if (this.error_message.length)
743
+ writer.writeString(11, this.error_message);
744
+ if (this.stack_trace.length)
745
+ writer.writeString(12, this.stack_trace);
746
+ if (this.errors.length)
747
+ writer.writeRepeatedString(13, this.errors);
539
748
  for (const [key, value] of this.metadata) {
540
- writer.writeMessage(4, this.metadata, () => {
749
+ writer.writeMessage(14, this.metadata, () => {
541
750
  writer.writeString(1, key);
542
751
  writer.writeString(2, value);
543
752
  });
544
753
  }
545
- if (this.status != testsystem.v1.common.TestStatus.UNKNOWN)
546
- writer.writeEnum(5, this.status);
547
- if (this.parent_suite_id.length)
548
- writer.writeString(6, this.parent_suite_id);
549
754
  if (this.tags.length)
550
- writer.writeRepeatedString(7, this.tags);
755
+ writer.writeRepeatedString(15, this.tags);
756
+ if (this.location.length)
757
+ writer.writeString(16, this.location);
758
+ if (this.retry_count != 0)
759
+ writer.writeInt32(17, this.retry_count);
760
+ if (this.retry_index != 0)
761
+ writer.writeInt32(18, this.retry_index);
762
+ if (this.timeout != 0)
763
+ writer.writeInt32(19, this.timeout);
551
764
  if (!w)
552
765
  return writer.getResultBuffer();
553
766
  }
554
767
  static deserialize(bytes) {
555
- const reader = bytes instanceof pb_14.BinaryReader ? bytes : new pb_14.BinaryReader(bytes), message = new _TestCaseSpec();
768
+ const reader = bytes instanceof pb_14.BinaryReader ? bytes : new pb_14.BinaryReader(bytes), message = new _TestCaseRun();
556
769
  while (reader.nextField()) {
557
770
  if (reader.isEndGroup())
558
771
  break;
@@ -567,89 +780,122 @@ var testsystem2;
567
780
  message.description = reader.readString();
568
781
  break;
569
782
  case 4:
570
- reader.readMessage(message, () => pb_14.Map.deserializeBinary(message.metadata, reader, reader.readString, reader.readString));
783
+ message.run_id = reader.readString();
571
784
  break;
572
785
  case 5:
573
- message.status = reader.readEnum();
786
+ message.test_suite_run_id = reader.readString();
574
787
  break;
575
788
  case 6:
576
- message.parent_suite_id = reader.readString();
789
+ message.status = reader.readEnum();
577
790
  break;
578
791
  case 7:
579
- pb_14.Message.addToRepeatedField(message, 7, reader.readString());
792
+ reader.readMessage(message.start_time, () => message.start_time = google.protobuf.Timestamp.deserialize(reader));
580
793
  break;
581
- default:
582
- reader.skipField();
583
- }
584
- }
585
- return message;
586
- }
587
- serializeBinary() {
588
- return this.serialize();
589
- }
590
- static deserializeBinary(bytes) {
591
- return _TestCaseSpec.deserialize(bytes);
592
- }
593
- };
794
+ case 8:
795
+ reader.readMessage(message.end_time, () => message.end_time = google.protobuf.Timestamp.deserialize(reader));
796
+ break;
797
+ case 9:
798
+ reader.readMessage(message.duration, () => message.duration = google2.protobuf.Duration.deserialize(reader));
799
+ break;
800
+ case 10:
801
+ reader.readMessage(message.attachments, () => pb_14.Message.addToRepeatedWrapperField(message, 10, testsystem.v1.common.Attachment.deserialize(reader), testsystem.v1.common.Attachment));
802
+ break;
803
+ case 11:
804
+ message.error_message = reader.readString();
805
+ break;
806
+ case 12:
807
+ message.stack_trace = reader.readString();
808
+ break;
809
+ case 13:
810
+ pb_14.Message.addToRepeatedField(message, 13, reader.readString());
811
+ break;
812
+ case 14:
813
+ reader.readMessage(message, () => pb_14.Map.deserializeBinary(message.metadata, reader, reader.readString, reader.readString));
814
+ break;
815
+ case 15:
816
+ pb_14.Message.addToRepeatedField(message, 15, reader.readString());
817
+ break;
818
+ case 16:
819
+ message.location = reader.readString();
820
+ break;
821
+ case 17:
822
+ message.retry_count = reader.readInt32();
823
+ break;
824
+ case 18:
825
+ message.retry_index = reader.readInt32();
826
+ break;
827
+ case 19:
828
+ message.timeout = reader.readInt32();
829
+ break;
830
+ default:
831
+ reader.skipField();
832
+ }
833
+ }
834
+ return message;
835
+ }
836
+ serializeBinary() {
837
+ return this.serialize();
838
+ }
839
+ static deserializeBinary(bytes) {
840
+ return _TestCaseRun.deserialize(bytes);
841
+ }
842
+ };
594
843
  _one_of_decls = new WeakMap();
595
- let TestCaseSpec = _TestCaseSpec;
596
- entities2.TestCaseSpec = _TestCaseSpec;
597
- const _TestCaseRun = class _TestCaseRun extends pb_14.Message {
844
+ let TestCaseRun = _TestCaseRun;
845
+ entities2.TestCaseRun = _TestCaseRun;
846
+ const _StepRun = class _StepRun extends pb_14.Message {
598
847
  constructor(data) {
599
848
  super();
600
849
  __privateAdd(this, _one_of_decls2, []);
601
- pb_14.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [8, 12, 13], __privateGet(this, _one_of_decls2));
850
+ pb_14.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [14], __privateGet(this, _one_of_decls2));
602
851
  if (!Array.isArray(data) && typeof data == "object") {
603
852
  if ("id" in data && data.id != void 0) {
604
853
  this.id = data.id;
605
854
  }
606
- if ("test_id" in data && data.test_id != void 0) {
607
- this.test_id = data.test_id;
608
- }
609
855
  if ("run_id" in data && data.run_id != void 0) {
610
856
  this.run_id = data.run_id;
611
857
  }
612
- if ("test_suite_run_id" in data && data.test_suite_run_id != void 0) {
613
- this.test_suite_run_id = data.test_suite_run_id;
858
+ if ("test_case_run_id" in data && data.test_case_run_id != void 0) {
859
+ this.test_case_run_id = data.test_case_run_id;
614
860
  }
615
861
  if ("title" in data && data.title != void 0) {
616
862
  this.title = data.title;
617
863
  }
618
- if ("status" in data && data.status != void 0) {
619
- this.status = data.status;
864
+ if ("description" in data && data.description != void 0) {
865
+ this.description = data.description;
620
866
  }
621
867
  if ("start_time" in data && data.start_time != void 0) {
622
868
  this.start_time = data.start_time;
623
869
  }
624
- if ("attachments" in data && data.attachments != void 0) {
625
- this.attachments = data.attachments;
626
- }
627
- if ("error_message" in data && data.error_message != void 0) {
628
- this.error_message = data.error_message;
870
+ if ("duration" in data && data.duration != void 0) {
871
+ this.duration = data.duration;
629
872
  }
630
- if ("stack_trace" in data && data.stack_trace != void 0) {
631
- this.stack_trace = data.stack_trace;
873
+ if ("type" in data && data.type != void 0) {
874
+ this.type = data.type;
632
875
  }
633
876
  if ("metadata" in data && data.metadata != void 0) {
634
877
  this.metadata = data.metadata;
635
878
  }
636
- if ("errors" in data && data.errors != void 0) {
637
- this.errors = data.errors;
879
+ if ("parent_step_id" in data && data.parent_step_id != void 0) {
880
+ this.parent_step_id = data.parent_step_id;
638
881
  }
639
- if ("actual_tags" in data && data.actual_tags != void 0) {
640
- this.actual_tags = data.actual_tags;
882
+ if ("worker_index" in data && data.worker_index != void 0) {
883
+ this.worker_index = data.worker_index;
641
884
  }
642
- if ("duration" in data && data.duration != void 0) {
643
- this.duration = data.duration;
885
+ if ("status" in data && data.status != void 0) {
886
+ this.status = data.status;
644
887
  }
645
- if ("retry_count" in data && data.retry_count != void 0) {
646
- this.retry_count = data.retry_count;
888
+ if ("error" in data && data.error != void 0) {
889
+ this.error = data.error;
647
890
  }
648
- if ("retry_index" in data && data.retry_index != void 0) {
649
- this.retry_index = data.retry_index;
891
+ if ("errors" in data && data.errors != void 0) {
892
+ this.errors = data.errors;
650
893
  }
651
- if ("timeout" in data && data.timeout != void 0) {
652
- this.timeout = data.timeout;
894
+ if ("location" in data && data.location != void 0) {
895
+ this.location = data.location;
896
+ }
897
+ if ("category" in data && data.category != void 0) {
898
+ this.category = data.category;
653
899
  }
654
900
  }
655
901
  if (!this.metadata)
@@ -661,880 +907,151 @@ var testsystem2;
661
907
  set id(value) {
662
908
  pb_14.Message.setField(this, 1, value);
663
909
  }
664
- get test_id() {
910
+ get run_id() {
665
911
  return pb_14.Message.getFieldWithDefault(this, 2, "");
666
912
  }
667
- set test_id(value) {
913
+ set run_id(value) {
668
914
  pb_14.Message.setField(this, 2, value);
669
915
  }
670
- get run_id() {
916
+ get test_case_run_id() {
671
917
  return pb_14.Message.getFieldWithDefault(this, 3, "");
672
918
  }
673
- set run_id(value) {
919
+ set test_case_run_id(value) {
674
920
  pb_14.Message.setField(this, 3, value);
675
921
  }
676
- get test_suite_run_id() {
922
+ get title() {
677
923
  return pb_14.Message.getFieldWithDefault(this, 4, "");
678
924
  }
679
- set test_suite_run_id(value) {
925
+ set title(value) {
680
926
  pb_14.Message.setField(this, 4, value);
681
927
  }
682
- get title() {
928
+ get description() {
683
929
  return pb_14.Message.getFieldWithDefault(this, 5, "");
684
930
  }
685
- set title(value) {
931
+ set description(value) {
686
932
  pb_14.Message.setField(this, 5, value);
687
933
  }
688
- get status() {
689
- return pb_14.Message.getFieldWithDefault(this, 6, testsystem.v1.common.TestStatus.UNKNOWN);
690
- }
691
- set status(value) {
692
- pb_14.Message.setField(this, 6, value);
693
- }
694
934
  get start_time() {
695
- return pb_14.Message.getWrapperField(this, google.protobuf.Timestamp, 7);
935
+ return pb_14.Message.getWrapperField(this, google.protobuf.Timestamp, 6);
696
936
  }
697
937
  set start_time(value) {
698
- pb_14.Message.setWrapperField(this, 7, value);
938
+ pb_14.Message.setWrapperField(this, 6, value);
699
939
  }
700
940
  get has_start_time() {
941
+ return pb_14.Message.getField(this, 6) != null;
942
+ }
943
+ get duration() {
944
+ return pb_14.Message.getWrapperField(this, google2.protobuf.Duration, 7);
945
+ }
946
+ set duration(value) {
947
+ pb_14.Message.setWrapperField(this, 7, value);
948
+ }
949
+ get has_duration() {
701
950
  return pb_14.Message.getField(this, 7) != null;
702
951
  }
703
- get attachments() {
704
- return pb_14.Message.getRepeatedWrapperField(this, testsystem.v1.common.Attachment, 8);
952
+ get type() {
953
+ return pb_14.Message.getFieldWithDefault(this, 8, "");
705
954
  }
706
- set attachments(value) {
707
- pb_14.Message.setRepeatedWrapperField(this, 8, value);
955
+ set type(value) {
956
+ pb_14.Message.setField(this, 8, value);
708
957
  }
709
- get error_message() {
710
- return pb_14.Message.getFieldWithDefault(this, 9, "");
958
+ get metadata() {
959
+ return pb_14.Message.getField(this, 9);
711
960
  }
712
- set error_message(value) {
961
+ set metadata(value) {
713
962
  pb_14.Message.setField(this, 9, value);
714
963
  }
715
- get stack_trace() {
964
+ get parent_step_id() {
716
965
  return pb_14.Message.getFieldWithDefault(this, 10, "");
717
966
  }
718
- set stack_trace(value) {
967
+ set parent_step_id(value) {
719
968
  pb_14.Message.setField(this, 10, value);
720
969
  }
721
- get metadata() {
722
- return pb_14.Message.getField(this, 11);
970
+ get worker_index() {
971
+ return pb_14.Message.getFieldWithDefault(this, 11, "");
723
972
  }
724
- set metadata(value) {
973
+ set worker_index(value) {
725
974
  pb_14.Message.setField(this, 11, value);
726
975
  }
727
- get errors() {
728
- return pb_14.Message.getFieldWithDefault(this, 12, []);
976
+ get status() {
977
+ return pb_14.Message.getFieldWithDefault(this, 12, testsystem.v1.common.TestStatus.UNKNOWN);
729
978
  }
730
- set errors(value) {
979
+ set status(value) {
731
980
  pb_14.Message.setField(this, 12, value);
732
981
  }
733
- get actual_tags() {
734
- return pb_14.Message.getFieldWithDefault(this, 13, []);
982
+ get error() {
983
+ return pb_14.Message.getFieldWithDefault(this, 13, "");
735
984
  }
736
- set actual_tags(value) {
985
+ set error(value) {
737
986
  pb_14.Message.setField(this, 13, value);
738
987
  }
739
- get duration() {
740
- return pb_14.Message.getWrapperField(this, google2.protobuf.Duration, 14);
741
- }
742
- set duration(value) {
743
- pb_14.Message.setWrapperField(this, 14, value);
988
+ get errors() {
989
+ return pb_14.Message.getFieldWithDefault(this, 14, []);
744
990
  }
745
- get has_duration() {
746
- return pb_14.Message.getField(this, 14) != null;
991
+ set errors(value) {
992
+ pb_14.Message.setField(this, 14, value);
747
993
  }
748
- get retry_count() {
749
- return pb_14.Message.getFieldWithDefault(this, 15, 0);
994
+ get location() {
995
+ return pb_14.Message.getFieldWithDefault(this, 15, "");
750
996
  }
751
- set retry_count(value) {
997
+ set location(value) {
752
998
  pb_14.Message.setField(this, 15, value);
753
999
  }
754
- get retry_index() {
755
- return pb_14.Message.getFieldWithDefault(this, 16, 0);
1000
+ get category() {
1001
+ return pb_14.Message.getFieldWithDefault(this, 16, "");
756
1002
  }
757
- set retry_index(value) {
1003
+ set category(value) {
758
1004
  pb_14.Message.setField(this, 16, value);
759
1005
  }
760
- get timeout() {
761
- return pb_14.Message.getFieldWithDefault(this, 17, 0);
762
- }
763
- set timeout(value) {
764
- pb_14.Message.setField(this, 17, value);
765
- }
766
1006
  static fromObject(data) {
767
- const message = new _TestCaseRun({});
1007
+ const message = new _StepRun({});
768
1008
  if (data.id != null) {
769
1009
  message.id = data.id;
770
1010
  }
771
- if (data.test_id != null) {
772
- message.test_id = data.test_id;
773
- }
774
1011
  if (data.run_id != null) {
775
1012
  message.run_id = data.run_id;
776
1013
  }
777
- if (data.test_suite_run_id != null) {
778
- message.test_suite_run_id = data.test_suite_run_id;
1014
+ if (data.test_case_run_id != null) {
1015
+ message.test_case_run_id = data.test_case_run_id;
779
1016
  }
780
1017
  if (data.title != null) {
781
1018
  message.title = data.title;
782
1019
  }
783
- if (data.status != null) {
784
- message.status = data.status;
1020
+ if (data.description != null) {
1021
+ message.description = data.description;
785
1022
  }
786
1023
  if (data.start_time != null) {
787
1024
  message.start_time = google.protobuf.Timestamp.fromObject(data.start_time);
788
1025
  }
789
- if (data.attachments != null) {
790
- message.attachments = data.attachments.map((item) => testsystem.v1.common.Attachment.fromObject(item));
791
- }
792
- if (data.error_message != null) {
793
- message.error_message = data.error_message;
794
- }
795
- if (data.stack_trace != null) {
796
- message.stack_trace = data.stack_trace;
797
- }
798
- if (typeof data.metadata == "object") {
799
- message.metadata = new Map(Object.entries(data.metadata));
800
- }
801
- if (data.errors != null) {
802
- message.errors = data.errors;
803
- }
804
- if (data.actual_tags != null) {
805
- message.actual_tags = data.actual_tags;
806
- }
807
1026
  if (data.duration != null) {
808
1027
  message.duration = google2.protobuf.Duration.fromObject(data.duration);
809
1028
  }
810
- if (data.retry_count != null) {
811
- message.retry_count = data.retry_count;
812
- }
813
- if (data.retry_index != null) {
814
- message.retry_index = data.retry_index;
815
- }
816
- if (data.timeout != null) {
817
- message.timeout = data.timeout;
818
- }
819
- return message;
820
- }
821
- toObject() {
822
- const data = {};
823
- if (this.id != null) {
824
- data.id = this.id;
825
- }
826
- if (this.test_id != null) {
827
- data.test_id = this.test_id;
828
- }
829
- if (this.run_id != null) {
830
- data.run_id = this.run_id;
831
- }
832
- if (this.test_suite_run_id != null) {
833
- data.test_suite_run_id = this.test_suite_run_id;
834
- }
835
- if (this.title != null) {
836
- data.title = this.title;
837
- }
838
- if (this.status != null) {
839
- data.status = this.status;
840
- }
841
- if (this.start_time != null) {
842
- data.start_time = this.start_time.toObject();
843
- }
844
- if (this.attachments != null) {
845
- data.attachments = this.attachments.map((item) => item.toObject());
1029
+ if (data.type != null) {
1030
+ message.type = data.type;
846
1031
  }
847
- if (this.error_message != null) {
848
- data.error_message = this.error_message;
1032
+ if (typeof data.metadata == "object") {
1033
+ message.metadata = new Map(Object.entries(data.metadata));
849
1034
  }
850
- if (this.stack_trace != null) {
851
- data.stack_trace = this.stack_trace;
852
- }
853
- if (this.metadata != null) {
854
- data.metadata = Object.fromEntries(this.metadata);
855
- }
856
- if (this.errors != null) {
857
- data.errors = this.errors;
858
- }
859
- if (this.actual_tags != null) {
860
- data.actual_tags = this.actual_tags;
861
- }
862
- if (this.duration != null) {
863
- data.duration = this.duration.toObject();
864
- }
865
- if (this.retry_count != null) {
866
- data.retry_count = this.retry_count;
867
- }
868
- if (this.retry_index != null) {
869
- data.retry_index = this.retry_index;
870
- }
871
- if (this.timeout != null) {
872
- data.timeout = this.timeout;
873
- }
874
- return data;
875
- }
876
- serialize(w) {
877
- const writer = w || new pb_14.BinaryWriter();
878
- if (this.id.length)
879
- writer.writeString(1, this.id);
880
- if (this.test_id.length)
881
- writer.writeString(2, this.test_id);
882
- if (this.run_id.length)
883
- writer.writeString(3, this.run_id);
884
- if (this.test_suite_run_id.length)
885
- writer.writeString(4, this.test_suite_run_id);
886
- if (this.title.length)
887
- writer.writeString(5, this.title);
888
- if (this.status != testsystem.v1.common.TestStatus.UNKNOWN)
889
- writer.writeEnum(6, this.status);
890
- if (this.has_start_time)
891
- writer.writeMessage(7, this.start_time, () => this.start_time.serialize(writer));
892
- if (this.attachments.length)
893
- writer.writeRepeatedMessage(8, this.attachments, (item) => item.serialize(writer));
894
- if (this.error_message.length)
895
- writer.writeString(9, this.error_message);
896
- if (this.stack_trace.length)
897
- writer.writeString(10, this.stack_trace);
898
- for (const [key, value] of this.metadata) {
899
- writer.writeMessage(11, this.metadata, () => {
900
- writer.writeString(1, key);
901
- writer.writeString(2, value);
902
- });
903
- }
904
- if (this.errors.length)
905
- writer.writeRepeatedString(12, this.errors);
906
- if (this.actual_tags.length)
907
- writer.writeRepeatedString(13, this.actual_tags);
908
- if (this.has_duration)
909
- writer.writeMessage(14, this.duration, () => this.duration.serialize(writer));
910
- if (this.retry_count != 0)
911
- writer.writeInt32(15, this.retry_count);
912
- if (this.retry_index != 0)
913
- writer.writeInt32(16, this.retry_index);
914
- if (this.timeout != 0)
915
- writer.writeInt32(17, this.timeout);
916
- if (!w)
917
- return writer.getResultBuffer();
918
- }
919
- static deserialize(bytes) {
920
- const reader = bytes instanceof pb_14.BinaryReader ? bytes : new pb_14.BinaryReader(bytes), message = new _TestCaseRun();
921
- while (reader.nextField()) {
922
- if (reader.isEndGroup())
923
- break;
924
- switch (reader.getFieldNumber()) {
925
- case 1:
926
- message.id = reader.readString();
927
- break;
928
- case 2:
929
- message.test_id = reader.readString();
930
- break;
931
- case 3:
932
- message.run_id = reader.readString();
933
- break;
934
- case 4:
935
- message.test_suite_run_id = reader.readString();
936
- break;
937
- case 5:
938
- message.title = reader.readString();
939
- break;
940
- case 6:
941
- message.status = reader.readEnum();
942
- break;
943
- case 7:
944
- reader.readMessage(message.start_time, () => message.start_time = google.protobuf.Timestamp.deserialize(reader));
945
- break;
946
- case 8:
947
- reader.readMessage(message.attachments, () => pb_14.Message.addToRepeatedWrapperField(message, 8, testsystem.v1.common.Attachment.deserialize(reader), testsystem.v1.common.Attachment));
948
- break;
949
- case 9:
950
- message.error_message = reader.readString();
951
- break;
952
- case 10:
953
- message.stack_trace = reader.readString();
954
- break;
955
- case 11:
956
- reader.readMessage(message, () => pb_14.Map.deserializeBinary(message.metadata, reader, reader.readString, reader.readString));
957
- break;
958
- case 12:
959
- pb_14.Message.addToRepeatedField(message, 12, reader.readString());
960
- break;
961
- case 13:
962
- pb_14.Message.addToRepeatedField(message, 13, reader.readString());
963
- break;
964
- case 14:
965
- reader.readMessage(message.duration, () => message.duration = google2.protobuf.Duration.deserialize(reader));
966
- break;
967
- case 15:
968
- message.retry_count = reader.readInt32();
969
- break;
970
- case 16:
971
- message.retry_index = reader.readInt32();
972
- break;
973
- case 17:
974
- message.timeout = reader.readInt32();
975
- break;
976
- default:
977
- reader.skipField();
978
- }
979
- }
980
- return message;
981
- }
982
- serializeBinary() {
983
- return this.serialize();
984
- }
985
- static deserializeBinary(bytes) {
986
- return _TestCaseRun.deserialize(bytes);
987
- }
988
- };
989
- _one_of_decls2 = new WeakMap();
990
- let TestCaseRun = _TestCaseRun;
991
- entities2.TestCaseRun = _TestCaseRun;
992
- const _StepRun = class _StepRun extends pb_14.Message {
993
- constructor(data) {
994
- super();
995
- __privateAdd(this, _one_of_decls3, []);
996
- pb_14.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [14], __privateGet(this, _one_of_decls3));
997
- if (!Array.isArray(data) && typeof data == "object") {
998
- if ("id" in data && data.id != void 0) {
999
- this.id = data.id;
1000
- }
1001
- if ("run_id" in data && data.run_id != void 0) {
1002
- this.run_id = data.run_id;
1003
- }
1004
- if ("test_case_run_id" in data && data.test_case_run_id != void 0) {
1005
- this.test_case_run_id = data.test_case_run_id;
1006
- }
1007
- if ("title" in data && data.title != void 0) {
1008
- this.title = data.title;
1009
- }
1010
- if ("description" in data && data.description != void 0) {
1011
- this.description = data.description;
1012
- }
1013
- if ("start_time" in data && data.start_time != void 0) {
1014
- this.start_time = data.start_time;
1015
- }
1016
- if ("duration" in data && data.duration != void 0) {
1017
- this.duration = data.duration;
1018
- }
1019
- if ("type" in data && data.type != void 0) {
1020
- this.type = data.type;
1021
- }
1022
- if ("metadata" in data && data.metadata != void 0) {
1023
- this.metadata = data.metadata;
1024
- }
1025
- if ("parent_step_id" in data && data.parent_step_id != void 0) {
1026
- this.parent_step_id = data.parent_step_id;
1027
- }
1028
- if ("worker_index" in data && data.worker_index != void 0) {
1029
- this.worker_index = data.worker_index;
1030
- }
1031
- if ("status" in data && data.status != void 0) {
1032
- this.status = data.status;
1033
- }
1034
- if ("error" in data && data.error != void 0) {
1035
- this.error = data.error;
1036
- }
1037
- if ("errors" in data && data.errors != void 0) {
1038
- this.errors = data.errors;
1039
- }
1040
- if ("location" in data && data.location != void 0) {
1041
- this.location = data.location;
1042
- }
1043
- if ("category" in data && data.category != void 0) {
1044
- this.category = data.category;
1045
- }
1046
- }
1047
- if (!this.metadata)
1048
- this.metadata = /* @__PURE__ */ new Map();
1049
- }
1050
- get id() {
1051
- return pb_14.Message.getFieldWithDefault(this, 1, "");
1052
- }
1053
- set id(value) {
1054
- pb_14.Message.setField(this, 1, value);
1055
- }
1056
- get run_id() {
1057
- return pb_14.Message.getFieldWithDefault(this, 2, "");
1058
- }
1059
- set run_id(value) {
1060
- pb_14.Message.setField(this, 2, value);
1061
- }
1062
- get test_case_run_id() {
1063
- return pb_14.Message.getFieldWithDefault(this, 3, "");
1064
- }
1065
- set test_case_run_id(value) {
1066
- pb_14.Message.setField(this, 3, value);
1067
- }
1068
- get title() {
1069
- return pb_14.Message.getFieldWithDefault(this, 4, "");
1070
- }
1071
- set title(value) {
1072
- pb_14.Message.setField(this, 4, value);
1073
- }
1074
- get description() {
1075
- return pb_14.Message.getFieldWithDefault(this, 5, "");
1076
- }
1077
- set description(value) {
1078
- pb_14.Message.setField(this, 5, value);
1079
- }
1080
- get start_time() {
1081
- return pb_14.Message.getWrapperField(this, google.protobuf.Timestamp, 6);
1082
- }
1083
- set start_time(value) {
1084
- pb_14.Message.setWrapperField(this, 6, value);
1085
- }
1086
- get has_start_time() {
1087
- return pb_14.Message.getField(this, 6) != null;
1088
- }
1089
- get duration() {
1090
- return pb_14.Message.getWrapperField(this, google2.protobuf.Duration, 7);
1091
- }
1092
- set duration(value) {
1093
- pb_14.Message.setWrapperField(this, 7, value);
1094
- }
1095
- get has_duration() {
1096
- return pb_14.Message.getField(this, 7) != null;
1097
- }
1098
- get type() {
1099
- return pb_14.Message.getFieldWithDefault(this, 8, "");
1100
- }
1101
- set type(value) {
1102
- pb_14.Message.setField(this, 8, value);
1103
- }
1104
- get metadata() {
1105
- return pb_14.Message.getField(this, 9);
1106
- }
1107
- set metadata(value) {
1108
- pb_14.Message.setField(this, 9, value);
1109
- }
1110
- get parent_step_id() {
1111
- return pb_14.Message.getFieldWithDefault(this, 10, "");
1112
- }
1113
- set parent_step_id(value) {
1114
- pb_14.Message.setField(this, 10, value);
1115
- }
1116
- get worker_index() {
1117
- return pb_14.Message.getFieldWithDefault(this, 11, "");
1118
- }
1119
- set worker_index(value) {
1120
- pb_14.Message.setField(this, 11, value);
1121
- }
1122
- get status() {
1123
- return pb_14.Message.getFieldWithDefault(this, 12, testsystem.v1.common.TestStatus.UNKNOWN);
1124
- }
1125
- set status(value) {
1126
- pb_14.Message.setField(this, 12, value);
1127
- }
1128
- get error() {
1129
- return pb_14.Message.getFieldWithDefault(this, 13, "");
1130
- }
1131
- set error(value) {
1132
- pb_14.Message.setField(this, 13, value);
1133
- }
1134
- get errors() {
1135
- return pb_14.Message.getFieldWithDefault(this, 14, []);
1136
- }
1137
- set errors(value) {
1138
- pb_14.Message.setField(this, 14, value);
1139
- }
1140
- get location() {
1141
- return pb_14.Message.getFieldWithDefault(this, 15, "");
1142
- }
1143
- set location(value) {
1144
- pb_14.Message.setField(this, 15, value);
1145
- }
1146
- get category() {
1147
- return pb_14.Message.getFieldWithDefault(this, 16, "");
1148
- }
1149
- set category(value) {
1150
- pb_14.Message.setField(this, 16, value);
1151
- }
1152
- static fromObject(data) {
1153
- const message = new _StepRun({});
1154
- if (data.id != null) {
1155
- message.id = data.id;
1156
- }
1157
- if (data.run_id != null) {
1158
- message.run_id = data.run_id;
1159
- }
1160
- if (data.test_case_run_id != null) {
1161
- message.test_case_run_id = data.test_case_run_id;
1162
- }
1163
- if (data.title != null) {
1164
- message.title = data.title;
1165
- }
1166
- if (data.description != null) {
1167
- message.description = data.description;
1168
- }
1169
- if (data.start_time != null) {
1170
- message.start_time = google.protobuf.Timestamp.fromObject(data.start_time);
1171
- }
1172
- if (data.duration != null) {
1173
- message.duration = google2.protobuf.Duration.fromObject(data.duration);
1174
- }
1175
- if (data.type != null) {
1176
- message.type = data.type;
1177
- }
1178
- if (typeof data.metadata == "object") {
1179
- message.metadata = new Map(Object.entries(data.metadata));
1180
- }
1181
- if (data.parent_step_id != null) {
1182
- message.parent_step_id = data.parent_step_id;
1183
- }
1184
- if (data.worker_index != null) {
1185
- message.worker_index = data.worker_index;
1186
- }
1187
- if (data.status != null) {
1188
- message.status = data.status;
1189
- }
1190
- if (data.error != null) {
1191
- message.error = data.error;
1192
- }
1193
- if (data.errors != null) {
1194
- message.errors = data.errors;
1195
- }
1196
- if (data.location != null) {
1197
- message.location = data.location;
1198
- }
1199
- if (data.category != null) {
1200
- message.category = data.category;
1201
- }
1202
- return message;
1203
- }
1204
- toObject() {
1205
- const data = {};
1206
- if (this.id != null) {
1207
- data.id = this.id;
1208
- }
1209
- if (this.run_id != null) {
1210
- data.run_id = this.run_id;
1211
- }
1212
- if (this.test_case_run_id != null) {
1213
- data.test_case_run_id = this.test_case_run_id;
1214
- }
1215
- if (this.title != null) {
1216
- data.title = this.title;
1217
- }
1218
- if (this.description != null) {
1219
- data.description = this.description;
1220
- }
1221
- if (this.start_time != null) {
1222
- data.start_time = this.start_time.toObject();
1223
- }
1224
- if (this.duration != null) {
1225
- data.duration = this.duration.toObject();
1226
- }
1227
- if (this.type != null) {
1228
- data.type = this.type;
1229
- }
1230
- if (this.metadata != null) {
1231
- data.metadata = Object.fromEntries(this.metadata);
1232
- }
1233
- if (this.parent_step_id != null) {
1234
- data.parent_step_id = this.parent_step_id;
1235
- }
1236
- if (this.worker_index != null) {
1237
- data.worker_index = this.worker_index;
1238
- }
1239
- if (this.status != null) {
1240
- data.status = this.status;
1241
- }
1242
- if (this.error != null) {
1243
- data.error = this.error;
1244
- }
1245
- if (this.errors != null) {
1246
- data.errors = this.errors;
1247
- }
1248
- if (this.location != null) {
1249
- data.location = this.location;
1250
- }
1251
- if (this.category != null) {
1252
- data.category = this.category;
1253
- }
1254
- return data;
1255
- }
1256
- serialize(w) {
1257
- const writer = w || new pb_14.BinaryWriter();
1258
- if (this.id.length)
1259
- writer.writeString(1, this.id);
1260
- if (this.run_id.length)
1261
- writer.writeString(2, this.run_id);
1262
- if (this.test_case_run_id.length)
1263
- writer.writeString(3, this.test_case_run_id);
1264
- if (this.title.length)
1265
- writer.writeString(4, this.title);
1266
- if (this.description.length)
1267
- writer.writeString(5, this.description);
1268
- if (this.has_start_time)
1269
- writer.writeMessage(6, this.start_time, () => this.start_time.serialize(writer));
1270
- if (this.has_duration)
1271
- writer.writeMessage(7, this.duration, () => this.duration.serialize(writer));
1272
- if (this.type.length)
1273
- writer.writeString(8, this.type);
1274
- for (const [key, value] of this.metadata) {
1275
- writer.writeMessage(9, this.metadata, () => {
1276
- writer.writeString(1, key);
1277
- writer.writeString(2, value);
1278
- });
1279
- }
1280
- if (this.parent_step_id.length)
1281
- writer.writeString(10, this.parent_step_id);
1282
- if (this.worker_index.length)
1283
- writer.writeString(11, this.worker_index);
1284
- if (this.status != testsystem.v1.common.TestStatus.UNKNOWN)
1285
- writer.writeEnum(12, this.status);
1286
- if (this.error.length)
1287
- writer.writeString(13, this.error);
1288
- if (this.errors.length)
1289
- writer.writeRepeatedString(14, this.errors);
1290
- if (this.location.length)
1291
- writer.writeString(15, this.location);
1292
- if (this.category.length)
1293
- writer.writeString(16, this.category);
1294
- if (!w)
1295
- return writer.getResultBuffer();
1296
- }
1297
- static deserialize(bytes) {
1298
- const reader = bytes instanceof pb_14.BinaryReader ? bytes : new pb_14.BinaryReader(bytes), message = new _StepRun();
1299
- while (reader.nextField()) {
1300
- if (reader.isEndGroup())
1301
- break;
1302
- switch (reader.getFieldNumber()) {
1303
- case 1:
1304
- message.id = reader.readString();
1305
- break;
1306
- case 2:
1307
- message.run_id = reader.readString();
1308
- break;
1309
- case 3:
1310
- message.test_case_run_id = reader.readString();
1311
- break;
1312
- case 4:
1313
- message.title = reader.readString();
1314
- break;
1315
- case 5:
1316
- message.description = reader.readString();
1317
- break;
1318
- case 6:
1319
- reader.readMessage(message.start_time, () => message.start_time = google.protobuf.Timestamp.deserialize(reader));
1320
- break;
1321
- case 7:
1322
- reader.readMessage(message.duration, () => message.duration = google2.protobuf.Duration.deserialize(reader));
1323
- break;
1324
- case 8:
1325
- message.type = reader.readString();
1326
- break;
1327
- case 9:
1328
- reader.readMessage(message, () => pb_14.Map.deserializeBinary(message.metadata, reader, reader.readString, reader.readString));
1329
- break;
1330
- case 10:
1331
- message.parent_step_id = reader.readString();
1332
- break;
1333
- case 11:
1334
- message.worker_index = reader.readString();
1335
- break;
1336
- case 12:
1337
- message.status = reader.readEnum();
1338
- break;
1339
- case 13:
1340
- message.error = reader.readString();
1341
- break;
1342
- case 14:
1343
- pb_14.Message.addToRepeatedField(message, 14, reader.readString());
1344
- break;
1345
- case 15:
1346
- message.location = reader.readString();
1347
- break;
1348
- case 16:
1349
- message.category = reader.readString();
1350
- break;
1351
- default:
1352
- reader.skipField();
1353
- }
1354
- }
1355
- return message;
1356
- }
1357
- serializeBinary() {
1358
- return this.serialize();
1359
- }
1360
- static deserializeBinary(bytes) {
1361
- return _StepRun.deserialize(bytes);
1362
- }
1363
- };
1364
- _one_of_decls3 = new WeakMap();
1365
- let StepRun = _StepRun;
1366
- entities2.StepRun = _StepRun;
1367
- })(entities = v12.entities || (v12.entities = {}));
1368
- })(v1 = testsystem7.v1 || (testsystem7.v1 = {}));
1369
- })(testsystem2 || (testsystem2 = {}));
1370
-
1371
- // lib/testsystem/v1/entities/test_suite.ts
1372
- var pb_15 = __toESM(require("google-protobuf"));
1373
- var testsystem3;
1374
- ((testsystem7) => {
1375
- let v1;
1376
- ((v12) => {
1377
- let entities;
1378
- ((entities2) => {
1379
- var _one_of_decls, _one_of_decls2;
1380
- let SuiteType;
1381
- ((SuiteType2) => {
1382
- SuiteType2[SuiteType2["ROOT"] = 0] = "ROOT";
1383
- SuiteType2[SuiteType2["PROJECT"] = 1] = "PROJECT";
1384
- SuiteType2[SuiteType2["SUBSUITE"] = 2] = "SUBSUITE";
1385
- })(SuiteType = entities2.SuiteType || (entities2.SuiteType = {}));
1386
- const _TestSuiteRun = class _TestSuiteRun extends pb_15.Message {
1387
- constructor(data) {
1388
- super();
1389
- __privateAdd(this, _one_of_decls, []);
1390
- pb_15.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], __privateGet(this, _one_of_decls));
1391
- if (!Array.isArray(data) && typeof data == "object") {
1392
- if ("id" in data && data.id != void 0) {
1393
- this.id = data.id;
1394
- }
1395
- if ("name" in data && data.name != void 0) {
1396
- this.name = data.name;
1397
- }
1398
- if ("description" in data && data.description != void 0) {
1399
- this.description = data.description;
1400
- }
1401
- if ("start_time" in data && data.start_time != void 0) {
1402
- this.start_time = data.start_time;
1403
- }
1404
- if ("end_time" in data && data.end_time != void 0) {
1405
- this.end_time = data.end_time;
1406
- }
1407
- if ("duration" in data && data.duration != void 0) {
1408
- this.duration = data.duration;
1409
- }
1410
- if ("status" in data && data.status != void 0) {
1411
- this.status = data.status;
1412
- }
1413
- if ("metadata" in data && data.metadata != void 0) {
1414
- this.metadata = data.metadata;
1415
- }
1416
- if ("test_suite_spec_id" in data && data.test_suite_spec_id != void 0) {
1417
- this.test_suite_spec_id = data.test_suite_spec_id;
1418
- }
1419
- if ("initiated_by" in data && data.initiated_by != void 0) {
1420
- this.initiated_by = data.initiated_by;
1421
- }
1422
- if ("project_name" in data && data.project_name != void 0) {
1423
- this.project_name = data.project_name;
1424
- }
1425
- }
1426
- if (!this.metadata)
1427
- this.metadata = /* @__PURE__ */ new Map();
1428
- }
1429
- get id() {
1430
- return pb_15.Message.getFieldWithDefault(this, 1, "");
1431
- }
1432
- set id(value) {
1433
- pb_15.Message.setField(this, 1, value);
1434
- }
1435
- get name() {
1436
- return pb_15.Message.getFieldWithDefault(this, 2, "");
1437
- }
1438
- set name(value) {
1439
- pb_15.Message.setField(this, 2, value);
1440
- }
1441
- get description() {
1442
- return pb_15.Message.getFieldWithDefault(this, 3, "");
1443
- }
1444
- set description(value) {
1445
- pb_15.Message.setField(this, 3, value);
1446
- }
1447
- get start_time() {
1448
- return pb_15.Message.getWrapperField(this, google.protobuf.Timestamp, 4);
1449
- }
1450
- set start_time(value) {
1451
- pb_15.Message.setWrapperField(this, 4, value);
1452
- }
1453
- get has_start_time() {
1454
- return pb_15.Message.getField(this, 4) != null;
1455
- }
1456
- get end_time() {
1457
- return pb_15.Message.getWrapperField(this, google.protobuf.Timestamp, 5);
1458
- }
1459
- set end_time(value) {
1460
- pb_15.Message.setWrapperField(this, 5, value);
1461
- }
1462
- get has_end_time() {
1463
- return pb_15.Message.getField(this, 5) != null;
1464
- }
1465
- get duration() {
1466
- return pb_15.Message.getWrapperField(this, google2.protobuf.Duration, 6);
1467
- }
1468
- set duration(value) {
1469
- pb_15.Message.setWrapperField(this, 6, value);
1470
- }
1471
- get has_duration() {
1472
- return pb_15.Message.getField(this, 6) != null;
1473
- }
1474
- get status() {
1475
- return pb_15.Message.getFieldWithDefault(this, 7, testsystem.v1.common.TestStatus.UNKNOWN);
1476
- }
1477
- set status(value) {
1478
- pb_15.Message.setField(this, 7, value);
1479
- }
1480
- get metadata() {
1481
- return pb_15.Message.getField(this, 8);
1482
- }
1483
- set metadata(value) {
1484
- pb_15.Message.setField(this, 8, value);
1485
- }
1486
- get test_suite_spec_id() {
1487
- return pb_15.Message.getFieldWithDefault(this, 9, "");
1488
- }
1489
- set test_suite_spec_id(value) {
1490
- pb_15.Message.setField(this, 9, value);
1491
- }
1492
- get initiated_by() {
1493
- return pb_15.Message.getFieldWithDefault(this, 10, "");
1494
- }
1495
- set initiated_by(value) {
1496
- pb_15.Message.setField(this, 10, value);
1497
- }
1498
- get project_name() {
1499
- return pb_15.Message.getFieldWithDefault(this, 11, "");
1500
- }
1501
- set project_name(value) {
1502
- pb_15.Message.setField(this, 11, value);
1503
- }
1504
- static fromObject(data) {
1505
- const message = new _TestSuiteRun({});
1506
- if (data.id != null) {
1507
- message.id = data.id;
1508
- }
1509
- if (data.name != null) {
1510
- message.name = data.name;
1511
- }
1512
- if (data.description != null) {
1513
- message.description = data.description;
1514
- }
1515
- if (data.start_time != null) {
1516
- message.start_time = google.protobuf.Timestamp.fromObject(data.start_time);
1517
- }
1518
- if (data.end_time != null) {
1519
- message.end_time = google.protobuf.Timestamp.fromObject(data.end_time);
1035
+ if (data.parent_step_id != null) {
1036
+ message.parent_step_id = data.parent_step_id;
1520
1037
  }
1521
- if (data.duration != null) {
1522
- message.duration = google2.protobuf.Duration.fromObject(data.duration);
1038
+ if (data.worker_index != null) {
1039
+ message.worker_index = data.worker_index;
1523
1040
  }
1524
1041
  if (data.status != null) {
1525
1042
  message.status = data.status;
1526
1043
  }
1527
- if (typeof data.metadata == "object") {
1528
- message.metadata = new Map(Object.entries(data.metadata));
1044
+ if (data.error != null) {
1045
+ message.error = data.error;
1529
1046
  }
1530
- if (data.test_suite_spec_id != null) {
1531
- message.test_suite_spec_id = data.test_suite_spec_id;
1047
+ if (data.errors != null) {
1048
+ message.errors = data.errors;
1532
1049
  }
1533
- if (data.initiated_by != null) {
1534
- message.initiated_by = data.initiated_by;
1050
+ if (data.location != null) {
1051
+ message.location = data.location;
1535
1052
  }
1536
- if (data.project_name != null) {
1537
- message.project_name = data.project_name;
1053
+ if (data.category != null) {
1054
+ message.category = data.category;
1538
1055
  }
1539
1056
  return message;
1540
1057
  }
@@ -1543,8 +1060,14 @@ var testsystem3;
1543
1060
  if (this.id != null) {
1544
1061
  data.id = this.id;
1545
1062
  }
1546
- if (this.name != null) {
1547
- data.name = this.name;
1063
+ if (this.run_id != null) {
1064
+ data.run_id = this.run_id;
1065
+ }
1066
+ if (this.test_case_run_id != null) {
1067
+ data.test_case_run_id = this.test_case_run_id;
1068
+ }
1069
+ if (this.title != null) {
1070
+ data.title = this.title;
1548
1071
  }
1549
1072
  if (this.description != null) {
1550
1073
  data.description = this.description;
@@ -1552,62 +1075,81 @@ var testsystem3;
1552
1075
  if (this.start_time != null) {
1553
1076
  data.start_time = this.start_time.toObject();
1554
1077
  }
1555
- if (this.end_time != null) {
1556
- data.end_time = this.end_time.toObject();
1557
- }
1558
1078
  if (this.duration != null) {
1559
1079
  data.duration = this.duration.toObject();
1560
1080
  }
1561
- if (this.status != null) {
1562
- data.status = this.status;
1081
+ if (this.type != null) {
1082
+ data.type = this.type;
1563
1083
  }
1564
1084
  if (this.metadata != null) {
1565
1085
  data.metadata = Object.fromEntries(this.metadata);
1566
1086
  }
1567
- if (this.test_suite_spec_id != null) {
1568
- data.test_suite_spec_id = this.test_suite_spec_id;
1087
+ if (this.parent_step_id != null) {
1088
+ data.parent_step_id = this.parent_step_id;
1569
1089
  }
1570
- if (this.initiated_by != null) {
1571
- data.initiated_by = this.initiated_by;
1090
+ if (this.worker_index != null) {
1091
+ data.worker_index = this.worker_index;
1092
+ }
1093
+ if (this.status != null) {
1094
+ data.status = this.status;
1095
+ }
1096
+ if (this.error != null) {
1097
+ data.error = this.error;
1098
+ }
1099
+ if (this.errors != null) {
1100
+ data.errors = this.errors;
1572
1101
  }
1573
- if (this.project_name != null) {
1574
- data.project_name = this.project_name;
1102
+ if (this.location != null) {
1103
+ data.location = this.location;
1104
+ }
1105
+ if (this.category != null) {
1106
+ data.category = this.category;
1575
1107
  }
1576
1108
  return data;
1577
1109
  }
1578
1110
  serialize(w) {
1579
- const writer = w || new pb_15.BinaryWriter();
1111
+ const writer = w || new pb_14.BinaryWriter();
1580
1112
  if (this.id.length)
1581
1113
  writer.writeString(1, this.id);
1582
- if (this.name.length)
1583
- writer.writeString(2, this.name);
1114
+ if (this.run_id.length)
1115
+ writer.writeString(2, this.run_id);
1116
+ if (this.test_case_run_id.length)
1117
+ writer.writeString(3, this.test_case_run_id);
1118
+ if (this.title.length)
1119
+ writer.writeString(4, this.title);
1584
1120
  if (this.description.length)
1585
- writer.writeString(3, this.description);
1121
+ writer.writeString(5, this.description);
1586
1122
  if (this.has_start_time)
1587
- writer.writeMessage(4, this.start_time, () => this.start_time.serialize(writer));
1588
- if (this.has_end_time)
1589
- writer.writeMessage(5, this.end_time, () => this.end_time.serialize(writer));
1123
+ writer.writeMessage(6, this.start_time, () => this.start_time.serialize(writer));
1590
1124
  if (this.has_duration)
1591
- writer.writeMessage(6, this.duration, () => this.duration.serialize(writer));
1592
- if (this.status != testsystem.v1.common.TestStatus.UNKNOWN)
1593
- writer.writeEnum(7, this.status);
1125
+ writer.writeMessage(7, this.duration, () => this.duration.serialize(writer));
1126
+ if (this.type.length)
1127
+ writer.writeString(8, this.type);
1594
1128
  for (const [key, value] of this.metadata) {
1595
- writer.writeMessage(8, this.metadata, () => {
1129
+ writer.writeMessage(9, this.metadata, () => {
1596
1130
  writer.writeString(1, key);
1597
1131
  writer.writeString(2, value);
1598
1132
  });
1599
1133
  }
1600
- if (this.test_suite_spec_id.length)
1601
- writer.writeString(9, this.test_suite_spec_id);
1602
- if (this.initiated_by.length)
1603
- writer.writeString(10, this.initiated_by);
1604
- if (this.project_name.length)
1605
- writer.writeString(11, this.project_name);
1134
+ if (this.parent_step_id.length)
1135
+ writer.writeString(10, this.parent_step_id);
1136
+ if (this.worker_index.length)
1137
+ writer.writeString(11, this.worker_index);
1138
+ if (this.status != testsystem.v1.common.TestStatus.UNKNOWN)
1139
+ writer.writeEnum(12, this.status);
1140
+ if (this.error.length)
1141
+ writer.writeString(13, this.error);
1142
+ if (this.errors.length)
1143
+ writer.writeRepeatedString(14, this.errors);
1144
+ if (this.location.length)
1145
+ writer.writeString(15, this.location);
1146
+ if (this.category.length)
1147
+ writer.writeString(16, this.category);
1606
1148
  if (!w)
1607
1149
  return writer.getResultBuffer();
1608
1150
  }
1609
1151
  static deserialize(bytes) {
1610
- const reader = bytes instanceof pb_15.BinaryReader ? bytes : new pb_15.BinaryReader(bytes), message = new _TestSuiteRun();
1152
+ const reader = bytes instanceof pb_14.BinaryReader ? bytes : new pb_14.BinaryReader(bytes), message = new _StepRun();
1611
1153
  while (reader.nextField()) {
1612
1154
  if (reader.isEndGroup())
1613
1155
  break;
@@ -1616,34 +1158,49 @@ var testsystem3;
1616
1158
  message.id = reader.readString();
1617
1159
  break;
1618
1160
  case 2:
1619
- message.name = reader.readString();
1161
+ message.run_id = reader.readString();
1620
1162
  break;
1621
1163
  case 3:
1622
- message.description = reader.readString();
1164
+ message.test_case_run_id = reader.readString();
1623
1165
  break;
1624
1166
  case 4:
1625
- reader.readMessage(message.start_time, () => message.start_time = google.protobuf.Timestamp.deserialize(reader));
1167
+ message.title = reader.readString();
1626
1168
  break;
1627
1169
  case 5:
1628
- reader.readMessage(message.end_time, () => message.end_time = google.protobuf.Timestamp.deserialize(reader));
1170
+ message.description = reader.readString();
1629
1171
  break;
1630
1172
  case 6:
1631
- reader.readMessage(message.duration, () => message.duration = google2.protobuf.Duration.deserialize(reader));
1173
+ reader.readMessage(message.start_time, () => message.start_time = google.protobuf.Timestamp.deserialize(reader));
1632
1174
  break;
1633
1175
  case 7:
1634
- message.status = reader.readEnum();
1176
+ reader.readMessage(message.duration, () => message.duration = google2.protobuf.Duration.deserialize(reader));
1635
1177
  break;
1636
1178
  case 8:
1637
- reader.readMessage(message, () => pb_15.Map.deserializeBinary(message.metadata, reader, reader.readString, reader.readString));
1179
+ message.type = reader.readString();
1638
1180
  break;
1639
1181
  case 9:
1640
- message.test_suite_spec_id = reader.readString();
1182
+ reader.readMessage(message, () => pb_14.Map.deserializeBinary(message.metadata, reader, reader.readString, reader.readString));
1641
1183
  break;
1642
1184
  case 10:
1643
- message.initiated_by = reader.readString();
1185
+ message.parent_step_id = reader.readString();
1644
1186
  break;
1645
1187
  case 11:
1646
- message.project_name = reader.readString();
1188
+ message.worker_index = reader.readString();
1189
+ break;
1190
+ case 12:
1191
+ message.status = reader.readEnum();
1192
+ break;
1193
+ case 13:
1194
+ message.error = reader.readString();
1195
+ break;
1196
+ case 14:
1197
+ pb_14.Message.addToRepeatedField(message, 14, reader.readString());
1198
+ break;
1199
+ case 15:
1200
+ message.location = reader.readString();
1201
+ break;
1202
+ case 16:
1203
+ message.category = reader.readString();
1647
1204
  break;
1648
1205
  default:
1649
1206
  reader.skipField();
@@ -1655,17 +1212,36 @@ var testsystem3;
1655
1212
  return this.serialize();
1656
1213
  }
1657
1214
  static deserializeBinary(bytes) {
1658
- return _TestSuiteRun.deserialize(bytes);
1215
+ return _StepRun.deserialize(bytes);
1659
1216
  }
1660
1217
  };
1661
- _one_of_decls = new WeakMap();
1662
- let TestSuiteRun = _TestSuiteRun;
1663
- entities2.TestSuiteRun = _TestSuiteRun;
1664
- const _TestSuiteSpec = class _TestSuiteSpec extends pb_15.Message {
1218
+ _one_of_decls2 = new WeakMap();
1219
+ let StepRun = _StepRun;
1220
+ entities2.StepRun = _StepRun;
1221
+ })(entities = v12.entities || (v12.entities = {}));
1222
+ })(v1 = testsystem7.v1 || (testsystem7.v1 = {}));
1223
+ })(testsystem2 || (testsystem2 = {}));
1224
+
1225
+ // lib/testsystem/v1/entities/test_suite.ts
1226
+ var pb_15 = __toESM(require("google-protobuf"));
1227
+ var testsystem3;
1228
+ ((testsystem7) => {
1229
+ let v1;
1230
+ ((v12) => {
1231
+ let entities;
1232
+ ((entities2) => {
1233
+ var _one_of_decls;
1234
+ let SuiteType;
1235
+ ((SuiteType2) => {
1236
+ SuiteType2[SuiteType2["ROOT"] = 0] = "ROOT";
1237
+ SuiteType2[SuiteType2["PROJECT"] = 1] = "PROJECT";
1238
+ SuiteType2[SuiteType2["SUBSUITE"] = 2] = "SUBSUITE";
1239
+ })(SuiteType = entities2.SuiteType || (entities2.SuiteType = {}));
1240
+ const _TestSuiteRun = class _TestSuiteRun extends pb_15.Message {
1665
1241
  constructor(data) {
1666
1242
  super();
1667
- __privateAdd(this, _one_of_decls2, []);
1668
- pb_15.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [4, 5], __privateGet(this, _one_of_decls2));
1243
+ __privateAdd(this, _one_of_decls, []);
1244
+ pb_15.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [13, 14, 19, 20], __privateGet(this, _one_of_decls));
1669
1245
  if (!Array.isArray(data) && typeof data == "object") {
1670
1246
  if ("id" in data && data.id != void 0) {
1671
1247
  this.id = data.id;
@@ -1673,38 +1249,59 @@ var testsystem3;
1673
1249
  if ("name" in data && data.name != void 0) {
1674
1250
  this.name = data.name;
1675
1251
  }
1252
+ if ("description" in data && data.description != void 0) {
1253
+ this.description = data.description;
1254
+ }
1676
1255
  if ("run_id" in data && data.run_id != void 0) {
1677
1256
  this.run_id = data.run_id;
1678
1257
  }
1679
- if ("test_spec_ids" in data && data.test_spec_ids != void 0) {
1680
- this.test_spec_ids = data.test_spec_ids;
1258
+ if ("start_time" in data && data.start_time != void 0) {
1259
+ this.start_time = data.start_time;
1681
1260
  }
1682
- if ("sub_suite_ids" in data && data.sub_suite_ids != void 0) {
1683
- this.sub_suite_ids = data.sub_suite_ids;
1261
+ if ("end_time" in data && data.end_time != void 0) {
1262
+ this.end_time = data.end_time;
1684
1263
  }
1685
- if ("description" in data && data.description != void 0) {
1686
- this.description = data.description;
1264
+ if ("duration" in data && data.duration != void 0) {
1265
+ this.duration = data.duration;
1687
1266
  }
1688
- if ("location" in data && data.location != void 0) {
1689
- this.location = data.location;
1267
+ if ("status" in data && data.status != void 0) {
1268
+ this.status = data.status;
1690
1269
  }
1691
1270
  if ("metadata" in data && data.metadata != void 0) {
1692
1271
  this.metadata = data.metadata;
1693
1272
  }
1273
+ if ("location" in data && data.location != void 0) {
1274
+ this.location = data.location;
1275
+ }
1694
1276
  if ("type" in data && data.type != void 0) {
1695
1277
  this.type = data.type;
1696
1278
  }
1697
1279
  if ("parent_suite_id" in data && data.parent_suite_id != void 0) {
1698
1280
  this.parent_suite_id = data.parent_suite_id;
1699
1281
  }
1282
+ if ("test_case_ids" in data && data.test_case_ids != void 0) {
1283
+ this.test_case_ids = data.test_case_ids;
1284
+ }
1285
+ if ("sub_suite_ids" in data && data.sub_suite_ids != void 0) {
1286
+ this.sub_suite_ids = data.sub_suite_ids;
1287
+ }
1288
+ if ("project" in data && data.project != void 0) {
1289
+ this.project = data.project;
1290
+ }
1291
+ if ("initiated_by" in data && data.initiated_by != void 0) {
1292
+ this.initiated_by = data.initiated_by;
1293
+ }
1700
1294
  if ("author" in data && data.author != void 0) {
1701
1295
  this.author = data.author;
1702
1296
  }
1703
1297
  if ("owner" in data && data.owner != void 0) {
1704
1298
  this.owner = data.owner;
1705
1299
  }
1706
- if ("project" in data && data.project != void 0) {
1707
- this.project = data.project;
1300
+ if ("test_cases" in data && data.test_cases != void 0) {
1301
+ this.test_cases = data.test_cases;
1302
+ }
1303
+ if ("sub_suites" in data && data.sub_suites != void 0) {
1304
+ this.sub_suites = data.sub_suites;
1708
1305
  }
1709
1306
  }
1710
1307
  if (!this.metadata)
@@ -1722,112 +1319,184 @@ var testsystem3;
1722
1319
  set name(value) {
1723
1320
  pb_15.Message.setField(this, 2, value);
1724
1321
  }
1725
- get run_id() {
1322
+ get description() {
1726
1323
  return pb_15.Message.getFieldWithDefault(this, 3, "");
1727
1324
  }
1728
- set run_id(value) {
1325
+ set description(value) {
1729
1326
  pb_15.Message.setField(this, 3, value);
1730
1327
  }
1731
- get test_spec_ids() {
1732
- return pb_15.Message.getFieldWithDefault(this, 4, []);
1328
+ get run_id() {
1329
+ return pb_15.Message.getFieldWithDefault(this, 4, "");
1733
1330
  }
1734
- set test_spec_ids(value) {
1331
+ set run_id(value) {
1735
1332
  pb_15.Message.setField(this, 4, value);
1736
1333
  }
1737
- get sub_suite_ids() {
1738
- return pb_15.Message.getFieldWithDefault(this, 5, []);
1334
+ get start_time() {
1335
+ return pb_15.Message.getWrapperField(this, google.protobuf.Timestamp, 5);
1739
1336
  }
1740
- set sub_suite_ids(value) {
1741
- pb_15.Message.setField(this, 5, value);
1337
+ set start_time(value) {
1338
+ pb_15.Message.setWrapperField(this, 5, value);
1742
1339
  }
1743
- get description() {
1744
- return pb_15.Message.getFieldWithDefault(this, 6, "");
1340
+ get has_start_time() {
1341
+ return pb_15.Message.getField(this, 5) != null;
1745
1342
  }
1746
- set description(value) {
1747
- pb_15.Message.setField(this, 6, value);
1343
+ get end_time() {
1344
+ return pb_15.Message.getWrapperField(this, google.protobuf.Timestamp, 6);
1748
1345
  }
1749
- get location() {
1750
- return pb_15.Message.getFieldWithDefault(this, 7, "");
1346
+ set end_time(value) {
1347
+ pb_15.Message.setWrapperField(this, 6, value);
1751
1348
  }
1752
- set location(value) {
1753
- pb_15.Message.setField(this, 7, value);
1349
+ get has_end_time() {
1350
+ return pb_15.Message.getField(this, 6) != null;
1351
+ }
1352
+ get duration() {
1353
+ return pb_15.Message.getWrapperField(this, google2.protobuf.Duration, 7);
1354
+ }
1355
+ set duration(value) {
1356
+ pb_15.Message.setWrapperField(this, 7, value);
1357
+ }
1358
+ get has_duration() {
1359
+ return pb_15.Message.getField(this, 7) != null;
1360
+ }
1361
+ get status() {
1362
+ return pb_15.Message.getFieldWithDefault(this, 8, testsystem.v1.common.TestStatus.UNKNOWN);
1363
+ }
1364
+ set status(value) {
1365
+ pb_15.Message.setField(this, 8, value);
1754
1366
  }
1755
1367
  get metadata() {
1756
- return pb_15.Message.getField(this, 8);
1368
+ return pb_15.Message.getField(this, 9);
1757
1369
  }
1758
1370
  set metadata(value) {
1759
- pb_15.Message.setField(this, 8, value);
1371
+ pb_15.Message.setField(this, 9, value);
1372
+ }
1373
+ get location() {
1374
+ return pb_15.Message.getFieldWithDefault(this, 10, "");
1375
+ }
1376
+ set location(value) {
1377
+ pb_15.Message.setField(this, 10, value);
1760
1378
  }
1761
1379
  get type() {
1762
- return pb_15.Message.getFieldWithDefault(this, 9, 0 /* ROOT */);
1380
+ return pb_15.Message.getFieldWithDefault(this, 11, 0 /* ROOT */);
1763
1381
  }
1764
1382
  set type(value) {
1765
- pb_15.Message.setField(this, 9, value);
1383
+ pb_15.Message.setField(this, 11, value);
1766
1384
  }
1767
1385
  get parent_suite_id() {
1768
- return pb_15.Message.getFieldWithDefault(this, 10, "");
1386
+ return pb_15.Message.getFieldWithDefault(this, 12, "");
1769
1387
  }
1770
1388
  set parent_suite_id(value) {
1771
- pb_15.Message.setField(this, 10, value);
1389
+ pb_15.Message.setField(this, 12, value);
1390
+ }
1391
+ get test_case_ids() {
1392
+ return pb_15.Message.getFieldWithDefault(this, 13, []);
1393
+ }
1394
+ set test_case_ids(value) {
1395
+ pb_15.Message.setField(this, 13, value);
1396
+ }
1397
+ get sub_suite_ids() {
1398
+ return pb_15.Message.getFieldWithDefault(this, 14, []);
1399
+ }
1400
+ set sub_suite_ids(value) {
1401
+ pb_15.Message.setField(this, 14, value);
1402
+ }
1403
+ get project() {
1404
+ return pb_15.Message.getFieldWithDefault(this, 15, "");
1405
+ }
1406
+ set project(value) {
1407
+ pb_15.Message.setField(this, 15, value);
1408
+ }
1409
+ get initiated_by() {
1410
+ return pb_15.Message.getFieldWithDefault(this, 16, "");
1411
+ }
1412
+ set initiated_by(value) {
1413
+ pb_15.Message.setField(this, 16, value);
1772
1414
  }
1773
1415
  get author() {
1774
- return pb_15.Message.getFieldWithDefault(this, 11, "");
1416
+ return pb_15.Message.getFieldWithDefault(this, 17, "");
1775
1417
  }
1776
1418
  set author(value) {
1777
- pb_15.Message.setField(this, 11, value);
1419
+ pb_15.Message.setField(this, 17, value);
1778
1420
  }
1779
1421
  get owner() {
1780
- return pb_15.Message.getFieldWithDefault(this, 12, "");
1422
+ return pb_15.Message.getFieldWithDefault(this, 18, "");
1781
1423
  }
1782
1424
  set owner(value) {
1783
- pb_15.Message.setField(this, 12, value);
1425
+ pb_15.Message.setField(this, 18, value);
1784
1426
  }
1785
- get project() {
1786
- return pb_15.Message.getFieldWithDefault(this, 13, "");
1427
+ get test_cases() {
1428
+ return pb_15.Message.getRepeatedWrapperField(this, testsystem2.v1.entities.TestCaseRun, 19);
1787
1429
  }
1788
- set project(value) {
1789
- pb_15.Message.setField(this, 13, value);
1430
+ set test_cases(value) {
1431
+ pb_15.Message.setRepeatedWrapperField(this, 19, value);
1432
+ }
1433
+ get sub_suites() {
1434
+ return pb_15.Message.getRepeatedWrapperField(this, _TestSuiteRun, 20);
1435
+ }
1436
+ set sub_suites(value) {
1437
+ pb_15.Message.setRepeatedWrapperField(this, 20, value);
1790
1438
  }
1791
1439
  static fromObject(data) {
1792
- const message = new _TestSuiteSpec({});
1440
+ const message = new _TestSuiteRun({});
1793
1441
  if (data.id != null) {
1794
1442
  message.id = data.id;
1795
1443
  }
1796
1444
  if (data.name != null) {
1797
1445
  message.name = data.name;
1798
1446
  }
1447
+ if (data.description != null) {
1448
+ message.description = data.description;
1449
+ }
1799
1450
  if (data.run_id != null) {
1800
1451
  message.run_id = data.run_id;
1801
1452
  }
1802
- if (data.test_spec_ids != null) {
1803
- message.test_spec_ids = data.test_spec_ids;
1453
+ if (data.start_time != null) {
1454
+ message.start_time = google.protobuf.Timestamp.fromObject(data.start_time);
1804
1455
  }
1805
- if (data.sub_suite_ids != null) {
1806
- message.sub_suite_ids = data.sub_suite_ids;
1456
+ if (data.end_time != null) {
1457
+ message.end_time = google.protobuf.Timestamp.fromObject(data.end_time);
1807
1458
  }
1808
- if (data.description != null) {
1809
- message.description = data.description;
1459
+ if (data.duration != null) {
1460
+ message.duration = google2.protobuf.Duration.fromObject(data.duration);
1810
1461
  }
1811
- if (data.location != null) {
1812
- message.location = data.location;
1462
+ if (data.status != null) {
1463
+ message.status = data.status;
1813
1464
  }
1814
1465
  if (typeof data.metadata == "object") {
1815
1466
  message.metadata = new Map(Object.entries(data.metadata));
1816
1467
  }
1468
+ if (data.location != null) {
1469
+ message.location = data.location;
1470
+ }
1817
1471
  if (data.type != null) {
1818
1472
  message.type = data.type;
1819
1473
  }
1820
1474
  if (data.parent_suite_id != null) {
1821
1475
  message.parent_suite_id = data.parent_suite_id;
1822
1476
  }
1477
+ if (data.test_case_ids != null) {
1478
+ message.test_case_ids = data.test_case_ids;
1479
+ }
1480
+ if (data.sub_suite_ids != null) {
1481
+ message.sub_suite_ids = data.sub_suite_ids;
1482
+ }
1483
+ if (data.project != null) {
1484
+ message.project = data.project;
1485
+ }
1486
+ if (data.initiated_by != null) {
1487
+ message.initiated_by = data.initiated_by;
1488
+ }
1823
1489
  if (data.author != null) {
1824
1490
  message.author = data.author;
1825
1491
  }
1826
1492
  if (data.owner != null) {
1827
1493
  message.owner = data.owner;
1828
1494
  }
1829
- if (data.project != null) {
1830
- message.project = data.project;
1495
+ if (data.test_cases != null) {
1496
+ message.test_cases = data.test_cases.map((item) => testsystem2.v1.entities.TestCaseRun.fromObject(item));
1497
+ }
1498
+ if (data.sub_suites != null) {
1499
+ message.sub_suites = data.sub_suites.map((item) => _TestSuiteRun.fromObject(item));
1831
1500
  }
1832
1501
  return message;
1833
1502
  }
@@ -1839,38 +1508,59 @@ var testsystem3;
1839
1508
  if (this.name != null) {
1840
1509
  data.name = this.name;
1841
1510
  }
1511
+ if (this.description != null) {
1512
+ data.description = this.description;
1513
+ }
1842
1514
  if (this.run_id != null) {
1843
1515
  data.run_id = this.run_id;
1844
1516
  }
1845
- if (this.test_spec_ids != null) {
1846
- data.test_spec_ids = this.test_spec_ids;
1517
+ if (this.start_time != null) {
1518
+ data.start_time = this.start_time.toObject();
1847
1519
  }
1848
- if (this.sub_suite_ids != null) {
1849
- data.sub_suite_ids = this.sub_suite_ids;
1520
+ if (this.end_time != null) {
1521
+ data.end_time = this.end_time.toObject();
1850
1522
  }
1851
- if (this.description != null) {
1852
- data.description = this.description;
1523
+ if (this.duration != null) {
1524
+ data.duration = this.duration.toObject();
1853
1525
  }
1854
- if (this.location != null) {
1855
- data.location = this.location;
1526
+ if (this.status != null) {
1527
+ data.status = this.status;
1856
1528
  }
1857
1529
  if (this.metadata != null) {
1858
1530
  data.metadata = Object.fromEntries(this.metadata);
1859
1531
  }
1532
+ if (this.location != null) {
1533
+ data.location = this.location;
1534
+ }
1860
1535
  if (this.type != null) {
1861
1536
  data.type = this.type;
1862
1537
  }
1863
1538
  if (this.parent_suite_id != null) {
1864
1539
  data.parent_suite_id = this.parent_suite_id;
1865
1540
  }
1541
+ if (this.test_case_ids != null) {
1542
+ data.test_case_ids = this.test_case_ids;
1543
+ }
1544
+ if (this.sub_suite_ids != null) {
1545
+ data.sub_suite_ids = this.sub_suite_ids;
1546
+ }
1547
+ if (this.project != null) {
1548
+ data.project = this.project;
1549
+ }
1550
+ if (this.initiated_by != null) {
1551
+ data.initiated_by = this.initiated_by;
1552
+ }
1866
1553
  if (this.author != null) {
1867
1554
  data.author = this.author;
1868
1555
  }
1869
1556
  if (this.owner != null) {
1870
1557
  data.owner = this.owner;
1871
1558
  }
1872
- if (this.project != null) {
1873
- data.project = this.project;
1559
+ if (this.test_cases != null) {
1560
+ data.test_cases = this.test_cases.map((item) => item.toObject());
1561
+ }
1562
+ if (this.sub_suites != null) {
1563
+ data.sub_suites = this.sub_suites.map((item) => item.toObject());
1874
1564
  }
1875
1565
  return data;
1876
1566
  }
@@ -1880,37 +1570,51 @@ var testsystem3;
1880
1570
  writer.writeString(1, this.id);
1881
1571
  if (this.name.length)
1882
1572
  writer.writeString(2, this.name);
1883
- if (this.run_id.length)
1884
- writer.writeString(3, this.run_id);
1885
- if (this.test_spec_ids.length)
1886
- writer.writeRepeatedString(4, this.test_spec_ids);
1887
- if (this.sub_suite_ids.length)
1888
- writer.writeRepeatedString(5, this.sub_suite_ids);
1889
1573
  if (this.description.length)
1890
- writer.writeString(6, this.description);
1891
- if (this.location.length)
1892
- writer.writeString(7, this.location);
1574
+ writer.writeString(3, this.description);
1575
+ if (this.run_id.length)
1576
+ writer.writeString(4, this.run_id);
1577
+ if (this.has_start_time)
1578
+ writer.writeMessage(5, this.start_time, () => this.start_time.serialize(writer));
1579
+ if (this.has_end_time)
1580
+ writer.writeMessage(6, this.end_time, () => this.end_time.serialize(writer));
1581
+ if (this.has_duration)
1582
+ writer.writeMessage(7, this.duration, () => this.duration.serialize(writer));
1583
+ if (this.status != testsystem.v1.common.TestStatus.UNKNOWN)
1584
+ writer.writeEnum(8, this.status);
1893
1585
  for (const [key, value] of this.metadata) {
1894
- writer.writeMessage(8, this.metadata, () => {
1586
+ writer.writeMessage(9, this.metadata, () => {
1895
1587
  writer.writeString(1, key);
1896
1588
  writer.writeString(2, value);
1897
1589
  });
1898
1590
  }
1591
+ if (this.location.length)
1592
+ writer.writeString(10, this.location);
1899
1593
  if (this.type != 0 /* ROOT */)
1900
- writer.writeEnum(9, this.type);
1594
+ writer.writeEnum(11, this.type);
1901
1595
  if (this.parent_suite_id.length)
1902
- writer.writeString(10, this.parent_suite_id);
1596
+ writer.writeString(12, this.parent_suite_id);
1597
+ if (this.test_case_ids.length)
1598
+ writer.writeRepeatedString(13, this.test_case_ids);
1599
+ if (this.sub_suite_ids.length)
1600
+ writer.writeRepeatedString(14, this.sub_suite_ids);
1601
+ if (this.project.length)
1602
+ writer.writeString(15, this.project);
1603
+ if (this.initiated_by.length)
1604
+ writer.writeString(16, this.initiated_by);
1903
1605
  if (this.author.length)
1904
- writer.writeString(11, this.author);
1606
+ writer.writeString(17, this.author);
1905
1607
  if (this.owner.length)
1906
- writer.writeString(12, this.owner);
1907
- if (this.project.length)
1908
- writer.writeString(13, this.project);
1608
+ writer.writeString(18, this.owner);
1609
+ if (this.test_cases.length)
1610
+ writer.writeRepeatedMessage(19, this.test_cases, (item) => item.serialize(writer));
1611
+ if (this.sub_suites.length)
1612
+ writer.writeRepeatedMessage(20, this.sub_suites, (item) => item.serialize(writer));
1909
1613
  if (!w)
1910
1614
  return writer.getResultBuffer();
1911
1615
  }
1912
1616
  static deserialize(bytes) {
1913
- const reader = bytes instanceof pb_15.BinaryReader ? bytes : new pb_15.BinaryReader(bytes), message = new _TestSuiteSpec();
1617
+ const reader = bytes instanceof pb_15.BinaryReader ? bytes : new pb_15.BinaryReader(bytes), message = new _TestSuiteRun();
1914
1618
  while (reader.nextField()) {
1915
1619
  if (reader.isEndGroup())
1916
1620
  break;
@@ -1922,38 +1626,59 @@ var testsystem3;
1922
1626
  message.name = reader.readString();
1923
1627
  break;
1924
1628
  case 3:
1925
- message.run_id = reader.readString();
1629
+ message.description = reader.readString();
1926
1630
  break;
1927
1631
  case 4:
1928
- pb_15.Message.addToRepeatedField(message, 4, reader.readString());
1632
+ message.run_id = reader.readString();
1929
1633
  break;
1930
1634
  case 5:
1931
- pb_15.Message.addToRepeatedField(message, 5, reader.readString());
1635
+ reader.readMessage(message.start_time, () => message.start_time = google.protobuf.Timestamp.deserialize(reader));
1932
1636
  break;
1933
1637
  case 6:
1934
- message.description = reader.readString();
1638
+ reader.readMessage(message.end_time, () => message.end_time = google.protobuf.Timestamp.deserialize(reader));
1935
1639
  break;
1936
1640
  case 7:
1937
- message.location = reader.readString();
1641
+ reader.readMessage(message.duration, () => message.duration = google2.protobuf.Duration.deserialize(reader));
1938
1642
  break;
1939
1643
  case 8:
1940
- reader.readMessage(message, () => pb_15.Map.deserializeBinary(message.metadata, reader, reader.readString, reader.readString));
1644
+ message.status = reader.readEnum();
1941
1645
  break;
1942
1646
  case 9:
1943
- message.type = reader.readEnum();
1647
+ reader.readMessage(message, () => pb_15.Map.deserializeBinary(message.metadata, reader, reader.readString, reader.readString));
1944
1648
  break;
1945
1649
  case 10:
1946
- message.parent_suite_id = reader.readString();
1650
+ message.location = reader.readString();
1947
1651
  break;
1948
1652
  case 11:
1949
- message.author = reader.readString();
1653
+ message.type = reader.readEnum();
1950
1654
  break;
1951
1655
  case 12:
1952
- message.owner = reader.readString();
1656
+ message.parent_suite_id = reader.readString();
1953
1657
  break;
1954
1658
  case 13:
1659
+ pb_15.Message.addToRepeatedField(message, 13, reader.readString());
1660
+ break;
1661
+ case 14:
1662
+ pb_15.Message.addToRepeatedField(message, 14, reader.readString());
1663
+ break;
1664
+ case 15:
1955
1665
  message.project = reader.readString();
1956
1666
  break;
1667
+ case 16:
1668
+ message.initiated_by = reader.readString();
1669
+ break;
1670
+ case 17:
1671
+ message.author = reader.readString();
1672
+ break;
1673
+ case 18:
1674
+ message.owner = reader.readString();
1675
+ break;
1676
+ case 19:
1677
+ reader.readMessage(message.test_cases, () => pb_15.Message.addToRepeatedWrapperField(message, 19, testsystem2.v1.entities.TestCaseRun.deserialize(reader), testsystem2.v1.entities.TestCaseRun));
1678
+ break;
1679
+ case 20:
1680
+ reader.readMessage(message.sub_suites, () => pb_15.Message.addToRepeatedWrapperField(message, 20, _TestSuiteRun.deserialize(reader), _TestSuiteRun));
1681
+ break;
1957
1682
  default:
1958
1683
  reader.skipField();
1959
1684
  }
@@ -1964,12 +1689,12 @@ var testsystem3;
1964
1689
  return this.serialize();
1965
1690
  }
1966
1691
  static deserializeBinary(bytes) {
1967
- return _TestSuiteSpec.deserialize(bytes);
1692
+ return _TestSuiteRun.deserialize(bytes);
1968
1693
  }
1969
1694
  };
1970
- _one_of_decls2 = new WeakMap();
1971
- let TestSuiteSpec = _TestSuiteSpec;
1972
- entities2.TestSuiteSpec = _TestSuiteSpec;
1695
+ _one_of_decls = new WeakMap();
1696
+ let TestSuiteRun = _TestSuiteRun;
1697
+ entities2.TestSuiteRun = _TestSuiteRun;
1973
1698
  })(entities = v12.entities || (v12.entities = {}));
1974
1699
  })(v1 = testsystem7.v1 || (testsystem7.v1 = {}));
1975
1700
  })(testsystem3 || (testsystem3 = {}));
@@ -1982,7 +1707,7 @@ var testsystem4;
1982
1707
  ((v12) => {
1983
1708
  let events;
1984
1709
  ((events2) => {
1985
- var _one_of_decls, _one_of_decls2, _one_of_decls3, _one_of_decls4, _one_of_decls5, _one_of_decls6, _one_of_decls7, _one_of_decls8, _one_of_decls9, _one_of_decls10, _one_of_decls11;
1710
+ var _one_of_decls, _one_of_decls2, _one_of_decls3, _one_of_decls4, _one_of_decls5, _one_of_decls6, _one_of_decls7, _one_of_decls8, _one_of_decls9, _one_of_decls10, _one_of_decls11, _one_of_decls12;
1986
1711
  const _TestBeginEventRequest = class _TestBeginEventRequest extends pb_16.Message {
1987
1712
  constructor(data) {
1988
1713
  super();
@@ -2268,6 +1993,9 @@ var testsystem4;
2268
1993
  if ("attachments" in data && data.attachments != void 0) {
2269
1994
  this.attachments = data.attachments;
2270
1995
  }
1996
+ if ("run_id" in data && data.run_id != void 0) {
1997
+ this.run_id = data.run_id;
1998
+ }
2271
1999
  }
2272
2000
  }
2273
2001
  get test_id() {
@@ -2303,6 +2031,12 @@ var testsystem4;
2303
2031
  set attachments(value) {
2304
2032
  pb_16.Message.setRepeatedWrapperField(this, 5, value);
2305
2033
  }
2034
+ get run_id() {
2035
+ return pb_16.Message.getFieldWithDefault(this, 6, "");
2036
+ }
2037
+ set run_id(value) {
2038
+ pb_16.Message.setField(this, 6, value);
2039
+ }
2306
2040
  static fromObject(data) {
2307
2041
  const message = new _TestFailureEventRequest({});
2308
2042
  if (data.test_id != null) {
@@ -2320,6 +2054,9 @@ var testsystem4;
2320
2054
  if (data.attachments != null) {
2321
2055
  message.attachments = data.attachments.map((item) => testsystem.v1.common.Attachment.fromObject(item));
2322
2056
  }
2057
+ if (data.run_id != null) {
2058
+ message.run_id = data.run_id;
2059
+ }
2323
2060
  return message;
2324
2061
  }
2325
2062
  toObject() {
@@ -2339,6 +2076,9 @@ var testsystem4;
2339
2076
  if (this.attachments != null) {
2340
2077
  data.attachments = this.attachments.map((item) => item.toObject());
2341
2078
  }
2079
+ if (this.run_id != null) {
2080
+ data.run_id = this.run_id;
2081
+ }
2342
2082
  return data;
2343
2083
  }
2344
2084
  serialize(w) {
@@ -2353,6 +2093,8 @@ var testsystem4;
2353
2093
  writer.writeMessage(4, this.timestamp, () => this.timestamp.serialize(writer));
2354
2094
  if (this.attachments.length)
2355
2095
  writer.writeRepeatedMessage(5, this.attachments, (item) => item.serialize(writer));
2096
+ if (this.run_id.length)
2097
+ writer.writeString(6, this.run_id);
2356
2098
  if (!w)
2357
2099
  return writer.getResultBuffer();
2358
2100
  }
@@ -2377,6 +2119,9 @@ var testsystem4;
2377
2119
  case 5:
2378
2120
  reader.readMessage(message.attachments, () => pb_16.Message.addToRepeatedWrapperField(message, 5, testsystem.v1.common.Attachment.deserialize(reader), testsystem.v1.common.Attachment));
2379
2121
  break;
2122
+ case 6:
2123
+ message.run_id = reader.readString();
2124
+ break;
2380
2125
  default:
2381
2126
  reader.skipField();
2382
2127
  }
@@ -2414,6 +2159,9 @@ var testsystem4;
2414
2159
  if ("attachments" in data && data.attachments != void 0) {
2415
2160
  this.attachments = data.attachments;
2416
2161
  }
2162
+ if ("run_id" in data && data.run_id != void 0) {
2163
+ this.run_id = data.run_id;
2164
+ }
2417
2165
  }
2418
2166
  }
2419
2167
  get test_id() {
@@ -2449,6 +2197,12 @@ var testsystem4;
2449
2197
  set attachments(value) {
2450
2198
  pb_16.Message.setRepeatedWrapperField(this, 5, value);
2451
2199
  }
2200
+ get run_id() {
2201
+ return pb_16.Message.getFieldWithDefault(this, 6, "");
2202
+ }
2203
+ set run_id(value) {
2204
+ pb_16.Message.setField(this, 6, value);
2205
+ }
2452
2206
  static fromObject(data) {
2453
2207
  const message = new _TestErrorEventRequest({});
2454
2208
  if (data.test_id != null) {
@@ -2466,6 +2220,9 @@ var testsystem4;
2466
2220
  if (data.attachments != null) {
2467
2221
  message.attachments = data.attachments.map((item) => testsystem.v1.common.Attachment.fromObject(item));
2468
2222
  }
2223
+ if (data.run_id != null) {
2224
+ message.run_id = data.run_id;
2225
+ }
2469
2226
  return message;
2470
2227
  }
2471
2228
  toObject() {
@@ -2485,6 +2242,9 @@ var testsystem4;
2485
2242
  if (this.attachments != null) {
2486
2243
  data.attachments = this.attachments.map((item) => item.toObject());
2487
2244
  }
2245
+ if (this.run_id != null) {
2246
+ data.run_id = this.run_id;
2247
+ }
2488
2248
  return data;
2489
2249
  }
2490
2250
  serialize(w) {
@@ -2499,6 +2259,8 @@ var testsystem4;
2499
2259
  writer.writeMessage(4, this.timestamp, () => this.timestamp.serialize(writer));
2500
2260
  if (this.attachments.length)
2501
2261
  writer.writeRepeatedMessage(5, this.attachments, (item) => item.serialize(writer));
2262
+ if (this.run_id.length)
2263
+ writer.writeString(6, this.run_id);
2502
2264
  if (!w)
2503
2265
  return writer.getResultBuffer();
2504
2266
  }
@@ -2523,6 +2285,9 @@ var testsystem4;
2523
2285
  case 5:
2524
2286
  reader.readMessage(message.attachments, () => pb_16.Message.addToRepeatedWrapperField(message, 5, testsystem.v1.common.Attachment.deserialize(reader), testsystem.v1.common.Attachment));
2525
2287
  break;
2288
+ case 6:
2289
+ message.run_id = reader.readString();
2290
+ break;
2526
2291
  default:
2527
2292
  reader.skipField();
2528
2293
  }
@@ -2557,6 +2322,9 @@ var testsystem4;
2557
2322
  if ("test_case_run_id" in data && data.test_case_run_id != void 0) {
2558
2323
  this.test_case_run_id = data.test_case_run_id;
2559
2324
  }
2325
+ if ("run_id" in data && data.run_id != void 0) {
2326
+ this.run_id = data.run_id;
2327
+ }
2560
2328
  }
2561
2329
  }
2562
2330
  get test_id() {
@@ -2586,6 +2354,12 @@ var testsystem4;
2586
2354
  set test_case_run_id(value) {
2587
2355
  pb_16.Message.setField(this, 4, value);
2588
2356
  }
2357
+ get run_id() {
2358
+ return pb_16.Message.getFieldWithDefault(this, 5, "");
2359
+ }
2360
+ set run_id(value) {
2361
+ pb_16.Message.setField(this, 5, value);
2362
+ }
2589
2363
  static fromObject(data) {
2590
2364
  const message = new _StdErrorEventRequest({});
2591
2365
  if (data.test_id != null) {
@@ -2600,6 +2374,9 @@ var testsystem4;
2600
2374
  if (data.test_case_run_id != null) {
2601
2375
  message.test_case_run_id = data.test_case_run_id;
2602
2376
  }
2377
+ if (data.run_id != null) {
2378
+ message.run_id = data.run_id;
2379
+ }
2603
2380
  return message;
2604
2381
  }
2605
2382
  toObject() {
@@ -2616,6 +2393,9 @@ var testsystem4;
2616
2393
  if (this.test_case_run_id != null) {
2617
2394
  data.test_case_run_id = this.test_case_run_id;
2618
2395
  }
2396
+ if (this.run_id != null) {
2397
+ data.run_id = this.run_id;
2398
+ }
2619
2399
  return data;
2620
2400
  }
2621
2401
  serialize(w) {
@@ -2628,6 +2408,8 @@ var testsystem4;
2628
2408
  writer.writeMessage(3, this.timestamp, () => this.timestamp.serialize(writer));
2629
2409
  if (this.test_case_run_id.length)
2630
2410
  writer.writeString(4, this.test_case_run_id);
2411
+ if (this.run_id.length)
2412
+ writer.writeString(5, this.run_id);
2631
2413
  if (!w)
2632
2414
  return writer.getResultBuffer();
2633
2415
  }
@@ -2649,6 +2431,9 @@ var testsystem4;
2649
2431
  case 4:
2650
2432
  message.test_case_run_id = reader.readString();
2651
2433
  break;
2434
+ case 5:
2435
+ message.run_id = reader.readString();
2436
+ break;
2652
2437
  default:
2653
2438
  reader.skipField();
2654
2439
  }
@@ -2683,6 +2468,9 @@ var testsystem4;
2683
2468
  if ("test_case_run_id" in data && data.test_case_run_id != void 0) {
2684
2469
  this.test_case_run_id = data.test_case_run_id;
2685
2470
  }
2471
+ if ("run_id" in data && data.run_id != void 0) {
2472
+ this.run_id = data.run_id;
2473
+ }
2686
2474
  }
2687
2475
  }
2688
2476
  get test_id() {
@@ -2712,6 +2500,12 @@ var testsystem4;
2712
2500
  set test_case_run_id(value) {
2713
2501
  pb_16.Message.setField(this, 4, value);
2714
2502
  }
2503
+ get run_id() {
2504
+ return pb_16.Message.getFieldWithDefault(this, 5, "");
2505
+ }
2506
+ set run_id(value) {
2507
+ pb_16.Message.setField(this, 5, value);
2508
+ }
2715
2509
  static fromObject(data) {
2716
2510
  const message = new _StdOutputEventRequest({});
2717
2511
  if (data.test_id != null) {
@@ -2726,6 +2520,9 @@ var testsystem4;
2726
2520
  if (data.test_case_run_id != null) {
2727
2521
  message.test_case_run_id = data.test_case_run_id;
2728
2522
  }
2523
+ if (data.run_id != null) {
2524
+ message.run_id = data.run_id;
2525
+ }
2729
2526
  return message;
2730
2527
  }
2731
2528
  toObject() {
@@ -2742,6 +2539,9 @@ var testsystem4;
2742
2539
  if (this.test_case_run_id != null) {
2743
2540
  data.test_case_run_id = this.test_case_run_id;
2744
2541
  }
2542
+ if (this.run_id != null) {
2543
+ data.run_id = this.run_id;
2544
+ }
2745
2545
  return data;
2746
2546
  }
2747
2547
  serialize(w) {
@@ -2754,6 +2554,8 @@ var testsystem4;
2754
2554
  writer.writeMessage(3, this.timestamp, () => this.timestamp.serialize(writer));
2755
2555
  if (this.test_case_run_id.length)
2756
2556
  writer.writeString(4, this.test_case_run_id);
2557
+ if (this.run_id.length)
2558
+ writer.writeString(5, this.run_id);
2757
2559
  if (!w)
2758
2560
  return writer.getResultBuffer();
2759
2561
  }
@@ -2775,6 +2577,9 @@ var testsystem4;
2775
2577
  case 4:
2776
2578
  message.test_case_run_id = reader.readString();
2777
2579
  break;
2580
+ case 5:
2581
+ message.run_id = reader.readString();
2582
+ break;
2778
2583
  default:
2779
2584
  reader.skipField();
2780
2585
  }
@@ -3009,6 +2814,89 @@ var testsystem4;
3009
2814
  _one_of_decls11 = new WeakMap();
3010
2815
  let HeartbeatEventRequest = _HeartbeatEventRequest;
3011
2816
  events2.HeartbeatEventRequest = _HeartbeatEventRequest;
2817
+ const _MapTestRunEventRequest = class _MapTestRunEventRequest extends pb_16.Message {
2818
+ constructor(data) {
2819
+ super();
2820
+ __privateAdd(this, _one_of_decls12, []);
2821
+ pb_16.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [2], __privateGet(this, _one_of_decls12));
2822
+ if (!Array.isArray(data) && typeof data == "object") {
2823
+ if ("run_id" in data && data.run_id != void 0) {
2824
+ this.run_id = data.run_id;
2825
+ }
2826
+ if ("test_suites" in data && data.test_suites != void 0) {
2827
+ this.test_suites = data.test_suites;
2828
+ }
2829
+ }
2830
+ }
2831
+ get run_id() {
2832
+ return pb_16.Message.getFieldWithDefault(this, 1, "");
2833
+ }
2834
+ set run_id(value) {
2835
+ pb_16.Message.setField(this, 1, value);
2836
+ }
2837
+ get test_suites() {
2838
+ return pb_16.Message.getRepeatedWrapperField(this, testsystem3.v1.entities.TestSuiteRun, 2);
2839
+ }
2840
+ set test_suites(value) {
2841
+ pb_16.Message.setRepeatedWrapperField(this, 2, value);
2842
+ }
2843
+ static fromObject(data) {
2844
+ const message = new _MapTestRunEventRequest({});
2845
+ if (data.run_id != null) {
2846
+ message.run_id = data.run_id;
2847
+ }
2848
+ if (data.test_suites != null) {
2849
+ message.test_suites = data.test_suites.map((item) => testsystem3.v1.entities.TestSuiteRun.fromObject(item));
2850
+ }
2851
+ return message;
2852
+ }
2853
+ toObject() {
2854
+ const data = {};
2855
+ if (this.run_id != null) {
2856
+ data.run_id = this.run_id;
2857
+ }
2858
+ if (this.test_suites != null) {
2859
+ data.test_suites = this.test_suites.map((item) => item.toObject());
2860
+ }
2861
+ return data;
2862
+ }
2863
+ serialize(w) {
2864
+ const writer = w || new pb_16.BinaryWriter();
2865
+ if (this.run_id.length)
2866
+ writer.writeString(1, this.run_id);
2867
+ if (this.test_suites.length)
2868
+ writer.writeRepeatedMessage(2, this.test_suites, (item) => item.serialize(writer));
2869
+ if (!w)
2870
+ return writer.getResultBuffer();
2871
+ }
2872
+ static deserialize(bytes) {
2873
+ const reader = bytes instanceof pb_16.BinaryReader ? bytes : new pb_16.BinaryReader(bytes), message = new _MapTestRunEventRequest();
2874
+ while (reader.nextField()) {
2875
+ if (reader.isEndGroup())
2876
+ break;
2877
+ switch (reader.getFieldNumber()) {
2878
+ case 1:
2879
+ message.run_id = reader.readString();
2880
+ break;
2881
+ case 2:
2882
+ reader.readMessage(message.test_suites, () => pb_16.Message.addToRepeatedWrapperField(message, 2, testsystem3.v1.entities.TestSuiteRun.deserialize(reader), testsystem3.v1.entities.TestSuiteRun));
2883
+ break;
2884
+ default:
2885
+ reader.skipField();
2886
+ }
2887
+ }
2888
+ return message;
2889
+ }
2890
+ serializeBinary() {
2891
+ return this.serialize();
2892
+ }
2893
+ static deserializeBinary(bytes) {
2894
+ return _MapTestRunEventRequest.deserialize(bytes);
2895
+ }
2896
+ };
2897
+ _one_of_decls12 = new WeakMap();
2898
+ let MapTestRunEventRequest = _MapTestRunEventRequest;
2899
+ events2.MapTestRunEventRequest = _MapTestRunEventRequest;
3012
2900
  })(events = v12.events || (v12.events = {}));
3013
2901
  })(v1 = testsystem7.v1 || (testsystem7.v1 = {}));
3014
2902
  })(testsystem4 || (testsystem4 = {}));
@@ -3139,6 +3027,15 @@ var testsystem5;
3139
3027
  class UnimplementedTestEventCollectorService {
3140
3028
  }
3141
3029
  UnimplementedTestEventCollectorService.definition = {
3030
+ MapTestRun: {
3031
+ path: "/testsystem.v1.observer.TestEventCollector/MapTestRun",
3032
+ requestStream: false,
3033
+ responseStream: false,
3034
+ requestSerialize: (message) => Buffer.from(message.serialize()),
3035
+ requestDeserialize: (bytes) => testsystem4.v1.events.MapTestRunEventRequest.deserialize(new Uint8Array(bytes)),
3036
+ responseSerialize: (message) => Buffer.from(message.serialize()),
3037
+ responseDeserialize: (bytes) => AckResponse.deserialize(new Uint8Array(bytes))
3038
+ },
3142
3039
  ReportSuiteBegin: {
3143
3040
  path: "/testsystem.v1.observer.TestEventCollector/ReportSuiteBegin",
3144
3041
  requestStream: false,
@@ -3243,6 +3140,9 @@ var testsystem5;
3243
3140
  class TestEventCollectorClient extends grpc_1.makeGenericClientConstructor(UnimplementedTestEventCollectorService.definition, "TestEventCollector", {}) {
3244
3141
  constructor(address, credentials, options) {
3245
3142
  super(address, credentials, options);
3143
+ this.MapTestRun = (message, metadata, options, callback) => {
3144
+ return super.MapTestRun(message, metadata, options, callback);
3145
+ };
3246
3146
  this.ReportSuiteBegin = (message, metadata, options, callback) => {
3247
3147
  return super.ReportSuiteBegin(message, metadata, options, callback);
3248
3148
  };