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