@stanterprise/protobuf 0.0.7 → 0.0.9
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/dist/index.js +2201 -444
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2197 -444
- package/dist/index.mjs.map +1 -1
- package/dist/lib/google/protobuf/duration.d.ts +33 -0
- package/dist/lib/google/protobuf/duration.d.ts.map +1 -0
- package/dist/lib/index.d.ts +8 -2
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/lib/testsystem/v1/entities/test_case.d.ts +244 -0
- package/dist/lib/testsystem/v1/entities/test_case.d.ts.map +1 -0
- package/dist/lib/testsystem/v1/entities/test_suite.d.ts +166 -0
- package/dist/lib/testsystem/v1/entities/test_suite.d.ts.map +1 -0
- package/dist/lib/testsystem/v1/events/events.d.ts +216 -72
- package/dist/lib/testsystem/v1/events/events.d.ts.map +1 -1
- package/dist/lib/testsystem/v1/observer/observer.d.ts +103 -15
- package/dist/lib/testsystem/v1/observer/observer.d.ts.map +1 -1
- package/lib/google/protobuf/duration.ts +98 -0
- package/lib/index.ts +16 -4
- package/lib/testsystem/v1/entities/test_case.ts +987 -0
- package/lib/testsystem/v1/entities/test_suite.ts +639 -0
- package/lib/testsystem/v1/events/events.ts +811 -303
- package/lib/testsystem/v1/observer/observer.ts +125 -21
- package/package.json +1 -1
- package/dist/lib/testsystem/v1/entities/entities.d.ts +0 -108
- package/dist/lib/testsystem/v1/entities/entities.d.ts.map +0 -1
- package/lib/testsystem/v1/entities/entities.ts +0 -405
|
@@ -5,15 +5,620 @@
|
|
|
5
5
|
* git: https://github.com/thesayyn/protoc-gen-ts */
|
|
6
6
|
import * as dependency_1 from "./../../../google/protobuf/timestamp";
|
|
7
7
|
import * as dependency_2 from "./../common/common";
|
|
8
|
+
import * as dependency_3 from "./../entities/test_case";
|
|
9
|
+
import * as dependency_4 from "./../entities/test_suite";
|
|
8
10
|
import * as pb_1 from "google-protobuf";
|
|
9
11
|
export namespace testsystem.v1.events {
|
|
10
|
-
export class
|
|
12
|
+
export class TestBeginEventRequest extends pb_1.Message {
|
|
13
|
+
#one_of_decls: number[][] = [];
|
|
14
|
+
constructor(data?: any[] | {
|
|
15
|
+
test_case?: dependency_3.testsystem.v1.entities.TestCaseRun;
|
|
16
|
+
}) {
|
|
17
|
+
super();
|
|
18
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
19
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
20
|
+
if ("test_case" in data && data.test_case != undefined) {
|
|
21
|
+
this.test_case = data.test_case;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
get test_case() {
|
|
26
|
+
return pb_1.Message.getWrapperField(this, dependency_3.testsystem.v1.entities.TestCaseRun, 1) as dependency_3.testsystem.v1.entities.TestCaseRun;
|
|
27
|
+
}
|
|
28
|
+
set test_case(value: dependency_3.testsystem.v1.entities.TestCaseRun) {
|
|
29
|
+
pb_1.Message.setWrapperField(this, 1, value);
|
|
30
|
+
}
|
|
31
|
+
get has_test_case() {
|
|
32
|
+
return pb_1.Message.getField(this, 1) != null;
|
|
33
|
+
}
|
|
34
|
+
static fromObject(data: {
|
|
35
|
+
test_case?: ReturnType<typeof dependency_3.testsystem.v1.entities.TestCaseRun.prototype.toObject>;
|
|
36
|
+
}): TestBeginEventRequest {
|
|
37
|
+
const message = new TestBeginEventRequest({});
|
|
38
|
+
if (data.test_case != null) {
|
|
39
|
+
message.test_case = dependency_3.testsystem.v1.entities.TestCaseRun.fromObject(data.test_case);
|
|
40
|
+
}
|
|
41
|
+
return message;
|
|
42
|
+
}
|
|
43
|
+
toObject() {
|
|
44
|
+
const data: {
|
|
45
|
+
test_case?: ReturnType<typeof dependency_3.testsystem.v1.entities.TestCaseRun.prototype.toObject>;
|
|
46
|
+
} = {};
|
|
47
|
+
if (this.test_case != null) {
|
|
48
|
+
data.test_case = this.test_case.toObject();
|
|
49
|
+
}
|
|
50
|
+
return data;
|
|
51
|
+
}
|
|
52
|
+
serialize(): Uint8Array;
|
|
53
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
54
|
+
serialize(w?: pb_1.BinaryWriter): Uint8Array | void {
|
|
55
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
56
|
+
if (this.has_test_case)
|
|
57
|
+
writer.writeMessage(1, this.test_case, () => this.test_case.serialize(writer));
|
|
58
|
+
if (!w)
|
|
59
|
+
return writer.getResultBuffer();
|
|
60
|
+
}
|
|
61
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): TestBeginEventRequest {
|
|
62
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new TestBeginEventRequest();
|
|
63
|
+
while (reader.nextField()) {
|
|
64
|
+
if (reader.isEndGroup())
|
|
65
|
+
break;
|
|
66
|
+
switch (reader.getFieldNumber()) {
|
|
67
|
+
case 1:
|
|
68
|
+
reader.readMessage(message.test_case, () => message.test_case = dependency_3.testsystem.v1.entities.TestCaseRun.deserialize(reader));
|
|
69
|
+
break;
|
|
70
|
+
default: reader.skipField();
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
return message;
|
|
74
|
+
}
|
|
75
|
+
serializeBinary(): Uint8Array {
|
|
76
|
+
return this.serialize();
|
|
77
|
+
}
|
|
78
|
+
static deserializeBinary(bytes: Uint8Array): TestBeginEventRequest {
|
|
79
|
+
return TestBeginEventRequest.deserialize(bytes);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
export class TestEndEventRequest extends pb_1.Message {
|
|
83
|
+
#one_of_decls: number[][] = [];
|
|
84
|
+
constructor(data?: any[] | {
|
|
85
|
+
test_case?: dependency_3.testsystem.v1.entities.TestCaseRun;
|
|
86
|
+
}) {
|
|
87
|
+
super();
|
|
88
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
89
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
90
|
+
if ("test_case" in data && data.test_case != undefined) {
|
|
91
|
+
this.test_case = data.test_case;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
get test_case() {
|
|
96
|
+
return pb_1.Message.getWrapperField(this, dependency_3.testsystem.v1.entities.TestCaseRun, 1) as dependency_3.testsystem.v1.entities.TestCaseRun;
|
|
97
|
+
}
|
|
98
|
+
set test_case(value: dependency_3.testsystem.v1.entities.TestCaseRun) {
|
|
99
|
+
pb_1.Message.setWrapperField(this, 1, value);
|
|
100
|
+
}
|
|
101
|
+
get has_test_case() {
|
|
102
|
+
return pb_1.Message.getField(this, 1) != null;
|
|
103
|
+
}
|
|
104
|
+
static fromObject(data: {
|
|
105
|
+
test_case?: ReturnType<typeof dependency_3.testsystem.v1.entities.TestCaseRun.prototype.toObject>;
|
|
106
|
+
}): TestEndEventRequest {
|
|
107
|
+
const message = new TestEndEventRequest({});
|
|
108
|
+
if (data.test_case != null) {
|
|
109
|
+
message.test_case = dependency_3.testsystem.v1.entities.TestCaseRun.fromObject(data.test_case);
|
|
110
|
+
}
|
|
111
|
+
return message;
|
|
112
|
+
}
|
|
113
|
+
toObject() {
|
|
114
|
+
const data: {
|
|
115
|
+
test_case?: ReturnType<typeof dependency_3.testsystem.v1.entities.TestCaseRun.prototype.toObject>;
|
|
116
|
+
} = {};
|
|
117
|
+
if (this.test_case != null) {
|
|
118
|
+
data.test_case = this.test_case.toObject();
|
|
119
|
+
}
|
|
120
|
+
return data;
|
|
121
|
+
}
|
|
122
|
+
serialize(): Uint8Array;
|
|
123
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
124
|
+
serialize(w?: pb_1.BinaryWriter): Uint8Array | void {
|
|
125
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
126
|
+
if (this.has_test_case)
|
|
127
|
+
writer.writeMessage(1, this.test_case, () => this.test_case.serialize(writer));
|
|
128
|
+
if (!w)
|
|
129
|
+
return writer.getResultBuffer();
|
|
130
|
+
}
|
|
131
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): TestEndEventRequest {
|
|
132
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new TestEndEventRequest();
|
|
133
|
+
while (reader.nextField()) {
|
|
134
|
+
if (reader.isEndGroup())
|
|
135
|
+
break;
|
|
136
|
+
switch (reader.getFieldNumber()) {
|
|
137
|
+
case 1:
|
|
138
|
+
reader.readMessage(message.test_case, () => message.test_case = dependency_3.testsystem.v1.entities.TestCaseRun.deserialize(reader));
|
|
139
|
+
break;
|
|
140
|
+
default: reader.skipField();
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
return message;
|
|
144
|
+
}
|
|
145
|
+
serializeBinary(): Uint8Array {
|
|
146
|
+
return this.serialize();
|
|
147
|
+
}
|
|
148
|
+
static deserializeBinary(bytes: Uint8Array): TestEndEventRequest {
|
|
149
|
+
return TestEndEventRequest.deserialize(bytes);
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
export class StepBeginEventRequest extends pb_1.Message {
|
|
153
|
+
#one_of_decls: number[][] = [];
|
|
154
|
+
constructor(data?: any[] | {
|
|
155
|
+
step?: dependency_3.testsystem.v1.entities.StepRun;
|
|
156
|
+
}) {
|
|
157
|
+
super();
|
|
158
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
159
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
160
|
+
if ("step" in data && data.step != undefined) {
|
|
161
|
+
this.step = data.step;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
get step() {
|
|
166
|
+
return pb_1.Message.getWrapperField(this, dependency_3.testsystem.v1.entities.StepRun, 1) as dependency_3.testsystem.v1.entities.StepRun;
|
|
167
|
+
}
|
|
168
|
+
set step(value: dependency_3.testsystem.v1.entities.StepRun) {
|
|
169
|
+
pb_1.Message.setWrapperField(this, 1, value);
|
|
170
|
+
}
|
|
171
|
+
get has_step() {
|
|
172
|
+
return pb_1.Message.getField(this, 1) != null;
|
|
173
|
+
}
|
|
174
|
+
static fromObject(data: {
|
|
175
|
+
step?: ReturnType<typeof dependency_3.testsystem.v1.entities.StepRun.prototype.toObject>;
|
|
176
|
+
}): StepBeginEventRequest {
|
|
177
|
+
const message = new StepBeginEventRequest({});
|
|
178
|
+
if (data.step != null) {
|
|
179
|
+
message.step = dependency_3.testsystem.v1.entities.StepRun.fromObject(data.step);
|
|
180
|
+
}
|
|
181
|
+
return message;
|
|
182
|
+
}
|
|
183
|
+
toObject() {
|
|
184
|
+
const data: {
|
|
185
|
+
step?: ReturnType<typeof dependency_3.testsystem.v1.entities.StepRun.prototype.toObject>;
|
|
186
|
+
} = {};
|
|
187
|
+
if (this.step != null) {
|
|
188
|
+
data.step = this.step.toObject();
|
|
189
|
+
}
|
|
190
|
+
return data;
|
|
191
|
+
}
|
|
192
|
+
serialize(): Uint8Array;
|
|
193
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
194
|
+
serialize(w?: pb_1.BinaryWriter): Uint8Array | void {
|
|
195
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
196
|
+
if (this.has_step)
|
|
197
|
+
writer.writeMessage(1, this.step, () => this.step.serialize(writer));
|
|
198
|
+
if (!w)
|
|
199
|
+
return writer.getResultBuffer();
|
|
200
|
+
}
|
|
201
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): StepBeginEventRequest {
|
|
202
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new StepBeginEventRequest();
|
|
203
|
+
while (reader.nextField()) {
|
|
204
|
+
if (reader.isEndGroup())
|
|
205
|
+
break;
|
|
206
|
+
switch (reader.getFieldNumber()) {
|
|
207
|
+
case 1:
|
|
208
|
+
reader.readMessage(message.step, () => message.step = dependency_3.testsystem.v1.entities.StepRun.deserialize(reader));
|
|
209
|
+
break;
|
|
210
|
+
default: reader.skipField();
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
return message;
|
|
214
|
+
}
|
|
215
|
+
serializeBinary(): Uint8Array {
|
|
216
|
+
return this.serialize();
|
|
217
|
+
}
|
|
218
|
+
static deserializeBinary(bytes: Uint8Array): StepBeginEventRequest {
|
|
219
|
+
return StepBeginEventRequest.deserialize(bytes);
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
export class StepEndEventRequest extends pb_1.Message {
|
|
223
|
+
#one_of_decls: number[][] = [];
|
|
224
|
+
constructor(data?: any[] | {
|
|
225
|
+
step?: dependency_3.testsystem.v1.entities.StepRun;
|
|
226
|
+
}) {
|
|
227
|
+
super();
|
|
228
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
229
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
230
|
+
if ("step" in data && data.step != undefined) {
|
|
231
|
+
this.step = data.step;
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
get step() {
|
|
236
|
+
return pb_1.Message.getWrapperField(this, dependency_3.testsystem.v1.entities.StepRun, 1) as dependency_3.testsystem.v1.entities.StepRun;
|
|
237
|
+
}
|
|
238
|
+
set step(value: dependency_3.testsystem.v1.entities.StepRun) {
|
|
239
|
+
pb_1.Message.setWrapperField(this, 1, value);
|
|
240
|
+
}
|
|
241
|
+
get has_step() {
|
|
242
|
+
return pb_1.Message.getField(this, 1) != null;
|
|
243
|
+
}
|
|
244
|
+
static fromObject(data: {
|
|
245
|
+
step?: ReturnType<typeof dependency_3.testsystem.v1.entities.StepRun.prototype.toObject>;
|
|
246
|
+
}): StepEndEventRequest {
|
|
247
|
+
const message = new StepEndEventRequest({});
|
|
248
|
+
if (data.step != null) {
|
|
249
|
+
message.step = dependency_3.testsystem.v1.entities.StepRun.fromObject(data.step);
|
|
250
|
+
}
|
|
251
|
+
return message;
|
|
252
|
+
}
|
|
253
|
+
toObject() {
|
|
254
|
+
const data: {
|
|
255
|
+
step?: ReturnType<typeof dependency_3.testsystem.v1.entities.StepRun.prototype.toObject>;
|
|
256
|
+
} = {};
|
|
257
|
+
if (this.step != null) {
|
|
258
|
+
data.step = this.step.toObject();
|
|
259
|
+
}
|
|
260
|
+
return data;
|
|
261
|
+
}
|
|
262
|
+
serialize(): Uint8Array;
|
|
263
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
264
|
+
serialize(w?: pb_1.BinaryWriter): Uint8Array | void {
|
|
265
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
266
|
+
if (this.has_step)
|
|
267
|
+
writer.writeMessage(1, this.step, () => this.step.serialize(writer));
|
|
268
|
+
if (!w)
|
|
269
|
+
return writer.getResultBuffer();
|
|
270
|
+
}
|
|
271
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): StepEndEventRequest {
|
|
272
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new StepEndEventRequest();
|
|
273
|
+
while (reader.nextField()) {
|
|
274
|
+
if (reader.isEndGroup())
|
|
275
|
+
break;
|
|
276
|
+
switch (reader.getFieldNumber()) {
|
|
277
|
+
case 1:
|
|
278
|
+
reader.readMessage(message.step, () => message.step = dependency_3.testsystem.v1.entities.StepRun.deserialize(reader));
|
|
279
|
+
break;
|
|
280
|
+
default: reader.skipField();
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
return message;
|
|
284
|
+
}
|
|
285
|
+
serializeBinary(): Uint8Array {
|
|
286
|
+
return this.serialize();
|
|
287
|
+
}
|
|
288
|
+
static deserializeBinary(bytes: Uint8Array): StepEndEventRequest {
|
|
289
|
+
return StepEndEventRequest.deserialize(bytes);
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
export class TestFailureEventRequest extends pb_1.Message {
|
|
293
|
+
#one_of_decls: number[][] = [];
|
|
294
|
+
constructor(data?: any[] | {
|
|
295
|
+
test_id?: string;
|
|
296
|
+
failure_message?: string;
|
|
297
|
+
stack_trace?: string;
|
|
298
|
+
timestamp?: dependency_1.google.protobuf.Timestamp;
|
|
299
|
+
attachments?: dependency_2.testsystem.v1.common.Attachment[];
|
|
300
|
+
}) {
|
|
301
|
+
super();
|
|
302
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [5], this.#one_of_decls);
|
|
303
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
304
|
+
if ("test_id" in data && data.test_id != undefined) {
|
|
305
|
+
this.test_id = data.test_id;
|
|
306
|
+
}
|
|
307
|
+
if ("failure_message" in data && data.failure_message != undefined) {
|
|
308
|
+
this.failure_message = data.failure_message;
|
|
309
|
+
}
|
|
310
|
+
if ("stack_trace" in data && data.stack_trace != undefined) {
|
|
311
|
+
this.stack_trace = data.stack_trace;
|
|
312
|
+
}
|
|
313
|
+
if ("timestamp" in data && data.timestamp != undefined) {
|
|
314
|
+
this.timestamp = data.timestamp;
|
|
315
|
+
}
|
|
316
|
+
if ("attachments" in data && data.attachments != undefined) {
|
|
317
|
+
this.attachments = data.attachments;
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
get test_id() {
|
|
322
|
+
return pb_1.Message.getFieldWithDefault(this, 1, "") as string;
|
|
323
|
+
}
|
|
324
|
+
set test_id(value: string) {
|
|
325
|
+
pb_1.Message.setField(this, 1, value);
|
|
326
|
+
}
|
|
327
|
+
get failure_message() {
|
|
328
|
+
return pb_1.Message.getFieldWithDefault(this, 2, "") as string;
|
|
329
|
+
}
|
|
330
|
+
set failure_message(value: string) {
|
|
331
|
+
pb_1.Message.setField(this, 2, value);
|
|
332
|
+
}
|
|
333
|
+
get stack_trace() {
|
|
334
|
+
return pb_1.Message.getFieldWithDefault(this, 3, "") as string;
|
|
335
|
+
}
|
|
336
|
+
set stack_trace(value: string) {
|
|
337
|
+
pb_1.Message.setField(this, 3, value);
|
|
338
|
+
}
|
|
339
|
+
get timestamp() {
|
|
340
|
+
return pb_1.Message.getWrapperField(this, dependency_1.google.protobuf.Timestamp, 4) as dependency_1.google.protobuf.Timestamp;
|
|
341
|
+
}
|
|
342
|
+
set timestamp(value: dependency_1.google.protobuf.Timestamp) {
|
|
343
|
+
pb_1.Message.setWrapperField(this, 4, value);
|
|
344
|
+
}
|
|
345
|
+
get has_timestamp() {
|
|
346
|
+
return pb_1.Message.getField(this, 4) != null;
|
|
347
|
+
}
|
|
348
|
+
get attachments() {
|
|
349
|
+
return pb_1.Message.getRepeatedWrapperField(this, dependency_2.testsystem.v1.common.Attachment, 5) as dependency_2.testsystem.v1.common.Attachment[];
|
|
350
|
+
}
|
|
351
|
+
set attachments(value: dependency_2.testsystem.v1.common.Attachment[]) {
|
|
352
|
+
pb_1.Message.setRepeatedWrapperField(this, 5, value);
|
|
353
|
+
}
|
|
354
|
+
static fromObject(data: {
|
|
355
|
+
test_id?: string;
|
|
356
|
+
failure_message?: string;
|
|
357
|
+
stack_trace?: string;
|
|
358
|
+
timestamp?: ReturnType<typeof dependency_1.google.protobuf.Timestamp.prototype.toObject>;
|
|
359
|
+
attachments?: ReturnType<typeof dependency_2.testsystem.v1.common.Attachment.prototype.toObject>[];
|
|
360
|
+
}): TestFailureEventRequest {
|
|
361
|
+
const message = new TestFailureEventRequest({});
|
|
362
|
+
if (data.test_id != null) {
|
|
363
|
+
message.test_id = data.test_id;
|
|
364
|
+
}
|
|
365
|
+
if (data.failure_message != null) {
|
|
366
|
+
message.failure_message = data.failure_message;
|
|
367
|
+
}
|
|
368
|
+
if (data.stack_trace != null) {
|
|
369
|
+
message.stack_trace = data.stack_trace;
|
|
370
|
+
}
|
|
371
|
+
if (data.timestamp != null) {
|
|
372
|
+
message.timestamp = dependency_1.google.protobuf.Timestamp.fromObject(data.timestamp);
|
|
373
|
+
}
|
|
374
|
+
if (data.attachments != null) {
|
|
375
|
+
message.attachments = data.attachments.map(item => dependency_2.testsystem.v1.common.Attachment.fromObject(item));
|
|
376
|
+
}
|
|
377
|
+
return message;
|
|
378
|
+
}
|
|
379
|
+
toObject() {
|
|
380
|
+
const data: {
|
|
381
|
+
test_id?: string;
|
|
382
|
+
failure_message?: string;
|
|
383
|
+
stack_trace?: string;
|
|
384
|
+
timestamp?: ReturnType<typeof dependency_1.google.protobuf.Timestamp.prototype.toObject>;
|
|
385
|
+
attachments?: ReturnType<typeof dependency_2.testsystem.v1.common.Attachment.prototype.toObject>[];
|
|
386
|
+
} = {};
|
|
387
|
+
if (this.test_id != null) {
|
|
388
|
+
data.test_id = this.test_id;
|
|
389
|
+
}
|
|
390
|
+
if (this.failure_message != null) {
|
|
391
|
+
data.failure_message = this.failure_message;
|
|
392
|
+
}
|
|
393
|
+
if (this.stack_trace != null) {
|
|
394
|
+
data.stack_trace = this.stack_trace;
|
|
395
|
+
}
|
|
396
|
+
if (this.timestamp != null) {
|
|
397
|
+
data.timestamp = this.timestamp.toObject();
|
|
398
|
+
}
|
|
399
|
+
if (this.attachments != null) {
|
|
400
|
+
data.attachments = this.attachments.map((item: dependency_2.testsystem.v1.common.Attachment) => item.toObject());
|
|
401
|
+
}
|
|
402
|
+
return data;
|
|
403
|
+
}
|
|
404
|
+
serialize(): Uint8Array;
|
|
405
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
406
|
+
serialize(w?: pb_1.BinaryWriter): Uint8Array | void {
|
|
407
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
408
|
+
if (this.test_id.length)
|
|
409
|
+
writer.writeString(1, this.test_id);
|
|
410
|
+
if (this.failure_message.length)
|
|
411
|
+
writer.writeString(2, this.failure_message);
|
|
412
|
+
if (this.stack_trace.length)
|
|
413
|
+
writer.writeString(3, this.stack_trace);
|
|
414
|
+
if (this.has_timestamp)
|
|
415
|
+
writer.writeMessage(4, this.timestamp, () => this.timestamp.serialize(writer));
|
|
416
|
+
if (this.attachments.length)
|
|
417
|
+
writer.writeRepeatedMessage(5, this.attachments, (item: dependency_2.testsystem.v1.common.Attachment) => item.serialize(writer));
|
|
418
|
+
if (!w)
|
|
419
|
+
return writer.getResultBuffer();
|
|
420
|
+
}
|
|
421
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): TestFailureEventRequest {
|
|
422
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new TestFailureEventRequest();
|
|
423
|
+
while (reader.nextField()) {
|
|
424
|
+
if (reader.isEndGroup())
|
|
425
|
+
break;
|
|
426
|
+
switch (reader.getFieldNumber()) {
|
|
427
|
+
case 1:
|
|
428
|
+
message.test_id = reader.readString();
|
|
429
|
+
break;
|
|
430
|
+
case 2:
|
|
431
|
+
message.failure_message = reader.readString();
|
|
432
|
+
break;
|
|
433
|
+
case 3:
|
|
434
|
+
message.stack_trace = reader.readString();
|
|
435
|
+
break;
|
|
436
|
+
case 4:
|
|
437
|
+
reader.readMessage(message.timestamp, () => message.timestamp = dependency_1.google.protobuf.Timestamp.deserialize(reader));
|
|
438
|
+
break;
|
|
439
|
+
case 5:
|
|
440
|
+
reader.readMessage(message.attachments, () => pb_1.Message.addToRepeatedWrapperField(message, 5, dependency_2.testsystem.v1.common.Attachment.deserialize(reader), dependency_2.testsystem.v1.common.Attachment));
|
|
441
|
+
break;
|
|
442
|
+
default: reader.skipField();
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
return message;
|
|
446
|
+
}
|
|
447
|
+
serializeBinary(): Uint8Array {
|
|
448
|
+
return this.serialize();
|
|
449
|
+
}
|
|
450
|
+
static deserializeBinary(bytes: Uint8Array): TestFailureEventRequest {
|
|
451
|
+
return TestFailureEventRequest.deserialize(bytes);
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
export class TestErrorEventRequest extends pb_1.Message {
|
|
455
|
+
#one_of_decls: number[][] = [];
|
|
456
|
+
constructor(data?: any[] | {
|
|
457
|
+
test_id?: string;
|
|
458
|
+
error_message?: string;
|
|
459
|
+
stack_trace?: string;
|
|
460
|
+
timestamp?: dependency_1.google.protobuf.Timestamp;
|
|
461
|
+
attachments?: dependency_2.testsystem.v1.common.Attachment[];
|
|
462
|
+
}) {
|
|
463
|
+
super();
|
|
464
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [5], this.#one_of_decls);
|
|
465
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
466
|
+
if ("test_id" in data && data.test_id != undefined) {
|
|
467
|
+
this.test_id = data.test_id;
|
|
468
|
+
}
|
|
469
|
+
if ("error_message" in data && data.error_message != undefined) {
|
|
470
|
+
this.error_message = data.error_message;
|
|
471
|
+
}
|
|
472
|
+
if ("stack_trace" in data && data.stack_trace != undefined) {
|
|
473
|
+
this.stack_trace = data.stack_trace;
|
|
474
|
+
}
|
|
475
|
+
if ("timestamp" in data && data.timestamp != undefined) {
|
|
476
|
+
this.timestamp = data.timestamp;
|
|
477
|
+
}
|
|
478
|
+
if ("attachments" in data && data.attachments != undefined) {
|
|
479
|
+
this.attachments = data.attachments;
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
get test_id() {
|
|
484
|
+
return pb_1.Message.getFieldWithDefault(this, 1, "") as string;
|
|
485
|
+
}
|
|
486
|
+
set test_id(value: string) {
|
|
487
|
+
pb_1.Message.setField(this, 1, value);
|
|
488
|
+
}
|
|
489
|
+
get error_message() {
|
|
490
|
+
return pb_1.Message.getFieldWithDefault(this, 2, "") as string;
|
|
491
|
+
}
|
|
492
|
+
set error_message(value: string) {
|
|
493
|
+
pb_1.Message.setField(this, 2, value);
|
|
494
|
+
}
|
|
495
|
+
get stack_trace() {
|
|
496
|
+
return pb_1.Message.getFieldWithDefault(this, 3, "") as string;
|
|
497
|
+
}
|
|
498
|
+
set stack_trace(value: string) {
|
|
499
|
+
pb_1.Message.setField(this, 3, value);
|
|
500
|
+
}
|
|
501
|
+
get timestamp() {
|
|
502
|
+
return pb_1.Message.getWrapperField(this, dependency_1.google.protobuf.Timestamp, 4) as dependency_1.google.protobuf.Timestamp;
|
|
503
|
+
}
|
|
504
|
+
set timestamp(value: dependency_1.google.protobuf.Timestamp) {
|
|
505
|
+
pb_1.Message.setWrapperField(this, 4, value);
|
|
506
|
+
}
|
|
507
|
+
get has_timestamp() {
|
|
508
|
+
return pb_1.Message.getField(this, 4) != null;
|
|
509
|
+
}
|
|
510
|
+
get attachments() {
|
|
511
|
+
return pb_1.Message.getRepeatedWrapperField(this, dependency_2.testsystem.v1.common.Attachment, 5) as dependency_2.testsystem.v1.common.Attachment[];
|
|
512
|
+
}
|
|
513
|
+
set attachments(value: dependency_2.testsystem.v1.common.Attachment[]) {
|
|
514
|
+
pb_1.Message.setRepeatedWrapperField(this, 5, value);
|
|
515
|
+
}
|
|
516
|
+
static fromObject(data: {
|
|
517
|
+
test_id?: string;
|
|
518
|
+
error_message?: string;
|
|
519
|
+
stack_trace?: string;
|
|
520
|
+
timestamp?: ReturnType<typeof dependency_1.google.protobuf.Timestamp.prototype.toObject>;
|
|
521
|
+
attachments?: ReturnType<typeof dependency_2.testsystem.v1.common.Attachment.prototype.toObject>[];
|
|
522
|
+
}): TestErrorEventRequest {
|
|
523
|
+
const message = new TestErrorEventRequest({});
|
|
524
|
+
if (data.test_id != null) {
|
|
525
|
+
message.test_id = data.test_id;
|
|
526
|
+
}
|
|
527
|
+
if (data.error_message != null) {
|
|
528
|
+
message.error_message = data.error_message;
|
|
529
|
+
}
|
|
530
|
+
if (data.stack_trace != null) {
|
|
531
|
+
message.stack_trace = data.stack_trace;
|
|
532
|
+
}
|
|
533
|
+
if (data.timestamp != null) {
|
|
534
|
+
message.timestamp = dependency_1.google.protobuf.Timestamp.fromObject(data.timestamp);
|
|
535
|
+
}
|
|
536
|
+
if (data.attachments != null) {
|
|
537
|
+
message.attachments = data.attachments.map(item => dependency_2.testsystem.v1.common.Attachment.fromObject(item));
|
|
538
|
+
}
|
|
539
|
+
return message;
|
|
540
|
+
}
|
|
541
|
+
toObject() {
|
|
542
|
+
const data: {
|
|
543
|
+
test_id?: string;
|
|
544
|
+
error_message?: string;
|
|
545
|
+
stack_trace?: string;
|
|
546
|
+
timestamp?: ReturnType<typeof dependency_1.google.protobuf.Timestamp.prototype.toObject>;
|
|
547
|
+
attachments?: ReturnType<typeof dependency_2.testsystem.v1.common.Attachment.prototype.toObject>[];
|
|
548
|
+
} = {};
|
|
549
|
+
if (this.test_id != null) {
|
|
550
|
+
data.test_id = this.test_id;
|
|
551
|
+
}
|
|
552
|
+
if (this.error_message != null) {
|
|
553
|
+
data.error_message = this.error_message;
|
|
554
|
+
}
|
|
555
|
+
if (this.stack_trace != null) {
|
|
556
|
+
data.stack_trace = this.stack_trace;
|
|
557
|
+
}
|
|
558
|
+
if (this.timestamp != null) {
|
|
559
|
+
data.timestamp = this.timestamp.toObject();
|
|
560
|
+
}
|
|
561
|
+
if (this.attachments != null) {
|
|
562
|
+
data.attachments = this.attachments.map((item: dependency_2.testsystem.v1.common.Attachment) => item.toObject());
|
|
563
|
+
}
|
|
564
|
+
return data;
|
|
565
|
+
}
|
|
566
|
+
serialize(): Uint8Array;
|
|
567
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
568
|
+
serialize(w?: pb_1.BinaryWriter): Uint8Array | void {
|
|
569
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
570
|
+
if (this.test_id.length)
|
|
571
|
+
writer.writeString(1, this.test_id);
|
|
572
|
+
if (this.error_message.length)
|
|
573
|
+
writer.writeString(2, this.error_message);
|
|
574
|
+
if (this.stack_trace.length)
|
|
575
|
+
writer.writeString(3, this.stack_trace);
|
|
576
|
+
if (this.has_timestamp)
|
|
577
|
+
writer.writeMessage(4, this.timestamp, () => this.timestamp.serialize(writer));
|
|
578
|
+
if (this.attachments.length)
|
|
579
|
+
writer.writeRepeatedMessage(5, this.attachments, (item: dependency_2.testsystem.v1.common.Attachment) => item.serialize(writer));
|
|
580
|
+
if (!w)
|
|
581
|
+
return writer.getResultBuffer();
|
|
582
|
+
}
|
|
583
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): TestErrorEventRequest {
|
|
584
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new TestErrorEventRequest();
|
|
585
|
+
while (reader.nextField()) {
|
|
586
|
+
if (reader.isEndGroup())
|
|
587
|
+
break;
|
|
588
|
+
switch (reader.getFieldNumber()) {
|
|
589
|
+
case 1:
|
|
590
|
+
message.test_id = reader.readString();
|
|
591
|
+
break;
|
|
592
|
+
case 2:
|
|
593
|
+
message.error_message = reader.readString();
|
|
594
|
+
break;
|
|
595
|
+
case 3:
|
|
596
|
+
message.stack_trace = reader.readString();
|
|
597
|
+
break;
|
|
598
|
+
case 4:
|
|
599
|
+
reader.readMessage(message.timestamp, () => message.timestamp = dependency_1.google.protobuf.Timestamp.deserialize(reader));
|
|
600
|
+
break;
|
|
601
|
+
case 5:
|
|
602
|
+
reader.readMessage(message.attachments, () => pb_1.Message.addToRepeatedWrapperField(message, 5, dependency_2.testsystem.v1.common.Attachment.deserialize(reader), dependency_2.testsystem.v1.common.Attachment));
|
|
603
|
+
break;
|
|
604
|
+
default: reader.skipField();
|
|
605
|
+
}
|
|
606
|
+
}
|
|
607
|
+
return message;
|
|
608
|
+
}
|
|
609
|
+
serializeBinary(): Uint8Array {
|
|
610
|
+
return this.serialize();
|
|
611
|
+
}
|
|
612
|
+
static deserializeBinary(bytes: Uint8Array): TestErrorEventRequest {
|
|
613
|
+
return TestErrorEventRequest.deserialize(bytes);
|
|
614
|
+
}
|
|
615
|
+
}
|
|
616
|
+
export class StdErrorEventRequest extends pb_1.Message {
|
|
11
617
|
#one_of_decls: number[][] = [];
|
|
12
618
|
constructor(data?: any[] | {
|
|
13
619
|
test_id?: string;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
metadata?: Map<string, string>;
|
|
620
|
+
message?: string;
|
|
621
|
+
timestamp?: dependency_1.google.protobuf.Timestamp;
|
|
17
622
|
}) {
|
|
18
623
|
super();
|
|
19
624
|
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
@@ -21,18 +626,13 @@ export namespace testsystem.v1.events {
|
|
|
21
626
|
if ("test_id" in data && data.test_id != undefined) {
|
|
22
627
|
this.test_id = data.test_id;
|
|
23
628
|
}
|
|
24
|
-
if ("
|
|
25
|
-
this.
|
|
26
|
-
}
|
|
27
|
-
if ("start_time" in data && data.start_time != undefined) {
|
|
28
|
-
this.start_time = data.start_time;
|
|
629
|
+
if ("message" in data && data.message != undefined) {
|
|
630
|
+
this.message = data.message;
|
|
29
631
|
}
|
|
30
|
-
if ("
|
|
31
|
-
this.
|
|
632
|
+
if ("timestamp" in data && data.timestamp != undefined) {
|
|
633
|
+
this.timestamp = data.timestamp;
|
|
32
634
|
}
|
|
33
635
|
}
|
|
34
|
-
if (!this.metadata)
|
|
35
|
-
this.metadata = new Map();
|
|
36
636
|
}
|
|
37
637
|
get test_id() {
|
|
38
638
|
return pb_1.Message.getFieldWithDefault(this, 1, "") as string;
|
|
@@ -40,70 +640,52 @@ export namespace testsystem.v1.events {
|
|
|
40
640
|
set test_id(value: string) {
|
|
41
641
|
pb_1.Message.setField(this, 1, value);
|
|
42
642
|
}
|
|
43
|
-
get
|
|
643
|
+
get message() {
|
|
44
644
|
return pb_1.Message.getFieldWithDefault(this, 2, "") as string;
|
|
45
645
|
}
|
|
46
|
-
set
|
|
646
|
+
set message(value: string) {
|
|
47
647
|
pb_1.Message.setField(this, 2, value);
|
|
48
648
|
}
|
|
49
|
-
get
|
|
649
|
+
get timestamp() {
|
|
50
650
|
return pb_1.Message.getWrapperField(this, dependency_1.google.protobuf.Timestamp, 3) as dependency_1.google.protobuf.Timestamp;
|
|
51
651
|
}
|
|
52
|
-
set
|
|
652
|
+
set timestamp(value: dependency_1.google.protobuf.Timestamp) {
|
|
53
653
|
pb_1.Message.setWrapperField(this, 3, value);
|
|
54
654
|
}
|
|
55
|
-
get
|
|
655
|
+
get has_timestamp() {
|
|
56
656
|
return pb_1.Message.getField(this, 3) != null;
|
|
57
657
|
}
|
|
58
|
-
get metadata() {
|
|
59
|
-
return pb_1.Message.getField(this, 4) as any as Map<string, string>;
|
|
60
|
-
}
|
|
61
|
-
set metadata(value: Map<string, string>) {
|
|
62
|
-
pb_1.Message.setField(this, 4, value as any);
|
|
63
|
-
}
|
|
64
658
|
static fromObject(data: {
|
|
65
659
|
test_id?: string;
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
};
|
|
71
|
-
}): TestStartEventRequest {
|
|
72
|
-
const message = new TestStartEventRequest({});
|
|
660
|
+
message?: string;
|
|
661
|
+
timestamp?: ReturnType<typeof dependency_1.google.protobuf.Timestamp.prototype.toObject>;
|
|
662
|
+
}): StdErrorEventRequest {
|
|
663
|
+
const message = new StdErrorEventRequest({});
|
|
73
664
|
if (data.test_id != null) {
|
|
74
665
|
message.test_id = data.test_id;
|
|
75
666
|
}
|
|
76
|
-
if (data.
|
|
77
|
-
message.
|
|
667
|
+
if (data.message != null) {
|
|
668
|
+
message.message = data.message;
|
|
78
669
|
}
|
|
79
|
-
if (data.
|
|
80
|
-
message.
|
|
81
|
-
}
|
|
82
|
-
if (typeof data.metadata == "object") {
|
|
83
|
-
message.metadata = new Map(Object.entries(data.metadata));
|
|
670
|
+
if (data.timestamp != null) {
|
|
671
|
+
message.timestamp = dependency_1.google.protobuf.Timestamp.fromObject(data.timestamp);
|
|
84
672
|
}
|
|
85
673
|
return message;
|
|
86
674
|
}
|
|
87
675
|
toObject() {
|
|
88
676
|
const data: {
|
|
89
677
|
test_id?: string;
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
metadata?: {
|
|
93
|
-
[key: string]: string;
|
|
94
|
-
};
|
|
678
|
+
message?: string;
|
|
679
|
+
timestamp?: ReturnType<typeof dependency_1.google.protobuf.Timestamp.prototype.toObject>;
|
|
95
680
|
} = {};
|
|
96
681
|
if (this.test_id != null) {
|
|
97
682
|
data.test_id = this.test_id;
|
|
98
683
|
}
|
|
99
|
-
if (this.
|
|
100
|
-
data.
|
|
684
|
+
if (this.message != null) {
|
|
685
|
+
data.message = this.message;
|
|
101
686
|
}
|
|
102
|
-
if (this.
|
|
103
|
-
data.
|
|
104
|
-
}
|
|
105
|
-
if (this.metadata != null) {
|
|
106
|
-
data.metadata = (Object.fromEntries)(this.metadata);
|
|
687
|
+
if (this.timestamp != null) {
|
|
688
|
+
data.timestamp = this.timestamp.toObject();
|
|
107
689
|
}
|
|
108
690
|
return data;
|
|
109
691
|
}
|
|
@@ -113,21 +695,15 @@ export namespace testsystem.v1.events {
|
|
|
113
695
|
const writer = w || new pb_1.BinaryWriter();
|
|
114
696
|
if (this.test_id.length)
|
|
115
697
|
writer.writeString(1, this.test_id);
|
|
116
|
-
if (this.
|
|
117
|
-
writer.writeString(2, this.
|
|
118
|
-
if (this.
|
|
119
|
-
writer.writeMessage(3, this.
|
|
120
|
-
for (const [key, value] of this.metadata) {
|
|
121
|
-
writer.writeMessage(4, this.metadata, () => {
|
|
122
|
-
writer.writeString(1, key);
|
|
123
|
-
writer.writeString(2, value);
|
|
124
|
-
});
|
|
125
|
-
}
|
|
698
|
+
if (this.message.length)
|
|
699
|
+
writer.writeString(2, this.message);
|
|
700
|
+
if (this.has_timestamp)
|
|
701
|
+
writer.writeMessage(3, this.timestamp, () => this.timestamp.serialize(writer));
|
|
126
702
|
if (!w)
|
|
127
703
|
return writer.getResultBuffer();
|
|
128
704
|
}
|
|
129
|
-
static deserialize(bytes: Uint8Array | pb_1.BinaryReader):
|
|
130
|
-
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new
|
|
705
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): StdErrorEventRequest {
|
|
706
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new StdErrorEventRequest();
|
|
131
707
|
while (reader.nextField()) {
|
|
132
708
|
if (reader.isEndGroup())
|
|
133
709
|
break;
|
|
@@ -136,13 +712,10 @@ export namespace testsystem.v1.events {
|
|
|
136
712
|
message.test_id = reader.readString();
|
|
137
713
|
break;
|
|
138
714
|
case 2:
|
|
139
|
-
message.
|
|
715
|
+
message.message = reader.readString();
|
|
140
716
|
break;
|
|
141
717
|
case 3:
|
|
142
|
-
reader.readMessage(message.
|
|
143
|
-
break;
|
|
144
|
-
case 4:
|
|
145
|
-
reader.readMessage(message, () => pb_1.Map.deserializeBinary(message.metadata as any, reader, reader.readString, reader.readString));
|
|
718
|
+
reader.readMessage(message.timestamp, () => message.timestamp = dependency_1.google.protobuf.Timestamp.deserialize(reader));
|
|
146
719
|
break;
|
|
147
720
|
default: reader.skipField();
|
|
148
721
|
}
|
|
@@ -152,40 +725,28 @@ export namespace testsystem.v1.events {
|
|
|
152
725
|
serializeBinary(): Uint8Array {
|
|
153
726
|
return this.serialize();
|
|
154
727
|
}
|
|
155
|
-
static deserializeBinary(bytes: Uint8Array):
|
|
156
|
-
return
|
|
728
|
+
static deserializeBinary(bytes: Uint8Array): StdErrorEventRequest {
|
|
729
|
+
return StdErrorEventRequest.deserialize(bytes);
|
|
157
730
|
}
|
|
158
731
|
}
|
|
159
|
-
export class
|
|
732
|
+
export class StdOutputEventRequest extends pb_1.Message {
|
|
160
733
|
#one_of_decls: number[][] = [];
|
|
161
734
|
constructor(data?: any[] | {
|
|
162
735
|
test_id?: string;
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
attachments?: dependency_2.testsystem.v1.common.Attachment[];
|
|
166
|
-
error_message?: string;
|
|
167
|
-
stack_trace?: string;
|
|
736
|
+
message?: string;
|
|
737
|
+
timestamp?: dependency_1.google.protobuf.Timestamp;
|
|
168
738
|
}) {
|
|
169
739
|
super();
|
|
170
|
-
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [
|
|
740
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
171
741
|
if (!Array.isArray(data) && typeof data == "object") {
|
|
172
742
|
if ("test_id" in data && data.test_id != undefined) {
|
|
173
743
|
this.test_id = data.test_id;
|
|
174
744
|
}
|
|
175
|
-
if ("
|
|
176
|
-
this.
|
|
177
|
-
}
|
|
178
|
-
if ("end_time" in data && data.end_time != undefined) {
|
|
179
|
-
this.end_time = data.end_time;
|
|
180
|
-
}
|
|
181
|
-
if ("attachments" in data && data.attachments != undefined) {
|
|
182
|
-
this.attachments = data.attachments;
|
|
183
|
-
}
|
|
184
|
-
if ("error_message" in data && data.error_message != undefined) {
|
|
185
|
-
this.error_message = data.error_message;
|
|
745
|
+
if ("message" in data && data.message != undefined) {
|
|
746
|
+
this.message = data.message;
|
|
186
747
|
}
|
|
187
|
-
if ("
|
|
188
|
-
this.
|
|
748
|
+
if ("timestamp" in data && data.timestamp != undefined) {
|
|
749
|
+
this.timestamp = data.timestamp;
|
|
189
750
|
}
|
|
190
751
|
}
|
|
191
752
|
}
|
|
@@ -195,94 +756,52 @@ export namespace testsystem.v1.events {
|
|
|
195
756
|
set test_id(value: string) {
|
|
196
757
|
pb_1.Message.setField(this, 1, value);
|
|
197
758
|
}
|
|
198
|
-
get
|
|
199
|
-
return pb_1.Message.getFieldWithDefault(this, 2,
|
|
759
|
+
get message() {
|
|
760
|
+
return pb_1.Message.getFieldWithDefault(this, 2, "") as string;
|
|
200
761
|
}
|
|
201
|
-
set
|
|
762
|
+
set message(value: string) {
|
|
202
763
|
pb_1.Message.setField(this, 2, value);
|
|
203
764
|
}
|
|
204
|
-
get
|
|
765
|
+
get timestamp() {
|
|
205
766
|
return pb_1.Message.getWrapperField(this, dependency_1.google.protobuf.Timestamp, 3) as dependency_1.google.protobuf.Timestamp;
|
|
206
767
|
}
|
|
207
|
-
set
|
|
768
|
+
set timestamp(value: dependency_1.google.protobuf.Timestamp) {
|
|
208
769
|
pb_1.Message.setWrapperField(this, 3, value);
|
|
209
770
|
}
|
|
210
|
-
get
|
|
771
|
+
get has_timestamp() {
|
|
211
772
|
return pb_1.Message.getField(this, 3) != null;
|
|
212
773
|
}
|
|
213
|
-
get attachments() {
|
|
214
|
-
return pb_1.Message.getRepeatedWrapperField(this, dependency_2.testsystem.v1.common.Attachment, 4) as dependency_2.testsystem.v1.common.Attachment[];
|
|
215
|
-
}
|
|
216
|
-
set attachments(value: dependency_2.testsystem.v1.common.Attachment[]) {
|
|
217
|
-
pb_1.Message.setRepeatedWrapperField(this, 4, value);
|
|
218
|
-
}
|
|
219
|
-
get error_message() {
|
|
220
|
-
return pb_1.Message.getFieldWithDefault(this, 5, "") as string;
|
|
221
|
-
}
|
|
222
|
-
set error_message(value: string) {
|
|
223
|
-
pb_1.Message.setField(this, 5, value);
|
|
224
|
-
}
|
|
225
|
-
get stack_trace() {
|
|
226
|
-
return pb_1.Message.getFieldWithDefault(this, 6, "") as string;
|
|
227
|
-
}
|
|
228
|
-
set stack_trace(value: string) {
|
|
229
|
-
pb_1.Message.setField(this, 6, value);
|
|
230
|
-
}
|
|
231
774
|
static fromObject(data: {
|
|
232
775
|
test_id?: string;
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
stack_trace?: string;
|
|
238
|
-
}): TestFinishEventRequest {
|
|
239
|
-
const message = new TestFinishEventRequest({});
|
|
776
|
+
message?: string;
|
|
777
|
+
timestamp?: ReturnType<typeof dependency_1.google.protobuf.Timestamp.prototype.toObject>;
|
|
778
|
+
}): StdOutputEventRequest {
|
|
779
|
+
const message = new StdOutputEventRequest({});
|
|
240
780
|
if (data.test_id != null) {
|
|
241
781
|
message.test_id = data.test_id;
|
|
242
782
|
}
|
|
243
|
-
if (data.
|
|
244
|
-
message.
|
|
783
|
+
if (data.message != null) {
|
|
784
|
+
message.message = data.message;
|
|
245
785
|
}
|
|
246
|
-
if (data.
|
|
247
|
-
message.
|
|
248
|
-
}
|
|
249
|
-
if (data.attachments != null) {
|
|
250
|
-
message.attachments = data.attachments.map(item => dependency_2.testsystem.v1.common.Attachment.fromObject(item));
|
|
251
|
-
}
|
|
252
|
-
if (data.error_message != null) {
|
|
253
|
-
message.error_message = data.error_message;
|
|
254
|
-
}
|
|
255
|
-
if (data.stack_trace != null) {
|
|
256
|
-
message.stack_trace = data.stack_trace;
|
|
786
|
+
if (data.timestamp != null) {
|
|
787
|
+
message.timestamp = dependency_1.google.protobuf.Timestamp.fromObject(data.timestamp);
|
|
257
788
|
}
|
|
258
789
|
return message;
|
|
259
790
|
}
|
|
260
791
|
toObject() {
|
|
261
792
|
const data: {
|
|
262
793
|
test_id?: string;
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
attachments?: ReturnType<typeof dependency_2.testsystem.v1.common.Attachment.prototype.toObject>[];
|
|
266
|
-
error_message?: string;
|
|
267
|
-
stack_trace?: string;
|
|
794
|
+
message?: string;
|
|
795
|
+
timestamp?: ReturnType<typeof dependency_1.google.protobuf.Timestamp.prototype.toObject>;
|
|
268
796
|
} = {};
|
|
269
797
|
if (this.test_id != null) {
|
|
270
798
|
data.test_id = this.test_id;
|
|
271
799
|
}
|
|
272
|
-
if (this.
|
|
273
|
-
data.
|
|
274
|
-
}
|
|
275
|
-
if (this.end_time != null) {
|
|
276
|
-
data.end_time = this.end_time.toObject();
|
|
800
|
+
if (this.message != null) {
|
|
801
|
+
data.message = this.message;
|
|
277
802
|
}
|
|
278
|
-
if (this.
|
|
279
|
-
data.
|
|
280
|
-
}
|
|
281
|
-
if (this.error_message != null) {
|
|
282
|
-
data.error_message = this.error_message;
|
|
283
|
-
}
|
|
284
|
-
if (this.stack_trace != null) {
|
|
285
|
-
data.stack_trace = this.stack_trace;
|
|
803
|
+
if (this.timestamp != null) {
|
|
804
|
+
data.timestamp = this.timestamp.toObject();
|
|
286
805
|
}
|
|
287
806
|
return data;
|
|
288
807
|
}
|
|
@@ -292,21 +811,15 @@ export namespace testsystem.v1.events {
|
|
|
292
811
|
const writer = w || new pb_1.BinaryWriter();
|
|
293
812
|
if (this.test_id.length)
|
|
294
813
|
writer.writeString(1, this.test_id);
|
|
295
|
-
if (this.
|
|
296
|
-
writer.
|
|
297
|
-
if (this.
|
|
298
|
-
writer.writeMessage(3, this.
|
|
299
|
-
if (this.attachments.length)
|
|
300
|
-
writer.writeRepeatedMessage(4, this.attachments, (item: dependency_2.testsystem.v1.common.Attachment) => item.serialize(writer));
|
|
301
|
-
if (this.error_message.length)
|
|
302
|
-
writer.writeString(5, this.error_message);
|
|
303
|
-
if (this.stack_trace.length)
|
|
304
|
-
writer.writeString(6, this.stack_trace);
|
|
814
|
+
if (this.message.length)
|
|
815
|
+
writer.writeString(2, this.message);
|
|
816
|
+
if (this.has_timestamp)
|
|
817
|
+
writer.writeMessage(3, this.timestamp, () => this.timestamp.serialize(writer));
|
|
305
818
|
if (!w)
|
|
306
819
|
return writer.getResultBuffer();
|
|
307
820
|
}
|
|
308
|
-
static deserialize(bytes: Uint8Array | pb_1.BinaryReader):
|
|
309
|
-
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new
|
|
821
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): StdOutputEventRequest {
|
|
822
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new StdOutputEventRequest();
|
|
310
823
|
while (reader.nextField()) {
|
|
311
824
|
if (reader.isEndGroup())
|
|
312
825
|
break;
|
|
@@ -315,19 +828,10 @@ export namespace testsystem.v1.events {
|
|
|
315
828
|
message.test_id = reader.readString();
|
|
316
829
|
break;
|
|
317
830
|
case 2:
|
|
318
|
-
message.
|
|
831
|
+
message.message = reader.readString();
|
|
319
832
|
break;
|
|
320
833
|
case 3:
|
|
321
|
-
reader.readMessage(message.
|
|
322
|
-
break;
|
|
323
|
-
case 4:
|
|
324
|
-
reader.readMessage(message.attachments, () => pb_1.Message.addToRepeatedWrapperField(message, 4, dependency_2.testsystem.v1.common.Attachment.deserialize(reader), dependency_2.testsystem.v1.common.Attachment));
|
|
325
|
-
break;
|
|
326
|
-
case 5:
|
|
327
|
-
message.error_message = reader.readString();
|
|
328
|
-
break;
|
|
329
|
-
case 6:
|
|
330
|
-
message.stack_trace = reader.readString();
|
|
834
|
+
reader.readMessage(message.timestamp, () => message.timestamp = dependency_1.google.protobuf.Timestamp.deserialize(reader));
|
|
331
835
|
break;
|
|
332
836
|
default: reader.skipField();
|
|
333
837
|
}
|
|
@@ -337,101 +841,117 @@ export namespace testsystem.v1.events {
|
|
|
337
841
|
serializeBinary(): Uint8Array {
|
|
338
842
|
return this.serialize();
|
|
339
843
|
}
|
|
340
|
-
static deserializeBinary(bytes: Uint8Array):
|
|
341
|
-
return
|
|
844
|
+
static deserializeBinary(bytes: Uint8Array): StdOutputEventRequest {
|
|
845
|
+
return StdOutputEventRequest.deserialize(bytes);
|
|
342
846
|
}
|
|
343
847
|
}
|
|
344
|
-
export class
|
|
848
|
+
export class SuiteBeginEventRequest extends pb_1.Message {
|
|
345
849
|
#one_of_decls: number[][] = [];
|
|
346
850
|
constructor(data?: any[] | {
|
|
347
|
-
|
|
348
|
-
timestamp?: dependency_1.google.protobuf.Timestamp;
|
|
349
|
-
status?: dependency_2.testsystem.v1.common.TestStatus;
|
|
350
|
-
attachments?: dependency_2.testsystem.v1.common.Attachment[];
|
|
851
|
+
suite?: dependency_4.testsystem.v1.entities.TestSuiteRun;
|
|
351
852
|
}) {
|
|
352
853
|
super();
|
|
353
|
-
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [
|
|
854
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
354
855
|
if (!Array.isArray(data) && typeof data == "object") {
|
|
355
|
-
if ("
|
|
356
|
-
this.
|
|
357
|
-
}
|
|
358
|
-
if ("timestamp" in data && data.timestamp != undefined) {
|
|
359
|
-
this.timestamp = data.timestamp;
|
|
360
|
-
}
|
|
361
|
-
if ("status" in data && data.status != undefined) {
|
|
362
|
-
this.status = data.status;
|
|
363
|
-
}
|
|
364
|
-
if ("attachments" in data && data.attachments != undefined) {
|
|
365
|
-
this.attachments = data.attachments;
|
|
856
|
+
if ("suite" in data && data.suite != undefined) {
|
|
857
|
+
this.suite = data.suite;
|
|
366
858
|
}
|
|
367
859
|
}
|
|
368
860
|
}
|
|
369
|
-
get
|
|
370
|
-
return pb_1.Message.
|
|
861
|
+
get suite() {
|
|
862
|
+
return pb_1.Message.getWrapperField(this, dependency_4.testsystem.v1.entities.TestSuiteRun, 1) as dependency_4.testsystem.v1.entities.TestSuiteRun;
|
|
371
863
|
}
|
|
372
|
-
set
|
|
373
|
-
pb_1.Message.
|
|
864
|
+
set suite(value: dependency_4.testsystem.v1.entities.TestSuiteRun) {
|
|
865
|
+
pb_1.Message.setWrapperField(this, 1, value);
|
|
374
866
|
}
|
|
375
|
-
get
|
|
376
|
-
return pb_1.Message.
|
|
867
|
+
get has_suite() {
|
|
868
|
+
return pb_1.Message.getField(this, 1) != null;
|
|
377
869
|
}
|
|
378
|
-
|
|
379
|
-
|
|
870
|
+
static fromObject(data: {
|
|
871
|
+
suite?: ReturnType<typeof dependency_4.testsystem.v1.entities.TestSuiteRun.prototype.toObject>;
|
|
872
|
+
}): SuiteBeginEventRequest {
|
|
873
|
+
const message = new SuiteBeginEventRequest({});
|
|
874
|
+
if (data.suite != null) {
|
|
875
|
+
message.suite = dependency_4.testsystem.v1.entities.TestSuiteRun.fromObject(data.suite);
|
|
876
|
+
}
|
|
877
|
+
return message;
|
|
380
878
|
}
|
|
381
|
-
|
|
382
|
-
|
|
879
|
+
toObject() {
|
|
880
|
+
const data: {
|
|
881
|
+
suite?: ReturnType<typeof dependency_4.testsystem.v1.entities.TestSuiteRun.prototype.toObject>;
|
|
882
|
+
} = {};
|
|
883
|
+
if (this.suite != null) {
|
|
884
|
+
data.suite = this.suite.toObject();
|
|
885
|
+
}
|
|
886
|
+
return data;
|
|
383
887
|
}
|
|
384
|
-
|
|
385
|
-
|
|
888
|
+
serialize(): Uint8Array;
|
|
889
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
890
|
+
serialize(w?: pb_1.BinaryWriter): Uint8Array | void {
|
|
891
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
892
|
+
if (this.has_suite)
|
|
893
|
+
writer.writeMessage(1, this.suite, () => this.suite.serialize(writer));
|
|
894
|
+
if (!w)
|
|
895
|
+
return writer.getResultBuffer();
|
|
386
896
|
}
|
|
387
|
-
|
|
388
|
-
pb_1.
|
|
897
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): SuiteBeginEventRequest {
|
|
898
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new SuiteBeginEventRequest();
|
|
899
|
+
while (reader.nextField()) {
|
|
900
|
+
if (reader.isEndGroup())
|
|
901
|
+
break;
|
|
902
|
+
switch (reader.getFieldNumber()) {
|
|
903
|
+
case 1:
|
|
904
|
+
reader.readMessage(message.suite, () => message.suite = dependency_4.testsystem.v1.entities.TestSuiteRun.deserialize(reader));
|
|
905
|
+
break;
|
|
906
|
+
default: reader.skipField();
|
|
907
|
+
}
|
|
908
|
+
}
|
|
909
|
+
return message;
|
|
389
910
|
}
|
|
390
|
-
|
|
391
|
-
return
|
|
911
|
+
serializeBinary(): Uint8Array {
|
|
912
|
+
return this.serialize();
|
|
392
913
|
}
|
|
393
|
-
|
|
394
|
-
|
|
914
|
+
static deserializeBinary(bytes: Uint8Array): SuiteBeginEventRequest {
|
|
915
|
+
return SuiteBeginEventRequest.deserialize(bytes);
|
|
395
916
|
}
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
})
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
}
|
|
409
|
-
if (data.status != null) {
|
|
410
|
-
message.status = data.status;
|
|
917
|
+
}
|
|
918
|
+
export class SuiteEndEventRequest extends pb_1.Message {
|
|
919
|
+
#one_of_decls: number[][] = [];
|
|
920
|
+
constructor(data?: any[] | {
|
|
921
|
+
suite?: dependency_4.testsystem.v1.entities.TestSuiteRun;
|
|
922
|
+
}) {
|
|
923
|
+
super();
|
|
924
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
925
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
926
|
+
if ("suite" in data && data.suite != undefined) {
|
|
927
|
+
this.suite = data.suite;
|
|
928
|
+
}
|
|
411
929
|
}
|
|
412
|
-
|
|
413
|
-
|
|
930
|
+
}
|
|
931
|
+
get suite() {
|
|
932
|
+
return pb_1.Message.getWrapperField(this, dependency_4.testsystem.v1.entities.TestSuiteRun, 1) as dependency_4.testsystem.v1.entities.TestSuiteRun;
|
|
933
|
+
}
|
|
934
|
+
set suite(value: dependency_4.testsystem.v1.entities.TestSuiteRun) {
|
|
935
|
+
pb_1.Message.setWrapperField(this, 1, value);
|
|
936
|
+
}
|
|
937
|
+
get has_suite() {
|
|
938
|
+
return pb_1.Message.getField(this, 1) != null;
|
|
939
|
+
}
|
|
940
|
+
static fromObject(data: {
|
|
941
|
+
suite?: ReturnType<typeof dependency_4.testsystem.v1.entities.TestSuiteRun.prototype.toObject>;
|
|
942
|
+
}): SuiteEndEventRequest {
|
|
943
|
+
const message = new SuiteEndEventRequest({});
|
|
944
|
+
if (data.suite != null) {
|
|
945
|
+
message.suite = dependency_4.testsystem.v1.entities.TestSuiteRun.fromObject(data.suite);
|
|
414
946
|
}
|
|
415
947
|
return message;
|
|
416
948
|
}
|
|
417
949
|
toObject() {
|
|
418
950
|
const data: {
|
|
419
|
-
|
|
420
|
-
timestamp?: ReturnType<typeof dependency_1.google.protobuf.Timestamp.prototype.toObject>;
|
|
421
|
-
status?: dependency_2.testsystem.v1.common.TestStatus;
|
|
422
|
-
attachments?: ReturnType<typeof dependency_2.testsystem.v1.common.Attachment.prototype.toObject>[];
|
|
951
|
+
suite?: ReturnType<typeof dependency_4.testsystem.v1.entities.TestSuiteRun.prototype.toObject>;
|
|
423
952
|
} = {};
|
|
424
|
-
if (this.
|
|
425
|
-
data.
|
|
426
|
-
}
|
|
427
|
-
if (this.timestamp != null) {
|
|
428
|
-
data.timestamp = this.timestamp.toObject();
|
|
429
|
-
}
|
|
430
|
-
if (this.status != null) {
|
|
431
|
-
data.status = this.status;
|
|
432
|
-
}
|
|
433
|
-
if (this.attachments != null) {
|
|
434
|
-
data.attachments = this.attachments.map((item: dependency_2.testsystem.v1.common.Attachment) => item.toObject());
|
|
953
|
+
if (this.suite != null) {
|
|
954
|
+
data.suite = this.suite.toObject();
|
|
435
955
|
}
|
|
436
956
|
return data;
|
|
437
957
|
}
|
|
@@ -439,34 +959,19 @@ export namespace testsystem.v1.events {
|
|
|
439
959
|
serialize(w: pb_1.BinaryWriter): void;
|
|
440
960
|
serialize(w?: pb_1.BinaryWriter): Uint8Array | void {
|
|
441
961
|
const writer = w || new pb_1.BinaryWriter();
|
|
442
|
-
if (this.
|
|
443
|
-
writer.
|
|
444
|
-
if (this.has_timestamp)
|
|
445
|
-
writer.writeMessage(2, this.timestamp, () => this.timestamp.serialize(writer));
|
|
446
|
-
if (this.status != dependency_2.testsystem.v1.common.TestStatus.UNKNOWN)
|
|
447
|
-
writer.writeEnum(3, this.status);
|
|
448
|
-
if (this.attachments.length)
|
|
449
|
-
writer.writeRepeatedMessage(4, this.attachments, (item: dependency_2.testsystem.v1.common.Attachment) => item.serialize(writer));
|
|
962
|
+
if (this.has_suite)
|
|
963
|
+
writer.writeMessage(1, this.suite, () => this.suite.serialize(writer));
|
|
450
964
|
if (!w)
|
|
451
965
|
return writer.getResultBuffer();
|
|
452
966
|
}
|
|
453
|
-
static deserialize(bytes: Uint8Array | pb_1.BinaryReader):
|
|
454
|
-
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new
|
|
967
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): SuiteEndEventRequest {
|
|
968
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new SuiteEndEventRequest();
|
|
455
969
|
while (reader.nextField()) {
|
|
456
970
|
if (reader.isEndGroup())
|
|
457
971
|
break;
|
|
458
972
|
switch (reader.getFieldNumber()) {
|
|
459
973
|
case 1:
|
|
460
|
-
message.
|
|
461
|
-
break;
|
|
462
|
-
case 2:
|
|
463
|
-
reader.readMessage(message.timestamp, () => message.timestamp = dependency_1.google.protobuf.Timestamp.deserialize(reader));
|
|
464
|
-
break;
|
|
465
|
-
case 3:
|
|
466
|
-
message.status = reader.readEnum();
|
|
467
|
-
break;
|
|
468
|
-
case 4:
|
|
469
|
-
reader.readMessage(message.attachments, () => pb_1.Message.addToRepeatedWrapperField(message, 4, dependency_2.testsystem.v1.common.Attachment.deserialize(reader), dependency_2.testsystem.v1.common.Attachment));
|
|
974
|
+
reader.readMessage(message.suite, () => message.suite = dependency_4.testsystem.v1.entities.TestSuiteRun.deserialize(reader));
|
|
470
975
|
break;
|
|
471
976
|
default: reader.skipField();
|
|
472
977
|
}
|
|
@@ -476,62 +981,65 @@ export namespace testsystem.v1.events {
|
|
|
476
981
|
serializeBinary(): Uint8Array {
|
|
477
982
|
return this.serialize();
|
|
478
983
|
}
|
|
479
|
-
static deserializeBinary(bytes: Uint8Array):
|
|
480
|
-
return
|
|
984
|
+
static deserializeBinary(bytes: Uint8Array): SuiteEndEventRequest {
|
|
985
|
+
return SuiteEndEventRequest.deserialize(bytes);
|
|
481
986
|
}
|
|
482
987
|
}
|
|
483
|
-
export class
|
|
988
|
+
export class HeartbeatEventRequest extends pb_1.Message {
|
|
484
989
|
#one_of_decls: number[][] = [];
|
|
485
990
|
constructor(data?: any[] | {
|
|
486
|
-
|
|
487
|
-
|
|
991
|
+
source_id?: string;
|
|
992
|
+
timestamp?: dependency_1.google.protobuf.Timestamp;
|
|
488
993
|
}) {
|
|
489
994
|
super();
|
|
490
|
-
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [
|
|
995
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
491
996
|
if (!Array.isArray(data) && typeof data == "object") {
|
|
492
|
-
if ("
|
|
493
|
-
this.
|
|
997
|
+
if ("source_id" in data && data.source_id != undefined) {
|
|
998
|
+
this.source_id = data.source_id;
|
|
494
999
|
}
|
|
495
|
-
if ("
|
|
496
|
-
this.
|
|
1000
|
+
if ("timestamp" in data && data.timestamp != undefined) {
|
|
1001
|
+
this.timestamp = data.timestamp;
|
|
497
1002
|
}
|
|
498
1003
|
}
|
|
499
1004
|
}
|
|
500
|
-
get
|
|
1005
|
+
get source_id() {
|
|
501
1006
|
return pb_1.Message.getFieldWithDefault(this, 1, "") as string;
|
|
502
1007
|
}
|
|
503
|
-
set
|
|
1008
|
+
set source_id(value: string) {
|
|
504
1009
|
pb_1.Message.setField(this, 1, value);
|
|
505
1010
|
}
|
|
506
|
-
get
|
|
507
|
-
return pb_1.Message.
|
|
1011
|
+
get timestamp() {
|
|
1012
|
+
return pb_1.Message.getWrapperField(this, dependency_1.google.protobuf.Timestamp, 2) as dependency_1.google.protobuf.Timestamp;
|
|
1013
|
+
}
|
|
1014
|
+
set timestamp(value: dependency_1.google.protobuf.Timestamp) {
|
|
1015
|
+
pb_1.Message.setWrapperField(this, 2, value);
|
|
508
1016
|
}
|
|
509
|
-
|
|
510
|
-
pb_1.Message.
|
|
1017
|
+
get has_timestamp() {
|
|
1018
|
+
return pb_1.Message.getField(this, 2) != null;
|
|
511
1019
|
}
|
|
512
1020
|
static fromObject(data: {
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
}):
|
|
516
|
-
const message = new
|
|
517
|
-
if (data.
|
|
518
|
-
message.
|
|
1021
|
+
source_id?: string;
|
|
1022
|
+
timestamp?: ReturnType<typeof dependency_1.google.protobuf.Timestamp.prototype.toObject>;
|
|
1023
|
+
}): HeartbeatEventRequest {
|
|
1024
|
+
const message = new HeartbeatEventRequest({});
|
|
1025
|
+
if (data.source_id != null) {
|
|
1026
|
+
message.source_id = data.source_id;
|
|
519
1027
|
}
|
|
520
|
-
if (data.
|
|
521
|
-
message.
|
|
1028
|
+
if (data.timestamp != null) {
|
|
1029
|
+
message.timestamp = dependency_1.google.protobuf.Timestamp.fromObject(data.timestamp);
|
|
522
1030
|
}
|
|
523
1031
|
return message;
|
|
524
1032
|
}
|
|
525
1033
|
toObject() {
|
|
526
1034
|
const data: {
|
|
527
|
-
|
|
528
|
-
|
|
1035
|
+
source_id?: string;
|
|
1036
|
+
timestamp?: ReturnType<typeof dependency_1.google.protobuf.Timestamp.prototype.toObject>;
|
|
529
1037
|
} = {};
|
|
530
|
-
if (this.
|
|
531
|
-
data.
|
|
1038
|
+
if (this.source_id != null) {
|
|
1039
|
+
data.source_id = this.source_id;
|
|
532
1040
|
}
|
|
533
|
-
if (this.
|
|
534
|
-
data.
|
|
1041
|
+
if (this.timestamp != null) {
|
|
1042
|
+
data.timestamp = this.timestamp.toObject();
|
|
535
1043
|
}
|
|
536
1044
|
return data;
|
|
537
1045
|
}
|
|
@@ -539,24 +1047,24 @@ export namespace testsystem.v1.events {
|
|
|
539
1047
|
serialize(w: pb_1.BinaryWriter): void;
|
|
540
1048
|
serialize(w?: pb_1.BinaryWriter): Uint8Array | void {
|
|
541
1049
|
const writer = w || new pb_1.BinaryWriter();
|
|
542
|
-
if (this.
|
|
543
|
-
writer.writeString(1, this.
|
|
544
|
-
if (this.
|
|
545
|
-
writer.
|
|
1050
|
+
if (this.source_id.length)
|
|
1051
|
+
writer.writeString(1, this.source_id);
|
|
1052
|
+
if (this.has_timestamp)
|
|
1053
|
+
writer.writeMessage(2, this.timestamp, () => this.timestamp.serialize(writer));
|
|
546
1054
|
if (!w)
|
|
547
1055
|
return writer.getResultBuffer();
|
|
548
1056
|
}
|
|
549
|
-
static deserialize(bytes: Uint8Array | pb_1.BinaryReader):
|
|
550
|
-
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new
|
|
1057
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): HeartbeatEventRequest {
|
|
1058
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new HeartbeatEventRequest();
|
|
551
1059
|
while (reader.nextField()) {
|
|
552
1060
|
if (reader.isEndGroup())
|
|
553
1061
|
break;
|
|
554
1062
|
switch (reader.getFieldNumber()) {
|
|
555
1063
|
case 1:
|
|
556
|
-
message.
|
|
1064
|
+
message.source_id = reader.readString();
|
|
557
1065
|
break;
|
|
558
1066
|
case 2:
|
|
559
|
-
reader.readMessage(message.
|
|
1067
|
+
reader.readMessage(message.timestamp, () => message.timestamp = dependency_1.google.protobuf.Timestamp.deserialize(reader));
|
|
560
1068
|
break;
|
|
561
1069
|
default: reader.skipField();
|
|
562
1070
|
}
|
|
@@ -566,8 +1074,8 @@ export namespace testsystem.v1.events {
|
|
|
566
1074
|
serializeBinary(): Uint8Array {
|
|
567
1075
|
return this.serialize();
|
|
568
1076
|
}
|
|
569
|
-
static deserializeBinary(bytes: Uint8Array):
|
|
570
|
-
return
|
|
1077
|
+
static deserializeBinary(bytes: Uint8Array): HeartbeatEventRequest {
|
|
1078
|
+
return HeartbeatEventRequest.deserialize(bytes);
|
|
571
1079
|
}
|
|
572
1080
|
}
|
|
573
1081
|
}
|