@dronedeploy/rocos-js-sdk 0.0.1 → 2.6.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (587) hide show
  1. package/IRocosSDK.d.ts +55 -0
  2. package/IRocosSDK.js +6 -0
  3. package/README.md +90 -0
  4. package/RocosSDK.d.ts +138 -0
  5. package/RocosSDK.js +294 -0
  6. package/api/StreamRegister.d.ts +13 -0
  7. package/api/StreamRegister.js +58 -0
  8. package/api/atoms/StreamHeartbeat.d.ts +27 -0
  9. package/api/atoms/StreamHeartbeat.js +115 -0
  10. package/api/streams/caller/CallerStream.d.ts +13 -0
  11. package/api/streams/caller/CallerStream.js +85 -0
  12. package/api/streams/caller/CallerStreamAbstract.d.ts +28 -0
  13. package/api/streams/caller/CallerStreamAbstract.js +99 -0
  14. package/api/streams/caller/CallerStreamNode.d.ts +13 -0
  15. package/api/streams/caller/CallerStreamNode.js +128 -0
  16. package/api/streams/command/CommandStream.d.ts +12 -0
  17. package/api/streams/command/CommandStream.js +68 -0
  18. package/api/streams/command/CommandStreamAbstract.d.ts +24 -0
  19. package/api/streams/command/CommandStreamAbstract.js +72 -0
  20. package/api/streams/command/CommandStreamNode.d.ts +12 -0
  21. package/api/streams/command/CommandStreamNode.js +93 -0
  22. package/api/streams/control/ControlStream.d.ts +14 -0
  23. package/api/streams/control/ControlStream.js +81 -0
  24. package/api/streams/control/ControlStreamAbstract.d.ts +28 -0
  25. package/api/streams/control/ControlStreamAbstract.js +108 -0
  26. package/api/streams/control/ControlStreamNode.d.ts +14 -0
  27. package/api/streams/control/ControlStreamNode.js +98 -0
  28. package/api/streams/fileAccessor/FileAccessorStream.d.ts +10 -0
  29. package/api/streams/fileAccessor/FileAccessorStream.js +74 -0
  30. package/api/streams/fileAccessor/FileAccessorStreamAbstract.d.ts +26 -0
  31. package/api/streams/fileAccessor/FileAccessorStreamAbstract.js +82 -0
  32. package/api/streams/fileAccessor/FileAccessorStreamNode.d.ts +10 -0
  33. package/api/streams/fileAccessor/FileAccessorStreamNode.js +96 -0
  34. package/api/streams/search/SearchStream.d.ts +16 -0
  35. package/api/streams/search/SearchStream.js +120 -0
  36. package/api/streams/search/SearchStreamAbstract.d.ts +30 -0
  37. package/api/streams/search/SearchStreamAbstract.js +74 -0
  38. package/api/streams/search/SearchStreamNode.d.ts +16 -0
  39. package/api/streams/search/SearchStreamNode.js +143 -0
  40. package/api/streams/telemetry/TelemetryStream.d.ts +17 -0
  41. package/api/streams/telemetry/TelemetryStream.js +126 -0
  42. package/api/streams/telemetry/TelemetryStreamAbstract.d.ts +62 -0
  43. package/api/streams/telemetry/TelemetryStreamAbstract.js +421 -0
  44. package/api/streams/telemetry/TelemetryStreamNode.d.ts +21 -0
  45. package/api/streams/telemetry/TelemetryStreamNode.js +195 -0
  46. package/api/streams/webRTCSignalling/WebRTCSignallingStream.d.ts +44 -0
  47. package/api/streams/webRTCSignalling/WebRTCSignallingStream.js +67 -0
  48. package/api/streams/webRTCSignalling/WebRTCSignallingStreamAbstract.d.ts +32 -0
  49. package/api/streams/webRTCSignalling/WebRTCSignallingStreamAbstract.js +65 -0
  50. package/constants/api.d.ts +121 -0
  51. package/constants/api.js +126 -0
  52. package/constants/grpc.d.ts +5 -0
  53. package/constants/grpc.js +8 -0
  54. package/constants/identifier.d.ts +6 -0
  55. package/constants/identifier.js +9 -0
  56. package/constants/timezones.d.ts +2 -0
  57. package/constants/timezones.js +430 -0
  58. package/demo/angular/.editorconfig +16 -0
  59. package/demo/angular/.eslintignore +4 -0
  60. package/demo/angular/.eslintrc.json +50 -0
  61. package/demo/angular/README.md +36 -0
  62. package/demo/angular/angular.json +132 -0
  63. package/demo/angular/karma.conf.js +44 -0
  64. package/demo/angular/package.json +41 -0
  65. package/demo/angular/src/app/app.component.css +0 -0
  66. package/demo/angular/src/app/app.component.html +9 -0
  67. package/demo/angular/src/app/app.component.ts +10 -0
  68. package/demo/angular/src/app/app.module.ts +38 -0
  69. package/demo/angular/src/app/components/assets/assets.component.css +0 -0
  70. package/demo/angular/src/app/components/assets/assets.component.html +29 -0
  71. package/demo/angular/src/app/components/assets/assets.component.ts +107 -0
  72. package/demo/angular/src/app/components/auth/auth.component.css +0 -0
  73. package/demo/angular/src/app/components/auth/auth.component.html +27 -0
  74. package/demo/angular/src/app/components/auth/auth.component.ts +33 -0
  75. package/demo/angular/src/app/components/caller/caller.component.css +0 -0
  76. package/demo/angular/src/app/components/caller/caller.component.html +22 -0
  77. package/demo/angular/src/app/components/caller/caller.component.ts +61 -0
  78. package/demo/angular/src/app/components/command/command.component.css +0 -0
  79. package/demo/angular/src/app/components/command/command.component.html +22 -0
  80. package/demo/angular/src/app/components/command/command.component.ts +60 -0
  81. package/demo/angular/src/app/components/integrations/integrations.component.ts +43 -0
  82. package/demo/angular/src/app/components/robots/robots.component.css +0 -0
  83. package/demo/angular/src/app/components/robots/robots.component.html +13 -0
  84. package/demo/angular/src/app/components/robots/robots.component.ts +26 -0
  85. package/demo/angular/src/app/components/sdk/sdk.component.css +0 -0
  86. package/demo/angular/src/app/components/sdk/sdk.component.html +43 -0
  87. package/demo/angular/src/app/components/sdk/sdk.component.ts +50 -0
  88. package/demo/angular/src/app/components/subscription/subscription.component.css +0 -0
  89. package/demo/angular/src/app/components/subscription/subscription.component.html +6 -0
  90. package/demo/angular/src/app/components/subscription/subscription.component.ts +40 -0
  91. package/demo/angular/src/app/components/telemetry/telemetry.component.css +0 -0
  92. package/demo/angular/src/app/components/telemetry/telemetry.component.html +19 -0
  93. package/demo/angular/src/app/components/telemetry/telemetry.component.ts +61 -0
  94. package/demo/angular/src/app/components/token/token.component.css +0 -0
  95. package/demo/angular/src/app/components/token/token.component.html +10 -0
  96. package/demo/angular/src/app/components/token/token.component.ts +18 -0
  97. package/demo/angular/src/app/components/video/p2pvideo/index.ts +646 -0
  98. package/demo/angular/src/app/components/video/video-source.ts +315 -0
  99. package/demo/angular/src/app/components/video/video.component.css +6 -0
  100. package/demo/angular/src/app/components/video/video.component.html +54 -0
  101. package/demo/angular/src/app/components/video/video.component.ts +151 -0
  102. package/demo/angular/src/app/services/sdk.service.ts +193 -0
  103. package/demo/angular/src/assets/.gitkeep +0 -0
  104. package/demo/angular/src/assets/HKGrotesk-Bold.otf +0 -0
  105. package/demo/angular/src/assets/HKGrotesk-Regular.otf +0 -0
  106. package/demo/angular/src/assets/logo.svg +16 -0
  107. package/demo/angular/src/environments/environment.prod.ts +3 -0
  108. package/demo/angular/src/environments/environment.ts +16 -0
  109. package/demo/angular/src/favicon.ico +0 -0
  110. package/demo/angular/src/index.html +15 -0
  111. package/demo/angular/src/main.ts +7 -0
  112. package/demo/angular/src/polyfills.ts +53 -0
  113. package/demo/angular/src/styles.css +198 -0
  114. package/demo/angular/tsconfig.app.json +15 -0
  115. package/demo/angular/tsconfig.json +39 -0
  116. package/demo/html/README.md +8 -0
  117. package/demo/html/assets/HKGrotesk-Bold.otf +0 -0
  118. package/demo/html/assets/HKGrotesk-Regular.otf +0 -0
  119. package/demo/html/assets/logo.svg +16 -0
  120. package/demo/html/favicon.ico +0 -0
  121. package/demo/html/index.html +416 -0
  122. package/demo/html/rocos-js-sdk.js +3 -0
  123. package/demo/html/rocos-js-sdk.js.LICENSE.txt +8 -0
  124. package/demo/html/rocos-js-sdk.js.map +1 -0
  125. package/demo/html/styles.css +190 -0
  126. package/demo/node/README.md +17 -0
  127. package/demo/node/index.js +134 -0
  128. package/demo/node/package.json +8 -0
  129. package/demo/react/.env +1 -0
  130. package/demo/react/.env.dist +1 -0
  131. package/demo/react/.eslintrc.json +46 -0
  132. package/demo/react/README.md +65 -0
  133. package/demo/react/package.json +60 -0
  134. package/demo/react/public/favicon.ico +0 -0
  135. package/demo/react/public/index.html +43 -0
  136. package/demo/react/public/logo192.png +0 -0
  137. package/demo/react/public/logo512.png +0 -0
  138. package/demo/react/public/manifest.json +25 -0
  139. package/demo/react/public/robots.txt +3 -0
  140. package/demo/react/src/App.css +190 -0
  141. package/demo/react/src/App.tsx +31 -0
  142. package/demo/react/src/actions/index.ts +8 -0
  143. package/demo/react/src/actions/sdkActions.ts +62 -0
  144. package/demo/react/src/assets/HKGrotesk-Bold.otf +0 -0
  145. package/demo/react/src/assets/HKGrotesk-Regular.otf +0 -0
  146. package/demo/react/src/assets/logo.svg +16 -0
  147. package/demo/react/src/components/AuthForm.tsx +76 -0
  148. package/demo/react/src/components/CallerBox.tsx +53 -0
  149. package/demo/react/src/components/CallerForm.tsx +98 -0
  150. package/demo/react/src/components/CommandBox.tsx +47 -0
  151. package/demo/react/src/components/CommandForm.tsx +98 -0
  152. package/demo/react/src/components/RobotsForm.tsx +51 -0
  153. package/demo/react/src/components/SubscriptionBox.tsx +55 -0
  154. package/demo/react/src/components/TelemetryForm.tsx +98 -0
  155. package/demo/react/src/components/TokenForm.tsx +39 -0
  156. package/demo/react/src/config.json +14 -0
  157. package/demo/react/src/controllers/RocosSDKController.ts +48 -0
  158. package/demo/react/src/helpers/deepEqual.ts +27 -0
  159. package/demo/react/src/hooks/useInput.ts +29 -0
  160. package/demo/react/src/index.css +11 -0
  161. package/demo/react/src/index.tsx +26 -0
  162. package/demo/react/src/react-app-env.d.ts +1 -0
  163. package/demo/react/src/reducers/sdkReducer.ts +133 -0
  164. package/demo/react/src/reportWebVitals.ts +15 -0
  165. package/demo/react/src/selectors/sdkSelector.ts +11 -0
  166. package/demo/react/src/setupTests.ts +5 -0
  167. package/demo/react/src/store.ts +14 -0
  168. package/demo/react/tsconfig.json +26 -0
  169. package/demo/sdk-sizer/dist/sdk-sizer/3rdpartylicenses.txt +975 -0
  170. package/demo/sdk-sizer/dist/sdk-sizer/favicon.ico +0 -0
  171. package/demo/sdk-sizer/dist/sdk-sizer/index.html +12 -0
  172. package/demo/sdk-sizer/dist/sdk-sizer/main.c9183649ce1856ef.js +2 -0
  173. package/demo/sdk-sizer/dist/sdk-sizer/main.c9183649ce1856ef.js.map +1 -0
  174. package/demo/sdk-sizer/dist/sdk-sizer/polyfills.701c8e5d007909aa.js +2 -0
  175. package/demo/sdk-sizer/dist/sdk-sizer/polyfills.701c8e5d007909aa.js.map +1 -0
  176. package/demo/sdk-sizer/dist/sdk-sizer/runtime.00e20e689f5284a8.js +2 -0
  177. package/demo/sdk-sizer/dist/sdk-sizer/runtime.00e20e689f5284a8.js.map +1 -0
  178. package/demo/sdk-sizer/dist/sdk-sizer/stats.json +1 -0
  179. package/demo/sdk-sizer/dist/sdk-sizer/styles.b45f7e627ac8cbce.css +2 -0
  180. package/demo/sdk-sizer/dist/sdk-sizer/styles.b45f7e627ac8cbce.css.map +1 -0
  181. package/grpc/file-accessor/filagree_grpc_pb.d.ts +41 -0
  182. package/grpc/file-accessor/filagree_grpc_pb.js +121 -0
  183. package/grpc/file-accessor/filagree_pb.d.ts +339 -0
  184. package/grpc/file-accessor/filagree_pb.js +2261 -0
  185. package/grpc/file-accessor/filagree_pb_service.d.ts +115 -0
  186. package/grpc/file-accessor/filagree_pb_service.js +257 -0
  187. package/grpc/rambo/rambo.v1_grpc_pb.d.ts +39 -0
  188. package/grpc/rambo/rambo.v1_grpc_pb.js +73 -0
  189. package/grpc/rambo/rambo.v1_pb.d.ts +365 -0
  190. package/grpc/rambo/rambo.v1_pb.js +2469 -0
  191. package/grpc/rambo/rambo.v1_pb_service.d.ts +76 -0
  192. package/grpc/rambo/rambo.v1_pb_service.js +138 -0
  193. package/grpc/rambo/uri.v1_grpc_pb.d.ts +1 -0
  194. package/grpc/rambo/uri.v1_grpc_pb.js +1 -0
  195. package/grpc/rambo/uri.v1_pb.d.ts +80 -0
  196. package/grpc/rambo/uri.v1_pb.js +563 -0
  197. package/grpc/rambo/uri.v1_pb_service.d.ts +3 -0
  198. package/grpc/rambo/uri.v1_pb_service.js +3 -0
  199. package/grpc/robot-control/conker_grpc_pb.d.ts +46 -0
  200. package/grpc/robot-control/conker_grpc_pb.js +143 -0
  201. package/grpc/robot-control/conker_pb.d.ts +168 -0
  202. package/grpc/robot-control/conker_pb.js +1287 -0
  203. package/grpc/robot-control/conker_pb_service.d.ts +126 -0
  204. package/grpc/robot-control/conker_pb_service.js +301 -0
  205. package/grpc/serviette/common.v1_grpc_pb.d.ts +1 -0
  206. package/grpc/serviette/common.v1_grpc_pb.js +1 -0
  207. package/grpc/serviette/common.v1_pb.d.ts +8 -0
  208. package/grpc/serviette/common.v1_pb.js +45 -0
  209. package/grpc/serviette/common.v1_pb_service.d.ts +3 -0
  210. package/grpc/serviette/common.v1_pb_service.js +3 -0
  211. package/grpc/serviette/serviette.v1_grpc_pb.d.ts +137 -0
  212. package/grpc/serviette/serviette.v1_grpc_pb.js +331 -0
  213. package/grpc/serviette/serviette.v1_pb.d.ts +884 -0
  214. package/grpc/serviette/serviette.v1_pb.js +6363 -0
  215. package/grpc/serviette/serviette.v1_pb_service.d.ts +278 -0
  216. package/grpc/serviette/serviette.v1_pb_service.js +699 -0
  217. package/grpc/serviette/uri.v1_grpc_pb.d.ts +1 -0
  218. package/grpc/serviette/uri.v1_grpc_pb.js +1 -0
  219. package/grpc/serviette/uri.v1_pb.d.ts +102 -0
  220. package/grpc/serviette/uri.v1_pb.js +741 -0
  221. package/grpc/serviette/uri.v1_pb_service.d.ts +3 -0
  222. package/grpc/serviette/uri.v1_pb_service.js +3 -0
  223. package/grpc/slowlane/slowlane_grpc_pb.d.ts +38 -0
  224. package/grpc/slowlane/slowlane_grpc_pb.js +132 -0
  225. package/grpc/slowlane/slowlane_pb.d.ts +373 -0
  226. package/grpc/slowlane/slowlane_pb.js +2908 -0
  227. package/grpc/slowlane/slowlane_pb_service.d.ts +112 -0
  228. package/grpc/slowlane/slowlane_pb_service.js +189 -0
  229. package/grpc/teletubby/teletubby_grpc_pb.d.ts +73 -0
  230. package/grpc/teletubby/teletubby_grpc_pb.js +231 -0
  231. package/grpc/teletubby/teletubby_pb.d.ts +647 -0
  232. package/grpc/teletubby/teletubby_pb.js +4786 -0
  233. package/grpc/teletubby/teletubby_pb_service.d.ts +193 -0
  234. package/grpc/teletubby/teletubby_pb_service.js +436 -0
  235. package/grpc/video/pigeon_grpc_pb.d.ts +59 -0
  236. package/grpc/video/pigeon_grpc_pb.js +180 -0
  237. package/grpc/video/pigeon_pb.d.ts +237 -0
  238. package/grpc/video/pigeon_pb.js +1775 -0
  239. package/grpc/video/pigeon_pb_service.d.ts +152 -0
  240. package/grpc/video/pigeon_pb_service.js +292 -0
  241. package/helpers/arrayRemove.d.ts +1 -0
  242. package/helpers/arrayRemove.js +7 -0
  243. package/helpers/arrayUnique.d.ts +1 -0
  244. package/helpers/arrayUnique.js +7 -0
  245. package/helpers/average.d.ts +1 -0
  246. package/helpers/average.js +11 -0
  247. package/helpers/cleanObject.d.ts +1 -0
  248. package/helpers/cleanObject.js +20 -0
  249. package/helpers/enviroment.d.ts +8 -0
  250. package/helpers/enviroment.js +20 -0
  251. package/helpers/flattenCallsignsLookup.d.ts +2 -0
  252. package/helpers/flattenCallsignsLookup.js +10 -0
  253. package/helpers/flattenObject.d.ts +1 -0
  254. package/helpers/flattenObject.js +17 -0
  255. package/helpers/formatServiceUrl.d.ts +1 -0
  256. package/helpers/formatServiceUrl.js +11 -0
  257. package/helpers/generateUUID.d.ts +1 -0
  258. package/helpers/generateUUID.js +8 -0
  259. package/helpers/getSubscriptionsDifference.d.ts +10 -0
  260. package/helpers/getSubscriptionsDifference.js +39 -0
  261. package/helpers/getUniqueConfigKey.d.ts +7 -0
  262. package/helpers/getUniqueConfigKey.js +19 -0
  263. package/helpers/getUniqueId.d.ts +9 -0
  264. package/helpers/getUniqueId.js +15 -0
  265. package/helpers/getUnixTimeMs.d.ts +1 -0
  266. package/helpers/getUnixTimeMs.js +8 -0
  267. package/helpers/index.d.ts +3 -0
  268. package/helpers/index.js +15 -0
  269. package/helpers/nanosecondToMillisecond.d.ts +1 -0
  270. package/helpers/nanosecondToMillisecond.js +7 -0
  271. package/helpers/randomString.d.ts +1 -0
  272. package/helpers/randomString.js +7 -0
  273. package/helpers/standardDeviation.d.ts +1 -0
  274. package/helpers/standardDeviation.js +16 -0
  275. package/helpers/stringToUint8Array.d.ts +1 -0
  276. package/helpers/stringToUint8Array.js +14 -0
  277. package/helpers/uint8ArrayToString.d.ts +1 -0
  278. package/helpers/uint8ArrayToString.js +15 -0
  279. package/index.d.ts +7 -0
  280. package/index.js +19 -0
  281. package/logger/RocosLogger.d.ts +7 -0
  282. package/logger/RocosLogger.js +63 -0
  283. package/models/ExportDataQuery.d.ts +8 -0
  284. package/models/ExportDataQuery.js +17 -0
  285. package/models/ExternalProject.d.ts +6 -0
  286. package/models/ExternalProject.js +6 -0
  287. package/models/IBaseService.d.ts +3 -0
  288. package/models/IBaseService.js +2 -0
  289. package/models/IConfigGroup.d.ts +5 -0
  290. package/models/IConfigGroup.js +2 -0
  291. package/models/IDebugLevel.d.ts +2 -0
  292. package/models/IDebugLevel.js +2 -0
  293. package/models/IExportDataQuery.d.ts +9 -0
  294. package/models/IExportDataQuery.js +2 -0
  295. package/models/IFunctionConfig.d.ts +8 -0
  296. package/models/IFunctionConfig.js +2 -0
  297. package/models/IInvitation.d.ts +6 -0
  298. package/models/IInvitation.js +2 -0
  299. package/models/IInvitationExists.d.ts +4 -0
  300. package/models/IInvitationExists.js +2 -0
  301. package/models/IOperation.d.ts +6 -0
  302. package/models/IOperation.js +2 -0
  303. package/models/IPersonalAccessToken.d.ts +16 -0
  304. package/models/IPersonalAccessToken.js +2 -0
  305. package/models/IProject.d.ts +4 -0
  306. package/models/IProject.js +2 -0
  307. package/models/IProjectApplication.d.ts +6 -0
  308. package/models/IProjectApplication.js +2 -0
  309. package/models/IRobot.d.ts +17 -0
  310. package/models/IRobot.js +2 -0
  311. package/models/IRobotConfig.d.ts +8 -0
  312. package/models/IRobotConfig.js +2 -0
  313. package/models/IRobotPlugin.d.ts +3 -0
  314. package/models/IRobotPlugin.js +2 -0
  315. package/models/IRobotTemplate.d.ts +10 -0
  316. package/models/IRobotTemplate.js +2 -0
  317. package/models/IRocosSDKConfig.d.ts +25 -0
  318. package/models/IRocosSDKConfig.js +2 -0
  319. package/models/ISignupParams.d.ts +8 -0
  320. package/models/ISignupParams.js +2 -0
  321. package/models/ISource.d.ts +8 -0
  322. package/models/ISource.js +2 -0
  323. package/models/IStream.d.ts +9 -0
  324. package/models/IStream.js +2 -0
  325. package/models/IStreamConfig.d.ts +9 -0
  326. package/models/IStreamConfig.js +2 -0
  327. package/models/IStreamOptions.d.ts +7 -0
  328. package/models/IStreamOptions.js +2 -0
  329. package/models/IStreamSource.d.ts +8 -0
  330. package/models/IStreamSource.js +2 -0
  331. package/models/ISubscriberStatus.d.ts +5 -0
  332. package/models/ISubscriberStatus.js +2 -0
  333. package/models/ITelemetryStreamConfig.d.ts +7 -0
  334. package/models/ITelemetryStreamConfig.js +2 -0
  335. package/models/IToken.d.ts +5 -0
  336. package/models/IToken.js +2 -0
  337. package/models/IWidget.d.ts +25 -0
  338. package/models/IWidget.js +2 -0
  339. package/models/IWidgetLineGroup.d.ts +8 -0
  340. package/models/IWidgetLineGroup.js +2 -0
  341. package/models/ResponseLevelEnum.d.ts +6 -0
  342. package/models/ResponseLevelEnum.js +10 -0
  343. package/models/Robot.d.ts +19 -0
  344. package/models/Robot.js +12 -0
  345. package/models/RobotConfig.d.ts +10 -0
  346. package/models/RobotConfig.js +9 -0
  347. package/models/RobotPlugin.d.ts +5 -0
  348. package/models/RobotPlugin.js +9 -0
  349. package/models/RobotTemplate.d.ts +12 -0
  350. package/models/RobotTemplate.js +30 -0
  351. package/models/RocosError.d.ts +30 -0
  352. package/models/RocosError.js +43 -0
  353. package/models/ServiceEnum.d.ts +26 -0
  354. package/models/ServiceEnum.js +30 -0
  355. package/models/Stream.d.ts +10 -0
  356. package/models/Stream.js +15 -0
  357. package/models/StreamOptions.d.ts +9 -0
  358. package/models/StreamOptions.js +37 -0
  359. package/models/StreamSource.d.ts +10 -0
  360. package/models/StreamSource.js +15 -0
  361. package/models/SubscriberStatusEnum.d.ts +6 -0
  362. package/models/SubscriberStatusEnum.js +10 -0
  363. package/models/Token.d.ts +8 -0
  364. package/models/Token.js +15 -0
  365. package/models/Widget.d.ts +27 -0
  366. package/models/Widget.js +16 -0
  367. package/models/WidgetLineGroup.d.ts +10 -0
  368. package/models/WidgetLineGroup.js +9 -0
  369. package/models/asset-storage/AssetModelItem.d.ts +29 -0
  370. package/models/asset-storage/AssetModelItem.js +2 -0
  371. package/models/caller/IRocosCallerMessageChunk.d.ts +9 -0
  372. package/models/caller/IRocosCallerMessageChunk.js +2 -0
  373. package/models/caller/IRocosCallerMessageChunks.d.ts +5 -0
  374. package/models/caller/IRocosCallerMessageChunks.js +2 -0
  375. package/models/caller/IRocosCallerMessageHeartbeat.d.ts +2 -0
  376. package/models/caller/IRocosCallerMessageHeartbeat.js +2 -0
  377. package/models/caller/IRocosCallerMessageResponse.d.ts +9 -0
  378. package/models/caller/IRocosCallerMessageResponse.js +2 -0
  379. package/models/caller/IRocosCallerMessageResponseAck.d.ts +2 -0
  380. package/models/caller/IRocosCallerMessageResponseAck.js +2 -0
  381. package/models/caller/IRocosCallerMessageResponseResult.d.ts +2 -0
  382. package/models/caller/IRocosCallerMessageResponseResult.js +2 -0
  383. package/models/caller/IRocosCallerMessageResponseUid.d.ts +2 -0
  384. package/models/caller/IRocosCallerMessageResponseUid.js +2 -0
  385. package/models/caller/IRocosCallerMessageResponses.d.ts +5 -0
  386. package/models/caller/IRocosCallerMessageResponses.js +2 -0
  387. package/models/caller/RocosCallerResultStatus.d.ts +1 -0
  388. package/models/caller/RocosCallerResultStatus.js +5 -0
  389. package/models/callsigns/CallsignsEnums.d.ts +13 -0
  390. package/models/callsigns/CallsignsEnums.js +20 -0
  391. package/models/callsigns/CallsignsLookup.d.ts +8 -0
  392. package/models/callsigns/CallsignsLookup.js +33 -0
  393. package/models/callsigns/CallsignsQuery.d.ts +9 -0
  394. package/models/callsigns/CallsignsQuery.js +18 -0
  395. package/models/callsigns/CallsignsQueryPredicate.d.ts +9 -0
  396. package/models/callsigns/CallsignsQueryPredicate.js +19 -0
  397. package/models/command/IRocosCommandMessageHeartbeat.d.ts +2 -0
  398. package/models/command/IRocosCommandMessageHeartbeat.js +2 -0
  399. package/models/command/IRocosCommandMessageResponse.d.ts +2 -0
  400. package/models/command/IRocosCommandMessageResponse.js +2 -0
  401. package/models/command/RocosCommandResultStatus.d.ts +1 -0
  402. package/models/command/RocosCommandResultStatus.js +5 -0
  403. package/models/file/FileEnums.d.ts +30 -0
  404. package/models/file/FileEnums.js +36 -0
  405. package/models/index.d.ts +101 -0
  406. package/models/index.js +113 -0
  407. package/models/integrations/Overlay.d.ts +49 -0
  408. package/models/integrations/Overlay.js +2 -0
  409. package/models/integrations/Plan.d.ts +324 -0
  410. package/models/integrations/Plan.js +2 -0
  411. package/models/maps/Map.d.ts +12 -0
  412. package/models/maps/Map.js +2 -0
  413. package/models/message/IRocosCallerMessage.d.ts +8 -0
  414. package/models/message/IRocosCallerMessage.js +2 -0
  415. package/models/message/IRocosChangeMessage.d.ts +6 -0
  416. package/models/message/IRocosChangeMessage.js +2 -0
  417. package/models/message/IRocosCommandMessage.d.ts +6 -0
  418. package/models/message/IRocosCommandMessage.js +2 -0
  419. package/models/message/IRocosControlMessage.d.ts +7 -0
  420. package/models/message/IRocosControlMessage.js +2 -0
  421. package/models/message/IRocosOpResultMessage.d.ts +6 -0
  422. package/models/message/IRocosOpResultMessage.js +2 -0
  423. package/models/message/IRocosSearchMessage.d.ts +5 -0
  424. package/models/message/IRocosSearchMessage.js +2 -0
  425. package/models/message/IRocosSearchRowMessage.d.ts +9 -0
  426. package/models/message/IRocosSearchRowMessage.js +2 -0
  427. package/models/message/IRocosSearchStatusMessage.d.ts +4 -0
  428. package/models/message/IRocosSearchStatusMessage.js +2 -0
  429. package/models/message/IRocosTelemetryMessage.d.ts +18 -0
  430. package/models/message/IRocosTelemetryMessage.js +2 -0
  431. package/models/message/IStreamStatusMessage.d.ts +5 -0
  432. package/models/message/IStreamStatusMessage.js +2 -0
  433. package/models/message/RocosCallerMessage.d.ts +12 -0
  434. package/models/message/RocosCallerMessage.js +23 -0
  435. package/models/message/RocosCommandMessage.d.ts +10 -0
  436. package/models/message/RocosCommandMessage.js +16 -0
  437. package/models/message/RocosControlMessage.d.ts +11 -0
  438. package/models/message/RocosControlMessage.js +18 -0
  439. package/models/message/RocosOpResultMessage.d.ts +9 -0
  440. package/models/message/RocosOpResultMessage.js +22 -0
  441. package/models/message/RocosSearchMessage.d.ts +9 -0
  442. package/models/message/RocosSearchMessage.js +28 -0
  443. package/models/message/RocosSearchRowMessage.d.ts +13 -0
  444. package/models/message/RocosSearchRowMessage.js +20 -0
  445. package/models/message/RocosTelemetryMessage.d.ts +24 -0
  446. package/models/message/RocosTelemetryMessage.js +105 -0
  447. package/models/params/ICallerParams.d.ts +15 -0
  448. package/models/params/ICallerParams.js +2 -0
  449. package/models/params/ICommandParams.d.ts +9 -0
  450. package/models/params/ICommandParams.js +2 -0
  451. package/models/params/IControlParams.d.ts +8 -0
  452. package/models/params/IControlParams.js +2 -0
  453. package/models/params/IFileAccessorParams.d.ts +11 -0
  454. package/models/params/IFileAccessorParams.js +2 -0
  455. package/models/params/ISearchParams.d.ts +10 -0
  456. package/models/params/ISearchParams.js +2 -0
  457. package/models/params/ITelemetryParams.d.ts +18 -0
  458. package/models/params/ITelemetryParams.js +2 -0
  459. package/models/params/IWebRTCSignallingParams.d.ts +21 -0
  460. package/models/params/IWebRTCSignallingParams.js +2 -0
  461. package/models/projects/ProjectUser.d.ts +6 -0
  462. package/models/projects/ProjectUser.js +2 -0
  463. package/models/schedule/IScheduleAction.d.ts +13 -0
  464. package/models/schedule/IScheduleAction.js +9 -0
  465. package/models/schedule/IScheduleInfo.d.ts +11 -0
  466. package/models/schedule/IScheduleInfo.js +2 -0
  467. package/models/schedule/IScheduleJob.d.ts +12 -0
  468. package/models/schedule/IScheduleJob.js +2 -0
  469. package/models/search/SearchQueryFilter.d.ts +5 -0
  470. package/models/search/SearchQueryFilter.js +9 -0
  471. package/models/search/SearchStreamQuery.d.ts +15 -0
  472. package/models/search/SearchStreamQuery.js +10 -0
  473. package/models/stream/IBaseStream.d.ts +8 -0
  474. package/models/stream/IBaseStream.js +2 -0
  475. package/models/stream/ICallerStream.d.ts +8 -0
  476. package/models/stream/ICallerStream.js +2 -0
  477. package/models/stream/ICommandStream.d.ts +7 -0
  478. package/models/stream/ICommandStream.js +2 -0
  479. package/models/stream/IControlStream.d.ts +9 -0
  480. package/models/stream/IControlStream.js +2 -0
  481. package/models/stream/IFileAccessorStream.d.ts +10 -0
  482. package/models/stream/IFileAccessorStream.js +2 -0
  483. package/models/stream/ISearchStream.d.ts +11 -0
  484. package/models/stream/ISearchStream.js +2 -0
  485. package/models/stream/ITelemetryStream.d.ts +10 -0
  486. package/models/stream/ITelemetryStream.js +2 -0
  487. package/models/stream/IWebRTCSignallingStream.d.ts +41 -0
  488. package/models/stream/IWebRTCSignallingStream.js +7 -0
  489. package/models/types.d.ts +5 -0
  490. package/models/types.js +2 -0
  491. package/node/RocosSDKNode.d.ts +42 -0
  492. package/node/RocosSDKNode.js +148 -0
  493. package/node/index.d.ts +7 -0
  494. package/node/index.js +19 -0
  495. package/package.json +25 -6
  496. package/services/AssetStorageService.d.ts +92 -0
  497. package/services/AssetStorageService.js +153 -0
  498. package/services/AuthService.d.ts +61 -0
  499. package/services/AuthService.js +154 -0
  500. package/services/BaseServiceAbstract.d.ts +38 -0
  501. package/services/BaseServiceAbstract.js +103 -0
  502. package/services/CallerService.d.ts +22 -0
  503. package/services/CallerService.js +96 -0
  504. package/services/CallerServiceNode.d.ts +6 -0
  505. package/services/CallerServiceNode.js +11 -0
  506. package/services/CommandService.d.ts +21 -0
  507. package/services/CommandService.js +81 -0
  508. package/services/CommandServiceNode.d.ts +6 -0
  509. package/services/CommandServiceNode.js +11 -0
  510. package/services/ConfigGroupService.d.ts +89 -0
  511. package/services/ConfigGroupService.js +157 -0
  512. package/services/ControlService.d.ts +23 -0
  513. package/services/ControlService.js +100 -0
  514. package/services/ControlServiceNode.d.ts +6 -0
  515. package/services/ControlServiceNode.js +11 -0
  516. package/services/DashboardService.d.ts +97 -0
  517. package/services/DashboardService.js +146 -0
  518. package/services/EventService.d.ts +53 -0
  519. package/services/EventService.js +89 -0
  520. package/services/FileAccessorService.d.ts +25 -0
  521. package/services/FileAccessorService.js +85 -0
  522. package/services/FileAccessorServiceNode.d.ts +6 -0
  523. package/services/FileAccessorServiceNode.js +11 -0
  524. package/services/FunctionService.d.ts +68 -0
  525. package/services/FunctionService.js +103 -0
  526. package/services/IntegrationService.d.ts +48 -0
  527. package/services/IntegrationService.js +77 -0
  528. package/services/MapService.d.ts +96 -0
  529. package/services/MapService.js +119 -0
  530. package/services/PlatformTimeService.d.ts +35 -0
  531. package/services/PlatformTimeService.js +160 -0
  532. package/services/ProfileService.d.ts +244 -0
  533. package/services/ProfileService.js +366 -0
  534. package/services/ProjectService.d.ts +110 -0
  535. package/services/ProjectService.js +164 -0
  536. package/services/RobotService.d.ts +282 -0
  537. package/services/RobotService.js +467 -0
  538. package/services/ScheduleService.d.ts +22 -0
  539. package/services/ScheduleService.js +40 -0
  540. package/services/SearchService.d.ts +25 -0
  541. package/services/SearchService.js +93 -0
  542. package/services/SearchServiceNode.d.ts +6 -0
  543. package/services/SearchServiceNode.js +11 -0
  544. package/services/SpotProvisioningService.d.ts +14 -0
  545. package/services/SpotProvisioningService.js +43 -0
  546. package/services/SpotProvisioningServiceNode.d.ts +15 -0
  547. package/services/SpotProvisioningServiceNode.js +43 -0
  548. package/services/StreamService.d.ts +98 -0
  549. package/services/StreamService.js +146 -0
  550. package/services/TelemetryService.d.ts +43 -0
  551. package/services/TelemetryService.js +144 -0
  552. package/services/TelemetryServiceNode.d.ts +6 -0
  553. package/services/TelemetryServiceNode.js +11 -0
  554. package/services/TimeSyncerService.d.ts +13 -0
  555. package/services/TimeSyncerService.js +27 -0
  556. package/services/UserService.d.ts +200 -0
  557. package/services/UserService.js +319 -0
  558. package/services/WebRTCSignallingService.d.ts +22 -0
  559. package/services/WebRTCSignallingService.js +81 -0
  560. package/services/WorkflowService.d.ts +71 -0
  561. package/services/WorkflowService.js +122 -0
  562. package/services/index.d.ts +26 -0
  563. package/services/index.js +38 -0
  564. package/store/RocosStore.d.ts +31 -0
  565. package/store/RocosStore.js +53 -0
  566. package/utils/axisangle.d.ts +18 -0
  567. package/utils/axisangle.js +48 -0
  568. package/utils/eulerangles.d.ts +22 -0
  569. package/utils/eulerangles.js +133 -0
  570. package/utils/helperfunctions.d.ts +5 -0
  571. package/utils/helperfunctions.js +50 -0
  572. package/utils/localtransform.d.ts +17 -0
  573. package/utils/localtransform.js +50 -0
  574. package/utils/localtransformtree.d.ts +17 -0
  575. package/utils/localtransformtree.js +88 -0
  576. package/utils/misc.d.ts +17 -0
  577. package/utils/misc.js +23 -0
  578. package/utils/positionvector.d.ts +13 -0
  579. package/utils/positionvector.js +79 -0
  580. package/utils/quaternion.d.ts +20 -0
  581. package/utils/quaternion.js +62 -0
  582. package/utils/rotationmatrix.d.ts +23 -0
  583. package/utils/rotationmatrix.js +262 -0
  584. package/utils/transformationmatrix.d.ts +12 -0
  585. package/utils/transformationmatrix.js +123 -0
  586. package/utils/vector3.d.ts +11 -0
  587. package/utils/vector3.js +61 -0
