@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
package/dist/index.mjs
CHANGED
|
@@ -1,2976 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
__export(timestamp_exports, {
|
|
16
|
-
google: () => google
|
|
17
|
-
});
|
|
18
|
-
import * as pb_1 from "google-protobuf";
|
|
19
|
-
var google;
|
|
20
|
-
((google3) => {
|
|
21
|
-
let protobuf;
|
|
22
|
-
((protobuf2) => {
|
|
23
|
-
var _one_of_decls;
|
|
24
|
-
const _Timestamp = class _Timestamp extends pb_1.Message {
|
|
25
|
-
constructor(data) {
|
|
26
|
-
super();
|
|
27
|
-
__privateAdd(this, _one_of_decls, []);
|
|
28
|
-
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], __privateGet(this, _one_of_decls));
|
|
29
|
-
if (!Array.isArray(data) && typeof data == "object") {
|
|
30
|
-
if ("seconds" in data && data.seconds != void 0) {
|
|
31
|
-
this.seconds = data.seconds;
|
|
32
|
-
}
|
|
33
|
-
if ("nanos" in data && data.nanos != void 0) {
|
|
34
|
-
this.nanos = data.nanos;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
get seconds() {
|
|
39
|
-
return pb_1.Message.getFieldWithDefault(this, 1, 0);
|
|
40
|
-
}
|
|
41
|
-
set seconds(value) {
|
|
42
|
-
pb_1.Message.setField(this, 1, value);
|
|
43
|
-
}
|
|
44
|
-
get nanos() {
|
|
45
|
-
return pb_1.Message.getFieldWithDefault(this, 2, 0);
|
|
46
|
-
}
|
|
47
|
-
set nanos(value) {
|
|
48
|
-
pb_1.Message.setField(this, 2, value);
|
|
49
|
-
}
|
|
50
|
-
static fromObject(data) {
|
|
51
|
-
const message = new _Timestamp({});
|
|
52
|
-
if (data.seconds != null) {
|
|
53
|
-
message.seconds = data.seconds;
|
|
54
|
-
}
|
|
55
|
-
if (data.nanos != null) {
|
|
56
|
-
message.nanos = data.nanos;
|
|
57
|
-
}
|
|
58
|
-
return message;
|
|
59
|
-
}
|
|
60
|
-
toObject() {
|
|
61
|
-
const data = {};
|
|
62
|
-
if (this.seconds != null) {
|
|
63
|
-
data.seconds = this.seconds;
|
|
64
|
-
}
|
|
65
|
-
if (this.nanos != null) {
|
|
66
|
-
data.nanos = this.nanos;
|
|
67
|
-
}
|
|
68
|
-
return data;
|
|
69
|
-
}
|
|
70
|
-
serialize(w) {
|
|
71
|
-
const writer = w || new pb_1.BinaryWriter();
|
|
72
|
-
if (this.seconds != 0)
|
|
73
|
-
writer.writeInt64(1, this.seconds);
|
|
74
|
-
if (this.nanos != 0)
|
|
75
|
-
writer.writeInt32(2, this.nanos);
|
|
76
|
-
if (!w)
|
|
77
|
-
return writer.getResultBuffer();
|
|
78
|
-
}
|
|
79
|
-
static deserialize(bytes) {
|
|
80
|
-
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new _Timestamp();
|
|
81
|
-
while (reader.nextField()) {
|
|
82
|
-
if (reader.isEndGroup())
|
|
83
|
-
break;
|
|
84
|
-
switch (reader.getFieldNumber()) {
|
|
85
|
-
case 1:
|
|
86
|
-
message.seconds = reader.readInt64();
|
|
87
|
-
break;
|
|
88
|
-
case 2:
|
|
89
|
-
message.nanos = reader.readInt32();
|
|
90
|
-
break;
|
|
91
|
-
default:
|
|
92
|
-
reader.skipField();
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
return message;
|
|
96
|
-
}
|
|
97
|
-
serializeBinary() {
|
|
98
|
-
return this.serialize();
|
|
99
|
-
}
|
|
100
|
-
static deserializeBinary(bytes) {
|
|
101
|
-
return _Timestamp.deserialize(bytes);
|
|
102
|
-
}
|
|
103
|
-
};
|
|
104
|
-
_one_of_decls = new WeakMap();
|
|
105
|
-
let Timestamp = _Timestamp;
|
|
106
|
-
protobuf2.Timestamp = _Timestamp;
|
|
107
|
-
})(protobuf = google3.protobuf || (google3.protobuf = {}));
|
|
108
|
-
})(google || (google = {}));
|
|
109
|
-
|
|
110
|
-
// lib/testsystem/v1/common/common.ts
|
|
111
|
-
import * as pb_12 from "google-protobuf";
|
|
112
|
-
var testsystem;
|
|
113
|
-
((testsystem7) => {
|
|
114
|
-
let v1;
|
|
115
|
-
((v12) => {
|
|
116
|
-
let common;
|
|
117
|
-
((common2) => {
|
|
118
|
-
var _one_of_decls;
|
|
119
|
-
let TestStatus;
|
|
120
|
-
((TestStatus2) => {
|
|
121
|
-
TestStatus2[TestStatus2["UNKNOWN"] = 0] = "UNKNOWN";
|
|
122
|
-
TestStatus2[TestStatus2["PASSED"] = 1] = "PASSED";
|
|
123
|
-
TestStatus2[TestStatus2["FAILED"] = 2] = "FAILED";
|
|
124
|
-
TestStatus2[TestStatus2["SKIPPED"] = 3] = "SKIPPED";
|
|
125
|
-
TestStatus2[TestStatus2["BROKEN"] = 4] = "BROKEN";
|
|
126
|
-
TestStatus2[TestStatus2["TIMEDOUT"] = 5] = "TIMEDOUT";
|
|
127
|
-
TestStatus2[TestStatus2["INTERRUPTED"] = 6] = "INTERRUPTED";
|
|
128
|
-
})(TestStatus = common2.TestStatus || (common2.TestStatus = {}));
|
|
129
|
-
const _Attachment = class _Attachment extends pb_12.Message {
|
|
130
|
-
constructor(data) {
|
|
131
|
-
super();
|
|
132
|
-
__privateAdd(this, _one_of_decls, [[3, 4]]);
|
|
133
|
-
pb_12.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], __privateGet(this, _one_of_decls));
|
|
134
|
-
if (!Array.isArray(data) && typeof data == "object") {
|
|
135
|
-
if ("name" in data && data.name != void 0) {
|
|
136
|
-
this.name = data.name;
|
|
137
|
-
}
|
|
138
|
-
if ("mime_type" in data && data.mime_type != void 0) {
|
|
139
|
-
this.mime_type = data.mime_type;
|
|
140
|
-
}
|
|
141
|
-
if ("content" in data && data.content != void 0) {
|
|
142
|
-
this.content = data.content;
|
|
143
|
-
}
|
|
144
|
-
if ("uri" in data && data.uri != void 0) {
|
|
145
|
-
this.uri = data.uri;
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
get name() {
|
|
150
|
-
return pb_12.Message.getFieldWithDefault(this, 1, "");
|
|
151
|
-
}
|
|
152
|
-
set name(value) {
|
|
153
|
-
pb_12.Message.setField(this, 1, value);
|
|
154
|
-
}
|
|
155
|
-
get mime_type() {
|
|
156
|
-
return pb_12.Message.getFieldWithDefault(this, 2, "");
|
|
157
|
-
}
|
|
158
|
-
set mime_type(value) {
|
|
159
|
-
pb_12.Message.setField(this, 2, value);
|
|
160
|
-
}
|
|
161
|
-
get content() {
|
|
162
|
-
return pb_12.Message.getFieldWithDefault(this, 3, new Uint8Array(0));
|
|
163
|
-
}
|
|
164
|
-
set content(value) {
|
|
165
|
-
pb_12.Message.setOneofField(this, 3, __privateGet(this, _one_of_decls)[0], value);
|
|
166
|
-
}
|
|
167
|
-
get has_content() {
|
|
168
|
-
return pb_12.Message.getField(this, 3) != null;
|
|
169
|
-
}
|
|
170
|
-
get uri() {
|
|
171
|
-
return pb_12.Message.getFieldWithDefault(this, 4, "");
|
|
172
|
-
}
|
|
173
|
-
set uri(value) {
|
|
174
|
-
pb_12.Message.setOneofField(this, 4, __privateGet(this, _one_of_decls)[0], value);
|
|
175
|
-
}
|
|
176
|
-
get has_uri() {
|
|
177
|
-
return pb_12.Message.getField(this, 4) != null;
|
|
178
|
-
}
|
|
179
|
-
get payload() {
|
|
180
|
-
const cases = {
|
|
181
|
-
0: "none",
|
|
182
|
-
3: "content",
|
|
183
|
-
4: "uri"
|
|
184
|
-
};
|
|
185
|
-
return cases[pb_12.Message.computeOneofCase(this, [3, 4])];
|
|
186
|
-
}
|
|
187
|
-
static fromObject(data) {
|
|
188
|
-
const message = new _Attachment({});
|
|
189
|
-
if (data.name != null) {
|
|
190
|
-
message.name = data.name;
|
|
191
|
-
}
|
|
192
|
-
if (data.mime_type != null) {
|
|
193
|
-
message.mime_type = data.mime_type;
|
|
194
|
-
}
|
|
195
|
-
if (data.content != null) {
|
|
196
|
-
message.content = data.content;
|
|
197
|
-
}
|
|
198
|
-
if (data.uri != null) {
|
|
199
|
-
message.uri = data.uri;
|
|
200
|
-
}
|
|
201
|
-
return message;
|
|
202
|
-
}
|
|
203
|
-
toObject() {
|
|
204
|
-
const data = {};
|
|
205
|
-
if (this.name != null) {
|
|
206
|
-
data.name = this.name;
|
|
207
|
-
}
|
|
208
|
-
if (this.mime_type != null) {
|
|
209
|
-
data.mime_type = this.mime_type;
|
|
210
|
-
}
|
|
211
|
-
if (this.content != null) {
|
|
212
|
-
data.content = this.content;
|
|
213
|
-
}
|
|
214
|
-
if (this.uri != null) {
|
|
215
|
-
data.uri = this.uri;
|
|
216
|
-
}
|
|
217
|
-
return data;
|
|
218
|
-
}
|
|
219
|
-
serialize(w) {
|
|
220
|
-
const writer = w || new pb_12.BinaryWriter();
|
|
221
|
-
if (this.name.length)
|
|
222
|
-
writer.writeString(1, this.name);
|
|
223
|
-
if (this.mime_type.length)
|
|
224
|
-
writer.writeString(2, this.mime_type);
|
|
225
|
-
if (this.has_content)
|
|
226
|
-
writer.writeBytes(3, this.content);
|
|
227
|
-
if (this.has_uri)
|
|
228
|
-
writer.writeString(4, this.uri);
|
|
229
|
-
if (!w)
|
|
230
|
-
return writer.getResultBuffer();
|
|
231
|
-
}
|
|
232
|
-
static deserialize(bytes) {
|
|
233
|
-
const reader = bytes instanceof pb_12.BinaryReader ? bytes : new pb_12.BinaryReader(bytes), message = new _Attachment();
|
|
234
|
-
while (reader.nextField()) {
|
|
235
|
-
if (reader.isEndGroup())
|
|
236
|
-
break;
|
|
237
|
-
switch (reader.getFieldNumber()) {
|
|
238
|
-
case 1:
|
|
239
|
-
message.name = reader.readString();
|
|
240
|
-
break;
|
|
241
|
-
case 2:
|
|
242
|
-
message.mime_type = reader.readString();
|
|
243
|
-
break;
|
|
244
|
-
case 3:
|
|
245
|
-
message.content = reader.readBytes();
|
|
246
|
-
break;
|
|
247
|
-
case 4:
|
|
248
|
-
message.uri = reader.readString();
|
|
249
|
-
break;
|
|
250
|
-
default:
|
|
251
|
-
reader.skipField();
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
|
-
return message;
|
|
255
|
-
}
|
|
256
|
-
serializeBinary() {
|
|
257
|
-
return this.serialize();
|
|
258
|
-
}
|
|
259
|
-
static deserializeBinary(bytes) {
|
|
260
|
-
return _Attachment.deserialize(bytes);
|
|
261
|
-
}
|
|
262
|
-
};
|
|
263
|
-
_one_of_decls = new WeakMap();
|
|
264
|
-
let Attachment = _Attachment;
|
|
265
|
-
common2.Attachment = _Attachment;
|
|
266
|
-
})(common = v12.common || (v12.common = {}));
|
|
267
|
-
})(v1 = testsystem7.v1 || (testsystem7.v1 = {}));
|
|
268
|
-
})(testsystem || (testsystem = {}));
|
|
269
|
-
|
|
270
|
-
// lib/google/protobuf/duration.ts
|
|
271
|
-
import * as pb_13 from "google-protobuf";
|
|
272
|
-
var google2;
|
|
273
|
-
((google3) => {
|
|
274
|
-
let protobuf;
|
|
275
|
-
((protobuf2) => {
|
|
276
|
-
var _one_of_decls;
|
|
277
|
-
const _Duration = class _Duration extends pb_13.Message {
|
|
278
|
-
constructor(data) {
|
|
279
|
-
super();
|
|
280
|
-
__privateAdd(this, _one_of_decls, []);
|
|
281
|
-
pb_13.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], __privateGet(this, _one_of_decls));
|
|
282
|
-
if (!Array.isArray(data) && typeof data == "object") {
|
|
283
|
-
if ("seconds" in data && data.seconds != void 0) {
|
|
284
|
-
this.seconds = data.seconds;
|
|
285
|
-
}
|
|
286
|
-
if ("nanos" in data && data.nanos != void 0) {
|
|
287
|
-
this.nanos = data.nanos;
|
|
288
|
-
}
|
|
289
|
-
}
|
|
290
|
-
}
|
|
291
|
-
get seconds() {
|
|
292
|
-
return pb_13.Message.getFieldWithDefault(this, 1, 0);
|
|
293
|
-
}
|
|
294
|
-
set seconds(value) {
|
|
295
|
-
pb_13.Message.setField(this, 1, value);
|
|
296
|
-
}
|
|
297
|
-
get nanos() {
|
|
298
|
-
return pb_13.Message.getFieldWithDefault(this, 2, 0);
|
|
299
|
-
}
|
|
300
|
-
set nanos(value) {
|
|
301
|
-
pb_13.Message.setField(this, 2, value);
|
|
302
|
-
}
|
|
303
|
-
static fromObject(data) {
|
|
304
|
-
const message = new _Duration({});
|
|
305
|
-
if (data.seconds != null) {
|
|
306
|
-
message.seconds = data.seconds;
|
|
307
|
-
}
|
|
308
|
-
if (data.nanos != null) {
|
|
309
|
-
message.nanos = data.nanos;
|
|
310
|
-
}
|
|
311
|
-
return message;
|
|
312
|
-
}
|
|
313
|
-
toObject() {
|
|
314
|
-
const data = {};
|
|
315
|
-
if (this.seconds != null) {
|
|
316
|
-
data.seconds = this.seconds;
|
|
317
|
-
}
|
|
318
|
-
if (this.nanos != null) {
|
|
319
|
-
data.nanos = this.nanos;
|
|
320
|
-
}
|
|
321
|
-
return data;
|
|
322
|
-
}
|
|
323
|
-
serialize(w) {
|
|
324
|
-
const writer = w || new pb_13.BinaryWriter();
|
|
325
|
-
if (this.seconds != 0)
|
|
326
|
-
writer.writeInt64(1, this.seconds);
|
|
327
|
-
if (this.nanos != 0)
|
|
328
|
-
writer.writeInt32(2, this.nanos);
|
|
329
|
-
if (!w)
|
|
330
|
-
return writer.getResultBuffer();
|
|
331
|
-
}
|
|
332
|
-
static deserialize(bytes) {
|
|
333
|
-
const reader = bytes instanceof pb_13.BinaryReader ? bytes : new pb_13.BinaryReader(bytes), message = new _Duration();
|
|
334
|
-
while (reader.nextField()) {
|
|
335
|
-
if (reader.isEndGroup())
|
|
336
|
-
break;
|
|
337
|
-
switch (reader.getFieldNumber()) {
|
|
338
|
-
case 1:
|
|
339
|
-
message.seconds = reader.readInt64();
|
|
340
|
-
break;
|
|
341
|
-
case 2:
|
|
342
|
-
message.nanos = reader.readInt32();
|
|
343
|
-
break;
|
|
344
|
-
default:
|
|
345
|
-
reader.skipField();
|
|
346
|
-
}
|
|
347
|
-
}
|
|
348
|
-
return message;
|
|
349
|
-
}
|
|
350
|
-
serializeBinary() {
|
|
351
|
-
return this.serialize();
|
|
352
|
-
}
|
|
353
|
-
static deserializeBinary(bytes) {
|
|
354
|
-
return _Duration.deserialize(bytes);
|
|
355
|
-
}
|
|
356
|
-
};
|
|
357
|
-
_one_of_decls = new WeakMap();
|
|
358
|
-
let Duration = _Duration;
|
|
359
|
-
protobuf2.Duration = _Duration;
|
|
360
|
-
})(protobuf = google3.protobuf || (google3.protobuf = {}));
|
|
361
|
-
})(google2 || (google2 = {}));
|
|
362
|
-
|
|
363
|
-
// lib/testsystem/v1/entities/test_case.ts
|
|
364
|
-
import * as pb_14 from "google-protobuf";
|
|
365
|
-
var testsystem2;
|
|
366
|
-
((testsystem7) => {
|
|
367
|
-
let v1;
|
|
368
|
-
((v12) => {
|
|
369
|
-
let entities;
|
|
370
|
-
((entities2) => {
|
|
371
|
-
var _one_of_decls, _one_of_decls2;
|
|
372
|
-
const _TestCaseRun = class _TestCaseRun extends pb_14.Message {
|
|
373
|
-
constructor(data) {
|
|
374
|
-
super();
|
|
375
|
-
__privateAdd(this, _one_of_decls, []);
|
|
376
|
-
pb_14.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [10, 13, 15], __privateGet(this, _one_of_decls));
|
|
377
|
-
if (!Array.isArray(data) && typeof data == "object") {
|
|
378
|
-
if ("id" in data && data.id != void 0) {
|
|
379
|
-
this.id = data.id;
|
|
380
|
-
}
|
|
381
|
-
if ("name" in data && data.name != void 0) {
|
|
382
|
-
this.name = data.name;
|
|
383
|
-
}
|
|
384
|
-
if ("description" in data && data.description != void 0) {
|
|
385
|
-
this.description = data.description;
|
|
386
|
-
}
|
|
387
|
-
if ("run_id" in data && data.run_id != void 0) {
|
|
388
|
-
this.run_id = data.run_id;
|
|
389
|
-
}
|
|
390
|
-
if ("test_suite_run_id" in data && data.test_suite_run_id != void 0) {
|
|
391
|
-
this.test_suite_run_id = data.test_suite_run_id;
|
|
392
|
-
}
|
|
393
|
-
if ("status" in data && data.status != void 0) {
|
|
394
|
-
this.status = data.status;
|
|
395
|
-
}
|
|
396
|
-
if ("start_time" in data && data.start_time != void 0) {
|
|
397
|
-
this.start_time = data.start_time;
|
|
398
|
-
}
|
|
399
|
-
if ("end_time" in data && data.end_time != void 0) {
|
|
400
|
-
this.end_time = data.end_time;
|
|
401
|
-
}
|
|
402
|
-
if ("duration" in data && data.duration != void 0) {
|
|
403
|
-
this.duration = data.duration;
|
|
404
|
-
}
|
|
405
|
-
if ("attachments" in data && data.attachments != void 0) {
|
|
406
|
-
this.attachments = data.attachments;
|
|
407
|
-
}
|
|
408
|
-
if ("error_message" in data && data.error_message != void 0) {
|
|
409
|
-
this.error_message = data.error_message;
|
|
410
|
-
}
|
|
411
|
-
if ("stack_trace" in data && data.stack_trace != void 0) {
|
|
412
|
-
this.stack_trace = data.stack_trace;
|
|
413
|
-
}
|
|
414
|
-
if ("errors" in data && data.errors != void 0) {
|
|
415
|
-
this.errors = data.errors;
|
|
416
|
-
}
|
|
417
|
-
if ("metadata" in data && data.metadata != void 0) {
|
|
418
|
-
this.metadata = data.metadata;
|
|
419
|
-
}
|
|
420
|
-
if ("tags" in data && data.tags != void 0) {
|
|
421
|
-
this.tags = data.tags;
|
|
422
|
-
}
|
|
423
|
-
if ("location" in data && data.location != void 0) {
|
|
424
|
-
this.location = data.location;
|
|
425
|
-
}
|
|
426
|
-
if ("retry_count" in data && data.retry_count != void 0) {
|
|
427
|
-
this.retry_count = data.retry_count;
|
|
428
|
-
}
|
|
429
|
-
if ("retry_index" in data && data.retry_index != void 0) {
|
|
430
|
-
this.retry_index = data.retry_index;
|
|
431
|
-
}
|
|
432
|
-
if ("timeout" in data && data.timeout != void 0) {
|
|
433
|
-
this.timeout = data.timeout;
|
|
434
|
-
}
|
|
435
|
-
}
|
|
436
|
-
if (!this.metadata)
|
|
437
|
-
this.metadata = /* @__PURE__ */ new Map();
|
|
438
|
-
}
|
|
439
|
-
get id() {
|
|
440
|
-
return pb_14.Message.getFieldWithDefault(this, 1, "");
|
|
441
|
-
}
|
|
442
|
-
set id(value) {
|
|
443
|
-
pb_14.Message.setField(this, 1, value);
|
|
444
|
-
}
|
|
445
|
-
get name() {
|
|
446
|
-
return pb_14.Message.getFieldWithDefault(this, 2, "");
|
|
447
|
-
}
|
|
448
|
-
set name(value) {
|
|
449
|
-
pb_14.Message.setField(this, 2, value);
|
|
450
|
-
}
|
|
451
|
-
get description() {
|
|
452
|
-
return pb_14.Message.getFieldWithDefault(this, 3, "");
|
|
453
|
-
}
|
|
454
|
-
set description(value) {
|
|
455
|
-
pb_14.Message.setField(this, 3, value);
|
|
456
|
-
}
|
|
457
|
-
get run_id() {
|
|
458
|
-
return pb_14.Message.getFieldWithDefault(this, 4, "");
|
|
459
|
-
}
|
|
460
|
-
set run_id(value) {
|
|
461
|
-
pb_14.Message.setField(this, 4, value);
|
|
462
|
-
}
|
|
463
|
-
get test_suite_run_id() {
|
|
464
|
-
return pb_14.Message.getFieldWithDefault(this, 5, "");
|
|
465
|
-
}
|
|
466
|
-
set test_suite_run_id(value) {
|
|
467
|
-
pb_14.Message.setField(this, 5, value);
|
|
468
|
-
}
|
|
469
|
-
get status() {
|
|
470
|
-
return pb_14.Message.getFieldWithDefault(this, 6, testsystem.v1.common.TestStatus.UNKNOWN);
|
|
471
|
-
}
|
|
472
|
-
set status(value) {
|
|
473
|
-
pb_14.Message.setField(this, 6, value);
|
|
474
|
-
}
|
|
475
|
-
get start_time() {
|
|
476
|
-
return pb_14.Message.getWrapperField(this, google.protobuf.Timestamp, 7);
|
|
477
|
-
}
|
|
478
|
-
set start_time(value) {
|
|
479
|
-
pb_14.Message.setWrapperField(this, 7, value);
|
|
480
|
-
}
|
|
481
|
-
get has_start_time() {
|
|
482
|
-
return pb_14.Message.getField(this, 7) != null;
|
|
483
|
-
}
|
|
484
|
-
get end_time() {
|
|
485
|
-
return pb_14.Message.getWrapperField(this, google.protobuf.Timestamp, 8);
|
|
486
|
-
}
|
|
487
|
-
set end_time(value) {
|
|
488
|
-
pb_14.Message.setWrapperField(this, 8, value);
|
|
489
|
-
}
|
|
490
|
-
get has_end_time() {
|
|
491
|
-
return pb_14.Message.getField(this, 8) != null;
|
|
492
|
-
}
|
|
493
|
-
get duration() {
|
|
494
|
-
return pb_14.Message.getWrapperField(this, google2.protobuf.Duration, 9);
|
|
495
|
-
}
|
|
496
|
-
set duration(value) {
|
|
497
|
-
pb_14.Message.setWrapperField(this, 9, value);
|
|
498
|
-
}
|
|
499
|
-
get has_duration() {
|
|
500
|
-
return pb_14.Message.getField(this, 9) != null;
|
|
501
|
-
}
|
|
502
|
-
get attachments() {
|
|
503
|
-
return pb_14.Message.getRepeatedWrapperField(this, testsystem.v1.common.Attachment, 10);
|
|
504
|
-
}
|
|
505
|
-
set attachments(value) {
|
|
506
|
-
pb_14.Message.setRepeatedWrapperField(this, 10, value);
|
|
507
|
-
}
|
|
508
|
-
get error_message() {
|
|
509
|
-
return pb_14.Message.getFieldWithDefault(this, 11, "");
|
|
510
|
-
}
|
|
511
|
-
set error_message(value) {
|
|
512
|
-
pb_14.Message.setField(this, 11, value);
|
|
513
|
-
}
|
|
514
|
-
get stack_trace() {
|
|
515
|
-
return pb_14.Message.getFieldWithDefault(this, 12, "");
|
|
516
|
-
}
|
|
517
|
-
set stack_trace(value) {
|
|
518
|
-
pb_14.Message.setField(this, 12, value);
|
|
519
|
-
}
|
|
520
|
-
get errors() {
|
|
521
|
-
return pb_14.Message.getFieldWithDefault(this, 13, []);
|
|
522
|
-
}
|
|
523
|
-
set errors(value) {
|
|
524
|
-
pb_14.Message.setField(this, 13, value);
|
|
525
|
-
}
|
|
526
|
-
get metadata() {
|
|
527
|
-
return pb_14.Message.getField(this, 14);
|
|
528
|
-
}
|
|
529
|
-
set metadata(value) {
|
|
530
|
-
pb_14.Message.setField(this, 14, value);
|
|
531
|
-
}
|
|
532
|
-
get tags() {
|
|
533
|
-
return pb_14.Message.getFieldWithDefault(this, 15, []);
|
|
534
|
-
}
|
|
535
|
-
set tags(value) {
|
|
536
|
-
pb_14.Message.setField(this, 15, value);
|
|
537
|
-
}
|
|
538
|
-
get location() {
|
|
539
|
-
return pb_14.Message.getFieldWithDefault(this, 16, "");
|
|
540
|
-
}
|
|
541
|
-
set location(value) {
|
|
542
|
-
pb_14.Message.setField(this, 16, value);
|
|
543
|
-
}
|
|
544
|
-
get retry_count() {
|
|
545
|
-
return pb_14.Message.getFieldWithDefault(this, 17, 0);
|
|
546
|
-
}
|
|
547
|
-
set retry_count(value) {
|
|
548
|
-
pb_14.Message.setField(this, 17, value);
|
|
549
|
-
}
|
|
550
|
-
get retry_index() {
|
|
551
|
-
return pb_14.Message.getFieldWithDefault(this, 18, 0);
|
|
552
|
-
}
|
|
553
|
-
set retry_index(value) {
|
|
554
|
-
pb_14.Message.setField(this, 18, value);
|
|
555
|
-
}
|
|
556
|
-
get timeout() {
|
|
557
|
-
return pb_14.Message.getFieldWithDefault(this, 19, 0);
|
|
558
|
-
}
|
|
559
|
-
set timeout(value) {
|
|
560
|
-
pb_14.Message.setField(this, 19, value);
|
|
561
|
-
}
|
|
562
|
-
static fromObject(data) {
|
|
563
|
-
const message = new _TestCaseRun({});
|
|
564
|
-
if (data.id != null) {
|
|
565
|
-
message.id = data.id;
|
|
566
|
-
}
|
|
567
|
-
if (data.name != null) {
|
|
568
|
-
message.name = data.name;
|
|
569
|
-
}
|
|
570
|
-
if (data.description != null) {
|
|
571
|
-
message.description = data.description;
|
|
572
|
-
}
|
|
573
|
-
if (data.run_id != null) {
|
|
574
|
-
message.run_id = data.run_id;
|
|
575
|
-
}
|
|
576
|
-
if (data.test_suite_run_id != null) {
|
|
577
|
-
message.test_suite_run_id = data.test_suite_run_id;
|
|
578
|
-
}
|
|
579
|
-
if (data.status != null) {
|
|
580
|
-
message.status = data.status;
|
|
581
|
-
}
|
|
582
|
-
if (data.start_time != null) {
|
|
583
|
-
message.start_time = google.protobuf.Timestamp.fromObject(data.start_time);
|
|
584
|
-
}
|
|
585
|
-
if (data.end_time != null) {
|
|
586
|
-
message.end_time = google.protobuf.Timestamp.fromObject(data.end_time);
|
|
587
|
-
}
|
|
588
|
-
if (data.duration != null) {
|
|
589
|
-
message.duration = google2.protobuf.Duration.fromObject(data.duration);
|
|
590
|
-
}
|
|
591
|
-
if (data.attachments != null) {
|
|
592
|
-
message.attachments = data.attachments.map((item) => testsystem.v1.common.Attachment.fromObject(item));
|
|
593
|
-
}
|
|
594
|
-
if (data.error_message != null) {
|
|
595
|
-
message.error_message = data.error_message;
|
|
596
|
-
}
|
|
597
|
-
if (data.stack_trace != null) {
|
|
598
|
-
message.stack_trace = data.stack_trace;
|
|
599
|
-
}
|
|
600
|
-
if (data.errors != null) {
|
|
601
|
-
message.errors = data.errors;
|
|
602
|
-
}
|
|
603
|
-
if (typeof data.metadata == "object") {
|
|
604
|
-
message.metadata = new Map(Object.entries(data.metadata));
|
|
605
|
-
}
|
|
606
|
-
if (data.tags != null) {
|
|
607
|
-
message.tags = data.tags;
|
|
608
|
-
}
|
|
609
|
-
if (data.location != null) {
|
|
610
|
-
message.location = data.location;
|
|
611
|
-
}
|
|
612
|
-
if (data.retry_count != null) {
|
|
613
|
-
message.retry_count = data.retry_count;
|
|
614
|
-
}
|
|
615
|
-
if (data.retry_index != null) {
|
|
616
|
-
message.retry_index = data.retry_index;
|
|
617
|
-
}
|
|
618
|
-
if (data.timeout != null) {
|
|
619
|
-
message.timeout = data.timeout;
|
|
620
|
-
}
|
|
621
|
-
return message;
|
|
622
|
-
}
|
|
623
|
-
toObject() {
|
|
624
|
-
const data = {};
|
|
625
|
-
if (this.id != null) {
|
|
626
|
-
data.id = this.id;
|
|
627
|
-
}
|
|
628
|
-
if (this.name != null) {
|
|
629
|
-
data.name = this.name;
|
|
630
|
-
}
|
|
631
|
-
if (this.description != null) {
|
|
632
|
-
data.description = this.description;
|
|
633
|
-
}
|
|
634
|
-
if (this.run_id != null) {
|
|
635
|
-
data.run_id = this.run_id;
|
|
636
|
-
}
|
|
637
|
-
if (this.test_suite_run_id != null) {
|
|
638
|
-
data.test_suite_run_id = this.test_suite_run_id;
|
|
639
|
-
}
|
|
640
|
-
if (this.status != null) {
|
|
641
|
-
data.status = this.status;
|
|
642
|
-
}
|
|
643
|
-
if (this.start_time != null) {
|
|
644
|
-
data.start_time = this.start_time.toObject();
|
|
645
|
-
}
|
|
646
|
-
if (this.end_time != null) {
|
|
647
|
-
data.end_time = this.end_time.toObject();
|
|
648
|
-
}
|
|
649
|
-
if (this.duration != null) {
|
|
650
|
-
data.duration = this.duration.toObject();
|
|
651
|
-
}
|
|
652
|
-
if (this.attachments != null) {
|
|
653
|
-
data.attachments = this.attachments.map((item) => item.toObject());
|
|
654
|
-
}
|
|
655
|
-
if (this.error_message != null) {
|
|
656
|
-
data.error_message = this.error_message;
|
|
657
|
-
}
|
|
658
|
-
if (this.stack_trace != null) {
|
|
659
|
-
data.stack_trace = this.stack_trace;
|
|
660
|
-
}
|
|
661
|
-
if (this.errors != null) {
|
|
662
|
-
data.errors = this.errors;
|
|
663
|
-
}
|
|
664
|
-
if (this.metadata != null) {
|
|
665
|
-
data.metadata = Object.fromEntries(this.metadata);
|
|
666
|
-
}
|
|
667
|
-
if (this.tags != null) {
|
|
668
|
-
data.tags = this.tags;
|
|
669
|
-
}
|
|
670
|
-
if (this.location != null) {
|
|
671
|
-
data.location = this.location;
|
|
672
|
-
}
|
|
673
|
-
if (this.retry_count != null) {
|
|
674
|
-
data.retry_count = this.retry_count;
|
|
675
|
-
}
|
|
676
|
-
if (this.retry_index != null) {
|
|
677
|
-
data.retry_index = this.retry_index;
|
|
678
|
-
}
|
|
679
|
-
if (this.timeout != null) {
|
|
680
|
-
data.timeout = this.timeout;
|
|
681
|
-
}
|
|
682
|
-
return data;
|
|
683
|
-
}
|
|
684
|
-
serialize(w) {
|
|
685
|
-
const writer = w || new pb_14.BinaryWriter();
|
|
686
|
-
if (this.id.length)
|
|
687
|
-
writer.writeString(1, this.id);
|
|
688
|
-
if (this.name.length)
|
|
689
|
-
writer.writeString(2, this.name);
|
|
690
|
-
if (this.description.length)
|
|
691
|
-
writer.writeString(3, this.description);
|
|
692
|
-
if (this.run_id.length)
|
|
693
|
-
writer.writeString(4, this.run_id);
|
|
694
|
-
if (this.test_suite_run_id.length)
|
|
695
|
-
writer.writeString(5, this.test_suite_run_id);
|
|
696
|
-
if (this.status != testsystem.v1.common.TestStatus.UNKNOWN)
|
|
697
|
-
writer.writeEnum(6, this.status);
|
|
698
|
-
if (this.has_start_time)
|
|
699
|
-
writer.writeMessage(7, this.start_time, () => this.start_time.serialize(writer));
|
|
700
|
-
if (this.has_end_time)
|
|
701
|
-
writer.writeMessage(8, this.end_time, () => this.end_time.serialize(writer));
|
|
702
|
-
if (this.has_duration)
|
|
703
|
-
writer.writeMessage(9, this.duration, () => this.duration.serialize(writer));
|
|
704
|
-
if (this.attachments.length)
|
|
705
|
-
writer.writeRepeatedMessage(10, this.attachments, (item) => item.serialize(writer));
|
|
706
|
-
if (this.error_message.length)
|
|
707
|
-
writer.writeString(11, this.error_message);
|
|
708
|
-
if (this.stack_trace.length)
|
|
709
|
-
writer.writeString(12, this.stack_trace);
|
|
710
|
-
if (this.errors.length)
|
|
711
|
-
writer.writeRepeatedString(13, this.errors);
|
|
712
|
-
for (const [key, value] of this.metadata) {
|
|
713
|
-
writer.writeMessage(14, this.metadata, () => {
|
|
714
|
-
writer.writeString(1, key);
|
|
715
|
-
writer.writeString(2, value);
|
|
716
|
-
});
|
|
717
|
-
}
|
|
718
|
-
if (this.tags.length)
|
|
719
|
-
writer.writeRepeatedString(15, this.tags);
|
|
720
|
-
if (this.location.length)
|
|
721
|
-
writer.writeString(16, this.location);
|
|
722
|
-
if (this.retry_count != 0)
|
|
723
|
-
writer.writeInt32(17, this.retry_count);
|
|
724
|
-
if (this.retry_index != 0)
|
|
725
|
-
writer.writeInt32(18, this.retry_index);
|
|
726
|
-
if (this.timeout != 0)
|
|
727
|
-
writer.writeInt32(19, this.timeout);
|
|
728
|
-
if (!w)
|
|
729
|
-
return writer.getResultBuffer();
|
|
730
|
-
}
|
|
731
|
-
static deserialize(bytes) {
|
|
732
|
-
const reader = bytes instanceof pb_14.BinaryReader ? bytes : new pb_14.BinaryReader(bytes), message = new _TestCaseRun();
|
|
733
|
-
while (reader.nextField()) {
|
|
734
|
-
if (reader.isEndGroup())
|
|
735
|
-
break;
|
|
736
|
-
switch (reader.getFieldNumber()) {
|
|
737
|
-
case 1:
|
|
738
|
-
message.id = reader.readString();
|
|
739
|
-
break;
|
|
740
|
-
case 2:
|
|
741
|
-
message.name = reader.readString();
|
|
742
|
-
break;
|
|
743
|
-
case 3:
|
|
744
|
-
message.description = reader.readString();
|
|
745
|
-
break;
|
|
746
|
-
case 4:
|
|
747
|
-
message.run_id = reader.readString();
|
|
748
|
-
break;
|
|
749
|
-
case 5:
|
|
750
|
-
message.test_suite_run_id = reader.readString();
|
|
751
|
-
break;
|
|
752
|
-
case 6:
|
|
753
|
-
message.status = reader.readEnum();
|
|
754
|
-
break;
|
|
755
|
-
case 7:
|
|
756
|
-
reader.readMessage(message.start_time, () => message.start_time = google.protobuf.Timestamp.deserialize(reader));
|
|
757
|
-
break;
|
|
758
|
-
case 8:
|
|
759
|
-
reader.readMessage(message.end_time, () => message.end_time = google.protobuf.Timestamp.deserialize(reader));
|
|
760
|
-
break;
|
|
761
|
-
case 9:
|
|
762
|
-
reader.readMessage(message.duration, () => message.duration = google2.protobuf.Duration.deserialize(reader));
|
|
763
|
-
break;
|
|
764
|
-
case 10:
|
|
765
|
-
reader.readMessage(message.attachments, () => pb_14.Message.addToRepeatedWrapperField(message, 10, testsystem.v1.common.Attachment.deserialize(reader), testsystem.v1.common.Attachment));
|
|
766
|
-
break;
|
|
767
|
-
case 11:
|
|
768
|
-
message.error_message = reader.readString();
|
|
769
|
-
break;
|
|
770
|
-
case 12:
|
|
771
|
-
message.stack_trace = reader.readString();
|
|
772
|
-
break;
|
|
773
|
-
case 13:
|
|
774
|
-
pb_14.Message.addToRepeatedField(message, 13, reader.readString());
|
|
775
|
-
break;
|
|
776
|
-
case 14:
|
|
777
|
-
reader.readMessage(message, () => pb_14.Map.deserializeBinary(message.metadata, reader, reader.readString, reader.readString));
|
|
778
|
-
break;
|
|
779
|
-
case 15:
|
|
780
|
-
pb_14.Message.addToRepeatedField(message, 15, reader.readString());
|
|
781
|
-
break;
|
|
782
|
-
case 16:
|
|
783
|
-
message.location = reader.readString();
|
|
784
|
-
break;
|
|
785
|
-
case 17:
|
|
786
|
-
message.retry_count = reader.readInt32();
|
|
787
|
-
break;
|
|
788
|
-
case 18:
|
|
789
|
-
message.retry_index = reader.readInt32();
|
|
790
|
-
break;
|
|
791
|
-
case 19:
|
|
792
|
-
message.timeout = reader.readInt32();
|
|
793
|
-
break;
|
|
794
|
-
default:
|
|
795
|
-
reader.skipField();
|
|
796
|
-
}
|
|
797
|
-
}
|
|
798
|
-
return message;
|
|
799
|
-
}
|
|
800
|
-
serializeBinary() {
|
|
801
|
-
return this.serialize();
|
|
802
|
-
}
|
|
803
|
-
static deserializeBinary(bytes) {
|
|
804
|
-
return _TestCaseRun.deserialize(bytes);
|
|
805
|
-
}
|
|
806
|
-
};
|
|
807
|
-
_one_of_decls = new WeakMap();
|
|
808
|
-
let TestCaseRun = _TestCaseRun;
|
|
809
|
-
entities2.TestCaseRun = _TestCaseRun;
|
|
810
|
-
const _StepRun = class _StepRun extends pb_14.Message {
|
|
811
|
-
constructor(data) {
|
|
812
|
-
super();
|
|
813
|
-
__privateAdd(this, _one_of_decls2, []);
|
|
814
|
-
pb_14.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [14], __privateGet(this, _one_of_decls2));
|
|
815
|
-
if (!Array.isArray(data) && typeof data == "object") {
|
|
816
|
-
if ("id" in data && data.id != void 0) {
|
|
817
|
-
this.id = data.id;
|
|
818
|
-
}
|
|
819
|
-
if ("run_id" in data && data.run_id != void 0) {
|
|
820
|
-
this.run_id = data.run_id;
|
|
821
|
-
}
|
|
822
|
-
if ("test_case_run_id" in data && data.test_case_run_id != void 0) {
|
|
823
|
-
this.test_case_run_id = data.test_case_run_id;
|
|
824
|
-
}
|
|
825
|
-
if ("title" in data && data.title != void 0) {
|
|
826
|
-
this.title = data.title;
|
|
827
|
-
}
|
|
828
|
-
if ("description" in data && data.description != void 0) {
|
|
829
|
-
this.description = data.description;
|
|
830
|
-
}
|
|
831
|
-
if ("start_time" in data && data.start_time != void 0) {
|
|
832
|
-
this.start_time = data.start_time;
|
|
833
|
-
}
|
|
834
|
-
if ("duration" in data && data.duration != void 0) {
|
|
835
|
-
this.duration = data.duration;
|
|
836
|
-
}
|
|
837
|
-
if ("type" in data && data.type != void 0) {
|
|
838
|
-
this.type = data.type;
|
|
839
|
-
}
|
|
840
|
-
if ("metadata" in data && data.metadata != void 0) {
|
|
841
|
-
this.metadata = data.metadata;
|
|
842
|
-
}
|
|
843
|
-
if ("parent_step_id" in data && data.parent_step_id != void 0) {
|
|
844
|
-
this.parent_step_id = data.parent_step_id;
|
|
845
|
-
}
|
|
846
|
-
if ("worker_index" in data && data.worker_index != void 0) {
|
|
847
|
-
this.worker_index = data.worker_index;
|
|
848
|
-
}
|
|
849
|
-
if ("status" in data && data.status != void 0) {
|
|
850
|
-
this.status = data.status;
|
|
851
|
-
}
|
|
852
|
-
if ("error" in data && data.error != void 0) {
|
|
853
|
-
this.error = data.error;
|
|
854
|
-
}
|
|
855
|
-
if ("errors" in data && data.errors != void 0) {
|
|
856
|
-
this.errors = data.errors;
|
|
857
|
-
}
|
|
858
|
-
if ("location" in data && data.location != void 0) {
|
|
859
|
-
this.location = data.location;
|
|
860
|
-
}
|
|
861
|
-
if ("category" in data && data.category != void 0) {
|
|
862
|
-
this.category = data.category;
|
|
863
|
-
}
|
|
864
|
-
}
|
|
865
|
-
if (!this.metadata)
|
|
866
|
-
this.metadata = /* @__PURE__ */ new Map();
|
|
867
|
-
}
|
|
868
|
-
get id() {
|
|
869
|
-
return pb_14.Message.getFieldWithDefault(this, 1, "");
|
|
870
|
-
}
|
|
871
|
-
set id(value) {
|
|
872
|
-
pb_14.Message.setField(this, 1, value);
|
|
873
|
-
}
|
|
874
|
-
get run_id() {
|
|
875
|
-
return pb_14.Message.getFieldWithDefault(this, 2, "");
|
|
876
|
-
}
|
|
877
|
-
set run_id(value) {
|
|
878
|
-
pb_14.Message.setField(this, 2, value);
|
|
879
|
-
}
|
|
880
|
-
get test_case_run_id() {
|
|
881
|
-
return pb_14.Message.getFieldWithDefault(this, 3, "");
|
|
882
|
-
}
|
|
883
|
-
set test_case_run_id(value) {
|
|
884
|
-
pb_14.Message.setField(this, 3, value);
|
|
885
|
-
}
|
|
886
|
-
get title() {
|
|
887
|
-
return pb_14.Message.getFieldWithDefault(this, 4, "");
|
|
888
|
-
}
|
|
889
|
-
set title(value) {
|
|
890
|
-
pb_14.Message.setField(this, 4, value);
|
|
891
|
-
}
|
|
892
|
-
get description() {
|
|
893
|
-
return pb_14.Message.getFieldWithDefault(this, 5, "");
|
|
894
|
-
}
|
|
895
|
-
set description(value) {
|
|
896
|
-
pb_14.Message.setField(this, 5, value);
|
|
897
|
-
}
|
|
898
|
-
get start_time() {
|
|
899
|
-
return pb_14.Message.getWrapperField(this, google.protobuf.Timestamp, 6);
|
|
900
|
-
}
|
|
901
|
-
set start_time(value) {
|
|
902
|
-
pb_14.Message.setWrapperField(this, 6, value);
|
|
903
|
-
}
|
|
904
|
-
get has_start_time() {
|
|
905
|
-
return pb_14.Message.getField(this, 6) != null;
|
|
906
|
-
}
|
|
907
|
-
get duration() {
|
|
908
|
-
return pb_14.Message.getWrapperField(this, google2.protobuf.Duration, 7);
|
|
909
|
-
}
|
|
910
|
-
set duration(value) {
|
|
911
|
-
pb_14.Message.setWrapperField(this, 7, value);
|
|
912
|
-
}
|
|
913
|
-
get has_duration() {
|
|
914
|
-
return pb_14.Message.getField(this, 7) != null;
|
|
915
|
-
}
|
|
916
|
-
get type() {
|
|
917
|
-
return pb_14.Message.getFieldWithDefault(this, 8, "");
|
|
918
|
-
}
|
|
919
|
-
set type(value) {
|
|
920
|
-
pb_14.Message.setField(this, 8, value);
|
|
921
|
-
}
|
|
922
|
-
get metadata() {
|
|
923
|
-
return pb_14.Message.getField(this, 9);
|
|
924
|
-
}
|
|
925
|
-
set metadata(value) {
|
|
926
|
-
pb_14.Message.setField(this, 9, value);
|
|
927
|
-
}
|
|
928
|
-
get parent_step_id() {
|
|
929
|
-
return pb_14.Message.getFieldWithDefault(this, 10, "");
|
|
930
|
-
}
|
|
931
|
-
set parent_step_id(value) {
|
|
932
|
-
pb_14.Message.setField(this, 10, value);
|
|
933
|
-
}
|
|
934
|
-
get worker_index() {
|
|
935
|
-
return pb_14.Message.getFieldWithDefault(this, 11, "");
|
|
936
|
-
}
|
|
937
|
-
set worker_index(value) {
|
|
938
|
-
pb_14.Message.setField(this, 11, value);
|
|
939
|
-
}
|
|
940
|
-
get status() {
|
|
941
|
-
return pb_14.Message.getFieldWithDefault(this, 12, testsystem.v1.common.TestStatus.UNKNOWN);
|
|
942
|
-
}
|
|
943
|
-
set status(value) {
|
|
944
|
-
pb_14.Message.setField(this, 12, value);
|
|
945
|
-
}
|
|
946
|
-
get error() {
|
|
947
|
-
return pb_14.Message.getFieldWithDefault(this, 13, "");
|
|
948
|
-
}
|
|
949
|
-
set error(value) {
|
|
950
|
-
pb_14.Message.setField(this, 13, value);
|
|
951
|
-
}
|
|
952
|
-
get errors() {
|
|
953
|
-
return pb_14.Message.getFieldWithDefault(this, 14, []);
|
|
954
|
-
}
|
|
955
|
-
set errors(value) {
|
|
956
|
-
pb_14.Message.setField(this, 14, value);
|
|
957
|
-
}
|
|
958
|
-
get location() {
|
|
959
|
-
return pb_14.Message.getFieldWithDefault(this, 15, "");
|
|
960
|
-
}
|
|
961
|
-
set location(value) {
|
|
962
|
-
pb_14.Message.setField(this, 15, value);
|
|
963
|
-
}
|
|
964
|
-
get category() {
|
|
965
|
-
return pb_14.Message.getFieldWithDefault(this, 16, "");
|
|
966
|
-
}
|
|
967
|
-
set category(value) {
|
|
968
|
-
pb_14.Message.setField(this, 16, value);
|
|
969
|
-
}
|
|
970
|
-
static fromObject(data) {
|
|
971
|
-
const message = new _StepRun({});
|
|
972
|
-
if (data.id != null) {
|
|
973
|
-
message.id = data.id;
|
|
974
|
-
}
|
|
975
|
-
if (data.run_id != null) {
|
|
976
|
-
message.run_id = data.run_id;
|
|
977
|
-
}
|
|
978
|
-
if (data.test_case_run_id != null) {
|
|
979
|
-
message.test_case_run_id = data.test_case_run_id;
|
|
980
|
-
}
|
|
981
|
-
if (data.title != null) {
|
|
982
|
-
message.title = data.title;
|
|
983
|
-
}
|
|
984
|
-
if (data.description != null) {
|
|
985
|
-
message.description = data.description;
|
|
986
|
-
}
|
|
987
|
-
if (data.start_time != null) {
|
|
988
|
-
message.start_time = google.protobuf.Timestamp.fromObject(data.start_time);
|
|
989
|
-
}
|
|
990
|
-
if (data.duration != null) {
|
|
991
|
-
message.duration = google2.protobuf.Duration.fromObject(data.duration);
|
|
992
|
-
}
|
|
993
|
-
if (data.type != null) {
|
|
994
|
-
message.type = data.type;
|
|
995
|
-
}
|
|
996
|
-
if (typeof data.metadata == "object") {
|
|
997
|
-
message.metadata = new Map(Object.entries(data.metadata));
|
|
998
|
-
}
|
|
999
|
-
if (data.parent_step_id != null) {
|
|
1000
|
-
message.parent_step_id = data.parent_step_id;
|
|
1001
|
-
}
|
|
1002
|
-
if (data.worker_index != null) {
|
|
1003
|
-
message.worker_index = data.worker_index;
|
|
1004
|
-
}
|
|
1005
|
-
if (data.status != null) {
|
|
1006
|
-
message.status = data.status;
|
|
1007
|
-
}
|
|
1008
|
-
if (data.error != null) {
|
|
1009
|
-
message.error = data.error;
|
|
1010
|
-
}
|
|
1011
|
-
if (data.errors != null) {
|
|
1012
|
-
message.errors = data.errors;
|
|
1013
|
-
}
|
|
1014
|
-
if (data.location != null) {
|
|
1015
|
-
message.location = data.location;
|
|
1016
|
-
}
|
|
1017
|
-
if (data.category != null) {
|
|
1018
|
-
message.category = data.category;
|
|
1019
|
-
}
|
|
1020
|
-
return message;
|
|
1021
|
-
}
|
|
1022
|
-
toObject() {
|
|
1023
|
-
const data = {};
|
|
1024
|
-
if (this.id != null) {
|
|
1025
|
-
data.id = this.id;
|
|
1026
|
-
}
|
|
1027
|
-
if (this.run_id != null) {
|
|
1028
|
-
data.run_id = this.run_id;
|
|
1029
|
-
}
|
|
1030
|
-
if (this.test_case_run_id != null) {
|
|
1031
|
-
data.test_case_run_id = this.test_case_run_id;
|
|
1032
|
-
}
|
|
1033
|
-
if (this.title != null) {
|
|
1034
|
-
data.title = this.title;
|
|
1035
|
-
}
|
|
1036
|
-
if (this.description != null) {
|
|
1037
|
-
data.description = this.description;
|
|
1038
|
-
}
|
|
1039
|
-
if (this.start_time != null) {
|
|
1040
|
-
data.start_time = this.start_time.toObject();
|
|
1041
|
-
}
|
|
1042
|
-
if (this.duration != null) {
|
|
1043
|
-
data.duration = this.duration.toObject();
|
|
1044
|
-
}
|
|
1045
|
-
if (this.type != null) {
|
|
1046
|
-
data.type = this.type;
|
|
1047
|
-
}
|
|
1048
|
-
if (this.metadata != null) {
|
|
1049
|
-
data.metadata = Object.fromEntries(this.metadata);
|
|
1050
|
-
}
|
|
1051
|
-
if (this.parent_step_id != null) {
|
|
1052
|
-
data.parent_step_id = this.parent_step_id;
|
|
1053
|
-
}
|
|
1054
|
-
if (this.worker_index != null) {
|
|
1055
|
-
data.worker_index = this.worker_index;
|
|
1056
|
-
}
|
|
1057
|
-
if (this.status != null) {
|
|
1058
|
-
data.status = this.status;
|
|
1059
|
-
}
|
|
1060
|
-
if (this.error != null) {
|
|
1061
|
-
data.error = this.error;
|
|
1062
|
-
}
|
|
1063
|
-
if (this.errors != null) {
|
|
1064
|
-
data.errors = this.errors;
|
|
1065
|
-
}
|
|
1066
|
-
if (this.location != null) {
|
|
1067
|
-
data.location = this.location;
|
|
1068
|
-
}
|
|
1069
|
-
if (this.category != null) {
|
|
1070
|
-
data.category = this.category;
|
|
1071
|
-
}
|
|
1072
|
-
return data;
|
|
1073
|
-
}
|
|
1074
|
-
serialize(w) {
|
|
1075
|
-
const writer = w || new pb_14.BinaryWriter();
|
|
1076
|
-
if (this.id.length)
|
|
1077
|
-
writer.writeString(1, this.id);
|
|
1078
|
-
if (this.run_id.length)
|
|
1079
|
-
writer.writeString(2, this.run_id);
|
|
1080
|
-
if (this.test_case_run_id.length)
|
|
1081
|
-
writer.writeString(3, this.test_case_run_id);
|
|
1082
|
-
if (this.title.length)
|
|
1083
|
-
writer.writeString(4, this.title);
|
|
1084
|
-
if (this.description.length)
|
|
1085
|
-
writer.writeString(5, this.description);
|
|
1086
|
-
if (this.has_start_time)
|
|
1087
|
-
writer.writeMessage(6, this.start_time, () => this.start_time.serialize(writer));
|
|
1088
|
-
if (this.has_duration)
|
|
1089
|
-
writer.writeMessage(7, this.duration, () => this.duration.serialize(writer));
|
|
1090
|
-
if (this.type.length)
|
|
1091
|
-
writer.writeString(8, this.type);
|
|
1092
|
-
for (const [key, value] of this.metadata) {
|
|
1093
|
-
writer.writeMessage(9, this.metadata, () => {
|
|
1094
|
-
writer.writeString(1, key);
|
|
1095
|
-
writer.writeString(2, value);
|
|
1096
|
-
});
|
|
1097
|
-
}
|
|
1098
|
-
if (this.parent_step_id.length)
|
|
1099
|
-
writer.writeString(10, this.parent_step_id);
|
|
1100
|
-
if (this.worker_index.length)
|
|
1101
|
-
writer.writeString(11, this.worker_index);
|
|
1102
|
-
if (this.status != testsystem.v1.common.TestStatus.UNKNOWN)
|
|
1103
|
-
writer.writeEnum(12, this.status);
|
|
1104
|
-
if (this.error.length)
|
|
1105
|
-
writer.writeString(13, this.error);
|
|
1106
|
-
if (this.errors.length)
|
|
1107
|
-
writer.writeRepeatedString(14, this.errors);
|
|
1108
|
-
if (this.location.length)
|
|
1109
|
-
writer.writeString(15, this.location);
|
|
1110
|
-
if (this.category.length)
|
|
1111
|
-
writer.writeString(16, this.category);
|
|
1112
|
-
if (!w)
|
|
1113
|
-
return writer.getResultBuffer();
|
|
1114
|
-
}
|
|
1115
|
-
static deserialize(bytes) {
|
|
1116
|
-
const reader = bytes instanceof pb_14.BinaryReader ? bytes : new pb_14.BinaryReader(bytes), message = new _StepRun();
|
|
1117
|
-
while (reader.nextField()) {
|
|
1118
|
-
if (reader.isEndGroup())
|
|
1119
|
-
break;
|
|
1120
|
-
switch (reader.getFieldNumber()) {
|
|
1121
|
-
case 1:
|
|
1122
|
-
message.id = reader.readString();
|
|
1123
|
-
break;
|
|
1124
|
-
case 2:
|
|
1125
|
-
message.run_id = reader.readString();
|
|
1126
|
-
break;
|
|
1127
|
-
case 3:
|
|
1128
|
-
message.test_case_run_id = reader.readString();
|
|
1129
|
-
break;
|
|
1130
|
-
case 4:
|
|
1131
|
-
message.title = reader.readString();
|
|
1132
|
-
break;
|
|
1133
|
-
case 5:
|
|
1134
|
-
message.description = reader.readString();
|
|
1135
|
-
break;
|
|
1136
|
-
case 6:
|
|
1137
|
-
reader.readMessage(message.start_time, () => message.start_time = google.protobuf.Timestamp.deserialize(reader));
|
|
1138
|
-
break;
|
|
1139
|
-
case 7:
|
|
1140
|
-
reader.readMessage(message.duration, () => message.duration = google2.protobuf.Duration.deserialize(reader));
|
|
1141
|
-
break;
|
|
1142
|
-
case 8:
|
|
1143
|
-
message.type = reader.readString();
|
|
1144
|
-
break;
|
|
1145
|
-
case 9:
|
|
1146
|
-
reader.readMessage(message, () => pb_14.Map.deserializeBinary(message.metadata, reader, reader.readString, reader.readString));
|
|
1147
|
-
break;
|
|
1148
|
-
case 10:
|
|
1149
|
-
message.parent_step_id = reader.readString();
|
|
1150
|
-
break;
|
|
1151
|
-
case 11:
|
|
1152
|
-
message.worker_index = reader.readString();
|
|
1153
|
-
break;
|
|
1154
|
-
case 12:
|
|
1155
|
-
message.status = reader.readEnum();
|
|
1156
|
-
break;
|
|
1157
|
-
case 13:
|
|
1158
|
-
message.error = reader.readString();
|
|
1159
|
-
break;
|
|
1160
|
-
case 14:
|
|
1161
|
-
pb_14.Message.addToRepeatedField(message, 14, reader.readString());
|
|
1162
|
-
break;
|
|
1163
|
-
case 15:
|
|
1164
|
-
message.location = reader.readString();
|
|
1165
|
-
break;
|
|
1166
|
-
case 16:
|
|
1167
|
-
message.category = reader.readString();
|
|
1168
|
-
break;
|
|
1169
|
-
default:
|
|
1170
|
-
reader.skipField();
|
|
1171
|
-
}
|
|
1172
|
-
}
|
|
1173
|
-
return message;
|
|
1174
|
-
}
|
|
1175
|
-
serializeBinary() {
|
|
1176
|
-
return this.serialize();
|
|
1177
|
-
}
|
|
1178
|
-
static deserializeBinary(bytes) {
|
|
1179
|
-
return _StepRun.deserialize(bytes);
|
|
1180
|
-
}
|
|
1181
|
-
};
|
|
1182
|
-
_one_of_decls2 = new WeakMap();
|
|
1183
|
-
let StepRun = _StepRun;
|
|
1184
|
-
entities2.StepRun = _StepRun;
|
|
1185
|
-
})(entities = v12.entities || (v12.entities = {}));
|
|
1186
|
-
})(v1 = testsystem7.v1 || (testsystem7.v1 = {}));
|
|
1187
|
-
})(testsystem2 || (testsystem2 = {}));
|
|
1188
|
-
|
|
1189
|
-
// lib/testsystem/v1/entities/test_suite.ts
|
|
1190
|
-
import * as pb_15 from "google-protobuf";
|
|
1191
|
-
var testsystem3;
|
|
1192
|
-
((testsystem7) => {
|
|
1193
|
-
let v1;
|
|
1194
|
-
((v12) => {
|
|
1195
|
-
let entities;
|
|
1196
|
-
((entities2) => {
|
|
1197
|
-
var _one_of_decls;
|
|
1198
|
-
let SuiteType;
|
|
1199
|
-
((SuiteType2) => {
|
|
1200
|
-
SuiteType2[SuiteType2["ROOT"] = 0] = "ROOT";
|
|
1201
|
-
SuiteType2[SuiteType2["PROJECT"] = 1] = "PROJECT";
|
|
1202
|
-
SuiteType2[SuiteType2["SUBSUITE"] = 2] = "SUBSUITE";
|
|
1203
|
-
})(SuiteType = entities2.SuiteType || (entities2.SuiteType = {}));
|
|
1204
|
-
const _TestSuiteRun = class _TestSuiteRun extends pb_15.Message {
|
|
1205
|
-
constructor(data) {
|
|
1206
|
-
super();
|
|
1207
|
-
__privateAdd(this, _one_of_decls, []);
|
|
1208
|
-
pb_15.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [13, 14, 19, 20], __privateGet(this, _one_of_decls));
|
|
1209
|
-
if (!Array.isArray(data) && typeof data == "object") {
|
|
1210
|
-
if ("id" in data && data.id != void 0) {
|
|
1211
|
-
this.id = data.id;
|
|
1212
|
-
}
|
|
1213
|
-
if ("name" in data && data.name != void 0) {
|
|
1214
|
-
this.name = data.name;
|
|
1215
|
-
}
|
|
1216
|
-
if ("description" in data && data.description != void 0) {
|
|
1217
|
-
this.description = data.description;
|
|
1218
|
-
}
|
|
1219
|
-
if ("run_id" in data && data.run_id != void 0) {
|
|
1220
|
-
this.run_id = data.run_id;
|
|
1221
|
-
}
|
|
1222
|
-
if ("start_time" in data && data.start_time != void 0) {
|
|
1223
|
-
this.start_time = data.start_time;
|
|
1224
|
-
}
|
|
1225
|
-
if ("end_time" in data && data.end_time != void 0) {
|
|
1226
|
-
this.end_time = data.end_time;
|
|
1227
|
-
}
|
|
1228
|
-
if ("duration" in data && data.duration != void 0) {
|
|
1229
|
-
this.duration = data.duration;
|
|
1230
|
-
}
|
|
1231
|
-
if ("status" in data && data.status != void 0) {
|
|
1232
|
-
this.status = data.status;
|
|
1233
|
-
}
|
|
1234
|
-
if ("metadata" in data && data.metadata != void 0) {
|
|
1235
|
-
this.metadata = data.metadata;
|
|
1236
|
-
}
|
|
1237
|
-
if ("location" in data && data.location != void 0) {
|
|
1238
|
-
this.location = data.location;
|
|
1239
|
-
}
|
|
1240
|
-
if ("type" in data && data.type != void 0) {
|
|
1241
|
-
this.type = data.type;
|
|
1242
|
-
}
|
|
1243
|
-
if ("parent_suite_id" in data && data.parent_suite_id != void 0) {
|
|
1244
|
-
this.parent_suite_id = data.parent_suite_id;
|
|
1245
|
-
}
|
|
1246
|
-
if ("test_case_ids" in data && data.test_case_ids != void 0) {
|
|
1247
|
-
this.test_case_ids = data.test_case_ids;
|
|
1248
|
-
}
|
|
1249
|
-
if ("sub_suite_ids" in data && data.sub_suite_ids != void 0) {
|
|
1250
|
-
this.sub_suite_ids = data.sub_suite_ids;
|
|
1251
|
-
}
|
|
1252
|
-
if ("project" in data && data.project != void 0) {
|
|
1253
|
-
this.project = data.project;
|
|
1254
|
-
}
|
|
1255
|
-
if ("initiated_by" in data && data.initiated_by != void 0) {
|
|
1256
|
-
this.initiated_by = data.initiated_by;
|
|
1257
|
-
}
|
|
1258
|
-
if ("author" in data && data.author != void 0) {
|
|
1259
|
-
this.author = data.author;
|
|
1260
|
-
}
|
|
1261
|
-
if ("owner" in data && data.owner != void 0) {
|
|
1262
|
-
this.owner = data.owner;
|
|
1263
|
-
}
|
|
1264
|
-
if ("test_cases" in data && data.test_cases != void 0) {
|
|
1265
|
-
this.test_cases = data.test_cases;
|
|
1266
|
-
}
|
|
1267
|
-
if ("sub_suites" in data && data.sub_suites != void 0) {
|
|
1268
|
-
this.sub_suites = data.sub_suites;
|
|
1269
|
-
}
|
|
1270
|
-
}
|
|
1271
|
-
if (!this.metadata)
|
|
1272
|
-
this.metadata = /* @__PURE__ */ new Map();
|
|
1273
|
-
}
|
|
1274
|
-
get id() {
|
|
1275
|
-
return pb_15.Message.getFieldWithDefault(this, 1, "");
|
|
1276
|
-
}
|
|
1277
|
-
set id(value) {
|
|
1278
|
-
pb_15.Message.setField(this, 1, value);
|
|
1279
|
-
}
|
|
1280
|
-
get name() {
|
|
1281
|
-
return pb_15.Message.getFieldWithDefault(this, 2, "");
|
|
1282
|
-
}
|
|
1283
|
-
set name(value) {
|
|
1284
|
-
pb_15.Message.setField(this, 2, value);
|
|
1285
|
-
}
|
|
1286
|
-
get description() {
|
|
1287
|
-
return pb_15.Message.getFieldWithDefault(this, 3, "");
|
|
1288
|
-
}
|
|
1289
|
-
set description(value) {
|
|
1290
|
-
pb_15.Message.setField(this, 3, value);
|
|
1291
|
-
}
|
|
1292
|
-
get run_id() {
|
|
1293
|
-
return pb_15.Message.getFieldWithDefault(this, 4, "");
|
|
1294
|
-
}
|
|
1295
|
-
set run_id(value) {
|
|
1296
|
-
pb_15.Message.setField(this, 4, value);
|
|
1297
|
-
}
|
|
1298
|
-
get start_time() {
|
|
1299
|
-
return pb_15.Message.getWrapperField(this, google.protobuf.Timestamp, 5);
|
|
1300
|
-
}
|
|
1301
|
-
set start_time(value) {
|
|
1302
|
-
pb_15.Message.setWrapperField(this, 5, value);
|
|
1303
|
-
}
|
|
1304
|
-
get has_start_time() {
|
|
1305
|
-
return pb_15.Message.getField(this, 5) != null;
|
|
1306
|
-
}
|
|
1307
|
-
get end_time() {
|
|
1308
|
-
return pb_15.Message.getWrapperField(this, google.protobuf.Timestamp, 6);
|
|
1309
|
-
}
|
|
1310
|
-
set end_time(value) {
|
|
1311
|
-
pb_15.Message.setWrapperField(this, 6, value);
|
|
1312
|
-
}
|
|
1313
|
-
get has_end_time() {
|
|
1314
|
-
return pb_15.Message.getField(this, 6) != null;
|
|
1315
|
-
}
|
|
1316
|
-
get duration() {
|
|
1317
|
-
return pb_15.Message.getWrapperField(this, google2.protobuf.Duration, 7);
|
|
1318
|
-
}
|
|
1319
|
-
set duration(value) {
|
|
1320
|
-
pb_15.Message.setWrapperField(this, 7, value);
|
|
1321
|
-
}
|
|
1322
|
-
get has_duration() {
|
|
1323
|
-
return pb_15.Message.getField(this, 7) != null;
|
|
1324
|
-
}
|
|
1325
|
-
get status() {
|
|
1326
|
-
return pb_15.Message.getFieldWithDefault(this, 8, testsystem.v1.common.TestStatus.UNKNOWN);
|
|
1327
|
-
}
|
|
1328
|
-
set status(value) {
|
|
1329
|
-
pb_15.Message.setField(this, 8, value);
|
|
1330
|
-
}
|
|
1331
|
-
get metadata() {
|
|
1332
|
-
return pb_15.Message.getField(this, 9);
|
|
1333
|
-
}
|
|
1334
|
-
set metadata(value) {
|
|
1335
|
-
pb_15.Message.setField(this, 9, value);
|
|
1336
|
-
}
|
|
1337
|
-
get location() {
|
|
1338
|
-
return pb_15.Message.getFieldWithDefault(this, 10, "");
|
|
1339
|
-
}
|
|
1340
|
-
set location(value) {
|
|
1341
|
-
pb_15.Message.setField(this, 10, value);
|
|
1342
|
-
}
|
|
1343
|
-
get type() {
|
|
1344
|
-
return pb_15.Message.getFieldWithDefault(this, 11, 0 /* ROOT */);
|
|
1345
|
-
}
|
|
1346
|
-
set type(value) {
|
|
1347
|
-
pb_15.Message.setField(this, 11, value);
|
|
1348
|
-
}
|
|
1349
|
-
get parent_suite_id() {
|
|
1350
|
-
return pb_15.Message.getFieldWithDefault(this, 12, "");
|
|
1351
|
-
}
|
|
1352
|
-
set parent_suite_id(value) {
|
|
1353
|
-
pb_15.Message.setField(this, 12, value);
|
|
1354
|
-
}
|
|
1355
|
-
get test_case_ids() {
|
|
1356
|
-
return pb_15.Message.getFieldWithDefault(this, 13, []);
|
|
1357
|
-
}
|
|
1358
|
-
set test_case_ids(value) {
|
|
1359
|
-
pb_15.Message.setField(this, 13, value);
|
|
1360
|
-
}
|
|
1361
|
-
get sub_suite_ids() {
|
|
1362
|
-
return pb_15.Message.getFieldWithDefault(this, 14, []);
|
|
1363
|
-
}
|
|
1364
|
-
set sub_suite_ids(value) {
|
|
1365
|
-
pb_15.Message.setField(this, 14, value);
|
|
1366
|
-
}
|
|
1367
|
-
get project() {
|
|
1368
|
-
return pb_15.Message.getFieldWithDefault(this, 15, "");
|
|
1369
|
-
}
|
|
1370
|
-
set project(value) {
|
|
1371
|
-
pb_15.Message.setField(this, 15, value);
|
|
1372
|
-
}
|
|
1373
|
-
get initiated_by() {
|
|
1374
|
-
return pb_15.Message.getFieldWithDefault(this, 16, "");
|
|
1375
|
-
}
|
|
1376
|
-
set initiated_by(value) {
|
|
1377
|
-
pb_15.Message.setField(this, 16, value);
|
|
1378
|
-
}
|
|
1379
|
-
get author() {
|
|
1380
|
-
return pb_15.Message.getFieldWithDefault(this, 17, "");
|
|
1381
|
-
}
|
|
1382
|
-
set author(value) {
|
|
1383
|
-
pb_15.Message.setField(this, 17, value);
|
|
1384
|
-
}
|
|
1385
|
-
get owner() {
|
|
1386
|
-
return pb_15.Message.getFieldWithDefault(this, 18, "");
|
|
1387
|
-
}
|
|
1388
|
-
set owner(value) {
|
|
1389
|
-
pb_15.Message.setField(this, 18, value);
|
|
1390
|
-
}
|
|
1391
|
-
get test_cases() {
|
|
1392
|
-
return pb_15.Message.getRepeatedWrapperField(this, testsystem2.v1.entities.TestCaseRun, 19);
|
|
1393
|
-
}
|
|
1394
|
-
set test_cases(value) {
|
|
1395
|
-
pb_15.Message.setRepeatedWrapperField(this, 19, value);
|
|
1396
|
-
}
|
|
1397
|
-
get sub_suites() {
|
|
1398
|
-
return pb_15.Message.getRepeatedWrapperField(this, _TestSuiteRun, 20);
|
|
1399
|
-
}
|
|
1400
|
-
set sub_suites(value) {
|
|
1401
|
-
pb_15.Message.setRepeatedWrapperField(this, 20, value);
|
|
1402
|
-
}
|
|
1403
|
-
static fromObject(data) {
|
|
1404
|
-
const message = new _TestSuiteRun({});
|
|
1405
|
-
if (data.id != null) {
|
|
1406
|
-
message.id = data.id;
|
|
1407
|
-
}
|
|
1408
|
-
if (data.name != null) {
|
|
1409
|
-
message.name = data.name;
|
|
1410
|
-
}
|
|
1411
|
-
if (data.description != null) {
|
|
1412
|
-
message.description = data.description;
|
|
1413
|
-
}
|
|
1414
|
-
if (data.run_id != null) {
|
|
1415
|
-
message.run_id = data.run_id;
|
|
1416
|
-
}
|
|
1417
|
-
if (data.start_time != null) {
|
|
1418
|
-
message.start_time = google.protobuf.Timestamp.fromObject(data.start_time);
|
|
1419
|
-
}
|
|
1420
|
-
if (data.end_time != null) {
|
|
1421
|
-
message.end_time = google.protobuf.Timestamp.fromObject(data.end_time);
|
|
1422
|
-
}
|
|
1423
|
-
if (data.duration != null) {
|
|
1424
|
-
message.duration = google2.protobuf.Duration.fromObject(data.duration);
|
|
1425
|
-
}
|
|
1426
|
-
if (data.status != null) {
|
|
1427
|
-
message.status = data.status;
|
|
1428
|
-
}
|
|
1429
|
-
if (typeof data.metadata == "object") {
|
|
1430
|
-
message.metadata = new Map(Object.entries(data.metadata));
|
|
1431
|
-
}
|
|
1432
|
-
if (data.location != null) {
|
|
1433
|
-
message.location = data.location;
|
|
1434
|
-
}
|
|
1435
|
-
if (data.type != null) {
|
|
1436
|
-
message.type = data.type;
|
|
1437
|
-
}
|
|
1438
|
-
if (data.parent_suite_id != null) {
|
|
1439
|
-
message.parent_suite_id = data.parent_suite_id;
|
|
1440
|
-
}
|
|
1441
|
-
if (data.test_case_ids != null) {
|
|
1442
|
-
message.test_case_ids = data.test_case_ids;
|
|
1443
|
-
}
|
|
1444
|
-
if (data.sub_suite_ids != null) {
|
|
1445
|
-
message.sub_suite_ids = data.sub_suite_ids;
|
|
1446
|
-
}
|
|
1447
|
-
if (data.project != null) {
|
|
1448
|
-
message.project = data.project;
|
|
1449
|
-
}
|
|
1450
|
-
if (data.initiated_by != null) {
|
|
1451
|
-
message.initiated_by = data.initiated_by;
|
|
1452
|
-
}
|
|
1453
|
-
if (data.author != null) {
|
|
1454
|
-
message.author = data.author;
|
|
1455
|
-
}
|
|
1456
|
-
if (data.owner != null) {
|
|
1457
|
-
message.owner = data.owner;
|
|
1458
|
-
}
|
|
1459
|
-
if (data.test_cases != null) {
|
|
1460
|
-
message.test_cases = data.test_cases.map((item) => testsystem2.v1.entities.TestCaseRun.fromObject(item));
|
|
1461
|
-
}
|
|
1462
|
-
if (data.sub_suites != null) {
|
|
1463
|
-
message.sub_suites = data.sub_suites.map((item) => _TestSuiteRun.fromObject(item));
|
|
1464
|
-
}
|
|
1465
|
-
return message;
|
|
1466
|
-
}
|
|
1467
|
-
toObject() {
|
|
1468
|
-
const data = {};
|
|
1469
|
-
if (this.id != null) {
|
|
1470
|
-
data.id = this.id;
|
|
1471
|
-
}
|
|
1472
|
-
if (this.name != null) {
|
|
1473
|
-
data.name = this.name;
|
|
1474
|
-
}
|
|
1475
|
-
if (this.description != null) {
|
|
1476
|
-
data.description = this.description;
|
|
1477
|
-
}
|
|
1478
|
-
if (this.run_id != null) {
|
|
1479
|
-
data.run_id = this.run_id;
|
|
1480
|
-
}
|
|
1481
|
-
if (this.start_time != null) {
|
|
1482
|
-
data.start_time = this.start_time.toObject();
|
|
1483
|
-
}
|
|
1484
|
-
if (this.end_time != null) {
|
|
1485
|
-
data.end_time = this.end_time.toObject();
|
|
1486
|
-
}
|
|
1487
|
-
if (this.duration != null) {
|
|
1488
|
-
data.duration = this.duration.toObject();
|
|
1489
|
-
}
|
|
1490
|
-
if (this.status != null) {
|
|
1491
|
-
data.status = this.status;
|
|
1492
|
-
}
|
|
1493
|
-
if (this.metadata != null) {
|
|
1494
|
-
data.metadata = Object.fromEntries(this.metadata);
|
|
1495
|
-
}
|
|
1496
|
-
if (this.location != null) {
|
|
1497
|
-
data.location = this.location;
|
|
1498
|
-
}
|
|
1499
|
-
if (this.type != null) {
|
|
1500
|
-
data.type = this.type;
|
|
1501
|
-
}
|
|
1502
|
-
if (this.parent_suite_id != null) {
|
|
1503
|
-
data.parent_suite_id = this.parent_suite_id;
|
|
1504
|
-
}
|
|
1505
|
-
if (this.test_case_ids != null) {
|
|
1506
|
-
data.test_case_ids = this.test_case_ids;
|
|
1507
|
-
}
|
|
1508
|
-
if (this.sub_suite_ids != null) {
|
|
1509
|
-
data.sub_suite_ids = this.sub_suite_ids;
|
|
1510
|
-
}
|
|
1511
|
-
if (this.project != null) {
|
|
1512
|
-
data.project = this.project;
|
|
1513
|
-
}
|
|
1514
|
-
if (this.initiated_by != null) {
|
|
1515
|
-
data.initiated_by = this.initiated_by;
|
|
1516
|
-
}
|
|
1517
|
-
if (this.author != null) {
|
|
1518
|
-
data.author = this.author;
|
|
1519
|
-
}
|
|
1520
|
-
if (this.owner != null) {
|
|
1521
|
-
data.owner = this.owner;
|
|
1522
|
-
}
|
|
1523
|
-
if (this.test_cases != null) {
|
|
1524
|
-
data.test_cases = this.test_cases.map((item) => item.toObject());
|
|
1525
|
-
}
|
|
1526
|
-
if (this.sub_suites != null) {
|
|
1527
|
-
data.sub_suites = this.sub_suites.map((item) => item.toObject());
|
|
1528
|
-
}
|
|
1529
|
-
return data;
|
|
1530
|
-
}
|
|
1531
|
-
serialize(w) {
|
|
1532
|
-
const writer = w || new pb_15.BinaryWriter();
|
|
1533
|
-
if (this.id.length)
|
|
1534
|
-
writer.writeString(1, this.id);
|
|
1535
|
-
if (this.name.length)
|
|
1536
|
-
writer.writeString(2, this.name);
|
|
1537
|
-
if (this.description.length)
|
|
1538
|
-
writer.writeString(3, this.description);
|
|
1539
|
-
if (this.run_id.length)
|
|
1540
|
-
writer.writeString(4, this.run_id);
|
|
1541
|
-
if (this.has_start_time)
|
|
1542
|
-
writer.writeMessage(5, this.start_time, () => this.start_time.serialize(writer));
|
|
1543
|
-
if (this.has_end_time)
|
|
1544
|
-
writer.writeMessage(6, this.end_time, () => this.end_time.serialize(writer));
|
|
1545
|
-
if (this.has_duration)
|
|
1546
|
-
writer.writeMessage(7, this.duration, () => this.duration.serialize(writer));
|
|
1547
|
-
if (this.status != testsystem.v1.common.TestStatus.UNKNOWN)
|
|
1548
|
-
writer.writeEnum(8, this.status);
|
|
1549
|
-
for (const [key, value] of this.metadata) {
|
|
1550
|
-
writer.writeMessage(9, this.metadata, () => {
|
|
1551
|
-
writer.writeString(1, key);
|
|
1552
|
-
writer.writeString(2, value);
|
|
1553
|
-
});
|
|
1554
|
-
}
|
|
1555
|
-
if (this.location.length)
|
|
1556
|
-
writer.writeString(10, this.location);
|
|
1557
|
-
if (this.type != 0 /* ROOT */)
|
|
1558
|
-
writer.writeEnum(11, this.type);
|
|
1559
|
-
if (this.parent_suite_id.length)
|
|
1560
|
-
writer.writeString(12, this.parent_suite_id);
|
|
1561
|
-
if (this.test_case_ids.length)
|
|
1562
|
-
writer.writeRepeatedString(13, this.test_case_ids);
|
|
1563
|
-
if (this.sub_suite_ids.length)
|
|
1564
|
-
writer.writeRepeatedString(14, this.sub_suite_ids);
|
|
1565
|
-
if (this.project.length)
|
|
1566
|
-
writer.writeString(15, this.project);
|
|
1567
|
-
if (this.initiated_by.length)
|
|
1568
|
-
writer.writeString(16, this.initiated_by);
|
|
1569
|
-
if (this.author.length)
|
|
1570
|
-
writer.writeString(17, this.author);
|
|
1571
|
-
if (this.owner.length)
|
|
1572
|
-
writer.writeString(18, this.owner);
|
|
1573
|
-
if (this.test_cases.length)
|
|
1574
|
-
writer.writeRepeatedMessage(19, this.test_cases, (item) => item.serialize(writer));
|
|
1575
|
-
if (this.sub_suites.length)
|
|
1576
|
-
writer.writeRepeatedMessage(20, this.sub_suites, (item) => item.serialize(writer));
|
|
1577
|
-
if (!w)
|
|
1578
|
-
return writer.getResultBuffer();
|
|
1579
|
-
}
|
|
1580
|
-
static deserialize(bytes) {
|
|
1581
|
-
const reader = bytes instanceof pb_15.BinaryReader ? bytes : new pb_15.BinaryReader(bytes), message = new _TestSuiteRun();
|
|
1582
|
-
while (reader.nextField()) {
|
|
1583
|
-
if (reader.isEndGroup())
|
|
1584
|
-
break;
|
|
1585
|
-
switch (reader.getFieldNumber()) {
|
|
1586
|
-
case 1:
|
|
1587
|
-
message.id = reader.readString();
|
|
1588
|
-
break;
|
|
1589
|
-
case 2:
|
|
1590
|
-
message.name = reader.readString();
|
|
1591
|
-
break;
|
|
1592
|
-
case 3:
|
|
1593
|
-
message.description = reader.readString();
|
|
1594
|
-
break;
|
|
1595
|
-
case 4:
|
|
1596
|
-
message.run_id = reader.readString();
|
|
1597
|
-
break;
|
|
1598
|
-
case 5:
|
|
1599
|
-
reader.readMessage(message.start_time, () => message.start_time = google.protobuf.Timestamp.deserialize(reader));
|
|
1600
|
-
break;
|
|
1601
|
-
case 6:
|
|
1602
|
-
reader.readMessage(message.end_time, () => message.end_time = google.protobuf.Timestamp.deserialize(reader));
|
|
1603
|
-
break;
|
|
1604
|
-
case 7:
|
|
1605
|
-
reader.readMessage(message.duration, () => message.duration = google2.protobuf.Duration.deserialize(reader));
|
|
1606
|
-
break;
|
|
1607
|
-
case 8:
|
|
1608
|
-
message.status = reader.readEnum();
|
|
1609
|
-
break;
|
|
1610
|
-
case 9:
|
|
1611
|
-
reader.readMessage(message, () => pb_15.Map.deserializeBinary(message.metadata, reader, reader.readString, reader.readString));
|
|
1612
|
-
break;
|
|
1613
|
-
case 10:
|
|
1614
|
-
message.location = reader.readString();
|
|
1615
|
-
break;
|
|
1616
|
-
case 11:
|
|
1617
|
-
message.type = reader.readEnum();
|
|
1618
|
-
break;
|
|
1619
|
-
case 12:
|
|
1620
|
-
message.parent_suite_id = reader.readString();
|
|
1621
|
-
break;
|
|
1622
|
-
case 13:
|
|
1623
|
-
pb_15.Message.addToRepeatedField(message, 13, reader.readString());
|
|
1624
|
-
break;
|
|
1625
|
-
case 14:
|
|
1626
|
-
pb_15.Message.addToRepeatedField(message, 14, reader.readString());
|
|
1627
|
-
break;
|
|
1628
|
-
case 15:
|
|
1629
|
-
message.project = reader.readString();
|
|
1630
|
-
break;
|
|
1631
|
-
case 16:
|
|
1632
|
-
message.initiated_by = reader.readString();
|
|
1633
|
-
break;
|
|
1634
|
-
case 17:
|
|
1635
|
-
message.author = reader.readString();
|
|
1636
|
-
break;
|
|
1637
|
-
case 18:
|
|
1638
|
-
message.owner = reader.readString();
|
|
1639
|
-
break;
|
|
1640
|
-
case 19:
|
|
1641
|
-
reader.readMessage(message.test_cases, () => pb_15.Message.addToRepeatedWrapperField(message, 19, testsystem2.v1.entities.TestCaseRun.deserialize(reader), testsystem2.v1.entities.TestCaseRun));
|
|
1642
|
-
break;
|
|
1643
|
-
case 20:
|
|
1644
|
-
reader.readMessage(message.sub_suites, () => pb_15.Message.addToRepeatedWrapperField(message, 20, _TestSuiteRun.deserialize(reader), _TestSuiteRun));
|
|
1645
|
-
break;
|
|
1646
|
-
default:
|
|
1647
|
-
reader.skipField();
|
|
1648
|
-
}
|
|
1649
|
-
}
|
|
1650
|
-
return message;
|
|
1651
|
-
}
|
|
1652
|
-
serializeBinary() {
|
|
1653
|
-
return this.serialize();
|
|
1654
|
-
}
|
|
1655
|
-
static deserializeBinary(bytes) {
|
|
1656
|
-
return _TestSuiteRun.deserialize(bytes);
|
|
1657
|
-
}
|
|
1658
|
-
};
|
|
1659
|
-
_one_of_decls = new WeakMap();
|
|
1660
|
-
let TestSuiteRun = _TestSuiteRun;
|
|
1661
|
-
entities2.TestSuiteRun = _TestSuiteRun;
|
|
1662
|
-
})(entities = v12.entities || (v12.entities = {}));
|
|
1663
|
-
})(v1 = testsystem7.v1 || (testsystem7.v1 = {}));
|
|
1664
|
-
})(testsystem3 || (testsystem3 = {}));
|
|
1665
|
-
|
|
1666
|
-
// lib/testsystem/v1/events/events.ts
|
|
1667
|
-
import * as pb_16 from "google-protobuf";
|
|
1668
|
-
var testsystem4;
|
|
1669
|
-
((testsystem7) => {
|
|
1670
|
-
let v1;
|
|
1671
|
-
((v12) => {
|
|
1672
|
-
let events;
|
|
1673
|
-
((events2) => {
|
|
1674
|
-
var _one_of_decls, _one_of_decls2, _one_of_decls3, _one_of_decls4, _one_of_decls5, _one_of_decls6, _one_of_decls7, _one_of_decls8, _one_of_decls9, _one_of_decls10, _one_of_decls11;
|
|
1675
|
-
const _TestBeginEventRequest = class _TestBeginEventRequest extends pb_16.Message {
|
|
1676
|
-
constructor(data) {
|
|
1677
|
-
super();
|
|
1678
|
-
__privateAdd(this, _one_of_decls, []);
|
|
1679
|
-
pb_16.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], __privateGet(this, _one_of_decls));
|
|
1680
|
-
if (!Array.isArray(data) && typeof data == "object") {
|
|
1681
|
-
if ("test_case" in data && data.test_case != void 0) {
|
|
1682
|
-
this.test_case = data.test_case;
|
|
1683
|
-
}
|
|
1684
|
-
}
|
|
1685
|
-
}
|
|
1686
|
-
get test_case() {
|
|
1687
|
-
return pb_16.Message.getWrapperField(this, testsystem2.v1.entities.TestCaseRun, 1);
|
|
1688
|
-
}
|
|
1689
|
-
set test_case(value) {
|
|
1690
|
-
pb_16.Message.setWrapperField(this, 1, value);
|
|
1691
|
-
}
|
|
1692
|
-
get has_test_case() {
|
|
1693
|
-
return pb_16.Message.getField(this, 1) != null;
|
|
1694
|
-
}
|
|
1695
|
-
static fromObject(data) {
|
|
1696
|
-
const message = new _TestBeginEventRequest({});
|
|
1697
|
-
if (data.test_case != null) {
|
|
1698
|
-
message.test_case = testsystem2.v1.entities.TestCaseRun.fromObject(data.test_case);
|
|
1699
|
-
}
|
|
1700
|
-
return message;
|
|
1701
|
-
}
|
|
1702
|
-
toObject() {
|
|
1703
|
-
const data = {};
|
|
1704
|
-
if (this.test_case != null) {
|
|
1705
|
-
data.test_case = this.test_case.toObject();
|
|
1706
|
-
}
|
|
1707
|
-
return data;
|
|
1708
|
-
}
|
|
1709
|
-
serialize(w) {
|
|
1710
|
-
const writer = w || new pb_16.BinaryWriter();
|
|
1711
|
-
if (this.has_test_case)
|
|
1712
|
-
writer.writeMessage(1, this.test_case, () => this.test_case.serialize(writer));
|
|
1713
|
-
if (!w)
|
|
1714
|
-
return writer.getResultBuffer();
|
|
1715
|
-
}
|
|
1716
|
-
static deserialize(bytes) {
|
|
1717
|
-
const reader = bytes instanceof pb_16.BinaryReader ? bytes : new pb_16.BinaryReader(bytes), message = new _TestBeginEventRequest();
|
|
1718
|
-
while (reader.nextField()) {
|
|
1719
|
-
if (reader.isEndGroup())
|
|
1720
|
-
break;
|
|
1721
|
-
switch (reader.getFieldNumber()) {
|
|
1722
|
-
case 1:
|
|
1723
|
-
reader.readMessage(message.test_case, () => message.test_case = testsystem2.v1.entities.TestCaseRun.deserialize(reader));
|
|
1724
|
-
break;
|
|
1725
|
-
default:
|
|
1726
|
-
reader.skipField();
|
|
1727
|
-
}
|
|
1728
|
-
}
|
|
1729
|
-
return message;
|
|
1730
|
-
}
|
|
1731
|
-
serializeBinary() {
|
|
1732
|
-
return this.serialize();
|
|
1733
|
-
}
|
|
1734
|
-
static deserializeBinary(bytes) {
|
|
1735
|
-
return _TestBeginEventRequest.deserialize(bytes);
|
|
1736
|
-
}
|
|
1737
|
-
};
|
|
1738
|
-
_one_of_decls = new WeakMap();
|
|
1739
|
-
let TestBeginEventRequest = _TestBeginEventRequest;
|
|
1740
|
-
events2.TestBeginEventRequest = _TestBeginEventRequest;
|
|
1741
|
-
const _TestEndEventRequest = class _TestEndEventRequest extends pb_16.Message {
|
|
1742
|
-
constructor(data) {
|
|
1743
|
-
super();
|
|
1744
|
-
__privateAdd(this, _one_of_decls2, []);
|
|
1745
|
-
pb_16.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], __privateGet(this, _one_of_decls2));
|
|
1746
|
-
if (!Array.isArray(data) && typeof data == "object") {
|
|
1747
|
-
if ("test_case" in data && data.test_case != void 0) {
|
|
1748
|
-
this.test_case = data.test_case;
|
|
1749
|
-
}
|
|
1750
|
-
}
|
|
1751
|
-
}
|
|
1752
|
-
get test_case() {
|
|
1753
|
-
return pb_16.Message.getWrapperField(this, testsystem2.v1.entities.TestCaseRun, 1);
|
|
1754
|
-
}
|
|
1755
|
-
set test_case(value) {
|
|
1756
|
-
pb_16.Message.setWrapperField(this, 1, value);
|
|
1757
|
-
}
|
|
1758
|
-
get has_test_case() {
|
|
1759
|
-
return pb_16.Message.getField(this, 1) != null;
|
|
1760
|
-
}
|
|
1761
|
-
static fromObject(data) {
|
|
1762
|
-
const message = new _TestEndEventRequest({});
|
|
1763
|
-
if (data.test_case != null) {
|
|
1764
|
-
message.test_case = testsystem2.v1.entities.TestCaseRun.fromObject(data.test_case);
|
|
1765
|
-
}
|
|
1766
|
-
return message;
|
|
1767
|
-
}
|
|
1768
|
-
toObject() {
|
|
1769
|
-
const data = {};
|
|
1770
|
-
if (this.test_case != null) {
|
|
1771
|
-
data.test_case = this.test_case.toObject();
|
|
1772
|
-
}
|
|
1773
|
-
return data;
|
|
1774
|
-
}
|
|
1775
|
-
serialize(w) {
|
|
1776
|
-
const writer = w || new pb_16.BinaryWriter();
|
|
1777
|
-
if (this.has_test_case)
|
|
1778
|
-
writer.writeMessage(1, this.test_case, () => this.test_case.serialize(writer));
|
|
1779
|
-
if (!w)
|
|
1780
|
-
return writer.getResultBuffer();
|
|
1781
|
-
}
|
|
1782
|
-
static deserialize(bytes) {
|
|
1783
|
-
const reader = bytes instanceof pb_16.BinaryReader ? bytes : new pb_16.BinaryReader(bytes), message = new _TestEndEventRequest();
|
|
1784
|
-
while (reader.nextField()) {
|
|
1785
|
-
if (reader.isEndGroup())
|
|
1786
|
-
break;
|
|
1787
|
-
switch (reader.getFieldNumber()) {
|
|
1788
|
-
case 1:
|
|
1789
|
-
reader.readMessage(message.test_case, () => message.test_case = testsystem2.v1.entities.TestCaseRun.deserialize(reader));
|
|
1790
|
-
break;
|
|
1791
|
-
default:
|
|
1792
|
-
reader.skipField();
|
|
1793
|
-
}
|
|
1794
|
-
}
|
|
1795
|
-
return message;
|
|
1796
|
-
}
|
|
1797
|
-
serializeBinary() {
|
|
1798
|
-
return this.serialize();
|
|
1799
|
-
}
|
|
1800
|
-
static deserializeBinary(bytes) {
|
|
1801
|
-
return _TestEndEventRequest.deserialize(bytes);
|
|
1802
|
-
}
|
|
1803
|
-
};
|
|
1804
|
-
_one_of_decls2 = new WeakMap();
|
|
1805
|
-
let TestEndEventRequest = _TestEndEventRequest;
|
|
1806
|
-
events2.TestEndEventRequest = _TestEndEventRequest;
|
|
1807
|
-
const _StepBeginEventRequest = class _StepBeginEventRequest extends pb_16.Message {
|
|
1808
|
-
constructor(data) {
|
|
1809
|
-
super();
|
|
1810
|
-
__privateAdd(this, _one_of_decls3, []);
|
|
1811
|
-
pb_16.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], __privateGet(this, _one_of_decls3));
|
|
1812
|
-
if (!Array.isArray(data) && typeof data == "object") {
|
|
1813
|
-
if ("step" in data && data.step != void 0) {
|
|
1814
|
-
this.step = data.step;
|
|
1815
|
-
}
|
|
1816
|
-
}
|
|
1817
|
-
}
|
|
1818
|
-
get step() {
|
|
1819
|
-
return pb_16.Message.getWrapperField(this, testsystem2.v1.entities.StepRun, 1);
|
|
1820
|
-
}
|
|
1821
|
-
set step(value) {
|
|
1822
|
-
pb_16.Message.setWrapperField(this, 1, value);
|
|
1823
|
-
}
|
|
1824
|
-
get has_step() {
|
|
1825
|
-
return pb_16.Message.getField(this, 1) != null;
|
|
1826
|
-
}
|
|
1827
|
-
static fromObject(data) {
|
|
1828
|
-
const message = new _StepBeginEventRequest({});
|
|
1829
|
-
if (data.step != null) {
|
|
1830
|
-
message.step = testsystem2.v1.entities.StepRun.fromObject(data.step);
|
|
1831
|
-
}
|
|
1832
|
-
return message;
|
|
1833
|
-
}
|
|
1834
|
-
toObject() {
|
|
1835
|
-
const data = {};
|
|
1836
|
-
if (this.step != null) {
|
|
1837
|
-
data.step = this.step.toObject();
|
|
1838
|
-
}
|
|
1839
|
-
return data;
|
|
1840
|
-
}
|
|
1841
|
-
serialize(w) {
|
|
1842
|
-
const writer = w || new pb_16.BinaryWriter();
|
|
1843
|
-
if (this.has_step)
|
|
1844
|
-
writer.writeMessage(1, this.step, () => this.step.serialize(writer));
|
|
1845
|
-
if (!w)
|
|
1846
|
-
return writer.getResultBuffer();
|
|
1847
|
-
}
|
|
1848
|
-
static deserialize(bytes) {
|
|
1849
|
-
const reader = bytes instanceof pb_16.BinaryReader ? bytes : new pb_16.BinaryReader(bytes), message = new _StepBeginEventRequest();
|
|
1850
|
-
while (reader.nextField()) {
|
|
1851
|
-
if (reader.isEndGroup())
|
|
1852
|
-
break;
|
|
1853
|
-
switch (reader.getFieldNumber()) {
|
|
1854
|
-
case 1:
|
|
1855
|
-
reader.readMessage(message.step, () => message.step = testsystem2.v1.entities.StepRun.deserialize(reader));
|
|
1856
|
-
break;
|
|
1857
|
-
default:
|
|
1858
|
-
reader.skipField();
|
|
1859
|
-
}
|
|
1860
|
-
}
|
|
1861
|
-
return message;
|
|
1862
|
-
}
|
|
1863
|
-
serializeBinary() {
|
|
1864
|
-
return this.serialize();
|
|
1865
|
-
}
|
|
1866
|
-
static deserializeBinary(bytes) {
|
|
1867
|
-
return _StepBeginEventRequest.deserialize(bytes);
|
|
1868
|
-
}
|
|
1869
|
-
};
|
|
1870
|
-
_one_of_decls3 = new WeakMap();
|
|
1871
|
-
let StepBeginEventRequest = _StepBeginEventRequest;
|
|
1872
|
-
events2.StepBeginEventRequest = _StepBeginEventRequest;
|
|
1873
|
-
const _StepEndEventRequest = class _StepEndEventRequest extends pb_16.Message {
|
|
1874
|
-
constructor(data) {
|
|
1875
|
-
super();
|
|
1876
|
-
__privateAdd(this, _one_of_decls4, []);
|
|
1877
|
-
pb_16.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], __privateGet(this, _one_of_decls4));
|
|
1878
|
-
if (!Array.isArray(data) && typeof data == "object") {
|
|
1879
|
-
if ("step" in data && data.step != void 0) {
|
|
1880
|
-
this.step = data.step;
|
|
1881
|
-
}
|
|
1882
|
-
}
|
|
1883
|
-
}
|
|
1884
|
-
get step() {
|
|
1885
|
-
return pb_16.Message.getWrapperField(this, testsystem2.v1.entities.StepRun, 1);
|
|
1886
|
-
}
|
|
1887
|
-
set step(value) {
|
|
1888
|
-
pb_16.Message.setWrapperField(this, 1, value);
|
|
1889
|
-
}
|
|
1890
|
-
get has_step() {
|
|
1891
|
-
return pb_16.Message.getField(this, 1) != null;
|
|
1892
|
-
}
|
|
1893
|
-
static fromObject(data) {
|
|
1894
|
-
const message = new _StepEndEventRequest({});
|
|
1895
|
-
if (data.step != null) {
|
|
1896
|
-
message.step = testsystem2.v1.entities.StepRun.fromObject(data.step);
|
|
1897
|
-
}
|
|
1898
|
-
return message;
|
|
1899
|
-
}
|
|
1900
|
-
toObject() {
|
|
1901
|
-
const data = {};
|
|
1902
|
-
if (this.step != null) {
|
|
1903
|
-
data.step = this.step.toObject();
|
|
1904
|
-
}
|
|
1905
|
-
return data;
|
|
1906
|
-
}
|
|
1907
|
-
serialize(w) {
|
|
1908
|
-
const writer = w || new pb_16.BinaryWriter();
|
|
1909
|
-
if (this.has_step)
|
|
1910
|
-
writer.writeMessage(1, this.step, () => this.step.serialize(writer));
|
|
1911
|
-
if (!w)
|
|
1912
|
-
return writer.getResultBuffer();
|
|
1913
|
-
}
|
|
1914
|
-
static deserialize(bytes) {
|
|
1915
|
-
const reader = bytes instanceof pb_16.BinaryReader ? bytes : new pb_16.BinaryReader(bytes), message = new _StepEndEventRequest();
|
|
1916
|
-
while (reader.nextField()) {
|
|
1917
|
-
if (reader.isEndGroup())
|
|
1918
|
-
break;
|
|
1919
|
-
switch (reader.getFieldNumber()) {
|
|
1920
|
-
case 1:
|
|
1921
|
-
reader.readMessage(message.step, () => message.step = testsystem2.v1.entities.StepRun.deserialize(reader));
|
|
1922
|
-
break;
|
|
1923
|
-
default:
|
|
1924
|
-
reader.skipField();
|
|
1925
|
-
}
|
|
1926
|
-
}
|
|
1927
|
-
return message;
|
|
1928
|
-
}
|
|
1929
|
-
serializeBinary() {
|
|
1930
|
-
return this.serialize();
|
|
1931
|
-
}
|
|
1932
|
-
static deserializeBinary(bytes) {
|
|
1933
|
-
return _StepEndEventRequest.deserialize(bytes);
|
|
1934
|
-
}
|
|
1935
|
-
};
|
|
1936
|
-
_one_of_decls4 = new WeakMap();
|
|
1937
|
-
let StepEndEventRequest = _StepEndEventRequest;
|
|
1938
|
-
events2.StepEndEventRequest = _StepEndEventRequest;
|
|
1939
|
-
const _TestFailureEventRequest = class _TestFailureEventRequest extends pb_16.Message {
|
|
1940
|
-
constructor(data) {
|
|
1941
|
-
super();
|
|
1942
|
-
__privateAdd(this, _one_of_decls5, []);
|
|
1943
|
-
pb_16.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [5], __privateGet(this, _one_of_decls5));
|
|
1944
|
-
if (!Array.isArray(data) && typeof data == "object") {
|
|
1945
|
-
if ("test_id" in data && data.test_id != void 0) {
|
|
1946
|
-
this.test_id = data.test_id;
|
|
1947
|
-
}
|
|
1948
|
-
if ("failure_message" in data && data.failure_message != void 0) {
|
|
1949
|
-
this.failure_message = data.failure_message;
|
|
1950
|
-
}
|
|
1951
|
-
if ("stack_trace" in data && data.stack_trace != void 0) {
|
|
1952
|
-
this.stack_trace = data.stack_trace;
|
|
1953
|
-
}
|
|
1954
|
-
if ("timestamp" in data && data.timestamp != void 0) {
|
|
1955
|
-
this.timestamp = data.timestamp;
|
|
1956
|
-
}
|
|
1957
|
-
if ("attachments" in data && data.attachments != void 0) {
|
|
1958
|
-
this.attachments = data.attachments;
|
|
1959
|
-
}
|
|
1960
|
-
}
|
|
1961
|
-
}
|
|
1962
|
-
get test_id() {
|
|
1963
|
-
return pb_16.Message.getFieldWithDefault(this, 1, "");
|
|
1964
|
-
}
|
|
1965
|
-
set test_id(value) {
|
|
1966
|
-
pb_16.Message.setField(this, 1, value);
|
|
1967
|
-
}
|
|
1968
|
-
get failure_message() {
|
|
1969
|
-
return pb_16.Message.getFieldWithDefault(this, 2, "");
|
|
1970
|
-
}
|
|
1971
|
-
set failure_message(value) {
|
|
1972
|
-
pb_16.Message.setField(this, 2, value);
|
|
1973
|
-
}
|
|
1974
|
-
get stack_trace() {
|
|
1975
|
-
return pb_16.Message.getFieldWithDefault(this, 3, "");
|
|
1976
|
-
}
|
|
1977
|
-
set stack_trace(value) {
|
|
1978
|
-
pb_16.Message.setField(this, 3, value);
|
|
1979
|
-
}
|
|
1980
|
-
get timestamp() {
|
|
1981
|
-
return pb_16.Message.getWrapperField(this, google.protobuf.Timestamp, 4);
|
|
1982
|
-
}
|
|
1983
|
-
set timestamp(value) {
|
|
1984
|
-
pb_16.Message.setWrapperField(this, 4, value);
|
|
1985
|
-
}
|
|
1986
|
-
get has_timestamp() {
|
|
1987
|
-
return pb_16.Message.getField(this, 4) != null;
|
|
1988
|
-
}
|
|
1989
|
-
get attachments() {
|
|
1990
|
-
return pb_16.Message.getRepeatedWrapperField(this, testsystem.v1.common.Attachment, 5);
|
|
1991
|
-
}
|
|
1992
|
-
set attachments(value) {
|
|
1993
|
-
pb_16.Message.setRepeatedWrapperField(this, 5, value);
|
|
1994
|
-
}
|
|
1995
|
-
static fromObject(data) {
|
|
1996
|
-
const message = new _TestFailureEventRequest({});
|
|
1997
|
-
if (data.test_id != null) {
|
|
1998
|
-
message.test_id = data.test_id;
|
|
1999
|
-
}
|
|
2000
|
-
if (data.failure_message != null) {
|
|
2001
|
-
message.failure_message = data.failure_message;
|
|
2002
|
-
}
|
|
2003
|
-
if (data.stack_trace != null) {
|
|
2004
|
-
message.stack_trace = data.stack_trace;
|
|
2005
|
-
}
|
|
2006
|
-
if (data.timestamp != null) {
|
|
2007
|
-
message.timestamp = google.protobuf.Timestamp.fromObject(data.timestamp);
|
|
2008
|
-
}
|
|
2009
|
-
if (data.attachments != null) {
|
|
2010
|
-
message.attachments = data.attachments.map((item) => testsystem.v1.common.Attachment.fromObject(item));
|
|
2011
|
-
}
|
|
2012
|
-
return message;
|
|
2013
|
-
}
|
|
2014
|
-
toObject() {
|
|
2015
|
-
const data = {};
|
|
2016
|
-
if (this.test_id != null) {
|
|
2017
|
-
data.test_id = this.test_id;
|
|
2018
|
-
}
|
|
2019
|
-
if (this.failure_message != null) {
|
|
2020
|
-
data.failure_message = this.failure_message;
|
|
2021
|
-
}
|
|
2022
|
-
if (this.stack_trace != null) {
|
|
2023
|
-
data.stack_trace = this.stack_trace;
|
|
2024
|
-
}
|
|
2025
|
-
if (this.timestamp != null) {
|
|
2026
|
-
data.timestamp = this.timestamp.toObject();
|
|
2027
|
-
}
|
|
2028
|
-
if (this.attachments != null) {
|
|
2029
|
-
data.attachments = this.attachments.map((item) => item.toObject());
|
|
2030
|
-
}
|
|
2031
|
-
return data;
|
|
2032
|
-
}
|
|
2033
|
-
serialize(w) {
|
|
2034
|
-
const writer = w || new pb_16.BinaryWriter();
|
|
2035
|
-
if (this.test_id.length)
|
|
2036
|
-
writer.writeString(1, this.test_id);
|
|
2037
|
-
if (this.failure_message.length)
|
|
2038
|
-
writer.writeString(2, this.failure_message);
|
|
2039
|
-
if (this.stack_trace.length)
|
|
2040
|
-
writer.writeString(3, this.stack_trace);
|
|
2041
|
-
if (this.has_timestamp)
|
|
2042
|
-
writer.writeMessage(4, this.timestamp, () => this.timestamp.serialize(writer));
|
|
2043
|
-
if (this.attachments.length)
|
|
2044
|
-
writer.writeRepeatedMessage(5, this.attachments, (item) => item.serialize(writer));
|
|
2045
|
-
if (!w)
|
|
2046
|
-
return writer.getResultBuffer();
|
|
2047
|
-
}
|
|
2048
|
-
static deserialize(bytes) {
|
|
2049
|
-
const reader = bytes instanceof pb_16.BinaryReader ? bytes : new pb_16.BinaryReader(bytes), message = new _TestFailureEventRequest();
|
|
2050
|
-
while (reader.nextField()) {
|
|
2051
|
-
if (reader.isEndGroup())
|
|
2052
|
-
break;
|
|
2053
|
-
switch (reader.getFieldNumber()) {
|
|
2054
|
-
case 1:
|
|
2055
|
-
message.test_id = reader.readString();
|
|
2056
|
-
break;
|
|
2057
|
-
case 2:
|
|
2058
|
-
message.failure_message = reader.readString();
|
|
2059
|
-
break;
|
|
2060
|
-
case 3:
|
|
2061
|
-
message.stack_trace = reader.readString();
|
|
2062
|
-
break;
|
|
2063
|
-
case 4:
|
|
2064
|
-
reader.readMessage(message.timestamp, () => message.timestamp = google.protobuf.Timestamp.deserialize(reader));
|
|
2065
|
-
break;
|
|
2066
|
-
case 5:
|
|
2067
|
-
reader.readMessage(message.attachments, () => pb_16.Message.addToRepeatedWrapperField(message, 5, testsystem.v1.common.Attachment.deserialize(reader), testsystem.v1.common.Attachment));
|
|
2068
|
-
break;
|
|
2069
|
-
default:
|
|
2070
|
-
reader.skipField();
|
|
2071
|
-
}
|
|
2072
|
-
}
|
|
2073
|
-
return message;
|
|
2074
|
-
}
|
|
2075
|
-
serializeBinary() {
|
|
2076
|
-
return this.serialize();
|
|
2077
|
-
}
|
|
2078
|
-
static deserializeBinary(bytes) {
|
|
2079
|
-
return _TestFailureEventRequest.deserialize(bytes);
|
|
2080
|
-
}
|
|
2081
|
-
};
|
|
2082
|
-
_one_of_decls5 = new WeakMap();
|
|
2083
|
-
let TestFailureEventRequest = _TestFailureEventRequest;
|
|
2084
|
-
events2.TestFailureEventRequest = _TestFailureEventRequest;
|
|
2085
|
-
const _TestErrorEventRequest = class _TestErrorEventRequest extends pb_16.Message {
|
|
2086
|
-
constructor(data) {
|
|
2087
|
-
super();
|
|
2088
|
-
__privateAdd(this, _one_of_decls6, []);
|
|
2089
|
-
pb_16.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [5], __privateGet(this, _one_of_decls6));
|
|
2090
|
-
if (!Array.isArray(data) && typeof data == "object") {
|
|
2091
|
-
if ("test_id" in data && data.test_id != void 0) {
|
|
2092
|
-
this.test_id = data.test_id;
|
|
2093
|
-
}
|
|
2094
|
-
if ("error_message" in data && data.error_message != void 0) {
|
|
2095
|
-
this.error_message = data.error_message;
|
|
2096
|
-
}
|
|
2097
|
-
if ("stack_trace" in data && data.stack_trace != void 0) {
|
|
2098
|
-
this.stack_trace = data.stack_trace;
|
|
2099
|
-
}
|
|
2100
|
-
if ("timestamp" in data && data.timestamp != void 0) {
|
|
2101
|
-
this.timestamp = data.timestamp;
|
|
2102
|
-
}
|
|
2103
|
-
if ("attachments" in data && data.attachments != void 0) {
|
|
2104
|
-
this.attachments = data.attachments;
|
|
2105
|
-
}
|
|
2106
|
-
}
|
|
2107
|
-
}
|
|
2108
|
-
get test_id() {
|
|
2109
|
-
return pb_16.Message.getFieldWithDefault(this, 1, "");
|
|
2110
|
-
}
|
|
2111
|
-
set test_id(value) {
|
|
2112
|
-
pb_16.Message.setField(this, 1, value);
|
|
2113
|
-
}
|
|
2114
|
-
get error_message() {
|
|
2115
|
-
return pb_16.Message.getFieldWithDefault(this, 2, "");
|
|
2116
|
-
}
|
|
2117
|
-
set error_message(value) {
|
|
2118
|
-
pb_16.Message.setField(this, 2, value);
|
|
2119
|
-
}
|
|
2120
|
-
get stack_trace() {
|
|
2121
|
-
return pb_16.Message.getFieldWithDefault(this, 3, "");
|
|
2122
|
-
}
|
|
2123
|
-
set stack_trace(value) {
|
|
2124
|
-
pb_16.Message.setField(this, 3, value);
|
|
2125
|
-
}
|
|
2126
|
-
get timestamp() {
|
|
2127
|
-
return pb_16.Message.getWrapperField(this, google.protobuf.Timestamp, 4);
|
|
2128
|
-
}
|
|
2129
|
-
set timestamp(value) {
|
|
2130
|
-
pb_16.Message.setWrapperField(this, 4, value);
|
|
2131
|
-
}
|
|
2132
|
-
get has_timestamp() {
|
|
2133
|
-
return pb_16.Message.getField(this, 4) != null;
|
|
2134
|
-
}
|
|
2135
|
-
get attachments() {
|
|
2136
|
-
return pb_16.Message.getRepeatedWrapperField(this, testsystem.v1.common.Attachment, 5);
|
|
2137
|
-
}
|
|
2138
|
-
set attachments(value) {
|
|
2139
|
-
pb_16.Message.setRepeatedWrapperField(this, 5, value);
|
|
2140
|
-
}
|
|
2141
|
-
static fromObject(data) {
|
|
2142
|
-
const message = new _TestErrorEventRequest({});
|
|
2143
|
-
if (data.test_id != null) {
|
|
2144
|
-
message.test_id = data.test_id;
|
|
2145
|
-
}
|
|
2146
|
-
if (data.error_message != null) {
|
|
2147
|
-
message.error_message = data.error_message;
|
|
2148
|
-
}
|
|
2149
|
-
if (data.stack_trace != null) {
|
|
2150
|
-
message.stack_trace = data.stack_trace;
|
|
2151
|
-
}
|
|
2152
|
-
if (data.timestamp != null) {
|
|
2153
|
-
message.timestamp = google.protobuf.Timestamp.fromObject(data.timestamp);
|
|
2154
|
-
}
|
|
2155
|
-
if (data.attachments != null) {
|
|
2156
|
-
message.attachments = data.attachments.map((item) => testsystem.v1.common.Attachment.fromObject(item));
|
|
2157
|
-
}
|
|
2158
|
-
return message;
|
|
2159
|
-
}
|
|
2160
|
-
toObject() {
|
|
2161
|
-
const data = {};
|
|
2162
|
-
if (this.test_id != null) {
|
|
2163
|
-
data.test_id = this.test_id;
|
|
2164
|
-
}
|
|
2165
|
-
if (this.error_message != null) {
|
|
2166
|
-
data.error_message = this.error_message;
|
|
2167
|
-
}
|
|
2168
|
-
if (this.stack_trace != null) {
|
|
2169
|
-
data.stack_trace = this.stack_trace;
|
|
2170
|
-
}
|
|
2171
|
-
if (this.timestamp != null) {
|
|
2172
|
-
data.timestamp = this.timestamp.toObject();
|
|
2173
|
-
}
|
|
2174
|
-
if (this.attachments != null) {
|
|
2175
|
-
data.attachments = this.attachments.map((item) => item.toObject());
|
|
2176
|
-
}
|
|
2177
|
-
return data;
|
|
2178
|
-
}
|
|
2179
|
-
serialize(w) {
|
|
2180
|
-
const writer = w || new pb_16.BinaryWriter();
|
|
2181
|
-
if (this.test_id.length)
|
|
2182
|
-
writer.writeString(1, this.test_id);
|
|
2183
|
-
if (this.error_message.length)
|
|
2184
|
-
writer.writeString(2, this.error_message);
|
|
2185
|
-
if (this.stack_trace.length)
|
|
2186
|
-
writer.writeString(3, this.stack_trace);
|
|
2187
|
-
if (this.has_timestamp)
|
|
2188
|
-
writer.writeMessage(4, this.timestamp, () => this.timestamp.serialize(writer));
|
|
2189
|
-
if (this.attachments.length)
|
|
2190
|
-
writer.writeRepeatedMessage(5, this.attachments, (item) => item.serialize(writer));
|
|
2191
|
-
if (!w)
|
|
2192
|
-
return writer.getResultBuffer();
|
|
2193
|
-
}
|
|
2194
|
-
static deserialize(bytes) {
|
|
2195
|
-
const reader = bytes instanceof pb_16.BinaryReader ? bytes : new pb_16.BinaryReader(bytes), message = new _TestErrorEventRequest();
|
|
2196
|
-
while (reader.nextField()) {
|
|
2197
|
-
if (reader.isEndGroup())
|
|
2198
|
-
break;
|
|
2199
|
-
switch (reader.getFieldNumber()) {
|
|
2200
|
-
case 1:
|
|
2201
|
-
message.test_id = reader.readString();
|
|
2202
|
-
break;
|
|
2203
|
-
case 2:
|
|
2204
|
-
message.error_message = reader.readString();
|
|
2205
|
-
break;
|
|
2206
|
-
case 3:
|
|
2207
|
-
message.stack_trace = reader.readString();
|
|
2208
|
-
break;
|
|
2209
|
-
case 4:
|
|
2210
|
-
reader.readMessage(message.timestamp, () => message.timestamp = google.protobuf.Timestamp.deserialize(reader));
|
|
2211
|
-
break;
|
|
2212
|
-
case 5:
|
|
2213
|
-
reader.readMessage(message.attachments, () => pb_16.Message.addToRepeatedWrapperField(message, 5, testsystem.v1.common.Attachment.deserialize(reader), testsystem.v1.common.Attachment));
|
|
2214
|
-
break;
|
|
2215
|
-
default:
|
|
2216
|
-
reader.skipField();
|
|
2217
|
-
}
|
|
2218
|
-
}
|
|
2219
|
-
return message;
|
|
2220
|
-
}
|
|
2221
|
-
serializeBinary() {
|
|
2222
|
-
return this.serialize();
|
|
2223
|
-
}
|
|
2224
|
-
static deserializeBinary(bytes) {
|
|
2225
|
-
return _TestErrorEventRequest.deserialize(bytes);
|
|
2226
|
-
}
|
|
2227
|
-
};
|
|
2228
|
-
_one_of_decls6 = new WeakMap();
|
|
2229
|
-
let TestErrorEventRequest = _TestErrorEventRequest;
|
|
2230
|
-
events2.TestErrorEventRequest = _TestErrorEventRequest;
|
|
2231
|
-
const _StdErrorEventRequest = class _StdErrorEventRequest extends pb_16.Message {
|
|
2232
|
-
constructor(data) {
|
|
2233
|
-
super();
|
|
2234
|
-
__privateAdd(this, _one_of_decls7, []);
|
|
2235
|
-
pb_16.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], __privateGet(this, _one_of_decls7));
|
|
2236
|
-
if (!Array.isArray(data) && typeof data == "object") {
|
|
2237
|
-
if ("test_id" in data && data.test_id != void 0) {
|
|
2238
|
-
this.test_id = data.test_id;
|
|
2239
|
-
}
|
|
2240
|
-
if ("message" in data && data.message != void 0) {
|
|
2241
|
-
this.message = data.message;
|
|
2242
|
-
}
|
|
2243
|
-
if ("timestamp" in data && data.timestamp != void 0) {
|
|
2244
|
-
this.timestamp = data.timestamp;
|
|
2245
|
-
}
|
|
2246
|
-
if ("test_case_run_id" in data && data.test_case_run_id != void 0) {
|
|
2247
|
-
this.test_case_run_id = data.test_case_run_id;
|
|
2248
|
-
}
|
|
2249
|
-
}
|
|
2250
|
-
}
|
|
2251
|
-
get test_id() {
|
|
2252
|
-
return pb_16.Message.getFieldWithDefault(this, 1, "");
|
|
2253
|
-
}
|
|
2254
|
-
set test_id(value) {
|
|
2255
|
-
pb_16.Message.setField(this, 1, value);
|
|
2256
|
-
}
|
|
2257
|
-
get message() {
|
|
2258
|
-
return pb_16.Message.getFieldWithDefault(this, 2, "");
|
|
2259
|
-
}
|
|
2260
|
-
set message(value) {
|
|
2261
|
-
pb_16.Message.setField(this, 2, value);
|
|
2262
|
-
}
|
|
2263
|
-
get timestamp() {
|
|
2264
|
-
return pb_16.Message.getWrapperField(this, google.protobuf.Timestamp, 3);
|
|
2265
|
-
}
|
|
2266
|
-
set timestamp(value) {
|
|
2267
|
-
pb_16.Message.setWrapperField(this, 3, value);
|
|
2268
|
-
}
|
|
2269
|
-
get has_timestamp() {
|
|
2270
|
-
return pb_16.Message.getField(this, 3) != null;
|
|
2271
|
-
}
|
|
2272
|
-
get test_case_run_id() {
|
|
2273
|
-
return pb_16.Message.getFieldWithDefault(this, 4, "");
|
|
2274
|
-
}
|
|
2275
|
-
set test_case_run_id(value) {
|
|
2276
|
-
pb_16.Message.setField(this, 4, value);
|
|
2277
|
-
}
|
|
2278
|
-
static fromObject(data) {
|
|
2279
|
-
const message = new _StdErrorEventRequest({});
|
|
2280
|
-
if (data.test_id != null) {
|
|
2281
|
-
message.test_id = data.test_id;
|
|
2282
|
-
}
|
|
2283
|
-
if (data.message != null) {
|
|
2284
|
-
message.message = data.message;
|
|
2285
|
-
}
|
|
2286
|
-
if (data.timestamp != null) {
|
|
2287
|
-
message.timestamp = google.protobuf.Timestamp.fromObject(data.timestamp);
|
|
2288
|
-
}
|
|
2289
|
-
if (data.test_case_run_id != null) {
|
|
2290
|
-
message.test_case_run_id = data.test_case_run_id;
|
|
2291
|
-
}
|
|
2292
|
-
return message;
|
|
2293
|
-
}
|
|
2294
|
-
toObject() {
|
|
2295
|
-
const data = {};
|
|
2296
|
-
if (this.test_id != null) {
|
|
2297
|
-
data.test_id = this.test_id;
|
|
2298
|
-
}
|
|
2299
|
-
if (this.message != null) {
|
|
2300
|
-
data.message = this.message;
|
|
2301
|
-
}
|
|
2302
|
-
if (this.timestamp != null) {
|
|
2303
|
-
data.timestamp = this.timestamp.toObject();
|
|
2304
|
-
}
|
|
2305
|
-
if (this.test_case_run_id != null) {
|
|
2306
|
-
data.test_case_run_id = this.test_case_run_id;
|
|
2307
|
-
}
|
|
2308
|
-
return data;
|
|
2309
|
-
}
|
|
2310
|
-
serialize(w) {
|
|
2311
|
-
const writer = w || new pb_16.BinaryWriter();
|
|
2312
|
-
if (this.test_id.length)
|
|
2313
|
-
writer.writeString(1, this.test_id);
|
|
2314
|
-
if (this.message.length)
|
|
2315
|
-
writer.writeString(2, this.message);
|
|
2316
|
-
if (this.has_timestamp)
|
|
2317
|
-
writer.writeMessage(3, this.timestamp, () => this.timestamp.serialize(writer));
|
|
2318
|
-
if (this.test_case_run_id.length)
|
|
2319
|
-
writer.writeString(4, this.test_case_run_id);
|
|
2320
|
-
if (!w)
|
|
2321
|
-
return writer.getResultBuffer();
|
|
2322
|
-
}
|
|
2323
|
-
static deserialize(bytes) {
|
|
2324
|
-
const reader = bytes instanceof pb_16.BinaryReader ? bytes : new pb_16.BinaryReader(bytes), message = new _StdErrorEventRequest();
|
|
2325
|
-
while (reader.nextField()) {
|
|
2326
|
-
if (reader.isEndGroup())
|
|
2327
|
-
break;
|
|
2328
|
-
switch (reader.getFieldNumber()) {
|
|
2329
|
-
case 1:
|
|
2330
|
-
message.test_id = reader.readString();
|
|
2331
|
-
break;
|
|
2332
|
-
case 2:
|
|
2333
|
-
message.message = reader.readString();
|
|
2334
|
-
break;
|
|
2335
|
-
case 3:
|
|
2336
|
-
reader.readMessage(message.timestamp, () => message.timestamp = google.protobuf.Timestamp.deserialize(reader));
|
|
2337
|
-
break;
|
|
2338
|
-
case 4:
|
|
2339
|
-
message.test_case_run_id = reader.readString();
|
|
2340
|
-
break;
|
|
2341
|
-
default:
|
|
2342
|
-
reader.skipField();
|
|
2343
|
-
}
|
|
2344
|
-
}
|
|
2345
|
-
return message;
|
|
2346
|
-
}
|
|
2347
|
-
serializeBinary() {
|
|
2348
|
-
return this.serialize();
|
|
2349
|
-
}
|
|
2350
|
-
static deserializeBinary(bytes) {
|
|
2351
|
-
return _StdErrorEventRequest.deserialize(bytes);
|
|
2352
|
-
}
|
|
2353
|
-
};
|
|
2354
|
-
_one_of_decls7 = new WeakMap();
|
|
2355
|
-
let StdErrorEventRequest = _StdErrorEventRequest;
|
|
2356
|
-
events2.StdErrorEventRequest = _StdErrorEventRequest;
|
|
2357
|
-
const _StdOutputEventRequest = class _StdOutputEventRequest extends pb_16.Message {
|
|
2358
|
-
constructor(data) {
|
|
2359
|
-
super();
|
|
2360
|
-
__privateAdd(this, _one_of_decls8, []);
|
|
2361
|
-
pb_16.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], __privateGet(this, _one_of_decls8));
|
|
2362
|
-
if (!Array.isArray(data) && typeof data == "object") {
|
|
2363
|
-
if ("test_id" in data && data.test_id != void 0) {
|
|
2364
|
-
this.test_id = data.test_id;
|
|
2365
|
-
}
|
|
2366
|
-
if ("message" in data && data.message != void 0) {
|
|
2367
|
-
this.message = data.message;
|
|
2368
|
-
}
|
|
2369
|
-
if ("timestamp" in data && data.timestamp != void 0) {
|
|
2370
|
-
this.timestamp = data.timestamp;
|
|
2371
|
-
}
|
|
2372
|
-
if ("test_case_run_id" in data && data.test_case_run_id != void 0) {
|
|
2373
|
-
this.test_case_run_id = data.test_case_run_id;
|
|
2374
|
-
}
|
|
2375
|
-
}
|
|
2376
|
-
}
|
|
2377
|
-
get test_id() {
|
|
2378
|
-
return pb_16.Message.getFieldWithDefault(this, 1, "");
|
|
2379
|
-
}
|
|
2380
|
-
set test_id(value) {
|
|
2381
|
-
pb_16.Message.setField(this, 1, value);
|
|
2382
|
-
}
|
|
2383
|
-
get message() {
|
|
2384
|
-
return pb_16.Message.getFieldWithDefault(this, 2, "");
|
|
2385
|
-
}
|
|
2386
|
-
set message(value) {
|
|
2387
|
-
pb_16.Message.setField(this, 2, value);
|
|
2388
|
-
}
|
|
2389
|
-
get timestamp() {
|
|
2390
|
-
return pb_16.Message.getWrapperField(this, google.protobuf.Timestamp, 3);
|
|
2391
|
-
}
|
|
2392
|
-
set timestamp(value) {
|
|
2393
|
-
pb_16.Message.setWrapperField(this, 3, value);
|
|
2394
|
-
}
|
|
2395
|
-
get has_timestamp() {
|
|
2396
|
-
return pb_16.Message.getField(this, 3) != null;
|
|
2397
|
-
}
|
|
2398
|
-
get test_case_run_id() {
|
|
2399
|
-
return pb_16.Message.getFieldWithDefault(this, 4, "");
|
|
2400
|
-
}
|
|
2401
|
-
set test_case_run_id(value) {
|
|
2402
|
-
pb_16.Message.setField(this, 4, value);
|
|
2403
|
-
}
|
|
2404
|
-
static fromObject(data) {
|
|
2405
|
-
const message = new _StdOutputEventRequest({});
|
|
2406
|
-
if (data.test_id != null) {
|
|
2407
|
-
message.test_id = data.test_id;
|
|
2408
|
-
}
|
|
2409
|
-
if (data.message != null) {
|
|
2410
|
-
message.message = data.message;
|
|
2411
|
-
}
|
|
2412
|
-
if (data.timestamp != null) {
|
|
2413
|
-
message.timestamp = google.protobuf.Timestamp.fromObject(data.timestamp);
|
|
2414
|
-
}
|
|
2415
|
-
if (data.test_case_run_id != null) {
|
|
2416
|
-
message.test_case_run_id = data.test_case_run_id;
|
|
2417
|
-
}
|
|
2418
|
-
return message;
|
|
2419
|
-
}
|
|
2420
|
-
toObject() {
|
|
2421
|
-
const data = {};
|
|
2422
|
-
if (this.test_id != null) {
|
|
2423
|
-
data.test_id = this.test_id;
|
|
2424
|
-
}
|
|
2425
|
-
if (this.message != null) {
|
|
2426
|
-
data.message = this.message;
|
|
2427
|
-
}
|
|
2428
|
-
if (this.timestamp != null) {
|
|
2429
|
-
data.timestamp = this.timestamp.toObject();
|
|
2430
|
-
}
|
|
2431
|
-
if (this.test_case_run_id != null) {
|
|
2432
|
-
data.test_case_run_id = this.test_case_run_id;
|
|
2433
|
-
}
|
|
2434
|
-
return data;
|
|
2435
|
-
}
|
|
2436
|
-
serialize(w) {
|
|
2437
|
-
const writer = w || new pb_16.BinaryWriter();
|
|
2438
|
-
if (this.test_id.length)
|
|
2439
|
-
writer.writeString(1, this.test_id);
|
|
2440
|
-
if (this.message.length)
|
|
2441
|
-
writer.writeString(2, this.message);
|
|
2442
|
-
if (this.has_timestamp)
|
|
2443
|
-
writer.writeMessage(3, this.timestamp, () => this.timestamp.serialize(writer));
|
|
2444
|
-
if (this.test_case_run_id.length)
|
|
2445
|
-
writer.writeString(4, this.test_case_run_id);
|
|
2446
|
-
if (!w)
|
|
2447
|
-
return writer.getResultBuffer();
|
|
2448
|
-
}
|
|
2449
|
-
static deserialize(bytes) {
|
|
2450
|
-
const reader = bytes instanceof pb_16.BinaryReader ? bytes : new pb_16.BinaryReader(bytes), message = new _StdOutputEventRequest();
|
|
2451
|
-
while (reader.nextField()) {
|
|
2452
|
-
if (reader.isEndGroup())
|
|
2453
|
-
break;
|
|
2454
|
-
switch (reader.getFieldNumber()) {
|
|
2455
|
-
case 1:
|
|
2456
|
-
message.test_id = reader.readString();
|
|
2457
|
-
break;
|
|
2458
|
-
case 2:
|
|
2459
|
-
message.message = reader.readString();
|
|
2460
|
-
break;
|
|
2461
|
-
case 3:
|
|
2462
|
-
reader.readMessage(message.timestamp, () => message.timestamp = google.protobuf.Timestamp.deserialize(reader));
|
|
2463
|
-
break;
|
|
2464
|
-
case 4:
|
|
2465
|
-
message.test_case_run_id = reader.readString();
|
|
2466
|
-
break;
|
|
2467
|
-
default:
|
|
2468
|
-
reader.skipField();
|
|
2469
|
-
}
|
|
2470
|
-
}
|
|
2471
|
-
return message;
|
|
2472
|
-
}
|
|
2473
|
-
serializeBinary() {
|
|
2474
|
-
return this.serialize();
|
|
2475
|
-
}
|
|
2476
|
-
static deserializeBinary(bytes) {
|
|
2477
|
-
return _StdOutputEventRequest.deserialize(bytes);
|
|
2478
|
-
}
|
|
2479
|
-
};
|
|
2480
|
-
_one_of_decls8 = new WeakMap();
|
|
2481
|
-
let StdOutputEventRequest = _StdOutputEventRequest;
|
|
2482
|
-
events2.StdOutputEventRequest = _StdOutputEventRequest;
|
|
2483
|
-
const _SuiteBeginEventRequest = class _SuiteBeginEventRequest extends pb_16.Message {
|
|
2484
|
-
constructor(data) {
|
|
2485
|
-
super();
|
|
2486
|
-
__privateAdd(this, _one_of_decls9, []);
|
|
2487
|
-
pb_16.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], __privateGet(this, _one_of_decls9));
|
|
2488
|
-
if (!Array.isArray(data) && typeof data == "object") {
|
|
2489
|
-
if ("suite" in data && data.suite != void 0) {
|
|
2490
|
-
this.suite = data.suite;
|
|
2491
|
-
}
|
|
2492
|
-
}
|
|
2493
|
-
}
|
|
2494
|
-
get suite() {
|
|
2495
|
-
return pb_16.Message.getWrapperField(this, testsystem3.v1.entities.TestSuiteRun, 1);
|
|
2496
|
-
}
|
|
2497
|
-
set suite(value) {
|
|
2498
|
-
pb_16.Message.setWrapperField(this, 1, value);
|
|
2499
|
-
}
|
|
2500
|
-
get has_suite() {
|
|
2501
|
-
return pb_16.Message.getField(this, 1) != null;
|
|
2502
|
-
}
|
|
2503
|
-
static fromObject(data) {
|
|
2504
|
-
const message = new _SuiteBeginEventRequest({});
|
|
2505
|
-
if (data.suite != null) {
|
|
2506
|
-
message.suite = testsystem3.v1.entities.TestSuiteRun.fromObject(data.suite);
|
|
2507
|
-
}
|
|
2508
|
-
return message;
|
|
2509
|
-
}
|
|
2510
|
-
toObject() {
|
|
2511
|
-
const data = {};
|
|
2512
|
-
if (this.suite != null) {
|
|
2513
|
-
data.suite = this.suite.toObject();
|
|
2514
|
-
}
|
|
2515
|
-
return data;
|
|
2516
|
-
}
|
|
2517
|
-
serialize(w) {
|
|
2518
|
-
const writer = w || new pb_16.BinaryWriter();
|
|
2519
|
-
if (this.has_suite)
|
|
2520
|
-
writer.writeMessage(1, this.suite, () => this.suite.serialize(writer));
|
|
2521
|
-
if (!w)
|
|
2522
|
-
return writer.getResultBuffer();
|
|
2523
|
-
}
|
|
2524
|
-
static deserialize(bytes) {
|
|
2525
|
-
const reader = bytes instanceof pb_16.BinaryReader ? bytes : new pb_16.BinaryReader(bytes), message = new _SuiteBeginEventRequest();
|
|
2526
|
-
while (reader.nextField()) {
|
|
2527
|
-
if (reader.isEndGroup())
|
|
2528
|
-
break;
|
|
2529
|
-
switch (reader.getFieldNumber()) {
|
|
2530
|
-
case 1:
|
|
2531
|
-
reader.readMessage(message.suite, () => message.suite = testsystem3.v1.entities.TestSuiteRun.deserialize(reader));
|
|
2532
|
-
break;
|
|
2533
|
-
default:
|
|
2534
|
-
reader.skipField();
|
|
2535
|
-
}
|
|
2536
|
-
}
|
|
2537
|
-
return message;
|
|
2538
|
-
}
|
|
2539
|
-
serializeBinary() {
|
|
2540
|
-
return this.serialize();
|
|
2541
|
-
}
|
|
2542
|
-
static deserializeBinary(bytes) {
|
|
2543
|
-
return _SuiteBeginEventRequest.deserialize(bytes);
|
|
2544
|
-
}
|
|
2545
|
-
};
|
|
2546
|
-
_one_of_decls9 = new WeakMap();
|
|
2547
|
-
let SuiteBeginEventRequest = _SuiteBeginEventRequest;
|
|
2548
|
-
events2.SuiteBeginEventRequest = _SuiteBeginEventRequest;
|
|
2549
|
-
const _SuiteEndEventRequest = class _SuiteEndEventRequest extends pb_16.Message {
|
|
2550
|
-
constructor(data) {
|
|
2551
|
-
super();
|
|
2552
|
-
__privateAdd(this, _one_of_decls10, []);
|
|
2553
|
-
pb_16.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], __privateGet(this, _one_of_decls10));
|
|
2554
|
-
if (!Array.isArray(data) && typeof data == "object") {
|
|
2555
|
-
if ("suite" in data && data.suite != void 0) {
|
|
2556
|
-
this.suite = data.suite;
|
|
2557
|
-
}
|
|
2558
|
-
}
|
|
2559
|
-
}
|
|
2560
|
-
get suite() {
|
|
2561
|
-
return pb_16.Message.getWrapperField(this, testsystem3.v1.entities.TestSuiteRun, 1);
|
|
2562
|
-
}
|
|
2563
|
-
set suite(value) {
|
|
2564
|
-
pb_16.Message.setWrapperField(this, 1, value);
|
|
2565
|
-
}
|
|
2566
|
-
get has_suite() {
|
|
2567
|
-
return pb_16.Message.getField(this, 1) != null;
|
|
2568
|
-
}
|
|
2569
|
-
static fromObject(data) {
|
|
2570
|
-
const message = new _SuiteEndEventRequest({});
|
|
2571
|
-
if (data.suite != null) {
|
|
2572
|
-
message.suite = testsystem3.v1.entities.TestSuiteRun.fromObject(data.suite);
|
|
2573
|
-
}
|
|
2574
|
-
return message;
|
|
2575
|
-
}
|
|
2576
|
-
toObject() {
|
|
2577
|
-
const data = {};
|
|
2578
|
-
if (this.suite != null) {
|
|
2579
|
-
data.suite = this.suite.toObject();
|
|
2580
|
-
}
|
|
2581
|
-
return data;
|
|
2582
|
-
}
|
|
2583
|
-
serialize(w) {
|
|
2584
|
-
const writer = w || new pb_16.BinaryWriter();
|
|
2585
|
-
if (this.has_suite)
|
|
2586
|
-
writer.writeMessage(1, this.suite, () => this.suite.serialize(writer));
|
|
2587
|
-
if (!w)
|
|
2588
|
-
return writer.getResultBuffer();
|
|
2589
|
-
}
|
|
2590
|
-
static deserialize(bytes) {
|
|
2591
|
-
const reader = bytes instanceof pb_16.BinaryReader ? bytes : new pb_16.BinaryReader(bytes), message = new _SuiteEndEventRequest();
|
|
2592
|
-
while (reader.nextField()) {
|
|
2593
|
-
if (reader.isEndGroup())
|
|
2594
|
-
break;
|
|
2595
|
-
switch (reader.getFieldNumber()) {
|
|
2596
|
-
case 1:
|
|
2597
|
-
reader.readMessage(message.suite, () => message.suite = testsystem3.v1.entities.TestSuiteRun.deserialize(reader));
|
|
2598
|
-
break;
|
|
2599
|
-
default:
|
|
2600
|
-
reader.skipField();
|
|
2601
|
-
}
|
|
2602
|
-
}
|
|
2603
|
-
return message;
|
|
2604
|
-
}
|
|
2605
|
-
serializeBinary() {
|
|
2606
|
-
return this.serialize();
|
|
2607
|
-
}
|
|
2608
|
-
static deserializeBinary(bytes) {
|
|
2609
|
-
return _SuiteEndEventRequest.deserialize(bytes);
|
|
2610
|
-
}
|
|
2611
|
-
};
|
|
2612
|
-
_one_of_decls10 = new WeakMap();
|
|
2613
|
-
let SuiteEndEventRequest = _SuiteEndEventRequest;
|
|
2614
|
-
events2.SuiteEndEventRequest = _SuiteEndEventRequest;
|
|
2615
|
-
const _HeartbeatEventRequest = class _HeartbeatEventRequest extends pb_16.Message {
|
|
2616
|
-
constructor(data) {
|
|
2617
|
-
super();
|
|
2618
|
-
__privateAdd(this, _one_of_decls11, []);
|
|
2619
|
-
pb_16.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], __privateGet(this, _one_of_decls11));
|
|
2620
|
-
if (!Array.isArray(data) && typeof data == "object") {
|
|
2621
|
-
if ("source_id" in data && data.source_id != void 0) {
|
|
2622
|
-
this.source_id = data.source_id;
|
|
2623
|
-
}
|
|
2624
|
-
if ("timestamp" in data && data.timestamp != void 0) {
|
|
2625
|
-
this.timestamp = data.timestamp;
|
|
2626
|
-
}
|
|
2627
|
-
}
|
|
2628
|
-
}
|
|
2629
|
-
get source_id() {
|
|
2630
|
-
return pb_16.Message.getFieldWithDefault(this, 1, "");
|
|
2631
|
-
}
|
|
2632
|
-
set source_id(value) {
|
|
2633
|
-
pb_16.Message.setField(this, 1, value);
|
|
2634
|
-
}
|
|
2635
|
-
get timestamp() {
|
|
2636
|
-
return pb_16.Message.getWrapperField(this, google.protobuf.Timestamp, 2);
|
|
2637
|
-
}
|
|
2638
|
-
set timestamp(value) {
|
|
2639
|
-
pb_16.Message.setWrapperField(this, 2, value);
|
|
2640
|
-
}
|
|
2641
|
-
get has_timestamp() {
|
|
2642
|
-
return pb_16.Message.getField(this, 2) != null;
|
|
2643
|
-
}
|
|
2644
|
-
static fromObject(data) {
|
|
2645
|
-
const message = new _HeartbeatEventRequest({});
|
|
2646
|
-
if (data.source_id != null) {
|
|
2647
|
-
message.source_id = data.source_id;
|
|
2648
|
-
}
|
|
2649
|
-
if (data.timestamp != null) {
|
|
2650
|
-
message.timestamp = google.protobuf.Timestamp.fromObject(data.timestamp);
|
|
2651
|
-
}
|
|
2652
|
-
return message;
|
|
2653
|
-
}
|
|
2654
|
-
toObject() {
|
|
2655
|
-
const data = {};
|
|
2656
|
-
if (this.source_id != null) {
|
|
2657
|
-
data.source_id = this.source_id;
|
|
2658
|
-
}
|
|
2659
|
-
if (this.timestamp != null) {
|
|
2660
|
-
data.timestamp = this.timestamp.toObject();
|
|
2661
|
-
}
|
|
2662
|
-
return data;
|
|
2663
|
-
}
|
|
2664
|
-
serialize(w) {
|
|
2665
|
-
const writer = w || new pb_16.BinaryWriter();
|
|
2666
|
-
if (this.source_id.length)
|
|
2667
|
-
writer.writeString(1, this.source_id);
|
|
2668
|
-
if (this.has_timestamp)
|
|
2669
|
-
writer.writeMessage(2, this.timestamp, () => this.timestamp.serialize(writer));
|
|
2670
|
-
if (!w)
|
|
2671
|
-
return writer.getResultBuffer();
|
|
2672
|
-
}
|
|
2673
|
-
static deserialize(bytes) {
|
|
2674
|
-
const reader = bytes instanceof pb_16.BinaryReader ? bytes : new pb_16.BinaryReader(bytes), message = new _HeartbeatEventRequest();
|
|
2675
|
-
while (reader.nextField()) {
|
|
2676
|
-
if (reader.isEndGroup())
|
|
2677
|
-
break;
|
|
2678
|
-
switch (reader.getFieldNumber()) {
|
|
2679
|
-
case 1:
|
|
2680
|
-
message.source_id = reader.readString();
|
|
2681
|
-
break;
|
|
2682
|
-
case 2:
|
|
2683
|
-
reader.readMessage(message.timestamp, () => message.timestamp = google.protobuf.Timestamp.deserialize(reader));
|
|
2684
|
-
break;
|
|
2685
|
-
default:
|
|
2686
|
-
reader.skipField();
|
|
2687
|
-
}
|
|
2688
|
-
}
|
|
2689
|
-
return message;
|
|
2690
|
-
}
|
|
2691
|
-
serializeBinary() {
|
|
2692
|
-
return this.serialize();
|
|
2693
|
-
}
|
|
2694
|
-
static deserializeBinary(bytes) {
|
|
2695
|
-
return _HeartbeatEventRequest.deserialize(bytes);
|
|
2696
|
-
}
|
|
2697
|
-
};
|
|
2698
|
-
_one_of_decls11 = new WeakMap();
|
|
2699
|
-
let HeartbeatEventRequest = _HeartbeatEventRequest;
|
|
2700
|
-
events2.HeartbeatEventRequest = _HeartbeatEventRequest;
|
|
2701
|
-
})(events = v12.events || (v12.events = {}));
|
|
2702
|
-
})(v1 = testsystem7.v1 || (testsystem7.v1 = {}));
|
|
2703
|
-
})(testsystem4 || (testsystem4 = {}));
|
|
2704
|
-
|
|
2705
|
-
// lib/testsystem/v1/observer/observer.ts
|
|
2706
|
-
import * as pb_17 from "google-protobuf";
|
|
2707
|
-
import * as grpc_1 from "@grpc/grpc-js";
|
|
2708
|
-
var testsystem5;
|
|
2709
|
-
((testsystem7) => {
|
|
2710
|
-
let v1;
|
|
2711
|
-
((v12) => {
|
|
2712
|
-
let observer;
|
|
2713
|
-
((observer2) => {
|
|
2714
|
-
var _one_of_decls;
|
|
2715
|
-
const _AckResponse = class _AckResponse extends pb_17.Message {
|
|
2716
|
-
constructor(data) {
|
|
2717
|
-
super();
|
|
2718
|
-
__privateAdd(this, _one_of_decls, [[3]]);
|
|
2719
|
-
pb_17.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], __privateGet(this, _one_of_decls));
|
|
2720
|
-
if (!Array.isArray(data) && typeof data == "object") {
|
|
2721
|
-
if ("success" in data && data.success != void 0) {
|
|
2722
|
-
this.success = data.success;
|
|
2723
|
-
}
|
|
2724
|
-
if ("message" in data && data.message != void 0) {
|
|
2725
|
-
this.message = data.message;
|
|
2726
|
-
}
|
|
2727
|
-
if ("error_code" in data && data.error_code != void 0) {
|
|
2728
|
-
this.error_code = data.error_code;
|
|
2729
|
-
}
|
|
2730
|
-
}
|
|
2731
|
-
}
|
|
2732
|
-
get success() {
|
|
2733
|
-
return pb_17.Message.getFieldWithDefault(this, 1, false);
|
|
2734
|
-
}
|
|
2735
|
-
set success(value) {
|
|
2736
|
-
pb_17.Message.setField(this, 1, value);
|
|
2737
|
-
}
|
|
2738
|
-
get message() {
|
|
2739
|
-
return pb_17.Message.getFieldWithDefault(this, 2, "");
|
|
2740
|
-
}
|
|
2741
|
-
set message(value) {
|
|
2742
|
-
pb_17.Message.setField(this, 2, value);
|
|
2743
|
-
}
|
|
2744
|
-
get error_code() {
|
|
2745
|
-
return pb_17.Message.getFieldWithDefault(this, 3, 0);
|
|
2746
|
-
}
|
|
2747
|
-
set error_code(value) {
|
|
2748
|
-
pb_17.Message.setOneofField(this, 3, __privateGet(this, _one_of_decls)[0], value);
|
|
2749
|
-
}
|
|
2750
|
-
get has_error_code() {
|
|
2751
|
-
return pb_17.Message.getField(this, 3) != null;
|
|
2752
|
-
}
|
|
2753
|
-
get _error_code() {
|
|
2754
|
-
const cases = {
|
|
2755
|
-
0: "none",
|
|
2756
|
-
3: "error_code"
|
|
2757
|
-
};
|
|
2758
|
-
return cases[pb_17.Message.computeOneofCase(this, [3])];
|
|
2759
|
-
}
|
|
2760
|
-
static fromObject(data) {
|
|
2761
|
-
const message = new _AckResponse({});
|
|
2762
|
-
if (data.success != null) {
|
|
2763
|
-
message.success = data.success;
|
|
2764
|
-
}
|
|
2765
|
-
if (data.message != null) {
|
|
2766
|
-
message.message = data.message;
|
|
2767
|
-
}
|
|
2768
|
-
if (data.error_code != null) {
|
|
2769
|
-
message.error_code = data.error_code;
|
|
2770
|
-
}
|
|
2771
|
-
return message;
|
|
2772
|
-
}
|
|
2773
|
-
toObject() {
|
|
2774
|
-
const data = {};
|
|
2775
|
-
if (this.success != null) {
|
|
2776
|
-
data.success = this.success;
|
|
2777
|
-
}
|
|
2778
|
-
if (this.message != null) {
|
|
2779
|
-
data.message = this.message;
|
|
2780
|
-
}
|
|
2781
|
-
if (this.error_code != null) {
|
|
2782
|
-
data.error_code = this.error_code;
|
|
2783
|
-
}
|
|
2784
|
-
return data;
|
|
2785
|
-
}
|
|
2786
|
-
serialize(w) {
|
|
2787
|
-
const writer = w || new pb_17.BinaryWriter();
|
|
2788
|
-
if (this.success != false)
|
|
2789
|
-
writer.writeBool(1, this.success);
|
|
2790
|
-
if (this.message.length)
|
|
2791
|
-
writer.writeString(2, this.message);
|
|
2792
|
-
if (this.has_error_code)
|
|
2793
|
-
writer.writeInt32(3, this.error_code);
|
|
2794
|
-
if (!w)
|
|
2795
|
-
return writer.getResultBuffer();
|
|
2796
|
-
}
|
|
2797
|
-
static deserialize(bytes) {
|
|
2798
|
-
const reader = bytes instanceof pb_17.BinaryReader ? bytes : new pb_17.BinaryReader(bytes), message = new _AckResponse();
|
|
2799
|
-
while (reader.nextField()) {
|
|
2800
|
-
if (reader.isEndGroup())
|
|
2801
|
-
break;
|
|
2802
|
-
switch (reader.getFieldNumber()) {
|
|
2803
|
-
case 1:
|
|
2804
|
-
message.success = reader.readBool();
|
|
2805
|
-
break;
|
|
2806
|
-
case 2:
|
|
2807
|
-
message.message = reader.readString();
|
|
2808
|
-
break;
|
|
2809
|
-
case 3:
|
|
2810
|
-
message.error_code = reader.readInt32();
|
|
2811
|
-
break;
|
|
2812
|
-
default:
|
|
2813
|
-
reader.skipField();
|
|
2814
|
-
}
|
|
2815
|
-
}
|
|
2816
|
-
return message;
|
|
2817
|
-
}
|
|
2818
|
-
serializeBinary() {
|
|
2819
|
-
return this.serialize();
|
|
2820
|
-
}
|
|
2821
|
-
static deserializeBinary(bytes) {
|
|
2822
|
-
return _AckResponse.deserialize(bytes);
|
|
2823
|
-
}
|
|
2824
|
-
};
|
|
2825
|
-
_one_of_decls = new WeakMap();
|
|
2826
|
-
let AckResponse = _AckResponse;
|
|
2827
|
-
observer2.AckResponse = _AckResponse;
|
|
2828
|
-
class UnimplementedTestEventCollectorService {
|
|
2829
|
-
}
|
|
2830
|
-
UnimplementedTestEventCollectorService.definition = {
|
|
2831
|
-
ReportSuiteBegin: {
|
|
2832
|
-
path: "/testsystem.v1.observer.TestEventCollector/ReportSuiteBegin",
|
|
2833
|
-
requestStream: false,
|
|
2834
|
-
responseStream: false,
|
|
2835
|
-
requestSerialize: (message) => Buffer.from(message.serialize()),
|
|
2836
|
-
requestDeserialize: (bytes) => testsystem4.v1.events.SuiteBeginEventRequest.deserialize(new Uint8Array(bytes)),
|
|
2837
|
-
responseSerialize: (message) => Buffer.from(message.serialize()),
|
|
2838
|
-
responseDeserialize: (bytes) => AckResponse.deserialize(new Uint8Array(bytes))
|
|
2839
|
-
},
|
|
2840
|
-
ReportSuiteEnd: {
|
|
2841
|
-
path: "/testsystem.v1.observer.TestEventCollector/ReportSuiteEnd",
|
|
2842
|
-
requestStream: false,
|
|
2843
|
-
responseStream: false,
|
|
2844
|
-
requestSerialize: (message) => Buffer.from(message.serialize()),
|
|
2845
|
-
requestDeserialize: (bytes) => testsystem4.v1.events.SuiteEndEventRequest.deserialize(new Uint8Array(bytes)),
|
|
2846
|
-
responseSerialize: (message) => Buffer.from(message.serialize()),
|
|
2847
|
-
responseDeserialize: (bytes) => AckResponse.deserialize(new Uint8Array(bytes))
|
|
2848
|
-
},
|
|
2849
|
-
ReportTestBegin: {
|
|
2850
|
-
path: "/testsystem.v1.observer.TestEventCollector/ReportTestBegin",
|
|
2851
|
-
requestStream: false,
|
|
2852
|
-
responseStream: false,
|
|
2853
|
-
requestSerialize: (message) => Buffer.from(message.serialize()),
|
|
2854
|
-
requestDeserialize: (bytes) => testsystem4.v1.events.TestBeginEventRequest.deserialize(new Uint8Array(bytes)),
|
|
2855
|
-
responseSerialize: (message) => Buffer.from(message.serialize()),
|
|
2856
|
-
responseDeserialize: (bytes) => AckResponse.deserialize(new Uint8Array(bytes))
|
|
2857
|
-
},
|
|
2858
|
-
ReportTestEnd: {
|
|
2859
|
-
path: "/testsystem.v1.observer.TestEventCollector/ReportTestEnd",
|
|
2860
|
-
requestStream: false,
|
|
2861
|
-
responseStream: false,
|
|
2862
|
-
requestSerialize: (message) => Buffer.from(message.serialize()),
|
|
2863
|
-
requestDeserialize: (bytes) => testsystem4.v1.events.TestEndEventRequest.deserialize(new Uint8Array(bytes)),
|
|
2864
|
-
responseSerialize: (message) => Buffer.from(message.serialize()),
|
|
2865
|
-
responseDeserialize: (bytes) => AckResponse.deserialize(new Uint8Array(bytes))
|
|
2866
|
-
},
|
|
2867
|
-
ReportStepBegin: {
|
|
2868
|
-
path: "/testsystem.v1.observer.TestEventCollector/ReportStepBegin",
|
|
2869
|
-
requestStream: false,
|
|
2870
|
-
responseStream: false,
|
|
2871
|
-
requestSerialize: (message) => Buffer.from(message.serialize()),
|
|
2872
|
-
requestDeserialize: (bytes) => testsystem4.v1.events.StepBeginEventRequest.deserialize(new Uint8Array(bytes)),
|
|
2873
|
-
responseSerialize: (message) => Buffer.from(message.serialize()),
|
|
2874
|
-
responseDeserialize: (bytes) => AckResponse.deserialize(new Uint8Array(bytes))
|
|
2875
|
-
},
|
|
2876
|
-
ReportStepEnd: {
|
|
2877
|
-
path: "/testsystem.v1.observer.TestEventCollector/ReportStepEnd",
|
|
2878
|
-
requestStream: false,
|
|
2879
|
-
responseStream: false,
|
|
2880
|
-
requestSerialize: (message) => Buffer.from(message.serialize()),
|
|
2881
|
-
requestDeserialize: (bytes) => testsystem4.v1.events.StepEndEventRequest.deserialize(new Uint8Array(bytes)),
|
|
2882
|
-
responseSerialize: (message) => Buffer.from(message.serialize()),
|
|
2883
|
-
responseDeserialize: (bytes) => AckResponse.deserialize(new Uint8Array(bytes))
|
|
2884
|
-
},
|
|
2885
|
-
ReportTestFailure: {
|
|
2886
|
-
path: "/testsystem.v1.observer.TestEventCollector/ReportTestFailure",
|
|
2887
|
-
requestStream: false,
|
|
2888
|
-
responseStream: false,
|
|
2889
|
-
requestSerialize: (message) => Buffer.from(message.serialize()),
|
|
2890
|
-
requestDeserialize: (bytes) => testsystem4.v1.events.TestFailureEventRequest.deserialize(new Uint8Array(bytes)),
|
|
2891
|
-
responseSerialize: (message) => Buffer.from(message.serialize()),
|
|
2892
|
-
responseDeserialize: (bytes) => AckResponse.deserialize(new Uint8Array(bytes))
|
|
2893
|
-
},
|
|
2894
|
-
ReportTestError: {
|
|
2895
|
-
path: "/testsystem.v1.observer.TestEventCollector/ReportTestError",
|
|
2896
|
-
requestStream: false,
|
|
2897
|
-
responseStream: false,
|
|
2898
|
-
requestSerialize: (message) => Buffer.from(message.serialize()),
|
|
2899
|
-
requestDeserialize: (bytes) => testsystem4.v1.events.TestErrorEventRequest.deserialize(new Uint8Array(bytes)),
|
|
2900
|
-
responseSerialize: (message) => Buffer.from(message.serialize()),
|
|
2901
|
-
responseDeserialize: (bytes) => AckResponse.deserialize(new Uint8Array(bytes))
|
|
2902
|
-
},
|
|
2903
|
-
ReportStdError: {
|
|
2904
|
-
path: "/testsystem.v1.observer.TestEventCollector/ReportStdError",
|
|
2905
|
-
requestStream: false,
|
|
2906
|
-
responseStream: false,
|
|
2907
|
-
requestSerialize: (message) => Buffer.from(message.serialize()),
|
|
2908
|
-
requestDeserialize: (bytes) => testsystem4.v1.events.StdErrorEventRequest.deserialize(new Uint8Array(bytes)),
|
|
2909
|
-
responseSerialize: (message) => Buffer.from(message.serialize()),
|
|
2910
|
-
responseDeserialize: (bytes) => AckResponse.deserialize(new Uint8Array(bytes))
|
|
2911
|
-
},
|
|
2912
|
-
ReportStdOutput: {
|
|
2913
|
-
path: "/testsystem.v1.observer.TestEventCollector/ReportStdOutput",
|
|
2914
|
-
requestStream: false,
|
|
2915
|
-
responseStream: false,
|
|
2916
|
-
requestSerialize: (message) => Buffer.from(message.serialize()),
|
|
2917
|
-
requestDeserialize: (bytes) => testsystem4.v1.events.StdOutputEventRequest.deserialize(new Uint8Array(bytes)),
|
|
2918
|
-
responseSerialize: (message) => Buffer.from(message.serialize()),
|
|
2919
|
-
responseDeserialize: (bytes) => AckResponse.deserialize(new Uint8Array(bytes))
|
|
2920
|
-
},
|
|
2921
|
-
Heartbeat: {
|
|
2922
|
-
path: "/testsystem.v1.observer.TestEventCollector/Heartbeat",
|
|
2923
|
-
requestStream: false,
|
|
2924
|
-
responseStream: false,
|
|
2925
|
-
requestSerialize: (message) => Buffer.from(message.serialize()),
|
|
2926
|
-
requestDeserialize: (bytes) => testsystem4.v1.events.HeartbeatEventRequest.deserialize(new Uint8Array(bytes)),
|
|
2927
|
-
responseSerialize: (message) => Buffer.from(message.serialize()),
|
|
2928
|
-
responseDeserialize: (bytes) => AckResponse.deserialize(new Uint8Array(bytes))
|
|
2929
|
-
}
|
|
2930
|
-
};
|
|
2931
|
-
observer2.UnimplementedTestEventCollectorService = UnimplementedTestEventCollectorService;
|
|
2932
|
-
class TestEventCollectorClient extends grpc_1.makeGenericClientConstructor(UnimplementedTestEventCollectorService.definition, "TestEventCollector", {}) {
|
|
2933
|
-
constructor(address, credentials, options) {
|
|
2934
|
-
super(address, credentials, options);
|
|
2935
|
-
this.ReportSuiteBegin = (message, metadata, options, callback) => {
|
|
2936
|
-
return super.ReportSuiteBegin(message, metadata, options, callback);
|
|
2937
|
-
};
|
|
2938
|
-
this.ReportSuiteEnd = (message, metadata, options, callback) => {
|
|
2939
|
-
return super.ReportSuiteEnd(message, metadata, options, callback);
|
|
2940
|
-
};
|
|
2941
|
-
this.ReportTestBegin = (message, metadata, options, callback) => {
|
|
2942
|
-
return super.ReportTestBegin(message, metadata, options, callback);
|
|
2943
|
-
};
|
|
2944
|
-
this.ReportTestEnd = (message, metadata, options, callback) => {
|
|
2945
|
-
return super.ReportTestEnd(message, metadata, options, callback);
|
|
2946
|
-
};
|
|
2947
|
-
this.ReportStepBegin = (message, metadata, options, callback) => {
|
|
2948
|
-
return super.ReportStepBegin(message, metadata, options, callback);
|
|
2949
|
-
};
|
|
2950
|
-
this.ReportStepEnd = (message, metadata, options, callback) => {
|
|
2951
|
-
return super.ReportStepEnd(message, metadata, options, callback);
|
|
2952
|
-
};
|
|
2953
|
-
this.ReportTestFailure = (message, metadata, options, callback) => {
|
|
2954
|
-
return super.ReportTestFailure(message, metadata, options, callback);
|
|
2955
|
-
};
|
|
2956
|
-
this.ReportTestError = (message, metadata, options, callback) => {
|
|
2957
|
-
return super.ReportTestError(message, metadata, options, callback);
|
|
2958
|
-
};
|
|
2959
|
-
this.ReportStdError = (message, metadata, options, callback) => {
|
|
2960
|
-
return super.ReportStdError(message, metadata, options, callback);
|
|
2961
|
-
};
|
|
2962
|
-
this.ReportStdOutput = (message, metadata, options, callback) => {
|
|
2963
|
-
return super.ReportStdOutput(message, metadata, options, callback);
|
|
2964
|
-
};
|
|
2965
|
-
this.Heartbeat = (message, metadata, options, callback) => {
|
|
2966
|
-
return super.Heartbeat(message, metadata, options, callback);
|
|
2967
|
-
};
|
|
2968
|
-
}
|
|
2969
|
-
}
|
|
2970
|
-
observer2.TestEventCollectorClient = TestEventCollectorClient;
|
|
2971
|
-
})(observer = v12.observer || (v12.observer = {}));
|
|
2972
|
-
})(v1 = testsystem7.v1 || (testsystem7.v1 = {}));
|
|
2973
|
-
})(testsystem5 || (testsystem5 = {}));
|
|
1
|
+
import {
|
|
2
|
+
testsystem as testsystem5
|
|
3
|
+
} from "./chunk-F6CKBSG3.mjs";
|
|
4
|
+
import {
|
|
5
|
+
testsystem as testsystem4
|
|
6
|
+
} from "./chunk-TJOHFA2M.mjs";
|
|
7
|
+
import {
|
|
8
|
+
testsystem as testsystem2,
|
|
9
|
+
testsystem2 as testsystem3,
|
|
10
|
+
timestamp_exports
|
|
11
|
+
} from "./chunk-4NKV5THZ.mjs";
|
|
12
|
+
import {
|
|
13
|
+
testsystem
|
|
14
|
+
} from "./chunk-VBR2HXFF.mjs";
|
|
2974
15
|
|
|
2975
16
|
// lib/index.ts
|
|
2976
17
|
var testsystem6 = Object.assign(
|