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