weave-typescript 0.11.14 → 0.11.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/dist/weaveapi/data/v1/data.pb.d.ts +54 -0
  2. package/dist/weaveapi/data/v1/data.pb.js +411 -0
  3. package/dist/weaveapi/data/v1/service.pb.d.ts +213 -0
  4. package/dist/weaveapi/data/v1/service.pb.js +1948 -0
  5. package/dist/weaveapi/input/v1/input.pb.d.ts +77 -0
  6. package/dist/weaveapi/input/v1/input.pb.js +632 -0
  7. package/dist/weaveapi/input/v1/service.pb.d.ts +311 -0
  8. package/dist/weaveapi/input/v1/service.pb.js +3001 -0
  9. package/dist/weaveapi/integration/v1/integration.pb.d.ts +67 -0
  10. package/dist/weaveapi/integration/v1/integration.pb.js +486 -0
  11. package/dist/weaveapi/integration/v1/service.pb.d.ts +236 -0
  12. package/dist/weaveapi/integration/v1/service.pb.js +2220 -0
  13. package/dist/weaveapi/report/v1/report.pb.d.ts +79 -0
  14. package/dist/weaveapi/report/v1/report.pb.js +638 -0
  15. package/dist/weaveapi/report/v1/service.pb.d.ts +194 -0
  16. package/dist/weaveapi/report/v1/service.pb.js +1630 -0
  17. package/dist/weaveapi/requirement/v1/requirement.pb.d.ts +70 -0
  18. package/dist/weaveapi/requirement/v1/requirement.pb.js +570 -0
  19. package/dist/weaveapi/requirement/v1/service.pb.d.ts +310 -0
  20. package/dist/weaveapi/requirement/v1/service.pb.js +2978 -0
  21. package/dist/weaveapi/run/v1/run.pb.d.ts +116 -0
  22. package/dist/weaveapi/run/v1/run.pb.js +1135 -0
  23. package/dist/weaveapi/run/v1/service.pb.d.ts +229 -0
  24. package/dist/weaveapi/run/v1/service.pb.js +2106 -0
  25. package/dist/weaveapi/script/v1/script.pb.d.ts +102 -0
  26. package/dist/weaveapi/script/v1/script.pb.js +1025 -0
  27. package/dist/weaveapi/script/v1/service.pb.d.ts +426 -0
  28. package/dist/weaveapi/script/v1/service.pb.js +4399 -0
  29. package/dist/weaveapi/storage/v1/service.pb.d.ts +4 -0
  30. package/dist/weaveapi/storage/v1/service.pb.js +50 -7
  31. package/dist/weaveapi/storage/v1/storage.pb.d.ts +2 -0
  32. package/dist/weaveapi/storage/v1/storage.pb.js +23 -0
  33. package/dist/weaveapi/storage/v1/vcs.pb.d.ts +75 -0
  34. package/dist/weaveapi/storage/v1/vcs.pb.js +864 -0
  35. package/dist/weaveapi/suite/v1/service.pb.d.ts +373 -0
  36. package/dist/weaveapi/suite/v1/service.pb.js +3629 -0
  37. package/dist/weaveapi/suite/v1/suite.pb.d.ts +92 -0
  38. package/dist/weaveapi/suite/v1/suite.pb.js +876 -0
  39. package/dist/weaveapi/testcase/v1/service.pb.d.ts +422 -0
  40. package/dist/weaveapi/testcase/v1/service.pb.js +4254 -0
  41. package/dist/weaveapi/testcase/v1/testcase.pb.d.ts +91 -0
  42. package/dist/weaveapi/testcase/v1/testcase.pb.js +794 -0
  43. package/dist/weavesql/weavedb/data_asset_sql.d.ts +141 -0
  44. package/dist/weavesql/weavedb/data_asset_sql.js +217 -0
  45. package/dist/weavesql/weavedb/input_sql.d.ts +230 -0
  46. package/dist/weavesql/weavedb/input_sql.js +384 -0
  47. package/dist/weavesql/weavedb/integration_sql.d.ts +170 -0
  48. package/dist/weavesql/weavedb/integration_sql.js +258 -0
  49. package/dist/weavesql/weavedb/report_sql.d.ts +138 -0
  50. package/dist/weavesql/weavedb/report_sql.js +232 -0
  51. package/dist/weavesql/weavedb/requirement_sql.d.ts +168 -0
  52. package/dist/weavesql/weavedb/requirement_sql.js +283 -0
  53. package/dist/weavesql/weavedb/run_sql.d.ts +247 -0
  54. package/dist/weavesql/weavedb/run_sql.js +415 -0
  55. package/dist/weavesql/weavedb/suite_sql.d.ts +228 -0
  56. package/dist/weavesql/weavedb/suite_sql.js +399 -0
  57. package/dist/weavesql/weavedb/test_case_sql.d.ts +261 -0
  58. package/dist/weavesql/weavedb/test_case_sql.js +446 -0
  59. package/dist/weavesql/weavedb/test_script_sql.d.ts +290 -0
  60. package/dist/weavesql/weavedb/test_script_sql.js +488 -0
  61. package/dist/weavesql/weavedb/traceability_sql.d.ts +59 -0
  62. package/dist/weavesql/weavedb/traceability_sql.js +155 -0
  63. package/package.json +1 -1
