@stanterprise/protobuf 0.0.11 → 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 (66) 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 +176 -1
  21. package/dist/index.js.map +1 -1
  22. package/dist/index.mjs +14 -2973
  23. package/dist/index.mjs.map +1 -1
  24. package/dist/lib/testsystem/v1/events/events.d.ts +44 -0
  25. package/dist/lib/testsystem/v1/events/events.d.ts.map +1 -1
  26. package/dist/lib/testsystem/v1/observer/observer.d.ts +11 -0
  27. package/dist/lib/testsystem/v1/observer/observer.d.ts.map +1 -1
  28. package/dist/testsystem/index.d.ts +2 -0
  29. package/dist/testsystem/index.d.ts.map +1 -0
  30. package/dist/testsystem/index.js +3252 -0
  31. package/dist/testsystem/index.js.map +1 -0
  32. package/dist/testsystem/index.mjs +15 -0
  33. package/dist/testsystem/index.mjs.map +1 -0
  34. package/dist/testsystem/v1/common/index.d.ts +6 -0
  35. package/dist/testsystem/v1/common/index.d.ts.map +1 -0
  36. package/dist/testsystem/v1/common/index.js +212 -0
  37. package/dist/testsystem/v1/common/index.js.map +1 -0
  38. package/dist/testsystem/v1/common/index.mjs +10 -0
  39. package/dist/testsystem/v1/common/index.mjs.map +1 -0
  40. package/dist/testsystem/v1/entities/index.d.ts +9 -0
  41. package/dist/testsystem/v1/entities/index.d.ts.map +1 -0
  42. package/dist/testsystem/v1/entities/index.js +1704 -0
  43. package/dist/testsystem/v1/entities/index.js.map +1 -0
  44. package/dist/testsystem/v1/entities/index.mjs +13 -0
  45. package/dist/testsystem/v1/entities/index.mjs.map +1 -0
  46. package/dist/testsystem/v1/events/index.d.ts +26 -0
  47. package/dist/testsystem/v1/events/index.d.ts.map +1 -0
  48. package/dist/testsystem/v1/events/index.js +2933 -0
  49. package/dist/testsystem/v1/events/index.js.map +1 -0
  50. package/dist/testsystem/v1/events/index.mjs +32 -0
  51. package/dist/testsystem/v1/events/index.mjs.map +1 -0
  52. package/dist/testsystem/v1/index.d.ts +5 -0
  53. package/dist/testsystem/v1/index.d.ts.map +1 -0
  54. package/dist/testsystem/v1/index.js +3249 -0
  55. package/dist/testsystem/v1/index.js.map +1 -0
  56. package/dist/testsystem/v1/index.mjs +24 -0
  57. package/dist/testsystem/v1/index.mjs.map +1 -0
  58. package/dist/testsystem/v1/observer/index.d.ts +6 -0
  59. package/dist/testsystem/v1/observer/index.d.ts.map +1 -0
  60. package/dist/testsystem/v1/observer/index.js +3185 -0
  61. package/dist/testsystem/v1/observer/index.js.map +1 -0
  62. package/dist/testsystem/v1/observer/index.mjs +13 -0
  63. package/dist/testsystem/v1/observer/index.mjs.map +1 -0
  64. package/lib/testsystem/v1/events/events.ts +182 -0
  65. package/lib/testsystem/v1/observer/observer.ts +13 -0
  66. package/package.json +31 -1
