weave-typescript 0.11.14 → 0.11.16

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