@@ -0,0 +1,4399 @@
1
+ "use strict";
2
+ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
+ // versions:
4
+ // protoc-gen-ts_proto v2.11.2
5
+ // protoc unknown
6
+ // source: weaveapi/script/v1/service.proto
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.ScriptServiceDefinition = exports.ScriptServiceClientImpl = exports.ScriptServiceServiceName = exports.GenerateTestScriptsResponse = exports.GenerateTestScriptsRequest = exports.DeleteScriptBindingResponse = exports.DeleteScriptBindingRequest = exports.ListScriptBindingsResponse = exports.ListScriptBindingsRequest = exports.UpsertScriptBindingResponse = exports.UpsertScriptBindingRequest = exports.SetCurrentTestScriptVersionResponse = exports.SetCurrentTestScriptVersionRequest = exports.ListTestScriptVersionsResponse = exports.ListTestScriptVersionsRequest = exports.GetTestScriptVersionResponse = exports.GetTestScriptVersionRequest = exports.CreateTestScriptVersionResponse = exports.CreateTestScriptVersionRequest = exports.DeleteTestScriptResponse = exports.DeleteTestScriptRequest = exports.ArchiveTestScriptResponse = exports.ArchiveTestScriptRequest = exports.UpdateTestScriptResponse = exports.UpdateTestScriptRequest = exports.ListTestScriptsResponse = exports.ListTestScriptsRequest = exports.GetTestScriptResponse = exports.GetTestScriptRequest = exports.CreateTestScriptResponse = exports.CreateTestScriptRequest = exports.protobufPackage = void 0;
9
+ /* eslint-disable */
10
+ const wire_1 = require("@bufbuild/protobuf/wire");
11
+ const struct_pb_1 = require("../../../google/protobuf/struct.pb");
12
+ const script_pb_1 = require("./script.pb");
13
+ exports.protobufPackage = "weaveapi.script.v1";
14
+ function createBaseCreateTestScriptRequest() {
15
+ return {
16
+ projectId: "",
17
+ workflowId: "",
18
+ testCaseId: "",
19
+ name: "",
20
+ description: "",
21
+ language: 0,
22
+ framework: "",
23
+ status: 0,
24
+ metadata: undefined,
25
+ };
26
+ }
27
+ exports.CreateTestScriptRequest = {
28
+ encode(message, writer = new wire_1.BinaryWriter()) {
29
+ if (message.projectId !== "") {
30
+ writer.uint32(10).string(message.projectId);
31
+ }
32
+ if (message.workflowId !== "") {
33
+ writer.uint32(18).string(message.workflowId);
34
+ }
35
+ if (message.testCaseId !== "") {
36
+ writer.uint32(26).string(message.testCaseId);
37
+ }
38
+ if (message.name !== "") {
39
+ writer.uint32(34).string(message.name);
40
+ }
41
+ if (message.description !== "") {
42
+ writer.uint32(42).string(message.description);
43
+ }
44
+ if (message.language !== 0) {
45
+ writer.uint32(48).int32(message.language);
46
+ }
47
+ if (message.framework !== "") {
48
+ writer.uint32(58).string(message.framework);
49
+ }
50
+ if (message.status !== 0) {
51
+ writer.uint32(64).int32(message.status);
52
+ }
53
+ if (message.metadata !== undefined) {
54
+ struct_pb_1.Struct.encode(struct_pb_1.Struct.wrap(message.metadata), writer.uint32(74).fork()).join();
55
+ }
56
+ return writer;
57
+ },
58
+ decode(input, length) {
59
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
60
+ const end = length === undefined ? reader.len : reader.pos + length;
61
+ const message = createBaseCreateTestScriptRequest();
62
+ while (reader.pos < end) {
63
+ const tag = reader.uint32();
64
+ switch (tag >>> 3) {
65
+ case 1: {
66
+ if (tag !== 10) {
67
+ break;
68
+ }
69
+ message.projectId = reader.string();
70
+ continue;
71
+ }
72
+ case 2: {
73
+ if (tag !== 18) {
74
+ break;
75
+ }
76
+ message.workflowId = reader.string();
77
+ continue;
78
+ }
79
+ case 3: {
80
+ if (tag !== 26) {
81
+ break;
82
+ }
83
+ message.testCaseId = reader.string();
84
+ continue;
85
+ }
86
+ case 4: {
87
+ if (tag !== 34) {
88
+ break;
89
+ }
90
+ message.name = reader.string();
91
+ continue;
92
+ }
93
+ case 5: {
94
+ if (tag !== 42) {
95
+ break;
96
+ }
97
+ message.description = reader.string();
98
+ continue;
99
+ }
100
+ case 6: {
101
+ if (tag !== 48) {
102
+ break;
103
+ }
104
+ message.language = reader.int32();
105
+ continue;
106
+ }
107
+ case 7: {
108
+ if (tag !== 58) {
109
+ break;
110
+ }
111
+ message.framework = reader.string();
112
+ continue;
113
+ }
114
+ case 8: {
115
+ if (tag !== 64) {
116
+ break;
117
+ }
118
+ message.status = reader.int32();
119
+ continue;
120
+ }
121
+ case 9: {
122
+ if (tag !== 74) {
123
+ break;
124
+ }
125
+ message.metadata = struct_pb_1.Struct.unwrap(struct_pb_1.Struct.decode(reader, reader.uint32()));
126
+ continue;
127
+ }
128
+ }
129
+ if ((tag & 7) === 4 || tag === 0) {
130
+ break;
131
+ }
132
+ reader.skip(tag & 7);
133
+ }
134
+ return message;
135
+ },
136
+ fromJSON(object) {
137
+ return {
138
+ projectId: isSet(object.projectId)
139
+ ? globalThis.String(object.projectId)
140
+ : isSet(object.project_id)
141
+ ? globalThis.String(object.project_id)
142
+ : "",
143
+ workflowId: isSet(object.workflowId)
144
+ ? globalThis.String(object.workflowId)
145
+ : isSet(object.workflow_id)
146
+ ? globalThis.String(object.workflow_id)
147
+ : "",
148
+ testCaseId: isSet(object.testCaseId)
149
+ ? globalThis.String(object.testCaseId)
150
+ : isSet(object.test_case_id)
151
+ ? globalThis.String(object.test_case_id)
152
+ : "",
153
+ name: isSet(object.name) ? globalThis.String(object.name) : "",
154
+ description: isSet(object.description) ? globalThis.String(object.description) : "",
155
+ language: isSet(object.language) ? (0, script_pb_1.scriptLanguageFromJSON)(object.language) : 0,
156
+ framework: isSet(object.framework) ? globalThis.String(object.framework) : "",
157
+ status: isSet(object.status) ? (0, script_pb_1.scriptStatusFromJSON)(object.status) : 0,
158
+ metadata: isObject(object.metadata) ? object.metadata : undefined,
159
+ };
160
+ },
161
+ toJSON(message) {
162
+ const obj = {};
163
+ if (message.projectId !== "") {
164
+ obj.projectId = message.projectId;
165
+ }
166
+ if (message.workflowId !== "") {
167
+ obj.workflowId = message.workflowId;
168
+ }
169
+ if (message.testCaseId !== "") {
170
+ obj.testCaseId = message.testCaseId;
171
+ }
172
+ if (message.name !== "") {
173
+ obj.name = message.name;
174
+ }
175
+ if (message.description !== "") {
176
+ obj.description = message.description;
177
+ }
178
+ if (message.language !== 0) {
179
+ obj.language = (0, script_pb_1.scriptLanguageToJSON)(message.language);
180
+ }
181
+ if (message.framework !== "") {
182
+ obj.framework = message.framework;
183
+ }
184
+ if (message.status !== 0) {
185
+ obj.status = (0, script_pb_1.scriptStatusToJSON)(message.status);
186
+ }
187
+ if (message.metadata !== undefined) {
188
+ obj.metadata = message.metadata;
189
+ }
190
+ return obj;
191
+ },
192
+ create(base) {
193
+ return exports.CreateTestScriptRequest.fromPartial(base !== null && base !== void 0 ? base : {});
194
+ },
195
+ fromPartial(object) {
196
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
197
+ const message = createBaseCreateTestScriptRequest();
198
+ message.projectId = (_a = object.projectId) !== null && _a !== void 0 ? _a : "";
199
+ message.workflowId = (_b = object.workflowId) !== null && _b !== void 0 ? _b : "";
200
+ message.testCaseId = (_c = object.testCaseId) !== null && _c !== void 0 ? _c : "";
201
+ message.name = (_d = object.name) !== null && _d !== void 0 ? _d : "";
202
+ message.description = (_e = object.description) !== null && _e !== void 0 ? _e : "";
203
+ message.language = (_f = object.language) !== null && _f !== void 0 ? _f : 0;
204
+ message.framework = (_g = object.framework) !== null && _g !== void 0 ? _g : "";
205
+ message.status = (_h = object.status) !== null && _h !== void 0 ? _h : 0;
206
+ message.metadata = (_j = object.metadata) !== null && _j !== void 0 ? _j : undefined;
207
+ return message;
208
+ },
209
+ };
210
+ function createBaseCreateTestScriptResponse() {
211
+ return { testScript: undefined };
212
+ }
213
+ exports.CreateTestScriptResponse = {
214
+ encode(message, writer = new wire_1.BinaryWriter()) {
215
+ if (message.testScript !== undefined) {
216
+ script_pb_1.TestScript.encode(message.testScript, writer.uint32(10).fork()).join();
217
+ }
218
+ return writer;
219
+ },
220
+ decode(input, length) {
221
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
222
+ const end = length === undefined ? reader.len : reader.pos + length;
223
+ const message = createBaseCreateTestScriptResponse();
224
+ while (reader.pos < end) {
225
+ const tag = reader.uint32();
226
+ switch (tag >>> 3) {
227
+ case 1: {
228
+ if (tag !== 10) {
229
+ break;
230
+ }
231
+ message.testScript = script_pb_1.TestScript.decode(reader, reader.uint32());
232
+ continue;
233
+ }
234
+ }
235
+ if ((tag & 7) === 4 || tag === 0) {
236
+ break;
237
+ }
238
+ reader.skip(tag & 7);
239
+ }
240
+ return message;
241
+ },
242
+ fromJSON(object) {
243
+ return {
244
+ testScript: isSet(object.testScript)
245
+ ? script_pb_1.TestScript.fromJSON(object.testScript)
246
+ : isSet(object.test_script)
247
+ ? script_pb_1.TestScript.fromJSON(object.test_script)
248
+ : undefined,
249
+ };
250
+ },
251
+ toJSON(message) {
252
+ const obj = {};
253
+ if (message.testScript !== undefined) {
254
+ obj.testScript = script_pb_1.TestScript.toJSON(message.testScript);
255
+ }
256
+ return obj;
257
+ },
258
+ create(base) {
259
+ return exports.CreateTestScriptResponse.fromPartial(base !== null && base !== void 0 ? base : {});
260
+ },
261
+ fromPartial(object) {
262
+ const message = createBaseCreateTestScriptResponse();
263
+ message.testScript = (object.testScript !== undefined && object.testScript !== null)
264
+ ? script_pb_1.TestScript.fromPartial(object.testScript)
265
+ : undefined;
266
+ return message;
267
+ },
268
+ };
269
+ function createBaseGetTestScriptRequest() {
270
+ return { projectId: "", workflowId: "", testScriptId: "" };
271
+ }
272
+ exports.GetTestScriptRequest = {
273
+ encode(message, writer = new wire_1.BinaryWriter()) {
274
+ if (message.projectId !== "") {
275
+ writer.uint32(10).string(message.projectId);
276
+ }
277
+ if (message.workflowId !== "") {
278
+ writer.uint32(18).string(message.workflowId);
279
+ }
280
+ if (message.testScriptId !== "") {
281
+ writer.uint32(26).string(message.testScriptId);
282
+ }
283
+ return writer;
284
+ },
285
+ decode(input, length) {
286
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
287
+ const end = length === undefined ? reader.len : reader.pos + length;
288
+ const message = createBaseGetTestScriptRequest();
289
+ while (reader.pos < end) {
290
+ const tag = reader.uint32();
291
+ switch (tag >>> 3) {
292
+ case 1: {
293
+ if (tag !== 10) {
294
+ break;
295
+ }
296
+ message.projectId = reader.string();
297
+ continue;
298
+ }
299
+ case 2: {
300
+ if (tag !== 18) {
301
+ break;
302
+ }
303
+ message.workflowId = reader.string();
304
+ continue;
305
+ }
306
+ case 3: {
307
+ if (tag !== 26) {
308
+ break;
309
+ }
310
+ message.testScriptId = reader.string();
311
+ continue;
312
+ }
313
+ }
314
+ if ((tag & 7) === 4 || tag === 0) {
315
+ break;
316
+ }
317
+ reader.skip(tag & 7);
318
+ }
319
+ return message;
320
+ },
321
+ fromJSON(object) {
322
+ return {
323
+ projectId: isSet(object.projectId)
324
+ ? globalThis.String(object.projectId)
325
+ : isSet(object.project_id)
326
+ ? globalThis.String(object.project_id)
327
+ : "",
328
+ workflowId: isSet(object.workflowId)
329
+ ? globalThis.String(object.workflowId)
330
+ : isSet(object.workflow_id)
331
+ ? globalThis.String(object.workflow_id)
332
+ : "",
333
+ testScriptId: isSet(object.testScriptId)
334
+ ? globalThis.String(object.testScriptId)
335
+ : isSet(object.test_script_id)
336
+ ? globalThis.String(object.test_script_id)
337
+ : "",
338
+ };
339
+ },
340
+ toJSON(message) {
341
+ const obj = {};
342
+ if (message.projectId !== "") {
343
+ obj.projectId = message.projectId;
344
+ }
345
+ if (message.workflowId !== "") {
346
+ obj.workflowId = message.workflowId;
347
+ }
348
+ if (message.testScriptId !== "") {
349
+ obj.testScriptId = message.testScriptId;
350
+ }
351
+ return obj;
352
+ },
353
+ create(base) {
354
+ return exports.GetTestScriptRequest.fromPartial(base !== null && base !== void 0 ? base : {});
355
+ },
356
+ fromPartial(object) {
357
+ var _a, _b, _c;
358
+ const message = createBaseGetTestScriptRequest();
359
+ message.projectId = (_a = object.projectId) !== null && _a !== void 0 ? _a : "";
360
+ message.workflowId = (_b = object.workflowId) !== null && _b !== void 0 ? _b : "";
361
+ message.testScriptId = (_c = object.testScriptId) !== null && _c !== void 0 ? _c : "";
362
+ return message;
363
+ },
364
+ };
365
+ function createBaseGetTestScriptResponse() {
366
+ return { testScript: undefined };
367
+ }
368
+ exports.GetTestScriptResponse = {
369
+ encode(message, writer = new wire_1.BinaryWriter()) {
370
+ if (message.testScript !== undefined) {
371
+ script_pb_1.TestScript.encode(message.testScript, writer.uint32(10).fork()).join();
372
+ }
373
+ return writer;
374
+ },
375
+ decode(input, length) {
376
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
377
+ const end = length === undefined ? reader.len : reader.pos + length;
378
+ const message = createBaseGetTestScriptResponse();
379
+ while (reader.pos < end) {
380
+ const tag = reader.uint32();
381
+ switch (tag >>> 3) {
382
+ case 1: {
383
+ if (tag !== 10) {
384
+ break;
385
+ }
386
+ message.testScript = script_pb_1.TestScript.decode(reader, reader.uint32());
387
+ continue;
388
+ }
389
+ }
390
+ if ((tag & 7) === 4 || tag === 0) {
391
+ break;
392
+ }
393
+ reader.skip(tag & 7);
394
+ }
395
+ return message;
396
+ },
397
+ fromJSON(object) {
398
+ return {
399
+ testScript: isSet(object.testScript)
400
+ ? script_pb_1.TestScript.fromJSON(object.testScript)
401
+ : isSet(object.test_script)
402
+ ? script_pb_1.TestScript.fromJSON(object.test_script)
403
+ : undefined,
404
+ };
405
+ },
406
+ toJSON(message) {
407
+ const obj = {};
408
+ if (message.testScript !== undefined) {
409
+ obj.testScript = script_pb_1.TestScript.toJSON(message.testScript);
410
+ }
411
+ return obj;
412
+ },
413
+ create(base) {
414
+ return exports.GetTestScriptResponse.fromPartial(base !== null && base !== void 0 ? base : {});
415
+ },
416
+ fromPartial(object) {
417
+ const message = createBaseGetTestScriptResponse();
418
+ message.testScript = (object.testScript !== undefined && object.testScript !== null)
419
+ ? script_pb_1.TestScript.fromPartial(object.testScript)
420
+ : undefined;
421
+ return message;
422
+ },
423
+ };
424
+ function createBaseListTestScriptsRequest() {
425
+ return { projectId: "", workflowId: "", includeArchived: false, pageSize: 0, pageToken: "" };
426
+ }
427
+ exports.ListTestScriptsRequest = {
428
+ encode(message, writer = new wire_1.BinaryWriter()) {
429
+ if (message.projectId !== "") {
430
+ writer.uint32(10).string(message.projectId);
431
+ }
432
+ if (message.workflowId !== "") {
433
+ writer.uint32(18).string(message.workflowId);
434
+ }
435
+ if (message.includeArchived !== false) {
436
+ writer.uint32(24).bool(message.includeArchived);
437
+ }
438
+ if (message.pageSize !== 0) {
439
+ writer.uint32(32).int32(message.pageSize);
440
+ }
441
+ if (message.pageToken !== "") {
442
+ writer.uint32(42).string(message.pageToken);
443
+ }
444
+ return writer;
445
+ },
446
+ decode(input, length) {
447
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
448
+ const end = length === undefined ? reader.len : reader.pos + length;
449
+ const message = createBaseListTestScriptsRequest();
450
+ while (reader.pos < end) {
451
+ const tag = reader.uint32();
452
+ switch (tag >>> 3) {
453
+ case 1: {
454
+ if (tag !== 10) {
455
+ break;
456
+ }
457
+ message.projectId = reader.string();
458
+ continue;
459
+ }
460
+ case 2: {
461
+ if (tag !== 18) {
462
+ break;
463
+ }
464
+ message.workflowId = reader.string();
465
+ continue;
466
+ }
467
+ case 3: {
468
+ if (tag !== 24) {
469
+ break;
470
+ }
471
+ message.includeArchived = reader.bool();
472
+ continue;
473
+ }
474
+ case 4: {
475
+ if (tag !== 32) {
476
+ break;
477
+ }
478
+ message.pageSize = reader.int32();
479
+ continue;
480
+ }
481
+ case 5: {
482
+ if (tag !== 42) {
483
+ break;
484
+ }
485
+ message.pageToken = reader.string();
486
+ continue;
487
+ }
488
+ }
489
+ if ((tag & 7) === 4 || tag === 0) {
490
+ break;
491
+ }
492
+ reader.skip(tag & 7);
493
+ }
494
+ return message;
495
+ },
496
+ fromJSON(object) {
497
+ return {
498
+ projectId: isSet(object.projectId)
499
+ ? globalThis.String(object.projectId)
500
+ : isSet(object.project_id)
501
+ ? globalThis.String(object.project_id)
502
+ : "",
503
+ workflowId: isSet(object.workflowId)
504
+ ? globalThis.String(object.workflowId)
505
+ : isSet(object.workflow_id)
506
+ ? globalThis.String(object.workflow_id)
507
+ : "",
508
+ includeArchived: isSet(object.includeArchived)
509
+ ? globalThis.Boolean(object.includeArchived)
510
+ : isSet(object.include_archived)
511
+ ? globalThis.Boolean(object.include_archived)
512
+ : false,
513
+ pageSize: isSet(object.pageSize)
514
+ ? globalThis.Number(object.pageSize)
515
+ : isSet(object.page_size)
516
+ ? globalThis.Number(object.page_size)
517
+ : 0,
518
+ pageToken: isSet(object.pageToken)
519
+ ? globalThis.String(object.pageToken)
520
+ : isSet(object.page_token)
521
+ ? globalThis.String(object.page_token)
522
+ : "",
523
+ };
524
+ },
525
+ toJSON(message) {
526
+ const obj = {};
527
+ if (message.projectId !== "") {
528
+ obj.projectId = message.projectId;
529
+ }
530
+ if (message.workflowId !== "") {
531
+ obj.workflowId = message.workflowId;
532
+ }
533
+ if (message.includeArchived !== false) {
534
+ obj.includeArchived = message.includeArchived;
535
+ }
536
+ if (message.pageSize !== 0) {
537
+ obj.pageSize = Math.round(message.pageSize);
538
+ }
539
+ if (message.pageToken !== "") {
540
+ obj.pageToken = message.pageToken;
541
+ }
542
+ return obj;
543
+ },
544
+ create(base) {
545
+ return exports.ListTestScriptsRequest.fromPartial(base !== null && base !== void 0 ? base : {});
546
+ },
547
+ fromPartial(object) {
548
+ var _a, _b, _c, _d, _e;
549
+ const message = createBaseListTestScriptsRequest();
550
+ message.projectId = (_a = object.projectId) !== null && _a !== void 0 ? _a : "";
551
+ message.workflowId = (_b = object.workflowId) !== null && _b !== void 0 ? _b : "";
552
+ message.includeArchived = (_c = object.includeArchived) !== null && _c !== void 0 ? _c : false;
553
+ message.pageSize = (_d = object.pageSize) !== null && _d !== void 0 ? _d : 0;
554
+ message.pageToken = (_e = object.pageToken) !== null && _e !== void 0 ? _e : "";
555
+ return message;
556
+ },
557
+ };
558
+ function createBaseListTestScriptsResponse() {
559
+ return { testScripts: [], nextPageToken: "" };
560
+ }
561
+ exports.ListTestScriptsResponse = {
562
+ encode(message, writer = new wire_1.BinaryWriter()) {
563
+ for (const v of message.testScripts) {
564
+ script_pb_1.TestScript.encode(v, writer.uint32(10).fork()).join();
565
+ }
566
+ if (message.nextPageToken !== "") {
567
+ writer.uint32(18).string(message.nextPageToken);
568
+ }
569
+ return writer;
570
+ },
571
+ decode(input, length) {
572
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
573
+ const end = length === undefined ? reader.len : reader.pos + length;
574
+ const message = createBaseListTestScriptsResponse();
575
+ while (reader.pos < end) {
576
+ const tag = reader.uint32();
577
+ switch (tag >>> 3) {
578
+ case 1: {
579
+ if (tag !== 10) {
580
+ break;
581
+ }
582
+ message.testScripts.push(script_pb_1.TestScript.decode(reader, reader.uint32()));
583
+ continue;
584
+ }
585
+ case 2: {
586
+ if (tag !== 18) {
587
+ break;
588
+ }
589
+ message.nextPageToken = reader.string();
590
+ continue;
591
+ }
592
+ }
593
+ if ((tag & 7) === 4 || tag === 0) {
594
+ break;
595
+ }
596
+ reader.skip(tag & 7);
597
+ }
598
+ return message;
599
+ },
600
+ fromJSON(object) {
601
+ return {
602
+ testScripts: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.testScripts)
603
+ ? object.testScripts.map((e) => script_pb_1.TestScript.fromJSON(e))
604
+ : globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.test_scripts)
605
+ ? object.test_scripts.map((e) => script_pb_1.TestScript.fromJSON(e))
606
+ : [],
607
+ nextPageToken: isSet(object.nextPageToken)
608
+ ? globalThis.String(object.nextPageToken)
609
+ : isSet(object.next_page_token)
610
+ ? globalThis.String(object.next_page_token)
611
+ : "",
612
+ };
613
+ },
614
+ toJSON(message) {
615
+ var _a;
616
+ const obj = {};
617
+ if ((_a = message.testScripts) === null || _a === void 0 ? void 0 : _a.length) {
618
+ obj.testScripts = message.testScripts.map((e) => script_pb_1.TestScript.toJSON(e));
619
+ }
620
+ if (message.nextPageToken !== "") {
621
+ obj.nextPageToken = message.nextPageToken;
622
+ }
623
+ return obj;
624
+ },
625
+ create(base) {
626
+ return exports.ListTestScriptsResponse.fromPartial(base !== null && base !== void 0 ? base : {});
627
+ },
628
+ fromPartial(object) {
629
+ var _a;
630
+ var _b;
631
+ const message = createBaseListTestScriptsResponse();
632
+ message.testScripts = ((_a = object.testScripts) === null || _a === void 0 ? void 0 : _a.map((e) => script_pb_1.TestScript.fromPartial(e))) || [];
633
+ message.nextPageToken = (_b = object.nextPageToken) !== null && _b !== void 0 ? _b : "";
634
+ return message;
635
+ },
636
+ };
637
+ function createBaseUpdateTestScriptRequest() {
638
+ return {
639
+ projectId: "",
640
+ workflowId: "",
641
+ testScriptId: "",
642
+ testCaseId: "",
643
+ name: "",
644
+ description: "",
645
+ language: 0,
646
+ framework: "",
647
+ status: 0,
648
+ metadata: undefined,
649
+ };
650
+ }
651
+ exports.UpdateTestScriptRequest = {
652
+ encode(message, writer = new wire_1.BinaryWriter()) {
653
+ if (message.projectId !== "") {
654
+ writer.uint32(10).string(message.projectId);
655
+ }
656
+ if (message.workflowId !== "") {
657
+ writer.uint32(18).string(message.workflowId);
658
+ }
659
+ if (message.testScriptId !== "") {
660
+ writer.uint32(26).string(message.testScriptId);
661
+ }
662
+ if (message.testCaseId !== "") {
663
+ writer.uint32(34).string(message.testCaseId);
664
+ }
665
+ if (message.name !== "") {
666
+ writer.uint32(42).string(message.name);
667
+ }
668
+ if (message.description !== "") {
669
+ writer.uint32(50).string(message.description);
670
+ }
671
+ if (message.language !== 0) {
672
+ writer.uint32(56).int32(message.language);
673
+ }
674
+ if (message.framework !== "") {
675
+ writer.uint32(66).string(message.framework);
676
+ }
677
+ if (message.status !== 0) {
678
+ writer.uint32(72).int32(message.status);
679
+ }
680
+ if (message.metadata !== undefined) {
681
+ struct_pb_1.Struct.encode(struct_pb_1.Struct.wrap(message.metadata), writer.uint32(82).fork()).join();
682
+ }
683
+ return writer;
684
+ },
685
+ decode(input, length) {
686
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
687
+ const end = length === undefined ? reader.len : reader.pos + length;
688
+ const message = createBaseUpdateTestScriptRequest();
689
+ while (reader.pos < end) {
690
+ const tag = reader.uint32();
691
+ switch (tag >>> 3) {
692
+ case 1: {
693
+ if (tag !== 10) {
694
+ break;
695
+ }
696
+ message.projectId = reader.string();
697
+ continue;
698
+ }
699
+ case 2: {
700
+ if (tag !== 18) {
701
+ break;
702
+ }
703
+ message.workflowId = reader.string();
704
+ continue;
705
+ }
706
+ case 3: {
707
+ if (tag !== 26) {
708
+ break;
709
+ }
710
+ message.testScriptId = reader.string();
711
+ continue;
712
+ }
713
+ case 4: {
714
+ if (tag !== 34) {
715
+ break;
716
+ }
717
+ message.testCaseId = reader.string();
718
+ continue;
719
+ }
720
+ case 5: {
721
+ if (tag !== 42) {
722
+ break;
723
+ }
724
+ message.name = reader.string();
725
+ continue;
726
+ }
727
+ case 6: {
728
+ if (tag !== 50) {
729
+ break;
730
+ }
731
+ message.description = reader.string();
732
+ continue;
733
+ }
734
+ case 7: {
735
+ if (tag !== 56) {
736
+ break;
737
+ }
738
+ message.language = reader.int32();
739
+ continue;
740
+ }
741
+ case 8: {
742
+ if (tag !== 66) {
743
+ break;
744
+ }
745
+ message.framework = reader.string();
746
+ continue;
747
+ }
748
+ case 9: {
749
+ if (tag !== 72) {
750
+ break;
751
+ }
752
+ message.status = reader.int32();
753
+ continue;
754
+ }
755
+ case 10: {
756
+ if (tag !== 82) {
757
+ break;
758
+ }
759
+ message.metadata = struct_pb_1.Struct.unwrap(struct_pb_1.Struct.decode(reader, reader.uint32()));
760
+ continue;
761
+ }
762
+ }
763
+ if ((tag & 7) === 4 || tag === 0) {
764
+ break;
765
+ }
766
+ reader.skip(tag & 7);
767
+ }
768
+ return message;
769
+ },
770
+ fromJSON(object) {
771
+ return {
772
+ projectId: isSet(object.projectId)
773
+ ? globalThis.String(object.projectId)
774
+ : isSet(object.project_id)
775
+ ? globalThis.String(object.project_id)
776
+ : "",
777
+ workflowId: isSet(object.workflowId)
778
+ ? globalThis.String(object.workflowId)
779
+ : isSet(object.workflow_id)
780
+ ? globalThis.String(object.workflow_id)
781
+ : "",
782
+ testScriptId: isSet(object.testScriptId)
783
+ ? globalThis.String(object.testScriptId)
784
+ : isSet(object.test_script_id)
785
+ ? globalThis.String(object.test_script_id)
786
+ : "",
787
+ testCaseId: isSet(object.testCaseId)
788
+ ? globalThis.String(object.testCaseId)
789
+ : isSet(object.test_case_id)
790
+ ? globalThis.String(object.test_case_id)
791
+ : "",
792
+ name: isSet(object.name) ? globalThis.String(object.name) : "",
793
+ description: isSet(object.description) ? globalThis.String(object.description) : "",
794
+ language: isSet(object.language) ? (0, script_pb_1.scriptLanguageFromJSON)(object.language) : 0,
795
+ framework: isSet(object.framework) ? globalThis.String(object.framework) : "",
796
+ status: isSet(object.status) ? (0, script_pb_1.scriptStatusFromJSON)(object.status) : 0,
797
+ metadata: isObject(object.metadata) ? object.metadata : undefined,
798
+ };
799
+ },
800
+ toJSON(message) {
801
+ const obj = {};
802
+ if (message.projectId !== "") {
803
+ obj.projectId = message.projectId;
804
+ }
805
+ if (message.workflowId !== "") {
806
+ obj.workflowId = message.workflowId;
807
+ }
808
+ if (message.testScriptId !== "") {
809
+ obj.testScriptId = message.testScriptId;
810
+ }
811
+ if (message.testCaseId !== "") {
812
+ obj.testCaseId = message.testCaseId;
813
+ }
814
+ if (message.name !== "") {
815
+ obj.name = message.name;
816
+ }
817
+ if (message.description !== "") {
818
+ obj.description = message.description;
819
+ }
820
+ if (message.language !== 0) {
821
+ obj.language = (0, script_pb_1.scriptLanguageToJSON)(message.language);
822
+ }
823
+ if (message.framework !== "") {
824
+ obj.framework = message.framework;
825
+ }
826
+ if (message.status !== 0) {
827
+ obj.status = (0, script_pb_1.scriptStatusToJSON)(message.status);
828
+ }
829
+ if (message.metadata !== undefined) {
830
+ obj.metadata = message.metadata;
831
+ }
832
+ return obj;
833
+ },
834
+ create(base) {
835
+ return exports.UpdateTestScriptRequest.fromPartial(base !== null && base !== void 0 ? base : {});
836
+ },
837
+ fromPartial(object) {
838
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
839
+ const message = createBaseUpdateTestScriptRequest();
840
+ message.projectId = (_a = object.projectId) !== null && _a !== void 0 ? _a : "";
841
+ message.workflowId = (_b = object.workflowId) !== null && _b !== void 0 ? _b : "";
842
+ message.testScriptId = (_c = object.testScriptId) !== null && _c !== void 0 ? _c : "";
843
+ message.testCaseId = (_d = object.testCaseId) !== null && _d !== void 0 ? _d : "";
844
+ message.name = (_e = object.name) !== null && _e !== void 0 ? _e : "";
845
+ message.description = (_f = object.description) !== null && _f !== void 0 ? _f : "";
846
+ message.language = (_g = object.language) !== null && _g !== void 0 ? _g : 0;
847
+ message.framework = (_h = object.framework) !== null && _h !== void 0 ? _h : "";
848
+ message.status = (_j = object.status) !== null && _j !== void 0 ? _j : 0;
849
+ message.metadata = (_k = object.metadata) !== null && _k !== void 0 ? _k : undefined;
850
+ return message;
851
+ },
852
+ };
853
+ function createBaseUpdateTestScriptResponse() {
854
+ return { testScript: undefined };
855
+ }
856
+ exports.UpdateTestScriptResponse = {
857
+ encode(message, writer = new wire_1.BinaryWriter()) {
858
+ if (message.testScript !== undefined) {
859
+ script_pb_1.TestScript.encode(message.testScript, writer.uint32(10).fork()).join();
860
+ }
861
+ return writer;
862
+ },
863
+ decode(input, length) {
864
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
865
+ const end = length === undefined ? reader.len : reader.pos + length;
866
+ const message = createBaseUpdateTestScriptResponse();
867
+ while (reader.pos < end) {
868
+ const tag = reader.uint32();
869
+ switch (tag >>> 3) {
870
+ case 1: {
871
+ if (tag !== 10) {
872
+ break;
873
+ }
874
+ message.testScript = script_pb_1.TestScript.decode(reader, reader.uint32());
875
+ continue;
876
+ }
877
+ }
878
+ if ((tag & 7) === 4 || tag === 0) {
879
+ break;
880
+ }
881
+ reader.skip(tag & 7);
882
+ }
883
+ return message;
884
+ },
885
+ fromJSON(object) {
886
+ return {
887
+ testScript: isSet(object.testScript)
888
+ ? script_pb_1.TestScript.fromJSON(object.testScript)
889
+ : isSet(object.test_script)
890
+ ? script_pb_1.TestScript.fromJSON(object.test_script)
891
+ : undefined,
892
+ };
893
+ },
894
+ toJSON(message) {
895
+ const obj = {};
896
+ if (message.testScript !== undefined) {
897
+ obj.testScript = script_pb_1.TestScript.toJSON(message.testScript);
898
+ }
899
+ return obj;
900
+ },
901
+ create(base) {
902
+ return exports.UpdateTestScriptResponse.fromPartial(base !== null && base !== void 0 ? base : {});
903
+ },
904
+ fromPartial(object) {
905
+ const message = createBaseUpdateTestScriptResponse();
906
+ message.testScript = (object.testScript !== undefined && object.testScript !== null)
907
+ ? script_pb_1.TestScript.fromPartial(object.testScript)
908
+ : undefined;
909
+ return message;
910
+ },
911
+ };
912
+ function createBaseArchiveTestScriptRequest() {
913
+ return { projectId: "", workflowId: "", testScriptId: "" };
914
+ }
915
+ exports.ArchiveTestScriptRequest = {
916
+ encode(message, writer = new wire_1.BinaryWriter()) {
917
+ if (message.projectId !== "") {
918
+ writer.uint32(10).string(message.projectId);
919
+ }
920
+ if (message.workflowId !== "") {
921
+ writer.uint32(18).string(message.workflowId);
922
+ }
923
+ if (message.testScriptId !== "") {
924
+ writer.uint32(26).string(message.testScriptId);
925
+ }
926
+ return writer;
927
+ },
928
+ decode(input, length) {
929
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
930
+ const end = length === undefined ? reader.len : reader.pos + length;
931
+ const message = createBaseArchiveTestScriptRequest();
932
+ while (reader.pos < end) {
933
+ const tag = reader.uint32();
934
+ switch (tag >>> 3) {
935
+ case 1: {
936
+ if (tag !== 10) {
937
+ break;
938
+ }
939
+ message.projectId = reader.string();
940
+ continue;
941
+ }
942
+ case 2: {
943
+ if (tag !== 18) {
944
+ break;
945
+ }
946
+ message.workflowId = reader.string();
947
+ continue;
948
+ }
949
+ case 3: {
950
+ if (tag !== 26) {
951
+ break;
952
+ }
953
+ message.testScriptId = reader.string();
954
+ continue;
955
+ }
956
+ }
957
+ if ((tag & 7) === 4 || tag === 0) {
958
+ break;
959
+ }
960
+ reader.skip(tag & 7);
961
+ }
962
+ return message;
963
+ },
964
+ fromJSON(object) {
965
+ return {
966
+ projectId: isSet(object.projectId)
967
+ ? globalThis.String(object.projectId)
968
+ : isSet(object.project_id)
969
+ ? globalThis.String(object.project_id)
970
+ : "",
971
+ workflowId: isSet(object.workflowId)
972
+ ? globalThis.String(object.workflowId)
973
+ : isSet(object.workflow_id)
974
+ ? globalThis.String(object.workflow_id)
975
+ : "",
976
+ testScriptId: isSet(object.testScriptId)
977
+ ? globalThis.String(object.testScriptId)
978
+ : isSet(object.test_script_id)
979
+ ? globalThis.String(object.test_script_id)
980
+ : "",
981
+ };
982
+ },
983
+ toJSON(message) {
984
+ const obj = {};
985
+ if (message.projectId !== "") {
986
+ obj.projectId = message.projectId;
987
+ }
988
+ if (message.workflowId !== "") {
989
+ obj.workflowId = message.workflowId;
990
+ }
991
+ if (message.testScriptId !== "") {
992
+ obj.testScriptId = message.testScriptId;
993
+ }
994
+ return obj;
995
+ },
996
+ create(base) {
997
+ return exports.ArchiveTestScriptRequest.fromPartial(base !== null && base !== void 0 ? base : {});
998
+ },
999
+ fromPartial(object) {
1000
+ var _a, _b, _c;
1001
+ const message = createBaseArchiveTestScriptRequest();
1002
+ message.projectId = (_a = object.projectId) !== null && _a !== void 0 ? _a : "";
1003
+ message.workflowId = (_b = object.workflowId) !== null && _b !== void 0 ? _b : "";
1004
+ message.testScriptId = (_c = object.testScriptId) !== null && _c !== void 0 ? _c : "";
1005
+ return message;
1006
+ },
1007
+ };
1008
+ function createBaseArchiveTestScriptResponse() {
1009
+ return { testScript: undefined };
1010
+ }
1011
+ exports.ArchiveTestScriptResponse = {
1012
+ encode(message, writer = new wire_1.BinaryWriter()) {
1013
+ if (message.testScript !== undefined) {
1014
+ script_pb_1.TestScript.encode(message.testScript, writer.uint32(10).fork()).join();
1015
+ }
1016
+ return writer;
1017
+ },
1018
+ decode(input, length) {
1019
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
1020
+ const end = length === undefined ? reader.len : reader.pos + length;
1021
+ const message = createBaseArchiveTestScriptResponse();
1022
+ while (reader.pos < end) {
1023
+ const tag = reader.uint32();
1024
+ switch (tag >>> 3) {
1025
+ case 1: {
1026
+ if (tag !== 10) {
1027
+ break;
1028
+ }
1029
+ message.testScript = script_pb_1.TestScript.decode(reader, reader.uint32());
1030
+ continue;
1031
+ }
1032
+ }
1033
+ if ((tag & 7) === 4 || tag === 0) {
1034
+ break;
1035
+ }
1036
+ reader.skip(tag & 7);
1037
+ }
1038
+ return message;
1039
+ },
1040
+ fromJSON(object) {
1041
+ return {
1042
+ testScript: isSet(object.testScript)
1043
+ ? script_pb_1.TestScript.fromJSON(object.testScript)
1044
+ : isSet(object.test_script)
1045
+ ? script_pb_1.TestScript.fromJSON(object.test_script)
1046
+ : undefined,
1047
+ };
1048
+ },
1049
+ toJSON(message) {
1050
+ const obj = {};
1051
+ if (message.testScript !== undefined) {
1052
+ obj.testScript = script_pb_1.TestScript.toJSON(message.testScript);
1053
+ }
1054
+ return obj;
1055
+ },
1056
+ create(base) {
1057
+ return exports.ArchiveTestScriptResponse.fromPartial(base !== null && base !== void 0 ? base : {});
1058
+ },
1059
+ fromPartial(object) {
1060
+ const message = createBaseArchiveTestScriptResponse();
1061
+ message.testScript = (object.testScript !== undefined && object.testScript !== null)
1062
+ ? script_pb_1.TestScript.fromPartial(object.testScript)
1063
+ : undefined;
1064
+ return message;
1065
+ },
1066
+ };
1067
+ function createBaseDeleteTestScriptRequest() {
1068
+ return { projectId: "", workflowId: "", testScriptId: "" };
1069
+ }
1070
+ exports.DeleteTestScriptRequest = {
1071
+ encode(message, writer = new wire_1.BinaryWriter()) {
1072
+ if (message.projectId !== "") {
1073
+ writer.uint32(10).string(message.projectId);
1074
+ }
1075
+ if (message.workflowId !== "") {
1076
+ writer.uint32(18).string(message.workflowId);
1077
+ }
1078
+ if (message.testScriptId !== "") {
1079
+ writer.uint32(26).string(message.testScriptId);
1080
+ }
1081
+ return writer;
1082
+ },
1083
+ decode(input, length) {
1084
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
1085
+ const end = length === undefined ? reader.len : reader.pos + length;
1086
+ const message = createBaseDeleteTestScriptRequest();
1087
+ while (reader.pos < end) {
1088
+ const tag = reader.uint32();
1089
+ switch (tag >>> 3) {
1090
+ case 1: {
1091
+ if (tag !== 10) {
1092
+ break;
1093
+ }
1094
+ message.projectId = reader.string();
1095
+ continue;
1096
+ }
1097
+ case 2: {
1098
+ if (tag !== 18) {
1099
+ break;
1100
+ }
1101
+ message.workflowId = reader.string();
1102
+ continue;
1103
+ }
1104
+ case 3: {
1105
+ if (tag !== 26) {
1106
+ break;
1107
+ }
1108
+ message.testScriptId = reader.string();
1109
+ continue;
1110
+ }
1111
+ }
1112
+ if ((tag & 7) === 4 || tag === 0) {
1113
+ break;
1114
+ }
1115
+ reader.skip(tag & 7);
1116
+ }
1117
+ return message;
1118
+ },
1119
+ fromJSON(object) {
1120
+ return {
1121
+ projectId: isSet(object.projectId)
1122
+ ? globalThis.String(object.projectId)
1123
+ : isSet(object.project_id)
1124
+ ? globalThis.String(object.project_id)
1125
+ : "",
1126
+ workflowId: isSet(object.workflowId)
1127
+ ? globalThis.String(object.workflowId)
1128
+ : isSet(object.workflow_id)
1129
+ ? globalThis.String(object.workflow_id)
1130
+ : "",
1131
+ testScriptId: isSet(object.testScriptId)
1132
+ ? globalThis.String(object.testScriptId)
1133
+ : isSet(object.test_script_id)
1134
+ ? globalThis.String(object.test_script_id)
1135
+ : "",
1136
+ };
1137
+ },
1138
+ toJSON(message) {
1139
+ const obj = {};
1140
+ if (message.projectId !== "") {
1141
+ obj.projectId = message.projectId;
1142
+ }
1143
+ if (message.workflowId !== "") {
1144
+ obj.workflowId = message.workflowId;
1145
+ }
1146
+ if (message.testScriptId !== "") {
1147
+ obj.testScriptId = message.testScriptId;
1148
+ }
1149
+ return obj;
1150
+ },
1151
+ create(base) {
1152
+ return exports.DeleteTestScriptRequest.fromPartial(base !== null && base !== void 0 ? base : {});
1153
+ },
1154
+ fromPartial(object) {
1155
+ var _a, _b, _c;
1156
+ const message = createBaseDeleteTestScriptRequest();
1157
+ message.projectId = (_a = object.projectId) !== null && _a !== void 0 ? _a : "";
1158
+ message.workflowId = (_b = object.workflowId) !== null && _b !== void 0 ? _b : "";
1159
+ message.testScriptId = (_c = object.testScriptId) !== null && _c !== void 0 ? _c : "";
1160
+ return message;
1161
+ },
1162
+ };
1163
+ function createBaseDeleteTestScriptResponse() {
1164
+ return {};
1165
+ }
1166
+ exports.DeleteTestScriptResponse = {
1167
+ encode(_, writer = new wire_1.BinaryWriter()) {
1168
+ return writer;
1169
+ },
1170
+ decode(input, length) {
1171
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
1172
+ const end = length === undefined ? reader.len : reader.pos + length;
1173
+ const message = createBaseDeleteTestScriptResponse();
1174
+ while (reader.pos < end) {
1175
+ const tag = reader.uint32();
1176
+ switch (tag >>> 3) {
1177
+ }
1178
+ if ((tag & 7) === 4 || tag === 0) {
1179
+ break;
1180
+ }
1181
+ reader.skip(tag & 7);
1182
+ }
1183
+ return message;
1184
+ },
1185
+ fromJSON(_) {
1186
+ return {};
1187
+ },
1188
+ toJSON(_) {
1189
+ const obj = {};
1190
+ return obj;
1191
+ },
1192
+ create(base) {
1193
+ return exports.DeleteTestScriptResponse.fromPartial(base !== null && base !== void 0 ? base : {});
1194
+ },
1195
+ fromPartial(_) {
1196
+ const message = createBaseDeleteTestScriptResponse();
1197
+ return message;
1198
+ },
1199
+ };
1200
+ function createBaseCreateTestScriptVersionRequest() {
1201
+ return {
1202
+ projectId: "",
1203
+ workflowId: "",
1204
+ testScriptId: "",
1205
+ sourceCode: "",
1206
+ promptVersion: "",
1207
+ metadata: undefined,
1208
+ sourceLocationType: 0,
1209
+ storageConnectionId: "",
1210
+ sourceUri: "",
1211
+ externalRevision: "",
1212
+ sourceChecksum: "",
1213
+ sourceSizeBytes: 0,
1214
+ };
1215
+ }
1216
+ exports.CreateTestScriptVersionRequest = {
1217
+ encode(message, writer = new wire_1.BinaryWriter()) {
1218
+ if (message.projectId !== "") {
1219
+ writer.uint32(10).string(message.projectId);
1220
+ }
1221
+ if (message.workflowId !== "") {
1222
+ writer.uint32(18).string(message.workflowId);
1223
+ }
1224
+ if (message.testScriptId !== "") {
1225
+ writer.uint32(26).string(message.testScriptId);
1226
+ }
1227
+ if (message.sourceCode !== "") {
1228
+ writer.uint32(34).string(message.sourceCode);
1229
+ }
1230
+ if (message.promptVersion !== "") {
1231
+ writer.uint32(42).string(message.promptVersion);
1232
+ }
1233
+ if (message.metadata !== undefined) {
1234
+ struct_pb_1.Struct.encode(struct_pb_1.Struct.wrap(message.metadata), writer.uint32(50).fork()).join();
1235
+ }
1236
+ if (message.sourceLocationType !== 0) {
1237
+ writer.uint32(56).int32(message.sourceLocationType);
1238
+ }
1239
+ if (message.storageConnectionId !== "") {
1240
+ writer.uint32(66).string(message.storageConnectionId);
1241
+ }
1242
+ if (message.sourceUri !== "") {
1243
+ writer.uint32(74).string(message.sourceUri);
1244
+ }
1245
+ if (message.externalRevision !== "") {
1246
+ writer.uint32(82).string(message.externalRevision);
1247
+ }
1248
+ if (message.sourceChecksum !== "") {
1249
+ writer.uint32(90).string(message.sourceChecksum);
1250
+ }
1251
+ if (message.sourceSizeBytes !== 0) {
1252
+ writer.uint32(96).int64(message.sourceSizeBytes);
1253
+ }
1254
+ return writer;
1255
+ },
1256
+ decode(input, length) {
1257
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
1258
+ const end = length === undefined ? reader.len : reader.pos + length;
1259
+ const message = createBaseCreateTestScriptVersionRequest();
1260
+ while (reader.pos < end) {
1261
+ const tag = reader.uint32();
1262
+ switch (tag >>> 3) {
1263
+ case 1: {
1264
+ if (tag !== 10) {
1265
+ break;
1266
+ }
1267
+ message.projectId = reader.string();
1268
+ continue;
1269
+ }
1270
+ case 2: {
1271
+ if (tag !== 18) {
1272
+ break;
1273
+ }
1274
+ message.workflowId = reader.string();
1275
+ continue;
1276
+ }
1277
+ case 3: {
1278
+ if (tag !== 26) {
1279
+ break;
1280
+ }
1281
+ message.testScriptId = reader.string();
1282
+ continue;
1283
+ }
1284
+ case 4: {
1285
+ if (tag !== 34) {
1286
+ break;
1287
+ }
1288
+ message.sourceCode = reader.string();
1289
+ continue;
1290
+ }
1291
+ case 5: {
1292
+ if (tag !== 42) {
1293
+ break;
1294
+ }
1295
+ message.promptVersion = reader.string();
1296
+ continue;
1297
+ }
1298
+ case 6: {
1299
+ if (tag !== 50) {
1300
+ break;
1301
+ }
1302
+ message.metadata = struct_pb_1.Struct.unwrap(struct_pb_1.Struct.decode(reader, reader.uint32()));
1303
+ continue;
1304
+ }
1305
+ case 7: {
1306
+ if (tag !== 56) {
1307
+ break;
1308
+ }
1309
+ message.sourceLocationType = reader.int32();
1310
+ continue;
1311
+ }
1312
+ case 8: {
1313
+ if (tag !== 66) {
1314
+ break;
1315
+ }
1316
+ message.storageConnectionId = reader.string();
1317
+ continue;
1318
+ }
1319
+ case 9: {
1320
+ if (tag !== 74) {
1321
+ break;
1322
+ }
1323
+ message.sourceUri = reader.string();
1324
+ continue;
1325
+ }
1326
+ case 10: {
1327
+ if (tag !== 82) {
1328
+ break;
1329
+ }
1330
+ message.externalRevision = reader.string();
1331
+ continue;
1332
+ }
1333
+ case 11: {
1334
+ if (tag !== 90) {
1335
+ break;
1336
+ }
1337
+ message.sourceChecksum = reader.string();
1338
+ continue;
1339
+ }
1340
+ case 12: {
1341
+ if (tag !== 96) {
1342
+ break;
1343
+ }
1344
+ message.sourceSizeBytes = longToNumber(reader.int64());
1345
+ continue;
1346
+ }
1347
+ }
1348
+ if ((tag & 7) === 4 || tag === 0) {
1349
+ break;
1350
+ }
1351
+ reader.skip(tag & 7);
1352
+ }
1353
+ return message;
1354
+ },
1355
+ fromJSON(object) {
1356
+ return {
1357
+ projectId: isSet(object.projectId)
1358
+ ? globalThis.String(object.projectId)
1359
+ : isSet(object.project_id)
1360
+ ? globalThis.String(object.project_id)
1361
+ : "",
1362
+ workflowId: isSet(object.workflowId)
1363
+ ? globalThis.String(object.workflowId)
1364
+ : isSet(object.workflow_id)
1365
+ ? globalThis.String(object.workflow_id)
1366
+ : "",
1367
+ testScriptId: isSet(object.testScriptId)
1368
+ ? globalThis.String(object.testScriptId)
1369
+ : isSet(object.test_script_id)
1370
+ ? globalThis.String(object.test_script_id)
1371
+ : "",
1372
+ sourceCode: isSet(object.sourceCode)
1373
+ ? globalThis.String(object.sourceCode)
1374
+ : isSet(object.source_code)
1375
+ ? globalThis.String(object.source_code)
1376
+ : "",
1377
+ promptVersion: isSet(object.promptVersion)
1378
+ ? globalThis.String(object.promptVersion)
1379
+ : isSet(object.prompt_version)
1380
+ ? globalThis.String(object.prompt_version)
1381
+ : "",
1382
+ metadata: isObject(object.metadata) ? object.metadata : undefined,
1383
+ sourceLocationType: isSet(object.sourceLocationType)
1384
+ ? (0, script_pb_1.scriptSourceLocationTypeFromJSON)(object.sourceLocationType)
1385
+ : isSet(object.source_location_type)
1386
+ ? (0, script_pb_1.scriptSourceLocationTypeFromJSON)(object.source_location_type)
1387
+ : 0,
1388
+ storageConnectionId: isSet(object.storageConnectionId)
1389
+ ? globalThis.String(object.storageConnectionId)
1390
+ : isSet(object.storage_connection_id)
1391
+ ? globalThis.String(object.storage_connection_id)
1392
+ : "",
1393
+ sourceUri: isSet(object.sourceUri)
1394
+ ? globalThis.String(object.sourceUri)
1395
+ : isSet(object.source_uri)
1396
+ ? globalThis.String(object.source_uri)
1397
+ : "",
1398
+ externalRevision: isSet(object.externalRevision)
1399
+ ? globalThis.String(object.externalRevision)
1400
+ : isSet(object.external_revision)
1401
+ ? globalThis.String(object.external_revision)
1402
+ : "",
1403
+ sourceChecksum: isSet(object.sourceChecksum)
1404
+ ? globalThis.String(object.sourceChecksum)
1405
+ : isSet(object.source_checksum)
1406
+ ? globalThis.String(object.source_checksum)
1407
+ : "",
1408
+ sourceSizeBytes: isSet(object.sourceSizeBytes)
1409
+ ? globalThis.Number(object.sourceSizeBytes)
1410
+ : isSet(object.source_size_bytes)
1411
+ ? globalThis.Number(object.source_size_bytes)
1412
+ : 0,
1413
+ };
1414
+ },
1415
+ toJSON(message) {
1416
+ const obj = {};
1417
+ if (message.projectId !== "") {
1418
+ obj.projectId = message.projectId;
1419
+ }
1420
+ if (message.workflowId !== "") {
1421
+ obj.workflowId = message.workflowId;
1422
+ }
1423
+ if (message.testScriptId !== "") {
1424
+ obj.testScriptId = message.testScriptId;
1425
+ }
1426
+ if (message.sourceCode !== "") {
1427
+ obj.sourceCode = message.sourceCode;
1428
+ }
1429
+ if (message.promptVersion !== "") {
1430
+ obj.promptVersion = message.promptVersion;
1431
+ }
1432
+ if (message.metadata !== undefined) {
1433
+ obj.metadata = message.metadata;
1434
+ }
1435
+ if (message.sourceLocationType !== 0) {
1436
+ obj.sourceLocationType = (0, script_pb_1.scriptSourceLocationTypeToJSON)(message.sourceLocationType);
1437
+ }
1438
+ if (message.storageConnectionId !== "") {
1439
+ obj.storageConnectionId = message.storageConnectionId;
1440
+ }
1441
+ if (message.sourceUri !== "") {
1442
+ obj.sourceUri = message.sourceUri;
1443
+ }
1444
+ if (message.externalRevision !== "") {
1445
+ obj.externalRevision = message.externalRevision;
1446
+ }
1447
+ if (message.sourceChecksum !== "") {
1448
+ obj.sourceChecksum = message.sourceChecksum;
1449
+ }
1450
+ if (message.sourceSizeBytes !== 0) {
1451
+ obj.sourceSizeBytes = Math.round(message.sourceSizeBytes);
1452
+ }
1453
+ return obj;
1454
+ },
1455
+ create(base) {
1456
+ return exports.CreateTestScriptVersionRequest.fromPartial(base !== null && base !== void 0 ? base : {});
1457
+ },
1458
+ fromPartial(object) {
1459
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
1460
+ const message = createBaseCreateTestScriptVersionRequest();
1461
+ message.projectId = (_a = object.projectId) !== null && _a !== void 0 ? _a : "";
1462
+ message.workflowId = (_b = object.workflowId) !== null && _b !== void 0 ? _b : "";
1463
+ message.testScriptId = (_c = object.testScriptId) !== null && _c !== void 0 ? _c : "";
1464
+ message.sourceCode = (_d = object.sourceCode) !== null && _d !== void 0 ? _d : "";
1465
+ message.promptVersion = (_e = object.promptVersion) !== null && _e !== void 0 ? _e : "";
1466
+ message.metadata = (_f = object.metadata) !== null && _f !== void 0 ? _f : undefined;
1467
+ message.sourceLocationType = (_g = object.sourceLocationType) !== null && _g !== void 0 ? _g : 0;
1468
+ message.storageConnectionId = (_h = object.storageConnectionId) !== null && _h !== void 0 ? _h : "";
1469
+ message.sourceUri = (_j = object.sourceUri) !== null && _j !== void 0 ? _j : "";
1470
+ message.externalRevision = (_k = object.externalRevision) !== null && _k !== void 0 ? _k : "";
1471
+ message.sourceChecksum = (_l = object.sourceChecksum) !== null && _l !== void 0 ? _l : "";
1472
+ message.sourceSizeBytes = (_m = object.sourceSizeBytes) !== null && _m !== void 0 ? _m : 0;
1473
+ return message;
1474
+ },
1475
+ };
1476
+ function createBaseCreateTestScriptVersionResponse() {
1477
+ return { testScriptVersion: undefined };
1478
+ }
1479
+ exports.CreateTestScriptVersionResponse = {
1480
+ encode(message, writer = new wire_1.BinaryWriter()) {
1481
+ if (message.testScriptVersion !== undefined) {
1482
+ script_pb_1.TestScriptVersion.encode(message.testScriptVersion, writer.uint32(10).fork()).join();
1483
+ }
1484
+ return writer;
1485
+ },
1486
+ decode(input, length) {
1487
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
1488
+ const end = length === undefined ? reader.len : reader.pos + length;
1489
+ const message = createBaseCreateTestScriptVersionResponse();
1490
+ while (reader.pos < end) {
1491
+ const tag = reader.uint32();
1492
+ switch (tag >>> 3) {
1493
+ case 1: {
1494
+ if (tag !== 10) {
1495
+ break;
1496
+ }
1497
+ message.testScriptVersion = script_pb_1.TestScriptVersion.decode(reader, reader.uint32());
1498
+ continue;
1499
+ }
1500
+ }
1501
+ if ((tag & 7) === 4 || tag === 0) {
1502
+ break;
1503
+ }
1504
+ reader.skip(tag & 7);
1505
+ }
1506
+ return message;
1507
+ },
1508
+ fromJSON(object) {
1509
+ return {
1510
+ testScriptVersion: isSet(object.testScriptVersion)
1511
+ ? script_pb_1.TestScriptVersion.fromJSON(object.testScriptVersion)
1512
+ : isSet(object.test_script_version)
1513
+ ? script_pb_1.TestScriptVersion.fromJSON(object.test_script_version)
1514
+ : undefined,
1515
+ };
1516
+ },
1517
+ toJSON(message) {
1518
+ const obj = {};
1519
+ if (message.testScriptVersion !== undefined) {
1520
+ obj.testScriptVersion = script_pb_1.TestScriptVersion.toJSON(message.testScriptVersion);
1521
+ }
1522
+ return obj;
1523
+ },
1524
+ create(base) {
1525
+ return exports.CreateTestScriptVersionResponse.fromPartial(base !== null && base !== void 0 ? base : {});
1526
+ },
1527
+ fromPartial(object) {
1528
+ const message = createBaseCreateTestScriptVersionResponse();
1529
+ message.testScriptVersion = (object.testScriptVersion !== undefined && object.testScriptVersion !== null)
1530
+ ? script_pb_1.TestScriptVersion.fromPartial(object.testScriptVersion)
1531
+ : undefined;
1532
+ return message;
1533
+ },
1534
+ };
1535
+ function createBaseGetTestScriptVersionRequest() {
1536
+ return { projectId: "", workflowId: "", testScriptId: "", testScriptVersionId: "" };
1537
+ }
1538
+ exports.GetTestScriptVersionRequest = {
1539
+ encode(message, writer = new wire_1.BinaryWriter()) {
1540
+ if (message.projectId !== "") {
1541
+ writer.uint32(10).string(message.projectId);
1542
+ }
1543
+ if (message.workflowId !== "") {
1544
+ writer.uint32(18).string(message.workflowId);
1545
+ }
1546
+ if (message.testScriptId !== "") {
1547
+ writer.uint32(26).string(message.testScriptId);
1548
+ }
1549
+ if (message.testScriptVersionId !== "") {
1550
+ writer.uint32(34).string(message.testScriptVersionId);
1551
+ }
1552
+ return writer;
1553
+ },
1554
+ decode(input, length) {
1555
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
1556
+ const end = length === undefined ? reader.len : reader.pos + length;
1557
+ const message = createBaseGetTestScriptVersionRequest();
1558
+ while (reader.pos < end) {
1559
+ const tag = reader.uint32();
1560
+ switch (tag >>> 3) {
1561
+ case 1: {
1562
+ if (tag !== 10) {
1563
+ break;
1564
+ }
1565
+ message.projectId = reader.string();
1566
+ continue;
1567
+ }
1568
+ case 2: {
1569
+ if (tag !== 18) {
1570
+ break;
1571
+ }
1572
+ message.workflowId = reader.string();
1573
+ continue;
1574
+ }
1575
+ case 3: {
1576
+ if (tag !== 26) {
1577
+ break;
1578
+ }
1579
+ message.testScriptId = reader.string();
1580
+ continue;
1581
+ }
1582
+ case 4: {
1583
+ if (tag !== 34) {
1584
+ break;
1585
+ }
1586
+ message.testScriptVersionId = reader.string();
1587
+ continue;
1588
+ }
1589
+ }
1590
+ if ((tag & 7) === 4 || tag === 0) {
1591
+ break;
1592
+ }
1593
+ reader.skip(tag & 7);
1594
+ }
1595
+ return message;
1596
+ },
1597
+ fromJSON(object) {
1598
+ return {
1599
+ projectId: isSet(object.projectId)
1600
+ ? globalThis.String(object.projectId)
1601
+ : isSet(object.project_id)
1602
+ ? globalThis.String(object.project_id)
1603
+ : "",
1604
+ workflowId: isSet(object.workflowId)
1605
+ ? globalThis.String(object.workflowId)
1606
+ : isSet(object.workflow_id)
1607
+ ? globalThis.String(object.workflow_id)
1608
+ : "",
1609
+ testScriptId: isSet(object.testScriptId)
1610
+ ? globalThis.String(object.testScriptId)
1611
+ : isSet(object.test_script_id)
1612
+ ? globalThis.String(object.test_script_id)
1613
+ : "",
1614
+ testScriptVersionId: isSet(object.testScriptVersionId)
1615
+ ? globalThis.String(object.testScriptVersionId)
1616
+ : isSet(object.test_script_version_id)
1617
+ ? globalThis.String(object.test_script_version_id)
1618
+ : "",
1619
+ };
1620
+ },
1621
+ toJSON(message) {
1622
+ const obj = {};
1623
+ if (message.projectId !== "") {
1624
+ obj.projectId = message.projectId;
1625
+ }
1626
+ if (message.workflowId !== "") {
1627
+ obj.workflowId = message.workflowId;
1628
+ }
1629
+ if (message.testScriptId !== "") {
1630
+ obj.testScriptId = message.testScriptId;
1631
+ }
1632
+ if (message.testScriptVersionId !== "") {
1633
+ obj.testScriptVersionId = message.testScriptVersionId;
1634
+ }
1635
+ return obj;
1636
+ },
1637
+ create(base) {
1638
+ return exports.GetTestScriptVersionRequest.fromPartial(base !== null && base !== void 0 ? base : {});
1639
+ },
1640
+ fromPartial(object) {
1641
+ var _a, _b, _c, _d;
1642
+ const message = createBaseGetTestScriptVersionRequest();
1643
+ message.projectId = (_a = object.projectId) !== null && _a !== void 0 ? _a : "";
1644
+ message.workflowId = (_b = object.workflowId) !== null && _b !== void 0 ? _b : "";
1645
+ message.testScriptId = (_c = object.testScriptId) !== null && _c !== void 0 ? _c : "";
1646
+ message.testScriptVersionId = (_d = object.testScriptVersionId) !== null && _d !== void 0 ? _d : "";
1647
+ return message;
1648
+ },
1649
+ };
1650
+ function createBaseGetTestScriptVersionResponse() {
1651
+ return { testScriptVersion: undefined };
1652
+ }
1653
+ exports.GetTestScriptVersionResponse = {
1654
+ encode(message, writer = new wire_1.BinaryWriter()) {
1655
+ if (message.testScriptVersion !== undefined) {
1656
+ script_pb_1.TestScriptVersion.encode(message.testScriptVersion, writer.uint32(10).fork()).join();
1657
+ }
1658
+ return writer;
1659
+ },
1660
+ decode(input, length) {
1661
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
1662
+ const end = length === undefined ? reader.len : reader.pos + length;
1663
+ const message = createBaseGetTestScriptVersionResponse();
1664
+ while (reader.pos < end) {
1665
+ const tag = reader.uint32();
1666
+ switch (tag >>> 3) {
1667
+ case 1: {
1668
+ if (tag !== 10) {
1669
+ break;
1670
+ }
1671
+ message.testScriptVersion = script_pb_1.TestScriptVersion.decode(reader, reader.uint32());
1672
+ continue;
1673
+ }
1674
+ }
1675
+ if ((tag & 7) === 4 || tag === 0) {
1676
+ break;
1677
+ }
1678
+ reader.skip(tag & 7);
1679
+ }
1680
+ return message;
1681
+ },
1682
+ fromJSON(object) {
1683
+ return {
1684
+ testScriptVersion: isSet(object.testScriptVersion)
1685
+ ? script_pb_1.TestScriptVersion.fromJSON(object.testScriptVersion)
1686
+ : isSet(object.test_script_version)
1687
+ ? script_pb_1.TestScriptVersion.fromJSON(object.test_script_version)
1688
+ : undefined,
1689
+ };
1690
+ },
1691
+ toJSON(message) {
1692
+ const obj = {};
1693
+ if (message.testScriptVersion !== undefined) {
1694
+ obj.testScriptVersion = script_pb_1.TestScriptVersion.toJSON(message.testScriptVersion);
1695
+ }
1696
+ return obj;
1697
+ },
1698
+ create(base) {
1699
+ return exports.GetTestScriptVersionResponse.fromPartial(base !== null && base !== void 0 ? base : {});
1700
+ },
1701
+ fromPartial(object) {
1702
+ const message = createBaseGetTestScriptVersionResponse();
1703
+ message.testScriptVersion = (object.testScriptVersion !== undefined && object.testScriptVersion !== null)
1704
+ ? script_pb_1.TestScriptVersion.fromPartial(object.testScriptVersion)
1705
+ : undefined;
1706
+ return message;
1707
+ },
1708
+ };
1709
+ function createBaseListTestScriptVersionsRequest() {
1710
+ return { projectId: "", workflowId: "", testScriptId: "", pageSize: 0, pageToken: "" };
1711
+ }
1712
+ exports.ListTestScriptVersionsRequest = {
1713
+ encode(message, writer = new wire_1.BinaryWriter()) {
1714
+ if (message.projectId !== "") {
1715
+ writer.uint32(10).string(message.projectId);
1716
+ }
1717
+ if (message.workflowId !== "") {
1718
+ writer.uint32(18).string(message.workflowId);
1719
+ }
1720
+ if (message.testScriptId !== "") {
1721
+ writer.uint32(26).string(message.testScriptId);
1722
+ }
1723
+ if (message.pageSize !== 0) {
1724
+ writer.uint32(32).int32(message.pageSize);
1725
+ }
1726
+ if (message.pageToken !== "") {
1727
+ writer.uint32(42).string(message.pageToken);
1728
+ }
1729
+ return writer;
1730
+ },
1731
+ decode(input, length) {
1732
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
1733
+ const end = length === undefined ? reader.len : reader.pos + length;
1734
+ const message = createBaseListTestScriptVersionsRequest();
1735
+ while (reader.pos < end) {
1736
+ const tag = reader.uint32();
1737
+ switch (tag >>> 3) {
1738
+ case 1: {
1739
+ if (tag !== 10) {
1740
+ break;
1741
+ }
1742
+ message.projectId = reader.string();
1743
+ continue;
1744
+ }
1745
+ case 2: {
1746
+ if (tag !== 18) {
1747
+ break;
1748
+ }
1749
+ message.workflowId = reader.string();
1750
+ continue;
1751
+ }
1752
+ case 3: {
1753
+ if (tag !== 26) {
1754
+ break;
1755
+ }
1756
+ message.testScriptId = reader.string();
1757
+ continue;
1758
+ }
1759
+ case 4: {
1760
+ if (tag !== 32) {
1761
+ break;
1762
+ }
1763
+ message.pageSize = reader.int32();
1764
+ continue;
1765
+ }
1766
+ case 5: {
1767
+ if (tag !== 42) {
1768
+ break;
1769
+ }
1770
+ message.pageToken = reader.string();
1771
+ continue;
1772
+ }
1773
+ }
1774
+ if ((tag & 7) === 4 || tag === 0) {
1775
+ break;
1776
+ }
1777
+ reader.skip(tag & 7);
1778
+ }
1779
+ return message;
1780
+ },
1781
+ fromJSON(object) {
1782
+ return {
1783
+ projectId: isSet(object.projectId)
1784
+ ? globalThis.String(object.projectId)
1785
+ : isSet(object.project_id)
1786
+ ? globalThis.String(object.project_id)
1787
+ : "",
1788
+ workflowId: isSet(object.workflowId)
1789
+ ? globalThis.String(object.workflowId)
1790
+ : isSet(object.workflow_id)
1791
+ ? globalThis.String(object.workflow_id)
1792
+ : "",
1793
+ testScriptId: isSet(object.testScriptId)
1794
+ ? globalThis.String(object.testScriptId)
1795
+ : isSet(object.test_script_id)
1796
+ ? globalThis.String(object.test_script_id)
1797
+ : "",
1798
+ pageSize: isSet(object.pageSize)
1799
+ ? globalThis.Number(object.pageSize)
1800
+ : isSet(object.page_size)
1801
+ ? globalThis.Number(object.page_size)
1802
+ : 0,
1803
+ pageToken: isSet(object.pageToken)
1804
+ ? globalThis.String(object.pageToken)
1805
+ : isSet(object.page_token)
1806
+ ? globalThis.String(object.page_token)
1807
+ : "",
1808
+ };
1809
+ },
1810
+ toJSON(message) {
1811
+ const obj = {};
1812
+ if (message.projectId !== "") {
1813
+ obj.projectId = message.projectId;
1814
+ }
1815
+ if (message.workflowId !== "") {
1816
+ obj.workflowId = message.workflowId;
1817
+ }
1818
+ if (message.testScriptId !== "") {
1819
+ obj.testScriptId = message.testScriptId;
1820
+ }
1821
+ if (message.pageSize !== 0) {
1822
+ obj.pageSize = Math.round(message.pageSize);
1823
+ }
1824
+ if (message.pageToken !== "") {
1825
+ obj.pageToken = message.pageToken;
1826
+ }
1827
+ return obj;
1828
+ },
1829
+ create(base) {
1830
+ return exports.ListTestScriptVersionsRequest.fromPartial(base !== null && base !== void 0 ? base : {});
1831
+ },
1832
+ fromPartial(object) {
1833
+ var _a, _b, _c, _d, _e;
1834
+ const message = createBaseListTestScriptVersionsRequest();
1835
+ message.projectId = (_a = object.projectId) !== null && _a !== void 0 ? _a : "";
1836
+ message.workflowId = (_b = object.workflowId) !== null && _b !== void 0 ? _b : "";
1837
+ message.testScriptId = (_c = object.testScriptId) !== null && _c !== void 0 ? _c : "";
1838
+ message.pageSize = (_d = object.pageSize) !== null && _d !== void 0 ? _d : 0;
1839
+ message.pageToken = (_e = object.pageToken) !== null && _e !== void 0 ? _e : "";
1840
+ return message;
1841
+ },
1842
+ };
1843
+ function createBaseListTestScriptVersionsResponse() {
1844
+ return { testScriptVersions: [], nextPageToken: "" };
1845
+ }
1846
+ exports.ListTestScriptVersionsResponse = {
1847
+ encode(message, writer = new wire_1.BinaryWriter()) {
1848
+ for (const v of message.testScriptVersions) {
1849
+ script_pb_1.TestScriptVersion.encode(v, writer.uint32(10).fork()).join();
1850
+ }
1851
+ if (message.nextPageToken !== "") {
1852
+ writer.uint32(18).string(message.nextPageToken);
1853
+ }
1854
+ return writer;
1855
+ },
1856
+ decode(input, length) {
1857
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
1858
+ const end = length === undefined ? reader.len : reader.pos + length;
1859
+ const message = createBaseListTestScriptVersionsResponse();
1860
+ while (reader.pos < end) {
1861
+ const tag = reader.uint32();
1862
+ switch (tag >>> 3) {
1863
+ case 1: {
1864
+ if (tag !== 10) {
1865
+ break;
1866
+ }
1867
+ message.testScriptVersions.push(script_pb_1.TestScriptVersion.decode(reader, reader.uint32()));
1868
+ continue;
1869
+ }
1870
+ case 2: {
1871
+ if (tag !== 18) {
1872
+ break;
1873
+ }
1874
+ message.nextPageToken = reader.string();
1875
+ continue;
1876
+ }
1877
+ }
1878
+ if ((tag & 7) === 4 || tag === 0) {
1879
+ break;
1880
+ }
1881
+ reader.skip(tag & 7);
1882
+ }
1883
+ return message;
1884
+ },
1885
+ fromJSON(object) {
1886
+ return {
1887
+ testScriptVersions: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.testScriptVersions)
1888
+ ? object.testScriptVersions.map((e) => script_pb_1.TestScriptVersion.fromJSON(e))
1889
+ : globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.test_script_versions)
1890
+ ? object.test_script_versions.map((e) => script_pb_1.TestScriptVersion.fromJSON(e))
1891
+ : [],
1892
+ nextPageToken: isSet(object.nextPageToken)
1893
+ ? globalThis.String(object.nextPageToken)
1894
+ : isSet(object.next_page_token)
1895
+ ? globalThis.String(object.next_page_token)
1896
+ : "",
1897
+ };
1898
+ },
1899
+ toJSON(message) {
1900
+ var _a;
1901
+ const obj = {};
1902
+ if ((_a = message.testScriptVersions) === null || _a === void 0 ? void 0 : _a.length) {
1903
+ obj.testScriptVersions = message.testScriptVersions.map((e) => script_pb_1.TestScriptVersion.toJSON(e));
1904
+ }
1905
+ if (message.nextPageToken !== "") {
1906
+ obj.nextPageToken = message.nextPageToken;
1907
+ }
1908
+ return obj;
1909
+ },
1910
+ create(base) {
1911
+ return exports.ListTestScriptVersionsResponse.fromPartial(base !== null && base !== void 0 ? base : {});
1912
+ },
1913
+ fromPartial(object) {
1914
+ var _a;
1915
+ var _b;
1916
+ const message = createBaseListTestScriptVersionsResponse();
1917
+ message.testScriptVersions = ((_a = object.testScriptVersions) === null || _a === void 0 ? void 0 : _a.map((e) => script_pb_1.TestScriptVersion.fromPartial(e))) || [];
1918
+ message.nextPageToken = (_b = object.nextPageToken) !== null && _b !== void 0 ? _b : "";
1919
+ return message;
1920
+ },
1921
+ };
1922
+ function createBaseSetCurrentTestScriptVersionRequest() {
1923
+ return { projectId: "", workflowId: "", testScriptId: "", testScriptVersionId: "" };
1924
+ }
1925
+ exports.SetCurrentTestScriptVersionRequest = {
1926
+ encode(message, writer = new wire_1.BinaryWriter()) {
1927
+ if (message.projectId !== "") {
1928
+ writer.uint32(10).string(message.projectId);
1929
+ }
1930
+ if (message.workflowId !== "") {
1931
+ writer.uint32(18).string(message.workflowId);
1932
+ }
1933
+ if (message.testScriptId !== "") {
1934
+ writer.uint32(26).string(message.testScriptId);
1935
+ }
1936
+ if (message.testScriptVersionId !== "") {
1937
+ writer.uint32(34).string(message.testScriptVersionId);
1938
+ }
1939
+ return writer;
1940
+ },
1941
+ decode(input, length) {
1942
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
1943
+ const end = length === undefined ? reader.len : reader.pos + length;
1944
+ const message = createBaseSetCurrentTestScriptVersionRequest();
1945
+ while (reader.pos < end) {
1946
+ const tag = reader.uint32();
1947
+ switch (tag >>> 3) {
1948
+ case 1: {
1949
+ if (tag !== 10) {
1950
+ break;
1951
+ }
1952
+ message.projectId = reader.string();
1953
+ continue;
1954
+ }
1955
+ case 2: {
1956
+ if (tag !== 18) {
1957
+ break;
1958
+ }
1959
+ message.workflowId = reader.string();
1960
+ continue;
1961
+ }
1962
+ case 3: {
1963
+ if (tag !== 26) {
1964
+ break;
1965
+ }
1966
+ message.testScriptId = reader.string();
1967
+ continue;
1968
+ }
1969
+ case 4: {
1970
+ if (tag !== 34) {
1971
+ break;
1972
+ }
1973
+ message.testScriptVersionId = reader.string();
1974
+ continue;
1975
+ }
1976
+ }
1977
+ if ((tag & 7) === 4 || tag === 0) {
1978
+ break;
1979
+ }
1980
+ reader.skip(tag & 7);
1981
+ }
1982
+ return message;
1983
+ },
1984
+ fromJSON(object) {
1985
+ return {
1986
+ projectId: isSet(object.projectId)
1987
+ ? globalThis.String(object.projectId)
1988
+ : isSet(object.project_id)
1989
+ ? globalThis.String(object.project_id)
1990
+ : "",
1991
+ workflowId: isSet(object.workflowId)
1992
+ ? globalThis.String(object.workflowId)
1993
+ : isSet(object.workflow_id)
1994
+ ? globalThis.String(object.workflow_id)
1995
+ : "",
1996
+ testScriptId: isSet(object.testScriptId)
1997
+ ? globalThis.String(object.testScriptId)
1998
+ : isSet(object.test_script_id)
1999
+ ? globalThis.String(object.test_script_id)
2000
+ : "",
2001
+ testScriptVersionId: isSet(object.testScriptVersionId)
2002
+ ? globalThis.String(object.testScriptVersionId)
2003
+ : isSet(object.test_script_version_id)
2004
+ ? globalThis.String(object.test_script_version_id)
2005
+ : "",
2006
+ };
2007
+ },
2008
+ toJSON(message) {
2009
+ const obj = {};
2010
+ if (message.projectId !== "") {
2011
+ obj.projectId = message.projectId;
2012
+ }
2013
+ if (message.workflowId !== "") {
2014
+ obj.workflowId = message.workflowId;
2015
+ }
2016
+ if (message.testScriptId !== "") {
2017
+ obj.testScriptId = message.testScriptId;
2018
+ }
2019
+ if (message.testScriptVersionId !== "") {
2020
+ obj.testScriptVersionId = message.testScriptVersionId;
2021
+ }
2022
+ return obj;
2023
+ },
2024
+ create(base) {
2025
+ return exports.SetCurrentTestScriptVersionRequest.fromPartial(base !== null && base !== void 0 ? base : {});
2026
+ },
2027
+ fromPartial(object) {
2028
+ var _a, _b, _c, _d;
2029
+ const message = createBaseSetCurrentTestScriptVersionRequest();
2030
+ message.projectId = (_a = object.projectId) !== null && _a !== void 0 ? _a : "";
2031
+ message.workflowId = (_b = object.workflowId) !== null && _b !== void 0 ? _b : "";
2032
+ message.testScriptId = (_c = object.testScriptId) !== null && _c !== void 0 ? _c : "";
2033
+ message.testScriptVersionId = (_d = object.testScriptVersionId) !== null && _d !== void 0 ? _d : "";
2034
+ return message;
2035
+ },
2036
+ };
2037
+ function createBaseSetCurrentTestScriptVersionResponse() {
2038
+ return { testScript: undefined };
2039
+ }
2040
+ exports.SetCurrentTestScriptVersionResponse = {
2041
+ encode(message, writer = new wire_1.BinaryWriter()) {
2042
+ if (message.testScript !== undefined) {
2043
+ script_pb_1.TestScript.encode(message.testScript, writer.uint32(10).fork()).join();
2044
+ }
2045
+ return writer;
2046
+ },
2047
+ decode(input, length) {
2048
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
2049
+ const end = length === undefined ? reader.len : reader.pos + length;
2050
+ const message = createBaseSetCurrentTestScriptVersionResponse();
2051
+ while (reader.pos < end) {
2052
+ const tag = reader.uint32();
2053
+ switch (tag >>> 3) {
2054
+ case 1: {
2055
+ if (tag !== 10) {
2056
+ break;
2057
+ }
2058
+ message.testScript = script_pb_1.TestScript.decode(reader, reader.uint32());
2059
+ continue;
2060
+ }
2061
+ }
2062
+ if ((tag & 7) === 4 || tag === 0) {
2063
+ break;
2064
+ }
2065
+ reader.skip(tag & 7);
2066
+ }
2067
+ return message;
2068
+ },
2069
+ fromJSON(object) {
2070
+ return {
2071
+ testScript: isSet(object.testScript)
2072
+ ? script_pb_1.TestScript.fromJSON(object.testScript)
2073
+ : isSet(object.test_script)
2074
+ ? script_pb_1.TestScript.fromJSON(object.test_script)
2075
+ : undefined,
2076
+ };
2077
+ },
2078
+ toJSON(message) {
2079
+ const obj = {};
2080
+ if (message.testScript !== undefined) {
2081
+ obj.testScript = script_pb_1.TestScript.toJSON(message.testScript);
2082
+ }
2083
+ return obj;
2084
+ },
2085
+ create(base) {
2086
+ return exports.SetCurrentTestScriptVersionResponse.fromPartial(base !== null && base !== void 0 ? base : {});
2087
+ },
2088
+ fromPartial(object) {
2089
+ const message = createBaseSetCurrentTestScriptVersionResponse();
2090
+ message.testScript = (object.testScript !== undefined && object.testScript !== null)
2091
+ ? script_pb_1.TestScript.fromPartial(object.testScript)
2092
+ : undefined;
2093
+ return message;
2094
+ },
2095
+ };
2096
+ function createBaseUpsertScriptBindingRequest() {
2097
+ return {
2098
+ projectId: "",
2099
+ workflowId: "",
2100
+ testScriptId: "",
2101
+ scriptBindingId: "",
2102
+ bindingKey: "",
2103
+ bindingType: "",
2104
+ datasetId: "",
2105
+ columnName: "",
2106
+ defaultValue: "",
2107
+ isRequired: false,
2108
+ metadata: undefined,
2109
+ };
2110
+ }
2111
+ exports.UpsertScriptBindingRequest = {
2112
+ encode(message, writer = new wire_1.BinaryWriter()) {
2113
+ if (message.projectId !== "") {
2114
+ writer.uint32(10).string(message.projectId);
2115
+ }
2116
+ if (message.workflowId !== "") {
2117
+ writer.uint32(18).string(message.workflowId);
2118
+ }
2119
+ if (message.testScriptId !== "") {
2120
+ writer.uint32(26).string(message.testScriptId);
2121
+ }
2122
+ if (message.scriptBindingId !== "") {
2123
+ writer.uint32(34).string(message.scriptBindingId);
2124
+ }
2125
+ if (message.bindingKey !== "") {
2126
+ writer.uint32(42).string(message.bindingKey);
2127
+ }
2128
+ if (message.bindingType !== "") {
2129
+ writer.uint32(50).string(message.bindingType);
2130
+ }
2131
+ if (message.datasetId !== "") {
2132
+ writer.uint32(58).string(message.datasetId);
2133
+ }
2134
+ if (message.columnName !== "") {
2135
+ writer.uint32(66).string(message.columnName);
2136
+ }
2137
+ if (message.defaultValue !== "") {
2138
+ writer.uint32(74).string(message.defaultValue);
2139
+ }
2140
+ if (message.isRequired !== false) {
2141
+ writer.uint32(80).bool(message.isRequired);
2142
+ }
2143
+ if (message.metadata !== undefined) {
2144
+ struct_pb_1.Struct.encode(struct_pb_1.Struct.wrap(message.metadata), writer.uint32(90).fork()).join();
2145
+ }
2146
+ return writer;
2147
+ },
2148
+ decode(input, length) {
2149
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
2150
+ const end = length === undefined ? reader.len : reader.pos + length;
2151
+ const message = createBaseUpsertScriptBindingRequest();
2152
+ while (reader.pos < end) {
2153
+ const tag = reader.uint32();
2154
+ switch (tag >>> 3) {
2155
+ case 1: {
2156
+ if (tag !== 10) {
2157
+ break;
2158
+ }
2159
+ message.projectId = reader.string();
2160
+ continue;
2161
+ }
2162
+ case 2: {
2163
+ if (tag !== 18) {
2164
+ break;
2165
+ }
2166
+ message.workflowId = reader.string();
2167
+ continue;
2168
+ }
2169
+ case 3: {
2170
+ if (tag !== 26) {
2171
+ break;
2172
+ }
2173
+ message.testScriptId = reader.string();
2174
+ continue;
2175
+ }
2176
+ case 4: {
2177
+ if (tag !== 34) {
2178
+ break;
2179
+ }
2180
+ message.scriptBindingId = reader.string();
2181
+ continue;
2182
+ }
2183
+ case 5: {
2184
+ if (tag !== 42) {
2185
+ break;
2186
+ }
2187
+ message.bindingKey = reader.string();
2188
+ continue;
2189
+ }
2190
+ case 6: {
2191
+ if (tag !== 50) {
2192
+ break;
2193
+ }
2194
+ message.bindingType = reader.string();
2195
+ continue;
2196
+ }
2197
+ case 7: {
2198
+ if (tag !== 58) {
2199
+ break;
2200
+ }
2201
+ message.datasetId = reader.string();
2202
+ continue;
2203
+ }
2204
+ case 8: {
2205
+ if (tag !== 66) {
2206
+ break;
2207
+ }
2208
+ message.columnName = reader.string();
2209
+ continue;
2210
+ }
2211
+ case 9: {
2212
+ if (tag !== 74) {
2213
+ break;
2214
+ }
2215
+ message.defaultValue = reader.string();
2216
+ continue;
2217
+ }
2218
+ case 10: {
2219
+ if (tag !== 80) {
2220
+ break;
2221
+ }
2222
+ message.isRequired = reader.bool();
2223
+ continue;
2224
+ }
2225
+ case 11: {
2226
+ if (tag !== 90) {
2227
+ break;
2228
+ }
2229
+ message.metadata = struct_pb_1.Struct.unwrap(struct_pb_1.Struct.decode(reader, reader.uint32()));
2230
+ continue;
2231
+ }
2232
+ }
2233
+ if ((tag & 7) === 4 || tag === 0) {
2234
+ break;
2235
+ }
2236
+ reader.skip(tag & 7);
2237
+ }
2238
+ return message;
2239
+ },
2240
+ fromJSON(object) {
2241
+ return {
2242
+ projectId: isSet(object.projectId)
2243
+ ? globalThis.String(object.projectId)
2244
+ : isSet(object.project_id)
2245
+ ? globalThis.String(object.project_id)
2246
+ : "",
2247
+ workflowId: isSet(object.workflowId)
2248
+ ? globalThis.String(object.workflowId)
2249
+ : isSet(object.workflow_id)
2250
+ ? globalThis.String(object.workflow_id)
2251
+ : "",
2252
+ testScriptId: isSet(object.testScriptId)
2253
+ ? globalThis.String(object.testScriptId)
2254
+ : isSet(object.test_script_id)
2255
+ ? globalThis.String(object.test_script_id)
2256
+ : "",
2257
+ scriptBindingId: isSet(object.scriptBindingId)
2258
+ ? globalThis.String(object.scriptBindingId)
2259
+ : isSet(object.script_binding_id)
2260
+ ? globalThis.String(object.script_binding_id)
2261
+ : "",
2262
+ bindingKey: isSet(object.bindingKey)
2263
+ ? globalThis.String(object.bindingKey)
2264
+ : isSet(object.binding_key)
2265
+ ? globalThis.String(object.binding_key)
2266
+ : "",
2267
+ bindingType: isSet(object.bindingType)
2268
+ ? globalThis.String(object.bindingType)
2269
+ : isSet(object.binding_type)
2270
+ ? globalThis.String(object.binding_type)
2271
+ : "",
2272
+ datasetId: isSet(object.datasetId)
2273
+ ? globalThis.String(object.datasetId)
2274
+ : isSet(object.dataset_id)
2275
+ ? globalThis.String(object.dataset_id)
2276
+ : "",
2277
+ columnName: isSet(object.columnName)
2278
+ ? globalThis.String(object.columnName)
2279
+ : isSet(object.column_name)
2280
+ ? globalThis.String(object.column_name)
2281
+ : "",
2282
+ defaultValue: isSet(object.defaultValue)
2283
+ ? globalThis.String(object.defaultValue)
2284
+ : isSet(object.default_value)
2285
+ ? globalThis.String(object.default_value)
2286
+ : "",
2287
+ isRequired: isSet(object.isRequired)
2288
+ ? globalThis.Boolean(object.isRequired)
2289
+ : isSet(object.is_required)
2290
+ ? globalThis.Boolean(object.is_required)
2291
+ : false,
2292
+ metadata: isObject(object.metadata) ? object.metadata : undefined,
2293
+ };
2294
+ },
2295
+ toJSON(message) {
2296
+ const obj = {};
2297
+ if (message.projectId !== "") {
2298
+ obj.projectId = message.projectId;
2299
+ }
2300
+ if (message.workflowId !== "") {
2301
+ obj.workflowId = message.workflowId;
2302
+ }
2303
+ if (message.testScriptId !== "") {
2304
+ obj.testScriptId = message.testScriptId;
2305
+ }
2306
+ if (message.scriptBindingId !== "") {
2307
+ obj.scriptBindingId = message.scriptBindingId;
2308
+ }
2309
+ if (message.bindingKey !== "") {
2310
+ obj.bindingKey = message.bindingKey;
2311
+ }
2312
+ if (message.bindingType !== "") {
2313
+ obj.bindingType = message.bindingType;
2314
+ }
2315
+ if (message.datasetId !== "") {
2316
+ obj.datasetId = message.datasetId;
2317
+ }
2318
+ if (message.columnName !== "") {
2319
+ obj.columnName = message.columnName;
2320
+ }
2321
+ if (message.defaultValue !== "") {
2322
+ obj.defaultValue = message.defaultValue;
2323
+ }
2324
+ if (message.isRequired !== false) {
2325
+ obj.isRequired = message.isRequired;
2326
+ }
2327
+ if (message.metadata !== undefined) {
2328
+ obj.metadata = message.metadata;
2329
+ }
2330
+ return obj;
2331
+ },
2332
+ create(base) {
2333
+ return exports.UpsertScriptBindingRequest.fromPartial(base !== null && base !== void 0 ? base : {});
2334
+ },
2335
+ fromPartial(object) {
2336
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
2337
+ const message = createBaseUpsertScriptBindingRequest();
2338
+ message.projectId = (_a = object.projectId) !== null && _a !== void 0 ? _a : "";
2339
+ message.workflowId = (_b = object.workflowId) !== null && _b !== void 0 ? _b : "";
2340
+ message.testScriptId = (_c = object.testScriptId) !== null && _c !== void 0 ? _c : "";
2341
+ message.scriptBindingId = (_d = object.scriptBindingId) !== null && _d !== void 0 ? _d : "";
2342
+ message.bindingKey = (_e = object.bindingKey) !== null && _e !== void 0 ? _e : "";
2343
+ message.bindingType = (_f = object.bindingType) !== null && _f !== void 0 ? _f : "";
2344
+ message.datasetId = (_g = object.datasetId) !== null && _g !== void 0 ? _g : "";
2345
+ message.columnName = (_h = object.columnName) !== null && _h !== void 0 ? _h : "";
2346
+ message.defaultValue = (_j = object.defaultValue) !== null && _j !== void 0 ? _j : "";
2347
+ message.isRequired = (_k = object.isRequired) !== null && _k !== void 0 ? _k : false;
2348
+ message.metadata = (_l = object.metadata) !== null && _l !== void 0 ? _l : undefined;
2349
+ return message;
2350
+ },
2351
+ };
2352
+ function createBaseUpsertScriptBindingResponse() {
2353
+ return { scriptBinding: undefined };
2354
+ }
2355
+ exports.UpsertScriptBindingResponse = {
2356
+ encode(message, writer = new wire_1.BinaryWriter()) {
2357
+ if (message.scriptBinding !== undefined) {
2358
+ script_pb_1.ScriptBinding.encode(message.scriptBinding, writer.uint32(10).fork()).join();
2359
+ }
2360
+ return writer;
2361
+ },
2362
+ decode(input, length) {
2363
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
2364
+ const end = length === undefined ? reader.len : reader.pos + length;
2365
+ const message = createBaseUpsertScriptBindingResponse();
2366
+ while (reader.pos < end) {
2367
+ const tag = reader.uint32();
2368
+ switch (tag >>> 3) {
2369
+ case 1: {
2370
+ if (tag !== 10) {
2371
+ break;
2372
+ }
2373
+ message.scriptBinding = script_pb_1.ScriptBinding.decode(reader, reader.uint32());
2374
+ continue;
2375
+ }
2376
+ }
2377
+ if ((tag & 7) === 4 || tag === 0) {
2378
+ break;
2379
+ }
2380
+ reader.skip(tag & 7);
2381
+ }
2382
+ return message;
2383
+ },
2384
+ fromJSON(object) {
2385
+ return {
2386
+ scriptBinding: isSet(object.scriptBinding)
2387
+ ? script_pb_1.ScriptBinding.fromJSON(object.scriptBinding)
2388
+ : isSet(object.script_binding)
2389
+ ? script_pb_1.ScriptBinding.fromJSON(object.script_binding)
2390
+ : undefined,
2391
+ };
2392
+ },
2393
+ toJSON(message) {
2394
+ const obj = {};
2395
+ if (message.scriptBinding !== undefined) {
2396
+ obj.scriptBinding = script_pb_1.ScriptBinding.toJSON(message.scriptBinding);
2397
+ }
2398
+ return obj;
2399
+ },
2400
+ create(base) {
2401
+ return exports.UpsertScriptBindingResponse.fromPartial(base !== null && base !== void 0 ? base : {});
2402
+ },
2403
+ fromPartial(object) {
2404
+ const message = createBaseUpsertScriptBindingResponse();
2405
+ message.scriptBinding = (object.scriptBinding !== undefined && object.scriptBinding !== null)
2406
+ ? script_pb_1.ScriptBinding.fromPartial(object.scriptBinding)
2407
+ : undefined;
2408
+ return message;
2409
+ },
2410
+ };
2411
+ function createBaseListScriptBindingsRequest() {
2412
+ return { projectId: "", workflowId: "", testScriptId: "" };
2413
+ }
2414
+ exports.ListScriptBindingsRequest = {
2415
+ encode(message, writer = new wire_1.BinaryWriter()) {
2416
+ if (message.projectId !== "") {
2417
+ writer.uint32(10).string(message.projectId);
2418
+ }
2419
+ if (message.workflowId !== "") {
2420
+ writer.uint32(18).string(message.workflowId);
2421
+ }
2422
+ if (message.testScriptId !== "") {
2423
+ writer.uint32(26).string(message.testScriptId);
2424
+ }
2425
+ return writer;
2426
+ },
2427
+ decode(input, length) {
2428
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
2429
+ const end = length === undefined ? reader.len : reader.pos + length;
2430
+ const message = createBaseListScriptBindingsRequest();
2431
+ while (reader.pos < end) {
2432
+ const tag = reader.uint32();
2433
+ switch (tag >>> 3) {
2434
+ case 1: {
2435
+ if (tag !== 10) {
2436
+ break;
2437
+ }
2438
+ message.projectId = reader.string();
2439
+ continue;
2440
+ }
2441
+ case 2: {
2442
+ if (tag !== 18) {
2443
+ break;
2444
+ }
2445
+ message.workflowId = reader.string();
2446
+ continue;
2447
+ }
2448
+ case 3: {
2449
+ if (tag !== 26) {
2450
+ break;
2451
+ }
2452
+ message.testScriptId = reader.string();
2453
+ continue;
2454
+ }
2455
+ }
2456
+ if ((tag & 7) === 4 || tag === 0) {
2457
+ break;
2458
+ }
2459
+ reader.skip(tag & 7);
2460
+ }
2461
+ return message;
2462
+ },
2463
+ fromJSON(object) {
2464
+ return {
2465
+ projectId: isSet(object.projectId)
2466
+ ? globalThis.String(object.projectId)
2467
+ : isSet(object.project_id)
2468
+ ? globalThis.String(object.project_id)
2469
+ : "",
2470
+ workflowId: isSet(object.workflowId)
2471
+ ? globalThis.String(object.workflowId)
2472
+ : isSet(object.workflow_id)
2473
+ ? globalThis.String(object.workflow_id)
2474
+ : "",
2475
+ testScriptId: isSet(object.testScriptId)
2476
+ ? globalThis.String(object.testScriptId)
2477
+ : isSet(object.test_script_id)
2478
+ ? globalThis.String(object.test_script_id)
2479
+ : "",
2480
+ };
2481
+ },
2482
+ toJSON(message) {
2483
+ const obj = {};
2484
+ if (message.projectId !== "") {
2485
+ obj.projectId = message.projectId;
2486
+ }
2487
+ if (message.workflowId !== "") {
2488
+ obj.workflowId = message.workflowId;
2489
+ }
2490
+ if (message.testScriptId !== "") {
2491
+ obj.testScriptId = message.testScriptId;
2492
+ }
2493
+ return obj;
2494
+ },
2495
+ create(base) {
2496
+ return exports.ListScriptBindingsRequest.fromPartial(base !== null && base !== void 0 ? base : {});
2497
+ },
2498
+ fromPartial(object) {
2499
+ var _a, _b, _c;
2500
+ const message = createBaseListScriptBindingsRequest();
2501
+ message.projectId = (_a = object.projectId) !== null && _a !== void 0 ? _a : "";
2502
+ message.workflowId = (_b = object.workflowId) !== null && _b !== void 0 ? _b : "";
2503
+ message.testScriptId = (_c = object.testScriptId) !== null && _c !== void 0 ? _c : "";
2504
+ return message;
2505
+ },
2506
+ };
2507
+ function createBaseListScriptBindingsResponse() {
2508
+ return { scriptBindings: [] };
2509
+ }
2510
+ exports.ListScriptBindingsResponse = {
2511
+ encode(message, writer = new wire_1.BinaryWriter()) {
2512
+ for (const v of message.scriptBindings) {
2513
+ script_pb_1.ScriptBinding.encode(v, writer.uint32(10).fork()).join();
2514
+ }
2515
+ return writer;
2516
+ },
2517
+ decode(input, length) {
2518
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
2519
+ const end = length === undefined ? reader.len : reader.pos + length;
2520
+ const message = createBaseListScriptBindingsResponse();
2521
+ while (reader.pos < end) {
2522
+ const tag = reader.uint32();
2523
+ switch (tag >>> 3) {
2524
+ case 1: {
2525
+ if (tag !== 10) {
2526
+ break;
2527
+ }
2528
+ message.scriptBindings.push(script_pb_1.ScriptBinding.decode(reader, reader.uint32()));
2529
+ continue;
2530
+ }
2531
+ }
2532
+ if ((tag & 7) === 4 || tag === 0) {
2533
+ break;
2534
+ }
2535
+ reader.skip(tag & 7);
2536
+ }
2537
+ return message;
2538
+ },
2539
+ fromJSON(object) {
2540
+ return {
2541
+ scriptBindings: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.scriptBindings)
2542
+ ? object.scriptBindings.map((e) => script_pb_1.ScriptBinding.fromJSON(e))
2543
+ : globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.script_bindings)
2544
+ ? object.script_bindings.map((e) => script_pb_1.ScriptBinding.fromJSON(e))
2545
+ : [],
2546
+ };
2547
+ },
2548
+ toJSON(message) {
2549
+ var _a;
2550
+ const obj = {};
2551
+ if ((_a = message.scriptBindings) === null || _a === void 0 ? void 0 : _a.length) {
2552
+ obj.scriptBindings = message.scriptBindings.map((e) => script_pb_1.ScriptBinding.toJSON(e));
2553
+ }
2554
+ return obj;
2555
+ },
2556
+ create(base) {
2557
+ return exports.ListScriptBindingsResponse.fromPartial(base !== null && base !== void 0 ? base : {});
2558
+ },
2559
+ fromPartial(object) {
2560
+ var _a;
2561
+ const message = createBaseListScriptBindingsResponse();
2562
+ message.scriptBindings = ((_a = object.scriptBindings) === null || _a === void 0 ? void 0 : _a.map((e) => script_pb_1.ScriptBinding.fromPartial(e))) || [];
2563
+ return message;
2564
+ },
2565
+ };
2566
+ function createBaseDeleteScriptBindingRequest() {
2567
+ return { projectId: "", workflowId: "", testScriptId: "", scriptBindingId: "" };
2568
+ }
2569
+ exports.DeleteScriptBindingRequest = {
2570
+ encode(message, writer = new wire_1.BinaryWriter()) {
2571
+ if (message.projectId !== "") {
2572
+ writer.uint32(10).string(message.projectId);
2573
+ }
2574
+ if (message.workflowId !== "") {
2575
+ writer.uint32(18).string(message.workflowId);
2576
+ }
2577
+ if (message.testScriptId !== "") {
2578
+ writer.uint32(26).string(message.testScriptId);
2579
+ }
2580
+ if (message.scriptBindingId !== "") {
2581
+ writer.uint32(34).string(message.scriptBindingId);
2582
+ }
2583
+ return writer;
2584
+ },
2585
+ decode(input, length) {
2586
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
2587
+ const end = length === undefined ? reader.len : reader.pos + length;
2588
+ const message = createBaseDeleteScriptBindingRequest();
2589
+ while (reader.pos < end) {
2590
+ const tag = reader.uint32();
2591
+ switch (tag >>> 3) {
2592
+ case 1: {
2593
+ if (tag !== 10) {
2594
+ break;
2595
+ }
2596
+ message.projectId = reader.string();
2597
+ continue;
2598
+ }
2599
+ case 2: {
2600
+ if (tag !== 18) {
2601
+ break;
2602
+ }
2603
+ message.workflowId = reader.string();
2604
+ continue;
2605
+ }
2606
+ case 3: {
2607
+ if (tag !== 26) {
2608
+ break;
2609
+ }
2610
+ message.testScriptId = reader.string();
2611
+ continue;
2612
+ }
2613
+ case 4: {
2614
+ if (tag !== 34) {
2615
+ break;
2616
+ }
2617
+ message.scriptBindingId = reader.string();
2618
+ continue;
2619
+ }
2620
+ }
2621
+ if ((tag & 7) === 4 || tag === 0) {
2622
+ break;
2623
+ }
2624
+ reader.skip(tag & 7);
2625
+ }
2626
+ return message;
2627
+ },
2628
+ fromJSON(object) {
2629
+ return {
2630
+ projectId: isSet(object.projectId)
2631
+ ? globalThis.String(object.projectId)
2632
+ : isSet(object.project_id)
2633
+ ? globalThis.String(object.project_id)
2634
+ : "",
2635
+ workflowId: isSet(object.workflowId)
2636
+ ? globalThis.String(object.workflowId)
2637
+ : isSet(object.workflow_id)
2638
+ ? globalThis.String(object.workflow_id)
2639
+ : "",
2640
+ testScriptId: isSet(object.testScriptId)
2641
+ ? globalThis.String(object.testScriptId)
2642
+ : isSet(object.test_script_id)
2643
+ ? globalThis.String(object.test_script_id)
2644
+ : "",
2645
+ scriptBindingId: isSet(object.scriptBindingId)
2646
+ ? globalThis.String(object.scriptBindingId)
2647
+ : isSet(object.script_binding_id)
2648
+ ? globalThis.String(object.script_binding_id)
2649
+ : "",
2650
+ };
2651
+ },
2652
+ toJSON(message) {
2653
+ const obj = {};
2654
+ if (message.projectId !== "") {
2655
+ obj.projectId = message.projectId;
2656
+ }
2657
+ if (message.workflowId !== "") {
2658
+ obj.workflowId = message.workflowId;
2659
+ }
2660
+ if (message.testScriptId !== "") {
2661
+ obj.testScriptId = message.testScriptId;
2662
+ }
2663
+ if (message.scriptBindingId !== "") {
2664
+ obj.scriptBindingId = message.scriptBindingId;
2665
+ }
2666
+ return obj;
2667
+ },
2668
+ create(base) {
2669
+ return exports.DeleteScriptBindingRequest.fromPartial(base !== null && base !== void 0 ? base : {});
2670
+ },
2671
+ fromPartial(object) {
2672
+ var _a, _b, _c, _d;
2673
+ const message = createBaseDeleteScriptBindingRequest();
2674
+ message.projectId = (_a = object.projectId) !== null && _a !== void 0 ? _a : "";
2675
+ message.workflowId = (_b = object.workflowId) !== null && _b !== void 0 ? _b : "";
2676
+ message.testScriptId = (_c = object.testScriptId) !== null && _c !== void 0 ? _c : "";
2677
+ message.scriptBindingId = (_d = object.scriptBindingId) !== null && _d !== void 0 ? _d : "";
2678
+ return message;
2679
+ },
2680
+ };
2681
+ function createBaseDeleteScriptBindingResponse() {
2682
+ return {};
2683
+ }
2684
+ exports.DeleteScriptBindingResponse = {
2685
+ encode(_, writer = new wire_1.BinaryWriter()) {
2686
+ return writer;
2687
+ },
2688
+ decode(input, length) {
2689
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
2690
+ const end = length === undefined ? reader.len : reader.pos + length;
2691
+ const message = createBaseDeleteScriptBindingResponse();
2692
+ while (reader.pos < end) {
2693
+ const tag = reader.uint32();
2694
+ switch (tag >>> 3) {
2695
+ }
2696
+ if ((tag & 7) === 4 || tag === 0) {
2697
+ break;
2698
+ }
2699
+ reader.skip(tag & 7);
2700
+ }
2701
+ return message;
2702
+ },
2703
+ fromJSON(_) {
2704
+ return {};
2705
+ },
2706
+ toJSON(_) {
2707
+ const obj = {};
2708
+ return obj;
2709
+ },
2710
+ create(base) {
2711
+ return exports.DeleteScriptBindingResponse.fromPartial(base !== null && base !== void 0 ? base : {});
2712
+ },
2713
+ fromPartial(_) {
2714
+ const message = createBaseDeleteScriptBindingResponse();
2715
+ return message;
2716
+ },
2717
+ };
2718
+ function createBaseGenerateTestScriptsRequest() {
2719
+ return { projectId: "", workflowId: "", testCaseIds: [], options: undefined };
2720
+ }
2721
+ exports.GenerateTestScriptsRequest = {
2722
+ encode(message, writer = new wire_1.BinaryWriter()) {
2723
+ if (message.projectId !== "") {
2724
+ writer.uint32(10).string(message.projectId);
2725
+ }
2726
+ if (message.workflowId !== "") {
2727
+ writer.uint32(18).string(message.workflowId);
2728
+ }
2729
+ for (const v of message.testCaseIds) {
2730
+ writer.uint32(26).string(v);
2731
+ }
2732
+ if (message.options !== undefined) {
2733
+ struct_pb_1.Struct.encode(struct_pb_1.Struct.wrap(message.options), writer.uint32(34).fork()).join();
2734
+ }
2735
+ return writer;
2736
+ },
2737
+ decode(input, length) {
2738
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
2739
+ const end = length === undefined ? reader.len : reader.pos + length;
2740
+ const message = createBaseGenerateTestScriptsRequest();
2741
+ while (reader.pos < end) {
2742
+ const tag = reader.uint32();
2743
+ switch (tag >>> 3) {
2744
+ case 1: {
2745
+ if (tag !== 10) {
2746
+ break;
2747
+ }
2748
+ message.projectId = reader.string();
2749
+ continue;
2750
+ }
2751
+ case 2: {
2752
+ if (tag !== 18) {
2753
+ break;
2754
+ }
2755
+ message.workflowId = reader.string();
2756
+ continue;
2757
+ }
2758
+ case 3: {
2759
+ if (tag !== 26) {
2760
+ break;
2761
+ }
2762
+ message.testCaseIds.push(reader.string());
2763
+ continue;
2764
+ }
2765
+ case 4: {
2766
+ if (tag !== 34) {
2767
+ break;
2768
+ }
2769
+ message.options = struct_pb_1.Struct.unwrap(struct_pb_1.Struct.decode(reader, reader.uint32()));
2770
+ continue;
2771
+ }
2772
+ }
2773
+ if ((tag & 7) === 4 || tag === 0) {
2774
+ break;
2775
+ }
2776
+ reader.skip(tag & 7);
2777
+ }
2778
+ return message;
2779
+ },
2780
+ fromJSON(object) {
2781
+ return {
2782
+ projectId: isSet(object.projectId)
2783
+ ? globalThis.String(object.projectId)
2784
+ : isSet(object.project_id)
2785
+ ? globalThis.String(object.project_id)
2786
+ : "",
2787
+ workflowId: isSet(object.workflowId)
2788
+ ? globalThis.String(object.workflowId)
2789
+ : isSet(object.workflow_id)
2790
+ ? globalThis.String(object.workflow_id)
2791
+ : "",
2792
+ testCaseIds: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.testCaseIds)
2793
+ ? object.testCaseIds.map((e) => globalThis.String(e))
2794
+ : globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.test_case_ids)
2795
+ ? object.test_case_ids.map((e) => globalThis.String(e))
2796
+ : [],
2797
+ options: isObject(object.options) ? object.options : undefined,
2798
+ };
2799
+ },
2800
+ toJSON(message) {
2801
+ var _a;
2802
+ const obj = {};
2803
+ if (message.projectId !== "") {
2804
+ obj.projectId = message.projectId;
2805
+ }
2806
+ if (message.workflowId !== "") {
2807
+ obj.workflowId = message.workflowId;
2808
+ }
2809
+ if ((_a = message.testCaseIds) === null || _a === void 0 ? void 0 : _a.length) {
2810
+ obj.testCaseIds = message.testCaseIds;
2811
+ }
2812
+ if (message.options !== undefined) {
2813
+ obj.options = message.options;
2814
+ }
2815
+ return obj;
2816
+ },
2817
+ create(base) {
2818
+ return exports.GenerateTestScriptsRequest.fromPartial(base !== null && base !== void 0 ? base : {});
2819
+ },
2820
+ fromPartial(object) {
2821
+ var _a;
2822
+ var _b, _c, _d;
2823
+ const message = createBaseGenerateTestScriptsRequest();
2824
+ message.projectId = (_b = object.projectId) !== null && _b !== void 0 ? _b : "";
2825
+ message.workflowId = (_c = object.workflowId) !== null && _c !== void 0 ? _c : "";
2826
+ message.testCaseIds = ((_a = object.testCaseIds) === null || _a === void 0 ? void 0 : _a.map((e) => e)) || [];
2827
+ message.options = (_d = object.options) !== null && _d !== void 0 ? _d : undefined;
2828
+ return message;
2829
+ },
2830
+ };
2831
+ function createBaseGenerateTestScriptsResponse() {
2832
+ return { testScripts: [] };
2833
+ }
2834
+ exports.GenerateTestScriptsResponse = {
2835
+ encode(message, writer = new wire_1.BinaryWriter()) {
2836
+ for (const v of message.testScripts) {
2837
+ script_pb_1.TestScript.encode(v, writer.uint32(10).fork()).join();
2838
+ }
2839
+ return writer;
2840
+ },
2841
+ decode(input, length) {
2842
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
2843
+ const end = length === undefined ? reader.len : reader.pos + length;
2844
+ const message = createBaseGenerateTestScriptsResponse();
2845
+ while (reader.pos < end) {
2846
+ const tag = reader.uint32();
2847
+ switch (tag >>> 3) {
2848
+ case 1: {
2849
+ if (tag !== 10) {
2850
+ break;
2851
+ }
2852
+ message.testScripts.push(script_pb_1.TestScript.decode(reader, reader.uint32()));
2853
+ continue;
2854
+ }
2855
+ }
2856
+ if ((tag & 7) === 4 || tag === 0) {
2857
+ break;
2858
+ }
2859
+ reader.skip(tag & 7);
2860
+ }
2861
+ return message;
2862
+ },
2863
+ fromJSON(object) {
2864
+ return {
2865
+ testScripts: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.testScripts)
2866
+ ? object.testScripts.map((e) => script_pb_1.TestScript.fromJSON(e))
2867
+ : globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.test_scripts)
2868
+ ? object.test_scripts.map((e) => script_pb_1.TestScript.fromJSON(e))
2869
+ : [],
2870
+ };
2871
+ },
2872
+ toJSON(message) {
2873
+ var _a;
2874
+ const obj = {};
2875
+ if ((_a = message.testScripts) === null || _a === void 0 ? void 0 : _a.length) {
2876
+ obj.testScripts = message.testScripts.map((e) => script_pb_1.TestScript.toJSON(e));
2877
+ }
2878
+ return obj;
2879
+ },
2880
+ create(base) {
2881
+ return exports.GenerateTestScriptsResponse.fromPartial(base !== null && base !== void 0 ? base : {});
2882
+ },
2883
+ fromPartial(object) {
2884
+ var _a;
2885
+ const message = createBaseGenerateTestScriptsResponse();
2886
+ message.testScripts = ((_a = object.testScripts) === null || _a === void 0 ? void 0 : _a.map((e) => script_pb_1.TestScript.fromPartial(e))) || [];
2887
+ return message;
2888
+ },
2889
+ };
2890
+ exports.ScriptServiceServiceName = "weaveapi.script.v1.ScriptService";
2891
+ class ScriptServiceClientImpl {
2892
+ rpc;
2893
+ service;
2894
+ constructor(rpc, opts) {
2895
+ this.service = (opts === null || opts === void 0 ? void 0 : opts.service) || exports.ScriptServiceServiceName;
2896
+ this.rpc = rpc;
2897
+ this.CreateTestScript = this.CreateTestScript.bind(this);
2898
+ this.GetTestScript = this.GetTestScript.bind(this);
2899
+ this.ListTestScripts = this.ListTestScripts.bind(this);
2900
+ this.UpdateTestScript = this.UpdateTestScript.bind(this);
2901
+ this.ArchiveTestScript = this.ArchiveTestScript.bind(this);
2902
+ this.DeleteTestScript = this.DeleteTestScript.bind(this);
2903
+ this.CreateTestScriptVersion = this.CreateTestScriptVersion.bind(this);
2904
+ this.GetTestScriptVersion = this.GetTestScriptVersion.bind(this);
2905
+ this.ListTestScriptVersions = this.ListTestScriptVersions.bind(this);
2906
+ this.SetCurrentTestScriptVersion = this.SetCurrentTestScriptVersion.bind(this);
2907
+ this.UpsertScriptBinding = this.UpsertScriptBinding.bind(this);
2908
+ this.ListScriptBindings = this.ListScriptBindings.bind(this);
2909
+ this.DeleteScriptBinding = this.DeleteScriptBinding.bind(this);
2910
+ this.GenerateTestScripts = this.GenerateTestScripts.bind(this);
2911
+ }
2912
+ CreateTestScript(request) {
2913
+ const data = exports.CreateTestScriptRequest.encode(request).finish();
2914
+ const promise = this.rpc.request(this.service, "CreateTestScript", data);
2915
+ return promise.then((data) => exports.CreateTestScriptResponse.decode(new wire_1.BinaryReader(data)));
2916
+ }
2917
+ GetTestScript(request) {
2918
+ const data = exports.GetTestScriptRequest.encode(request).finish();
2919
+ const promise = this.rpc.request(this.service, "GetTestScript", data);
2920
+ return promise.then((data) => exports.GetTestScriptResponse.decode(new wire_1.BinaryReader(data)));
2921
+ }
2922
+ ListTestScripts(request) {
2923
+ const data = exports.ListTestScriptsRequest.encode(request).finish();
2924
+ const promise = this.rpc.request(this.service, "ListTestScripts", data);
2925
+ return promise.then((data) => exports.ListTestScriptsResponse.decode(new wire_1.BinaryReader(data)));
2926
+ }
2927
+ UpdateTestScript(request) {
2928
+ const data = exports.UpdateTestScriptRequest.encode(request).finish();
2929
+ const promise = this.rpc.request(this.service, "UpdateTestScript", data);
2930
+ return promise.then((data) => exports.UpdateTestScriptResponse.decode(new wire_1.BinaryReader(data)));
2931
+ }
2932
+ ArchiveTestScript(request) {
2933
+ const data = exports.ArchiveTestScriptRequest.encode(request).finish();
2934
+ const promise = this.rpc.request(this.service, "ArchiveTestScript", data);
2935
+ return promise.then((data) => exports.ArchiveTestScriptResponse.decode(new wire_1.BinaryReader(data)));
2936
+ }
2937
+ DeleteTestScript(request) {
2938
+ const data = exports.DeleteTestScriptRequest.encode(request).finish();
2939
+ const promise = this.rpc.request(this.service, "DeleteTestScript", data);
2940
+ return promise.then((data) => exports.DeleteTestScriptResponse.decode(new wire_1.BinaryReader(data)));
2941
+ }
2942
+ CreateTestScriptVersion(request) {
2943
+ const data = exports.CreateTestScriptVersionRequest.encode(request).finish();
2944
+ const promise = this.rpc.request(this.service, "CreateTestScriptVersion", data);
2945
+ return promise.then((data) => exports.CreateTestScriptVersionResponse.decode(new wire_1.BinaryReader(data)));
2946
+ }
2947
+ GetTestScriptVersion(request) {
2948
+ const data = exports.GetTestScriptVersionRequest.encode(request).finish();
2949
+ const promise = this.rpc.request(this.service, "GetTestScriptVersion", data);
2950
+ return promise.then((data) => exports.GetTestScriptVersionResponse.decode(new wire_1.BinaryReader(data)));
2951
+ }
2952
+ ListTestScriptVersions(request) {
2953
+ const data = exports.ListTestScriptVersionsRequest.encode(request).finish();
2954
+ const promise = this.rpc.request(this.service, "ListTestScriptVersions", data);
2955
+ return promise.then((data) => exports.ListTestScriptVersionsResponse.decode(new wire_1.BinaryReader(data)));
2956
+ }
2957
+ SetCurrentTestScriptVersion(request) {
2958
+ const data = exports.SetCurrentTestScriptVersionRequest.encode(request).finish();
2959
+ const promise = this.rpc.request(this.service, "SetCurrentTestScriptVersion", data);
2960
+ return promise.then((data) => exports.SetCurrentTestScriptVersionResponse.decode(new wire_1.BinaryReader(data)));
2961
+ }
2962
+ UpsertScriptBinding(request) {
2963
+ const data = exports.UpsertScriptBindingRequest.encode(request).finish();
2964
+ const promise = this.rpc.request(this.service, "UpsertScriptBinding", data);
2965
+ return promise.then((data) => exports.UpsertScriptBindingResponse.decode(new wire_1.BinaryReader(data)));
2966
+ }
2967
+ ListScriptBindings(request) {
2968
+ const data = exports.ListScriptBindingsRequest.encode(request).finish();
2969
+ const promise = this.rpc.request(this.service, "ListScriptBindings", data);
2970
+ return promise.then((data) => exports.ListScriptBindingsResponse.decode(new wire_1.BinaryReader(data)));
2971
+ }
2972
+ DeleteScriptBinding(request) {
2973
+ const data = exports.DeleteScriptBindingRequest.encode(request).finish();
2974
+ const promise = this.rpc.request(this.service, "DeleteScriptBinding", data);
2975
+ return promise.then((data) => exports.DeleteScriptBindingResponse.decode(new wire_1.BinaryReader(data)));
2976
+ }
2977
+ GenerateTestScripts(request) {
2978
+ const data = exports.GenerateTestScriptsRequest.encode(request).finish();
2979
+ const promise = this.rpc.request(this.service, "GenerateTestScripts", data);
2980
+ return promise.then((data) => exports.GenerateTestScriptsResponse.decode(new wire_1.BinaryReader(data)));
2981
+ }
2982
+ }
2983
+ exports.ScriptServiceClientImpl = ScriptServiceClientImpl;
2984
+ exports.ScriptServiceDefinition = {
2985
+ name: "ScriptService",
2986
+ fullName: "weaveapi.script.v1.ScriptService",
2987
+ methods: {
2988
+ createTestScript: {
2989
+ name: "CreateTestScript",
2990
+ requestType: exports.CreateTestScriptRequest,
2991
+ requestStream: false,
2992
+ responseType: exports.CreateTestScriptResponse,
2993
+ responseStream: false,
2994
+ options: {
2995
+ _unknownFields: {
2996
+ 578365826: [
2997
+ new Uint8Array([
2998
+ 62,
2999
+ 58,
3000
+ 1,
3001
+ 42,
3002
+ 34,
3003
+ 57,
3004
+ 47,
3005
+ 118,
3006
+ 49,
3007
+ 47,
3008
+ 112,
3009
+ 114,
3010
+ 111,
3011
+ 106,
3012
+ 101,
3013
+ 99,
3014
+ 116,
3015
+ 115,
3016
+ 47,
3017
+ 123,
3018
+ 112,
3019
+ 114,
3020
+ 111,
3021
+ 106,
3022
+ 101,
3023
+ 99,
3024
+ 116,
3025
+ 95,
3026
+ 105,
3027
+ 100,
3028
+ 125,
3029
+ 47,
3030
+ 119,
3031
+ 111,
3032
+ 114,
3033
+ 107,
3034
+ 102,
3035
+ 108,
3036
+ 111,
3037
+ 119,
3038
+ 115,
3039
+ 47,
3040
+ 123,
3041
+ 119,
3042
+ 111,
3043
+ 114,
3044
+ 107,
3045
+ 102,
3046
+ 108,
3047
+ 111,
3048
+ 119,
3049
+ 95,
3050
+ 105,
3051
+ 100,
3052
+ 125,
3053
+ 47,
3054
+ 115,
3055
+ 99,
3056
+ 114,
3057
+ 105,
3058
+ 112,
3059
+ 116,
3060
+ 115,
3061
+ ]),
3062
+ ],
3063
+ },
3064
+ },
3065
+ },
3066
+ getTestScript: {
3067
+ name: "GetTestScript",
3068
+ requestType: exports.GetTestScriptRequest,
3069
+ requestStream: false,
3070
+ responseType: exports.GetTestScriptResponse,
3071
+ responseStream: false,
3072
+ options: {
3073
+ _unknownFields: {
3074
+ 578365826: [
3075
+ new Uint8Array([
3076
+ 76,
3077
+ 18,
3078
+ 74,
3079
+ 47,
3080
+ 118,
3081
+ 49,
3082
+ 47,
3083
+ 112,
3084
+ 114,
3085
+ 111,
3086
+ 106,
3087
+ 101,
3088
+ 99,
3089
+ 116,
3090
+ 115,
3091
+ 47,
3092
+ 123,
3093
+ 112,
3094
+ 114,
3095
+ 111,
3096
+ 106,
3097
+ 101,
3098
+ 99,
3099
+ 116,
3100
+ 95,
3101
+ 105,
3102
+ 100,
3103
+ 125,
3104
+ 47,
3105
+ 119,
3106
+ 111,
3107
+ 114,
3108
+ 107,
3109
+ 102,
3110
+ 108,
3111
+ 111,
3112
+ 119,
3113
+ 115,
3114
+ 47,
3115
+ 123,
3116
+ 119,
3117
+ 111,
3118
+ 114,
3119
+ 107,
3120
+ 102,
3121
+ 108,
3122
+ 111,
3123
+ 119,
3124
+ 95,
3125
+ 105,
3126
+ 100,
3127
+ 125,
3128
+ 47,
3129
+ 115,
3130
+ 99,
3131
+ 114,
3132
+ 105,
3133
+ 112,
3134
+ 116,
3135
+ 115,
3136
+ 47,
3137
+ 123,
3138
+ 116,
3139
+ 101,
3140
+ 115,
3141
+ 116,
3142
+ 95,
3143
+ 115,
3144
+ 99,
3145
+ 114,
3146
+ 105,
3147
+ 112,
3148
+ 116,
3149
+ 95,
3150
+ 105,
3151
+ 100,
3152
+ 125,
3153
+ ]),
3154
+ ],
3155
+ },
3156
+ },
3157
+ },
3158
+ listTestScripts: {
3159
+ name: "ListTestScripts",
3160
+ requestType: exports.ListTestScriptsRequest,
3161
+ requestStream: false,
3162
+ responseType: exports.ListTestScriptsResponse,
3163
+ responseStream: false,
3164
+ options: {
3165
+ _unknownFields: {
3166
+ 578365826: [
3167
+ new Uint8Array([
3168
+ 59,
3169
+ 18,
3170
+ 57,
3171
+ 47,
3172
+ 118,
3173
+ 49,
3174
+ 47,
3175
+ 112,
3176
+ 114,
3177
+ 111,
3178
+ 106,
3179
+ 101,
3180
+ 99,
3181
+ 116,
3182
+ 115,
3183
+ 47,
3184
+ 123,
3185
+ 112,
3186
+ 114,
3187
+ 111,
3188
+ 106,
3189
+ 101,
3190
+ 99,
3191
+ 116,
3192
+ 95,
3193
+ 105,
3194
+ 100,
3195
+ 125,
3196
+ 47,
3197
+ 119,
3198
+ 111,
3199
+ 114,
3200
+ 107,
3201
+ 102,
3202
+ 108,
3203
+ 111,
3204
+ 119,
3205
+ 115,
3206
+ 47,
3207
+ 123,
3208
+ 119,
3209
+ 111,
3210
+ 114,
3211
+ 107,
3212
+ 102,
3213
+ 108,
3214
+ 111,
3215
+ 119,
3216
+ 95,
3217
+ 105,
3218
+ 100,
3219
+ 125,
3220
+ 47,
3221
+ 115,
3222
+ 99,
3223
+ 114,
3224
+ 105,
3225
+ 112,
3226
+ 116,
3227
+ 115,
3228
+ ]),
3229
+ ],
3230
+ },
3231
+ },
3232
+ },
3233
+ updateTestScript: {
3234
+ name: "UpdateTestScript",
3235
+ requestType: exports.UpdateTestScriptRequest,
3236
+ requestStream: false,
3237
+ responseType: exports.UpdateTestScriptResponse,
3238
+ responseStream: false,
3239
+ options: {
3240
+ _unknownFields: {
3241
+ 578365826: [
3242
+ new Uint8Array([
3243
+ 79,
3244
+ 58,
3245
+ 1,
3246
+ 42,
3247
+ 50,
3248
+ 74,
3249
+ 47,
3250
+ 118,
3251
+ 49,
3252
+ 47,
3253
+ 112,
3254
+ 114,
3255
+ 111,
3256
+ 106,
3257
+ 101,
3258
+ 99,
3259
+ 116,
3260
+ 115,
3261
+ 47,
3262
+ 123,
3263
+ 112,
3264
+ 114,
3265
+ 111,
3266
+ 106,
3267
+ 101,
3268
+ 99,
3269
+ 116,
3270
+ 95,
3271
+ 105,
3272
+ 100,
3273
+ 125,
3274
+ 47,
3275
+ 119,
3276
+ 111,
3277
+ 114,
3278
+ 107,
3279
+ 102,
3280
+ 108,
3281
+ 111,
3282
+ 119,
3283
+ 115,
3284
+ 47,
3285
+ 123,
3286
+ 119,
3287
+ 111,
3288
+ 114,
3289
+ 107,
3290
+ 102,
3291
+ 108,
3292
+ 111,
3293
+ 119,
3294
+ 95,
3295
+ 105,
3296
+ 100,
3297
+ 125,
3298
+ 47,
3299
+ 115,
3300
+ 99,
3301
+ 114,
3302
+ 105,
3303
+ 112,
3304
+ 116,
3305
+ 115,
3306
+ 47,
3307
+ 123,
3308
+ 116,
3309
+ 101,
3310
+ 115,
3311
+ 116,
3312
+ 95,
3313
+ 115,
3314
+ 99,
3315
+ 114,
3316
+ 105,
3317
+ 112,
3318
+ 116,
3319
+ 95,
3320
+ 105,
3321
+ 100,
3322
+ 125,
3323
+ ]),
3324
+ ],
3325
+ },
3326
+ },
3327
+ },
3328
+ archiveTestScript: {
3329
+ name: "ArchiveTestScript",
3330
+ requestType: exports.ArchiveTestScriptRequest,
3331
+ requestStream: false,
3332
+ responseType: exports.ArchiveTestScriptResponse,
3333
+ responseStream: false,
3334
+ options: {
3335
+ _unknownFields: {
3336
+ 578365826: [
3337
+ new Uint8Array([
3338
+ 87,
3339
+ 58,
3340
+ 1,
3341
+ 42,
3342
+ 34,
3343
+ 82,
3344
+ 47,
3345
+ 118,
3346
+ 49,
3347
+ 47,
3348
+ 112,
3349
+ 114,
3350
+ 111,
3351
+ 106,
3352
+ 101,
3353
+ 99,
3354
+ 116,
3355
+ 115,
3356
+ 47,
3357
+ 123,
3358
+ 112,
3359
+ 114,
3360
+ 111,
3361
+ 106,
3362
+ 101,
3363
+ 99,
3364
+ 116,
3365
+ 95,
3366
+ 105,
3367
+ 100,
3368
+ 125,
3369
+ 47,
3370
+ 119,
3371
+ 111,
3372
+ 114,
3373
+ 107,
3374
+ 102,
3375
+ 108,
3376
+ 111,
3377
+ 119,
3378
+ 115,
3379
+ 47,
3380
+ 123,
3381
+ 119,
3382
+ 111,
3383
+ 114,
3384
+ 107,
3385
+ 102,
3386
+ 108,
3387
+ 111,
3388
+ 119,
3389
+ 95,
3390
+ 105,
3391
+ 100,
3392
+ 125,
3393
+ 47,
3394
+ 115,
3395
+ 99,
3396
+ 114,
3397
+ 105,
3398
+ 112,
3399
+ 116,
3400
+ 115,
3401
+ 47,
3402
+ 123,
3403
+ 116,
3404
+ 101,
3405
+ 115,
3406
+ 116,
3407
+ 95,
3408
+ 115,
3409
+ 99,
3410
+ 114,
3411
+ 105,
3412
+ 112,
3413
+ 116,
3414
+ 95,
3415
+ 105,
3416
+ 100,
3417
+ 125,
3418
+ 58,
3419
+ 97,
3420
+ 114,
3421
+ 99,
3422
+ 104,
3423
+ 105,
3424
+ 118,
3425
+ 101,
3426
+ ]),
3427
+ ],
3428
+ },
3429
+ },
3430
+ },
3431
+ deleteTestScript: {
3432
+ name: "DeleteTestScript",
3433
+ requestType: exports.DeleteTestScriptRequest,
3434
+ requestStream: false,
3435
+ responseType: exports.DeleteTestScriptResponse,
3436
+ responseStream: false,
3437
+ options: {
3438
+ _unknownFields: {
3439
+ 578365826: [
3440
+ new Uint8Array([
3441
+ 76,
3442
+ 42,
3443
+ 74,
3444
+ 47,
3445
+ 118,
3446
+ 49,
3447
+ 47,
3448
+ 112,
3449
+ 114,
3450
+ 111,
3451
+ 106,
3452
+ 101,
3453
+ 99,
3454
+ 116,
3455
+ 115,
3456
+ 47,
3457
+ 123,
3458
+ 112,
3459
+ 114,
3460
+ 111,
3461
+ 106,
3462
+ 101,
3463
+ 99,
3464
+ 116,
3465
+ 95,
3466
+ 105,
3467
+ 100,
3468
+ 125,
3469
+ 47,
3470
+ 119,
3471
+ 111,
3472
+ 114,
3473
+ 107,
3474
+ 102,
3475
+ 108,
3476
+ 111,
3477
+ 119,
3478
+ 115,
3479
+ 47,
3480
+ 123,
3481
+ 119,
3482
+ 111,
3483
+ 114,
3484
+ 107,
3485
+ 102,
3486
+ 108,
3487
+ 111,
3488
+ 119,
3489
+ 95,
3490
+ 105,
3491
+ 100,
3492
+ 125,
3493
+ 47,
3494
+ 115,
3495
+ 99,
3496
+ 114,
3497
+ 105,
3498
+ 112,
3499
+ 116,
3500
+ 115,
3501
+ 47,
3502
+ 123,
3503
+ 116,
3504
+ 101,
3505
+ 115,
3506
+ 116,
3507
+ 95,
3508
+ 115,
3509
+ 99,
3510
+ 114,
3511
+ 105,
3512
+ 112,
3513
+ 116,
3514
+ 95,
3515
+ 105,
3516
+ 100,
3517
+ 125,
3518
+ ]),
3519
+ ],
3520
+ },
3521
+ },
3522
+ },
3523
+ createTestScriptVersion: {
3524
+ name: "CreateTestScriptVersion",
3525
+ requestType: exports.CreateTestScriptVersionRequest,
3526
+ requestStream: false,
3527
+ responseType: exports.CreateTestScriptVersionResponse,
3528
+ responseStream: false,
3529
+ options: {
3530
+ _unknownFields: {
3531
+ 578365826: [
3532
+ new Uint8Array([
3533
+ 88,
3534
+ 58,
3535
+ 1,
3536
+ 42,
3537
+ 34,
3538
+ 83,
3539
+ 47,
3540
+ 118,
3541
+ 49,
3542
+ 47,
3543
+ 112,
3544
+ 114,
3545
+ 111,
3546
+ 106,
3547
+ 101,
3548
+ 99,
3549
+ 116,
3550
+ 115,
3551
+ 47,
3552
+ 123,
3553
+ 112,
3554
+ 114,
3555
+ 111,
3556
+ 106,
3557
+ 101,
3558
+ 99,
3559
+ 116,
3560
+ 95,
3561
+ 105,
3562
+ 100,
3563
+ 125,
3564
+ 47,
3565
+ 119,
3566
+ 111,
3567
+ 114,
3568
+ 107,
3569
+ 102,
3570
+ 108,
3571
+ 111,
3572
+ 119,
3573
+ 115,
3574
+ 47,
3575
+ 123,
3576
+ 119,
3577
+ 111,
3578
+ 114,
3579
+ 107,
3580
+ 102,
3581
+ 108,
3582
+ 111,
3583
+ 119,
3584
+ 95,
3585
+ 105,
3586
+ 100,
3587
+ 125,
3588
+ 47,
3589
+ 115,
3590
+ 99,
3591
+ 114,
3592
+ 105,
3593
+ 112,
3594
+ 116,
3595
+ 115,
3596
+ 47,
3597
+ 123,
3598
+ 116,
3599
+ 101,
3600
+ 115,
3601
+ 116,
3602
+ 95,
3603
+ 115,
3604
+ 99,
3605
+ 114,
3606
+ 105,
3607
+ 112,
3608
+ 116,
3609
+ 95,
3610
+ 105,
3611
+ 100,
3612
+ 125,
3613
+ 47,
3614
+ 118,
3615
+ 101,
3616
+ 114,
3617
+ 115,
3618
+ 105,
3619
+ 111,
3620
+ 110,
3621
+ 115,
3622
+ ]),
3623
+ ],
3624
+ },
3625
+ },
3626
+ },
3627
+ getTestScriptVersion: {
3628
+ name: "GetTestScriptVersion",
3629
+ requestType: exports.GetTestScriptVersionRequest,
3630
+ requestStream: false,
3631
+ responseType: exports.GetTestScriptVersionResponse,
3632
+ responseStream: false,
3633
+ options: {
3634
+ _unknownFields: {
3635
+ 578365826: [
3636
+ new Uint8Array([
3637
+ 110,
3638
+ 18,
3639
+ 108,
3640
+ 47,
3641
+ 118,
3642
+ 49,
3643
+ 47,
3644
+ 112,
3645
+ 114,
3646
+ 111,
3647
+ 106,
3648
+ 101,
3649
+ 99,
3650
+ 116,
3651
+ 115,
3652
+ 47,
3653
+ 123,
3654
+ 112,
3655
+ 114,
3656
+ 111,
3657
+ 106,
3658
+ 101,
3659
+ 99,
3660
+ 116,
3661
+ 95,
3662
+ 105,
3663
+ 100,
3664
+ 125,
3665
+ 47,
3666
+ 119,
3667
+ 111,
3668
+ 114,
3669
+ 107,
3670
+ 102,
3671
+ 108,
3672
+ 111,
3673
+ 119,
3674
+ 115,
3675
+ 47,
3676
+ 123,
3677
+ 119,
3678
+ 111,
3679
+ 114,
3680
+ 107,
3681
+ 102,
3682
+ 108,
3683
+ 111,
3684
+ 119,
3685
+ 95,
3686
+ 105,
3687
+ 100,
3688
+ 125,
3689
+ 47,
3690
+ 115,
3691
+ 99,
3692
+ 114,
3693
+ 105,
3694
+ 112,
3695
+ 116,
3696
+ 115,
3697
+ 47,
3698
+ 123,
3699
+ 116,
3700
+ 101,
3701
+ 115,
3702
+ 116,
3703
+ 95,
3704
+ 115,
3705
+ 99,
3706
+ 114,
3707
+ 105,
3708
+ 112,
3709
+ 116,
3710
+ 95,
3711
+ 105,
3712
+ 100,
3713
+ 125,
3714
+ 47,
3715
+ 118,
3716
+ 101,
3717
+ 114,
3718
+ 115,
3719
+ 105,
3720
+ 111,
3721
+ 110,
3722
+ 115,
3723
+ 47,
3724
+ 123,
3725
+ 116,
3726
+ 101,
3727
+ 115,
3728
+ 116,
3729
+ 95,
3730
+ 115,
3731
+ 99,
3732
+ 114,
3733
+ 105,
3734
+ 112,
3735
+ 116,
3736
+ 95,
3737
+ 118,
3738
+ 101,
3739
+ 114,
3740
+ 115,
3741
+ 105,
3742
+ 111,
3743
+ 110,
3744
+ 95,
3745
+ 105,
3746
+ 100,
3747
+ 125,
3748
+ ]),
3749
+ ],
3750
+ },
3751
+ },
3752
+ },
3753
+ listTestScriptVersions: {
3754
+ name: "ListTestScriptVersions",
3755
+ requestType: exports.ListTestScriptVersionsRequest,
3756
+ requestStream: false,
3757
+ responseType: exports.ListTestScriptVersionsResponse,
3758
+ responseStream: false,
3759
+ options: {
3760
+ _unknownFields: {
3761
+ 578365826: [
3762
+ new Uint8Array([
3763
+ 85,
3764
+ 18,
3765
+ 83,
3766
+ 47,
3767
+ 118,
3768
+ 49,
3769
+ 47,
3770
+ 112,
3771
+ 114,
3772
+ 111,
3773
+ 106,
3774
+ 101,
3775
+ 99,
3776
+ 116,
3777
+ 115,
3778
+ 47,
3779
+ 123,
3780
+ 112,
3781
+ 114,
3782
+ 111,
3783
+ 106,
3784
+ 101,
3785
+ 99,
3786
+ 116,
3787
+ 95,
3788
+ 105,
3789
+ 100,
3790
+ 125,
3791
+ 47,
3792
+ 119,
3793
+ 111,
3794
+ 114,
3795
+ 107,
3796
+ 102,
3797
+ 108,
3798
+ 111,
3799
+ 119,
3800
+ 115,
3801
+ 47,
3802
+ 123,
3803
+ 119,
3804
+ 111,
3805
+ 114,
3806
+ 107,
3807
+ 102,
3808
+ 108,
3809
+ 111,
3810
+ 119,
3811
+ 95,
3812
+ 105,
3813
+ 100,
3814
+ 125,
3815
+ 47,
3816
+ 115,
3817
+ 99,
3818
+ 114,
3819
+ 105,
3820
+ 112,
3821
+ 116,
3822
+ 115,
3823
+ 47,
3824
+ 123,
3825
+ 116,
3826
+ 101,
3827
+ 115,
3828
+ 116,
3829
+ 95,
3830
+ 115,
3831
+ 99,
3832
+ 114,
3833
+ 105,
3834
+ 112,
3835
+ 116,
3836
+ 95,
3837
+ 105,
3838
+ 100,
3839
+ 125,
3840
+ 47,
3841
+ 118,
3842
+ 101,
3843
+ 114,
3844
+ 115,
3845
+ 105,
3846
+ 111,
3847
+ 110,
3848
+ 115,
3849
+ ]),
3850
+ ],
3851
+ },
3852
+ },
3853
+ },
3854
+ setCurrentTestScriptVersion: {
3855
+ name: "SetCurrentTestScriptVersion",
3856
+ requestType: exports.SetCurrentTestScriptVersionRequest,
3857
+ requestStream: false,
3858
+ responseType: exports.SetCurrentTestScriptVersionResponse,
3859
+ responseStream: false,
3860
+ options: {
3861
+ _unknownFields: {
3862
+ 578365826: [
3863
+ new Uint8Array([
3864
+ 99,
3865
+ 58,
3866
+ 1,
3867
+ 42,
3868
+ 34,
3869
+ 94,
3870
+ 47,
3871
+ 118,
3872
+ 49,
3873
+ 47,
3874
+ 112,
3875
+ 114,
3876
+ 111,
3877
+ 106,
3878
+ 101,
3879
+ 99,
3880
+ 116,
3881
+ 115,
3882
+ 47,
3883
+ 123,
3884
+ 112,
3885
+ 114,
3886
+ 111,
3887
+ 106,
3888
+ 101,
3889
+ 99,
3890
+ 116,
3891
+ 95,
3892
+ 105,
3893
+ 100,
3894
+ 125,
3895
+ 47,
3896
+ 119,
3897
+ 111,
3898
+ 114,
3899
+ 107,
3900
+ 102,
3901
+ 108,
3902
+ 111,
3903
+ 119,
3904
+ 115,
3905
+ 47,
3906
+ 123,
3907
+ 119,
3908
+ 111,
3909
+ 114,
3910
+ 107,
3911
+ 102,
3912
+ 108,
3913
+ 111,
3914
+ 119,
3915
+ 95,
3916
+ 105,
3917
+ 100,
3918
+ 125,
3919
+ 47,
3920
+ 115,
3921
+ 99,
3922
+ 114,
3923
+ 105,
3924
+ 112,
3925
+ 116,
3926
+ 115,
3927
+ 47,
3928
+ 123,
3929
+ 116,
3930
+ 101,
3931
+ 115,
3932
+ 116,
3933
+ 95,
3934
+ 115,
3935
+ 99,
3936
+ 114,
3937
+ 105,
3938
+ 112,
3939
+ 116,
3940
+ 95,
3941
+ 105,
3942
+ 100,
3943
+ 125,
3944
+ 58,
3945
+ 115,
3946
+ 101,
3947
+ 116,
3948
+ 45,
3949
+ 99,
3950
+ 117,
3951
+ 114,
3952
+ 114,
3953
+ 101,
3954
+ 110,
3955
+ 116,
3956
+ 45,
3957
+ 118,
3958
+ 101,
3959
+ 114,
3960
+ 115,
3961
+ 105,
3962
+ 111,
3963
+ 110,
3964
+ ]),
3965
+ ],
3966
+ },
3967
+ },
3968
+ },
3969
+ upsertScriptBinding: {
3970
+ name: "UpsertScriptBinding",
3971
+ requestType: exports.UpsertScriptBindingRequest,
3972
+ requestStream: false,
3973
+ responseType: exports.UpsertScriptBindingResponse,
3974
+ responseStream: false,
3975
+ options: {
3976
+ _unknownFields: {
3977
+ 578365826: [
3978
+ new Uint8Array([
3979
+ 88,
3980
+ 58,
3981
+ 1,
3982
+ 42,
3983
+ 34,
3984
+ 83,
3985
+ 47,
3986
+ 118,
3987
+ 49,
3988
+ 47,
3989
+ 112,
3990
+ 114,
3991
+ 111,
3992
+ 106,
3993
+ 101,
3994
+ 99,
3995
+ 116,
3996
+ 115,
3997
+ 47,
3998
+ 123,
3999
+ 112,
4000
+ 114,
4001
+ 111,
4002
+ 106,
4003
+ 101,
4004
+ 99,
4005
+ 116,
4006
+ 95,
4007
+ 105,
4008
+ 100,
4009
+ 125,
4010
+ 47,
4011
+ 119,
4012
+ 111,
4013
+ 114,
4014
+ 107,
4015
+ 102,
4016
+ 108,
4017
+ 111,
4018
+ 119,
4019
+ 115,
4020
+ 47,
4021
+ 123,
4022
+ 119,
4023
+ 111,
4024
+ 114,
4025
+ 107,
4026
+ 102,
4027
+ 108,
4028
+ 111,
4029
+ 119,
4030
+ 95,
4031
+ 105,
4032
+ 100,
4033
+ 125,
4034
+ 47,
4035
+ 115,
4036
+ 99,
4037
+ 114,
4038
+ 105,
4039
+ 112,
4040
+ 116,
4041
+ 115,
4042
+ 47,
4043
+ 123,
4044
+ 116,
4045
+ 101,
4046
+ 115,
4047
+ 116,
4048
+ 95,
4049
+ 115,
4050
+ 99,
4051
+ 114,
4052
+ 105,
4053
+ 112,
4054
+ 116,
4055
+ 95,
4056
+ 105,
4057
+ 100,
4058
+ 125,
4059
+ 47,
4060
+ 98,
4061
+ 105,
4062
+ 110,
4063
+ 100,
4064
+ 105,
4065
+ 110,
4066
+ 103,
4067
+ 115,
4068
+ ]),
4069
+ ],
4070
+ },
4071
+ },
4072
+ },
4073
+ listScriptBindings: {
4074
+ name: "ListScriptBindings",
4075
+ requestType: exports.ListScriptBindingsRequest,
4076
+ requestStream: false,
4077
+ responseType: exports.ListScriptBindingsResponse,
4078
+ responseStream: false,
4079
+ options: {
4080
+ _unknownFields: {
4081
+ 578365826: [
4082
+ new Uint8Array([
4083
+ 85,
4084
+ 18,
4085
+ 83,
4086
+ 47,
4087
+ 118,
4088
+ 49,
4089
+ 47,
4090
+ 112,
4091
+ 114,
4092
+ 111,
4093
+ 106,
4094
+ 101,
4095
+ 99,
4096
+ 116,
4097
+ 115,
4098
+ 47,
4099
+ 123,
4100
+ 112,
4101
+ 114,
4102
+ 111,
4103
+ 106,
4104
+ 101,
4105
+ 99,
4106
+ 116,
4107
+ 95,
4108
+ 105,
4109
+ 100,
4110
+ 125,
4111
+ 47,
4112
+ 119,
4113
+ 111,
4114
+ 114,
4115
+ 107,
4116
+ 102,
4117
+ 108,
4118
+ 111,
4119
+ 119,
4120
+ 115,
4121
+ 47,
4122
+ 123,
4123
+ 119,
4124
+ 111,
4125
+ 114,
4126
+ 107,
4127
+ 102,
4128
+ 108,
4129
+ 111,
4130
+ 119,
4131
+ 95,
4132
+ 105,
4133
+ 100,
4134
+ 125,
4135
+ 47,
4136
+ 115,
4137
+ 99,
4138
+ 114,
4139
+ 105,
4140
+ 112,
4141
+ 116,
4142
+ 115,
4143
+ 47,
4144
+ 123,
4145
+ 116,
4146
+ 101,
4147
+ 115,
4148
+ 116,
4149
+ 95,
4150
+ 115,
4151
+ 99,
4152
+ 114,
4153
+ 105,
4154
+ 112,
4155
+ 116,
4156
+ 95,
4157
+ 105,
4158
+ 100,
4159
+ 125,
4160
+ 47,
4161
+ 98,
4162
+ 105,
4163
+ 110,
4164
+ 100,
4165
+ 105,
4166
+ 110,
4167
+ 103,
4168
+ 115,
4169
+ ]),
4170
+ ],
4171
+ },
4172
+ },
4173
+ },
4174
+ deleteScriptBinding: {
4175
+ name: "DeleteScriptBinding",
4176
+ requestType: exports.DeleteScriptBindingRequest,
4177
+ requestStream: false,
4178
+ responseType: exports.DeleteScriptBindingResponse,
4179
+ responseStream: false,
4180
+ options: {
4181
+ _unknownFields: {
4182
+ 578365826: [
4183
+ new Uint8Array([
4184
+ 105,
4185
+ 42,
4186
+ 103,
4187
+ 47,
4188
+ 118,
4189
+ 49,
4190
+ 47,
4191
+ 112,
4192
+ 114,
4193
+ 111,
4194
+ 106,
4195
+ 101,
4196
+ 99,
4197
+ 116,
4198
+ 115,
4199
+ 47,
4200
+ 123,
4201
+ 112,
4202
+ 114,
4203
+ 111,
4204
+ 106,
4205
+ 101,
4206
+ 99,
4207
+ 116,
4208
+ 95,
4209
+ 105,
4210
+ 100,
4211
+ 125,
4212
+ 47,
4213
+ 119,
4214
+ 111,
4215
+ 114,
4216
+ 107,
4217
+ 102,
4218
+ 108,
4219
+ 111,
4220
+ 119,
4221
+ 115,
4222
+ 47,
4223
+ 123,
4224
+ 119,
4225
+ 111,
4226
+ 114,
4227
+ 107,
4228
+ 102,
4229
+ 108,
4230
+ 111,
4231
+ 119,
4232
+ 95,
4233
+ 105,
4234
+ 100,
4235
+ 125,
4236
+ 47,
4237
+ 115,
4238
+ 99,
4239
+ 114,
4240
+ 105,
4241
+ 112,
4242
+ 116,
4243
+ 115,
4244
+ 47,
4245
+ 123,
4246
+ 116,
4247
+ 101,
4248
+ 115,
4249
+ 116,
4250
+ 95,
4251
+ 115,
4252
+ 99,
4253
+ 114,
4254
+ 105,
4255
+ 112,
4256
+ 116,
4257
+ 95,
4258
+ 105,
4259
+ 100,
4260
+ 125,
4261
+ 47,
4262
+ 98,
4263
+ 105,
4264
+ 110,
4265
+ 100,
4266
+ 105,
4267
+ 110,
4268
+ 103,
4269
+ 115,
4270
+ 47,
4271
+ 123,
4272
+ 115,
4273
+ 99,
4274
+ 114,
4275
+ 105,
4276
+ 112,
4277
+ 116,
4278
+ 95,
4279
+ 98,
4280
+ 105,
4281
+ 110,
4282
+ 100,
4283
+ 105,
4284
+ 110,
4285
+ 103,
4286
+ 95,
4287
+ 105,
4288
+ 100,
4289
+ 125,
4290
+ ]),
4291
+ ],
4292
+ },
4293
+ },
4294
+ },
4295
+ generateTestScripts: {
4296
+ name: "GenerateTestScripts",
4297
+ requestType: exports.GenerateTestScriptsRequest,
4298
+ requestStream: false,
4299
+ responseType: exports.GenerateTestScriptsResponse,
4300
+ responseStream: false,
4301
+ options: {
4302
+ _unknownFields: {
4303
+ 578365826: [
4304
+ new Uint8Array([
4305
+ 71,
4306
+ 58,
4307
+ 1,
4308
+ 42,
4309
+ 34,
4310
+ 66,
4311
+ 47,
4312
+ 118,
4313
+ 49,
4314
+ 47,
4315
+ 112,
4316
+ 114,
4317
+ 111,
4318
+ 106,
4319
+ 101,
4320
+ 99,
4321
+ 116,
4322
+ 115,
4323
+ 47,
4324
+ 123,
4325
+ 112,
4326
+ 114,
4327
+ 111,
4328
+ 106,
4329
+ 101,
4330
+ 99,
4331
+ 116,
4332
+ 95,
4333
+ 105,
4334
+ 100,
4335
+ 125,
4336
+ 47,
4337
+ 119,
4338
+ 111,
4339
+ 114,
4340
+ 107,
4341
+ 102,
4342
+ 108,
4343
+ 111,
4344
+ 119,
4345
+ 115,
4346
+ 47,
4347
+ 123,
4348
+ 119,
4349
+ 111,
4350
+ 114,
4351
+ 107,
4352
+ 102,
4353
+ 108,
4354
+ 111,
4355
+ 119,
4356
+ 95,
4357
+ 105,
4358
+ 100,
4359
+ 125,
4360
+ 47,
4361
+ 115,
4362
+ 99,
4363
+ 114,
4364
+ 105,
4365
+ 112,
4366
+ 116,
4367
+ 115,
4368
+ 58,
4369
+ 103,
4370
+ 101,
4371
+ 110,
4372
+ 101,
4373
+ 114,
4374
+ 97,
4375
+ 116,
4376
+ 101,
4377
+ ]),
4378
+ ],
4379
+ },
4380
+ },
4381
+ },
4382
+ },
4383
+ };
4384
+ function longToNumber(int64) {
4385
+ const num = globalThis.Number(int64.toString());
4386
+ if (num > globalThis.Number.MAX_SAFE_INTEGER) {
4387
+ throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
4388
+ }
4389
+ if (num < globalThis.Number.MIN_SAFE_INTEGER) {
4390
+ throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
4391
+ }
4392
+ return num;
4393
+ }
4394
+ function isObject(value) {
4395
+ return typeof value === "object" && value !== null;
4396
+ }
4397
+ function isSet(value) {
4398
+ return value !== null && value !== undefined;
4399
+ }