@@ -0,0 +1,1704 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __typeError = (msg) => {
9
+ throw TypeError(msg);
10
+ };
11
+ var __export = (target, all) => {
12
+ for (var name in all)
13
+ __defProp(target, name, { get: all[name], enumerable: true });
14
+ };
15
+ var __copyProps = (to, from, except, desc) => {
16
+ if (from && typeof from === "object" || typeof from === "function") {
17
+ for (let key of __getOwnPropNames(from))
18
+ if (!__hasOwnProp.call(to, key) && key !== except)
19
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
20
+ }
21
+ return to;
22
+ };
23
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
24
+ // If the importer is in node compatibility mode or this is not an ESM
25
+ // file that has been converted to a CommonJS file using a Babel-
26
+ // compatible transform (i.e. "__esModule" has not been set), then set
27
+ // "default" to the CommonJS "module.exports" for node compatibility.
28
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
29
+ mod
30
+ ));
31
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
32
+ var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
33
+ var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
34
+ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
35
+
36
+ // testsystem/v1/entities/index.ts
37
+ var entities_exports = {};
38
+ __export(entities_exports, {
39
+ StepRun: () => StepRun,
40
+ TestCaseRun: () => TestCaseRun,
41
+ TestSuiteRun: () => TestSuiteRun
42
+ });
43
+ module.exports = __toCommonJS(entities_exports);
44
+
45
+ // lib/testsystem/v1/common/common.ts
46
+ var pb_1 = __toESM(require("google-protobuf"));
47
+ var testsystem;
48
+ ((testsystem4) => {
49
+ let v1;
50
+ ((v12) => {
51
+ let common;
52
+ ((common2) => {
53
+ var _one_of_decls;
54
+ let TestStatus;
55
+ ((TestStatus2) => {
56
+ TestStatus2[TestStatus2["UNKNOWN"] = 0] = "UNKNOWN";
57
+ TestStatus2[TestStatus2["PASSED"] = 1] = "PASSED";
58
+ TestStatus2[TestStatus2["FAILED"] = 2] = "FAILED";
59
+ TestStatus2[TestStatus2["SKIPPED"] = 3] = "SKIPPED";
60
+ TestStatus2[TestStatus2["BROKEN"] = 4] = "BROKEN";
61
+ TestStatus2[TestStatus2["TIMEDOUT"] = 5] = "TIMEDOUT";
62
+ TestStatus2[TestStatus2["INTERRUPTED"] = 6] = "INTERRUPTED";
63
+ })(TestStatus = common2.TestStatus || (common2.TestStatus = {}));
64
+ const _Attachment = class _Attachment extends pb_1.Message {
65
+ constructor(data) {
66
+ super();
67
+ __privateAdd(this, _one_of_decls, [[3, 4]]);
68
+ pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], __privateGet(this, _one_of_decls));
69
+ if (!Array.isArray(data) && typeof data == "object") {
70
+ if ("name" in data && data.name != void 0) {
71
+ this.name = data.name;
72
+ }
73
+ if ("mime_type" in data && data.mime_type != void 0) {
74
+ this.mime_type = data.mime_type;
75
+ }
76
+ if ("content" in data && data.content != void 0) {
77
+ this.content = data.content;
78
+ }
79
+ if ("uri" in data && data.uri != void 0) {
80
+ this.uri = data.uri;
81
+ }
82
+ }
83
+ }
84
+ get name() {
85
+ return pb_1.Message.getFieldWithDefault(this, 1, "");
86
+ }
87
+ set name(value) {
88
+ pb_1.Message.setField(this, 1, value);
89
+ }
90
+ get mime_type() {
91
+ return pb_1.Message.getFieldWithDefault(this, 2, "");
92
+ }
93
+ set mime_type(value) {
94
+ pb_1.Message.setField(this, 2, value);
95
+ }
96
+ get content() {
97
+ return pb_1.Message.getFieldWithDefault(this, 3, new Uint8Array(0));
98
+ }
99
+ set content(value) {
100
+ pb_1.Message.setOneofField(this, 3, __privateGet(this, _one_of_decls)[0], value);
101
+ }
102
+ get has_content() {
103
+ return pb_1.Message.getField(this, 3) != null;
104
+ }
105
+ get uri() {
106
+ return pb_1.Message.getFieldWithDefault(this, 4, "");
107
+ }
108
+ set uri(value) {
109
+ pb_1.Message.setOneofField(this, 4, __privateGet(this, _one_of_decls)[0], value);
110
+ }
111
+ get has_uri() {
112
+ return pb_1.Message.getField(this, 4) != null;
113
+ }
114
+ get payload() {
115
+ const cases = {
116
+ 0: "none",
117
+ 3: "content",
118
+ 4: "uri"
119
+ };
120
+ return cases[pb_1.Message.computeOneofCase(this, [3, 4])];
121
+ }
122
+ static fromObject(data) {
123
+ const message = new _Attachment({});
124
+ if (data.name != null) {
125
+ message.name = data.name;
126
+ }
127
+ if (data.mime_type != null) {
128
+ message.mime_type = data.mime_type;
129
+ }
130
+ if (data.content != null) {
131
+ message.content = data.content;
132
+ }
133
+ if (data.uri != null) {
134
+ message.uri = data.uri;
135
+ }
136
+ return message;
137
+ }
138
+ toObject() {
139
+ const data = {};
140
+ if (this.name != null) {
141
+ data.name = this.name;
142
+ }
143
+ if (this.mime_type != null) {
144
+ data.mime_type = this.mime_type;
145
+ }
146
+ if (this.content != null) {
147
+ data.content = this.content;
148
+ }
149
+ if (this.uri != null) {
150
+ data.uri = this.uri;
151
+ }
152
+ return data;
153
+ }
154
+ serialize(w) {
155
+ const writer = w || new pb_1.BinaryWriter();
156
+ if (this.name.length)
157
+ writer.writeString(1, this.name);
158
+ if (this.mime_type.length)
159
+ writer.writeString(2, this.mime_type);
160
+ if (this.has_content)
161
+ writer.writeBytes(3, this.content);
162
+ if (this.has_uri)
163
+ writer.writeString(4, this.uri);
164
+ if (!w)
165
+ return writer.getResultBuffer();
166
+ }
167
+ static deserialize(bytes) {
168
+ const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new _Attachment();
169
+ while (reader.nextField()) {
170
+ if (reader.isEndGroup())
171
+ break;
172
+ switch (reader.getFieldNumber()) {
173
+ case 1:
174
+ message.name = reader.readString();
175
+ break;
176
+ case 2:
177
+ message.mime_type = reader.readString();
178
+ break;
179
+ case 3:
180
+ message.content = reader.readBytes();
181
+ break;
182
+ case 4:
183
+ message.uri = reader.readString();
184
+ break;
185
+ default:
186
+ reader.skipField();
187
+ }
188
+ }
189
+ return message;
190
+ }
191
+ serializeBinary() {
192
+ return this.serialize();
193
+ }
194
+ static deserializeBinary(bytes) {
195
+ return _Attachment.deserialize(bytes);
196
+ }
197
+ };
198
+ _one_of_decls = new WeakMap();
199
+ let Attachment = _Attachment;
200
+ common2.Attachment = _Attachment;
201
+ })(common = v12.common || (v12.common = {}));
202
+ })(v1 = testsystem4.v1 || (testsystem4.v1 = {}));
203
+ })(testsystem || (testsystem = {}));
204
+
205
+ // lib/google/protobuf/timestamp.ts
206
+ var pb_12 = __toESM(require("google-protobuf"));
207
+ var google;
208
+ ((google3) => {
209
+ let protobuf;
210
+ ((protobuf2) => {
211
+ var _one_of_decls;
212
+ const _Timestamp = class _Timestamp extends pb_12.Message {
213
+ constructor(data) {
214
+ super();
215
+ __privateAdd(this, _one_of_decls, []);
216
+ pb_12.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], __privateGet(this, _one_of_decls));
217
+ if (!Array.isArray(data) && typeof data == "object") {
218
+ if ("seconds" in data && data.seconds != void 0) {
219
+ this.seconds = data.seconds;
220
+ }
221
+ if ("nanos" in data && data.nanos != void 0) {
222
+ this.nanos = data.nanos;
223
+ }
224
+ }
225
+ }
226
+ get seconds() {
227
+ return pb_12.Message.getFieldWithDefault(this, 1, 0);
228
+ }
229
+ set seconds(value) {
230
+ pb_12.Message.setField(this, 1, value);
231
+ }
232
+ get nanos() {
233
+ return pb_12.Message.getFieldWithDefault(this, 2, 0);
234
+ }
235
+ set nanos(value) {
236
+ pb_12.Message.setField(this, 2, value);
237
+ }
238
+ static fromObject(data) {
239
+ const message = new _Timestamp({});
240
+ if (data.seconds != null) {
241
+ message.seconds = data.seconds;
242
+ }
243
+ if (data.nanos != null) {
244
+ message.nanos = data.nanos;
245
+ }
246
+ return message;
247
+ }
248
+ toObject() {
249
+ const data = {};
250
+ if (this.seconds != null) {
251
+ data.seconds = this.seconds;
252
+ }
253
+ if (this.nanos != null) {
254
+ data.nanos = this.nanos;
255
+ }
256
+ return data;
257
+ }
258
+ serialize(w) {
259
+ const writer = w || new pb_12.BinaryWriter();
260
+ if (this.seconds != 0)
261
+ writer.writeInt64(1, this.seconds);
262
+ if (this.nanos != 0)
263
+ writer.writeInt32(2, this.nanos);
264
+ if (!w)
265
+ return writer.getResultBuffer();
266
+ }
267
+ static deserialize(bytes) {
268
+ const reader = bytes instanceof pb_12.BinaryReader ? bytes : new pb_12.BinaryReader(bytes), message = new _Timestamp();
269
+ while (reader.nextField()) {
270
+ if (reader.isEndGroup())
271
+ break;
272
+ switch (reader.getFieldNumber()) {
273
+ case 1:
274
+ message.seconds = reader.readInt64();
275
+ break;
276
+ case 2:
277
+ message.nanos = reader.readInt32();
278
+ break;
279
+ default:
280
+ reader.skipField();
281
+ }
282
+ }
283
+ return message;
284
+ }
285
+ serializeBinary() {
286
+ return this.serialize();
287
+ }
288
+ static deserializeBinary(bytes) {
289
+ return _Timestamp.deserialize(bytes);
290
+ }
291
+ };
292
+ _one_of_decls = new WeakMap();
293
+ let Timestamp = _Timestamp;
294
+ protobuf2.Timestamp = _Timestamp;
295
+ })(protobuf = google3.protobuf || (google3.protobuf = {}));
296
+ })(google || (google = {}));
297
+
298
+ // lib/google/protobuf/duration.ts
299
+ var pb_13 = __toESM(require("google-protobuf"));
300
+ var google2;
301
+ ((google3) => {
302
+ let protobuf;
303
+ ((protobuf2) => {
304
+ var _one_of_decls;
305
+ const _Duration = class _Duration extends pb_13.Message {
306
+ constructor(data) {
307
+ super();
308
+ __privateAdd(this, _one_of_decls, []);
309
+ pb_13.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], __privateGet(this, _one_of_decls));
310
+ if (!Array.isArray(data) && typeof data == "object") {
311
+ if ("seconds" in data && data.seconds != void 0) {
312
+ this.seconds = data.seconds;
313
+ }
314
+ if ("nanos" in data && data.nanos != void 0) {
315
+ this.nanos = data.nanos;
316
+ }
317
+ }
318
+ }
319
+ get seconds() {
320
+ return pb_13.Message.getFieldWithDefault(this, 1, 0);
321
+ }
322
+ set seconds(value) {
323
+ pb_13.Message.setField(this, 1, value);
324
+ }
325
+ get nanos() {
326
+ return pb_13.Message.getFieldWithDefault(this, 2, 0);
327
+ }
328
+ set nanos(value) {
329
+ pb_13.Message.setField(this, 2, value);
330
+ }
331
+ static fromObject(data) {
332
+ const message = new _Duration({});
333
+ if (data.seconds != null) {
334
+ message.seconds = data.seconds;
335
+ }
336
+ if (data.nanos != null) {
337
+ message.nanos = data.nanos;
338
+ }
339
+ return message;
340
+ }
341
+ toObject() {
342
+ const data = {};
343
+ if (this.seconds != null) {
344
+ data.seconds = this.seconds;
345
+ }
346
+ if (this.nanos != null) {
347
+ data.nanos = this.nanos;
348
+ }
349
+ return data;
350
+ }
351
+ serialize(w) {
352
+ const writer = w || new pb_13.BinaryWriter();
353
+ if (this.seconds != 0)
354
+ writer.writeInt64(1, this.seconds);
355
+ if (this.nanos != 0)
356
+ writer.writeInt32(2, this.nanos);
357
+ if (!w)
358
+ return writer.getResultBuffer();
359
+ }
360
+ static deserialize(bytes) {
361
+ const reader = bytes instanceof pb_13.BinaryReader ? bytes : new pb_13.BinaryReader(bytes), message = new _Duration();
362
+ while (reader.nextField()) {
363
+ if (reader.isEndGroup())
364
+ break;
365
+ switch (reader.getFieldNumber()) {
366
+ case 1:
367
+ message.seconds = reader.readInt64();
368
+ break;
369
+ case 2:
370
+ message.nanos = reader.readInt32();
371
+ break;
372
+ default:
373
+ reader.skipField();
374
+ }
375
+ }
376
+ return message;
377
+ }
378
+ serializeBinary() {
379
+ return this.serialize();
380
+ }
381
+ static deserializeBinary(bytes) {
382
+ return _Duration.deserialize(bytes);
383
+ }
384
+ };
385
+ _one_of_decls = new WeakMap();
386
+ let Duration = _Duration;
387
+ protobuf2.Duration = _Duration;
388
+ })(protobuf = google3.protobuf || (google3.protobuf = {}));
389
+ })(google2 || (google2 = {}));
390
+
391
+ // lib/testsystem/v1/entities/test_case.ts
392
+ var pb_14 = __toESM(require("google-protobuf"));
393
+ var testsystem2;
394
+ ((testsystem4) => {
395
+ let v1;
396
+ ((v12) => {
397
+ let entities;
398
+ ((entities2) => {
399
+ var _one_of_decls, _one_of_decls2;
400
+ const _TestCaseRun = class _TestCaseRun extends pb_14.Message {
401
+ constructor(data) {
402
+ super();
403
+ __privateAdd(this, _one_of_decls, []);
404
+ pb_14.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [10, 13, 15], __privateGet(this, _one_of_decls));
405
+ if (!Array.isArray(data) && typeof data == "object") {
406
+ if ("id" in data && data.id != void 0) {
407
+ this.id = data.id;
408
+ }
409
+ if ("name" in data && data.name != void 0) {
410
+ this.name = data.name;
411
+ }
412
+ if ("description" in data && data.description != void 0) {
413
+ this.description = data.description;
414
+ }
415
+ if ("run_id" in data && data.run_id != void 0) {
416
+ this.run_id = data.run_id;
417
+ }
418
+ if ("test_suite_run_id" in data && data.test_suite_run_id != void 0) {
419
+ this.test_suite_run_id = data.test_suite_run_id;
420
+ }
421
+ if ("status" in data && data.status != void 0) {
422
+ this.status = data.status;
423
+ }
424
+ if ("start_time" in data && data.start_time != void 0) {
425
+ this.start_time = data.start_time;
426
+ }
427
+ if ("end_time" in data && data.end_time != void 0) {
428
+ this.end_time = data.end_time;
429
+ }
430
+ if ("duration" in data && data.duration != void 0) {
431
+ this.duration = data.duration;
432
+ }
433
+ if ("attachments" in data && data.attachments != void 0) {
434
+ this.attachments = data.attachments;
435
+ }
436
+ if ("error_message" in data && data.error_message != void 0) {
437
+ this.error_message = data.error_message;
438
+ }
439
+ if ("stack_trace" in data && data.stack_trace != void 0) {
440
+ this.stack_trace = data.stack_trace;
441
+ }
442
+ if ("errors" in data && data.errors != void 0) {
443
+ this.errors = data.errors;
444
+ }
445
+ if ("metadata" in data && data.metadata != void 0) {
446
+ this.metadata = data.metadata;
447
+ }
448
+ if ("tags" in data && data.tags != void 0) {
449
+ this.tags = data.tags;
450
+ }
451
+ if ("location" in data && data.location != void 0) {
452
+ this.location = data.location;
453
+ }
454
+ if ("retry_count" in data && data.retry_count != void 0) {
455
+ this.retry_count = data.retry_count;
456
+ }
457
+ if ("retry_index" in data && data.retry_index != void 0) {
458
+ this.retry_index = data.retry_index;
459
+ }
460
+ if ("timeout" in data && data.timeout != void 0) {
461
+ this.timeout = data.timeout;
462
+ }
463
+ }
464
+ if (!this.metadata)
465
+ this.metadata = /* @__PURE__ */ new Map();
466
+ }
467
+ get id() {
468
+ return pb_14.Message.getFieldWithDefault(this, 1, "");
469
+ }
470
+ set id(value) {
471
+ pb_14.Message.setField(this, 1, value);
472
+ }
473
+ get name() {
474
+ return pb_14.Message.getFieldWithDefault(this, 2, "");
475
+ }
476
+ set name(value) {
477
+ pb_14.Message.setField(this, 2, value);
478
+ }
479
+ get description() {
480
+ return pb_14.Message.getFieldWithDefault(this, 3, "");
481
+ }
482
+ set description(value) {
483
+ pb_14.Message.setField(this, 3, value);
484
+ }
485
+ get run_id() {
486
+ return pb_14.Message.getFieldWithDefault(this, 4, "");
487
+ }
488
+ set run_id(value) {
489
+ pb_14.Message.setField(this, 4, value);
490
+ }
491
+ get test_suite_run_id() {
492
+ return pb_14.Message.getFieldWithDefault(this, 5, "");
493
+ }
494
+ set test_suite_run_id(value) {
495
+ pb_14.Message.setField(this, 5, value);
496
+ }
497
+ get status() {
498
+ return pb_14.Message.getFieldWithDefault(this, 6, testsystem.v1.common.TestStatus.UNKNOWN);
499
+ }
500
+ set status(value) {
501
+ pb_14.Message.setField(this, 6, value);
502
+ }
503
+ get start_time() {
504
+ return pb_14.Message.getWrapperField(this, google.protobuf.Timestamp, 7);
505
+ }
506
+ set start_time(value) {
507
+ pb_14.Message.setWrapperField(this, 7, value);
508
+ }
509
+ get has_start_time() {
510
+ return pb_14.Message.getField(this, 7) != null;
511
+ }
512
+ get end_time() {
513
+ return pb_14.Message.getWrapperField(this, google.protobuf.Timestamp, 8);
514
+ }
515
+ set end_time(value) {
516
+ pb_14.Message.setWrapperField(this, 8, value);
517
+ }
518
+ get has_end_time() {
519
+ return pb_14.Message.getField(this, 8) != null;
520
+ }
521
+ get duration() {
522
+ return pb_14.Message.getWrapperField(this, google2.protobuf.Duration, 9);
523
+ }
524
+ set duration(value) {
525
+ pb_14.Message.setWrapperField(this, 9, value);
526
+ }
527
+ get has_duration() {
528
+ return pb_14.Message.getField(this, 9) != null;
529
+ }
530
+ get attachments() {
531
+ return pb_14.Message.getRepeatedWrapperField(this, testsystem.v1.common.Attachment, 10);
532
+ }
533
+ set attachments(value) {
534
+ pb_14.Message.setRepeatedWrapperField(this, 10, value);
535
+ }
536
+ get error_message() {
537
+ return pb_14.Message.getFieldWithDefault(this, 11, "");
538
+ }
539
+ set error_message(value) {
540
+ pb_14.Message.setField(this, 11, value);
541
+ }
542
+ get stack_trace() {
543
+ return pb_14.Message.getFieldWithDefault(this, 12, "");
544
+ }
545
+ set stack_trace(value) {
546
+ pb_14.Message.setField(this, 12, value);
547
+ }
548
+ get errors() {
549
+ return pb_14.Message.getFieldWithDefault(this, 13, []);
550
+ }
551
+ set errors(value) {
552
+ pb_14.Message.setField(this, 13, value);
553
+ }
554
+ get metadata() {
555
+ return pb_14.Message.getField(this, 14);
556
+ }
557
+ set metadata(value) {
558
+ pb_14.Message.setField(this, 14, value);
559
+ }
560
+ get tags() {
561
+ return pb_14.Message.getFieldWithDefault(this, 15, []);
562
+ }
563
+ set tags(value) {
564
+ pb_14.Message.setField(this, 15, value);
565
+ }
566
+ get location() {
567
+ return pb_14.Message.getFieldWithDefault(this, 16, "");
568
+ }
569
+ set location(value) {
570
+ pb_14.Message.setField(this, 16, value);
571
+ }
572
+ get retry_count() {
573
+ return pb_14.Message.getFieldWithDefault(this, 17, 0);
574
+ }
575
+ set retry_count(value) {
576
+ pb_14.Message.setField(this, 17, value);
577
+ }
578
+ get retry_index() {
579
+ return pb_14.Message.getFieldWithDefault(this, 18, 0);
580
+ }
581
+ set retry_index(value) {
582
+ pb_14.Message.setField(this, 18, value);
583
+ }
584
+ get timeout() {
585
+ return pb_14.Message.getFieldWithDefault(this, 19, 0);
586
+ }
587
+ set timeout(value) {
588
+ pb_14.Message.setField(this, 19, value);
589
+ }
590
+ static fromObject(data) {
591
+ const message = new _TestCaseRun({});
592
+ if (data.id != null) {
593
+ message.id = data.id;
594
+ }
595
+ if (data.name != null) {
596
+ message.name = data.name;
597
+ }
598
+ if (data.description != null) {
599
+ message.description = data.description;
600
+ }
601
+ if (data.run_id != null) {
602
+ message.run_id = data.run_id;
603
+ }
604
+ if (data.test_suite_run_id != null) {
605
+ message.test_suite_run_id = data.test_suite_run_id;
606
+ }
607
+ if (data.status != null) {
608
+ message.status = data.status;
609
+ }
610
+ if (data.start_time != null) {
611
+ message.start_time = google.protobuf.Timestamp.fromObject(data.start_time);
612
+ }
613
+ if (data.end_time != null) {
614
+ message.end_time = google.protobuf.Timestamp.fromObject(data.end_time);
615
+ }
616
+ if (data.duration != null) {
617
+ message.duration = google2.protobuf.Duration.fromObject(data.duration);
618
+ }
619
+ if (data.attachments != null) {
620
+ message.attachments = data.attachments.map((item) => testsystem.v1.common.Attachment.fromObject(item));
621
+ }
622
+ if (data.error_message != null) {
623
+ message.error_message = data.error_message;
624
+ }
625
+ if (data.stack_trace != null) {
626
+ message.stack_trace = data.stack_trace;
627
+ }
628
+ if (data.errors != null) {
629
+ message.errors = data.errors;
630
+ }
631
+ if (typeof data.metadata == "object") {
632
+ message.metadata = new Map(Object.entries(data.metadata));
633
+ }
634
+ if (data.tags != null) {
635
+ message.tags = data.tags;
636
+ }
637
+ if (data.location != null) {
638
+ message.location = data.location;
639
+ }
640
+ if (data.retry_count != null) {
641
+ message.retry_count = data.retry_count;
642
+ }
643
+ if (data.retry_index != null) {
644
+ message.retry_index = data.retry_index;
645
+ }
646
+ if (data.timeout != null) {
647
+ message.timeout = data.timeout;
648
+ }
649
+ return message;
650
+ }
651
+ toObject() {
652
+ const data = {};
653
+ if (this.id != null) {
654
+ data.id = this.id;
655
+ }
656
+ if (this.name != null) {
657
+ data.name = this.name;
658
+ }
659
+ if (this.description != null) {
660
+ data.description = this.description;
661
+ }
662
+ if (this.run_id != null) {
663
+ data.run_id = this.run_id;
664
+ }
665
+ if (this.test_suite_run_id != null) {
666
+ data.test_suite_run_id = this.test_suite_run_id;
667
+ }
668
+ if (this.status != null) {
669
+ data.status = this.status;
670
+ }
671
+ if (this.start_time != null) {
672
+ data.start_time = this.start_time.toObject();
673
+ }
674
+ if (this.end_time != null) {
675
+ data.end_time = this.end_time.toObject();
676
+ }
677
+ if (this.duration != null) {
678
+ data.duration = this.duration.toObject();
679
+ }
680
+ if (this.attachments != null) {
681
+ data.attachments = this.attachments.map((item) => item.toObject());
682
+ }
683
+ if (this.error_message != null) {
684
+ data.error_message = this.error_message;
685
+ }
686
+ if (this.stack_trace != null) {
687
+ data.stack_trace = this.stack_trace;
688
+ }
689
+ if (this.errors != null) {
690
+ data.errors = this.errors;
691
+ }
692
+ if (this.metadata != null) {
693
+ data.metadata = Object.fromEntries(this.metadata);
694
+ }
695
+ if (this.tags != null) {
696
+ data.tags = this.tags;
697
+ }
698
+ if (this.location != null) {
699
+ data.location = this.location;
700
+ }
701
+ if (this.retry_count != null) {
702
+ data.retry_count = this.retry_count;
703
+ }
704
+ if (this.retry_index != null) {
705
+ data.retry_index = this.retry_index;
706
+ }
707
+ if (this.timeout != null) {
708
+ data.timeout = this.timeout;
709
+ }
710
+ return data;
711
+ }
712
+ serialize(w) {
713
+ const writer = w || new pb_14.BinaryWriter();
714
+ if (this.id.length)
715
+ writer.writeString(1, this.id);
716
+ if (this.name.length)
717
+ writer.writeString(2, this.name);
718
+ if (this.description.length)
719
+ writer.writeString(3, this.description);
720
+ if (this.run_id.length)
721
+ writer.writeString(4, this.run_id);
722
+ if (this.test_suite_run_id.length)
723
+ writer.writeString(5, this.test_suite_run_id);
724
+ if (this.status != testsystem.v1.common.TestStatus.UNKNOWN)
725
+ writer.writeEnum(6, this.status);
726
+ if (this.has_start_time)
727
+ writer.writeMessage(7, this.start_time, () => this.start_time.serialize(writer));
728
+ if (this.has_end_time)
729
+ writer.writeMessage(8, this.end_time, () => this.end_time.serialize(writer));
730
+ if (this.has_duration)
731
+ writer.writeMessage(9, this.duration, () => this.duration.serialize(writer));
732
+ if (this.attachments.length)
733
+ writer.writeRepeatedMessage(10, this.attachments, (item) => item.serialize(writer));
734
+ if (this.error_message.length)
735
+ writer.writeString(11, this.error_message);
736
+ if (this.stack_trace.length)
737
+ writer.writeString(12, this.stack_trace);
738
+ if (this.errors.length)
739
+ writer.writeRepeatedString(13, this.errors);
740
+ for (const [key, value] of this.metadata) {
741
+ writer.writeMessage(14, this.metadata, () => {
742
+ writer.writeString(1, key);
743
+ writer.writeString(2, value);
744
+ });
745
+ }
746
+ if (this.tags.length)
747
+ writer.writeRepeatedString(15, this.tags);
748
+ if (this.location.length)
749
+ writer.writeString(16, this.location);
750
+ if (this.retry_count != 0)
751
+ writer.writeInt32(17, this.retry_count);
752
+ if (this.retry_index != 0)
753
+ writer.writeInt32(18, this.retry_index);
754
+ if (this.timeout != 0)
755
+ writer.writeInt32(19, this.timeout);
756
+ if (!w)
757
+ return writer.getResultBuffer();
758
+ }
759
+ static deserialize(bytes) {
760
+ const reader = bytes instanceof pb_14.BinaryReader ? bytes : new pb_14.BinaryReader(bytes), message = new _TestCaseRun();
761
+ while (reader.nextField()) {
762
+ if (reader.isEndGroup())
763
+ break;
764
+ switch (reader.getFieldNumber()) {
765
+ case 1:
766
+ message.id = reader.readString();
767
+ break;
768
+ case 2:
769
+ message.name = reader.readString();
770
+ break;
771
+ case 3:
772
+ message.description = reader.readString();
773
+ break;
774
+ case 4:
775
+ message.run_id = reader.readString();
776
+ break;
777
+ case 5:
778
+ message.test_suite_run_id = reader.readString();
779
+ break;
780
+ case 6:
781
+ message.status = reader.readEnum();
782
+ break;
783
+ case 7:
784
+ reader.readMessage(message.start_time, () => message.start_time = google.protobuf.Timestamp.deserialize(reader));
785
+ break;
786
+ case 8:
787
+ reader.readMessage(message.end_time, () => message.end_time = google.protobuf.Timestamp.deserialize(reader));
788
+ break;
789
+ case 9:
790
+ reader.readMessage(message.duration, () => message.duration = google2.protobuf.Duration.deserialize(reader));
791
+ break;
792
+ case 10:
793
+ reader.readMessage(message.attachments, () => pb_14.Message.addToRepeatedWrapperField(message, 10, testsystem.v1.common.Attachment.deserialize(reader), testsystem.v1.common.Attachment));
794
+ break;
795
+ case 11:
796
+ message.error_message = reader.readString();
797
+ break;
798
+ case 12:
799
+ message.stack_trace = reader.readString();
800
+ break;
801
+ case 13:
802
+ pb_14.Message.addToRepeatedField(message, 13, reader.readString());
803
+ break;
804
+ case 14:
805
+ reader.readMessage(message, () => pb_14.Map.deserializeBinary(message.metadata, reader, reader.readString, reader.readString));
806
+ break;
807
+ case 15:
808
+ pb_14.Message.addToRepeatedField(message, 15, reader.readString());
809
+ break;
810
+ case 16:
811
+ message.location = reader.readString();
812
+ break;
813
+ case 17:
814
+ message.retry_count = reader.readInt32();
815
+ break;
816
+ case 18:
817
+ message.retry_index = reader.readInt32();
818
+ break;
819
+ case 19:
820
+ message.timeout = reader.readInt32();
821
+ break;
822
+ default:
823
+ reader.skipField();
824
+ }
825
+ }
826
+ return message;
827
+ }
828
+ serializeBinary() {
829
+ return this.serialize();
830
+ }
831
+ static deserializeBinary(bytes) {
832
+ return _TestCaseRun.deserialize(bytes);
833
+ }
834
+ };
835
+ _one_of_decls = new WeakMap();
836
+ let TestCaseRun2 = _TestCaseRun;
837
+ entities2.TestCaseRun = _TestCaseRun;
838
+ const _StepRun = class _StepRun extends pb_14.Message {
839
+ constructor(data) {
840
+ super();
841
+ __privateAdd(this, _one_of_decls2, []);
842
+ pb_14.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [14], __privateGet(this, _one_of_decls2));
843
+ if (!Array.isArray(data) && typeof data == "object") {
844
+ if ("id" in data && data.id != void 0) {
845
+ this.id = data.id;
846
+ }
847
+ if ("run_id" in data && data.run_id != void 0) {
848
+ this.run_id = data.run_id;
849
+ }
850
+ if ("test_case_run_id" in data && data.test_case_run_id != void 0) {
851
+ this.test_case_run_id = data.test_case_run_id;
852
+ }
853
+ if ("title" in data && data.title != void 0) {
854
+ this.title = data.title;
855
+ }
856
+ if ("description" in data && data.description != void 0) {
857
+ this.description = data.description;
858
+ }
859
+ if ("start_time" in data && data.start_time != void 0) {
860
+ this.start_time = data.start_time;
861
+ }
862
+ if ("duration" in data && data.duration != void 0) {
863
+ this.duration = data.duration;
864
+ }
865
+ if ("type" in data && data.type != void 0) {
866
+ this.type = data.type;
867
+ }
868
+ if ("metadata" in data && data.metadata != void 0) {
869
+ this.metadata = data.metadata;
870
+ }
871
+ if ("parent_step_id" in data && data.parent_step_id != void 0) {
872
+ this.parent_step_id = data.parent_step_id;
873
+ }
874
+ if ("worker_index" in data && data.worker_index != void 0) {
875
+ this.worker_index = data.worker_index;
876
+ }
877
+ if ("status" in data && data.status != void 0) {
878
+ this.status = data.status;
879
+ }
880
+ if ("error" in data && data.error != void 0) {
881
+ this.error = data.error;
882
+ }
883
+ if ("errors" in data && data.errors != void 0) {
884
+ this.errors = data.errors;
885
+ }
886
+ if ("location" in data && data.location != void 0) {
887
+ this.location = data.location;
888
+ }
889
+ if ("category" in data && data.category != void 0) {
890
+ this.category = data.category;
891
+ }
892
+ }
893
+ if (!this.metadata)
894
+ this.metadata = /* @__PURE__ */ new Map();
895
+ }
896
+ get id() {
897
+ return pb_14.Message.getFieldWithDefault(this, 1, "");
898
+ }
899
+ set id(value) {
900
+ pb_14.Message.setField(this, 1, value);
901
+ }
902
+ get run_id() {
903
+ return pb_14.Message.getFieldWithDefault(this, 2, "");
904
+ }
905
+ set run_id(value) {
906
+ pb_14.Message.setField(this, 2, value);
907
+ }
908
+ get test_case_run_id() {
909
+ return pb_14.Message.getFieldWithDefault(this, 3, "");
910
+ }
911
+ set test_case_run_id(value) {
912
+ pb_14.Message.setField(this, 3, value);
913
+ }
914
+ get title() {
915
+ return pb_14.Message.getFieldWithDefault(this, 4, "");
916
+ }
917
+ set title(value) {
918
+ pb_14.Message.setField(this, 4, value);
919
+ }
920
+ get description() {
921
+ return pb_14.Message.getFieldWithDefault(this, 5, "");
922
+ }
923
+ set description(value) {
924
+ pb_14.Message.setField(this, 5, value);
925
+ }
926
+ get start_time() {
927
+ return pb_14.Message.getWrapperField(this, google.protobuf.Timestamp, 6);
928
+ }
929
+ set start_time(value) {
930
+ pb_14.Message.setWrapperField(this, 6, value);
931
+ }
932
+ get has_start_time() {
933
+ return pb_14.Message.getField(this, 6) != null;
934
+ }
935
+ get duration() {
936
+ return pb_14.Message.getWrapperField(this, google2.protobuf.Duration, 7);
937
+ }
938
+ set duration(value) {
939
+ pb_14.Message.setWrapperField(this, 7, value);
940
+ }
941
+ get has_duration() {
942
+ return pb_14.Message.getField(this, 7) != null;
943
+ }
944
+ get type() {
945
+ return pb_14.Message.getFieldWithDefault(this, 8, "");
946
+ }
947
+ set type(value) {
948
+ pb_14.Message.setField(this, 8, value);
949
+ }
950
+ get metadata() {
951
+ return pb_14.Message.getField(this, 9);
952
+ }
953
+ set metadata(value) {
954
+ pb_14.Message.setField(this, 9, value);
955
+ }
956
+ get parent_step_id() {
957
+ return pb_14.Message.getFieldWithDefault(this, 10, "");
958
+ }
959
+ set parent_step_id(value) {
960
+ pb_14.Message.setField(this, 10, value);
961
+ }
962
+ get worker_index() {
963
+ return pb_14.Message.getFieldWithDefault(this, 11, "");
964
+ }
965
+ set worker_index(value) {
966
+ pb_14.Message.setField(this, 11, value);
967
+ }
968
+ get status() {
969
+ return pb_14.Message.getFieldWithDefault(this, 12, testsystem.v1.common.TestStatus.UNKNOWN);
970
+ }
971
+ set status(value) {
972
+ pb_14.Message.setField(this, 12, value);
973
+ }
974
+ get error() {
975
+ return pb_14.Message.getFieldWithDefault(this, 13, "");
976
+ }
977
+ set error(value) {
978
+ pb_14.Message.setField(this, 13, value);
979
+ }
980
+ get errors() {
981
+ return pb_14.Message.getFieldWithDefault(this, 14, []);
982
+ }
983
+ set errors(value) {
984
+ pb_14.Message.setField(this, 14, value);
985
+ }
986
+ get location() {
987
+ return pb_14.Message.getFieldWithDefault(this, 15, "");
988
+ }
989
+ set location(value) {
990
+ pb_14.Message.setField(this, 15, value);
991
+ }
992
+ get category() {
993
+ return pb_14.Message.getFieldWithDefault(this, 16, "");
994
+ }
995
+ set category(value) {
996
+ pb_14.Message.setField(this, 16, value);
997
+ }
998
+ static fromObject(data) {
999
+ const message = new _StepRun({});
1000
+ if (data.id != null) {
1001
+ message.id = data.id;
1002
+ }
1003
+ if (data.run_id != null) {
1004
+ message.run_id = data.run_id;
1005
+ }
1006
+ if (data.test_case_run_id != null) {
1007
+ message.test_case_run_id = data.test_case_run_id;
1008
+ }
1009
+ if (data.title != null) {
1010
+ message.title = data.title;
1011
+ }
1012
+ if (data.description != null) {
1013
+ message.description = data.description;
1014
+ }
1015
+ if (data.start_time != null) {
1016
+ message.start_time = google.protobuf.Timestamp.fromObject(data.start_time);
1017
+ }
1018
+ if (data.duration != null) {
1019
+ message.duration = google2.protobuf.Duration.fromObject(data.duration);
1020
+ }
1021
+ if (data.type != null) {
1022
+ message.type = data.type;
1023
+ }
1024
+ if (typeof data.metadata == "object") {
1025
+ message.metadata = new Map(Object.entries(data.metadata));
1026
+ }
1027
+ if (data.parent_step_id != null) {
1028
+ message.parent_step_id = data.parent_step_id;
1029
+ }
1030
+ if (data.worker_index != null) {
1031
+ message.worker_index = data.worker_index;
1032
+ }
1033
+ if (data.status != null) {
1034
+ message.status = data.status;
1035
+ }
1036
+ if (data.error != null) {
1037
+ message.error = data.error;
1038
+ }
1039
+ if (data.errors != null) {
1040
+ message.errors = data.errors;
1041
+ }
1042
+ if (data.location != null) {
1043
+ message.location = data.location;
1044
+ }
1045
+ if (data.category != null) {
1046
+ message.category = data.category;
1047
+ }
1048
+ return message;
1049
+ }
1050
+ toObject() {
1051
+ const data = {};
1052
+ if (this.id != null) {
1053
+ data.id = this.id;
1054
+ }
1055
+ if (this.run_id != null) {
1056
+ data.run_id = this.run_id;
1057
+ }
1058
+ if (this.test_case_run_id != null) {
1059
+ data.test_case_run_id = this.test_case_run_id;
1060
+ }
1061
+ if (this.title != null) {
1062
+ data.title = this.title;
1063
+ }
1064
+ if (this.description != null) {
1065
+ data.description = this.description;
1066
+ }
1067
+ if (this.start_time != null) {
1068
+ data.start_time = this.start_time.toObject();
1069
+ }
1070
+ if (this.duration != null) {
1071
+ data.duration = this.duration.toObject();
1072
+ }
1073
+ if (this.type != null) {
1074
+ data.type = this.type;
1075
+ }
1076
+ if (this.metadata != null) {
1077
+ data.metadata = Object.fromEntries(this.metadata);
1078
+ }
1079
+ if (this.parent_step_id != null) {
1080
+ data.parent_step_id = this.parent_step_id;
1081
+ }
1082
+ if (this.worker_index != null) {
1083
+ data.worker_index = this.worker_index;
1084
+ }
1085
+ if (this.status != null) {
1086
+ data.status = this.status;
1087
+ }
1088
+ if (this.error != null) {
1089
+ data.error = this.error;
1090
+ }
1091
+ if (this.errors != null) {
1092
+ data.errors = this.errors;
1093
+ }
1094
+ if (this.location != null) {
1095
+ data.location = this.location;
1096
+ }
1097
+ if (this.category != null) {
1098
+ data.category = this.category;
1099
+ }
1100
+ return data;
1101
+ }
1102
+ serialize(w) {
1103
+ const writer = w || new pb_14.BinaryWriter();
1104
+ if (this.id.length)
1105
+ writer.writeString(1, this.id);
1106
+ if (this.run_id.length)
1107
+ writer.writeString(2, this.run_id);
1108
+ if (this.test_case_run_id.length)
1109
+ writer.writeString(3, this.test_case_run_id);
1110
+ if (this.title.length)
1111
+ writer.writeString(4, this.title);
1112
+ if (this.description.length)
1113
+ writer.writeString(5, this.description);
1114
+ if (this.has_start_time)
1115
+ writer.writeMessage(6, this.start_time, () => this.start_time.serialize(writer));
1116
+ if (this.has_duration)
1117
+ writer.writeMessage(7, this.duration, () => this.duration.serialize(writer));
1118
+ if (this.type.length)
1119
+ writer.writeString(8, this.type);
1120
+ for (const [key, value] of this.metadata) {
1121
+ writer.writeMessage(9, this.metadata, () => {
1122
+ writer.writeString(1, key);
1123
+ writer.writeString(2, value);
1124
+ });
1125
+ }
1126
+ if (this.parent_step_id.length)
1127
+ writer.writeString(10, this.parent_step_id);
1128
+ if (this.worker_index.length)
1129
+ writer.writeString(11, this.worker_index);
1130
+ if (this.status != testsystem.v1.common.TestStatus.UNKNOWN)
1131
+ writer.writeEnum(12, this.status);
1132
+ if (this.error.length)
1133
+ writer.writeString(13, this.error);
1134
+ if (this.errors.length)
1135
+ writer.writeRepeatedString(14, this.errors);
1136
+ if (this.location.length)
1137
+ writer.writeString(15, this.location);
1138
+ if (this.category.length)
1139
+ writer.writeString(16, this.category);
1140
+ if (!w)
1141
+ return writer.getResultBuffer();
1142
+ }
1143
+ static deserialize(bytes) {
1144
+ const reader = bytes instanceof pb_14.BinaryReader ? bytes : new pb_14.BinaryReader(bytes), message = new _StepRun();
1145
+ while (reader.nextField()) {
1146
+ if (reader.isEndGroup())
1147
+ break;
1148
+ switch (reader.getFieldNumber()) {
1149
+ case 1:
1150
+ message.id = reader.readString();
1151
+ break;
1152
+ case 2:
1153
+ message.run_id = reader.readString();
1154
+ break;
1155
+ case 3:
1156
+ message.test_case_run_id = reader.readString();
1157
+ break;
1158
+ case 4:
1159
+ message.title = reader.readString();
1160
+ break;
1161
+ case 5:
1162
+ message.description = reader.readString();
1163
+ break;
1164
+ case 6:
1165
+ reader.readMessage(message.start_time, () => message.start_time = google.protobuf.Timestamp.deserialize(reader));
1166
+ break;
1167
+ case 7:
1168
+ reader.readMessage(message.duration, () => message.duration = google2.protobuf.Duration.deserialize(reader));
1169
+ break;
1170
+ case 8:
1171
+ message.type = reader.readString();
1172
+ break;
1173
+ case 9:
1174
+ reader.readMessage(message, () => pb_14.Map.deserializeBinary(message.metadata, reader, reader.readString, reader.readString));
1175
+ break;
1176
+ case 10:
1177
+ message.parent_step_id = reader.readString();
1178
+ break;
1179
+ case 11:
1180
+ message.worker_index = reader.readString();
1181
+ break;
1182
+ case 12:
1183
+ message.status = reader.readEnum();
1184
+ break;
1185
+ case 13:
1186
+ message.error = reader.readString();
1187
+ break;
1188
+ case 14:
1189
+ pb_14.Message.addToRepeatedField(message, 14, reader.readString());
1190
+ break;
1191
+ case 15:
1192
+ message.location = reader.readString();
1193
+ break;
1194
+ case 16:
1195
+ message.category = reader.readString();
1196
+ break;
1197
+ default:
1198
+ reader.skipField();
1199
+ }
1200
+ }
1201
+ return message;
1202
+ }
1203
+ serializeBinary() {
1204
+ return this.serialize();
1205
+ }
1206
+ static deserializeBinary(bytes) {
1207
+ return _StepRun.deserialize(bytes);
1208
+ }
1209
+ };
1210
+ _one_of_decls2 = new WeakMap();
1211
+ let StepRun2 = _StepRun;
1212
+ entities2.StepRun = _StepRun;
1213
+ })(entities = v12.entities || (v12.entities = {}));
1214
+ })(v1 = testsystem4.v1 || (testsystem4.v1 = {}));
1215
+ })(testsystem2 || (testsystem2 = {}));
1216
+
1217
+ // lib/testsystem/v1/entities/test_suite.ts
1218
+ var pb_15 = __toESM(require("google-protobuf"));
1219
+ var testsystem3;
1220
+ ((testsystem4) => {
1221
+ let v1;
1222
+ ((v12) => {
1223
+ let entities;
1224
+ ((entities2) => {
1225
+ var _one_of_decls;
1226
+ let SuiteType;
1227
+ ((SuiteType2) => {
1228
+ SuiteType2[SuiteType2["ROOT"] = 0] = "ROOT";
1229
+ SuiteType2[SuiteType2["PROJECT"] = 1] = "PROJECT";
1230
+ SuiteType2[SuiteType2["SUBSUITE"] = 2] = "SUBSUITE";
1231
+ })(SuiteType = entities2.SuiteType || (entities2.SuiteType = {}));
1232
+ const _TestSuiteRun = class _TestSuiteRun extends pb_15.Message {
1233
+ constructor(data) {
1234
+ super();
1235
+ __privateAdd(this, _one_of_decls, []);
1236
+ pb_15.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [13, 14, 19, 20], __privateGet(this, _one_of_decls));
1237
+ if (!Array.isArray(data) && typeof data == "object") {
1238
+ if ("id" in data && data.id != void 0) {
1239
+ this.id = data.id;
1240
+ }
1241
+ if ("name" in data && data.name != void 0) {
1242
+ this.name = data.name;
1243
+ }
1244
+ if ("description" in data && data.description != void 0) {
1245
+ this.description = data.description;
1246
+ }
1247
+ if ("run_id" in data && data.run_id != void 0) {
1248
+ this.run_id = data.run_id;
1249
+ }
1250
+ if ("start_time" in data && data.start_time != void 0) {
1251
+ this.start_time = data.start_time;
1252
+ }
1253
+ if ("end_time" in data && data.end_time != void 0) {
1254
+ this.end_time = data.end_time;
1255
+ }
1256
+ if ("duration" in data && data.duration != void 0) {
1257
+ this.duration = data.duration;
1258
+ }
1259
+ if ("status" in data && data.status != void 0) {
1260
+ this.status = data.status;
1261
+ }
1262
+ if ("metadata" in data && data.metadata != void 0) {
1263
+ this.metadata = data.metadata;
1264
+ }
1265
+ if ("location" in data && data.location != void 0) {
1266
+ this.location = data.location;
1267
+ }
1268
+ if ("type" in data && data.type != void 0) {
1269
+ this.type = data.type;
1270
+ }
1271
+ if ("parent_suite_id" in data && data.parent_suite_id != void 0) {
1272
+ this.parent_suite_id = data.parent_suite_id;
1273
+ }
1274
+ if ("test_case_ids" in data && data.test_case_ids != void 0) {
1275
+ this.test_case_ids = data.test_case_ids;
1276
+ }
1277
+ if ("sub_suite_ids" in data && data.sub_suite_ids != void 0) {
1278
+ this.sub_suite_ids = data.sub_suite_ids;
1279
+ }
1280
+ if ("project" in data && data.project != void 0) {
1281
+ this.project = data.project;
1282
+ }
1283
+ if ("initiated_by" in data && data.initiated_by != void 0) {
1284
+ this.initiated_by = data.initiated_by;
1285
+ }
1286
+ if ("author" in data && data.author != void 0) {
1287
+ this.author = data.author;
1288
+ }
1289
+ if ("owner" in data && data.owner != void 0) {
1290
+ this.owner = data.owner;
1291
+ }
1292
+ if ("test_cases" in data && data.test_cases != void 0) {
1293
+ this.test_cases = data.test_cases;
1294
+ }
1295
+ if ("sub_suites" in data && data.sub_suites != void 0) {
1296
+ this.sub_suites = data.sub_suites;
1297
+ }
1298
+ }
1299
+ if (!this.metadata)
1300
+ this.metadata = /* @__PURE__ */ new Map();
1301
+ }
1302
+ get id() {
1303
+ return pb_15.Message.getFieldWithDefault(this, 1, "");
1304
+ }
1305
+ set id(value) {
1306
+ pb_15.Message.setField(this, 1, value);
1307
+ }
1308
+ get name() {
1309
+ return pb_15.Message.getFieldWithDefault(this, 2, "");
1310
+ }
1311
+ set name(value) {
1312
+ pb_15.Message.setField(this, 2, value);
1313
+ }
1314
+ get description() {
1315
+ return pb_15.Message.getFieldWithDefault(this, 3, "");
1316
+ }
1317
+ set description(value) {
1318
+ pb_15.Message.setField(this, 3, value);
1319
+ }
1320
+ get run_id() {
1321
+ return pb_15.Message.getFieldWithDefault(this, 4, "");
1322
+ }
1323
+ set run_id(value) {
1324
+ pb_15.Message.setField(this, 4, value);
1325
+ }
1326
+ get start_time() {
1327
+ return pb_15.Message.getWrapperField(this, google.protobuf.Timestamp, 5);
1328
+ }
1329
+ set start_time(value) {
1330
+ pb_15.Message.setWrapperField(this, 5, value);
1331
+ }
1332
+ get has_start_time() {
1333
+ return pb_15.Message.getField(this, 5) != null;
1334
+ }
1335
+ get end_time() {
1336
+ return pb_15.Message.getWrapperField(this, google.protobuf.Timestamp, 6);
1337
+ }
1338
+ set end_time(value) {
1339
+ pb_15.Message.setWrapperField(this, 6, value);
1340
+ }
1341
+ get has_end_time() {
1342
+ return pb_15.Message.getField(this, 6) != null;
1343
+ }
1344
+ get duration() {
1345
+ return pb_15.Message.getWrapperField(this, google2.protobuf.Duration, 7);
1346
+ }
1347
+ set duration(value) {
1348
+ pb_15.Message.setWrapperField(this, 7, value);
1349
+ }
1350
+ get has_duration() {
1351
+ return pb_15.Message.getField(this, 7) != null;
1352
+ }
1353
+ get status() {
1354
+ return pb_15.Message.getFieldWithDefault(this, 8, testsystem.v1.common.TestStatus.UNKNOWN);
1355
+ }
1356
+ set status(value) {
1357
+ pb_15.Message.setField(this, 8, value);
1358
+ }
1359
+ get metadata() {
1360
+ return pb_15.Message.getField(this, 9);
1361
+ }
1362
+ set metadata(value) {
1363
+ pb_15.Message.setField(this, 9, value);
1364
+ }
1365
+ get location() {
1366
+ return pb_15.Message.getFieldWithDefault(this, 10, "");
1367
+ }
1368
+ set location(value) {
1369
+ pb_15.Message.setField(this, 10, value);
1370
+ }
1371
+ get type() {
1372
+ return pb_15.Message.getFieldWithDefault(this, 11, 0 /* ROOT */);
1373
+ }
1374
+ set type(value) {
1375
+ pb_15.Message.setField(this, 11, value);
1376
+ }
1377
+ get parent_suite_id() {
1378
+ return pb_15.Message.getFieldWithDefault(this, 12, "");
1379
+ }
1380
+ set parent_suite_id(value) {
1381
+ pb_15.Message.setField(this, 12, value);
1382
+ }
1383
+ get test_case_ids() {
1384
+ return pb_15.Message.getFieldWithDefault(this, 13, []);
1385
+ }
1386
+ set test_case_ids(value) {
1387
+ pb_15.Message.setField(this, 13, value);
1388
+ }
1389
+ get sub_suite_ids() {
1390
+ return pb_15.Message.getFieldWithDefault(this, 14, []);
1391
+ }
1392
+ set sub_suite_ids(value) {
1393
+ pb_15.Message.setField(this, 14, value);
1394
+ }
1395
+ get project() {
1396
+ return pb_15.Message.getFieldWithDefault(this, 15, "");
1397
+ }
1398
+ set project(value) {
1399
+ pb_15.Message.setField(this, 15, value);
1400
+ }
1401
+ get initiated_by() {
1402
+ return pb_15.Message.getFieldWithDefault(this, 16, "");
1403
+ }
1404
+ set initiated_by(value) {
1405
+ pb_15.Message.setField(this, 16, value);
1406
+ }
1407
+ get author() {
1408
+ return pb_15.Message.getFieldWithDefault(this, 17, "");
1409
+ }
1410
+ set author(value) {
1411
+ pb_15.Message.setField(this, 17, value);
1412
+ }
1413
+ get owner() {
1414
+ return pb_15.Message.getFieldWithDefault(this, 18, "");
1415
+ }
1416
+ set owner(value) {
1417
+ pb_15.Message.setField(this, 18, value);
1418
+ }
1419
+ get test_cases() {
1420
+ return pb_15.Message.getRepeatedWrapperField(this, testsystem2.v1.entities.TestCaseRun, 19);
1421
+ }
1422
+ set test_cases(value) {
1423
+ pb_15.Message.setRepeatedWrapperField(this, 19, value);
1424
+ }
1425
+ get sub_suites() {
1426
+ return pb_15.Message.getRepeatedWrapperField(this, _TestSuiteRun, 20);
1427
+ }
1428
+ set sub_suites(value) {
1429
+ pb_15.Message.setRepeatedWrapperField(this, 20, value);
1430
+ }
1431
+ static fromObject(data) {
1432
+ const message = new _TestSuiteRun({});
1433
+ if (data.id != null) {
1434
+ message.id = data.id;
1435
+ }
1436
+ if (data.name != null) {
1437
+ message.name = data.name;
1438
+ }
1439
+ if (data.description != null) {
1440
+ message.description = data.description;
1441
+ }
1442
+ if (data.run_id != null) {
1443
+ message.run_id = data.run_id;
1444
+ }
1445
+ if (data.start_time != null) {
1446
+ message.start_time = google.protobuf.Timestamp.fromObject(data.start_time);
1447
+ }
1448
+ if (data.end_time != null) {
1449
+ message.end_time = google.protobuf.Timestamp.fromObject(data.end_time);
1450
+ }
1451
+ if (data.duration != null) {
1452
+ message.duration = google2.protobuf.Duration.fromObject(data.duration);
1453
+ }
1454
+ if (data.status != null) {
1455
+ message.status = data.status;
1456
+ }
1457
+ if (typeof data.metadata == "object") {
1458
+ message.metadata = new Map(Object.entries(data.metadata));
1459
+ }
1460
+ if (data.location != null) {
1461
+ message.location = data.location;
1462
+ }
1463
+ if (data.type != null) {
1464
+ message.type = data.type;
1465
+ }
1466
+ if (data.parent_suite_id != null) {
1467
+ message.parent_suite_id = data.parent_suite_id;
1468
+ }
1469
+ if (data.test_case_ids != null) {
1470
+ message.test_case_ids = data.test_case_ids;
1471
+ }
1472
+ if (data.sub_suite_ids != null) {
1473
+ message.sub_suite_ids = data.sub_suite_ids;
1474
+ }
1475
+ if (data.project != null) {
1476
+ message.project = data.project;
1477
+ }
1478
+ if (data.initiated_by != null) {
1479
+ message.initiated_by = data.initiated_by;
1480
+ }
1481
+ if (data.author != null) {
1482
+ message.author = data.author;
1483
+ }
1484
+ if (data.owner != null) {
1485
+ message.owner = data.owner;
1486
+ }
1487
+ if (data.test_cases != null) {
1488
+ message.test_cases = data.test_cases.map((item) => testsystem2.v1.entities.TestCaseRun.fromObject(item));
1489
+ }
1490
+ if (data.sub_suites != null) {
1491
+ message.sub_suites = data.sub_suites.map((item) => _TestSuiteRun.fromObject(item));
1492
+ }
1493
+ return message;
1494
+ }
1495
+ toObject() {
1496
+ const data = {};
1497
+ if (this.id != null) {
1498
+ data.id = this.id;
1499
+ }
1500
+ if (this.name != null) {
1501
+ data.name = this.name;
1502
+ }
1503
+ if (this.description != null) {
1504
+ data.description = this.description;
1505
+ }
1506
+ if (this.run_id != null) {
1507
+ data.run_id = this.run_id;
1508
+ }
1509
+ if (this.start_time != null) {
1510
+ data.start_time = this.start_time.toObject();
1511
+ }
1512
+ if (this.end_time != null) {
1513
+ data.end_time = this.end_time.toObject();
1514
+ }
1515
+ if (this.duration != null) {
1516
+ data.duration = this.duration.toObject();
1517
+ }
1518
+ if (this.status != null) {
1519
+ data.status = this.status;
1520
+ }
1521
+ if (this.metadata != null) {
1522
+ data.metadata = Object.fromEntries(this.metadata);
1523
+ }
1524
+ if (this.location != null) {
1525
+ data.location = this.location;
1526
+ }
1527
+ if (this.type != null) {
1528
+ data.type = this.type;
1529
+ }
1530
+ if (this.parent_suite_id != null) {
1531
+ data.parent_suite_id = this.parent_suite_id;
1532
+ }
1533
+ if (this.test_case_ids != null) {
1534
+ data.test_case_ids = this.test_case_ids;
1535
+ }
1536
+ if (this.sub_suite_ids != null) {
1537
+ data.sub_suite_ids = this.sub_suite_ids;
1538
+ }
1539
+ if (this.project != null) {
1540
+ data.project = this.project;
1541
+ }
1542
+ if (this.initiated_by != null) {
1543
+ data.initiated_by = this.initiated_by;
1544
+ }
1545
+ if (this.author != null) {
1546
+ data.author = this.author;
1547
+ }
1548
+ if (this.owner != null) {
1549
+ data.owner = this.owner;
1550
+ }
1551
+ if (this.test_cases != null) {
1552
+ data.test_cases = this.test_cases.map((item) => item.toObject());
1553
+ }
1554
+ if (this.sub_suites != null) {
1555
+ data.sub_suites = this.sub_suites.map((item) => item.toObject());
1556
+ }
1557
+ return data;
1558
+ }
1559
+ serialize(w) {
1560
+ const writer = w || new pb_15.BinaryWriter();
1561
+ if (this.id.length)
1562
+ writer.writeString(1, this.id);
1563
+ if (this.name.length)
1564
+ writer.writeString(2, this.name);
1565
+ if (this.description.length)
1566
+ writer.writeString(3, this.description);
1567
+ if (this.run_id.length)
1568
+ writer.writeString(4, this.run_id);
1569
+ if (this.has_start_time)
1570
+ writer.writeMessage(5, this.start_time, () => this.start_time.serialize(writer));
1571
+ if (this.has_end_time)
1572
+ writer.writeMessage(6, this.end_time, () => this.end_time.serialize(writer));
1573
+ if (this.has_duration)
1574
+ writer.writeMessage(7, this.duration, () => this.duration.serialize(writer));
1575
+ if (this.status != testsystem.v1.common.TestStatus.UNKNOWN)
1576
+ writer.writeEnum(8, this.status);
1577
+ for (const [key, value] of this.metadata) {
1578
+ writer.writeMessage(9, this.metadata, () => {
1579
+ writer.writeString(1, key);
1580
+ writer.writeString(2, value);
1581
+ });
1582
+ }
1583
+ if (this.location.length)
1584
+ writer.writeString(10, this.location);
1585
+ if (this.type != 0 /* ROOT */)
1586
+ writer.writeEnum(11, this.type);
1587
+ if (this.parent_suite_id.length)
1588
+ writer.writeString(12, this.parent_suite_id);
1589
+ if (this.test_case_ids.length)
1590
+ writer.writeRepeatedString(13, this.test_case_ids);
1591
+ if (this.sub_suite_ids.length)
1592
+ writer.writeRepeatedString(14, this.sub_suite_ids);
1593
+ if (this.project.length)
1594
+ writer.writeString(15, this.project);
1595
+ if (this.initiated_by.length)
1596
+ writer.writeString(16, this.initiated_by);
1597
+ if (this.author.length)
1598
+ writer.writeString(17, this.author);
1599
+ if (this.owner.length)
1600
+ writer.writeString(18, this.owner);
1601
+ if (this.test_cases.length)
1602
+ writer.writeRepeatedMessage(19, this.test_cases, (item) => item.serialize(writer));
1603
+ if (this.sub_suites.length)
1604
+ writer.writeRepeatedMessage(20, this.sub_suites, (item) => item.serialize(writer));
1605
+ if (!w)
1606
+ return writer.getResultBuffer();
1607
+ }
1608
+ static deserialize(bytes) {
1609
+ const reader = bytes instanceof pb_15.BinaryReader ? bytes : new pb_15.BinaryReader(bytes), message = new _TestSuiteRun();
1610
+ while (reader.nextField()) {
1611
+ if (reader.isEndGroup())
1612
+ break;
1613
+ switch (reader.getFieldNumber()) {
1614
+ case 1:
1615
+ message.id = reader.readString();
1616
+ break;
1617
+ case 2:
1618
+ message.name = reader.readString();
1619
+ break;
1620
+ case 3:
1621
+ message.description = reader.readString();
1622
+ break;
1623
+ case 4:
1624
+ message.run_id = reader.readString();
1625
+ break;
1626
+ case 5:
1627
+ reader.readMessage(message.start_time, () => message.start_time = google.protobuf.Timestamp.deserialize(reader));
1628
+ break;
1629
+ case 6:
1630
+ reader.readMessage(message.end_time, () => message.end_time = google.protobuf.Timestamp.deserialize(reader));
1631
+ break;
1632
+ case 7:
1633
+ reader.readMessage(message.duration, () => message.duration = google2.protobuf.Duration.deserialize(reader));
1634
+ break;
1635
+ case 8:
1636
+ message.status = reader.readEnum();
1637
+ break;
1638
+ case 9:
1639
+ reader.readMessage(message, () => pb_15.Map.deserializeBinary(message.metadata, reader, reader.readString, reader.readString));
1640
+ break;
1641
+ case 10:
1642
+ message.location = reader.readString();
1643
+ break;
1644
+ case 11:
1645
+ message.type = reader.readEnum();
1646
+ break;
1647
+ case 12:
1648
+ message.parent_suite_id = reader.readString();
1649
+ break;
1650
+ case 13:
1651
+ pb_15.Message.addToRepeatedField(message, 13, reader.readString());
1652
+ break;
1653
+ case 14:
1654
+ pb_15.Message.addToRepeatedField(message, 14, reader.readString());
1655
+ break;
1656
+ case 15:
1657
+ message.project = reader.readString();
1658
+ break;
1659
+ case 16:
1660
+ message.initiated_by = reader.readString();
1661
+ break;
1662
+ case 17:
1663
+ message.author = reader.readString();
1664
+ break;
1665
+ case 18:
1666
+ message.owner = reader.readString();
1667
+ break;
1668
+ case 19:
1669
+ reader.readMessage(message.test_cases, () => pb_15.Message.addToRepeatedWrapperField(message, 19, testsystem2.v1.entities.TestCaseRun.deserialize(reader), testsystem2.v1.entities.TestCaseRun));
1670
+ break;
1671
+ case 20:
1672
+ reader.readMessage(message.sub_suites, () => pb_15.Message.addToRepeatedWrapperField(message, 20, _TestSuiteRun.deserialize(reader), _TestSuiteRun));
1673
+ break;
1674
+ default:
1675
+ reader.skipField();
1676
+ }
1677
+ }
1678
+ return message;
1679
+ }
1680
+ serializeBinary() {
1681
+ return this.serialize();
1682
+ }
1683
+ static deserializeBinary(bytes) {
1684
+ return _TestSuiteRun.deserialize(bytes);
1685
+ }
1686
+ };
1687
+ _one_of_decls = new WeakMap();
1688
+ let TestSuiteRun2 = _TestSuiteRun;
1689
+ entities2.TestSuiteRun = _TestSuiteRun;
1690
+ })(entities = v12.entities || (v12.entities = {}));
1691
+ })(v1 = testsystem4.v1 || (testsystem4.v1 = {}));
1692
+ })(testsystem3 || (testsystem3 = {}));
1693
+
1694
+ // testsystem/v1/entities/index.ts
1695
+ var TestCaseRun = testsystem2.v1.entities.TestCaseRun;
1696
+ var StepRun = testsystem2.v1.entities.StepRun;
1697
+ var TestSuiteRun = testsystem3.v1.entities.TestSuiteRun;
1698
+ // Annotate the CommonJS export names for ESM import in node:
1699
+ 0 && (module.exports = {
1700
+ StepRun,
1701
+ TestCaseRun,
1702
+ TestSuiteRun
1703
+ });
1704
+ //# sourceMappingURL=index.js.map