@@ -0,0 +1,2469 @@
1
+ // source: rambo.v1.proto
2
+ /**
3
+ * @fileoverview
4
+ * @enhanceable
5
+ * @suppress {messageConventions} JS Compiler reports an error if a variable or
6
+ * field starts with 'MSG_' and isn't a translatable message.
7
+ * @public
8
+ */
9
+ // GENERATED CODE -- DO NOT EDIT!
10
+ /* eslint-disable */
11
+ // @ts-nocheck
12
+
13
+ var jspb = require('google-protobuf');
14
+ var goog = jspb;
15
+ var global = Function('return this')();
16
+
17
+ var uri_v1_pb = require('./uri.v1_pb.js');
18
+ goog.object.extend(proto, uri_v1_pb);
19
+ goog.exportSymbol('proto.rambo.v1.Ack', null, global);
20
+ goog.exportSymbol('proto.rambo.v1.AckStatus', null, global);
21
+ goog.exportSymbol('proto.rambo.v1.CommandRequest', null, global);
22
+ goog.exportSymbol('proto.rambo.v1.CommandResponse', null, global);
23
+ goog.exportSymbol('proto.rambo.v1.CommandResponseLevel', null, global);
24
+ goog.exportSymbol('proto.rambo.v1.CommandResult', null, global);
25
+ goog.exportSymbol('proto.rambo.v1.CommandReturn', null, global);
26
+ goog.exportSymbol('proto.rambo.v1.CommandReturnType', null, global);
27
+ goog.exportSymbol('proto.rambo.v1.ExclusiveCommandChannelMessage', null, global);
28
+ goog.exportSymbol('proto.rambo.v1.ExclusiveCommandChannelMessage.ContentCase', null, global);
29
+ goog.exportSymbol('proto.rambo.v1.ExecutionContext', null, global);
30
+ goog.exportSymbol('proto.rambo.v1.Heartbeat', null, global);
31
+ goog.exportSymbol('proto.rambo.v1.RequestChannelMessage', null, global);
32
+ goog.exportSymbol('proto.rambo.v1.RequestChannelMessage.ContentCase', null, global);
33
+ goog.exportSymbol('proto.rambo.v1.ResponseChannelMessage', null, global);
34
+ goog.exportSymbol('proto.rambo.v1.ResponseChannelMessage.ContentCase', null, global);
35
+ goog.exportSymbol('proto.rambo.v1.ResultStatus', null, global);
36
+ goog.exportSymbol('proto.rambo.v1.Stage', null, global);
37
+ /**
38
+ * Generated by JsPbCodeGenerator.
39
+ * @param {Array=} opt_data Optional initial data array, typically from a
40
+ * server response, or constructed directly in Javascript. The array is used
41
+ * in place and becomes part of the constructed object. It is not cloned.
42
+ * If no data is provided, the constructed object will be empty, but still
43
+ * valid.
44
+ * @extends {jspb.Message}
45
+ * @constructor
46
+ */
47
+ proto.rambo.v1.Heartbeat = function(opt_data) {
48
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
49
+ };
50
+ goog.inherits(proto.rambo.v1.Heartbeat, jspb.Message);
51
+ if (goog.DEBUG && !COMPILED) {
52
+ /**
53
+ * @public
54
+ * @override
55
+ */
56
+ proto.rambo.v1.Heartbeat.displayName = 'proto.rambo.v1.Heartbeat';
57
+ }
58
+ /**
59
+ * Generated by JsPbCodeGenerator.
60
+ * @param {Array=} opt_data Optional initial data array, typically from a
61
+ * server response, or constructed directly in Javascript. The array is used
62
+ * in place and becomes part of the constructed object. It is not cloned.
63
+ * If no data is provided, the constructed object will be empty, but still
64
+ * valid.
65
+ * @extends {jspb.Message}
66
+ * @constructor
67
+ */
68
+ proto.rambo.v1.RequestChannelMessage = function(opt_data) {
69
+ jspb.Message.initialize(this, opt_data, 0, -1, null, proto.rambo.v1.RequestChannelMessage.oneofGroups_);
70
+ };
71
+ goog.inherits(proto.rambo.v1.RequestChannelMessage, jspb.Message);
72
+ if (goog.DEBUG && !COMPILED) {
73
+ /**
74
+ * @public
75
+ * @override
76
+ */
77
+ proto.rambo.v1.RequestChannelMessage.displayName = 'proto.rambo.v1.RequestChannelMessage';
78
+ }
79
+ /**
80
+ * Generated by JsPbCodeGenerator.
81
+ * @param {Array=} opt_data Optional initial data array, typically from a
82
+ * server response, or constructed directly in Javascript. The array is used
83
+ * in place and becomes part of the constructed object. It is not cloned.
84
+ * If no data is provided, the constructed object will be empty, but still
85
+ * valid.
86
+ * @extends {jspb.Message}
87
+ * @constructor
88
+ */
89
+ proto.rambo.v1.ResponseChannelMessage = function(opt_data) {
90
+ jspb.Message.initialize(this, opt_data, 0, -1, null, proto.rambo.v1.ResponseChannelMessage.oneofGroups_);
91
+ };
92
+ goog.inherits(proto.rambo.v1.ResponseChannelMessage, jspb.Message);
93
+ if (goog.DEBUG && !COMPILED) {
94
+ /**
95
+ * @public
96
+ * @override
97
+ */
98
+ proto.rambo.v1.ResponseChannelMessage.displayName = 'proto.rambo.v1.ResponseChannelMessage';
99
+ }
100
+ /**
101
+ * Generated by JsPbCodeGenerator.
102
+ * @param {Array=} opt_data Optional initial data array, typically from a
103
+ * server response, or constructed directly in Javascript. The array is used
104
+ * in place and becomes part of the constructed object. It is not cloned.
105
+ * If no data is provided, the constructed object will be empty, but still
106
+ * valid.
107
+ * @extends {jspb.Message}
108
+ * @constructor
109
+ */
110
+ proto.rambo.v1.ExclusiveCommandChannelMessage = function(opt_data) {
111
+ jspb.Message.initialize(this, opt_data, 0, -1, null, proto.rambo.v1.ExclusiveCommandChannelMessage.oneofGroups_);
112
+ };
113
+ goog.inherits(proto.rambo.v1.ExclusiveCommandChannelMessage, jspb.Message);
114
+ if (goog.DEBUG && !COMPILED) {
115
+ /**
116
+ * @public
117
+ * @override
118
+ */
119
+ proto.rambo.v1.ExclusiveCommandChannelMessage.displayName = 'proto.rambo.v1.ExclusiveCommandChannelMessage';
120
+ }
121
+ /**
122
+ * Generated by JsPbCodeGenerator.
123
+ * @param {Array=} opt_data Optional initial data array, typically from a
124
+ * server response, or constructed directly in Javascript. The array is used
125
+ * in place and becomes part of the constructed object. It is not cloned.
126
+ * If no data is provided, the constructed object will be empty, but still
127
+ * valid.
128
+ * @extends {jspb.Message}
129
+ * @constructor
130
+ */
131
+ proto.rambo.v1.CommandResponse = function(opt_data) {
132
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
133
+ };
134
+ goog.inherits(proto.rambo.v1.CommandResponse, jspb.Message);
135
+ if (goog.DEBUG && !COMPILED) {
136
+ /**
137
+ * @public
138
+ * @override
139
+ */
140
+ proto.rambo.v1.CommandResponse.displayName = 'proto.rambo.v1.CommandResponse';
141
+ }
142
+ /**
143
+ * Generated by JsPbCodeGenerator.
144
+ * @param {Array=} opt_data Optional initial data array, typically from a
145
+ * server response, or constructed directly in Javascript. The array is used
146
+ * in place and becomes part of the constructed object. It is not cloned.
147
+ * If no data is provided, the constructed object will be empty, but still
148
+ * valid.
149
+ * @extends {jspb.Message}
150
+ * @constructor
151
+ */
152
+ proto.rambo.v1.Ack = function(opt_data) {
153
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
154
+ };
155
+ goog.inherits(proto.rambo.v1.Ack, jspb.Message);
156
+ if (goog.DEBUG && !COMPILED) {
157
+ /**
158
+ * @public
159
+ * @override
160
+ */
161
+ proto.rambo.v1.Ack.displayName = 'proto.rambo.v1.Ack';
162
+ }
163
+ /**
164
+ * Generated by JsPbCodeGenerator.
165
+ * @param {Array=} opt_data Optional initial data array, typically from a
166
+ * server response, or constructed directly in Javascript. The array is used
167
+ * in place and becomes part of the constructed object. It is not cloned.
168
+ * If no data is provided, the constructed object will be empty, but still
169
+ * valid.
170
+ * @extends {jspb.Message}
171
+ * @constructor
172
+ */
173
+ proto.rambo.v1.CommandReturn = function(opt_data) {
174
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
175
+ };
176
+ goog.inherits(proto.rambo.v1.CommandReturn, jspb.Message);
177
+ if (goog.DEBUG && !COMPILED) {
178
+ /**
179
+ * @public
180
+ * @override
181
+ */
182
+ proto.rambo.v1.CommandReturn.displayName = 'proto.rambo.v1.CommandReturn';
183
+ }
184
+ /**
185
+ * Generated by JsPbCodeGenerator.
186
+ * @param {Array=} opt_data Optional initial data array, typically from a
187
+ * server response, or constructed directly in Javascript. The array is used
188
+ * in place and becomes part of the constructed object. It is not cloned.
189
+ * If no data is provided, the constructed object will be empty, but still
190
+ * valid.
191
+ * @extends {jspb.Message}
192
+ * @constructor
193
+ */
194
+ proto.rambo.v1.CommandResult = function(opt_data) {
195
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
196
+ };
197
+ goog.inherits(proto.rambo.v1.CommandResult, jspb.Message);
198
+ if (goog.DEBUG && !COMPILED) {
199
+ /**
200
+ * @public
201
+ * @override
202
+ */
203
+ proto.rambo.v1.CommandResult.displayName = 'proto.rambo.v1.CommandResult';
204
+ }
205
+ /**
206
+ * Generated by JsPbCodeGenerator.
207
+ * @param {Array=} opt_data Optional initial data array, typically from a
208
+ * server response, or constructed directly in Javascript. The array is used
209
+ * in place and becomes part of the constructed object. It is not cloned.
210
+ * If no data is provided, the constructed object will be empty, but still
211
+ * valid.
212
+ * @extends {jspb.Message}
213
+ * @constructor
214
+ */
215
+ proto.rambo.v1.CommandRequest = function(opt_data) {
216
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
217
+ };
218
+ goog.inherits(proto.rambo.v1.CommandRequest, jspb.Message);
219
+ if (goog.DEBUG && !COMPILED) {
220
+ /**
221
+ * @public
222
+ * @override
223
+ */
224
+ proto.rambo.v1.CommandRequest.displayName = 'proto.rambo.v1.CommandRequest';
225
+ }
226
+ /**
227
+ * Generated by JsPbCodeGenerator.
228
+ * @param {Array=} opt_data Optional initial data array, typically from a
229
+ * server response, or constructed directly in Javascript. The array is used
230
+ * in place and becomes part of the constructed object. It is not cloned.
231
+ * If no data is provided, the constructed object will be empty, but still
232
+ * valid.
233
+ * @extends {jspb.Message}
234
+ * @constructor
235
+ */
236
+ proto.rambo.v1.ExecutionContext = function(opt_data) {
237
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
238
+ };
239
+ goog.inherits(proto.rambo.v1.ExecutionContext, jspb.Message);
240
+ if (goog.DEBUG && !COMPILED) {
241
+ /**
242
+ * @public
243
+ * @override
244
+ */
245
+ proto.rambo.v1.ExecutionContext.displayName = 'proto.rambo.v1.ExecutionContext';
246
+ }
247
+
248
+
249
+
250
+ if (jspb.Message.GENERATE_TO_OBJECT) {
251
+ /**
252
+ * Creates an object representation of this proto.
253
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
254
+ * Optional fields that are not set will be set to undefined.
255
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
256
+ * For the list of reserved names please see:
257
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
258
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
259
+ * JSPB instance for transitional soy proto support:
260
+ * http://goto/soy-param-migration
261
+ * @return {!Object}
262
+ */
263
+ proto.rambo.v1.Heartbeat.prototype.toObject = function(opt_includeInstance) {
264
+ return proto.rambo.v1.Heartbeat.toObject(opt_includeInstance, this);
265
+ };
266
+
267
+
268
+ /**
269
+ * Static version of the {@see toObject} method.
270
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
271
+ * the JSPB instance for transitional soy proto support:
272
+ * http://goto/soy-param-migration
273
+ * @param {!proto.rambo.v1.Heartbeat} msg The msg instance to transform.
274
+ * @return {!Object}
275
+ * @suppress {unusedLocalVariables} f is only used for nested messages
276
+ */
277
+ proto.rambo.v1.Heartbeat.toObject = function(includeInstance, msg) {
278
+ var f, obj = {
279
+
280
+ };
281
+
282
+ if (includeInstance) {
283
+ obj.$jspbMessageInstance = msg;
284
+ }
285
+ return obj;
286
+ };
287
+ }
288
+
289
+
290
+ /**
291
+ * Deserializes binary data (in protobuf wire format).
292
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
293
+ * @return {!proto.rambo.v1.Heartbeat}
294
+ */
295
+ proto.rambo.v1.Heartbeat.deserializeBinary = function(bytes) {
296
+ var reader = new jspb.BinaryReader(bytes);
297
+ var msg = new proto.rambo.v1.Heartbeat;
298
+ return proto.rambo.v1.Heartbeat.deserializeBinaryFromReader(msg, reader);
299
+ };
300
+
301
+
302
+ /**
303
+ * Deserializes binary data (in protobuf wire format) from the
304
+ * given reader into the given message object.
305
+ * @param {!proto.rambo.v1.Heartbeat} msg The message object to deserialize into.
306
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
307
+ * @return {!proto.rambo.v1.Heartbeat}
308
+ */
309
+ proto.rambo.v1.Heartbeat.deserializeBinaryFromReader = function(msg, reader) {
310
+ while (reader.nextField()) {
311
+ if (reader.isEndGroup()) {
312
+ break;
313
+ }
314
+ var field = reader.getFieldNumber();
315
+ switch (field) {
316
+ default:
317
+ reader.skipField();
318
+ break;
319
+ }
320
+ }
321
+ return msg;
322
+ };
323
+
324
+
325
+ /**
326
+ * Serializes the message to binary data (in protobuf wire format).
327
+ * @return {!Uint8Array}
328
+ */
329
+ proto.rambo.v1.Heartbeat.prototype.serializeBinary = function() {
330
+ var writer = new jspb.BinaryWriter();
331
+ proto.rambo.v1.Heartbeat.serializeBinaryToWriter(this, writer);
332
+ return writer.getResultBuffer();
333
+ };
334
+
335
+
336
+ /**
337
+ * Serializes the given message to binary data (in protobuf wire
338
+ * format), writing to the given BinaryWriter.
339
+ * @param {!proto.rambo.v1.Heartbeat} message
340
+ * @param {!jspb.BinaryWriter} writer
341
+ * @suppress {unusedLocalVariables} f is only used for nested messages
342
+ */
343
+ proto.rambo.v1.Heartbeat.serializeBinaryToWriter = function(message, writer) {
344
+ var f = undefined;
345
+ };
346
+
347
+
348
+
349
+ /**
350
+ * Oneof group definitions for this message. Each group defines the field
351
+ * numbers belonging to that group. When of these fields' value is set, all
352
+ * other fields in the group are cleared. During deserialization, if multiple
353
+ * fields are encountered for a group, only the last value seen will be kept.
354
+ * @private {!Array<!Array<number>>}
355
+ * @const
356
+ */
357
+ proto.rambo.v1.RequestChannelMessage.oneofGroups_ = [[1,2]];
358
+
359
+ /**
360
+ * @enum {number}
361
+ */
362
+ proto.rambo.v1.RequestChannelMessage.ContentCase = {
363
+ CONTENT_NOT_SET: 0,
364
+ HEARTBEAT: 1,
365
+ COMMANDREQUEST: 2
366
+ };
367
+
368
+ /**
369
+ * @return {proto.rambo.v1.RequestChannelMessage.ContentCase}
370
+ */
371
+ proto.rambo.v1.RequestChannelMessage.prototype.getContentCase = function() {
372
+ return /** @type {proto.rambo.v1.RequestChannelMessage.ContentCase} */(jspb.Message.computeOneofCase(this, proto.rambo.v1.RequestChannelMessage.oneofGroups_[0]));
373
+ };
374
+
375
+
376
+
377
+ if (jspb.Message.GENERATE_TO_OBJECT) {
378
+ /**
379
+ * Creates an object representation of this proto.
380
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
381
+ * Optional fields that are not set will be set to undefined.
382
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
383
+ * For the list of reserved names please see:
384
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
385
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
386
+ * JSPB instance for transitional soy proto support:
387
+ * http://goto/soy-param-migration
388
+ * @return {!Object}
389
+ */
390
+ proto.rambo.v1.RequestChannelMessage.prototype.toObject = function(opt_includeInstance) {
391
+ return proto.rambo.v1.RequestChannelMessage.toObject(opt_includeInstance, this);
392
+ };
393
+
394
+
395
+ /**
396
+ * Static version of the {@see toObject} method.
397
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
398
+ * the JSPB instance for transitional soy proto support:
399
+ * http://goto/soy-param-migration
400
+ * @param {!proto.rambo.v1.RequestChannelMessage} msg The msg instance to transform.
401
+ * @return {!Object}
402
+ * @suppress {unusedLocalVariables} f is only used for nested messages
403
+ */
404
+ proto.rambo.v1.RequestChannelMessage.toObject = function(includeInstance, msg) {
405
+ var f, obj = {
406
+ heartbeat: (f = msg.getHeartbeat()) && proto.rambo.v1.Heartbeat.toObject(includeInstance, f),
407
+ commandrequest: (f = msg.getCommandrequest()) && proto.rambo.v1.CommandRequest.toObject(includeInstance, f)
408
+ };
409
+
410
+ if (includeInstance) {
411
+ obj.$jspbMessageInstance = msg;
412
+ }
413
+ return obj;
414
+ };
415
+ }
416
+
417
+
418
+ /**
419
+ * Deserializes binary data (in protobuf wire format).
420
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
421
+ * @return {!proto.rambo.v1.RequestChannelMessage}
422
+ */
423
+ proto.rambo.v1.RequestChannelMessage.deserializeBinary = function(bytes) {
424
+ var reader = new jspb.BinaryReader(bytes);
425
+ var msg = new proto.rambo.v1.RequestChannelMessage;
426
+ return proto.rambo.v1.RequestChannelMessage.deserializeBinaryFromReader(msg, reader);
427
+ };
428
+
429
+
430
+ /**
431
+ * Deserializes binary data (in protobuf wire format) from the
432
+ * given reader into the given message object.
433
+ * @param {!proto.rambo.v1.RequestChannelMessage} msg The message object to deserialize into.
434
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
435
+ * @return {!proto.rambo.v1.RequestChannelMessage}
436
+ */
437
+ proto.rambo.v1.RequestChannelMessage.deserializeBinaryFromReader = function(msg, reader) {
438
+ while (reader.nextField()) {
439
+ if (reader.isEndGroup()) {
440
+ break;
441
+ }
442
+ var field = reader.getFieldNumber();
443
+ switch (field) {
444
+ case 1:
445
+ var value = new proto.rambo.v1.Heartbeat;
446
+ reader.readMessage(value,proto.rambo.v1.Heartbeat.deserializeBinaryFromReader);
447
+ msg.setHeartbeat(value);
448
+ break;
449
+ case 2:
450
+ var value = new proto.rambo.v1.CommandRequest;
451
+ reader.readMessage(value,proto.rambo.v1.CommandRequest.deserializeBinaryFromReader);
452
+ msg.setCommandrequest(value);
453
+ break;
454
+ default:
455
+ reader.skipField();
456
+ break;
457
+ }
458
+ }
459
+ return msg;
460
+ };
461
+
462
+
463
+ /**
464
+ * Serializes the message to binary data (in protobuf wire format).
465
+ * @return {!Uint8Array}
466
+ */
467
+ proto.rambo.v1.RequestChannelMessage.prototype.serializeBinary = function() {
468
+ var writer = new jspb.BinaryWriter();
469
+ proto.rambo.v1.RequestChannelMessage.serializeBinaryToWriter(this, writer);
470
+ return writer.getResultBuffer();
471
+ };
472
+
473
+
474
+ /**
475
+ * Serializes the given message to binary data (in protobuf wire
476
+ * format), writing to the given BinaryWriter.
477
+ * @param {!proto.rambo.v1.RequestChannelMessage} message
478
+ * @param {!jspb.BinaryWriter} writer
479
+ * @suppress {unusedLocalVariables} f is only used for nested messages
480
+ */
481
+ proto.rambo.v1.RequestChannelMessage.serializeBinaryToWriter = function(message, writer) {
482
+ var f = undefined;
483
+ f = message.getHeartbeat();
484
+ if (f != null) {
485
+ writer.writeMessage(
486
+ 1,
487
+ f,
488
+ proto.rambo.v1.Heartbeat.serializeBinaryToWriter
489
+ );
490
+ }
491
+ f = message.getCommandrequest();
492
+ if (f != null) {
493
+ writer.writeMessage(
494
+ 2,
495
+ f,
496
+ proto.rambo.v1.CommandRequest.serializeBinaryToWriter
497
+ );
498
+ }
499
+ };
500
+
501
+
502
+ /**
503
+ * optional Heartbeat heartbeat = 1;
504
+ * @return {?proto.rambo.v1.Heartbeat}
505
+ */
506
+ proto.rambo.v1.RequestChannelMessage.prototype.getHeartbeat = function() {
507
+ return /** @type{?proto.rambo.v1.Heartbeat} */ (
508
+ jspb.Message.getWrapperField(this, proto.rambo.v1.Heartbeat, 1));
509
+ };
510
+
511
+
512
+ /**
513
+ * @param {?proto.rambo.v1.Heartbeat|undefined} value
514
+ * @return {!proto.rambo.v1.RequestChannelMessage} returns this
515
+ */
516
+ proto.rambo.v1.RequestChannelMessage.prototype.setHeartbeat = function(value) {
517
+ return jspb.Message.setOneofWrapperField(this, 1, proto.rambo.v1.RequestChannelMessage.oneofGroups_[0], value);
518
+ };
519
+
520
+
521
+ /**
522
+ * Clears the message field making it undefined.
523
+ * @return {!proto.rambo.v1.RequestChannelMessage} returns this
524
+ */
525
+ proto.rambo.v1.RequestChannelMessage.prototype.clearHeartbeat = function() {
526
+ return this.setHeartbeat(undefined);
527
+ };
528
+
529
+
530
+ /**
531
+ * Returns whether this field is set.
532
+ * @return {boolean}
533
+ */
534
+ proto.rambo.v1.RequestChannelMessage.prototype.hasHeartbeat = function() {
535
+ return jspb.Message.getField(this, 1) != null;
536
+ };
537
+
538
+
539
+ /**
540
+ * optional CommandRequest commandRequest = 2;
541
+ * @return {?proto.rambo.v1.CommandRequest}
542
+ */
543
+ proto.rambo.v1.RequestChannelMessage.prototype.getCommandrequest = function() {
544
+ return /** @type{?proto.rambo.v1.CommandRequest} */ (
545
+ jspb.Message.getWrapperField(this, proto.rambo.v1.CommandRequest, 2));
546
+ };
547
+
548
+
549
+ /**
550
+ * @param {?proto.rambo.v1.CommandRequest|undefined} value
551
+ * @return {!proto.rambo.v1.RequestChannelMessage} returns this
552
+ */
553
+ proto.rambo.v1.RequestChannelMessage.prototype.setCommandrequest = function(value) {
554
+ return jspb.Message.setOneofWrapperField(this, 2, proto.rambo.v1.RequestChannelMessage.oneofGroups_[0], value);
555
+ };
556
+
557
+
558
+ /**
559
+ * Clears the message field making it undefined.
560
+ * @return {!proto.rambo.v1.RequestChannelMessage} returns this
561
+ */
562
+ proto.rambo.v1.RequestChannelMessage.prototype.clearCommandrequest = function() {
563
+ return this.setCommandrequest(undefined);
564
+ };
565
+
566
+
567
+ /**
568
+ * Returns whether this field is set.
569
+ * @return {boolean}
570
+ */
571
+ proto.rambo.v1.RequestChannelMessage.prototype.hasCommandrequest = function() {
572
+ return jspb.Message.getField(this, 2) != null;
573
+ };
574
+
575
+
576
+
577
+ /**
578
+ * Oneof group definitions for this message. Each group defines the field
579
+ * numbers belonging to that group. When of these fields' value is set, all
580
+ * other fields in the group are cleared. During deserialization, if multiple
581
+ * fields are encountered for a group, only the last value seen will be kept.
582
+ * @private {!Array<!Array<number>>}
583
+ * @const
584
+ */
585
+ proto.rambo.v1.ResponseChannelMessage.oneofGroups_ = [[1,2]];
586
+
587
+ /**
588
+ * @enum {number}
589
+ */
590
+ proto.rambo.v1.ResponseChannelMessage.ContentCase = {
591
+ CONTENT_NOT_SET: 0,
592
+ HEARTBEAT: 1,
593
+ COMMANDRESPONSE: 2
594
+ };
595
+
596
+ /**
597
+ * @return {proto.rambo.v1.ResponseChannelMessage.ContentCase}
598
+ */
599
+ proto.rambo.v1.ResponseChannelMessage.prototype.getContentCase = function() {
600
+ return /** @type {proto.rambo.v1.ResponseChannelMessage.ContentCase} */(jspb.Message.computeOneofCase(this, proto.rambo.v1.ResponseChannelMessage.oneofGroups_[0]));
601
+ };
602
+
603
+
604
+
605
+ if (jspb.Message.GENERATE_TO_OBJECT) {
606
+ /**
607
+ * Creates an object representation of this proto.
608
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
609
+ * Optional fields that are not set will be set to undefined.
610
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
611
+ * For the list of reserved names please see:
612
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
613
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
614
+ * JSPB instance for transitional soy proto support:
615
+ * http://goto/soy-param-migration
616
+ * @return {!Object}
617
+ */
618
+ proto.rambo.v1.ResponseChannelMessage.prototype.toObject = function(opt_includeInstance) {
619
+ return proto.rambo.v1.ResponseChannelMessage.toObject(opt_includeInstance, this);
620
+ };
621
+
622
+
623
+ /**
624
+ * Static version of the {@see toObject} method.
625
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
626
+ * the JSPB instance for transitional soy proto support:
627
+ * http://goto/soy-param-migration
628
+ * @param {!proto.rambo.v1.ResponseChannelMessage} msg The msg instance to transform.
629
+ * @return {!Object}
630
+ * @suppress {unusedLocalVariables} f is only used for nested messages
631
+ */
632
+ proto.rambo.v1.ResponseChannelMessage.toObject = function(includeInstance, msg) {
633
+ var f, obj = {
634
+ heartbeat: (f = msg.getHeartbeat()) && proto.rambo.v1.Heartbeat.toObject(includeInstance, f),
635
+ commandresponse: (f = msg.getCommandresponse()) && proto.rambo.v1.CommandResponse.toObject(includeInstance, f)
636
+ };
637
+
638
+ if (includeInstance) {
639
+ obj.$jspbMessageInstance = msg;
640
+ }
641
+ return obj;
642
+ };
643
+ }
644
+
645
+
646
+ /**
647
+ * Deserializes binary data (in protobuf wire format).
648
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
649
+ * @return {!proto.rambo.v1.ResponseChannelMessage}
650
+ */
651
+ proto.rambo.v1.ResponseChannelMessage.deserializeBinary = function(bytes) {
652
+ var reader = new jspb.BinaryReader(bytes);
653
+ var msg = new proto.rambo.v1.ResponseChannelMessage;
654
+ return proto.rambo.v1.ResponseChannelMessage.deserializeBinaryFromReader(msg, reader);
655
+ };
656
+
657
+
658
+ /**
659
+ * Deserializes binary data (in protobuf wire format) from the
660
+ * given reader into the given message object.
661
+ * @param {!proto.rambo.v1.ResponseChannelMessage} msg The message object to deserialize into.
662
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
663
+ * @return {!proto.rambo.v1.ResponseChannelMessage}
664
+ */
665
+ proto.rambo.v1.ResponseChannelMessage.deserializeBinaryFromReader = function(msg, reader) {
666
+ while (reader.nextField()) {
667
+ if (reader.isEndGroup()) {
668
+ break;
669
+ }
670
+ var field = reader.getFieldNumber();
671
+ switch (field) {
672
+ case 1:
673
+ var value = new proto.rambo.v1.Heartbeat;
674
+ reader.readMessage(value,proto.rambo.v1.Heartbeat.deserializeBinaryFromReader);
675
+ msg.setHeartbeat(value);
676
+ break;
677
+ case 2:
678
+ var value = new proto.rambo.v1.CommandResponse;
679
+ reader.readMessage(value,proto.rambo.v1.CommandResponse.deserializeBinaryFromReader);
680
+ msg.setCommandresponse(value);
681
+ break;
682
+ default:
683
+ reader.skipField();
684
+ break;
685
+ }
686
+ }
687
+ return msg;
688
+ };
689
+
690
+
691
+ /**
692
+ * Serializes the message to binary data (in protobuf wire format).
693
+ * @return {!Uint8Array}
694
+ */
695
+ proto.rambo.v1.ResponseChannelMessage.prototype.serializeBinary = function() {
696
+ var writer = new jspb.BinaryWriter();
697
+ proto.rambo.v1.ResponseChannelMessage.serializeBinaryToWriter(this, writer);
698
+ return writer.getResultBuffer();
699
+ };
700
+
701
+
702
+ /**
703
+ * Serializes the given message to binary data (in protobuf wire
704
+ * format), writing to the given BinaryWriter.
705
+ * @param {!proto.rambo.v1.ResponseChannelMessage} message
706
+ * @param {!jspb.BinaryWriter} writer
707
+ * @suppress {unusedLocalVariables} f is only used for nested messages
708
+ */
709
+ proto.rambo.v1.ResponseChannelMessage.serializeBinaryToWriter = function(message, writer) {
710
+ var f = undefined;
711
+ f = message.getHeartbeat();
712
+ if (f != null) {
713
+ writer.writeMessage(
714
+ 1,
715
+ f,
716
+ proto.rambo.v1.Heartbeat.serializeBinaryToWriter
717
+ );
718
+ }
719
+ f = message.getCommandresponse();
720
+ if (f != null) {
721
+ writer.writeMessage(
722
+ 2,
723
+ f,
724
+ proto.rambo.v1.CommandResponse.serializeBinaryToWriter
725
+ );
726
+ }
727
+ };
728
+
729
+
730
+ /**
731
+ * optional Heartbeat heartbeat = 1;
732
+ * @return {?proto.rambo.v1.Heartbeat}
733
+ */
734
+ proto.rambo.v1.ResponseChannelMessage.prototype.getHeartbeat = function() {
735
+ return /** @type{?proto.rambo.v1.Heartbeat} */ (
736
+ jspb.Message.getWrapperField(this, proto.rambo.v1.Heartbeat, 1));
737
+ };
738
+
739
+
740
+ /**
741
+ * @param {?proto.rambo.v1.Heartbeat|undefined} value
742
+ * @return {!proto.rambo.v1.ResponseChannelMessage} returns this
743
+ */
744
+ proto.rambo.v1.ResponseChannelMessage.prototype.setHeartbeat = function(value) {
745
+ return jspb.Message.setOneofWrapperField(this, 1, proto.rambo.v1.ResponseChannelMessage.oneofGroups_[0], value);
746
+ };
747
+
748
+
749
+ /**
750
+ * Clears the message field making it undefined.
751
+ * @return {!proto.rambo.v1.ResponseChannelMessage} returns this
752
+ */
753
+ proto.rambo.v1.ResponseChannelMessage.prototype.clearHeartbeat = function() {
754
+ return this.setHeartbeat(undefined);
755
+ };
756
+
757
+
758
+ /**
759
+ * Returns whether this field is set.
760
+ * @return {boolean}
761
+ */
762
+ proto.rambo.v1.ResponseChannelMessage.prototype.hasHeartbeat = function() {
763
+ return jspb.Message.getField(this, 1) != null;
764
+ };
765
+
766
+
767
+ /**
768
+ * optional CommandResponse commandResponse = 2;
769
+ * @return {?proto.rambo.v1.CommandResponse}
770
+ */
771
+ proto.rambo.v1.ResponseChannelMessage.prototype.getCommandresponse = function() {
772
+ return /** @type{?proto.rambo.v1.CommandResponse} */ (
773
+ jspb.Message.getWrapperField(this, proto.rambo.v1.CommandResponse, 2));
774
+ };
775
+
776
+
777
+ /**
778
+ * @param {?proto.rambo.v1.CommandResponse|undefined} value
779
+ * @return {!proto.rambo.v1.ResponseChannelMessage} returns this
780
+ */
781
+ proto.rambo.v1.ResponseChannelMessage.prototype.setCommandresponse = function(value) {
782
+ return jspb.Message.setOneofWrapperField(this, 2, proto.rambo.v1.ResponseChannelMessage.oneofGroups_[0], value);
783
+ };
784
+
785
+
786
+ /**
787
+ * Clears the message field making it undefined.
788
+ * @return {!proto.rambo.v1.ResponseChannelMessage} returns this
789
+ */
790
+ proto.rambo.v1.ResponseChannelMessage.prototype.clearCommandresponse = function() {
791
+ return this.setCommandresponse(undefined);
792
+ };
793
+
794
+
795
+ /**
796
+ * Returns whether this field is set.
797
+ * @return {boolean}
798
+ */
799
+ proto.rambo.v1.ResponseChannelMessage.prototype.hasCommandresponse = function() {
800
+ return jspb.Message.getField(this, 2) != null;
801
+ };
802
+
803
+
804
+
805
+ /**
806
+ * Oneof group definitions for this message. Each group defines the field
807
+ * numbers belonging to that group. When of these fields' value is set, all
808
+ * other fields in the group are cleared. During deserialization, if multiple
809
+ * fields are encountered for a group, only the last value seen will be kept.
810
+ * @private {!Array<!Array<number>>}
811
+ * @const
812
+ */
813
+ proto.rambo.v1.ExclusiveCommandChannelMessage.oneofGroups_ = [[1,2,3]];
814
+
815
+ /**
816
+ * @enum {number}
817
+ */
818
+ proto.rambo.v1.ExclusiveCommandChannelMessage.ContentCase = {
819
+ CONTENT_NOT_SET: 0,
820
+ HEARTBEAT: 1,
821
+ COMMANDREQUEST: 2,
822
+ URI: 3
823
+ };
824
+
825
+ /**
826
+ * @return {proto.rambo.v1.ExclusiveCommandChannelMessage.ContentCase}
827
+ */
828
+ proto.rambo.v1.ExclusiveCommandChannelMessage.prototype.getContentCase = function() {
829
+ return /** @type {proto.rambo.v1.ExclusiveCommandChannelMessage.ContentCase} */(jspb.Message.computeOneofCase(this, proto.rambo.v1.ExclusiveCommandChannelMessage.oneofGroups_[0]));
830
+ };
831
+
832
+
833
+
834
+ if (jspb.Message.GENERATE_TO_OBJECT) {
835
+ /**
836
+ * Creates an object representation of this proto.
837
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
838
+ * Optional fields that are not set will be set to undefined.
839
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
840
+ * For the list of reserved names please see:
841
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
842
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
843
+ * JSPB instance for transitional soy proto support:
844
+ * http://goto/soy-param-migration
845
+ * @return {!Object}
846
+ */
847
+ proto.rambo.v1.ExclusiveCommandChannelMessage.prototype.toObject = function(opt_includeInstance) {
848
+ return proto.rambo.v1.ExclusiveCommandChannelMessage.toObject(opt_includeInstance, this);
849
+ };
850
+
851
+
852
+ /**
853
+ * Static version of the {@see toObject} method.
854
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
855
+ * the JSPB instance for transitional soy proto support:
856
+ * http://goto/soy-param-migration
857
+ * @param {!proto.rambo.v1.ExclusiveCommandChannelMessage} msg The msg instance to transform.
858
+ * @return {!Object}
859
+ * @suppress {unusedLocalVariables} f is only used for nested messages
860
+ */
861
+ proto.rambo.v1.ExclusiveCommandChannelMessage.toObject = function(includeInstance, msg) {
862
+ var f, obj = {
863
+ heartbeat: (f = msg.getHeartbeat()) && proto.rambo.v1.Heartbeat.toObject(includeInstance, f),
864
+ commandrequest: (f = msg.getCommandrequest()) && proto.rambo.v1.CommandRequest.toObject(includeInstance, f),
865
+ uri: (f = msg.getUri()) && uri_v1_pb.RocosUri.toObject(includeInstance, f)
866
+ };
867
+
868
+ if (includeInstance) {
869
+ obj.$jspbMessageInstance = msg;
870
+ }
871
+ return obj;
872
+ };
873
+ }
874
+
875
+
876
+ /**
877
+ * Deserializes binary data (in protobuf wire format).
878
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
879
+ * @return {!proto.rambo.v1.ExclusiveCommandChannelMessage}
880
+ */
881
+ proto.rambo.v1.ExclusiveCommandChannelMessage.deserializeBinary = function(bytes) {
882
+ var reader = new jspb.BinaryReader(bytes);
883
+ var msg = new proto.rambo.v1.ExclusiveCommandChannelMessage;
884
+ return proto.rambo.v1.ExclusiveCommandChannelMessage.deserializeBinaryFromReader(msg, reader);
885
+ };
886
+
887
+
888
+ /**
889
+ * Deserializes binary data (in protobuf wire format) from the
890
+ * given reader into the given message object.
891
+ * @param {!proto.rambo.v1.ExclusiveCommandChannelMessage} msg The message object to deserialize into.
892
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
893
+ * @return {!proto.rambo.v1.ExclusiveCommandChannelMessage}
894
+ */
895
+ proto.rambo.v1.ExclusiveCommandChannelMessage.deserializeBinaryFromReader = function(msg, reader) {
896
+ while (reader.nextField()) {
897
+ if (reader.isEndGroup()) {
898
+ break;
899
+ }
900
+ var field = reader.getFieldNumber();
901
+ switch (field) {
902
+ case 1:
903
+ var value = new proto.rambo.v1.Heartbeat;
904
+ reader.readMessage(value,proto.rambo.v1.Heartbeat.deserializeBinaryFromReader);
905
+ msg.setHeartbeat(value);
906
+ break;
907
+ case 2:
908
+ var value = new proto.rambo.v1.CommandRequest;
909
+ reader.readMessage(value,proto.rambo.v1.CommandRequest.deserializeBinaryFromReader);
910
+ msg.setCommandrequest(value);
911
+ break;
912
+ case 3:
913
+ var value = new uri_v1_pb.RocosUri;
914
+ reader.readMessage(value,uri_v1_pb.RocosUri.deserializeBinaryFromReader);
915
+ msg.setUri(value);
916
+ break;
917
+ default:
918
+ reader.skipField();
919
+ break;
920
+ }
921
+ }
922
+ return msg;
923
+ };
924
+
925
+
926
+ /**
927
+ * Serializes the message to binary data (in protobuf wire format).
928
+ * @return {!Uint8Array}
929
+ */
930
+ proto.rambo.v1.ExclusiveCommandChannelMessage.prototype.serializeBinary = function() {
931
+ var writer = new jspb.BinaryWriter();
932
+ proto.rambo.v1.ExclusiveCommandChannelMessage.serializeBinaryToWriter(this, writer);
933
+ return writer.getResultBuffer();
934
+ };
935
+
936
+
937
+ /**
938
+ * Serializes the given message to binary data (in protobuf wire
939
+ * format), writing to the given BinaryWriter.
940
+ * @param {!proto.rambo.v1.ExclusiveCommandChannelMessage} message
941
+ * @param {!jspb.BinaryWriter} writer
942
+ * @suppress {unusedLocalVariables} f is only used for nested messages
943
+ */
944
+ proto.rambo.v1.ExclusiveCommandChannelMessage.serializeBinaryToWriter = function(message, writer) {
945
+ var f = undefined;
946
+ f = message.getHeartbeat();
947
+ if (f != null) {
948
+ writer.writeMessage(
949
+ 1,
950
+ f,
951
+ proto.rambo.v1.Heartbeat.serializeBinaryToWriter
952
+ );
953
+ }
954
+ f = message.getCommandrequest();
955
+ if (f != null) {
956
+ writer.writeMessage(
957
+ 2,
958
+ f,
959
+ proto.rambo.v1.CommandRequest.serializeBinaryToWriter
960
+ );
961
+ }
962
+ f = message.getUri();
963
+ if (f != null) {
964
+ writer.writeMessage(
965
+ 3,
966
+ f,
967
+ uri_v1_pb.RocosUri.serializeBinaryToWriter
968
+ );
969
+ }
970
+ };
971
+
972
+
973
+ /**
974
+ * optional Heartbeat heartbeat = 1;
975
+ * @return {?proto.rambo.v1.Heartbeat}
976
+ */
977
+ proto.rambo.v1.ExclusiveCommandChannelMessage.prototype.getHeartbeat = function() {
978
+ return /** @type{?proto.rambo.v1.Heartbeat} */ (
979
+ jspb.Message.getWrapperField(this, proto.rambo.v1.Heartbeat, 1));
980
+ };
981
+
982
+
983
+ /**
984
+ * @param {?proto.rambo.v1.Heartbeat|undefined} value
985
+ * @return {!proto.rambo.v1.ExclusiveCommandChannelMessage} returns this
986
+ */
987
+ proto.rambo.v1.ExclusiveCommandChannelMessage.prototype.setHeartbeat = function(value) {
988
+ return jspb.Message.setOneofWrapperField(this, 1, proto.rambo.v1.ExclusiveCommandChannelMessage.oneofGroups_[0], value);
989
+ };
990
+
991
+
992
+ /**
993
+ * Clears the message field making it undefined.
994
+ * @return {!proto.rambo.v1.ExclusiveCommandChannelMessage} returns this
995
+ */
996
+ proto.rambo.v1.ExclusiveCommandChannelMessage.prototype.clearHeartbeat = function() {
997
+ return this.setHeartbeat(undefined);
998
+ };
999
+
1000
+
1001
+ /**
1002
+ * Returns whether this field is set.
1003
+ * @return {boolean}
1004
+ */
1005
+ proto.rambo.v1.ExclusiveCommandChannelMessage.prototype.hasHeartbeat = function() {
1006
+ return jspb.Message.getField(this, 1) != null;
1007
+ };
1008
+
1009
+
1010
+ /**
1011
+ * optional CommandRequest commandRequest = 2;
1012
+ * @return {?proto.rambo.v1.CommandRequest}
1013
+ */
1014
+ proto.rambo.v1.ExclusiveCommandChannelMessage.prototype.getCommandrequest = function() {
1015
+ return /** @type{?proto.rambo.v1.CommandRequest} */ (
1016
+ jspb.Message.getWrapperField(this, proto.rambo.v1.CommandRequest, 2));
1017
+ };
1018
+
1019
+
1020
+ /**
1021
+ * @param {?proto.rambo.v1.CommandRequest|undefined} value
1022
+ * @return {!proto.rambo.v1.ExclusiveCommandChannelMessage} returns this
1023
+ */
1024
+ proto.rambo.v1.ExclusiveCommandChannelMessage.prototype.setCommandrequest = function(value) {
1025
+ return jspb.Message.setOneofWrapperField(this, 2, proto.rambo.v1.ExclusiveCommandChannelMessage.oneofGroups_[0], value);
1026
+ };
1027
+
1028
+
1029
+ /**
1030
+ * Clears the message field making it undefined.
1031
+ * @return {!proto.rambo.v1.ExclusiveCommandChannelMessage} returns this
1032
+ */
1033
+ proto.rambo.v1.ExclusiveCommandChannelMessage.prototype.clearCommandrequest = function() {
1034
+ return this.setCommandrequest(undefined);
1035
+ };
1036
+
1037
+
1038
+ /**
1039
+ * Returns whether this field is set.
1040
+ * @return {boolean}
1041
+ */
1042
+ proto.rambo.v1.ExclusiveCommandChannelMessage.prototype.hasCommandrequest = function() {
1043
+ return jspb.Message.getField(this, 2) != null;
1044
+ };
1045
+
1046
+
1047
+ /**
1048
+ * optional RocosUri uri = 3;
1049
+ * @return {?proto.rambo.v1.RocosUri}
1050
+ */
1051
+ proto.rambo.v1.ExclusiveCommandChannelMessage.prototype.getUri = function() {
1052
+ return /** @type{?proto.rambo.v1.RocosUri} */ (
1053
+ jspb.Message.getWrapperField(this, uri_v1_pb.RocosUri, 3));
1054
+ };
1055
+
1056
+
1057
+ /**
1058
+ * @param {?proto.rambo.v1.RocosUri|undefined} value
1059
+ * @return {!proto.rambo.v1.ExclusiveCommandChannelMessage} returns this
1060
+ */
1061
+ proto.rambo.v1.ExclusiveCommandChannelMessage.prototype.setUri = function(value) {
1062
+ return jspb.Message.setOneofWrapperField(this, 3, proto.rambo.v1.ExclusiveCommandChannelMessage.oneofGroups_[0], value);
1063
+ };
1064
+
1065
+
1066
+ /**
1067
+ * Clears the message field making it undefined.
1068
+ * @return {!proto.rambo.v1.ExclusiveCommandChannelMessage} returns this
1069
+ */
1070
+ proto.rambo.v1.ExclusiveCommandChannelMessage.prototype.clearUri = function() {
1071
+ return this.setUri(undefined);
1072
+ };
1073
+
1074
+
1075
+ /**
1076
+ * Returns whether this field is set.
1077
+ * @return {boolean}
1078
+ */
1079
+ proto.rambo.v1.ExclusiveCommandChannelMessage.prototype.hasUri = function() {
1080
+ return jspb.Message.getField(this, 3) != null;
1081
+ };
1082
+
1083
+
1084
+
1085
+
1086
+
1087
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1088
+ /**
1089
+ * Creates an object representation of this proto.
1090
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1091
+ * Optional fields that are not set will be set to undefined.
1092
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1093
+ * For the list of reserved names please see:
1094
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1095
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1096
+ * JSPB instance for transitional soy proto support:
1097
+ * http://goto/soy-param-migration
1098
+ * @return {!Object}
1099
+ */
1100
+ proto.rambo.v1.CommandResponse.prototype.toObject = function(opt_includeInstance) {
1101
+ return proto.rambo.v1.CommandResponse.toObject(opt_includeInstance, this);
1102
+ };
1103
+
1104
+
1105
+ /**
1106
+ * Static version of the {@see toObject} method.
1107
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1108
+ * the JSPB instance for transitional soy proto support:
1109
+ * http://goto/soy-param-migration
1110
+ * @param {!proto.rambo.v1.CommandResponse} msg The msg instance to transform.
1111
+ * @return {!Object}
1112
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1113
+ */
1114
+ proto.rambo.v1.CommandResponse.toObject = function(includeInstance, msg) {
1115
+ var f, obj = {
1116
+ txid: jspb.Message.getFieldWithDefault(msg, 1, ""),
1117
+ ack: (f = msg.getAck()) && proto.rambo.v1.Ack.toObject(includeInstance, f),
1118
+ pb_return: (f = msg.getReturn()) && proto.rambo.v1.CommandReturn.toObject(includeInstance, f),
1119
+ result: (f = msg.getResult()) && proto.rambo.v1.CommandResult.toObject(includeInstance, f)
1120
+ };
1121
+
1122
+ if (includeInstance) {
1123
+ obj.$jspbMessageInstance = msg;
1124
+ }
1125
+ return obj;
1126
+ };
1127
+ }
1128
+
1129
+
1130
+ /**
1131
+ * Deserializes binary data (in protobuf wire format).
1132
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1133
+ * @return {!proto.rambo.v1.CommandResponse}
1134
+ */
1135
+ proto.rambo.v1.CommandResponse.deserializeBinary = function(bytes) {
1136
+ var reader = new jspb.BinaryReader(bytes);
1137
+ var msg = new proto.rambo.v1.CommandResponse;
1138
+ return proto.rambo.v1.CommandResponse.deserializeBinaryFromReader(msg, reader);
1139
+ };
1140
+
1141
+
1142
+ /**
1143
+ * Deserializes binary data (in protobuf wire format) from the
1144
+ * given reader into the given message object.
1145
+ * @param {!proto.rambo.v1.CommandResponse} msg The message object to deserialize into.
1146
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1147
+ * @return {!proto.rambo.v1.CommandResponse}
1148
+ */
1149
+ proto.rambo.v1.CommandResponse.deserializeBinaryFromReader = function(msg, reader) {
1150
+ while (reader.nextField()) {
1151
+ if (reader.isEndGroup()) {
1152
+ break;
1153
+ }
1154
+ var field = reader.getFieldNumber();
1155
+ switch (field) {
1156
+ case 1:
1157
+ var value = /** @type {string} */ (reader.readString());
1158
+ msg.setTxid(value);
1159
+ break;
1160
+ case 2:
1161
+ var value = new proto.rambo.v1.Ack;
1162
+ reader.readMessage(value,proto.rambo.v1.Ack.deserializeBinaryFromReader);
1163
+ msg.setAck(value);
1164
+ break;
1165
+ case 3:
1166
+ var value = new proto.rambo.v1.CommandReturn;
1167
+ reader.readMessage(value,proto.rambo.v1.CommandReturn.deserializeBinaryFromReader);
1168
+ msg.setReturn(value);
1169
+ break;
1170
+ case 4:
1171
+ var value = new proto.rambo.v1.CommandResult;
1172
+ reader.readMessage(value,proto.rambo.v1.CommandResult.deserializeBinaryFromReader);
1173
+ msg.setResult(value);
1174
+ break;
1175
+ default:
1176
+ reader.skipField();
1177
+ break;
1178
+ }
1179
+ }
1180
+ return msg;
1181
+ };
1182
+
1183
+
1184
+ /**
1185
+ * Serializes the message to binary data (in protobuf wire format).
1186
+ * @return {!Uint8Array}
1187
+ */
1188
+ proto.rambo.v1.CommandResponse.prototype.serializeBinary = function() {
1189
+ var writer = new jspb.BinaryWriter();
1190
+ proto.rambo.v1.CommandResponse.serializeBinaryToWriter(this, writer);
1191
+ return writer.getResultBuffer();
1192
+ };
1193
+
1194
+
1195
+ /**
1196
+ * Serializes the given message to binary data (in protobuf wire
1197
+ * format), writing to the given BinaryWriter.
1198
+ * @param {!proto.rambo.v1.CommandResponse} message
1199
+ * @param {!jspb.BinaryWriter} writer
1200
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1201
+ */
1202
+ proto.rambo.v1.CommandResponse.serializeBinaryToWriter = function(message, writer) {
1203
+ var f = undefined;
1204
+ f = message.getTxid();
1205
+ if (f.length > 0) {
1206
+ writer.writeString(
1207
+ 1,
1208
+ f
1209
+ );
1210
+ }
1211
+ f = message.getAck();
1212
+ if (f != null) {
1213
+ writer.writeMessage(
1214
+ 2,
1215
+ f,
1216
+ proto.rambo.v1.Ack.serializeBinaryToWriter
1217
+ );
1218
+ }
1219
+ f = message.getReturn();
1220
+ if (f != null) {
1221
+ writer.writeMessage(
1222
+ 3,
1223
+ f,
1224
+ proto.rambo.v1.CommandReturn.serializeBinaryToWriter
1225
+ );
1226
+ }
1227
+ f = message.getResult();
1228
+ if (f != null) {
1229
+ writer.writeMessage(
1230
+ 4,
1231
+ f,
1232
+ proto.rambo.v1.CommandResult.serializeBinaryToWriter
1233
+ );
1234
+ }
1235
+ };
1236
+
1237
+
1238
+ /**
1239
+ * optional string txid = 1;
1240
+ * @return {string}
1241
+ */
1242
+ proto.rambo.v1.CommandResponse.prototype.getTxid = function() {
1243
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1244
+ };
1245
+
1246
+
1247
+ /**
1248
+ * @param {string} value
1249
+ * @return {!proto.rambo.v1.CommandResponse} returns this
1250
+ */
1251
+ proto.rambo.v1.CommandResponse.prototype.setTxid = function(value) {
1252
+ return jspb.Message.setProto3StringField(this, 1, value);
1253
+ };
1254
+
1255
+
1256
+ /**
1257
+ * optional Ack ack = 2;
1258
+ * @return {?proto.rambo.v1.Ack}
1259
+ */
1260
+ proto.rambo.v1.CommandResponse.prototype.getAck = function() {
1261
+ return /** @type{?proto.rambo.v1.Ack} */ (
1262
+ jspb.Message.getWrapperField(this, proto.rambo.v1.Ack, 2));
1263
+ };
1264
+
1265
+
1266
+ /**
1267
+ * @param {?proto.rambo.v1.Ack|undefined} value
1268
+ * @return {!proto.rambo.v1.CommandResponse} returns this
1269
+ */
1270
+ proto.rambo.v1.CommandResponse.prototype.setAck = function(value) {
1271
+ return jspb.Message.setWrapperField(this, 2, value);
1272
+ };
1273
+
1274
+
1275
+ /**
1276
+ * Clears the message field making it undefined.
1277
+ * @return {!proto.rambo.v1.CommandResponse} returns this
1278
+ */
1279
+ proto.rambo.v1.CommandResponse.prototype.clearAck = function() {
1280
+ return this.setAck(undefined);
1281
+ };
1282
+
1283
+
1284
+ /**
1285
+ * Returns whether this field is set.
1286
+ * @return {boolean}
1287
+ */
1288
+ proto.rambo.v1.CommandResponse.prototype.hasAck = function() {
1289
+ return jspb.Message.getField(this, 2) != null;
1290
+ };
1291
+
1292
+
1293
+ /**
1294
+ * optional CommandReturn return = 3;
1295
+ * @return {?proto.rambo.v1.CommandReturn}
1296
+ */
1297
+ proto.rambo.v1.CommandResponse.prototype.getReturn = function() {
1298
+ return /** @type{?proto.rambo.v1.CommandReturn} */ (
1299
+ jspb.Message.getWrapperField(this, proto.rambo.v1.CommandReturn, 3));
1300
+ };
1301
+
1302
+
1303
+ /**
1304
+ * @param {?proto.rambo.v1.CommandReturn|undefined} value
1305
+ * @return {!proto.rambo.v1.CommandResponse} returns this
1306
+ */
1307
+ proto.rambo.v1.CommandResponse.prototype.setReturn = function(value) {
1308
+ return jspb.Message.setWrapperField(this, 3, value);
1309
+ };
1310
+
1311
+
1312
+ /**
1313
+ * Clears the message field making it undefined.
1314
+ * @return {!proto.rambo.v1.CommandResponse} returns this
1315
+ */
1316
+ proto.rambo.v1.CommandResponse.prototype.clearReturn = function() {
1317
+ return this.setReturn(undefined);
1318
+ };
1319
+
1320
+
1321
+ /**
1322
+ * Returns whether this field is set.
1323
+ * @return {boolean}
1324
+ */
1325
+ proto.rambo.v1.CommandResponse.prototype.hasReturn = function() {
1326
+ return jspb.Message.getField(this, 3) != null;
1327
+ };
1328
+
1329
+
1330
+ /**
1331
+ * optional CommandResult result = 4;
1332
+ * @return {?proto.rambo.v1.CommandResult}
1333
+ */
1334
+ proto.rambo.v1.CommandResponse.prototype.getResult = function() {
1335
+ return /** @type{?proto.rambo.v1.CommandResult} */ (
1336
+ jspb.Message.getWrapperField(this, proto.rambo.v1.CommandResult, 4));
1337
+ };
1338
+
1339
+
1340
+ /**
1341
+ * @param {?proto.rambo.v1.CommandResult|undefined} value
1342
+ * @return {!proto.rambo.v1.CommandResponse} returns this
1343
+ */
1344
+ proto.rambo.v1.CommandResponse.prototype.setResult = function(value) {
1345
+ return jspb.Message.setWrapperField(this, 4, value);
1346
+ };
1347
+
1348
+
1349
+ /**
1350
+ * Clears the message field making it undefined.
1351
+ * @return {!proto.rambo.v1.CommandResponse} returns this
1352
+ */
1353
+ proto.rambo.v1.CommandResponse.prototype.clearResult = function() {
1354
+ return this.setResult(undefined);
1355
+ };
1356
+
1357
+
1358
+ /**
1359
+ * Returns whether this field is set.
1360
+ * @return {boolean}
1361
+ */
1362
+ proto.rambo.v1.CommandResponse.prototype.hasResult = function() {
1363
+ return jspb.Message.getField(this, 4) != null;
1364
+ };
1365
+
1366
+
1367
+
1368
+
1369
+
1370
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1371
+ /**
1372
+ * Creates an object representation of this proto.
1373
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1374
+ * Optional fields that are not set will be set to undefined.
1375
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1376
+ * For the list of reserved names please see:
1377
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1378
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1379
+ * JSPB instance for transitional soy proto support:
1380
+ * http://goto/soy-param-migration
1381
+ * @return {!Object}
1382
+ */
1383
+ proto.rambo.v1.Ack.prototype.toObject = function(opt_includeInstance) {
1384
+ return proto.rambo.v1.Ack.toObject(opt_includeInstance, this);
1385
+ };
1386
+
1387
+
1388
+ /**
1389
+ * Static version of the {@see toObject} method.
1390
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1391
+ * the JSPB instance for transitional soy proto support:
1392
+ * http://goto/soy-param-migration
1393
+ * @param {!proto.rambo.v1.Ack} msg The msg instance to transform.
1394
+ * @return {!Object}
1395
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1396
+ */
1397
+ proto.rambo.v1.Ack.toObject = function(includeInstance, msg) {
1398
+ var f, obj = {
1399
+ stage: jspb.Message.getFieldWithDefault(msg, 1, 0),
1400
+ status: jspb.Message.getFieldWithDefault(msg, 2, 0),
1401
+ message: jspb.Message.getFieldWithDefault(msg, 3, "")
1402
+ };
1403
+
1404
+ if (includeInstance) {
1405
+ obj.$jspbMessageInstance = msg;
1406
+ }
1407
+ return obj;
1408
+ };
1409
+ }
1410
+
1411
+
1412
+ /**
1413
+ * Deserializes binary data (in protobuf wire format).
1414
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1415
+ * @return {!proto.rambo.v1.Ack}
1416
+ */
1417
+ proto.rambo.v1.Ack.deserializeBinary = function(bytes) {
1418
+ var reader = new jspb.BinaryReader(bytes);
1419
+ var msg = new proto.rambo.v1.Ack;
1420
+ return proto.rambo.v1.Ack.deserializeBinaryFromReader(msg, reader);
1421
+ };
1422
+
1423
+
1424
+ /**
1425
+ * Deserializes binary data (in protobuf wire format) from the
1426
+ * given reader into the given message object.
1427
+ * @param {!proto.rambo.v1.Ack} msg The message object to deserialize into.
1428
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1429
+ * @return {!proto.rambo.v1.Ack}
1430
+ */
1431
+ proto.rambo.v1.Ack.deserializeBinaryFromReader = function(msg, reader) {
1432
+ while (reader.nextField()) {
1433
+ if (reader.isEndGroup()) {
1434
+ break;
1435
+ }
1436
+ var field = reader.getFieldNumber();
1437
+ switch (field) {
1438
+ case 1:
1439
+ var value = /** @type {!proto.rambo.v1.Stage} */ (reader.readEnum());
1440
+ msg.setStage(value);
1441
+ break;
1442
+ case 2:
1443
+ var value = /** @type {!proto.rambo.v1.AckStatus} */ (reader.readEnum());
1444
+ msg.setStatus(value);
1445
+ break;
1446
+ case 3:
1447
+ var value = /** @type {string} */ (reader.readString());
1448
+ msg.setMessage(value);
1449
+ break;
1450
+ default:
1451
+ reader.skipField();
1452
+ break;
1453
+ }
1454
+ }
1455
+ return msg;
1456
+ };
1457
+
1458
+
1459
+ /**
1460
+ * Serializes the message to binary data (in protobuf wire format).
1461
+ * @return {!Uint8Array}
1462
+ */
1463
+ proto.rambo.v1.Ack.prototype.serializeBinary = function() {
1464
+ var writer = new jspb.BinaryWriter();
1465
+ proto.rambo.v1.Ack.serializeBinaryToWriter(this, writer);
1466
+ return writer.getResultBuffer();
1467
+ };
1468
+
1469
+
1470
+ /**
1471
+ * Serializes the given message to binary data (in protobuf wire
1472
+ * format), writing to the given BinaryWriter.
1473
+ * @param {!proto.rambo.v1.Ack} message
1474
+ * @param {!jspb.BinaryWriter} writer
1475
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1476
+ */
1477
+ proto.rambo.v1.Ack.serializeBinaryToWriter = function(message, writer) {
1478
+ var f = undefined;
1479
+ f = message.getStage();
1480
+ if (f !== 0.0) {
1481
+ writer.writeEnum(
1482
+ 1,
1483
+ f
1484
+ );
1485
+ }
1486
+ f = message.getStatus();
1487
+ if (f !== 0.0) {
1488
+ writer.writeEnum(
1489
+ 2,
1490
+ f
1491
+ );
1492
+ }
1493
+ f = message.getMessage();
1494
+ if (f.length > 0) {
1495
+ writer.writeString(
1496
+ 3,
1497
+ f
1498
+ );
1499
+ }
1500
+ };
1501
+
1502
+
1503
+ /**
1504
+ * optional Stage stage = 1;
1505
+ * @return {!proto.rambo.v1.Stage}
1506
+ */
1507
+ proto.rambo.v1.Ack.prototype.getStage = function() {
1508
+ return /** @type {!proto.rambo.v1.Stage} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1509
+ };
1510
+
1511
+
1512
+ /**
1513
+ * @param {!proto.rambo.v1.Stage} value
1514
+ * @return {!proto.rambo.v1.Ack} returns this
1515
+ */
1516
+ proto.rambo.v1.Ack.prototype.setStage = function(value) {
1517
+ return jspb.Message.setProto3EnumField(this, 1, value);
1518
+ };
1519
+
1520
+
1521
+ /**
1522
+ * optional AckStatus status = 2;
1523
+ * @return {!proto.rambo.v1.AckStatus}
1524
+ */
1525
+ proto.rambo.v1.Ack.prototype.getStatus = function() {
1526
+ return /** @type {!proto.rambo.v1.AckStatus} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
1527
+ };
1528
+
1529
+
1530
+ /**
1531
+ * @param {!proto.rambo.v1.AckStatus} value
1532
+ * @return {!proto.rambo.v1.Ack} returns this
1533
+ */
1534
+ proto.rambo.v1.Ack.prototype.setStatus = function(value) {
1535
+ return jspb.Message.setProto3EnumField(this, 2, value);
1536
+ };
1537
+
1538
+
1539
+ /**
1540
+ * optional string message = 3;
1541
+ * @return {string}
1542
+ */
1543
+ proto.rambo.v1.Ack.prototype.getMessage = function() {
1544
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1545
+ };
1546
+
1547
+
1548
+ /**
1549
+ * @param {string} value
1550
+ * @return {!proto.rambo.v1.Ack} returns this
1551
+ */
1552
+ proto.rambo.v1.Ack.prototype.setMessage = function(value) {
1553
+ return jspb.Message.setProto3StringField(this, 3, value);
1554
+ };
1555
+
1556
+
1557
+
1558
+
1559
+
1560
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1561
+ /**
1562
+ * Creates an object representation of this proto.
1563
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1564
+ * Optional fields that are not set will be set to undefined.
1565
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1566
+ * For the list of reserved names please see:
1567
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1568
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1569
+ * JSPB instance for transitional soy proto support:
1570
+ * http://goto/soy-param-migration
1571
+ * @return {!Object}
1572
+ */
1573
+ proto.rambo.v1.CommandReturn.prototype.toObject = function(opt_includeInstance) {
1574
+ return proto.rambo.v1.CommandReturn.toObject(opt_includeInstance, this);
1575
+ };
1576
+
1577
+
1578
+ /**
1579
+ * Static version of the {@see toObject} method.
1580
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1581
+ * the JSPB instance for transitional soy proto support:
1582
+ * http://goto/soy-param-migration
1583
+ * @param {!proto.rambo.v1.CommandReturn} msg The msg instance to transform.
1584
+ * @return {!Object}
1585
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1586
+ */
1587
+ proto.rambo.v1.CommandReturn.toObject = function(includeInstance, msg) {
1588
+ var f, obj = {
1589
+ type: jspb.Message.getFieldWithDefault(msg, 1, 0),
1590
+ message: jspb.Message.getFieldWithDefault(msg, 2, ""),
1591
+ payload: msg.getPayload_asB64(),
1592
+ metaMap: (f = msg.getMetaMap()) ? f.toObject(includeInstance, undefined) : []
1593
+ };
1594
+
1595
+ if (includeInstance) {
1596
+ obj.$jspbMessageInstance = msg;
1597
+ }
1598
+ return obj;
1599
+ };
1600
+ }
1601
+
1602
+
1603
+ /**
1604
+ * Deserializes binary data (in protobuf wire format).
1605
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1606
+ * @return {!proto.rambo.v1.CommandReturn}
1607
+ */
1608
+ proto.rambo.v1.CommandReturn.deserializeBinary = function(bytes) {
1609
+ var reader = new jspb.BinaryReader(bytes);
1610
+ var msg = new proto.rambo.v1.CommandReturn;
1611
+ return proto.rambo.v1.CommandReturn.deserializeBinaryFromReader(msg, reader);
1612
+ };
1613
+
1614
+
1615
+ /**
1616
+ * Deserializes binary data (in protobuf wire format) from the
1617
+ * given reader into the given message object.
1618
+ * @param {!proto.rambo.v1.CommandReturn} msg The message object to deserialize into.
1619
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1620
+ * @return {!proto.rambo.v1.CommandReturn}
1621
+ */
1622
+ proto.rambo.v1.CommandReturn.deserializeBinaryFromReader = function(msg, reader) {
1623
+ while (reader.nextField()) {
1624
+ if (reader.isEndGroup()) {
1625
+ break;
1626
+ }
1627
+ var field = reader.getFieldNumber();
1628
+ switch (field) {
1629
+ case 1:
1630
+ var value = /** @type {!proto.rambo.v1.CommandReturnType} */ (reader.readEnum());
1631
+ msg.setType(value);
1632
+ break;
1633
+ case 2:
1634
+ var value = /** @type {string} */ (reader.readString());
1635
+ msg.setMessage(value);
1636
+ break;
1637
+ case 3:
1638
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
1639
+ msg.setPayload(value);
1640
+ break;
1641
+ case 4:
1642
+ var value = msg.getMetaMap();
1643
+ reader.readMessage(value, function(message, reader) {
1644
+ jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
1645
+ });
1646
+ break;
1647
+ default:
1648
+ reader.skipField();
1649
+ break;
1650
+ }
1651
+ }
1652
+ return msg;
1653
+ };
1654
+
1655
+
1656
+ /**
1657
+ * Serializes the message to binary data (in protobuf wire format).
1658
+ * @return {!Uint8Array}
1659
+ */
1660
+ proto.rambo.v1.CommandReturn.prototype.serializeBinary = function() {
1661
+ var writer = new jspb.BinaryWriter();
1662
+ proto.rambo.v1.CommandReturn.serializeBinaryToWriter(this, writer);
1663
+ return writer.getResultBuffer();
1664
+ };
1665
+
1666
+
1667
+ /**
1668
+ * Serializes the given message to binary data (in protobuf wire
1669
+ * format), writing to the given BinaryWriter.
1670
+ * @param {!proto.rambo.v1.CommandReturn} message
1671
+ * @param {!jspb.BinaryWriter} writer
1672
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1673
+ */
1674
+ proto.rambo.v1.CommandReturn.serializeBinaryToWriter = function(message, writer) {
1675
+ var f = undefined;
1676
+ f = message.getType();
1677
+ if (f !== 0.0) {
1678
+ writer.writeEnum(
1679
+ 1,
1680
+ f
1681
+ );
1682
+ }
1683
+ f = message.getMessage();
1684
+ if (f.length > 0) {
1685
+ writer.writeString(
1686
+ 2,
1687
+ f
1688
+ );
1689
+ }
1690
+ f = message.getPayload_asU8();
1691
+ if (f.length > 0) {
1692
+ writer.writeBytes(
1693
+ 3,
1694
+ f
1695
+ );
1696
+ }
1697
+ f = message.getMetaMap(true);
1698
+ if (f && f.getLength() > 0) {
1699
+ f.serializeBinary(4, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
1700
+ }
1701
+ };
1702
+
1703
+
1704
+ /**
1705
+ * optional CommandReturnType type = 1;
1706
+ * @return {!proto.rambo.v1.CommandReturnType}
1707
+ */
1708
+ proto.rambo.v1.CommandReturn.prototype.getType = function() {
1709
+ return /** @type {!proto.rambo.v1.CommandReturnType} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1710
+ };
1711
+
1712
+
1713
+ /**
1714
+ * @param {!proto.rambo.v1.CommandReturnType} value
1715
+ * @return {!proto.rambo.v1.CommandReturn} returns this
1716
+ */
1717
+ proto.rambo.v1.CommandReturn.prototype.setType = function(value) {
1718
+ return jspb.Message.setProto3EnumField(this, 1, value);
1719
+ };
1720
+
1721
+
1722
+ /**
1723
+ * optional string message = 2;
1724
+ * @return {string}
1725
+ */
1726
+ proto.rambo.v1.CommandReturn.prototype.getMessage = function() {
1727
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1728
+ };
1729
+
1730
+
1731
+ /**
1732
+ * @param {string} value
1733
+ * @return {!proto.rambo.v1.CommandReturn} returns this
1734
+ */
1735
+ proto.rambo.v1.CommandReturn.prototype.setMessage = function(value) {
1736
+ return jspb.Message.setProto3StringField(this, 2, value);
1737
+ };
1738
+
1739
+
1740
+ /**
1741
+ * optional bytes payload = 3;
1742
+ * @return {!(string|Uint8Array)}
1743
+ */
1744
+ proto.rambo.v1.CommandReturn.prototype.getPayload = function() {
1745
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1746
+ };
1747
+
1748
+
1749
+ /**
1750
+ * optional bytes payload = 3;
1751
+ * This is a type-conversion wrapper around `getPayload()`
1752
+ * @return {string}
1753
+ */
1754
+ proto.rambo.v1.CommandReturn.prototype.getPayload_asB64 = function() {
1755
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
1756
+ this.getPayload()));
1757
+ };
1758
+
1759
+
1760
+ /**
1761
+ * optional bytes payload = 3;
1762
+ * Note that Uint8Array is not supported on all browsers.
1763
+ * @see http://caniuse.com/Uint8Array
1764
+ * This is a type-conversion wrapper around `getPayload()`
1765
+ * @return {!Uint8Array}
1766
+ */
1767
+ proto.rambo.v1.CommandReturn.prototype.getPayload_asU8 = function() {
1768
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
1769
+ this.getPayload()));
1770
+ };
1771
+
1772
+
1773
+ /**
1774
+ * @param {!(string|Uint8Array)} value
1775
+ * @return {!proto.rambo.v1.CommandReturn} returns this
1776
+ */
1777
+ proto.rambo.v1.CommandReturn.prototype.setPayload = function(value) {
1778
+ return jspb.Message.setProto3BytesField(this, 3, value);
1779
+ };
1780
+
1781
+
1782
+ /**
1783
+ * map<string, string> meta = 4;
1784
+ * @param {boolean=} opt_noLazyCreate Do not create the map if
1785
+ * empty, instead returning `undefined`
1786
+ * @return {!jspb.Map<string,string>}
1787
+ */
1788
+ proto.rambo.v1.CommandReturn.prototype.getMetaMap = function(opt_noLazyCreate) {
1789
+ return /** @type {!jspb.Map<string,string>} */ (
1790
+ jspb.Message.getMapField(this, 4, opt_noLazyCreate,
1791
+ null));
1792
+ };
1793
+
1794
+
1795
+ /**
1796
+ * Clears values from the map. The map will be non-null.
1797
+ * @return {!proto.rambo.v1.CommandReturn} returns this
1798
+ */
1799
+ proto.rambo.v1.CommandReturn.prototype.clearMetaMap = function() {
1800
+ this.getMetaMap().clear();
1801
+ return this;};
1802
+
1803
+
1804
+
1805
+
1806
+
1807
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1808
+ /**
1809
+ * Creates an object representation of this proto.
1810
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1811
+ * Optional fields that are not set will be set to undefined.
1812
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1813
+ * For the list of reserved names please see:
1814
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1815
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1816
+ * JSPB instance for transitional soy proto support:
1817
+ * http://goto/soy-param-migration
1818
+ * @return {!Object}
1819
+ */
1820
+ proto.rambo.v1.CommandResult.prototype.toObject = function(opt_includeInstance) {
1821
+ return proto.rambo.v1.CommandResult.toObject(opt_includeInstance, this);
1822
+ };
1823
+
1824
+
1825
+ /**
1826
+ * Static version of the {@see toObject} method.
1827
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1828
+ * the JSPB instance for transitional soy proto support:
1829
+ * http://goto/soy-param-migration
1830
+ * @param {!proto.rambo.v1.CommandResult} msg The msg instance to transform.
1831
+ * @return {!Object}
1832
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1833
+ */
1834
+ proto.rambo.v1.CommandResult.toObject = function(includeInstance, msg) {
1835
+ var f, obj = {
1836
+ status: jspb.Message.getFieldWithDefault(msg, 1, 0),
1837
+ message: jspb.Message.getFieldWithDefault(msg, 2, "")
1838
+ };
1839
+
1840
+ if (includeInstance) {
1841
+ obj.$jspbMessageInstance = msg;
1842
+ }
1843
+ return obj;
1844
+ };
1845
+ }
1846
+
1847
+
1848
+ /**
1849
+ * Deserializes binary data (in protobuf wire format).
1850
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1851
+ * @return {!proto.rambo.v1.CommandResult}
1852
+ */
1853
+ proto.rambo.v1.CommandResult.deserializeBinary = function(bytes) {
1854
+ var reader = new jspb.BinaryReader(bytes);
1855
+ var msg = new proto.rambo.v1.CommandResult;
1856
+ return proto.rambo.v1.CommandResult.deserializeBinaryFromReader(msg, reader);
1857
+ };
1858
+
1859
+
1860
+ /**
1861
+ * Deserializes binary data (in protobuf wire format) from the
1862
+ * given reader into the given message object.
1863
+ * @param {!proto.rambo.v1.CommandResult} msg The message object to deserialize into.
1864
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1865
+ * @return {!proto.rambo.v1.CommandResult}
1866
+ */
1867
+ proto.rambo.v1.CommandResult.deserializeBinaryFromReader = function(msg, reader) {
1868
+ while (reader.nextField()) {
1869
+ if (reader.isEndGroup()) {
1870
+ break;
1871
+ }
1872
+ var field = reader.getFieldNumber();
1873
+ switch (field) {
1874
+ case 1:
1875
+ var value = /** @type {!proto.rambo.v1.ResultStatus} */ (reader.readEnum());
1876
+ msg.setStatus(value);
1877
+ break;
1878
+ case 2:
1879
+ var value = /** @type {string} */ (reader.readString());
1880
+ msg.setMessage(value);
1881
+ break;
1882
+ default:
1883
+ reader.skipField();
1884
+ break;
1885
+ }
1886
+ }
1887
+ return msg;
1888
+ };
1889
+
1890
+
1891
+ /**
1892
+ * Serializes the message to binary data (in protobuf wire format).
1893
+ * @return {!Uint8Array}
1894
+ */
1895
+ proto.rambo.v1.CommandResult.prototype.serializeBinary = function() {
1896
+ var writer = new jspb.BinaryWriter();
1897
+ proto.rambo.v1.CommandResult.serializeBinaryToWriter(this, writer);
1898
+ return writer.getResultBuffer();
1899
+ };
1900
+
1901
+
1902
+ /**
1903
+ * Serializes the given message to binary data (in protobuf wire
1904
+ * format), writing to the given BinaryWriter.
1905
+ * @param {!proto.rambo.v1.CommandResult} message
1906
+ * @param {!jspb.BinaryWriter} writer
1907
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1908
+ */
1909
+ proto.rambo.v1.CommandResult.serializeBinaryToWriter = function(message, writer) {
1910
+ var f = undefined;
1911
+ f = message.getStatus();
1912
+ if (f !== 0.0) {
1913
+ writer.writeEnum(
1914
+ 1,
1915
+ f
1916
+ );
1917
+ }
1918
+ f = message.getMessage();
1919
+ if (f.length > 0) {
1920
+ writer.writeString(
1921
+ 2,
1922
+ f
1923
+ );
1924
+ }
1925
+ };
1926
+
1927
+
1928
+ /**
1929
+ * optional ResultStatus status = 1;
1930
+ * @return {!proto.rambo.v1.ResultStatus}
1931
+ */
1932
+ proto.rambo.v1.CommandResult.prototype.getStatus = function() {
1933
+ return /** @type {!proto.rambo.v1.ResultStatus} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1934
+ };
1935
+
1936
+
1937
+ /**
1938
+ * @param {!proto.rambo.v1.ResultStatus} value
1939
+ * @return {!proto.rambo.v1.CommandResult} returns this
1940
+ */
1941
+ proto.rambo.v1.CommandResult.prototype.setStatus = function(value) {
1942
+ return jspb.Message.setProto3EnumField(this, 1, value);
1943
+ };
1944
+
1945
+
1946
+ /**
1947
+ * optional string message = 2;
1948
+ * @return {string}
1949
+ */
1950
+ proto.rambo.v1.CommandResult.prototype.getMessage = function() {
1951
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1952
+ };
1953
+
1954
+
1955
+ /**
1956
+ * @param {string} value
1957
+ * @return {!proto.rambo.v1.CommandResult} returns this
1958
+ */
1959
+ proto.rambo.v1.CommandResult.prototype.setMessage = function(value) {
1960
+ return jspb.Message.setProto3StringField(this, 2, value);
1961
+ };
1962
+
1963
+
1964
+
1965
+
1966
+
1967
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1968
+ /**
1969
+ * Creates an object representation of this proto.
1970
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1971
+ * Optional fields that are not set will be set to undefined.
1972
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1973
+ * For the list of reserved names please see:
1974
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1975
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1976
+ * JSPB instance for transitional soy proto support:
1977
+ * http://goto/soy-param-migration
1978
+ * @return {!Object}
1979
+ */
1980
+ proto.rambo.v1.CommandRequest.prototype.toObject = function(opt_includeInstance) {
1981
+ return proto.rambo.v1.CommandRequest.toObject(opt_includeInstance, this);
1982
+ };
1983
+
1984
+
1985
+ /**
1986
+ * Static version of the {@see toObject} method.
1987
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1988
+ * the JSPB instance for transitional soy proto support:
1989
+ * http://goto/soy-param-migration
1990
+ * @param {!proto.rambo.v1.CommandRequest} msg The msg instance to transform.
1991
+ * @return {!Object}
1992
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1993
+ */
1994
+ proto.rambo.v1.CommandRequest.toObject = function(includeInstance, msg) {
1995
+ var f, obj = {
1996
+ txid: jspb.Message.getFieldWithDefault(msg, 1, ""),
1997
+ uri: (f = msg.getUri()) && uri_v1_pb.RocosUri.toObject(includeInstance, f),
1998
+ reslevel: jspb.Message.getFieldWithDefault(msg, 3, 0),
1999
+ parametersMap: (f = msg.getParametersMap()) ? f.toObject(includeInstance, undefined) : [],
2000
+ context: (f = msg.getContext()) && proto.rambo.v1.ExecutionContext.toObject(includeInstance, f),
2001
+ deadlinems: jspb.Message.getFieldWithDefault(msg, 12, 0)
2002
+ };
2003
+
2004
+ if (includeInstance) {
2005
+ obj.$jspbMessageInstance = msg;
2006
+ }
2007
+ return obj;
2008
+ };
2009
+ }
2010
+
2011
+
2012
+ /**
2013
+ * Deserializes binary data (in protobuf wire format).
2014
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2015
+ * @return {!proto.rambo.v1.CommandRequest}
2016
+ */
2017
+ proto.rambo.v1.CommandRequest.deserializeBinary = function(bytes) {
2018
+ var reader = new jspb.BinaryReader(bytes);
2019
+ var msg = new proto.rambo.v1.CommandRequest;
2020
+ return proto.rambo.v1.CommandRequest.deserializeBinaryFromReader(msg, reader);
2021
+ };
2022
+
2023
+
2024
+ /**
2025
+ * Deserializes binary data (in protobuf wire format) from the
2026
+ * given reader into the given message object.
2027
+ * @param {!proto.rambo.v1.CommandRequest} msg The message object to deserialize into.
2028
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2029
+ * @return {!proto.rambo.v1.CommandRequest}
2030
+ */
2031
+ proto.rambo.v1.CommandRequest.deserializeBinaryFromReader = function(msg, reader) {
2032
+ while (reader.nextField()) {
2033
+ if (reader.isEndGroup()) {
2034
+ break;
2035
+ }
2036
+ var field = reader.getFieldNumber();
2037
+ switch (field) {
2038
+ case 1:
2039
+ var value = /** @type {string} */ (reader.readString());
2040
+ msg.setTxid(value);
2041
+ break;
2042
+ case 2:
2043
+ var value = new uri_v1_pb.RocosUri;
2044
+ reader.readMessage(value,uri_v1_pb.RocosUri.deserializeBinaryFromReader);
2045
+ msg.setUri(value);
2046
+ break;
2047
+ case 3:
2048
+ var value = /** @type {!proto.rambo.v1.CommandResponseLevel} */ (reader.readEnum());
2049
+ msg.setReslevel(value);
2050
+ break;
2051
+ case 10:
2052
+ var value = msg.getParametersMap();
2053
+ reader.readMessage(value, function(message, reader) {
2054
+ jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
2055
+ });
2056
+ break;
2057
+ case 11:
2058
+ var value = new proto.rambo.v1.ExecutionContext;
2059
+ reader.readMessage(value,proto.rambo.v1.ExecutionContext.deserializeBinaryFromReader);
2060
+ msg.setContext(value);
2061
+ break;
2062
+ case 12:
2063
+ var value = /** @type {number} */ (reader.readUint64());
2064
+ msg.setDeadlinems(value);
2065
+ break;
2066
+ default:
2067
+ reader.skipField();
2068
+ break;
2069
+ }
2070
+ }
2071
+ return msg;
2072
+ };
2073
+
2074
+
2075
+ /**
2076
+ * Serializes the message to binary data (in protobuf wire format).
2077
+ * @return {!Uint8Array}
2078
+ */
2079
+ proto.rambo.v1.CommandRequest.prototype.serializeBinary = function() {
2080
+ var writer = new jspb.BinaryWriter();
2081
+ proto.rambo.v1.CommandRequest.serializeBinaryToWriter(this, writer);
2082
+ return writer.getResultBuffer();
2083
+ };
2084
+
2085
+
2086
+ /**
2087
+ * Serializes the given message to binary data (in protobuf wire
2088
+ * format), writing to the given BinaryWriter.
2089
+ * @param {!proto.rambo.v1.CommandRequest} message
2090
+ * @param {!jspb.BinaryWriter} writer
2091
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2092
+ */
2093
+ proto.rambo.v1.CommandRequest.serializeBinaryToWriter = function(message, writer) {
2094
+ var f = undefined;
2095
+ f = message.getTxid();
2096
+ if (f.length > 0) {
2097
+ writer.writeString(
2098
+ 1,
2099
+ f
2100
+ );
2101
+ }
2102
+ f = message.getUri();
2103
+ if (f != null) {
2104
+ writer.writeMessage(
2105
+ 2,
2106
+ f,
2107
+ uri_v1_pb.RocosUri.serializeBinaryToWriter
2108
+ );
2109
+ }
2110
+ f = message.getReslevel();
2111
+ if (f !== 0.0) {
2112
+ writer.writeEnum(
2113
+ 3,
2114
+ f
2115
+ );
2116
+ }
2117
+ f = message.getParametersMap(true);
2118
+ if (f && f.getLength() > 0) {
2119
+ f.serializeBinary(10, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
2120
+ }
2121
+ f = message.getContext();
2122
+ if (f != null) {
2123
+ writer.writeMessage(
2124
+ 11,
2125
+ f,
2126
+ proto.rambo.v1.ExecutionContext.serializeBinaryToWriter
2127
+ );
2128
+ }
2129
+ f = message.getDeadlinems();
2130
+ if (f !== 0) {
2131
+ writer.writeUint64(
2132
+ 12,
2133
+ f
2134
+ );
2135
+ }
2136
+ };
2137
+
2138
+
2139
+ /**
2140
+ * optional string txid = 1;
2141
+ * @return {string}
2142
+ */
2143
+ proto.rambo.v1.CommandRequest.prototype.getTxid = function() {
2144
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2145
+ };
2146
+
2147
+
2148
+ /**
2149
+ * @param {string} value
2150
+ * @return {!proto.rambo.v1.CommandRequest} returns this
2151
+ */
2152
+ proto.rambo.v1.CommandRequest.prototype.setTxid = function(value) {
2153
+ return jspb.Message.setProto3StringField(this, 1, value);
2154
+ };
2155
+
2156
+
2157
+ /**
2158
+ * optional RocosUri uri = 2;
2159
+ * @return {?proto.rambo.v1.RocosUri}
2160
+ */
2161
+ proto.rambo.v1.CommandRequest.prototype.getUri = function() {
2162
+ return /** @type{?proto.rambo.v1.RocosUri} */ (
2163
+ jspb.Message.getWrapperField(this, uri_v1_pb.RocosUri, 2));
2164
+ };
2165
+
2166
+
2167
+ /**
2168
+ * @param {?proto.rambo.v1.RocosUri|undefined} value
2169
+ * @return {!proto.rambo.v1.CommandRequest} returns this
2170
+ */
2171
+ proto.rambo.v1.CommandRequest.prototype.setUri = function(value) {
2172
+ return jspb.Message.setWrapperField(this, 2, value);
2173
+ };
2174
+
2175
+
2176
+ /**
2177
+ * Clears the message field making it undefined.
2178
+ * @return {!proto.rambo.v1.CommandRequest} returns this
2179
+ */
2180
+ proto.rambo.v1.CommandRequest.prototype.clearUri = function() {
2181
+ return this.setUri(undefined);
2182
+ };
2183
+
2184
+
2185
+ /**
2186
+ * Returns whether this field is set.
2187
+ * @return {boolean}
2188
+ */
2189
+ proto.rambo.v1.CommandRequest.prototype.hasUri = function() {
2190
+ return jspb.Message.getField(this, 2) != null;
2191
+ };
2192
+
2193
+
2194
+ /**
2195
+ * optional CommandResponseLevel resLevel = 3;
2196
+ * @return {!proto.rambo.v1.CommandResponseLevel}
2197
+ */
2198
+ proto.rambo.v1.CommandRequest.prototype.getReslevel = function() {
2199
+ return /** @type {!proto.rambo.v1.CommandResponseLevel} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
2200
+ };
2201
+
2202
+
2203
+ /**
2204
+ * @param {!proto.rambo.v1.CommandResponseLevel} value
2205
+ * @return {!proto.rambo.v1.CommandRequest} returns this
2206
+ */
2207
+ proto.rambo.v1.CommandRequest.prototype.setReslevel = function(value) {
2208
+ return jspb.Message.setProto3EnumField(this, 3, value);
2209
+ };
2210
+
2211
+
2212
+ /**
2213
+ * map<string, string> parameters = 10;
2214
+ * @param {boolean=} opt_noLazyCreate Do not create the map if
2215
+ * empty, instead returning `undefined`
2216
+ * @return {!jspb.Map<string,string>}
2217
+ */
2218
+ proto.rambo.v1.CommandRequest.prototype.getParametersMap = function(opt_noLazyCreate) {
2219
+ return /** @type {!jspb.Map<string,string>} */ (
2220
+ jspb.Message.getMapField(this, 10, opt_noLazyCreate,
2221
+ null));
2222
+ };
2223
+
2224
+
2225
+ /**
2226
+ * Clears values from the map. The map will be non-null.
2227
+ * @return {!proto.rambo.v1.CommandRequest} returns this
2228
+ */
2229
+ proto.rambo.v1.CommandRequest.prototype.clearParametersMap = function() {
2230
+ this.getParametersMap().clear();
2231
+ return this;};
2232
+
2233
+
2234
+ /**
2235
+ * optional ExecutionContext context = 11;
2236
+ * @return {?proto.rambo.v1.ExecutionContext}
2237
+ */
2238
+ proto.rambo.v1.CommandRequest.prototype.getContext = function() {
2239
+ return /** @type{?proto.rambo.v1.ExecutionContext} */ (
2240
+ jspb.Message.getWrapperField(this, proto.rambo.v1.ExecutionContext, 11));
2241
+ };
2242
+
2243
+
2244
+ /**
2245
+ * @param {?proto.rambo.v1.ExecutionContext|undefined} value
2246
+ * @return {!proto.rambo.v1.CommandRequest} returns this
2247
+ */
2248
+ proto.rambo.v1.CommandRequest.prototype.setContext = function(value) {
2249
+ return jspb.Message.setWrapperField(this, 11, value);
2250
+ };
2251
+
2252
+
2253
+ /**
2254
+ * Clears the message field making it undefined.
2255
+ * @return {!proto.rambo.v1.CommandRequest} returns this
2256
+ */
2257
+ proto.rambo.v1.CommandRequest.prototype.clearContext = function() {
2258
+ return this.setContext(undefined);
2259
+ };
2260
+
2261
+
2262
+ /**
2263
+ * Returns whether this field is set.
2264
+ * @return {boolean}
2265
+ */
2266
+ proto.rambo.v1.CommandRequest.prototype.hasContext = function() {
2267
+ return jspb.Message.getField(this, 11) != null;
2268
+ };
2269
+
2270
+
2271
+ /**
2272
+ * optional uint64 deadlineMs = 12;
2273
+ * @return {number}
2274
+ */
2275
+ proto.rambo.v1.CommandRequest.prototype.getDeadlinems = function() {
2276
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 12, 0));
2277
+ };
2278
+
2279
+
2280
+ /**
2281
+ * @param {number} value
2282
+ * @return {!proto.rambo.v1.CommandRequest} returns this
2283
+ */
2284
+ proto.rambo.v1.CommandRequest.prototype.setDeadlinems = function(value) {
2285
+ return jspb.Message.setProto3IntField(this, 12, value);
2286
+ };
2287
+
2288
+
2289
+
2290
+
2291
+
2292
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2293
+ /**
2294
+ * Creates an object representation of this proto.
2295
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2296
+ * Optional fields that are not set will be set to undefined.
2297
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2298
+ * For the list of reserved names please see:
2299
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2300
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2301
+ * JSPB instance for transitional soy proto support:
2302
+ * http://goto/soy-param-migration
2303
+ * @return {!Object}
2304
+ */
2305
+ proto.rambo.v1.ExecutionContext.prototype.toObject = function(opt_includeInstance) {
2306
+ return proto.rambo.v1.ExecutionContext.toObject(opt_includeInstance, this);
2307
+ };
2308
+
2309
+
2310
+ /**
2311
+ * Static version of the {@see toObject} method.
2312
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2313
+ * the JSPB instance for transitional soy proto support:
2314
+ * http://goto/soy-param-migration
2315
+ * @param {!proto.rambo.v1.ExecutionContext} msg The msg instance to transform.
2316
+ * @return {!Object}
2317
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2318
+ */
2319
+ proto.rambo.v1.ExecutionContext.toObject = function(includeInstance, msg) {
2320
+ var f, obj = {
2321
+ executiontoken: jspb.Message.getFieldWithDefault(msg, 1, "")
2322
+ };
2323
+
2324
+ if (includeInstance) {
2325
+ obj.$jspbMessageInstance = msg;
2326
+ }
2327
+ return obj;
2328
+ };
2329
+ }
2330
+
2331
+
2332
+ /**
2333
+ * Deserializes binary data (in protobuf wire format).
2334
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2335
+ * @return {!proto.rambo.v1.ExecutionContext}
2336
+ */
2337
+ proto.rambo.v1.ExecutionContext.deserializeBinary = function(bytes) {
2338
+ var reader = new jspb.BinaryReader(bytes);
2339
+ var msg = new proto.rambo.v1.ExecutionContext;
2340
+ return proto.rambo.v1.ExecutionContext.deserializeBinaryFromReader(msg, reader);
2341
+ };
2342
+
2343
+
2344
+ /**
2345
+ * Deserializes binary data (in protobuf wire format) from the
2346
+ * given reader into the given message object.
2347
+ * @param {!proto.rambo.v1.ExecutionContext} msg The message object to deserialize into.
2348
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2349
+ * @return {!proto.rambo.v1.ExecutionContext}
2350
+ */
2351
+ proto.rambo.v1.ExecutionContext.deserializeBinaryFromReader = function(msg, reader) {
2352
+ while (reader.nextField()) {
2353
+ if (reader.isEndGroup()) {
2354
+ break;
2355
+ }
2356
+ var field = reader.getFieldNumber();
2357
+ switch (field) {
2358
+ case 1:
2359
+ var value = /** @type {string} */ (reader.readString());
2360
+ msg.setExecutiontoken(value);
2361
+ break;
2362
+ default:
2363
+ reader.skipField();
2364
+ break;
2365
+ }
2366
+ }
2367
+ return msg;
2368
+ };
2369
+
2370
+
2371
+ /**
2372
+ * Serializes the message to binary data (in protobuf wire format).
2373
+ * @return {!Uint8Array}
2374
+ */
2375
+ proto.rambo.v1.ExecutionContext.prototype.serializeBinary = function() {
2376
+ var writer = new jspb.BinaryWriter();
2377
+ proto.rambo.v1.ExecutionContext.serializeBinaryToWriter(this, writer);
2378
+ return writer.getResultBuffer();
2379
+ };
2380
+
2381
+
2382
+ /**
2383
+ * Serializes the given message to binary data (in protobuf wire
2384
+ * format), writing to the given BinaryWriter.
2385
+ * @param {!proto.rambo.v1.ExecutionContext} message
2386
+ * @param {!jspb.BinaryWriter} writer
2387
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2388
+ */
2389
+ proto.rambo.v1.ExecutionContext.serializeBinaryToWriter = function(message, writer) {
2390
+ var f = undefined;
2391
+ f = message.getExecutiontoken();
2392
+ if (f.length > 0) {
2393
+ writer.writeString(
2394
+ 1,
2395
+ f
2396
+ );
2397
+ }
2398
+ };
2399
+
2400
+
2401
+ /**
2402
+ * optional string executionToken = 1;
2403
+ * @return {string}
2404
+ */
2405
+ proto.rambo.v1.ExecutionContext.prototype.getExecutiontoken = function() {
2406
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2407
+ };
2408
+
2409
+
2410
+ /**
2411
+ * @param {string} value
2412
+ * @return {!proto.rambo.v1.ExecutionContext} returns this
2413
+ */
2414
+ proto.rambo.v1.ExecutionContext.prototype.setExecutiontoken = function(value) {
2415
+ return jspb.Message.setProto3StringField(this, 1, value);
2416
+ };
2417
+
2418
+
2419
+ /**
2420
+ * @enum {number}
2421
+ */
2422
+ proto.rambo.v1.CommandResponseLevel = {
2423
+ ALL: 0,
2424
+ RETURN_AND_RESULT: 1,
2425
+ RESULT_ONLY: 2,
2426
+ NONE: 3
2427
+ };
2428
+
2429
+ /**
2430
+ * @enum {number}
2431
+ */
2432
+ proto.rambo.v1.CommandReturnType = {
2433
+ COMMAND_OUTPUT: 0
2434
+ };
2435
+
2436
+ /**
2437
+ * @enum {number}
2438
+ */
2439
+ proto.rambo.v1.AckStatus = {
2440
+ RECEIVED: 0,
2441
+ QUEUED: 1,
2442
+ PROGRESS: 2
2443
+ };
2444
+
2445
+ /**
2446
+ * @enum {number}
2447
+ */
2448
+ proto.rambo.v1.ResultStatus = {
2449
+ COMPLETE_SUCCESS: 0,
2450
+ CANCELLED: 10,
2451
+ COMPLETE_ERROR: 11,
2452
+ TIMED_OUT: 12,
2453
+ REJECTED_ID: 13,
2454
+ REJECTED_AUTH: 14,
2455
+ REJECTED_PARAMS: 15,
2456
+ REJECTED_NO_RECEIVER: 16,
2457
+ FATAL: 17
2458
+ };
2459
+
2460
+ /**
2461
+ * @enum {number}
2462
+ */
2463
+ proto.rambo.v1.Stage = {
2464
+ AGENT: 0,
2465
+ CLOUD_GATEWAY: 1,
2466
+ DEVICE_GATEWAY: 2
2467
+ };
2468
+
2469
+ goog.object.extend(exports, proto.rambo.v1);