@deluxequadrat/dmxc-grpc-client 1.0.0

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