@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,1775 @@
1
+ // source: pigeon.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
+ goog.exportSymbol('proto.pigeon.v1.AddIceCandidateRequest', null, global);
18
+ goog.exportSymbol('proto.pigeon.v1.AnswerRequest', null, global);
19
+ goog.exportSymbol('proto.pigeon.v1.CameraConnectRequest', null, global);
20
+ goog.exportSymbol('proto.pigeon.v1.GetDetailsRequest', null, global);
21
+ goog.exportSymbol('proto.pigeon.v1.GetDetailsResponse', null, global);
22
+ goog.exportSymbol('proto.pigeon.v1.Message', null, global);
23
+ goog.exportSymbol('proto.pigeon.v1.OfferRequest', null, global);
24
+ goog.exportSymbol('proto.pigeon.v1.OperatorConnectRequest', null, global);
25
+ goog.exportSymbol('proto.pigeon.v1.Outcome', null, global);
26
+ /**
27
+ * Generated by JsPbCodeGenerator.
28
+ * @param {Array=} opt_data Optional initial data array, typically from a
29
+ * server response, or constructed directly in Javascript. The array is used
30
+ * in place and becomes part of the constructed object. It is not cloned.
31
+ * If no data is provided, the constructed object will be empty, but still
32
+ * valid.
33
+ * @extends {jspb.Message}
34
+ * @constructor
35
+ */
36
+ proto.pigeon.v1.GetDetailsRequest = function(opt_data) {
37
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
38
+ };
39
+ goog.inherits(proto.pigeon.v1.GetDetailsRequest, jspb.Message);
40
+ if (goog.DEBUG && !COMPILED) {
41
+ /**
42
+ * @public
43
+ * @override
44
+ */
45
+ proto.pigeon.v1.GetDetailsRequest.displayName = 'proto.pigeon.v1.GetDetailsRequest';
46
+ }
47
+ /**
48
+ * Generated by JsPbCodeGenerator.
49
+ * @param {Array=} opt_data Optional initial data array, typically from a
50
+ * server response, or constructed directly in Javascript. The array is used
51
+ * in place and becomes part of the constructed object. It is not cloned.
52
+ * If no data is provided, the constructed object will be empty, but still
53
+ * valid.
54
+ * @extends {jspb.Message}
55
+ * @constructor
56
+ */
57
+ proto.pigeon.v1.GetDetailsResponse = function(opt_data) {
58
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
59
+ };
60
+ goog.inherits(proto.pigeon.v1.GetDetailsResponse, jspb.Message);
61
+ if (goog.DEBUG && !COMPILED) {
62
+ /**
63
+ * @public
64
+ * @override
65
+ */
66
+ proto.pigeon.v1.GetDetailsResponse.displayName = 'proto.pigeon.v1.GetDetailsResponse';
67
+ }
68
+ /**
69
+ * Generated by JsPbCodeGenerator.
70
+ * @param {Array=} opt_data Optional initial data array, typically from a
71
+ * server response, or constructed directly in Javascript. The array is used
72
+ * in place and becomes part of the constructed object. It is not cloned.
73
+ * If no data is provided, the constructed object will be empty, but still
74
+ * valid.
75
+ * @extends {jspb.Message}
76
+ * @constructor
77
+ */
78
+ proto.pigeon.v1.OperatorConnectRequest = function(opt_data) {
79
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
80
+ };
81
+ goog.inherits(proto.pigeon.v1.OperatorConnectRequest, jspb.Message);
82
+ if (goog.DEBUG && !COMPILED) {
83
+ /**
84
+ * @public
85
+ * @override
86
+ */
87
+ proto.pigeon.v1.OperatorConnectRequest.displayName = 'proto.pigeon.v1.OperatorConnectRequest';
88
+ }
89
+ /**
90
+ * Generated by JsPbCodeGenerator.
91
+ * @param {Array=} opt_data Optional initial data array, typically from a
92
+ * server response, or constructed directly in Javascript. The array is used
93
+ * in place and becomes part of the constructed object. It is not cloned.
94
+ * If no data is provided, the constructed object will be empty, but still
95
+ * valid.
96
+ * @extends {jspb.Message}
97
+ * @constructor
98
+ */
99
+ proto.pigeon.v1.AddIceCandidateRequest = function(opt_data) {
100
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
101
+ };
102
+ goog.inherits(proto.pigeon.v1.AddIceCandidateRequest, jspb.Message);
103
+ if (goog.DEBUG && !COMPILED) {
104
+ /**
105
+ * @public
106
+ * @override
107
+ */
108
+ proto.pigeon.v1.AddIceCandidateRequest.displayName = 'proto.pigeon.v1.AddIceCandidateRequest';
109
+ }
110
+ /**
111
+ * Generated by JsPbCodeGenerator.
112
+ * @param {Array=} opt_data Optional initial data array, typically from a
113
+ * server response, or constructed directly in Javascript. The array is used
114
+ * in place and becomes part of the constructed object. It is not cloned.
115
+ * If no data is provided, the constructed object will be empty, but still
116
+ * valid.
117
+ * @extends {jspb.Message}
118
+ * @constructor
119
+ */
120
+ proto.pigeon.v1.Outcome = function(opt_data) {
121
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
122
+ };
123
+ goog.inherits(proto.pigeon.v1.Outcome, jspb.Message);
124
+ if (goog.DEBUG && !COMPILED) {
125
+ /**
126
+ * @public
127
+ * @override
128
+ */
129
+ proto.pigeon.v1.Outcome.displayName = 'proto.pigeon.v1.Outcome';
130
+ }
131
+ /**
132
+ * Generated by JsPbCodeGenerator.
133
+ * @param {Array=} opt_data Optional initial data array, typically from a
134
+ * server response, or constructed directly in Javascript. The array is used
135
+ * in place and becomes part of the constructed object. It is not cloned.
136
+ * If no data is provided, the constructed object will be empty, but still
137
+ * valid.
138
+ * @extends {jspb.Message}
139
+ * @constructor
140
+ */
141
+ proto.pigeon.v1.Message = function(opt_data) {
142
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
143
+ };
144
+ goog.inherits(proto.pigeon.v1.Message, jspb.Message);
145
+ if (goog.DEBUG && !COMPILED) {
146
+ /**
147
+ * @public
148
+ * @override
149
+ */
150
+ proto.pigeon.v1.Message.displayName = 'proto.pigeon.v1.Message';
151
+ }
152
+ /**
153
+ * Generated by JsPbCodeGenerator.
154
+ * @param {Array=} opt_data Optional initial data array, typically from a
155
+ * server response, or constructed directly in Javascript. The array is used
156
+ * in place and becomes part of the constructed object. It is not cloned.
157
+ * If no data is provided, the constructed object will be empty, but still
158
+ * valid.
159
+ * @extends {jspb.Message}
160
+ * @constructor
161
+ */
162
+ proto.pigeon.v1.CameraConnectRequest = function(opt_data) {
163
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
164
+ };
165
+ goog.inherits(proto.pigeon.v1.CameraConnectRequest, jspb.Message);
166
+ if (goog.DEBUG && !COMPILED) {
167
+ /**
168
+ * @public
169
+ * @override
170
+ */
171
+ proto.pigeon.v1.CameraConnectRequest.displayName = 'proto.pigeon.v1.CameraConnectRequest';
172
+ }
173
+ /**
174
+ * Generated by JsPbCodeGenerator.
175
+ * @param {Array=} opt_data Optional initial data array, typically from a
176
+ * server response, or constructed directly in Javascript. The array is used
177
+ * in place and becomes part of the constructed object. It is not cloned.
178
+ * If no data is provided, the constructed object will be empty, but still
179
+ * valid.
180
+ * @extends {jspb.Message}
181
+ * @constructor
182
+ */
183
+ proto.pigeon.v1.OfferRequest = function(opt_data) {
184
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
185
+ };
186
+ goog.inherits(proto.pigeon.v1.OfferRequest, jspb.Message);
187
+ if (goog.DEBUG && !COMPILED) {
188
+ /**
189
+ * @public
190
+ * @override
191
+ */
192
+ proto.pigeon.v1.OfferRequest.displayName = 'proto.pigeon.v1.OfferRequest';
193
+ }
194
+ /**
195
+ * Generated by JsPbCodeGenerator.
196
+ * @param {Array=} opt_data Optional initial data array, typically from a
197
+ * server response, or constructed directly in Javascript. The array is used
198
+ * in place and becomes part of the constructed object. It is not cloned.
199
+ * If no data is provided, the constructed object will be empty, but still
200
+ * valid.
201
+ * @extends {jspb.Message}
202
+ * @constructor
203
+ */
204
+ proto.pigeon.v1.AnswerRequest = function(opt_data) {
205
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
206
+ };
207
+ goog.inherits(proto.pigeon.v1.AnswerRequest, jspb.Message);
208
+ if (goog.DEBUG && !COMPILED) {
209
+ /**
210
+ * @public
211
+ * @override
212
+ */
213
+ proto.pigeon.v1.AnswerRequest.displayName = 'proto.pigeon.v1.AnswerRequest';
214
+ }
215
+
216
+
217
+
218
+ if (jspb.Message.GENERATE_TO_OBJECT) {
219
+ /**
220
+ * Creates an object representation of this proto.
221
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
222
+ * Optional fields that are not set will be set to undefined.
223
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
224
+ * For the list of reserved names please see:
225
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
226
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
227
+ * JSPB instance for transitional soy proto support:
228
+ * http://goto/soy-param-migration
229
+ * @return {!Object}
230
+ */
231
+ proto.pigeon.v1.GetDetailsRequest.prototype.toObject = function(opt_includeInstance) {
232
+ return proto.pigeon.v1.GetDetailsRequest.toObject(opt_includeInstance, this);
233
+ };
234
+
235
+
236
+ /**
237
+ * Static version of the {@see toObject} method.
238
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
239
+ * the JSPB instance for transitional soy proto support:
240
+ * http://goto/soy-param-migration
241
+ * @param {!proto.pigeon.v1.GetDetailsRequest} msg The msg instance to transform.
242
+ * @return {!Object}
243
+ * @suppress {unusedLocalVariables} f is only used for nested messages
244
+ */
245
+ proto.pigeon.v1.GetDetailsRequest.toObject = function(includeInstance, msg) {
246
+ var f, obj = {
247
+ videoid: jspb.Message.getFieldWithDefault(msg, 1, "")
248
+ };
249
+
250
+ if (includeInstance) {
251
+ obj.$jspbMessageInstance = msg;
252
+ }
253
+ return obj;
254
+ };
255
+ }
256
+
257
+
258
+ /**
259
+ * Deserializes binary data (in protobuf wire format).
260
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
261
+ * @return {!proto.pigeon.v1.GetDetailsRequest}
262
+ */
263
+ proto.pigeon.v1.GetDetailsRequest.deserializeBinary = function(bytes) {
264
+ var reader = new jspb.BinaryReader(bytes);
265
+ var msg = new proto.pigeon.v1.GetDetailsRequest;
266
+ return proto.pigeon.v1.GetDetailsRequest.deserializeBinaryFromReader(msg, reader);
267
+ };
268
+
269
+
270
+ /**
271
+ * Deserializes binary data (in protobuf wire format) from the
272
+ * given reader into the given message object.
273
+ * @param {!proto.pigeon.v1.GetDetailsRequest} msg The message object to deserialize into.
274
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
275
+ * @return {!proto.pigeon.v1.GetDetailsRequest}
276
+ */
277
+ proto.pigeon.v1.GetDetailsRequest.deserializeBinaryFromReader = function(msg, reader) {
278
+ while (reader.nextField()) {
279
+ if (reader.isEndGroup()) {
280
+ break;
281
+ }
282
+ var field = reader.getFieldNumber();
283
+ switch (field) {
284
+ case 1:
285
+ var value = /** @type {string} */ (reader.readString());
286
+ msg.setVideoid(value);
287
+ break;
288
+ default:
289
+ reader.skipField();
290
+ break;
291
+ }
292
+ }
293
+ return msg;
294
+ };
295
+
296
+
297
+ /**
298
+ * Serializes the message to binary data (in protobuf wire format).
299
+ * @return {!Uint8Array}
300
+ */
301
+ proto.pigeon.v1.GetDetailsRequest.prototype.serializeBinary = function() {
302
+ var writer = new jspb.BinaryWriter();
303
+ proto.pigeon.v1.GetDetailsRequest.serializeBinaryToWriter(this, writer);
304
+ return writer.getResultBuffer();
305
+ };
306
+
307
+
308
+ /**
309
+ * Serializes the given message to binary data (in protobuf wire
310
+ * format), writing to the given BinaryWriter.
311
+ * @param {!proto.pigeon.v1.GetDetailsRequest} message
312
+ * @param {!jspb.BinaryWriter} writer
313
+ * @suppress {unusedLocalVariables} f is only used for nested messages
314
+ */
315
+ proto.pigeon.v1.GetDetailsRequest.serializeBinaryToWriter = function(message, writer) {
316
+ var f = undefined;
317
+ f = message.getVideoid();
318
+ if (f.length > 0) {
319
+ writer.writeString(
320
+ 1,
321
+ f
322
+ );
323
+ }
324
+ };
325
+
326
+
327
+ /**
328
+ * optional string videoId = 1;
329
+ * @return {string}
330
+ */
331
+ proto.pigeon.v1.GetDetailsRequest.prototype.getVideoid = function() {
332
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
333
+ };
334
+
335
+
336
+ /**
337
+ * @param {string} value
338
+ * @return {!proto.pigeon.v1.GetDetailsRequest} returns this
339
+ */
340
+ proto.pigeon.v1.GetDetailsRequest.prototype.setVideoid = function(value) {
341
+ return jspb.Message.setProto3StringField(this, 1, value);
342
+ };
343
+
344
+
345
+
346
+
347
+
348
+ if (jspb.Message.GENERATE_TO_OBJECT) {
349
+ /**
350
+ * Creates an object representation of this proto.
351
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
352
+ * Optional fields that are not set will be set to undefined.
353
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
354
+ * For the list of reserved names please see:
355
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
356
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
357
+ * JSPB instance for transitional soy proto support:
358
+ * http://goto/soy-param-migration
359
+ * @return {!Object}
360
+ */
361
+ proto.pigeon.v1.GetDetailsResponse.prototype.toObject = function(opt_includeInstance) {
362
+ return proto.pigeon.v1.GetDetailsResponse.toObject(opt_includeInstance, this);
363
+ };
364
+
365
+
366
+ /**
367
+ * Static version of the {@see toObject} method.
368
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
369
+ * the JSPB instance for transitional soy proto support:
370
+ * http://goto/soy-param-migration
371
+ * @param {!proto.pigeon.v1.GetDetailsResponse} msg The msg instance to transform.
372
+ * @return {!Object}
373
+ * @suppress {unusedLocalVariables} f is only used for nested messages
374
+ */
375
+ proto.pigeon.v1.GetDetailsResponse.toObject = function(includeInstance, msg) {
376
+ var f, obj = {
377
+ operators: jspb.Message.getFieldWithDefault(msg, 1, 0)
378
+ };
379
+
380
+ if (includeInstance) {
381
+ obj.$jspbMessageInstance = msg;
382
+ }
383
+ return obj;
384
+ };
385
+ }
386
+
387
+
388
+ /**
389
+ * Deserializes binary data (in protobuf wire format).
390
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
391
+ * @return {!proto.pigeon.v1.GetDetailsResponse}
392
+ */
393
+ proto.pigeon.v1.GetDetailsResponse.deserializeBinary = function(bytes) {
394
+ var reader = new jspb.BinaryReader(bytes);
395
+ var msg = new proto.pigeon.v1.GetDetailsResponse;
396
+ return proto.pigeon.v1.GetDetailsResponse.deserializeBinaryFromReader(msg, reader);
397
+ };
398
+
399
+
400
+ /**
401
+ * Deserializes binary data (in protobuf wire format) from the
402
+ * given reader into the given message object.
403
+ * @param {!proto.pigeon.v1.GetDetailsResponse} msg The message object to deserialize into.
404
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
405
+ * @return {!proto.pigeon.v1.GetDetailsResponse}
406
+ */
407
+ proto.pigeon.v1.GetDetailsResponse.deserializeBinaryFromReader = function(msg, reader) {
408
+ while (reader.nextField()) {
409
+ if (reader.isEndGroup()) {
410
+ break;
411
+ }
412
+ var field = reader.getFieldNumber();
413
+ switch (field) {
414
+ case 1:
415
+ var value = /** @type {number} */ (reader.readInt32());
416
+ msg.setOperators(value);
417
+ break;
418
+ default:
419
+ reader.skipField();
420
+ break;
421
+ }
422
+ }
423
+ return msg;
424
+ };
425
+
426
+
427
+ /**
428
+ * Serializes the message to binary data (in protobuf wire format).
429
+ * @return {!Uint8Array}
430
+ */
431
+ proto.pigeon.v1.GetDetailsResponse.prototype.serializeBinary = function() {
432
+ var writer = new jspb.BinaryWriter();
433
+ proto.pigeon.v1.GetDetailsResponse.serializeBinaryToWriter(this, writer);
434
+ return writer.getResultBuffer();
435
+ };
436
+
437
+
438
+ /**
439
+ * Serializes the given message to binary data (in protobuf wire
440
+ * format), writing to the given BinaryWriter.
441
+ * @param {!proto.pigeon.v1.GetDetailsResponse} message
442
+ * @param {!jspb.BinaryWriter} writer
443
+ * @suppress {unusedLocalVariables} f is only used for nested messages
444
+ */
445
+ proto.pigeon.v1.GetDetailsResponse.serializeBinaryToWriter = function(message, writer) {
446
+ var f = undefined;
447
+ f = message.getOperators();
448
+ if (f !== 0) {
449
+ writer.writeInt32(
450
+ 1,
451
+ f
452
+ );
453
+ }
454
+ };
455
+
456
+
457
+ /**
458
+ * optional int32 operators = 1;
459
+ * @return {number}
460
+ */
461
+ proto.pigeon.v1.GetDetailsResponse.prototype.getOperators = function() {
462
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
463
+ };
464
+
465
+
466
+ /**
467
+ * @param {number} value
468
+ * @return {!proto.pigeon.v1.GetDetailsResponse} returns this
469
+ */
470
+ proto.pigeon.v1.GetDetailsResponse.prototype.setOperators = function(value) {
471
+ return jspb.Message.setProto3IntField(this, 1, value);
472
+ };
473
+
474
+
475
+
476
+
477
+
478
+ if (jspb.Message.GENERATE_TO_OBJECT) {
479
+ /**
480
+ * Creates an object representation of this proto.
481
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
482
+ * Optional fields that are not set will be set to undefined.
483
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
484
+ * For the list of reserved names please see:
485
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
486
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
487
+ * JSPB instance for transitional soy proto support:
488
+ * http://goto/soy-param-migration
489
+ * @return {!Object}
490
+ */
491
+ proto.pigeon.v1.OperatorConnectRequest.prototype.toObject = function(opt_includeInstance) {
492
+ return proto.pigeon.v1.OperatorConnectRequest.toObject(opt_includeInstance, this);
493
+ };
494
+
495
+
496
+ /**
497
+ * Static version of the {@see toObject} method.
498
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
499
+ * the JSPB instance for transitional soy proto support:
500
+ * http://goto/soy-param-migration
501
+ * @param {!proto.pigeon.v1.OperatorConnectRequest} msg The msg instance to transform.
502
+ * @return {!Object}
503
+ * @suppress {unusedLocalVariables} f is only used for nested messages
504
+ */
505
+ proto.pigeon.v1.OperatorConnectRequest.toObject = function(includeInstance, msg) {
506
+ var f, obj = {
507
+ videoid: jspb.Message.getFieldWithDefault(msg, 1, ""),
508
+ clientid: jspb.Message.getFieldWithDefault(msg, 2, "")
509
+ };
510
+
511
+ if (includeInstance) {
512
+ obj.$jspbMessageInstance = msg;
513
+ }
514
+ return obj;
515
+ };
516
+ }
517
+
518
+
519
+ /**
520
+ * Deserializes binary data (in protobuf wire format).
521
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
522
+ * @return {!proto.pigeon.v1.OperatorConnectRequest}
523
+ */
524
+ proto.pigeon.v1.OperatorConnectRequest.deserializeBinary = function(bytes) {
525
+ var reader = new jspb.BinaryReader(bytes);
526
+ var msg = new proto.pigeon.v1.OperatorConnectRequest;
527
+ return proto.pigeon.v1.OperatorConnectRequest.deserializeBinaryFromReader(msg, reader);
528
+ };
529
+
530
+
531
+ /**
532
+ * Deserializes binary data (in protobuf wire format) from the
533
+ * given reader into the given message object.
534
+ * @param {!proto.pigeon.v1.OperatorConnectRequest} msg The message object to deserialize into.
535
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
536
+ * @return {!proto.pigeon.v1.OperatorConnectRequest}
537
+ */
538
+ proto.pigeon.v1.OperatorConnectRequest.deserializeBinaryFromReader = function(msg, reader) {
539
+ while (reader.nextField()) {
540
+ if (reader.isEndGroup()) {
541
+ break;
542
+ }
543
+ var field = reader.getFieldNumber();
544
+ switch (field) {
545
+ case 1:
546
+ var value = /** @type {string} */ (reader.readString());
547
+ msg.setVideoid(value);
548
+ break;
549
+ case 2:
550
+ var value = /** @type {string} */ (reader.readString());
551
+ msg.setClientid(value);
552
+ break;
553
+ default:
554
+ reader.skipField();
555
+ break;
556
+ }
557
+ }
558
+ return msg;
559
+ };
560
+
561
+
562
+ /**
563
+ * Serializes the message to binary data (in protobuf wire format).
564
+ * @return {!Uint8Array}
565
+ */
566
+ proto.pigeon.v1.OperatorConnectRequest.prototype.serializeBinary = function() {
567
+ var writer = new jspb.BinaryWriter();
568
+ proto.pigeon.v1.OperatorConnectRequest.serializeBinaryToWriter(this, writer);
569
+ return writer.getResultBuffer();
570
+ };
571
+
572
+
573
+ /**
574
+ * Serializes the given message to binary data (in protobuf wire
575
+ * format), writing to the given BinaryWriter.
576
+ * @param {!proto.pigeon.v1.OperatorConnectRequest} message
577
+ * @param {!jspb.BinaryWriter} writer
578
+ * @suppress {unusedLocalVariables} f is only used for nested messages
579
+ */
580
+ proto.pigeon.v1.OperatorConnectRequest.serializeBinaryToWriter = function(message, writer) {
581
+ var f = undefined;
582
+ f = message.getVideoid();
583
+ if (f.length > 0) {
584
+ writer.writeString(
585
+ 1,
586
+ f
587
+ );
588
+ }
589
+ f = message.getClientid();
590
+ if (f.length > 0) {
591
+ writer.writeString(
592
+ 2,
593
+ f
594
+ );
595
+ }
596
+ };
597
+
598
+
599
+ /**
600
+ * optional string videoId = 1;
601
+ * @return {string}
602
+ */
603
+ proto.pigeon.v1.OperatorConnectRequest.prototype.getVideoid = function() {
604
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
605
+ };
606
+
607
+
608
+ /**
609
+ * @param {string} value
610
+ * @return {!proto.pigeon.v1.OperatorConnectRequest} returns this
611
+ */
612
+ proto.pigeon.v1.OperatorConnectRequest.prototype.setVideoid = function(value) {
613
+ return jspb.Message.setProto3StringField(this, 1, value);
614
+ };
615
+
616
+
617
+ /**
618
+ * optional string clientId = 2;
619
+ * @return {string}
620
+ */
621
+ proto.pigeon.v1.OperatorConnectRequest.prototype.getClientid = function() {
622
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
623
+ };
624
+
625
+
626
+ /**
627
+ * @param {string} value
628
+ * @return {!proto.pigeon.v1.OperatorConnectRequest} returns this
629
+ */
630
+ proto.pigeon.v1.OperatorConnectRequest.prototype.setClientid = function(value) {
631
+ return jspb.Message.setProto3StringField(this, 2, value);
632
+ };
633
+
634
+
635
+
636
+
637
+
638
+ if (jspb.Message.GENERATE_TO_OBJECT) {
639
+ /**
640
+ * Creates an object representation of this proto.
641
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
642
+ * Optional fields that are not set will be set to undefined.
643
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
644
+ * For the list of reserved names please see:
645
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
646
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
647
+ * JSPB instance for transitional soy proto support:
648
+ * http://goto/soy-param-migration
649
+ * @return {!Object}
650
+ */
651
+ proto.pigeon.v1.AddIceCandidateRequest.prototype.toObject = function(opt_includeInstance) {
652
+ return proto.pigeon.v1.AddIceCandidateRequest.toObject(opt_includeInstance, this);
653
+ };
654
+
655
+
656
+ /**
657
+ * Static version of the {@see toObject} method.
658
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
659
+ * the JSPB instance for transitional soy proto support:
660
+ * http://goto/soy-param-migration
661
+ * @param {!proto.pigeon.v1.AddIceCandidateRequest} msg The msg instance to transform.
662
+ * @return {!Object}
663
+ * @suppress {unusedLocalVariables} f is only used for nested messages
664
+ */
665
+ proto.pigeon.v1.AddIceCandidateRequest.toObject = function(includeInstance, msg) {
666
+ var f, obj = {
667
+ videoid: jspb.Message.getFieldWithDefault(msg, 1, ""),
668
+ clientid: jspb.Message.getFieldWithDefault(msg, 2, ""),
669
+ candidate: jspb.Message.getFieldWithDefault(msg, 3, "")
670
+ };
671
+
672
+ if (includeInstance) {
673
+ obj.$jspbMessageInstance = msg;
674
+ }
675
+ return obj;
676
+ };
677
+ }
678
+
679
+
680
+ /**
681
+ * Deserializes binary data (in protobuf wire format).
682
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
683
+ * @return {!proto.pigeon.v1.AddIceCandidateRequest}
684
+ */
685
+ proto.pigeon.v1.AddIceCandidateRequest.deserializeBinary = function(bytes) {
686
+ var reader = new jspb.BinaryReader(bytes);
687
+ var msg = new proto.pigeon.v1.AddIceCandidateRequest;
688
+ return proto.pigeon.v1.AddIceCandidateRequest.deserializeBinaryFromReader(msg, reader);
689
+ };
690
+
691
+
692
+ /**
693
+ * Deserializes binary data (in protobuf wire format) from the
694
+ * given reader into the given message object.
695
+ * @param {!proto.pigeon.v1.AddIceCandidateRequest} msg The message object to deserialize into.
696
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
697
+ * @return {!proto.pigeon.v1.AddIceCandidateRequest}
698
+ */
699
+ proto.pigeon.v1.AddIceCandidateRequest.deserializeBinaryFromReader = function(msg, reader) {
700
+ while (reader.nextField()) {
701
+ if (reader.isEndGroup()) {
702
+ break;
703
+ }
704
+ var field = reader.getFieldNumber();
705
+ switch (field) {
706
+ case 1:
707
+ var value = /** @type {string} */ (reader.readString());
708
+ msg.setVideoid(value);
709
+ break;
710
+ case 2:
711
+ var value = /** @type {string} */ (reader.readString());
712
+ msg.setClientid(value);
713
+ break;
714
+ case 3:
715
+ var value = /** @type {string} */ (reader.readString());
716
+ msg.setCandidate(value);
717
+ break;
718
+ default:
719
+ reader.skipField();
720
+ break;
721
+ }
722
+ }
723
+ return msg;
724
+ };
725
+
726
+
727
+ /**
728
+ * Serializes the message to binary data (in protobuf wire format).
729
+ * @return {!Uint8Array}
730
+ */
731
+ proto.pigeon.v1.AddIceCandidateRequest.prototype.serializeBinary = function() {
732
+ var writer = new jspb.BinaryWriter();
733
+ proto.pigeon.v1.AddIceCandidateRequest.serializeBinaryToWriter(this, writer);
734
+ return writer.getResultBuffer();
735
+ };
736
+
737
+
738
+ /**
739
+ * Serializes the given message to binary data (in protobuf wire
740
+ * format), writing to the given BinaryWriter.
741
+ * @param {!proto.pigeon.v1.AddIceCandidateRequest} message
742
+ * @param {!jspb.BinaryWriter} writer
743
+ * @suppress {unusedLocalVariables} f is only used for nested messages
744
+ */
745
+ proto.pigeon.v1.AddIceCandidateRequest.serializeBinaryToWriter = function(message, writer) {
746
+ var f = undefined;
747
+ f = message.getVideoid();
748
+ if (f.length > 0) {
749
+ writer.writeString(
750
+ 1,
751
+ f
752
+ );
753
+ }
754
+ f = message.getClientid();
755
+ if (f.length > 0) {
756
+ writer.writeString(
757
+ 2,
758
+ f
759
+ );
760
+ }
761
+ f = message.getCandidate();
762
+ if (f.length > 0) {
763
+ writer.writeString(
764
+ 3,
765
+ f
766
+ );
767
+ }
768
+ };
769
+
770
+
771
+ /**
772
+ * optional string videoId = 1;
773
+ * @return {string}
774
+ */
775
+ proto.pigeon.v1.AddIceCandidateRequest.prototype.getVideoid = function() {
776
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
777
+ };
778
+
779
+
780
+ /**
781
+ * @param {string} value
782
+ * @return {!proto.pigeon.v1.AddIceCandidateRequest} returns this
783
+ */
784
+ proto.pigeon.v1.AddIceCandidateRequest.prototype.setVideoid = function(value) {
785
+ return jspb.Message.setProto3StringField(this, 1, value);
786
+ };
787
+
788
+
789
+ /**
790
+ * optional string clientId = 2;
791
+ * @return {string}
792
+ */
793
+ proto.pigeon.v1.AddIceCandidateRequest.prototype.getClientid = function() {
794
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
795
+ };
796
+
797
+
798
+ /**
799
+ * @param {string} value
800
+ * @return {!proto.pigeon.v1.AddIceCandidateRequest} returns this
801
+ */
802
+ proto.pigeon.v1.AddIceCandidateRequest.prototype.setClientid = function(value) {
803
+ return jspb.Message.setProto3StringField(this, 2, value);
804
+ };
805
+
806
+
807
+ /**
808
+ * optional string candidate = 3;
809
+ * @return {string}
810
+ */
811
+ proto.pigeon.v1.AddIceCandidateRequest.prototype.getCandidate = function() {
812
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
813
+ };
814
+
815
+
816
+ /**
817
+ * @param {string} value
818
+ * @return {!proto.pigeon.v1.AddIceCandidateRequest} returns this
819
+ */
820
+ proto.pigeon.v1.AddIceCandidateRequest.prototype.setCandidate = function(value) {
821
+ return jspb.Message.setProto3StringField(this, 3, value);
822
+ };
823
+
824
+
825
+
826
+
827
+
828
+ if (jspb.Message.GENERATE_TO_OBJECT) {
829
+ /**
830
+ * Creates an object representation of this proto.
831
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
832
+ * Optional fields that are not set will be set to undefined.
833
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
834
+ * For the list of reserved names please see:
835
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
836
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
837
+ * JSPB instance for transitional soy proto support:
838
+ * http://goto/soy-param-migration
839
+ * @return {!Object}
840
+ */
841
+ proto.pigeon.v1.Outcome.prototype.toObject = function(opt_includeInstance) {
842
+ return proto.pigeon.v1.Outcome.toObject(opt_includeInstance, this);
843
+ };
844
+
845
+
846
+ /**
847
+ * Static version of the {@see toObject} method.
848
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
849
+ * the JSPB instance for transitional soy proto support:
850
+ * http://goto/soy-param-migration
851
+ * @param {!proto.pigeon.v1.Outcome} msg The msg instance to transform.
852
+ * @return {!Object}
853
+ * @suppress {unusedLocalVariables} f is only used for nested messages
854
+ */
855
+ proto.pigeon.v1.Outcome.toObject = function(includeInstance, msg) {
856
+ var f, obj = {
857
+ outcome: jspb.Message.getFieldWithDefault(msg, 1, ""),
858
+ message: jspb.Message.getFieldWithDefault(msg, 2, "")
859
+ };
860
+
861
+ if (includeInstance) {
862
+ obj.$jspbMessageInstance = msg;
863
+ }
864
+ return obj;
865
+ };
866
+ }
867
+
868
+
869
+ /**
870
+ * Deserializes binary data (in protobuf wire format).
871
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
872
+ * @return {!proto.pigeon.v1.Outcome}
873
+ */
874
+ proto.pigeon.v1.Outcome.deserializeBinary = function(bytes) {
875
+ var reader = new jspb.BinaryReader(bytes);
876
+ var msg = new proto.pigeon.v1.Outcome;
877
+ return proto.pigeon.v1.Outcome.deserializeBinaryFromReader(msg, reader);
878
+ };
879
+
880
+
881
+ /**
882
+ * Deserializes binary data (in protobuf wire format) from the
883
+ * given reader into the given message object.
884
+ * @param {!proto.pigeon.v1.Outcome} msg The message object to deserialize into.
885
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
886
+ * @return {!proto.pigeon.v1.Outcome}
887
+ */
888
+ proto.pigeon.v1.Outcome.deserializeBinaryFromReader = function(msg, reader) {
889
+ while (reader.nextField()) {
890
+ if (reader.isEndGroup()) {
891
+ break;
892
+ }
893
+ var field = reader.getFieldNumber();
894
+ switch (field) {
895
+ case 1:
896
+ var value = /** @type {string} */ (reader.readString());
897
+ msg.setOutcome(value);
898
+ break;
899
+ case 2:
900
+ var value = /** @type {string} */ (reader.readString());
901
+ msg.setMessage(value);
902
+ break;
903
+ default:
904
+ reader.skipField();
905
+ break;
906
+ }
907
+ }
908
+ return msg;
909
+ };
910
+
911
+
912
+ /**
913
+ * Serializes the message to binary data (in protobuf wire format).
914
+ * @return {!Uint8Array}
915
+ */
916
+ proto.pigeon.v1.Outcome.prototype.serializeBinary = function() {
917
+ var writer = new jspb.BinaryWriter();
918
+ proto.pigeon.v1.Outcome.serializeBinaryToWriter(this, writer);
919
+ return writer.getResultBuffer();
920
+ };
921
+
922
+
923
+ /**
924
+ * Serializes the given message to binary data (in protobuf wire
925
+ * format), writing to the given BinaryWriter.
926
+ * @param {!proto.pigeon.v1.Outcome} message
927
+ * @param {!jspb.BinaryWriter} writer
928
+ * @suppress {unusedLocalVariables} f is only used for nested messages
929
+ */
930
+ proto.pigeon.v1.Outcome.serializeBinaryToWriter = function(message, writer) {
931
+ var f = undefined;
932
+ f = message.getOutcome();
933
+ if (f.length > 0) {
934
+ writer.writeString(
935
+ 1,
936
+ f
937
+ );
938
+ }
939
+ f = message.getMessage();
940
+ if (f.length > 0) {
941
+ writer.writeString(
942
+ 2,
943
+ f
944
+ );
945
+ }
946
+ };
947
+
948
+
949
+ /**
950
+ * optional string outcome = 1;
951
+ * @return {string}
952
+ */
953
+ proto.pigeon.v1.Outcome.prototype.getOutcome = function() {
954
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
955
+ };
956
+
957
+
958
+ /**
959
+ * @param {string} value
960
+ * @return {!proto.pigeon.v1.Outcome} returns this
961
+ */
962
+ proto.pigeon.v1.Outcome.prototype.setOutcome = function(value) {
963
+ return jspb.Message.setProto3StringField(this, 1, value);
964
+ };
965
+
966
+
967
+ /**
968
+ * optional string message = 2;
969
+ * @return {string}
970
+ */
971
+ proto.pigeon.v1.Outcome.prototype.getMessage = function() {
972
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
973
+ };
974
+
975
+
976
+ /**
977
+ * @param {string} value
978
+ * @return {!proto.pigeon.v1.Outcome} returns this
979
+ */
980
+ proto.pigeon.v1.Outcome.prototype.setMessage = function(value) {
981
+ return jspb.Message.setProto3StringField(this, 2, value);
982
+ };
983
+
984
+
985
+
986
+
987
+
988
+ if (jspb.Message.GENERATE_TO_OBJECT) {
989
+ /**
990
+ * Creates an object representation of this proto.
991
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
992
+ * Optional fields that are not set will be set to undefined.
993
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
994
+ * For the list of reserved names please see:
995
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
996
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
997
+ * JSPB instance for transitional soy proto support:
998
+ * http://goto/soy-param-migration
999
+ * @return {!Object}
1000
+ */
1001
+ proto.pigeon.v1.Message.prototype.toObject = function(opt_includeInstance) {
1002
+ return proto.pigeon.v1.Message.toObject(opt_includeInstance, this);
1003
+ };
1004
+
1005
+
1006
+ /**
1007
+ * Static version of the {@see toObject} method.
1008
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1009
+ * the JSPB instance for transitional soy proto support:
1010
+ * http://goto/soy-param-migration
1011
+ * @param {!proto.pigeon.v1.Message} msg The msg instance to transform.
1012
+ * @return {!Object}
1013
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1014
+ */
1015
+ proto.pigeon.v1.Message.toObject = function(includeInstance, msg) {
1016
+ var f, obj = {
1017
+ videoid: jspb.Message.getFieldWithDefault(msg, 1, ""),
1018
+ messagetype: jspb.Message.getFieldWithDefault(msg, 2, ""),
1019
+ payload: jspb.Message.getFieldWithDefault(msg, 3, "")
1020
+ };
1021
+
1022
+ if (includeInstance) {
1023
+ obj.$jspbMessageInstance = msg;
1024
+ }
1025
+ return obj;
1026
+ };
1027
+ }
1028
+
1029
+
1030
+ /**
1031
+ * Deserializes binary data (in protobuf wire format).
1032
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1033
+ * @return {!proto.pigeon.v1.Message}
1034
+ */
1035
+ proto.pigeon.v1.Message.deserializeBinary = function(bytes) {
1036
+ var reader = new jspb.BinaryReader(bytes);
1037
+ var msg = new proto.pigeon.v1.Message;
1038
+ return proto.pigeon.v1.Message.deserializeBinaryFromReader(msg, reader);
1039
+ };
1040
+
1041
+
1042
+ /**
1043
+ * Deserializes binary data (in protobuf wire format) from the
1044
+ * given reader into the given message object.
1045
+ * @param {!proto.pigeon.v1.Message} msg The message object to deserialize into.
1046
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1047
+ * @return {!proto.pigeon.v1.Message}
1048
+ */
1049
+ proto.pigeon.v1.Message.deserializeBinaryFromReader = function(msg, reader) {
1050
+ while (reader.nextField()) {
1051
+ if (reader.isEndGroup()) {
1052
+ break;
1053
+ }
1054
+ var field = reader.getFieldNumber();
1055
+ switch (field) {
1056
+ case 1:
1057
+ var value = /** @type {string} */ (reader.readString());
1058
+ msg.setVideoid(value);
1059
+ break;
1060
+ case 2:
1061
+ var value = /** @type {string} */ (reader.readString());
1062
+ msg.setMessagetype(value);
1063
+ break;
1064
+ case 3:
1065
+ var value = /** @type {string} */ (reader.readString());
1066
+ msg.setPayload(value);
1067
+ break;
1068
+ default:
1069
+ reader.skipField();
1070
+ break;
1071
+ }
1072
+ }
1073
+ return msg;
1074
+ };
1075
+
1076
+
1077
+ /**
1078
+ * Serializes the message to binary data (in protobuf wire format).
1079
+ * @return {!Uint8Array}
1080
+ */
1081
+ proto.pigeon.v1.Message.prototype.serializeBinary = function() {
1082
+ var writer = new jspb.BinaryWriter();
1083
+ proto.pigeon.v1.Message.serializeBinaryToWriter(this, writer);
1084
+ return writer.getResultBuffer();
1085
+ };
1086
+
1087
+
1088
+ /**
1089
+ * Serializes the given message to binary data (in protobuf wire
1090
+ * format), writing to the given BinaryWriter.
1091
+ * @param {!proto.pigeon.v1.Message} message
1092
+ * @param {!jspb.BinaryWriter} writer
1093
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1094
+ */
1095
+ proto.pigeon.v1.Message.serializeBinaryToWriter = function(message, writer) {
1096
+ var f = undefined;
1097
+ f = message.getVideoid();
1098
+ if (f.length > 0) {
1099
+ writer.writeString(
1100
+ 1,
1101
+ f
1102
+ );
1103
+ }
1104
+ f = message.getMessagetype();
1105
+ if (f.length > 0) {
1106
+ writer.writeString(
1107
+ 2,
1108
+ f
1109
+ );
1110
+ }
1111
+ f = message.getPayload();
1112
+ if (f.length > 0) {
1113
+ writer.writeString(
1114
+ 3,
1115
+ f
1116
+ );
1117
+ }
1118
+ };
1119
+
1120
+
1121
+ /**
1122
+ * optional string videoId = 1;
1123
+ * @return {string}
1124
+ */
1125
+ proto.pigeon.v1.Message.prototype.getVideoid = function() {
1126
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1127
+ };
1128
+
1129
+
1130
+ /**
1131
+ * @param {string} value
1132
+ * @return {!proto.pigeon.v1.Message} returns this
1133
+ */
1134
+ proto.pigeon.v1.Message.prototype.setVideoid = function(value) {
1135
+ return jspb.Message.setProto3StringField(this, 1, value);
1136
+ };
1137
+
1138
+
1139
+ /**
1140
+ * optional string messageType = 2;
1141
+ * @return {string}
1142
+ */
1143
+ proto.pigeon.v1.Message.prototype.getMessagetype = function() {
1144
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1145
+ };
1146
+
1147
+
1148
+ /**
1149
+ * @param {string} value
1150
+ * @return {!proto.pigeon.v1.Message} returns this
1151
+ */
1152
+ proto.pigeon.v1.Message.prototype.setMessagetype = function(value) {
1153
+ return jspb.Message.setProto3StringField(this, 2, value);
1154
+ };
1155
+
1156
+
1157
+ /**
1158
+ * optional string payload = 3;
1159
+ * @return {string}
1160
+ */
1161
+ proto.pigeon.v1.Message.prototype.getPayload = function() {
1162
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1163
+ };
1164
+
1165
+
1166
+ /**
1167
+ * @param {string} value
1168
+ * @return {!proto.pigeon.v1.Message} returns this
1169
+ */
1170
+ proto.pigeon.v1.Message.prototype.setPayload = function(value) {
1171
+ return jspb.Message.setProto3StringField(this, 3, value);
1172
+ };
1173
+
1174
+
1175
+
1176
+
1177
+
1178
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1179
+ /**
1180
+ * Creates an object representation of this proto.
1181
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1182
+ * Optional fields that are not set will be set to undefined.
1183
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1184
+ * For the list of reserved names please see:
1185
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1186
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1187
+ * JSPB instance for transitional soy proto support:
1188
+ * http://goto/soy-param-migration
1189
+ * @return {!Object}
1190
+ */
1191
+ proto.pigeon.v1.CameraConnectRequest.prototype.toObject = function(opt_includeInstance) {
1192
+ return proto.pigeon.v1.CameraConnectRequest.toObject(opt_includeInstance, this);
1193
+ };
1194
+
1195
+
1196
+ /**
1197
+ * Static version of the {@see toObject} method.
1198
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1199
+ * the JSPB instance for transitional soy proto support:
1200
+ * http://goto/soy-param-migration
1201
+ * @param {!proto.pigeon.v1.CameraConnectRequest} msg The msg instance to transform.
1202
+ * @return {!Object}
1203
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1204
+ */
1205
+ proto.pigeon.v1.CameraConnectRequest.toObject = function(includeInstance, msg) {
1206
+ var f, obj = {
1207
+ videoid: jspb.Message.getFieldWithDefault(msg, 1, ""),
1208
+ clientid: jspb.Message.getFieldWithDefault(msg, 2, "")
1209
+ };
1210
+
1211
+ if (includeInstance) {
1212
+ obj.$jspbMessageInstance = msg;
1213
+ }
1214
+ return obj;
1215
+ };
1216
+ }
1217
+
1218
+
1219
+ /**
1220
+ * Deserializes binary data (in protobuf wire format).
1221
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1222
+ * @return {!proto.pigeon.v1.CameraConnectRequest}
1223
+ */
1224
+ proto.pigeon.v1.CameraConnectRequest.deserializeBinary = function(bytes) {
1225
+ var reader = new jspb.BinaryReader(bytes);
1226
+ var msg = new proto.pigeon.v1.CameraConnectRequest;
1227
+ return proto.pigeon.v1.CameraConnectRequest.deserializeBinaryFromReader(msg, reader);
1228
+ };
1229
+
1230
+
1231
+ /**
1232
+ * Deserializes binary data (in protobuf wire format) from the
1233
+ * given reader into the given message object.
1234
+ * @param {!proto.pigeon.v1.CameraConnectRequest} msg The message object to deserialize into.
1235
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1236
+ * @return {!proto.pigeon.v1.CameraConnectRequest}
1237
+ */
1238
+ proto.pigeon.v1.CameraConnectRequest.deserializeBinaryFromReader = function(msg, reader) {
1239
+ while (reader.nextField()) {
1240
+ if (reader.isEndGroup()) {
1241
+ break;
1242
+ }
1243
+ var field = reader.getFieldNumber();
1244
+ switch (field) {
1245
+ case 1:
1246
+ var value = /** @type {string} */ (reader.readString());
1247
+ msg.setVideoid(value);
1248
+ break;
1249
+ case 2:
1250
+ var value = /** @type {string} */ (reader.readString());
1251
+ msg.setClientid(value);
1252
+ break;
1253
+ default:
1254
+ reader.skipField();
1255
+ break;
1256
+ }
1257
+ }
1258
+ return msg;
1259
+ };
1260
+
1261
+
1262
+ /**
1263
+ * Serializes the message to binary data (in protobuf wire format).
1264
+ * @return {!Uint8Array}
1265
+ */
1266
+ proto.pigeon.v1.CameraConnectRequest.prototype.serializeBinary = function() {
1267
+ var writer = new jspb.BinaryWriter();
1268
+ proto.pigeon.v1.CameraConnectRequest.serializeBinaryToWriter(this, writer);
1269
+ return writer.getResultBuffer();
1270
+ };
1271
+
1272
+
1273
+ /**
1274
+ * Serializes the given message to binary data (in protobuf wire
1275
+ * format), writing to the given BinaryWriter.
1276
+ * @param {!proto.pigeon.v1.CameraConnectRequest} message
1277
+ * @param {!jspb.BinaryWriter} writer
1278
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1279
+ */
1280
+ proto.pigeon.v1.CameraConnectRequest.serializeBinaryToWriter = function(message, writer) {
1281
+ var f = undefined;
1282
+ f = message.getVideoid();
1283
+ if (f.length > 0) {
1284
+ writer.writeString(
1285
+ 1,
1286
+ f
1287
+ );
1288
+ }
1289
+ f = message.getClientid();
1290
+ if (f.length > 0) {
1291
+ writer.writeString(
1292
+ 2,
1293
+ f
1294
+ );
1295
+ }
1296
+ };
1297
+
1298
+
1299
+ /**
1300
+ * optional string videoId = 1;
1301
+ * @return {string}
1302
+ */
1303
+ proto.pigeon.v1.CameraConnectRequest.prototype.getVideoid = function() {
1304
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1305
+ };
1306
+
1307
+
1308
+ /**
1309
+ * @param {string} value
1310
+ * @return {!proto.pigeon.v1.CameraConnectRequest} returns this
1311
+ */
1312
+ proto.pigeon.v1.CameraConnectRequest.prototype.setVideoid = function(value) {
1313
+ return jspb.Message.setProto3StringField(this, 1, value);
1314
+ };
1315
+
1316
+
1317
+ /**
1318
+ * optional string clientId = 2;
1319
+ * @return {string}
1320
+ */
1321
+ proto.pigeon.v1.CameraConnectRequest.prototype.getClientid = function() {
1322
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1323
+ };
1324
+
1325
+
1326
+ /**
1327
+ * @param {string} value
1328
+ * @return {!proto.pigeon.v1.CameraConnectRequest} returns this
1329
+ */
1330
+ proto.pigeon.v1.CameraConnectRequest.prototype.setClientid = function(value) {
1331
+ return jspb.Message.setProto3StringField(this, 2, value);
1332
+ };
1333
+
1334
+
1335
+
1336
+
1337
+
1338
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1339
+ /**
1340
+ * Creates an object representation of this proto.
1341
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1342
+ * Optional fields that are not set will be set to undefined.
1343
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1344
+ * For the list of reserved names please see:
1345
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1346
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1347
+ * JSPB instance for transitional soy proto support:
1348
+ * http://goto/soy-param-migration
1349
+ * @return {!Object}
1350
+ */
1351
+ proto.pigeon.v1.OfferRequest.prototype.toObject = function(opt_includeInstance) {
1352
+ return proto.pigeon.v1.OfferRequest.toObject(opt_includeInstance, this);
1353
+ };
1354
+
1355
+
1356
+ /**
1357
+ * Static version of the {@see toObject} method.
1358
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1359
+ * the JSPB instance for transitional soy proto support:
1360
+ * http://goto/soy-param-migration
1361
+ * @param {!proto.pigeon.v1.OfferRequest} msg The msg instance to transform.
1362
+ * @return {!Object}
1363
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1364
+ */
1365
+ proto.pigeon.v1.OfferRequest.toObject = function(includeInstance, msg) {
1366
+ var f, obj = {
1367
+ videoid: jspb.Message.getFieldWithDefault(msg, 1, ""),
1368
+ clientid: jspb.Message.getFieldWithDefault(msg, 2, ""),
1369
+ sdp: jspb.Message.getFieldWithDefault(msg, 3, ""),
1370
+ videoformat: jspb.Message.getFieldWithDefault(msg, 4, ""),
1371
+ videocommand: jspb.Message.getFieldWithDefault(msg, 5, ""),
1372
+ icerestart: jspb.Message.getBooleanFieldWithDefault(msg, 6, false)
1373
+ };
1374
+
1375
+ if (includeInstance) {
1376
+ obj.$jspbMessageInstance = msg;
1377
+ }
1378
+ return obj;
1379
+ };
1380
+ }
1381
+
1382
+
1383
+ /**
1384
+ * Deserializes binary data (in protobuf wire format).
1385
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1386
+ * @return {!proto.pigeon.v1.OfferRequest}
1387
+ */
1388
+ proto.pigeon.v1.OfferRequest.deserializeBinary = function(bytes) {
1389
+ var reader = new jspb.BinaryReader(bytes);
1390
+ var msg = new proto.pigeon.v1.OfferRequest;
1391
+ return proto.pigeon.v1.OfferRequest.deserializeBinaryFromReader(msg, reader);
1392
+ };
1393
+
1394
+
1395
+ /**
1396
+ * Deserializes binary data (in protobuf wire format) from the
1397
+ * given reader into the given message object.
1398
+ * @param {!proto.pigeon.v1.OfferRequest} msg The message object to deserialize into.
1399
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1400
+ * @return {!proto.pigeon.v1.OfferRequest}
1401
+ */
1402
+ proto.pigeon.v1.OfferRequest.deserializeBinaryFromReader = function(msg, reader) {
1403
+ while (reader.nextField()) {
1404
+ if (reader.isEndGroup()) {
1405
+ break;
1406
+ }
1407
+ var field = reader.getFieldNumber();
1408
+ switch (field) {
1409
+ case 1:
1410
+ var value = /** @type {string} */ (reader.readString());
1411
+ msg.setVideoid(value);
1412
+ break;
1413
+ case 2:
1414
+ var value = /** @type {string} */ (reader.readString());
1415
+ msg.setClientid(value);
1416
+ break;
1417
+ case 3:
1418
+ var value = /** @type {string} */ (reader.readString());
1419
+ msg.setSdp(value);
1420
+ break;
1421
+ case 4:
1422
+ var value = /** @type {string} */ (reader.readString());
1423
+ msg.setVideoformat(value);
1424
+ break;
1425
+ case 5:
1426
+ var value = /** @type {string} */ (reader.readString());
1427
+ msg.setVideocommand(value);
1428
+ break;
1429
+ case 6:
1430
+ var value = /** @type {boolean} */ (reader.readBool());
1431
+ msg.setIcerestart(value);
1432
+ break;
1433
+ default:
1434
+ reader.skipField();
1435
+ break;
1436
+ }
1437
+ }
1438
+ return msg;
1439
+ };
1440
+
1441
+
1442
+ /**
1443
+ * Serializes the message to binary data (in protobuf wire format).
1444
+ * @return {!Uint8Array}
1445
+ */
1446
+ proto.pigeon.v1.OfferRequest.prototype.serializeBinary = function() {
1447
+ var writer = new jspb.BinaryWriter();
1448
+ proto.pigeon.v1.OfferRequest.serializeBinaryToWriter(this, writer);
1449
+ return writer.getResultBuffer();
1450
+ };
1451
+
1452
+
1453
+ /**
1454
+ * Serializes the given message to binary data (in protobuf wire
1455
+ * format), writing to the given BinaryWriter.
1456
+ * @param {!proto.pigeon.v1.OfferRequest} message
1457
+ * @param {!jspb.BinaryWriter} writer
1458
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1459
+ */
1460
+ proto.pigeon.v1.OfferRequest.serializeBinaryToWriter = function(message, writer) {
1461
+ var f = undefined;
1462
+ f = message.getVideoid();
1463
+ if (f.length > 0) {
1464
+ writer.writeString(
1465
+ 1,
1466
+ f
1467
+ );
1468
+ }
1469
+ f = message.getClientid();
1470
+ if (f.length > 0) {
1471
+ writer.writeString(
1472
+ 2,
1473
+ f
1474
+ );
1475
+ }
1476
+ f = message.getSdp();
1477
+ if (f.length > 0) {
1478
+ writer.writeString(
1479
+ 3,
1480
+ f
1481
+ );
1482
+ }
1483
+ f = message.getVideoformat();
1484
+ if (f.length > 0) {
1485
+ writer.writeString(
1486
+ 4,
1487
+ f
1488
+ );
1489
+ }
1490
+ f = message.getVideocommand();
1491
+ if (f.length > 0) {
1492
+ writer.writeString(
1493
+ 5,
1494
+ f
1495
+ );
1496
+ }
1497
+ f = message.getIcerestart();
1498
+ if (f) {
1499
+ writer.writeBool(
1500
+ 6,
1501
+ f
1502
+ );
1503
+ }
1504
+ };
1505
+
1506
+
1507
+ /**
1508
+ * optional string videoId = 1;
1509
+ * @return {string}
1510
+ */
1511
+ proto.pigeon.v1.OfferRequest.prototype.getVideoid = function() {
1512
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1513
+ };
1514
+
1515
+
1516
+ /**
1517
+ * @param {string} value
1518
+ * @return {!proto.pigeon.v1.OfferRequest} returns this
1519
+ */
1520
+ proto.pigeon.v1.OfferRequest.prototype.setVideoid = function(value) {
1521
+ return jspb.Message.setProto3StringField(this, 1, value);
1522
+ };
1523
+
1524
+
1525
+ /**
1526
+ * optional string clientId = 2;
1527
+ * @return {string}
1528
+ */
1529
+ proto.pigeon.v1.OfferRequest.prototype.getClientid = function() {
1530
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1531
+ };
1532
+
1533
+
1534
+ /**
1535
+ * @param {string} value
1536
+ * @return {!proto.pigeon.v1.OfferRequest} returns this
1537
+ */
1538
+ proto.pigeon.v1.OfferRequest.prototype.setClientid = function(value) {
1539
+ return jspb.Message.setProto3StringField(this, 2, value);
1540
+ };
1541
+
1542
+
1543
+ /**
1544
+ * optional string sdp = 3;
1545
+ * @return {string}
1546
+ */
1547
+ proto.pigeon.v1.OfferRequest.prototype.getSdp = function() {
1548
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1549
+ };
1550
+
1551
+
1552
+ /**
1553
+ * @param {string} value
1554
+ * @return {!proto.pigeon.v1.OfferRequest} returns this
1555
+ */
1556
+ proto.pigeon.v1.OfferRequest.prototype.setSdp = function(value) {
1557
+ return jspb.Message.setProto3StringField(this, 3, value);
1558
+ };
1559
+
1560
+
1561
+ /**
1562
+ * optional string videoFormat = 4;
1563
+ * @return {string}
1564
+ */
1565
+ proto.pigeon.v1.OfferRequest.prototype.getVideoformat = function() {
1566
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
1567
+ };
1568
+
1569
+
1570
+ /**
1571
+ * @param {string} value
1572
+ * @return {!proto.pigeon.v1.OfferRequest} returns this
1573
+ */
1574
+ proto.pigeon.v1.OfferRequest.prototype.setVideoformat = function(value) {
1575
+ return jspb.Message.setProto3StringField(this, 4, value);
1576
+ };
1577
+
1578
+
1579
+ /**
1580
+ * optional string videoCommand = 5;
1581
+ * @return {string}
1582
+ */
1583
+ proto.pigeon.v1.OfferRequest.prototype.getVideocommand = function() {
1584
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
1585
+ };
1586
+
1587
+
1588
+ /**
1589
+ * @param {string} value
1590
+ * @return {!proto.pigeon.v1.OfferRequest} returns this
1591
+ */
1592
+ proto.pigeon.v1.OfferRequest.prototype.setVideocommand = function(value) {
1593
+ return jspb.Message.setProto3StringField(this, 5, value);
1594
+ };
1595
+
1596
+
1597
+ /**
1598
+ * optional bool iceRestart = 6;
1599
+ * @return {boolean}
1600
+ */
1601
+ proto.pigeon.v1.OfferRequest.prototype.getIcerestart = function() {
1602
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false));
1603
+ };
1604
+
1605
+
1606
+ /**
1607
+ * @param {boolean} value
1608
+ * @return {!proto.pigeon.v1.OfferRequest} returns this
1609
+ */
1610
+ proto.pigeon.v1.OfferRequest.prototype.setIcerestart = function(value) {
1611
+ return jspb.Message.setProto3BooleanField(this, 6, value);
1612
+ };
1613
+
1614
+
1615
+
1616
+
1617
+
1618
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1619
+ /**
1620
+ * Creates an object representation of this proto.
1621
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1622
+ * Optional fields that are not set will be set to undefined.
1623
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1624
+ * For the list of reserved names please see:
1625
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1626
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1627
+ * JSPB instance for transitional soy proto support:
1628
+ * http://goto/soy-param-migration
1629
+ * @return {!Object}
1630
+ */
1631
+ proto.pigeon.v1.AnswerRequest.prototype.toObject = function(opt_includeInstance) {
1632
+ return proto.pigeon.v1.AnswerRequest.toObject(opt_includeInstance, this);
1633
+ };
1634
+
1635
+
1636
+ /**
1637
+ * Static version of the {@see toObject} method.
1638
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1639
+ * the JSPB instance for transitional soy proto support:
1640
+ * http://goto/soy-param-migration
1641
+ * @param {!proto.pigeon.v1.AnswerRequest} msg The msg instance to transform.
1642
+ * @return {!Object}
1643
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1644
+ */
1645
+ proto.pigeon.v1.AnswerRequest.toObject = function(includeInstance, msg) {
1646
+ var f, obj = {
1647
+ videoid: jspb.Message.getFieldWithDefault(msg, 1, ""),
1648
+ sdp: jspb.Message.getFieldWithDefault(msg, 2, "")
1649
+ };
1650
+
1651
+ if (includeInstance) {
1652
+ obj.$jspbMessageInstance = msg;
1653
+ }
1654
+ return obj;
1655
+ };
1656
+ }
1657
+
1658
+
1659
+ /**
1660
+ * Deserializes binary data (in protobuf wire format).
1661
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1662
+ * @return {!proto.pigeon.v1.AnswerRequest}
1663
+ */
1664
+ proto.pigeon.v1.AnswerRequest.deserializeBinary = function(bytes) {
1665
+ var reader = new jspb.BinaryReader(bytes);
1666
+ var msg = new proto.pigeon.v1.AnswerRequest;
1667
+ return proto.pigeon.v1.AnswerRequest.deserializeBinaryFromReader(msg, reader);
1668
+ };
1669
+
1670
+
1671
+ /**
1672
+ * Deserializes binary data (in protobuf wire format) from the
1673
+ * given reader into the given message object.
1674
+ * @param {!proto.pigeon.v1.AnswerRequest} msg The message object to deserialize into.
1675
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1676
+ * @return {!proto.pigeon.v1.AnswerRequest}
1677
+ */
1678
+ proto.pigeon.v1.AnswerRequest.deserializeBinaryFromReader = function(msg, reader) {
1679
+ while (reader.nextField()) {
1680
+ if (reader.isEndGroup()) {
1681
+ break;
1682
+ }
1683
+ var field = reader.getFieldNumber();
1684
+ switch (field) {
1685
+ case 1:
1686
+ var value = /** @type {string} */ (reader.readString());
1687
+ msg.setVideoid(value);
1688
+ break;
1689
+ case 2:
1690
+ var value = /** @type {string} */ (reader.readString());
1691
+ msg.setSdp(value);
1692
+ break;
1693
+ default:
1694
+ reader.skipField();
1695
+ break;
1696
+ }
1697
+ }
1698
+ return msg;
1699
+ };
1700
+
1701
+
1702
+ /**
1703
+ * Serializes the message to binary data (in protobuf wire format).
1704
+ * @return {!Uint8Array}
1705
+ */
1706
+ proto.pigeon.v1.AnswerRequest.prototype.serializeBinary = function() {
1707
+ var writer = new jspb.BinaryWriter();
1708
+ proto.pigeon.v1.AnswerRequest.serializeBinaryToWriter(this, writer);
1709
+ return writer.getResultBuffer();
1710
+ };
1711
+
1712
+
1713
+ /**
1714
+ * Serializes the given message to binary data (in protobuf wire
1715
+ * format), writing to the given BinaryWriter.
1716
+ * @param {!proto.pigeon.v1.AnswerRequest} message
1717
+ * @param {!jspb.BinaryWriter} writer
1718
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1719
+ */
1720
+ proto.pigeon.v1.AnswerRequest.serializeBinaryToWriter = function(message, writer) {
1721
+ var f = undefined;
1722
+ f = message.getVideoid();
1723
+ if (f.length > 0) {
1724
+ writer.writeString(
1725
+ 1,
1726
+ f
1727
+ );
1728
+ }
1729
+ f = message.getSdp();
1730
+ if (f.length > 0) {
1731
+ writer.writeString(
1732
+ 2,
1733
+ f
1734
+ );
1735
+ }
1736
+ };
1737
+
1738
+
1739
+ /**
1740
+ * optional string videoId = 1;
1741
+ * @return {string}
1742
+ */
1743
+ proto.pigeon.v1.AnswerRequest.prototype.getVideoid = function() {
1744
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1745
+ };
1746
+
1747
+
1748
+ /**
1749
+ * @param {string} value
1750
+ * @return {!proto.pigeon.v1.AnswerRequest} returns this
1751
+ */
1752
+ proto.pigeon.v1.AnswerRequest.prototype.setVideoid = function(value) {
1753
+ return jspb.Message.setProto3StringField(this, 1, value);
1754
+ };
1755
+
1756
+
1757
+ /**
1758
+ * optional string sdp = 2;
1759
+ * @return {string}
1760
+ */
1761
+ proto.pigeon.v1.AnswerRequest.prototype.getSdp = function() {
1762
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1763
+ };
1764
+
1765
+
1766
+ /**
1767
+ * @param {string} value
1768
+ * @return {!proto.pigeon.v1.AnswerRequest} returns this
1769
+ */
1770
+ proto.pigeon.v1.AnswerRequest.prototype.setSdp = function(value) {
1771
+ return jspb.Message.setProto3StringField(this, 2, value);
1772
+ };
1773
+
1774
+
1775
+ goog.object.extend(exports, proto.pigeon.v1);