@dronedeploy/rocos-js-sdk 2.6.1 → 3.0.0-alpha.20

Sign up to get free protection for your applications and to get access to all the features.
Files changed (618) hide show
  1. package/IRocosSDK.d.ts +3 -26
  2. package/IRocosSDK.js +1 -5
  3. package/README.md +18 -0
  4. package/RocosSDK.d.ts +6 -1
  5. package/RocosSDK.js +103 -95
  6. package/api/StreamRegister.d.ts +1 -1
  7. package/api/StreamRegister.js +23 -12
  8. package/api/atoms/StreamHeartbeat.js +3 -7
  9. package/api/streams/caller/CallerStream.d.ts +6 -6
  10. package/api/streams/caller/CallerStream.js +41 -49
  11. package/api/streams/caller/CallerStreamAbstract.d.ts +6 -11
  12. package/api/streams/caller/CallerStreamAbstract.js +55 -67
  13. package/api/streams/caller/CallerStreamNode.d.ts +6 -6
  14. package/api/streams/caller/CallerStreamNode.js +48 -61
  15. package/api/streams/command/CommandStream.d.ts +2 -4
  16. package/api/streams/command/CommandStream.js +28 -30
  17. package/api/streams/command/CommandStreamAbstract.d.ts +4 -8
  18. package/api/streams/command/CommandStreamAbstract.js +33 -42
  19. package/api/streams/command/CommandStreamNode.d.ts +2 -4
  20. package/api/streams/command/CommandStreamNode.js +16 -40
  21. package/api/streams/control/ControlStream.d.ts +4 -6
  22. package/api/streams/control/ControlStream.js +30 -36
  23. package/api/streams/control/ControlStreamAbstract.d.ts +6 -9
  24. package/api/streams/control/ControlStreamAbstract.js +57 -54
  25. package/api/streams/control/ControlStreamNode.d.ts +3 -5
  26. package/api/streams/control/ControlStreamNode.js +19 -44
  27. package/api/streams/fileAccessor/FileAccessorStream.d.ts +2 -4
  28. package/api/streams/fileAccessor/FileAccessorStream.js +42 -57
  29. package/api/streams/fileAccessor/FileAccessorStreamAbstract.d.ts +4 -9
  30. package/api/streams/fileAccessor/FileAccessorStreamAbstract.js +28 -48
  31. package/api/streams/fileAccessor/FileAccessorStreamNode.d.ts +1 -3
  32. package/api/streams/fileAccessor/FileAccessorStreamNode.js +23 -53
  33. package/api/streams/search/SearchStream.d.ts +2 -5
  34. package/api/streams/search/SearchStream.js +50 -74
  35. package/api/streams/search/SearchStreamAbstract.d.ts +4 -9
  36. package/api/streams/search/SearchStreamAbstract.js +33 -35
  37. package/api/streams/search/SearchStreamNode.d.ts +2 -5
  38. package/api/streams/search/SearchStreamNode.js +23 -48
  39. package/api/streams/telemetry/TelemetryStream.d.ts +4 -4
  40. package/api/streams/telemetry/TelemetryStream.js +49 -78
  41. package/api/streams/telemetry/TelemetryStreamAbstract.d.ts +8 -11
  42. package/api/streams/telemetry/TelemetryStreamAbstract.js +126 -145
  43. package/api/streams/telemetry/TelemetryStreamNode.d.ts +5 -5
  44. package/api/streams/telemetry/TelemetryStreamNode.js +44 -64
  45. package/api/streams/webRTCSignalling/WebRTCSignallingStream.d.ts +5 -10
  46. package/api/streams/webRTCSignalling/WebRTCSignallingStream.js +37 -20
  47. package/api/streams/webRTCSignalling/WebRTCSignallingStreamAbstract.d.ts +10 -13
  48. package/api/streams/webRTCSignalling/WebRTCSignallingStreamAbstract.js +37 -37
  49. package/constants/api.d.ts +14 -5
  50. package/constants/api.js +130 -126
  51. package/constants/auth.d.ts +2 -0
  52. package/constants/auth.js +2 -0
  53. package/constants/grpc.js +5 -8
  54. package/constants/identifier.js +6 -9
  55. package/constants/timezones.d.ts +1 -1
  56. package/constants/timezones.js +1 -4
  57. package/grpc/conker_pb.client.d.ts +78 -0
  58. package/grpc/conker_pb.client.js +55 -0
  59. package/grpc/conker_pb.d.ts +141 -0
  60. package/grpc/conker_pb.grpc-client.d.ts +81 -0
  61. package/grpc/conker_pb.grpc-client.js +58 -0
  62. package/grpc/conker_pb.js +104 -0
  63. package/grpc/filagree_pb.client.d.ts +68 -0
  64. package/grpc/filagree_pb.client.js +48 -0
  65. package/grpc/filagree_pb.d.ts +404 -0
  66. package/grpc/filagree_pb.grpc-client.d.ts +69 -0
  67. package/grpc/filagree_pb.grpc-client.js +51 -0
  68. package/grpc/filagree_pb.js +329 -0
  69. package/grpc/google/protobuf/descriptor_pb.d.ts +1798 -0
  70. package/grpc/google/protobuf/descriptor_pb.js +2378 -0
  71. package/grpc/google/protobuf/empty_pb.d.ts +23 -0
  72. package/grpc/google/protobuf/empty_pb.js +47 -0
  73. package/grpc/pigeon_pb.client.d.ts +96 -0
  74. package/grpc/pigeon_pb.client.js +72 -0
  75. package/grpc/pigeon_pb.d.ts +207 -0
  76. package/grpc/pigeon_pb.grpc-client.d.ts +98 -0
  77. package/grpc/pigeon_pb.grpc-client.js +68 -0
  78. package/grpc/pigeon_pb.js +144 -0
  79. package/grpc/rambo.uri.v1_pb.d.ts +73 -0
  80. package/grpc/rambo.uri.v1_pb.js +48 -0
  81. package/grpc/rambo.v1_pb.client.d.ts +66 -0
  82. package/grpc/rambo.v1_pb.client.js +48 -0
  83. package/grpc/rambo.v1_pb.d.ts +392 -0
  84. package/grpc/rambo.v1_pb.grpc-client.d.ts +56 -0
  85. package/grpc/rambo.v1_pb.grpc-client.js +44 -0
  86. package/grpc/rambo.v1_pb.js +272 -0
  87. package/grpc/serviette.uri.v1_pb.d.ts +89 -0
  88. package/grpc/serviette.uri.v1_pb.js +62 -0
  89. package/grpc/serviette.v1_pb.client.d.ts +225 -0
  90. package/grpc/serviette.v1_pb.client.js +174 -0
  91. package/grpc/serviette.v1_pb.d.ts +827 -0
  92. package/grpc/serviette.v1_pb.grpc-client.d.ts +215 -0
  93. package/grpc/serviette.v1_pb.grpc-client.js +162 -0
  94. package/grpc/serviette.v1_pb.js +553 -0
  95. package/grpc/slowlane_pb.client.d.ts +61 -0
  96. package/grpc/slowlane_pb.client.js +41 -0
  97. package/grpc/slowlane_pb.d.ts +303 -0
  98. package/grpc/slowlane_pb.grpc-client.d.ts +64 -0
  99. package/grpc/slowlane_pb.grpc-client.js +44 -0
  100. package/grpc/slowlane_pb.js +185 -0
  101. package/grpc/teletubby_pb.client.d.ts +145 -0
  102. package/grpc/teletubby_pb.client.js +104 -0
  103. package/grpc/teletubby_pb.d.ts +634 -0
  104. package/grpc/teletubby_pb.grpc-client.d.ts +152 -0
  105. package/grpc/teletubby_pb.grpc-client.js +100 -0
  106. package/grpc/teletubby_pb.js +1264 -0
  107. package/helpers/arrayRemove.js +2 -6
  108. package/helpers/arrayUnique.js +2 -6
  109. package/helpers/average.js +2 -7
  110. package/helpers/callerMessageHelpers.d.ts +14 -0
  111. package/helpers/callerMessageHelpers.js +86 -0
  112. package/helpers/cleanObject.js +17 -19
  113. package/helpers/cleanObject.spec.d.ts +1 -0
  114. package/helpers/cleanObject.spec.js +53 -0
  115. package/helpers/enviroment.js +4 -11
  116. package/helpers/flattenCallsignsLookup.d.ts +1 -1
  117. package/helpers/flattenCallsignsLookup.js +1 -5
  118. package/helpers/flattenObject.js +1 -5
  119. package/helpers/flattenObject.spec.d.ts +1 -0
  120. package/helpers/flattenObject.spec.js +29 -0
  121. package/helpers/flattenOneOf.d.ts +67 -0
  122. package/helpers/flattenOneOf.js +29 -0
  123. package/helpers/flattenOneOf.spec.d.ts +1 -0
  124. package/helpers/flattenOneOf.spec.js +157 -0
  125. package/helpers/formatServiceUrl.js +1 -5
  126. package/helpers/formatServiceUrl.spec.d.ts +1 -0
  127. package/helpers/formatServiceUrl.spec.js +16 -0
  128. package/helpers/generateUUID.js +3 -7
  129. package/helpers/getSubscriptionsDifference.d.ts +3 -3
  130. package/helpers/getSubscriptionsDifference.js +6 -10
  131. package/helpers/getURLSearchParams.d.ts +2 -0
  132. package/helpers/getURLSearchParams.js +9 -0
  133. package/helpers/getURLSearchParams.spec.d.ts +1 -0
  134. package/helpers/getURLSearchParams.spec.js +19 -0
  135. package/helpers/getUniqueConfigKey.js +1 -6
  136. package/helpers/getUniqueId.js +3 -7
  137. package/helpers/getUnixTimeMs.js +1 -5
  138. package/helpers/index.d.ts +3 -1
  139. package/helpers/index.js +5 -15
  140. package/helpers/nanosecondToMillisecond.d.ts +1 -1
  141. package/helpers/nanosecondToMillisecond.js +11 -6
  142. package/helpers/nanosecondToMillisecond.spec.d.ts +1 -0
  143. package/helpers/nanosecondToMillisecond.spec.js +20 -0
  144. package/helpers/randomString.js +1 -5
  145. package/helpers/standardDeviation.js +4 -8
  146. package/helpers/standardDeviation.spec.d.ts +1 -0
  147. package/helpers/standardDeviation.spec.js +11 -0
  148. package/helpers/stringToUint8Array.js +3 -7
  149. package/helpers/uint8ArrayToString.js +3 -8
  150. package/helpers/websandbox/connection.d.ts +67 -0
  151. package/helpers/websandbox/connection.js +133 -0
  152. package/helpers/websandbox/frame/frame.d.ts +12 -0
  153. package/helpers/websandbox/frame/frame.js +22 -0
  154. package/helpers/websandbox/frame/frame.source.d.ts +2 -0
  155. package/helpers/websandbox/frame/frame.source.js +5 -0
  156. package/helpers/websandbox/frame/index.d.ts +2 -0
  157. package/helpers/websandbox/frame/index.js +2 -0
  158. package/helpers/websandbox/frame/worker/index.d.ts +2 -0
  159. package/helpers/websandbox/frame/worker/index.js +2 -0
  160. package/helpers/websandbox/frame/worker/manager.d.ts +11 -0
  161. package/helpers/websandbox/frame/worker/manager.js +67 -0
  162. package/helpers/websandbox/frame/worker/manager.spec.d.ts +4 -0
  163. package/helpers/websandbox/frame/worker/manager.spec.js +127 -0
  164. package/helpers/websandbox/frame/worker/types.d.ts +11 -0
  165. package/helpers/websandbox/frame/worker/types.js +1 -0
  166. package/helpers/websandbox/frame/worker/worker.d.ts +1 -0
  167. package/helpers/websandbox/frame/worker/worker.js +74 -0
  168. package/helpers/websandbox/frame/worker/worker.source.d.ts +2 -0
  169. package/helpers/websandbox/frame/worker/worker.source.js +4 -0
  170. package/helpers/websandbox/index.d.ts +2 -0
  171. package/helpers/websandbox/index.js +2 -0
  172. package/helpers/websandbox/sandbox.d.ts +57 -0
  173. package/helpers/websandbox/sandbox.js +175 -0
  174. package/helpers/websandbox/types.d.ts +13 -0
  175. package/helpers/websandbox/types.js +1 -0
  176. package/index.js +7 -19
  177. package/logger/RocosLogger.js +18 -44
  178. package/models/CallsignStatus.d.ts +6 -0
  179. package/models/CallsignStatus.js +7 -0
  180. package/models/ExportDataQuery.js +1 -5
  181. package/models/ExternalProject.js +1 -5
  182. package/models/IBaseService.d.ts +1 -0
  183. package/models/IBaseService.js +1 -2
  184. package/models/IConfigGroup.js +1 -2
  185. package/models/IDebugLevel.d.ts +1 -1
  186. package/models/IDebugLevel.js +1 -2
  187. package/models/IExportDataQuery.js +1 -2
  188. package/models/IFunctionConfig.js +1 -2
  189. package/models/IInvitation.d.ts +1 -1
  190. package/models/IInvitation.js +1 -2
  191. package/models/IInvitationExists.js +1 -2
  192. package/models/IOperation.js +1 -2
  193. package/models/IPersonalAccessToken.js +1 -2
  194. package/models/IProject.js +1 -2
  195. package/models/IProjectApplication.js +1 -2
  196. package/models/IRobot.d.ts +1 -0
  197. package/models/IRobot.js +1 -2
  198. package/models/IRobotConfig.js +1 -2
  199. package/models/IRobotPlugin.js +1 -2
  200. package/models/IRobotSettings.d.ts +28 -0
  201. package/models/IRobotSettings.js +1 -0
  202. package/models/IRobotTemplate.js +1 -2
  203. package/models/IRocosSDKConfig.d.ts +3 -9
  204. package/models/IRocosSDKConfig.js +1 -2
  205. package/models/ISource.js +1 -2
  206. package/models/IStream.js +1 -2
  207. package/models/IStreamConfig.js +1 -2
  208. package/models/IStreamOptions.js +1 -2
  209. package/models/IStreamSource.js +1 -2
  210. package/models/ISubscriberStatus.js +1 -2
  211. package/models/ITelemetryStreamConfig.js +1 -2
  212. package/models/IToken.d.ts +7 -3
  213. package/models/IToken.js +1 -2
  214. package/models/IWidget.js +1 -2
  215. package/models/IWidgetLineGroup.js +1 -2
  216. package/models/ResponseLevelEnum.d.ts +4 -0
  217. package/models/ResponseLevelEnum.js +6 -5
  218. package/models/Robot.d.ts +1 -0
  219. package/models/Robot.js +1 -5
  220. package/models/RobotConfig.js +1 -5
  221. package/models/RobotPlugin.js +1 -5
  222. package/models/RobotTemplate.js +9 -14
  223. package/models/RocosError.d.ts +1 -0
  224. package/models/RocosError.js +3 -6
  225. package/models/ServiceEnum.d.ts +2 -1
  226. package/models/ServiceEnum.js +3 -5
  227. package/models/Stream.js +4 -8
  228. package/models/StreamOptions.js +1 -5
  229. package/models/StreamSource.js +3 -7
  230. package/models/SubscriberStatusEnum.js +2 -5
  231. package/models/Token.d.ts +36 -4
  232. package/models/Token.js +74 -11
  233. package/models/Token.spec.d.ts +1 -0
  234. package/models/Token.spec.js +108 -0
  235. package/models/Widget.js +4 -8
  236. package/models/WidgetLineGroup.js +1 -5
  237. package/models/asset-storage/AssetModelItem.d.ts +3 -0
  238. package/models/asset-storage/AssetModelItem.js +1 -2
  239. package/models/caller/IRocosCallerMessageChunk.d.ts +8 -2
  240. package/models/caller/IRocosCallerMessageChunk.js +1 -2
  241. package/models/caller/IRocosCallerMessageChunks.d.ts +2 -3
  242. package/models/caller/IRocosCallerMessageChunks.js +1 -2
  243. package/models/caller/IRocosCallerMessageHeartbeat.d.ts +3 -2
  244. package/models/caller/IRocosCallerMessageHeartbeat.js +1 -2
  245. package/models/caller/IRocosCallerMessageResponse.d.ts +3 -2
  246. package/models/caller/IRocosCallerMessageResponse.js +1 -2
  247. package/models/caller/IRocosCallerMessageResponseAck.d.ts +16 -2
  248. package/models/caller/IRocosCallerMessageResponseAck.js +13 -2
  249. package/models/caller/IRocosCallerMessageResponseResult.d.ts +15 -2
  250. package/models/caller/IRocosCallerMessageResponseResult.js +12 -2
  251. package/models/caller/IRocosCallerMessageResponseReturn.d.ts +8 -0
  252. package/models/caller/IRocosCallerMessageResponseReturn.js +1 -0
  253. package/models/caller/IRocosCallerMessageResponseUid.d.ts +10 -2
  254. package/models/caller/IRocosCallerMessageResponseUid.js +7 -2
  255. package/models/caller/IRocosCallerMessageResponses.d.ts +2 -3
  256. package/models/caller/IRocosCallerMessageResponses.js +1 -2
  257. package/models/caller/RocosCallerResultStatus.d.ts +11 -1
  258. package/models/caller/RocosCallerResultStatus.js +12 -5
  259. package/models/caller/RocosResponseLevel.d.ts +6 -0
  260. package/models/caller/RocosResponseLevel.js +7 -0
  261. package/models/caller/index.d.ts +11 -0
  262. package/models/caller/index.js +11 -0
  263. package/models/callsigns/CallsignsEnums.d.ts +3 -3
  264. package/models/callsigns/CallsignsEnums.js +11 -14
  265. package/models/callsigns/CallsignsLookup.js +10 -15
  266. package/models/callsigns/CallsignsQuery.js +1 -5
  267. package/models/callsigns/CallsignsQueryPredicate.js +1 -5
  268. package/models/command/IRocosCommandMessageHeartbeat.d.ts +1 -2
  269. package/models/command/IRocosCommandMessageHeartbeat.js +1 -2
  270. package/models/command/IRocosCommandMessageResponse.d.ts +55 -2
  271. package/models/command/IRocosCommandMessageResponse.js +29 -2
  272. package/models/command/RocosCommandResultStatus.d.ts +11 -1
  273. package/models/command/RocosCommandResultStatus.js +12 -5
  274. package/models/command/index.d.ts +4 -0
  275. package/models/command/index.js +4 -0
  276. package/models/file/FileEnums.d.ts +4 -4
  277. package/models/file/FileEnums.js +9 -12
  278. package/models/index.d.ts +6 -31
  279. package/models/index.js +76 -113
  280. package/models/integrations/Overlay.js +1 -2
  281. package/models/integrations/Plan.js +1 -2
  282. package/models/maps/Map.d.ts +2 -3
  283. package/models/maps/Map.js +1 -2
  284. package/models/maps/Panorama.d.ts +36 -0
  285. package/models/maps/Panorama.js +1 -0
  286. package/models/message/IRocosCallerMessage.js +1 -2
  287. package/models/message/IRocosChangeMessage.js +1 -2
  288. package/models/message/IRocosCommandMessage.js +1 -2
  289. package/models/message/IRocosControlMessage.js +1 -2
  290. package/models/message/IRocosOpResultMessage.d.ts +2 -2
  291. package/models/message/IRocosOpResultMessage.js +1 -2
  292. package/models/message/IRocosSearchMessage.js +1 -2
  293. package/models/message/IRocosSearchRowMessage.js +1 -2
  294. package/models/message/IRocosSearchStatusMessage.js +1 -2
  295. package/models/message/IRocosTelemetryMessage.d.ts +12 -7
  296. package/models/message/IRocosTelemetryMessage.js +1 -2
  297. package/models/message/IStreamStatusMessage.js +1 -2
  298. package/models/message/RocosCallerMessage.d.ts +2 -4
  299. package/models/message/RocosCallerMessage.js +24 -15
  300. package/models/message/RocosCommandMessage.d.ts +2 -3
  301. package/models/message/RocosCommandMessage.js +5 -8
  302. package/models/message/RocosControlMessage.d.ts +1 -1
  303. package/models/message/RocosControlMessage.js +6 -10
  304. package/models/message/RocosOpResultMessage.d.ts +3 -2
  305. package/models/message/RocosOpResultMessage.js +6 -10
  306. package/models/message/RocosSearchMessage.d.ts +1 -1
  307. package/models/message/RocosSearchMessage.js +5 -9
  308. package/models/message/RocosSearchRowMessage.d.ts +1 -1
  309. package/models/message/RocosSearchRowMessage.js +8 -12
  310. package/models/message/RocosTelemetryMessage.d.ts +9 -23
  311. package/models/message/RocosTelemetryMessage.js +51 -93
  312. package/models/message/index.d.ts +17 -0
  313. package/models/message/index.js +17 -0
  314. package/models/params/ICallerParams.d.ts +12 -1
  315. package/models/params/ICallerParams.js +1 -2
  316. package/models/params/ICommandParams.js +1 -2
  317. package/models/params/IControlParams.d.ts +1 -1
  318. package/models/params/IControlParams.js +1 -2
  319. package/models/params/IFileAccessorParams.js +1 -2
  320. package/models/params/ISearchParams.js +1 -2
  321. package/models/params/ITelemetryParams.d.ts +1 -1
  322. package/models/params/ITelemetryParams.js +1 -2
  323. package/models/params/IWebRTCSignallingParams.js +1 -2
  324. package/models/projects/ProjectUser.js +1 -2
  325. package/models/schedule/IScheduleAction.d.ts +1 -1
  326. package/models/schedule/IScheduleAction.js +2 -5
  327. package/models/schedule/IScheduleInfo.js +1 -2
  328. package/models/schedule/IScheduleJob.js +1 -2
  329. package/models/search/SearchQueryFilter.js +1 -5
  330. package/models/search/SearchStreamQuery.js +1 -5
  331. package/models/stream/IBaseStream.js +1 -2
  332. package/models/stream/ICallerStream.js +1 -2
  333. package/models/stream/ICommandStream.js +1 -2
  334. package/models/stream/IControlStream.js +1 -2
  335. package/models/stream/IFileAccessorStream.d.ts +1 -2
  336. package/models/stream/IFileAccessorStream.js +1 -2
  337. package/models/stream/ISearchStream.js +1 -2
  338. package/models/stream/ITelemetryStream.js +1 -2
  339. package/models/stream/IWebRTCSignallingStream.d.ts +51 -16
  340. package/models/stream/IWebRTCSignallingStream.js +1 -7
  341. package/models/types.d.ts +5 -5
  342. package/models/types.js +1 -2
  343. package/models/workflow/Workflow.d.ts +36 -0
  344. package/models/workflow/Workflow.js +1 -0
  345. package/node/RocosSDKNode.d.ts +6 -1
  346. package/node/RocosSDKNode.js +82 -80
  347. package/node/index.js +7 -19
  348. package/package.json +10 -11
  349. package/services/AssetStorageService.d.ts +23 -1
  350. package/services/AssetStorageService.js +53 -24
  351. package/services/AuthService.d.ts +59 -27
  352. package/services/AuthService.js +167 -86
  353. package/services/AuthService.spec.d.ts +1 -0
  354. package/services/AuthService.spec.js +163 -0
  355. package/services/BaseServiceAbstract.d.ts +11 -13
  356. package/services/BaseServiceAbstract.js +18 -24
  357. package/services/BaseStreamService.d.ts +18 -0
  358. package/services/BaseStreamService.js +47 -0
  359. package/services/CallerService.d.ts +37 -17
  360. package/services/CallerService.js +86 -65
  361. package/services/CallerService.spec.d.ts +1 -0
  362. package/services/CallerService.spec.js +227 -0
  363. package/services/CallerServiceNode.js +4 -8
  364. package/services/CommandService.d.ts +5 -17
  365. package/services/CommandService.js +19 -62
  366. package/services/CommandServiceNode.js +4 -8
  367. package/services/ConfigGroupService.js +17 -21
  368. package/services/ControlService.d.ts +5 -17
  369. package/services/ControlService.js +22 -65
  370. package/services/ControlServiceNode.js +4 -8
  371. package/services/DashboardService.js +20 -24
  372. package/services/EvaluatorService.d.ts +11 -0
  373. package/services/EvaluatorService.js +28 -0
  374. package/services/EventService.js +13 -17
  375. package/services/FileAccessorService.d.ts +4 -18
  376. package/services/FileAccessorService.js +14 -62
  377. package/services/FileAccessorServiceNode.js +4 -8
  378. package/services/FunctionService.js +17 -21
  379. package/services/IntegrationService.js +14 -19
  380. package/services/MapService.d.ts +71 -25
  381. package/services/MapService.js +113 -40
  382. package/services/PlatformTimeService.js +8 -12
  383. package/services/PlatformTimeService.spec.d.ts +1 -0
  384. package/services/PlatformTimeService.spec.js +180 -0
  385. package/services/ProfileService.js +36 -40
  386. package/services/ProjectService.js +23 -27
  387. package/services/RobotService.d.ts +2 -6
  388. package/services/RobotService.js +48 -55
  389. package/services/ScheduleService.js +10 -14
  390. package/services/SearchService.d.ts +4 -17
  391. package/services/SearchService.js +24 -59
  392. package/services/SearchServiceNode.js +4 -8
  393. package/services/SpotProvisioningService.d.ts +1 -1
  394. package/services/SpotProvisioningService.js +16 -16
  395. package/services/SpotProvisioningServiceNode.d.ts +1 -1
  396. package/services/SpotProvisioningServiceNode.js +16 -16
  397. package/services/StreamService.js +26 -30
  398. package/services/TelemetryService.d.ts +15 -17
  399. package/services/TelemetryService.js +103 -93
  400. package/services/TelemetryService.spec.d.ts +1 -0
  401. package/services/TelemetryService.spec.js +37 -0
  402. package/services/TelemetryServiceNode.js +4 -8
  403. package/services/TimeSyncerService.js +9 -13
  404. package/services/UserService.js +37 -41
  405. package/services/WebRTCSignallingService.d.ts +4 -4
  406. package/services/WebRTCSignallingService.js +24 -27
  407. package/services/WorkflowService.d.ts +25 -29
  408. package/services/WorkflowService.js +39 -75
  409. package/services/index.d.ts +1 -0
  410. package/services/index.js +27 -38
  411. package/store/RocosStore.js +9 -15
  412. package/demo/angular/.editorconfig +0 -16
  413. package/demo/angular/.eslintignore +0 -4
  414. package/demo/angular/.eslintrc.json +0 -50
  415. package/demo/angular/README.md +0 -36
  416. package/demo/angular/angular.json +0 -132
  417. package/demo/angular/karma.conf.js +0 -44
  418. package/demo/angular/package.json +0 -41
  419. package/demo/angular/src/app/app.component.css +0 -0
  420. package/demo/angular/src/app/app.component.html +0 -9
  421. package/demo/angular/src/app/app.component.ts +0 -10
  422. package/demo/angular/src/app/app.module.ts +0 -38
  423. package/demo/angular/src/app/components/assets/assets.component.css +0 -0
  424. package/demo/angular/src/app/components/assets/assets.component.html +0 -29
  425. package/demo/angular/src/app/components/assets/assets.component.ts +0 -107
  426. package/demo/angular/src/app/components/auth/auth.component.css +0 -0
  427. package/demo/angular/src/app/components/auth/auth.component.html +0 -27
  428. package/demo/angular/src/app/components/auth/auth.component.ts +0 -33
  429. package/demo/angular/src/app/components/caller/caller.component.css +0 -0
  430. package/demo/angular/src/app/components/caller/caller.component.html +0 -22
  431. package/demo/angular/src/app/components/caller/caller.component.ts +0 -61
  432. package/demo/angular/src/app/components/command/command.component.css +0 -0
  433. package/demo/angular/src/app/components/command/command.component.html +0 -22
  434. package/demo/angular/src/app/components/command/command.component.ts +0 -60
  435. package/demo/angular/src/app/components/integrations/integrations.component.ts +0 -43
  436. package/demo/angular/src/app/components/robots/robots.component.css +0 -0
  437. package/demo/angular/src/app/components/robots/robots.component.html +0 -13
  438. package/demo/angular/src/app/components/robots/robots.component.ts +0 -26
  439. package/demo/angular/src/app/components/sdk/sdk.component.css +0 -0
  440. package/demo/angular/src/app/components/sdk/sdk.component.html +0 -43
  441. package/demo/angular/src/app/components/sdk/sdk.component.ts +0 -50
  442. package/demo/angular/src/app/components/subscription/subscription.component.css +0 -0
  443. package/demo/angular/src/app/components/subscription/subscription.component.html +0 -6
  444. package/demo/angular/src/app/components/subscription/subscription.component.ts +0 -40
  445. package/demo/angular/src/app/components/telemetry/telemetry.component.css +0 -0
  446. package/demo/angular/src/app/components/telemetry/telemetry.component.html +0 -19
  447. package/demo/angular/src/app/components/telemetry/telemetry.component.ts +0 -61
  448. package/demo/angular/src/app/components/token/token.component.css +0 -0
  449. package/demo/angular/src/app/components/token/token.component.html +0 -10
  450. package/demo/angular/src/app/components/token/token.component.ts +0 -18
  451. package/demo/angular/src/app/components/video/p2pvideo/index.ts +0 -646
  452. package/demo/angular/src/app/components/video/video-source.ts +0 -315
  453. package/demo/angular/src/app/components/video/video.component.css +0 -6
  454. package/demo/angular/src/app/components/video/video.component.html +0 -54
  455. package/demo/angular/src/app/components/video/video.component.ts +0 -151
  456. package/demo/angular/src/app/services/sdk.service.ts +0 -193
  457. package/demo/angular/src/assets/.gitkeep +0 -0
  458. package/demo/angular/src/assets/HKGrotesk-Bold.otf +0 -0
  459. package/demo/angular/src/assets/HKGrotesk-Regular.otf +0 -0
  460. package/demo/angular/src/assets/logo.svg +0 -16
  461. package/demo/angular/src/environments/environment.prod.ts +0 -3
  462. package/demo/angular/src/environments/environment.ts +0 -16
  463. package/demo/angular/src/favicon.ico +0 -0
  464. package/demo/angular/src/index.html +0 -15
  465. package/demo/angular/src/main.ts +0 -7
  466. package/demo/angular/src/polyfills.ts +0 -53
  467. package/demo/angular/src/styles.css +0 -198
  468. package/demo/angular/tsconfig.app.json +0 -15
  469. package/demo/angular/tsconfig.json +0 -39
  470. package/demo/html/README.md +0 -8
  471. package/demo/html/assets/HKGrotesk-Bold.otf +0 -0
  472. package/demo/html/assets/HKGrotesk-Regular.otf +0 -0
  473. package/demo/html/assets/logo.svg +0 -16
  474. package/demo/html/favicon.ico +0 -0
  475. package/demo/html/index.html +0 -416
  476. package/demo/html/rocos-js-sdk.js +0 -3
  477. package/demo/html/rocos-js-sdk.js.LICENSE.txt +0 -8
  478. package/demo/html/rocos-js-sdk.js.map +0 -1
  479. package/demo/html/styles.css +0 -190
  480. package/demo/node/README.md +0 -17
  481. package/demo/node/index.js +0 -134
  482. package/demo/node/package.json +0 -8
  483. package/demo/react/.env +0 -1
  484. package/demo/react/.env.dist +0 -1
  485. package/demo/react/.eslintrc.json +0 -46
  486. package/demo/react/README.md +0 -65
  487. package/demo/react/package.json +0 -60
  488. package/demo/react/public/favicon.ico +0 -0
  489. package/demo/react/public/index.html +0 -43
  490. package/demo/react/public/logo192.png +0 -0
  491. package/demo/react/public/logo512.png +0 -0
  492. package/demo/react/public/manifest.json +0 -25
  493. package/demo/react/public/robots.txt +0 -3
  494. package/demo/react/src/App.css +0 -190
  495. package/demo/react/src/App.tsx +0 -31
  496. package/demo/react/src/actions/index.ts +0 -8
  497. package/demo/react/src/actions/sdkActions.ts +0 -62
  498. package/demo/react/src/assets/HKGrotesk-Bold.otf +0 -0
  499. package/demo/react/src/assets/HKGrotesk-Regular.otf +0 -0
  500. package/demo/react/src/assets/logo.svg +0 -16
  501. package/demo/react/src/components/AuthForm.tsx +0 -76
  502. package/demo/react/src/components/CallerBox.tsx +0 -53
  503. package/demo/react/src/components/CallerForm.tsx +0 -98
  504. package/demo/react/src/components/CommandBox.tsx +0 -47
  505. package/demo/react/src/components/CommandForm.tsx +0 -98
  506. package/demo/react/src/components/RobotsForm.tsx +0 -51
  507. package/demo/react/src/components/SubscriptionBox.tsx +0 -55
  508. package/demo/react/src/components/TelemetryForm.tsx +0 -98
  509. package/demo/react/src/components/TokenForm.tsx +0 -39
  510. package/demo/react/src/config.json +0 -14
  511. package/demo/react/src/controllers/RocosSDKController.ts +0 -48
  512. package/demo/react/src/helpers/deepEqual.ts +0 -27
  513. package/demo/react/src/hooks/useInput.ts +0 -29
  514. package/demo/react/src/index.css +0 -11
  515. package/demo/react/src/index.tsx +0 -26
  516. package/demo/react/src/react-app-env.d.ts +0 -1
  517. package/demo/react/src/reducers/sdkReducer.ts +0 -133
  518. package/demo/react/src/reportWebVitals.ts +0 -15
  519. package/demo/react/src/selectors/sdkSelector.ts +0 -11
  520. package/demo/react/src/setupTests.ts +0 -5
  521. package/demo/react/src/store.ts +0 -14
  522. package/demo/react/tsconfig.json +0 -26
  523. package/demo/sdk-sizer/dist/sdk-sizer/3rdpartylicenses.txt +0 -975
  524. package/demo/sdk-sizer/dist/sdk-sizer/favicon.ico +0 -0
  525. package/demo/sdk-sizer/dist/sdk-sizer/index.html +0 -12
  526. package/demo/sdk-sizer/dist/sdk-sizer/main.c9183649ce1856ef.js +0 -2
  527. package/demo/sdk-sizer/dist/sdk-sizer/main.c9183649ce1856ef.js.map +0 -1
  528. package/demo/sdk-sizer/dist/sdk-sizer/polyfills.701c8e5d007909aa.js +0 -2
  529. package/demo/sdk-sizer/dist/sdk-sizer/polyfills.701c8e5d007909aa.js.map +0 -1
  530. package/demo/sdk-sizer/dist/sdk-sizer/runtime.00e20e689f5284a8.js +0 -2
  531. package/demo/sdk-sizer/dist/sdk-sizer/runtime.00e20e689f5284a8.js.map +0 -1
  532. package/demo/sdk-sizer/dist/sdk-sizer/stats.json +0 -1
  533. package/demo/sdk-sizer/dist/sdk-sizer/styles.b45f7e627ac8cbce.css +0 -2
  534. package/demo/sdk-sizer/dist/sdk-sizer/styles.b45f7e627ac8cbce.css.map +0 -1
  535. package/grpc/file-accessor/filagree_grpc_pb.d.ts +0 -41
  536. package/grpc/file-accessor/filagree_grpc_pb.js +0 -121
  537. package/grpc/file-accessor/filagree_pb.d.ts +0 -339
  538. package/grpc/file-accessor/filagree_pb.js +0 -2261
  539. package/grpc/file-accessor/filagree_pb_service.d.ts +0 -115
  540. package/grpc/file-accessor/filagree_pb_service.js +0 -257
  541. package/grpc/rambo/rambo.v1_grpc_pb.d.ts +0 -39
  542. package/grpc/rambo/rambo.v1_grpc_pb.js +0 -73
  543. package/grpc/rambo/rambo.v1_pb.d.ts +0 -365
  544. package/grpc/rambo/rambo.v1_pb.js +0 -2469
  545. package/grpc/rambo/rambo.v1_pb_service.d.ts +0 -76
  546. package/grpc/rambo/rambo.v1_pb_service.js +0 -138
  547. package/grpc/rambo/uri.v1_grpc_pb.d.ts +0 -1
  548. package/grpc/rambo/uri.v1_grpc_pb.js +0 -1
  549. package/grpc/rambo/uri.v1_pb.d.ts +0 -80
  550. package/grpc/rambo/uri.v1_pb.js +0 -563
  551. package/grpc/rambo/uri.v1_pb_service.d.ts +0 -3
  552. package/grpc/rambo/uri.v1_pb_service.js +0 -3
  553. package/grpc/robot-control/conker_grpc_pb.d.ts +0 -46
  554. package/grpc/robot-control/conker_grpc_pb.js +0 -143
  555. package/grpc/robot-control/conker_pb.d.ts +0 -168
  556. package/grpc/robot-control/conker_pb.js +0 -1287
  557. package/grpc/robot-control/conker_pb_service.d.ts +0 -126
  558. package/grpc/robot-control/conker_pb_service.js +0 -301
  559. package/grpc/serviette/common.v1_grpc_pb.d.ts +0 -1
  560. package/grpc/serviette/common.v1_grpc_pb.js +0 -1
  561. package/grpc/serviette/common.v1_pb.d.ts +0 -8
  562. package/grpc/serviette/common.v1_pb.js +0 -45
  563. package/grpc/serviette/common.v1_pb_service.d.ts +0 -3
  564. package/grpc/serviette/common.v1_pb_service.js +0 -3
  565. package/grpc/serviette/serviette.v1_grpc_pb.d.ts +0 -137
  566. package/grpc/serviette/serviette.v1_grpc_pb.js +0 -331
  567. package/grpc/serviette/serviette.v1_pb.d.ts +0 -884
  568. package/grpc/serviette/serviette.v1_pb.js +0 -6363
  569. package/grpc/serviette/serviette.v1_pb_service.d.ts +0 -278
  570. package/grpc/serviette/serviette.v1_pb_service.js +0 -699
  571. package/grpc/serviette/uri.v1_grpc_pb.d.ts +0 -1
  572. package/grpc/serviette/uri.v1_grpc_pb.js +0 -1
  573. package/grpc/serviette/uri.v1_pb.d.ts +0 -102
  574. package/grpc/serviette/uri.v1_pb.js +0 -741
  575. package/grpc/serviette/uri.v1_pb_service.d.ts +0 -3
  576. package/grpc/serviette/uri.v1_pb_service.js +0 -3
  577. package/grpc/slowlane/slowlane_grpc_pb.d.ts +0 -38
  578. package/grpc/slowlane/slowlane_grpc_pb.js +0 -132
  579. package/grpc/slowlane/slowlane_pb.d.ts +0 -373
  580. package/grpc/slowlane/slowlane_pb.js +0 -2908
  581. package/grpc/slowlane/slowlane_pb_service.d.ts +0 -112
  582. package/grpc/slowlane/slowlane_pb_service.js +0 -189
  583. package/grpc/teletubby/teletubby_grpc_pb.d.ts +0 -73
  584. package/grpc/teletubby/teletubby_grpc_pb.js +0 -231
  585. package/grpc/teletubby/teletubby_pb.d.ts +0 -647
  586. package/grpc/teletubby/teletubby_pb.js +0 -4786
  587. package/grpc/teletubby/teletubby_pb_service.d.ts +0 -193
  588. package/grpc/teletubby/teletubby_pb_service.js +0 -436
  589. package/grpc/video/pigeon_grpc_pb.d.ts +0 -59
  590. package/grpc/video/pigeon_grpc_pb.js +0 -180
  591. package/grpc/video/pigeon_pb.d.ts +0 -237
  592. package/grpc/video/pigeon_pb.js +0 -1775
  593. package/grpc/video/pigeon_pb_service.d.ts +0 -152
  594. package/grpc/video/pigeon_pb_service.js +0 -292
  595. package/models/ISignupParams.d.ts +0 -8
  596. package/models/ISignupParams.js +0 -2
  597. package/utils/axisangle.d.ts +0 -18
  598. package/utils/axisangle.js +0 -48
  599. package/utils/eulerangles.d.ts +0 -22
  600. package/utils/eulerangles.js +0 -133
  601. package/utils/helperfunctions.d.ts +0 -5
  602. package/utils/helperfunctions.js +0 -50
  603. package/utils/localtransform.d.ts +0 -17
  604. package/utils/localtransform.js +0 -50
  605. package/utils/localtransformtree.d.ts +0 -17
  606. package/utils/localtransformtree.js +0 -88
  607. package/utils/misc.d.ts +0 -17
  608. package/utils/misc.js +0 -23
  609. package/utils/positionvector.d.ts +0 -13
  610. package/utils/positionvector.js +0 -79
  611. package/utils/quaternion.d.ts +0 -20
  612. package/utils/quaternion.js +0 -62
  613. package/utils/rotationmatrix.d.ts +0 -23
  614. package/utils/rotationmatrix.js +0 -262
  615. package/utils/transformationmatrix.d.ts +0 -12
  616. package/utils/transformationmatrix.js +0 -123
  617. package/utils/vector3.d.ts +0 -11
  618. package/utils/vector3.js +0 -61
@@ -1,2908 +0,0 @@
1
- // source: slowlane.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.search.v1.DataRow', null, global);
18
- goog.exportSymbol('proto.search.v1.Dataset', null, global);
19
- goog.exportSymbol('proto.search.v1.DeleteProjectMessage', null, global);
20
- goog.exportSymbol('proto.search.v1.Empty', null, global);
21
- goog.exportSymbol('proto.search.v1.Filter', null, global);
22
- goog.exportSymbol('proto.search.v1.QueryDSLMessage', null, global);
23
- goog.exportSymbol('proto.search.v1.QueryMessage', null, global);
24
- goog.exportSymbol('proto.search.v1.QueryResult', null, global);
25
- goog.exportSymbol('proto.search.v1.Row', null, global);
26
- goog.exportSymbol('proto.search.v1.RowSet', null, global);
27
- goog.exportSymbol('proto.search.v1.SearchQueryMessage', null, global);
28
- goog.exportSymbol('proto.search.v1.Status', null, global);
29
- /**
30
- * Generated by JsPbCodeGenerator.
31
- * @param {Array=} opt_data Optional initial data array, typically from a
32
- * server response, or constructed directly in Javascript. The array is used
33
- * in place and becomes part of the constructed object. It is not cloned.
34
- * If no data is provided, the constructed object will be empty, but still
35
- * valid.
36
- * @extends {jspb.Message}
37
- * @constructor
38
- */
39
- proto.search.v1.SearchQueryMessage = function(opt_data) {
40
- jspb.Message.initialize(this, opt_data, 0, -1, proto.search.v1.SearchQueryMessage.repeatedFields_, null);
41
- };
42
- goog.inherits(proto.search.v1.SearchQueryMessage, jspb.Message);
43
- if (goog.DEBUG && !COMPILED) {
44
- /**
45
- * @public
46
- * @override
47
- */
48
- proto.search.v1.SearchQueryMessage.displayName = 'proto.search.v1.SearchQueryMessage';
49
- }
50
- /**
51
- * Generated by JsPbCodeGenerator.
52
- * @param {Array=} opt_data Optional initial data array, typically from a
53
- * server response, or constructed directly in Javascript. The array is used
54
- * in place and becomes part of the constructed object. It is not cloned.
55
- * If no data is provided, the constructed object will be empty, but still
56
- * valid.
57
- * @extends {jspb.Message}
58
- * @constructor
59
- */
60
- proto.search.v1.Filter = function(opt_data) {
61
- jspb.Message.initialize(this, opt_data, 0, -1, proto.search.v1.Filter.repeatedFields_, null);
62
- };
63
- goog.inherits(proto.search.v1.Filter, jspb.Message);
64
- if (goog.DEBUG && !COMPILED) {
65
- /**
66
- * @public
67
- * @override
68
- */
69
- proto.search.v1.Filter.displayName = 'proto.search.v1.Filter';
70
- }
71
- /**
72
- * Generated by JsPbCodeGenerator.
73
- * @param {Array=} opt_data Optional initial data array, typically from a
74
- * server response, or constructed directly in Javascript. The array is used
75
- * in place and becomes part of the constructed object. It is not cloned.
76
- * If no data is provided, the constructed object will be empty, but still
77
- * valid.
78
- * @extends {jspb.Message}
79
- * @constructor
80
- */
81
- proto.search.v1.QueryDSLMessage = function(opt_data) {
82
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
83
- };
84
- goog.inherits(proto.search.v1.QueryDSLMessage, jspb.Message);
85
- if (goog.DEBUG && !COMPILED) {
86
- /**
87
- * @public
88
- * @override
89
- */
90
- proto.search.v1.QueryDSLMessage.displayName = 'proto.search.v1.QueryDSLMessage';
91
- }
92
- /**
93
- * Generated by JsPbCodeGenerator.
94
- * @param {Array=} opt_data Optional initial data array, typically from a
95
- * server response, or constructed directly in Javascript. The array is used
96
- * in place and becomes part of the constructed object. It is not cloned.
97
- * If no data is provided, the constructed object will be empty, but still
98
- * valid.
99
- * @extends {jspb.Message}
100
- * @constructor
101
- */
102
- proto.search.v1.DeleteProjectMessage = function(opt_data) {
103
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
104
- };
105
- goog.inherits(proto.search.v1.DeleteProjectMessage, jspb.Message);
106
- if (goog.DEBUG && !COMPILED) {
107
- /**
108
- * @public
109
- * @override
110
- */
111
- proto.search.v1.DeleteProjectMessage.displayName = 'proto.search.v1.DeleteProjectMessage';
112
- }
113
- /**
114
- * Generated by JsPbCodeGenerator.
115
- * @param {Array=} opt_data Optional initial data array, typically from a
116
- * server response, or constructed directly in Javascript. The array is used
117
- * in place and becomes part of the constructed object. It is not cloned.
118
- * If no data is provided, the constructed object will be empty, but still
119
- * valid.
120
- * @extends {jspb.Message}
121
- * @constructor
122
- */
123
- proto.search.v1.QueryResult = function(opt_data) {
124
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
125
- };
126
- goog.inherits(proto.search.v1.QueryResult, jspb.Message);
127
- if (goog.DEBUG && !COMPILED) {
128
- /**
129
- * @public
130
- * @override
131
- */
132
- proto.search.v1.QueryResult.displayName = 'proto.search.v1.QueryResult';
133
- }
134
- /**
135
- * Generated by JsPbCodeGenerator.
136
- * @param {Array=} opt_data Optional initial data array, typically from a
137
- * server response, or constructed directly in Javascript. The array is used
138
- * in place and becomes part of the constructed object. It is not cloned.
139
- * If no data is provided, the constructed object will be empty, but still
140
- * valid.
141
- * @extends {jspb.Message}
142
- * @constructor
143
- */
144
- proto.search.v1.QueryMessage = function(opt_data) {
145
- jspb.Message.initialize(this, opt_data, 0, -1, proto.search.v1.QueryMessage.repeatedFields_, null);
146
- };
147
- goog.inherits(proto.search.v1.QueryMessage, jspb.Message);
148
- if (goog.DEBUG && !COMPILED) {
149
- /**
150
- * @public
151
- * @override
152
- */
153
- proto.search.v1.QueryMessage.displayName = 'proto.search.v1.QueryMessage';
154
- }
155
- /**
156
- * Generated by JsPbCodeGenerator.
157
- * @param {Array=} opt_data Optional initial data array, typically from a
158
- * server response, or constructed directly in Javascript. The array is used
159
- * in place and becomes part of the constructed object. It is not cloned.
160
- * If no data is provided, the constructed object will be empty, but still
161
- * valid.
162
- * @extends {jspb.Message}
163
- * @constructor
164
- */
165
- proto.search.v1.Row = function(opt_data) {
166
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
167
- };
168
- goog.inherits(proto.search.v1.Row, jspb.Message);
169
- if (goog.DEBUG && !COMPILED) {
170
- /**
171
- * @public
172
- * @override
173
- */
174
- proto.search.v1.Row.displayName = 'proto.search.v1.Row';
175
- }
176
- /**
177
- * Generated by JsPbCodeGenerator.
178
- * @param {Array=} opt_data Optional initial data array, typically from a
179
- * server response, or constructed directly in Javascript. The array is used
180
- * in place and becomes part of the constructed object. It is not cloned.
181
- * If no data is provided, the constructed object will be empty, but still
182
- * valid.
183
- * @extends {jspb.Message}
184
- * @constructor
185
- */
186
- proto.search.v1.RowSet = function(opt_data) {
187
- jspb.Message.initialize(this, opt_data, 0, -1, proto.search.v1.RowSet.repeatedFields_, null);
188
- };
189
- goog.inherits(proto.search.v1.RowSet, jspb.Message);
190
- if (goog.DEBUG && !COMPILED) {
191
- /**
192
- * @public
193
- * @override
194
- */
195
- proto.search.v1.RowSet.displayName = 'proto.search.v1.RowSet';
196
- }
197
- /**
198
- * Generated by JsPbCodeGenerator.
199
- * @param {Array=} opt_data Optional initial data array, typically from a
200
- * server response, or constructed directly in Javascript. The array is used
201
- * in place and becomes part of the constructed object. It is not cloned.
202
- * If no data is provided, the constructed object will be empty, but still
203
- * valid.
204
- * @extends {jspb.Message}
205
- * @constructor
206
- */
207
- proto.search.v1.DataRow = function(opt_data) {
208
- jspb.Message.initialize(this, opt_data, 0, -1, proto.search.v1.DataRow.repeatedFields_, null);
209
- };
210
- goog.inherits(proto.search.v1.DataRow, jspb.Message);
211
- if (goog.DEBUG && !COMPILED) {
212
- /**
213
- * @public
214
- * @override
215
- */
216
- proto.search.v1.DataRow.displayName = 'proto.search.v1.DataRow';
217
- }
218
- /**
219
- * Generated by JsPbCodeGenerator.
220
- * @param {Array=} opt_data Optional initial data array, typically from a
221
- * server response, or constructed directly in Javascript. The array is used
222
- * in place and becomes part of the constructed object. It is not cloned.
223
- * If no data is provided, the constructed object will be empty, but still
224
- * valid.
225
- * @extends {jspb.Message}
226
- * @constructor
227
- */
228
- proto.search.v1.Dataset = function(opt_data) {
229
- jspb.Message.initialize(this, opt_data, 0, -1, proto.search.v1.Dataset.repeatedFields_, null);
230
- };
231
- goog.inherits(proto.search.v1.Dataset, jspb.Message);
232
- if (goog.DEBUG && !COMPILED) {
233
- /**
234
- * @public
235
- * @override
236
- */
237
- proto.search.v1.Dataset.displayName = 'proto.search.v1.Dataset';
238
- }
239
- /**
240
- * Generated by JsPbCodeGenerator.
241
- * @param {Array=} opt_data Optional initial data array, typically from a
242
- * server response, or constructed directly in Javascript. The array is used
243
- * in place and becomes part of the constructed object. It is not cloned.
244
- * If no data is provided, the constructed object will be empty, but still
245
- * valid.
246
- * @extends {jspb.Message}
247
- * @constructor
248
- */
249
- proto.search.v1.Empty = function(opt_data) {
250
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
251
- };
252
- goog.inherits(proto.search.v1.Empty, jspb.Message);
253
- if (goog.DEBUG && !COMPILED) {
254
- /**
255
- * @public
256
- * @override
257
- */
258
- proto.search.v1.Empty.displayName = 'proto.search.v1.Empty';
259
- }
260
- /**
261
- * Generated by JsPbCodeGenerator.
262
- * @param {Array=} opt_data Optional initial data array, typically from a
263
- * server response, or constructed directly in Javascript. The array is used
264
- * in place and becomes part of the constructed object. It is not cloned.
265
- * If no data is provided, the constructed object will be empty, but still
266
- * valid.
267
- * @extends {jspb.Message}
268
- * @constructor
269
- */
270
- proto.search.v1.Status = function(opt_data) {
271
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
272
- };
273
- goog.inherits(proto.search.v1.Status, jspb.Message);
274
- if (goog.DEBUG && !COMPILED) {
275
- /**
276
- * @public
277
- * @override
278
- */
279
- proto.search.v1.Status.displayName = 'proto.search.v1.Status';
280
- }
281
-
282
- /**
283
- * List of repeated fields within this message type.
284
- * @private {!Array<number>}
285
- * @const
286
- */
287
- proto.search.v1.SearchQueryMessage.repeatedFields_ = [1,2,3,4,5];
288
-
289
-
290
-
291
- if (jspb.Message.GENERATE_TO_OBJECT) {
292
- /**
293
- * Creates an object representation of this proto.
294
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
295
- * Optional fields that are not set will be set to undefined.
296
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
297
- * For the list of reserved names please see:
298
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
299
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
300
- * JSPB instance for transitional soy proto support:
301
- * http://goto/soy-param-migration
302
- * @return {!Object}
303
- */
304
- proto.search.v1.SearchQueryMessage.prototype.toObject = function(opt_includeInstance) {
305
- return proto.search.v1.SearchQueryMessage.toObject(opt_includeInstance, this);
306
- };
307
-
308
-
309
- /**
310
- * Static version of the {@see toObject} method.
311
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
312
- * the JSPB instance for transitional soy proto support:
313
- * http://goto/soy-param-migration
314
- * @param {!proto.search.v1.SearchQueryMessage} msg The msg instance to transform.
315
- * @return {!Object}
316
- * @suppress {unusedLocalVariables} f is only used for nested messages
317
- */
318
- proto.search.v1.SearchQueryMessage.toObject = function(includeInstance, msg) {
319
- var f, obj = {
320
- streamidsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
321
- dataidsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f,
322
- callsignsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
323
- groupbyfieldsList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f,
324
- payloadidsList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f,
325
- startdate: jspb.Message.getFieldWithDefault(msg, 6, ""),
326
- enddate: jspb.Message.getFieldWithDefault(msg, 7, ""),
327
- interval: jspb.Message.getFieldWithDefault(msg, 8, ""),
328
- refreshdelay: jspb.Message.getFieldWithDefault(msg, 9, 0)
329
- };
330
-
331
- if (includeInstance) {
332
- obj.$jspbMessageInstance = msg;
333
- }
334
- return obj;
335
- };
336
- }
337
-
338
-
339
- /**
340
- * Deserializes binary data (in protobuf wire format).
341
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
342
- * @return {!proto.search.v1.SearchQueryMessage}
343
- */
344
- proto.search.v1.SearchQueryMessage.deserializeBinary = function(bytes) {
345
- var reader = new jspb.BinaryReader(bytes);
346
- var msg = new proto.search.v1.SearchQueryMessage;
347
- return proto.search.v1.SearchQueryMessage.deserializeBinaryFromReader(msg, reader);
348
- };
349
-
350
-
351
- /**
352
- * Deserializes binary data (in protobuf wire format) from the
353
- * given reader into the given message object.
354
- * @param {!proto.search.v1.SearchQueryMessage} msg The message object to deserialize into.
355
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
356
- * @return {!proto.search.v1.SearchQueryMessage}
357
- */
358
- proto.search.v1.SearchQueryMessage.deserializeBinaryFromReader = function(msg, reader) {
359
- while (reader.nextField()) {
360
- if (reader.isEndGroup()) {
361
- break;
362
- }
363
- var field = reader.getFieldNumber();
364
- switch (field) {
365
- case 1:
366
- var value = /** @type {string} */ (reader.readString());
367
- msg.addStreamids(value);
368
- break;
369
- case 2:
370
- var value = /** @type {string} */ (reader.readString());
371
- msg.addDataids(value);
372
- break;
373
- case 3:
374
- var value = /** @type {string} */ (reader.readString());
375
- msg.addCallsigns(value);
376
- break;
377
- case 4:
378
- var value = /** @type {string} */ (reader.readString());
379
- msg.addGroupbyfields(value);
380
- break;
381
- case 5:
382
- var value = /** @type {string} */ (reader.readString());
383
- msg.addPayloadids(value);
384
- break;
385
- case 6:
386
- var value = /** @type {string} */ (reader.readString());
387
- msg.setStartdate(value);
388
- break;
389
- case 7:
390
- var value = /** @type {string} */ (reader.readString());
391
- msg.setEnddate(value);
392
- break;
393
- case 8:
394
- var value = /** @type {string} */ (reader.readString());
395
- msg.setInterval(value);
396
- break;
397
- case 9:
398
- var value = /** @type {number} */ (reader.readUint64());
399
- msg.setRefreshdelay(value);
400
- break;
401
- default:
402
- reader.skipField();
403
- break;
404
- }
405
- }
406
- return msg;
407
- };
408
-
409
-
410
- /**
411
- * Serializes the message to binary data (in protobuf wire format).
412
- * @return {!Uint8Array}
413
- */
414
- proto.search.v1.SearchQueryMessage.prototype.serializeBinary = function() {
415
- var writer = new jspb.BinaryWriter();
416
- proto.search.v1.SearchQueryMessage.serializeBinaryToWriter(this, writer);
417
- return writer.getResultBuffer();
418
- };
419
-
420
-
421
- /**
422
- * Serializes the given message to binary data (in protobuf wire
423
- * format), writing to the given BinaryWriter.
424
- * @param {!proto.search.v1.SearchQueryMessage} message
425
- * @param {!jspb.BinaryWriter} writer
426
- * @suppress {unusedLocalVariables} f is only used for nested messages
427
- */
428
- proto.search.v1.SearchQueryMessage.serializeBinaryToWriter = function(message, writer) {
429
- var f = undefined;
430
- f = message.getStreamidsList();
431
- if (f.length > 0) {
432
- writer.writeRepeatedString(
433
- 1,
434
- f
435
- );
436
- }
437
- f = message.getDataidsList();
438
- if (f.length > 0) {
439
- writer.writeRepeatedString(
440
- 2,
441
- f
442
- );
443
- }
444
- f = message.getCallsignsList();
445
- if (f.length > 0) {
446
- writer.writeRepeatedString(
447
- 3,
448
- f
449
- );
450
- }
451
- f = message.getGroupbyfieldsList();
452
- if (f.length > 0) {
453
- writer.writeRepeatedString(
454
- 4,
455
- f
456
- );
457
- }
458
- f = message.getPayloadidsList();
459
- if (f.length > 0) {
460
- writer.writeRepeatedString(
461
- 5,
462
- f
463
- );
464
- }
465
- f = message.getStartdate();
466
- if (f.length > 0) {
467
- writer.writeString(
468
- 6,
469
- f
470
- );
471
- }
472
- f = message.getEnddate();
473
- if (f.length > 0) {
474
- writer.writeString(
475
- 7,
476
- f
477
- );
478
- }
479
- f = message.getInterval();
480
- if (f.length > 0) {
481
- writer.writeString(
482
- 8,
483
- f
484
- );
485
- }
486
- f = message.getRefreshdelay();
487
- if (f !== 0) {
488
- writer.writeUint64(
489
- 9,
490
- f
491
- );
492
- }
493
- };
494
-
495
-
496
- /**
497
- * repeated string streamIds = 1;
498
- * @return {!Array<string>}
499
- */
500
- proto.search.v1.SearchQueryMessage.prototype.getStreamidsList = function() {
501
- return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
502
- };
503
-
504
-
505
- /**
506
- * @param {!Array<string>} value
507
- * @return {!proto.search.v1.SearchQueryMessage} returns this
508
- */
509
- proto.search.v1.SearchQueryMessage.prototype.setStreamidsList = function(value) {
510
- return jspb.Message.setField(this, 1, value || []);
511
- };
512
-
513
-
514
- /**
515
- * @param {string} value
516
- * @param {number=} opt_index
517
- * @return {!proto.search.v1.SearchQueryMessage} returns this
518
- */
519
- proto.search.v1.SearchQueryMessage.prototype.addStreamids = function(value, opt_index) {
520
- return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
521
- };
522
-
523
-
524
- /**
525
- * Clears the list making it empty but non-null.
526
- * @return {!proto.search.v1.SearchQueryMessage} returns this
527
- */
528
- proto.search.v1.SearchQueryMessage.prototype.clearStreamidsList = function() {
529
- return this.setStreamidsList([]);
530
- };
531
-
532
-
533
- /**
534
- * repeated string dataIds = 2;
535
- * @return {!Array<string>}
536
- */
537
- proto.search.v1.SearchQueryMessage.prototype.getDataidsList = function() {
538
- return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
539
- };
540
-
541
-
542
- /**
543
- * @param {!Array<string>} value
544
- * @return {!proto.search.v1.SearchQueryMessage} returns this
545
- */
546
- proto.search.v1.SearchQueryMessage.prototype.setDataidsList = function(value) {
547
- return jspb.Message.setField(this, 2, value || []);
548
- };
549
-
550
-
551
- /**
552
- * @param {string} value
553
- * @param {number=} opt_index
554
- * @return {!proto.search.v1.SearchQueryMessage} returns this
555
- */
556
- proto.search.v1.SearchQueryMessage.prototype.addDataids = function(value, opt_index) {
557
- return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
558
- };
559
-
560
-
561
- /**
562
- * Clears the list making it empty but non-null.
563
- * @return {!proto.search.v1.SearchQueryMessage} returns this
564
- */
565
- proto.search.v1.SearchQueryMessage.prototype.clearDataidsList = function() {
566
- return this.setDataidsList([]);
567
- };
568
-
569
-
570
- /**
571
- * repeated string callsigns = 3;
572
- * @return {!Array<string>}
573
- */
574
- proto.search.v1.SearchQueryMessage.prototype.getCallsignsList = function() {
575
- return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
576
- };
577
-
578
-
579
- /**
580
- * @param {!Array<string>} value
581
- * @return {!proto.search.v1.SearchQueryMessage} returns this
582
- */
583
- proto.search.v1.SearchQueryMessage.prototype.setCallsignsList = function(value) {
584
- return jspb.Message.setField(this, 3, value || []);
585
- };
586
-
587
-
588
- /**
589
- * @param {string} value
590
- * @param {number=} opt_index
591
- * @return {!proto.search.v1.SearchQueryMessage} returns this
592
- */
593
- proto.search.v1.SearchQueryMessage.prototype.addCallsigns = function(value, opt_index) {
594
- return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
595
- };
596
-
597
-
598
- /**
599
- * Clears the list making it empty but non-null.
600
- * @return {!proto.search.v1.SearchQueryMessage} returns this
601
- */
602
- proto.search.v1.SearchQueryMessage.prototype.clearCallsignsList = function() {
603
- return this.setCallsignsList([]);
604
- };
605
-
606
-
607
- /**
608
- * repeated string groupByFields = 4;
609
- * @return {!Array<string>}
610
- */
611
- proto.search.v1.SearchQueryMessage.prototype.getGroupbyfieldsList = function() {
612
- return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 4));
613
- };
614
-
615
-
616
- /**
617
- * @param {!Array<string>} value
618
- * @return {!proto.search.v1.SearchQueryMessage} returns this
619
- */
620
- proto.search.v1.SearchQueryMessage.prototype.setGroupbyfieldsList = function(value) {
621
- return jspb.Message.setField(this, 4, value || []);
622
- };
623
-
624
-
625
- /**
626
- * @param {string} value
627
- * @param {number=} opt_index
628
- * @return {!proto.search.v1.SearchQueryMessage} returns this
629
- */
630
- proto.search.v1.SearchQueryMessage.prototype.addGroupbyfields = function(value, opt_index) {
631
- return jspb.Message.addToRepeatedField(this, 4, value, opt_index);
632
- };
633
-
634
-
635
- /**
636
- * Clears the list making it empty but non-null.
637
- * @return {!proto.search.v1.SearchQueryMessage} returns this
638
- */
639
- proto.search.v1.SearchQueryMessage.prototype.clearGroupbyfieldsList = function() {
640
- return this.setGroupbyfieldsList([]);
641
- };
642
-
643
-
644
- /**
645
- * repeated string payloadIds = 5;
646
- * @return {!Array<string>}
647
- */
648
- proto.search.v1.SearchQueryMessage.prototype.getPayloadidsList = function() {
649
- return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 5));
650
- };
651
-
652
-
653
- /**
654
- * @param {!Array<string>} value
655
- * @return {!proto.search.v1.SearchQueryMessage} returns this
656
- */
657
- proto.search.v1.SearchQueryMessage.prototype.setPayloadidsList = function(value) {
658
- return jspb.Message.setField(this, 5, value || []);
659
- };
660
-
661
-
662
- /**
663
- * @param {string} value
664
- * @param {number=} opt_index
665
- * @return {!proto.search.v1.SearchQueryMessage} returns this
666
- */
667
- proto.search.v1.SearchQueryMessage.prototype.addPayloadids = function(value, opt_index) {
668
- return jspb.Message.addToRepeatedField(this, 5, value, opt_index);
669
- };
670
-
671
-
672
- /**
673
- * Clears the list making it empty but non-null.
674
- * @return {!proto.search.v1.SearchQueryMessage} returns this
675
- */
676
- proto.search.v1.SearchQueryMessage.prototype.clearPayloadidsList = function() {
677
- return this.setPayloadidsList([]);
678
- };
679
-
680
-
681
- /**
682
- * optional string startDate = 6;
683
- * @return {string}
684
- */
685
- proto.search.v1.SearchQueryMessage.prototype.getStartdate = function() {
686
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
687
- };
688
-
689
-
690
- /**
691
- * @param {string} value
692
- * @return {!proto.search.v1.SearchQueryMessage} returns this
693
- */
694
- proto.search.v1.SearchQueryMessage.prototype.setStartdate = function(value) {
695
- return jspb.Message.setProto3StringField(this, 6, value);
696
- };
697
-
698
-
699
- /**
700
- * optional string endDate = 7;
701
- * @return {string}
702
- */
703
- proto.search.v1.SearchQueryMessage.prototype.getEnddate = function() {
704
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
705
- };
706
-
707
-
708
- /**
709
- * @param {string} value
710
- * @return {!proto.search.v1.SearchQueryMessage} returns this
711
- */
712
- proto.search.v1.SearchQueryMessage.prototype.setEnddate = function(value) {
713
- return jspb.Message.setProto3StringField(this, 7, value);
714
- };
715
-
716
-
717
- /**
718
- * optional string interval = 8;
719
- * @return {string}
720
- */
721
- proto.search.v1.SearchQueryMessage.prototype.getInterval = function() {
722
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
723
- };
724
-
725
-
726
- /**
727
- * @param {string} value
728
- * @return {!proto.search.v1.SearchQueryMessage} returns this
729
- */
730
- proto.search.v1.SearchQueryMessage.prototype.setInterval = function(value) {
731
- return jspb.Message.setProto3StringField(this, 8, value);
732
- };
733
-
734
-
735
- /**
736
- * optional uint64 refreshDelay = 9;
737
- * @return {number}
738
- */
739
- proto.search.v1.SearchQueryMessage.prototype.getRefreshdelay = function() {
740
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0));
741
- };
742
-
743
-
744
- /**
745
- * @param {number} value
746
- * @return {!proto.search.v1.SearchQueryMessage} returns this
747
- */
748
- proto.search.v1.SearchQueryMessage.prototype.setRefreshdelay = function(value) {
749
- return jspb.Message.setProto3IntField(this, 9, value);
750
- };
751
-
752
-
753
-
754
- /**
755
- * List of repeated fields within this message type.
756
- * @private {!Array<number>}
757
- * @const
758
- */
759
- proto.search.v1.Filter.repeatedFields_ = [2];
760
-
761
-
762
-
763
- if (jspb.Message.GENERATE_TO_OBJECT) {
764
- /**
765
- * Creates an object representation of this proto.
766
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
767
- * Optional fields that are not set will be set to undefined.
768
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
769
- * For the list of reserved names please see:
770
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
771
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
772
- * JSPB instance for transitional soy proto support:
773
- * http://goto/soy-param-migration
774
- * @return {!Object}
775
- */
776
- proto.search.v1.Filter.prototype.toObject = function(opt_includeInstance) {
777
- return proto.search.v1.Filter.toObject(opt_includeInstance, this);
778
- };
779
-
780
-
781
- /**
782
- * Static version of the {@see toObject} method.
783
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
784
- * the JSPB instance for transitional soy proto support:
785
- * http://goto/soy-param-migration
786
- * @param {!proto.search.v1.Filter} msg The msg instance to transform.
787
- * @return {!Object}
788
- * @suppress {unusedLocalVariables} f is only used for nested messages
789
- */
790
- proto.search.v1.Filter.toObject = function(includeInstance, msg) {
791
- var f, obj = {
792
- keyword: jspb.Message.getFieldWithDefault(msg, 1, ""),
793
- idsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
794
- };
795
-
796
- if (includeInstance) {
797
- obj.$jspbMessageInstance = msg;
798
- }
799
- return obj;
800
- };
801
- }
802
-
803
-
804
- /**
805
- * Deserializes binary data (in protobuf wire format).
806
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
807
- * @return {!proto.search.v1.Filter}
808
- */
809
- proto.search.v1.Filter.deserializeBinary = function(bytes) {
810
- var reader = new jspb.BinaryReader(bytes);
811
- var msg = new proto.search.v1.Filter;
812
- return proto.search.v1.Filter.deserializeBinaryFromReader(msg, reader);
813
- };
814
-
815
-
816
- /**
817
- * Deserializes binary data (in protobuf wire format) from the
818
- * given reader into the given message object.
819
- * @param {!proto.search.v1.Filter} msg The message object to deserialize into.
820
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
821
- * @return {!proto.search.v1.Filter}
822
- */
823
- proto.search.v1.Filter.deserializeBinaryFromReader = function(msg, reader) {
824
- while (reader.nextField()) {
825
- if (reader.isEndGroup()) {
826
- break;
827
- }
828
- var field = reader.getFieldNumber();
829
- switch (field) {
830
- case 1:
831
- var value = /** @type {string} */ (reader.readString());
832
- msg.setKeyword(value);
833
- break;
834
- case 2:
835
- var value = /** @type {string} */ (reader.readString());
836
- msg.addIds(value);
837
- break;
838
- default:
839
- reader.skipField();
840
- break;
841
- }
842
- }
843
- return msg;
844
- };
845
-
846
-
847
- /**
848
- * Serializes the message to binary data (in protobuf wire format).
849
- * @return {!Uint8Array}
850
- */
851
- proto.search.v1.Filter.prototype.serializeBinary = function() {
852
- var writer = new jspb.BinaryWriter();
853
- proto.search.v1.Filter.serializeBinaryToWriter(this, writer);
854
- return writer.getResultBuffer();
855
- };
856
-
857
-
858
- /**
859
- * Serializes the given message to binary data (in protobuf wire
860
- * format), writing to the given BinaryWriter.
861
- * @param {!proto.search.v1.Filter} message
862
- * @param {!jspb.BinaryWriter} writer
863
- * @suppress {unusedLocalVariables} f is only used for nested messages
864
- */
865
- proto.search.v1.Filter.serializeBinaryToWriter = function(message, writer) {
866
- var f = undefined;
867
- f = message.getKeyword();
868
- if (f.length > 0) {
869
- writer.writeString(
870
- 1,
871
- f
872
- );
873
- }
874
- f = message.getIdsList();
875
- if (f.length > 0) {
876
- writer.writeRepeatedString(
877
- 2,
878
- f
879
- );
880
- }
881
- };
882
-
883
-
884
- /**
885
- * optional string keyword = 1;
886
- * @return {string}
887
- */
888
- proto.search.v1.Filter.prototype.getKeyword = function() {
889
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
890
- };
891
-
892
-
893
- /**
894
- * @param {string} value
895
- * @return {!proto.search.v1.Filter} returns this
896
- */
897
- proto.search.v1.Filter.prototype.setKeyword = function(value) {
898
- return jspb.Message.setProto3StringField(this, 1, value);
899
- };
900
-
901
-
902
- /**
903
- * repeated string ids = 2;
904
- * @return {!Array<string>}
905
- */
906
- proto.search.v1.Filter.prototype.getIdsList = function() {
907
- return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
908
- };
909
-
910
-
911
- /**
912
- * @param {!Array<string>} value
913
- * @return {!proto.search.v1.Filter} returns this
914
- */
915
- proto.search.v1.Filter.prototype.setIdsList = function(value) {
916
- return jspb.Message.setField(this, 2, value || []);
917
- };
918
-
919
-
920
- /**
921
- * @param {string} value
922
- * @param {number=} opt_index
923
- * @return {!proto.search.v1.Filter} returns this
924
- */
925
- proto.search.v1.Filter.prototype.addIds = function(value, opt_index) {
926
- return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
927
- };
928
-
929
-
930
- /**
931
- * Clears the list making it empty but non-null.
932
- * @return {!proto.search.v1.Filter} returns this
933
- */
934
- proto.search.v1.Filter.prototype.clearIdsList = function() {
935
- return this.setIdsList([]);
936
- };
937
-
938
-
939
-
940
-
941
-
942
- if (jspb.Message.GENERATE_TO_OBJECT) {
943
- /**
944
- * Creates an object representation of this proto.
945
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
946
- * Optional fields that are not set will be set to undefined.
947
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
948
- * For the list of reserved names please see:
949
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
950
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
951
- * JSPB instance for transitional soy proto support:
952
- * http://goto/soy-param-migration
953
- * @return {!Object}
954
- */
955
- proto.search.v1.QueryDSLMessage.prototype.toObject = function(opt_includeInstance) {
956
- return proto.search.v1.QueryDSLMessage.toObject(opt_includeInstance, this);
957
- };
958
-
959
-
960
- /**
961
- * Static version of the {@see toObject} method.
962
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
963
- * the JSPB instance for transitional soy proto support:
964
- * http://goto/soy-param-migration
965
- * @param {!proto.search.v1.QueryDSLMessage} msg The msg instance to transform.
966
- * @return {!Object}
967
- * @suppress {unusedLocalVariables} f is only used for nested messages
968
- */
969
- proto.search.v1.QueryDSLMessage.toObject = function(includeInstance, msg) {
970
- var f, obj = {
971
- projectid: jspb.Message.getFieldWithDefault(msg, 1, ""),
972
- dslquery: jspb.Message.getFieldWithDefault(msg, 2, "")
973
- };
974
-
975
- if (includeInstance) {
976
- obj.$jspbMessageInstance = msg;
977
- }
978
- return obj;
979
- };
980
- }
981
-
982
-
983
- /**
984
- * Deserializes binary data (in protobuf wire format).
985
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
986
- * @return {!proto.search.v1.QueryDSLMessage}
987
- */
988
- proto.search.v1.QueryDSLMessage.deserializeBinary = function(bytes) {
989
- var reader = new jspb.BinaryReader(bytes);
990
- var msg = new proto.search.v1.QueryDSLMessage;
991
- return proto.search.v1.QueryDSLMessage.deserializeBinaryFromReader(msg, reader);
992
- };
993
-
994
-
995
- /**
996
- * Deserializes binary data (in protobuf wire format) from the
997
- * given reader into the given message object.
998
- * @param {!proto.search.v1.QueryDSLMessage} msg The message object to deserialize into.
999
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1000
- * @return {!proto.search.v1.QueryDSLMessage}
1001
- */
1002
- proto.search.v1.QueryDSLMessage.deserializeBinaryFromReader = function(msg, reader) {
1003
- while (reader.nextField()) {
1004
- if (reader.isEndGroup()) {
1005
- break;
1006
- }
1007
- var field = reader.getFieldNumber();
1008
- switch (field) {
1009
- case 1:
1010
- var value = /** @type {string} */ (reader.readString());
1011
- msg.setProjectid(value);
1012
- break;
1013
- case 2:
1014
- var value = /** @type {string} */ (reader.readString());
1015
- msg.setDslquery(value);
1016
- break;
1017
- default:
1018
- reader.skipField();
1019
- break;
1020
- }
1021
- }
1022
- return msg;
1023
- };
1024
-
1025
-
1026
- /**
1027
- * Serializes the message to binary data (in protobuf wire format).
1028
- * @return {!Uint8Array}
1029
- */
1030
- proto.search.v1.QueryDSLMessage.prototype.serializeBinary = function() {
1031
- var writer = new jspb.BinaryWriter();
1032
- proto.search.v1.QueryDSLMessage.serializeBinaryToWriter(this, writer);
1033
- return writer.getResultBuffer();
1034
- };
1035
-
1036
-
1037
- /**
1038
- * Serializes the given message to binary data (in protobuf wire
1039
- * format), writing to the given BinaryWriter.
1040
- * @param {!proto.search.v1.QueryDSLMessage} message
1041
- * @param {!jspb.BinaryWriter} writer
1042
- * @suppress {unusedLocalVariables} f is only used for nested messages
1043
- */
1044
- proto.search.v1.QueryDSLMessage.serializeBinaryToWriter = function(message, writer) {
1045
- var f = undefined;
1046
- f = message.getProjectid();
1047
- if (f.length > 0) {
1048
- writer.writeString(
1049
- 1,
1050
- f
1051
- );
1052
- }
1053
- f = message.getDslquery();
1054
- if (f.length > 0) {
1055
- writer.writeString(
1056
- 2,
1057
- f
1058
- );
1059
- }
1060
- };
1061
-
1062
-
1063
- /**
1064
- * optional string projectId = 1;
1065
- * @return {string}
1066
- */
1067
- proto.search.v1.QueryDSLMessage.prototype.getProjectid = function() {
1068
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1069
- };
1070
-
1071
-
1072
- /**
1073
- * @param {string} value
1074
- * @return {!proto.search.v1.QueryDSLMessage} returns this
1075
- */
1076
- proto.search.v1.QueryDSLMessage.prototype.setProjectid = function(value) {
1077
- return jspb.Message.setProto3StringField(this, 1, value);
1078
- };
1079
-
1080
-
1081
- /**
1082
- * optional string DSLQuery = 2;
1083
- * @return {string}
1084
- */
1085
- proto.search.v1.QueryDSLMessage.prototype.getDslquery = function() {
1086
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1087
- };
1088
-
1089
-
1090
- /**
1091
- * @param {string} value
1092
- * @return {!proto.search.v1.QueryDSLMessage} returns this
1093
- */
1094
- proto.search.v1.QueryDSLMessage.prototype.setDslquery = function(value) {
1095
- return jspb.Message.setProto3StringField(this, 2, value);
1096
- };
1097
-
1098
-
1099
-
1100
-
1101
-
1102
- if (jspb.Message.GENERATE_TO_OBJECT) {
1103
- /**
1104
- * Creates an object representation of this proto.
1105
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1106
- * Optional fields that are not set will be set to undefined.
1107
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1108
- * For the list of reserved names please see:
1109
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1110
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1111
- * JSPB instance for transitional soy proto support:
1112
- * http://goto/soy-param-migration
1113
- * @return {!Object}
1114
- */
1115
- proto.search.v1.DeleteProjectMessage.prototype.toObject = function(opt_includeInstance) {
1116
- return proto.search.v1.DeleteProjectMessage.toObject(opt_includeInstance, this);
1117
- };
1118
-
1119
-
1120
- /**
1121
- * Static version of the {@see toObject} method.
1122
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1123
- * the JSPB instance for transitional soy proto support:
1124
- * http://goto/soy-param-migration
1125
- * @param {!proto.search.v1.DeleteProjectMessage} msg The msg instance to transform.
1126
- * @return {!Object}
1127
- * @suppress {unusedLocalVariables} f is only used for nested messages
1128
- */
1129
- proto.search.v1.DeleteProjectMessage.toObject = function(includeInstance, msg) {
1130
- var f, obj = {
1131
- projectid: jspb.Message.getFieldWithDefault(msg, 1, "")
1132
- };
1133
-
1134
- if (includeInstance) {
1135
- obj.$jspbMessageInstance = msg;
1136
- }
1137
- return obj;
1138
- };
1139
- }
1140
-
1141
-
1142
- /**
1143
- * Deserializes binary data (in protobuf wire format).
1144
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1145
- * @return {!proto.search.v1.DeleteProjectMessage}
1146
- */
1147
- proto.search.v1.DeleteProjectMessage.deserializeBinary = function(bytes) {
1148
- var reader = new jspb.BinaryReader(bytes);
1149
- var msg = new proto.search.v1.DeleteProjectMessage;
1150
- return proto.search.v1.DeleteProjectMessage.deserializeBinaryFromReader(msg, reader);
1151
- };
1152
-
1153
-
1154
- /**
1155
- * Deserializes binary data (in protobuf wire format) from the
1156
- * given reader into the given message object.
1157
- * @param {!proto.search.v1.DeleteProjectMessage} msg The message object to deserialize into.
1158
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1159
- * @return {!proto.search.v1.DeleteProjectMessage}
1160
- */
1161
- proto.search.v1.DeleteProjectMessage.deserializeBinaryFromReader = function(msg, reader) {
1162
- while (reader.nextField()) {
1163
- if (reader.isEndGroup()) {
1164
- break;
1165
- }
1166
- var field = reader.getFieldNumber();
1167
- switch (field) {
1168
- case 1:
1169
- var value = /** @type {string} */ (reader.readString());
1170
- msg.setProjectid(value);
1171
- break;
1172
- default:
1173
- reader.skipField();
1174
- break;
1175
- }
1176
- }
1177
- return msg;
1178
- };
1179
-
1180
-
1181
- /**
1182
- * Serializes the message to binary data (in protobuf wire format).
1183
- * @return {!Uint8Array}
1184
- */
1185
- proto.search.v1.DeleteProjectMessage.prototype.serializeBinary = function() {
1186
- var writer = new jspb.BinaryWriter();
1187
- proto.search.v1.DeleteProjectMessage.serializeBinaryToWriter(this, writer);
1188
- return writer.getResultBuffer();
1189
- };
1190
-
1191
-
1192
- /**
1193
- * Serializes the given message to binary data (in protobuf wire
1194
- * format), writing to the given BinaryWriter.
1195
- * @param {!proto.search.v1.DeleteProjectMessage} message
1196
- * @param {!jspb.BinaryWriter} writer
1197
- * @suppress {unusedLocalVariables} f is only used for nested messages
1198
- */
1199
- proto.search.v1.DeleteProjectMessage.serializeBinaryToWriter = function(message, writer) {
1200
- var f = undefined;
1201
- f = message.getProjectid();
1202
- if (f.length > 0) {
1203
- writer.writeString(
1204
- 1,
1205
- f
1206
- );
1207
- }
1208
- };
1209
-
1210
-
1211
- /**
1212
- * optional string projectId = 1;
1213
- * @return {string}
1214
- */
1215
- proto.search.v1.DeleteProjectMessage.prototype.getProjectid = function() {
1216
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1217
- };
1218
-
1219
-
1220
- /**
1221
- * @param {string} value
1222
- * @return {!proto.search.v1.DeleteProjectMessage} returns this
1223
- */
1224
- proto.search.v1.DeleteProjectMessage.prototype.setProjectid = function(value) {
1225
- return jspb.Message.setProto3StringField(this, 1, value);
1226
- };
1227
-
1228
-
1229
-
1230
-
1231
-
1232
- if (jspb.Message.GENERATE_TO_OBJECT) {
1233
- /**
1234
- * Creates an object representation of this proto.
1235
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1236
- * Optional fields that are not set will be set to undefined.
1237
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1238
- * For the list of reserved names please see:
1239
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1240
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1241
- * JSPB instance for transitional soy proto support:
1242
- * http://goto/soy-param-migration
1243
- * @return {!Object}
1244
- */
1245
- proto.search.v1.QueryResult.prototype.toObject = function(opt_includeInstance) {
1246
- return proto.search.v1.QueryResult.toObject(opt_includeInstance, this);
1247
- };
1248
-
1249
-
1250
- /**
1251
- * Static version of the {@see toObject} method.
1252
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1253
- * the JSPB instance for transitional soy proto support:
1254
- * http://goto/soy-param-migration
1255
- * @param {!proto.search.v1.QueryResult} msg The msg instance to transform.
1256
- * @return {!Object}
1257
- * @suppress {unusedLocalVariables} f is only used for nested messages
1258
- */
1259
- proto.search.v1.QueryResult.toObject = function(includeInstance, msg) {
1260
- var f, obj = {
1261
- result: jspb.Message.getFieldWithDefault(msg, 1, "")
1262
- };
1263
-
1264
- if (includeInstance) {
1265
- obj.$jspbMessageInstance = msg;
1266
- }
1267
- return obj;
1268
- };
1269
- }
1270
-
1271
-
1272
- /**
1273
- * Deserializes binary data (in protobuf wire format).
1274
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1275
- * @return {!proto.search.v1.QueryResult}
1276
- */
1277
- proto.search.v1.QueryResult.deserializeBinary = function(bytes) {
1278
- var reader = new jspb.BinaryReader(bytes);
1279
- var msg = new proto.search.v1.QueryResult;
1280
- return proto.search.v1.QueryResult.deserializeBinaryFromReader(msg, reader);
1281
- };
1282
-
1283
-
1284
- /**
1285
- * Deserializes binary data (in protobuf wire format) from the
1286
- * given reader into the given message object.
1287
- * @param {!proto.search.v1.QueryResult} msg The message object to deserialize into.
1288
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1289
- * @return {!proto.search.v1.QueryResult}
1290
- */
1291
- proto.search.v1.QueryResult.deserializeBinaryFromReader = function(msg, reader) {
1292
- while (reader.nextField()) {
1293
- if (reader.isEndGroup()) {
1294
- break;
1295
- }
1296
- var field = reader.getFieldNumber();
1297
- switch (field) {
1298
- case 1:
1299
- var value = /** @type {string} */ (reader.readString());
1300
- msg.setResult(value);
1301
- break;
1302
- default:
1303
- reader.skipField();
1304
- break;
1305
- }
1306
- }
1307
- return msg;
1308
- };
1309
-
1310
-
1311
- /**
1312
- * Serializes the message to binary data (in protobuf wire format).
1313
- * @return {!Uint8Array}
1314
- */
1315
- proto.search.v1.QueryResult.prototype.serializeBinary = function() {
1316
- var writer = new jspb.BinaryWriter();
1317
- proto.search.v1.QueryResult.serializeBinaryToWriter(this, writer);
1318
- return writer.getResultBuffer();
1319
- };
1320
-
1321
-
1322
- /**
1323
- * Serializes the given message to binary data (in protobuf wire
1324
- * format), writing to the given BinaryWriter.
1325
- * @param {!proto.search.v1.QueryResult} message
1326
- * @param {!jspb.BinaryWriter} writer
1327
- * @suppress {unusedLocalVariables} f is only used for nested messages
1328
- */
1329
- proto.search.v1.QueryResult.serializeBinaryToWriter = function(message, writer) {
1330
- var f = undefined;
1331
- f = message.getResult();
1332
- if (f.length > 0) {
1333
- writer.writeString(
1334
- 1,
1335
- f
1336
- );
1337
- }
1338
- };
1339
-
1340
-
1341
- /**
1342
- * optional string result = 1;
1343
- * @return {string}
1344
- */
1345
- proto.search.v1.QueryResult.prototype.getResult = function() {
1346
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1347
- };
1348
-
1349
-
1350
- /**
1351
- * @param {string} value
1352
- * @return {!proto.search.v1.QueryResult} returns this
1353
- */
1354
- proto.search.v1.QueryResult.prototype.setResult = function(value) {
1355
- return jspb.Message.setProto3StringField(this, 1, value);
1356
- };
1357
-
1358
-
1359
-
1360
- /**
1361
- * List of repeated fields within this message type.
1362
- * @private {!Array<number>}
1363
- * @const
1364
- */
1365
- proto.search.v1.QueryMessage.repeatedFields_ = [1,2,3];
1366
-
1367
-
1368
-
1369
- if (jspb.Message.GENERATE_TO_OBJECT) {
1370
- /**
1371
- * Creates an object representation of this proto.
1372
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1373
- * Optional fields that are not set will be set to undefined.
1374
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1375
- * For the list of reserved names please see:
1376
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1377
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1378
- * JSPB instance for transitional soy proto support:
1379
- * http://goto/soy-param-migration
1380
- * @return {!Object}
1381
- */
1382
- proto.search.v1.QueryMessage.prototype.toObject = function(opt_includeInstance) {
1383
- return proto.search.v1.QueryMessage.toObject(opt_includeInstance, this);
1384
- };
1385
-
1386
-
1387
- /**
1388
- * Static version of the {@see toObject} method.
1389
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1390
- * the JSPB instance for transitional soy proto support:
1391
- * http://goto/soy-param-migration
1392
- * @param {!proto.search.v1.QueryMessage} msg The msg instance to transform.
1393
- * @return {!Object}
1394
- * @suppress {unusedLocalVariables} f is only used for nested messages
1395
- */
1396
- proto.search.v1.QueryMessage.toObject = function(includeInstance, msg) {
1397
- var f, obj = {
1398
- filtersList: jspb.Message.toObjectList(msg.getFiltersList(),
1399
- proto.search.v1.Filter.toObject, includeInstance),
1400
- groupbyfieldsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f,
1401
- payloadidsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
1402
- startdate: jspb.Message.getFieldWithDefault(msg, 4, ""),
1403
- enddate: jspb.Message.getFieldWithDefault(msg, 5, ""),
1404
- interval: jspb.Message.getFieldWithDefault(msg, 6, ""),
1405
- refreshdelay: jspb.Message.getFieldWithDefault(msg, 7, 0),
1406
- datefield: jspb.Message.getFieldWithDefault(msg, 8, ""),
1407
- projectid: jspb.Message.getFieldWithDefault(msg, 9, ""),
1408
- disabledatehistogram: jspb.Message.getFieldWithDefault(msg, 10, 0)
1409
- };
1410
-
1411
- if (includeInstance) {
1412
- obj.$jspbMessageInstance = msg;
1413
- }
1414
- return obj;
1415
- };
1416
- }
1417
-
1418
-
1419
- /**
1420
- * Deserializes binary data (in protobuf wire format).
1421
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1422
- * @return {!proto.search.v1.QueryMessage}
1423
- */
1424
- proto.search.v1.QueryMessage.deserializeBinary = function(bytes) {
1425
- var reader = new jspb.BinaryReader(bytes);
1426
- var msg = new proto.search.v1.QueryMessage;
1427
- return proto.search.v1.QueryMessage.deserializeBinaryFromReader(msg, reader);
1428
- };
1429
-
1430
-
1431
- /**
1432
- * Deserializes binary data (in protobuf wire format) from the
1433
- * given reader into the given message object.
1434
- * @param {!proto.search.v1.QueryMessage} msg The message object to deserialize into.
1435
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1436
- * @return {!proto.search.v1.QueryMessage}
1437
- */
1438
- proto.search.v1.QueryMessage.deserializeBinaryFromReader = function(msg, reader) {
1439
- while (reader.nextField()) {
1440
- if (reader.isEndGroup()) {
1441
- break;
1442
- }
1443
- var field = reader.getFieldNumber();
1444
- switch (field) {
1445
- case 1:
1446
- var value = new proto.search.v1.Filter;
1447
- reader.readMessage(value,proto.search.v1.Filter.deserializeBinaryFromReader);
1448
- msg.addFilters(value);
1449
- break;
1450
- case 2:
1451
- var value = /** @type {string} */ (reader.readString());
1452
- msg.addGroupbyfields(value);
1453
- break;
1454
- case 3:
1455
- var value = /** @type {string} */ (reader.readString());
1456
- msg.addPayloadids(value);
1457
- break;
1458
- case 4:
1459
- var value = /** @type {string} */ (reader.readString());
1460
- msg.setStartdate(value);
1461
- break;
1462
- case 5:
1463
- var value = /** @type {string} */ (reader.readString());
1464
- msg.setEnddate(value);
1465
- break;
1466
- case 6:
1467
- var value = /** @type {string} */ (reader.readString());
1468
- msg.setInterval(value);
1469
- break;
1470
- case 7:
1471
- var value = /** @type {number} */ (reader.readUint64());
1472
- msg.setRefreshdelay(value);
1473
- break;
1474
- case 8:
1475
- var value = /** @type {string} */ (reader.readString());
1476
- msg.setDatefield(value);
1477
- break;
1478
- case 9:
1479
- var value = /** @type {string} */ (reader.readString());
1480
- msg.setProjectid(value);
1481
- break;
1482
- case 10:
1483
- var value = /** @type {number} */ (reader.readUint64());
1484
- msg.setDisabledatehistogram(value);
1485
- break;
1486
- default:
1487
- reader.skipField();
1488
- break;
1489
- }
1490
- }
1491
- return msg;
1492
- };
1493
-
1494
-
1495
- /**
1496
- * Serializes the message to binary data (in protobuf wire format).
1497
- * @return {!Uint8Array}
1498
- */
1499
- proto.search.v1.QueryMessage.prototype.serializeBinary = function() {
1500
- var writer = new jspb.BinaryWriter();
1501
- proto.search.v1.QueryMessage.serializeBinaryToWriter(this, writer);
1502
- return writer.getResultBuffer();
1503
- };
1504
-
1505
-
1506
- /**
1507
- * Serializes the given message to binary data (in protobuf wire
1508
- * format), writing to the given BinaryWriter.
1509
- * @param {!proto.search.v1.QueryMessage} message
1510
- * @param {!jspb.BinaryWriter} writer
1511
- * @suppress {unusedLocalVariables} f is only used for nested messages
1512
- */
1513
- proto.search.v1.QueryMessage.serializeBinaryToWriter = function(message, writer) {
1514
- var f = undefined;
1515
- f = message.getFiltersList();
1516
- if (f.length > 0) {
1517
- writer.writeRepeatedMessage(
1518
- 1,
1519
- f,
1520
- proto.search.v1.Filter.serializeBinaryToWriter
1521
- );
1522
- }
1523
- f = message.getGroupbyfieldsList();
1524
- if (f.length > 0) {
1525
- writer.writeRepeatedString(
1526
- 2,
1527
- f
1528
- );
1529
- }
1530
- f = message.getPayloadidsList();
1531
- if (f.length > 0) {
1532
- writer.writeRepeatedString(
1533
- 3,
1534
- f
1535
- );
1536
- }
1537
- f = message.getStartdate();
1538
- if (f.length > 0) {
1539
- writer.writeString(
1540
- 4,
1541
- f
1542
- );
1543
- }
1544
- f = message.getEnddate();
1545
- if (f.length > 0) {
1546
- writer.writeString(
1547
- 5,
1548
- f
1549
- );
1550
- }
1551
- f = message.getInterval();
1552
- if (f.length > 0) {
1553
- writer.writeString(
1554
- 6,
1555
- f
1556
- );
1557
- }
1558
- f = message.getRefreshdelay();
1559
- if (f !== 0) {
1560
- writer.writeUint64(
1561
- 7,
1562
- f
1563
- );
1564
- }
1565
- f = message.getDatefield();
1566
- if (f.length > 0) {
1567
- writer.writeString(
1568
- 8,
1569
- f
1570
- );
1571
- }
1572
- f = message.getProjectid();
1573
- if (f.length > 0) {
1574
- writer.writeString(
1575
- 9,
1576
- f
1577
- );
1578
- }
1579
- f = message.getDisabledatehistogram();
1580
- if (f !== 0) {
1581
- writer.writeUint64(
1582
- 10,
1583
- f
1584
- );
1585
- }
1586
- };
1587
-
1588
-
1589
- /**
1590
- * repeated Filter filters = 1;
1591
- * @return {!Array<!proto.search.v1.Filter>}
1592
- */
1593
- proto.search.v1.QueryMessage.prototype.getFiltersList = function() {
1594
- return /** @type{!Array<!proto.search.v1.Filter>} */ (
1595
- jspb.Message.getRepeatedWrapperField(this, proto.search.v1.Filter, 1));
1596
- };
1597
-
1598
-
1599
- /**
1600
- * @param {!Array<!proto.search.v1.Filter>} value
1601
- * @return {!proto.search.v1.QueryMessage} returns this
1602
- */
1603
- proto.search.v1.QueryMessage.prototype.setFiltersList = function(value) {
1604
- return jspb.Message.setRepeatedWrapperField(this, 1, value);
1605
- };
1606
-
1607
-
1608
- /**
1609
- * @param {!proto.search.v1.Filter=} opt_value
1610
- * @param {number=} opt_index
1611
- * @return {!proto.search.v1.Filter}
1612
- */
1613
- proto.search.v1.QueryMessage.prototype.addFilters = function(opt_value, opt_index) {
1614
- return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.search.v1.Filter, opt_index);
1615
- };
1616
-
1617
-
1618
- /**
1619
- * Clears the list making it empty but non-null.
1620
- * @return {!proto.search.v1.QueryMessage} returns this
1621
- */
1622
- proto.search.v1.QueryMessage.prototype.clearFiltersList = function() {
1623
- return this.setFiltersList([]);
1624
- };
1625
-
1626
-
1627
- /**
1628
- * repeated string groupByFields = 2;
1629
- * @return {!Array<string>}
1630
- */
1631
- proto.search.v1.QueryMessage.prototype.getGroupbyfieldsList = function() {
1632
- return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
1633
- };
1634
-
1635
-
1636
- /**
1637
- * @param {!Array<string>} value
1638
- * @return {!proto.search.v1.QueryMessage} returns this
1639
- */
1640
- proto.search.v1.QueryMessage.prototype.setGroupbyfieldsList = function(value) {
1641
- return jspb.Message.setField(this, 2, value || []);
1642
- };
1643
-
1644
-
1645
- /**
1646
- * @param {string} value
1647
- * @param {number=} opt_index
1648
- * @return {!proto.search.v1.QueryMessage} returns this
1649
- */
1650
- proto.search.v1.QueryMessage.prototype.addGroupbyfields = function(value, opt_index) {
1651
- return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
1652
- };
1653
-
1654
-
1655
- /**
1656
- * Clears the list making it empty but non-null.
1657
- * @return {!proto.search.v1.QueryMessage} returns this
1658
- */
1659
- proto.search.v1.QueryMessage.prototype.clearGroupbyfieldsList = function() {
1660
- return this.setGroupbyfieldsList([]);
1661
- };
1662
-
1663
-
1664
- /**
1665
- * repeated string payloadIds = 3;
1666
- * @return {!Array<string>}
1667
- */
1668
- proto.search.v1.QueryMessage.prototype.getPayloadidsList = function() {
1669
- return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
1670
- };
1671
-
1672
-
1673
- /**
1674
- * @param {!Array<string>} value
1675
- * @return {!proto.search.v1.QueryMessage} returns this
1676
- */
1677
- proto.search.v1.QueryMessage.prototype.setPayloadidsList = function(value) {
1678
- return jspb.Message.setField(this, 3, value || []);
1679
- };
1680
-
1681
-
1682
- /**
1683
- * @param {string} value
1684
- * @param {number=} opt_index
1685
- * @return {!proto.search.v1.QueryMessage} returns this
1686
- */
1687
- proto.search.v1.QueryMessage.prototype.addPayloadids = function(value, opt_index) {
1688
- return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
1689
- };
1690
-
1691
-
1692
- /**
1693
- * Clears the list making it empty but non-null.
1694
- * @return {!proto.search.v1.QueryMessage} returns this
1695
- */
1696
- proto.search.v1.QueryMessage.prototype.clearPayloadidsList = function() {
1697
- return this.setPayloadidsList([]);
1698
- };
1699
-
1700
-
1701
- /**
1702
- * optional string startDate = 4;
1703
- * @return {string}
1704
- */
1705
- proto.search.v1.QueryMessage.prototype.getStartdate = function() {
1706
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
1707
- };
1708
-
1709
-
1710
- /**
1711
- * @param {string} value
1712
- * @return {!proto.search.v1.QueryMessage} returns this
1713
- */
1714
- proto.search.v1.QueryMessage.prototype.setStartdate = function(value) {
1715
- return jspb.Message.setProto3StringField(this, 4, value);
1716
- };
1717
-
1718
-
1719
- /**
1720
- * optional string endDate = 5;
1721
- * @return {string}
1722
- */
1723
- proto.search.v1.QueryMessage.prototype.getEnddate = function() {
1724
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
1725
- };
1726
-
1727
-
1728
- /**
1729
- * @param {string} value
1730
- * @return {!proto.search.v1.QueryMessage} returns this
1731
- */
1732
- proto.search.v1.QueryMessage.prototype.setEnddate = function(value) {
1733
- return jspb.Message.setProto3StringField(this, 5, value);
1734
- };
1735
-
1736
-
1737
- /**
1738
- * optional string interval = 6;
1739
- * @return {string}
1740
- */
1741
- proto.search.v1.QueryMessage.prototype.getInterval = function() {
1742
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
1743
- };
1744
-
1745
-
1746
- /**
1747
- * @param {string} value
1748
- * @return {!proto.search.v1.QueryMessage} returns this
1749
- */
1750
- proto.search.v1.QueryMessage.prototype.setInterval = function(value) {
1751
- return jspb.Message.setProto3StringField(this, 6, value);
1752
- };
1753
-
1754
-
1755
- /**
1756
- * optional uint64 refreshDelay = 7;
1757
- * @return {number}
1758
- */
1759
- proto.search.v1.QueryMessage.prototype.getRefreshdelay = function() {
1760
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
1761
- };
1762
-
1763
-
1764
- /**
1765
- * @param {number} value
1766
- * @return {!proto.search.v1.QueryMessage} returns this
1767
- */
1768
- proto.search.v1.QueryMessage.prototype.setRefreshdelay = function(value) {
1769
- return jspb.Message.setProto3IntField(this, 7, value);
1770
- };
1771
-
1772
-
1773
- /**
1774
- * optional string dateField = 8;
1775
- * @return {string}
1776
- */
1777
- proto.search.v1.QueryMessage.prototype.getDatefield = function() {
1778
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
1779
- };
1780
-
1781
-
1782
- /**
1783
- * @param {string} value
1784
- * @return {!proto.search.v1.QueryMessage} returns this
1785
- */
1786
- proto.search.v1.QueryMessage.prototype.setDatefield = function(value) {
1787
- return jspb.Message.setProto3StringField(this, 8, value);
1788
- };
1789
-
1790
-
1791
- /**
1792
- * optional string projectId = 9;
1793
- * @return {string}
1794
- */
1795
- proto.search.v1.QueryMessage.prototype.getProjectid = function() {
1796
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
1797
- };
1798
-
1799
-
1800
- /**
1801
- * @param {string} value
1802
- * @return {!proto.search.v1.QueryMessage} returns this
1803
- */
1804
- proto.search.v1.QueryMessage.prototype.setProjectid = function(value) {
1805
- return jspb.Message.setProto3StringField(this, 9, value);
1806
- };
1807
-
1808
-
1809
- /**
1810
- * optional uint64 disableDateHistogram = 10;
1811
- * @return {number}
1812
- */
1813
- proto.search.v1.QueryMessage.prototype.getDisabledatehistogram = function() {
1814
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0));
1815
- };
1816
-
1817
-
1818
- /**
1819
- * @param {number} value
1820
- * @return {!proto.search.v1.QueryMessage} returns this
1821
- */
1822
- proto.search.v1.QueryMessage.prototype.setDisabledatehistogram = function(value) {
1823
- return jspb.Message.setProto3IntField(this, 10, value);
1824
- };
1825
-
1826
-
1827
-
1828
-
1829
-
1830
- if (jspb.Message.GENERATE_TO_OBJECT) {
1831
- /**
1832
- * Creates an object representation of this proto.
1833
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1834
- * Optional fields that are not set will be set to undefined.
1835
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1836
- * For the list of reserved names please see:
1837
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1838
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1839
- * JSPB instance for transitional soy proto support:
1840
- * http://goto/soy-param-migration
1841
- * @return {!Object}
1842
- */
1843
- proto.search.v1.Row.prototype.toObject = function(opt_includeInstance) {
1844
- return proto.search.v1.Row.toObject(opt_includeInstance, this);
1845
- };
1846
-
1847
-
1848
- /**
1849
- * Static version of the {@see toObject} method.
1850
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1851
- * the JSPB instance for transitional soy proto support:
1852
- * http://goto/soy-param-migration
1853
- * @param {!proto.search.v1.Row} msg The msg instance to transform.
1854
- * @return {!Object}
1855
- * @suppress {unusedLocalVariables} f is only used for nested messages
1856
- */
1857
- proto.search.v1.Row.toObject = function(includeInstance, msg) {
1858
- var f, obj = {
1859
- key: jspb.Message.getFieldWithDefault(msg, 1, ""),
1860
- count: jspb.Message.getFieldWithDefault(msg, 2, 0),
1861
- avgsize: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0),
1862
- totalsize: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0),
1863
- payload: jspb.Message.getFieldWithDefault(msg, 5, ""),
1864
- transpersecond: jspb.Message.getFloatingPointFieldWithDefault(msg, 6, 0.0),
1865
- bytespersecond: jspb.Message.getFloatingPointFieldWithDefault(msg, 7, 0.0)
1866
- };
1867
-
1868
- if (includeInstance) {
1869
- obj.$jspbMessageInstance = msg;
1870
- }
1871
- return obj;
1872
- };
1873
- }
1874
-
1875
-
1876
- /**
1877
- * Deserializes binary data (in protobuf wire format).
1878
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1879
- * @return {!proto.search.v1.Row}
1880
- */
1881
- proto.search.v1.Row.deserializeBinary = function(bytes) {
1882
- var reader = new jspb.BinaryReader(bytes);
1883
- var msg = new proto.search.v1.Row;
1884
- return proto.search.v1.Row.deserializeBinaryFromReader(msg, reader);
1885
- };
1886
-
1887
-
1888
- /**
1889
- * Deserializes binary data (in protobuf wire format) from the
1890
- * given reader into the given message object.
1891
- * @param {!proto.search.v1.Row} msg The message object to deserialize into.
1892
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1893
- * @return {!proto.search.v1.Row}
1894
- */
1895
- proto.search.v1.Row.deserializeBinaryFromReader = function(msg, reader) {
1896
- while (reader.nextField()) {
1897
- if (reader.isEndGroup()) {
1898
- break;
1899
- }
1900
- var field = reader.getFieldNumber();
1901
- switch (field) {
1902
- case 1:
1903
- var value = /** @type {string} */ (reader.readString());
1904
- msg.setKey(value);
1905
- break;
1906
- case 2:
1907
- var value = /** @type {number} */ (reader.readUint64());
1908
- msg.setCount(value);
1909
- break;
1910
- case 3:
1911
- var value = /** @type {number} */ (reader.readDouble());
1912
- msg.setAvgsize(value);
1913
- break;
1914
- case 4:
1915
- var value = /** @type {number} */ (reader.readDouble());
1916
- msg.setTotalsize(value);
1917
- break;
1918
- case 5:
1919
- var value = /** @type {string} */ (reader.readString());
1920
- msg.setPayload(value);
1921
- break;
1922
- case 6:
1923
- var value = /** @type {number} */ (reader.readDouble());
1924
- msg.setTranspersecond(value);
1925
- break;
1926
- case 7:
1927
- var value = /** @type {number} */ (reader.readDouble());
1928
- msg.setBytespersecond(value);
1929
- break;
1930
- default:
1931
- reader.skipField();
1932
- break;
1933
- }
1934
- }
1935
- return msg;
1936
- };
1937
-
1938
-
1939
- /**
1940
- * Serializes the message to binary data (in protobuf wire format).
1941
- * @return {!Uint8Array}
1942
- */
1943
- proto.search.v1.Row.prototype.serializeBinary = function() {
1944
- var writer = new jspb.BinaryWriter();
1945
- proto.search.v1.Row.serializeBinaryToWriter(this, writer);
1946
- return writer.getResultBuffer();
1947
- };
1948
-
1949
-
1950
- /**
1951
- * Serializes the given message to binary data (in protobuf wire
1952
- * format), writing to the given BinaryWriter.
1953
- * @param {!proto.search.v1.Row} message
1954
- * @param {!jspb.BinaryWriter} writer
1955
- * @suppress {unusedLocalVariables} f is only used for nested messages
1956
- */
1957
- proto.search.v1.Row.serializeBinaryToWriter = function(message, writer) {
1958
- var f = undefined;
1959
- f = message.getKey();
1960
- if (f.length > 0) {
1961
- writer.writeString(
1962
- 1,
1963
- f
1964
- );
1965
- }
1966
- f = message.getCount();
1967
- if (f !== 0) {
1968
- writer.writeUint64(
1969
- 2,
1970
- f
1971
- );
1972
- }
1973
- f = message.getAvgsize();
1974
- if (f !== 0.0) {
1975
- writer.writeDouble(
1976
- 3,
1977
- f
1978
- );
1979
- }
1980
- f = message.getTotalsize();
1981
- if (f !== 0.0) {
1982
- writer.writeDouble(
1983
- 4,
1984
- f
1985
- );
1986
- }
1987
- f = message.getPayload();
1988
- if (f.length > 0) {
1989
- writer.writeString(
1990
- 5,
1991
- f
1992
- );
1993
- }
1994
- f = message.getTranspersecond();
1995
- if (f !== 0.0) {
1996
- writer.writeDouble(
1997
- 6,
1998
- f
1999
- );
2000
- }
2001
- f = message.getBytespersecond();
2002
- if (f !== 0.0) {
2003
- writer.writeDouble(
2004
- 7,
2005
- f
2006
- );
2007
- }
2008
- };
2009
-
2010
-
2011
- /**
2012
- * optional string key = 1;
2013
- * @return {string}
2014
- */
2015
- proto.search.v1.Row.prototype.getKey = function() {
2016
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2017
- };
2018
-
2019
-
2020
- /**
2021
- * @param {string} value
2022
- * @return {!proto.search.v1.Row} returns this
2023
- */
2024
- proto.search.v1.Row.prototype.setKey = function(value) {
2025
- return jspb.Message.setProto3StringField(this, 1, value);
2026
- };
2027
-
2028
-
2029
- /**
2030
- * optional uint64 count = 2;
2031
- * @return {number}
2032
- */
2033
- proto.search.v1.Row.prototype.getCount = function() {
2034
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
2035
- };
2036
-
2037
-
2038
- /**
2039
- * @param {number} value
2040
- * @return {!proto.search.v1.Row} returns this
2041
- */
2042
- proto.search.v1.Row.prototype.setCount = function(value) {
2043
- return jspb.Message.setProto3IntField(this, 2, value);
2044
- };
2045
-
2046
-
2047
- /**
2048
- * optional double avgSize = 3;
2049
- * @return {number}
2050
- */
2051
- proto.search.v1.Row.prototype.getAvgsize = function() {
2052
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0));
2053
- };
2054
-
2055
-
2056
- /**
2057
- * @param {number} value
2058
- * @return {!proto.search.v1.Row} returns this
2059
- */
2060
- proto.search.v1.Row.prototype.setAvgsize = function(value) {
2061
- return jspb.Message.setProto3FloatField(this, 3, value);
2062
- };
2063
-
2064
-
2065
- /**
2066
- * optional double totalSize = 4;
2067
- * @return {number}
2068
- */
2069
- proto.search.v1.Row.prototype.getTotalsize = function() {
2070
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0));
2071
- };
2072
-
2073
-
2074
- /**
2075
- * @param {number} value
2076
- * @return {!proto.search.v1.Row} returns this
2077
- */
2078
- proto.search.v1.Row.prototype.setTotalsize = function(value) {
2079
- return jspb.Message.setProto3FloatField(this, 4, value);
2080
- };
2081
-
2082
-
2083
- /**
2084
- * optional string payload = 5;
2085
- * @return {string}
2086
- */
2087
- proto.search.v1.Row.prototype.getPayload = function() {
2088
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
2089
- };
2090
-
2091
-
2092
- /**
2093
- * @param {string} value
2094
- * @return {!proto.search.v1.Row} returns this
2095
- */
2096
- proto.search.v1.Row.prototype.setPayload = function(value) {
2097
- return jspb.Message.setProto3StringField(this, 5, value);
2098
- };
2099
-
2100
-
2101
- /**
2102
- * optional double transPerSecond = 6;
2103
- * @return {number}
2104
- */
2105
- proto.search.v1.Row.prototype.getTranspersecond = function() {
2106
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 6, 0.0));
2107
- };
2108
-
2109
-
2110
- /**
2111
- * @param {number} value
2112
- * @return {!proto.search.v1.Row} returns this
2113
- */
2114
- proto.search.v1.Row.prototype.setTranspersecond = function(value) {
2115
- return jspb.Message.setProto3FloatField(this, 6, value);
2116
- };
2117
-
2118
-
2119
- /**
2120
- * optional double bytesPerSecond = 7;
2121
- * @return {number}
2122
- */
2123
- proto.search.v1.Row.prototype.getBytespersecond = function() {
2124
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 7, 0.0));
2125
- };
2126
-
2127
-
2128
- /**
2129
- * @param {number} value
2130
- * @return {!proto.search.v1.Row} returns this
2131
- */
2132
- proto.search.v1.Row.prototype.setBytespersecond = function(value) {
2133
- return jspb.Message.setProto3FloatField(this, 7, value);
2134
- };
2135
-
2136
-
2137
-
2138
- /**
2139
- * List of repeated fields within this message type.
2140
- * @private {!Array<number>}
2141
- * @const
2142
- */
2143
- proto.search.v1.RowSet.repeatedFields_ = [1];
2144
-
2145
-
2146
-
2147
- if (jspb.Message.GENERATE_TO_OBJECT) {
2148
- /**
2149
- * Creates an object representation of this proto.
2150
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
2151
- * Optional fields that are not set will be set to undefined.
2152
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2153
- * For the list of reserved names please see:
2154
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2155
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2156
- * JSPB instance for transitional soy proto support:
2157
- * http://goto/soy-param-migration
2158
- * @return {!Object}
2159
- */
2160
- proto.search.v1.RowSet.prototype.toObject = function(opt_includeInstance) {
2161
- return proto.search.v1.RowSet.toObject(opt_includeInstance, this);
2162
- };
2163
-
2164
-
2165
- /**
2166
- * Static version of the {@see toObject} method.
2167
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2168
- * the JSPB instance for transitional soy proto support:
2169
- * http://goto/soy-param-migration
2170
- * @param {!proto.search.v1.RowSet} msg The msg instance to transform.
2171
- * @return {!Object}
2172
- * @suppress {unusedLocalVariables} f is only used for nested messages
2173
- */
2174
- proto.search.v1.RowSet.toObject = function(includeInstance, msg) {
2175
- var f, obj = {
2176
- rowsetList: jspb.Message.toObjectList(msg.getRowsetList(),
2177
- proto.search.v1.Row.toObject, includeInstance)
2178
- };
2179
-
2180
- if (includeInstance) {
2181
- obj.$jspbMessageInstance = msg;
2182
- }
2183
- return obj;
2184
- };
2185
- }
2186
-
2187
-
2188
- /**
2189
- * Deserializes binary data (in protobuf wire format).
2190
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
2191
- * @return {!proto.search.v1.RowSet}
2192
- */
2193
- proto.search.v1.RowSet.deserializeBinary = function(bytes) {
2194
- var reader = new jspb.BinaryReader(bytes);
2195
- var msg = new proto.search.v1.RowSet;
2196
- return proto.search.v1.RowSet.deserializeBinaryFromReader(msg, reader);
2197
- };
2198
-
2199
-
2200
- /**
2201
- * Deserializes binary data (in protobuf wire format) from the
2202
- * given reader into the given message object.
2203
- * @param {!proto.search.v1.RowSet} msg The message object to deserialize into.
2204
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2205
- * @return {!proto.search.v1.RowSet}
2206
- */
2207
- proto.search.v1.RowSet.deserializeBinaryFromReader = function(msg, reader) {
2208
- while (reader.nextField()) {
2209
- if (reader.isEndGroup()) {
2210
- break;
2211
- }
2212
- var field = reader.getFieldNumber();
2213
- switch (field) {
2214
- case 1:
2215
- var value = new proto.search.v1.Row;
2216
- reader.readMessage(value,proto.search.v1.Row.deserializeBinaryFromReader);
2217
- msg.addRowset(value);
2218
- break;
2219
- default:
2220
- reader.skipField();
2221
- break;
2222
- }
2223
- }
2224
- return msg;
2225
- };
2226
-
2227
-
2228
- /**
2229
- * Serializes the message to binary data (in protobuf wire format).
2230
- * @return {!Uint8Array}
2231
- */
2232
- proto.search.v1.RowSet.prototype.serializeBinary = function() {
2233
- var writer = new jspb.BinaryWriter();
2234
- proto.search.v1.RowSet.serializeBinaryToWriter(this, writer);
2235
- return writer.getResultBuffer();
2236
- };
2237
-
2238
-
2239
- /**
2240
- * Serializes the given message to binary data (in protobuf wire
2241
- * format), writing to the given BinaryWriter.
2242
- * @param {!proto.search.v1.RowSet} message
2243
- * @param {!jspb.BinaryWriter} writer
2244
- * @suppress {unusedLocalVariables} f is only used for nested messages
2245
- */
2246
- proto.search.v1.RowSet.serializeBinaryToWriter = function(message, writer) {
2247
- var f = undefined;
2248
- f = message.getRowsetList();
2249
- if (f.length > 0) {
2250
- writer.writeRepeatedMessage(
2251
- 1,
2252
- f,
2253
- proto.search.v1.Row.serializeBinaryToWriter
2254
- );
2255
- }
2256
- };
2257
-
2258
-
2259
- /**
2260
- * repeated Row rowset = 1;
2261
- * @return {!Array<!proto.search.v1.Row>}
2262
- */
2263
- proto.search.v1.RowSet.prototype.getRowsetList = function() {
2264
- return /** @type{!Array<!proto.search.v1.Row>} */ (
2265
- jspb.Message.getRepeatedWrapperField(this, proto.search.v1.Row, 1));
2266
- };
2267
-
2268
-
2269
- /**
2270
- * @param {!Array<!proto.search.v1.Row>} value
2271
- * @return {!proto.search.v1.RowSet} returns this
2272
- */
2273
- proto.search.v1.RowSet.prototype.setRowsetList = function(value) {
2274
- return jspb.Message.setRepeatedWrapperField(this, 1, value);
2275
- };
2276
-
2277
-
2278
- /**
2279
- * @param {!proto.search.v1.Row=} opt_value
2280
- * @param {number=} opt_index
2281
- * @return {!proto.search.v1.Row}
2282
- */
2283
- proto.search.v1.RowSet.prototype.addRowset = function(opt_value, opt_index) {
2284
- return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.search.v1.Row, opt_index);
2285
- };
2286
-
2287
-
2288
- /**
2289
- * Clears the list making it empty but non-null.
2290
- * @return {!proto.search.v1.RowSet} returns this
2291
- */
2292
- proto.search.v1.RowSet.prototype.clearRowsetList = function() {
2293
- return this.setRowsetList([]);
2294
- };
2295
-
2296
-
2297
-
2298
- /**
2299
- * List of repeated fields within this message type.
2300
- * @private {!Array<number>}
2301
- * @const
2302
- */
2303
- proto.search.v1.DataRow.repeatedFields_ = [2];
2304
-
2305
-
2306
-
2307
- if (jspb.Message.GENERATE_TO_OBJECT) {
2308
- /**
2309
- * Creates an object representation of this proto.
2310
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
2311
- * Optional fields that are not set will be set to undefined.
2312
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2313
- * For the list of reserved names please see:
2314
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2315
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2316
- * JSPB instance for transitional soy proto support:
2317
- * http://goto/soy-param-migration
2318
- * @return {!Object}
2319
- */
2320
- proto.search.v1.DataRow.prototype.toObject = function(opt_includeInstance) {
2321
- return proto.search.v1.DataRow.toObject(opt_includeInstance, this);
2322
- };
2323
-
2324
-
2325
- /**
2326
- * Static version of the {@see toObject} method.
2327
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2328
- * the JSPB instance for transitional soy proto support:
2329
- * http://goto/soy-param-migration
2330
- * @param {!proto.search.v1.DataRow} msg The msg instance to transform.
2331
- * @return {!Object}
2332
- * @suppress {unusedLocalVariables} f is only used for nested messages
2333
- */
2334
- proto.search.v1.DataRow.toObject = function(includeInstance, msg) {
2335
- var f, obj = {
2336
- date: jspb.Message.getFieldWithDefault(msg, 1, ""),
2337
- rowList: jspb.Message.toObjectList(msg.getRowList(),
2338
- proto.search.v1.Row.toObject, includeInstance)
2339
- };
2340
-
2341
- if (includeInstance) {
2342
- obj.$jspbMessageInstance = msg;
2343
- }
2344
- return obj;
2345
- };
2346
- }
2347
-
2348
-
2349
- /**
2350
- * Deserializes binary data (in protobuf wire format).
2351
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
2352
- * @return {!proto.search.v1.DataRow}
2353
- */
2354
- proto.search.v1.DataRow.deserializeBinary = function(bytes) {
2355
- var reader = new jspb.BinaryReader(bytes);
2356
- var msg = new proto.search.v1.DataRow;
2357
- return proto.search.v1.DataRow.deserializeBinaryFromReader(msg, reader);
2358
- };
2359
-
2360
-
2361
- /**
2362
- * Deserializes binary data (in protobuf wire format) from the
2363
- * given reader into the given message object.
2364
- * @param {!proto.search.v1.DataRow} msg The message object to deserialize into.
2365
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2366
- * @return {!proto.search.v1.DataRow}
2367
- */
2368
- proto.search.v1.DataRow.deserializeBinaryFromReader = function(msg, reader) {
2369
- while (reader.nextField()) {
2370
- if (reader.isEndGroup()) {
2371
- break;
2372
- }
2373
- var field = reader.getFieldNumber();
2374
- switch (field) {
2375
- case 1:
2376
- var value = /** @type {string} */ (reader.readString());
2377
- msg.setDate(value);
2378
- break;
2379
- case 2:
2380
- var value = new proto.search.v1.Row;
2381
- reader.readMessage(value,proto.search.v1.Row.deserializeBinaryFromReader);
2382
- msg.addRow(value);
2383
- break;
2384
- default:
2385
- reader.skipField();
2386
- break;
2387
- }
2388
- }
2389
- return msg;
2390
- };
2391
-
2392
-
2393
- /**
2394
- * Serializes the message to binary data (in protobuf wire format).
2395
- * @return {!Uint8Array}
2396
- */
2397
- proto.search.v1.DataRow.prototype.serializeBinary = function() {
2398
- var writer = new jspb.BinaryWriter();
2399
- proto.search.v1.DataRow.serializeBinaryToWriter(this, writer);
2400
- return writer.getResultBuffer();
2401
- };
2402
-
2403
-
2404
- /**
2405
- * Serializes the given message to binary data (in protobuf wire
2406
- * format), writing to the given BinaryWriter.
2407
- * @param {!proto.search.v1.DataRow} message
2408
- * @param {!jspb.BinaryWriter} writer
2409
- * @suppress {unusedLocalVariables} f is only used for nested messages
2410
- */
2411
- proto.search.v1.DataRow.serializeBinaryToWriter = function(message, writer) {
2412
- var f = undefined;
2413
- f = message.getDate();
2414
- if (f.length > 0) {
2415
- writer.writeString(
2416
- 1,
2417
- f
2418
- );
2419
- }
2420
- f = message.getRowList();
2421
- if (f.length > 0) {
2422
- writer.writeRepeatedMessage(
2423
- 2,
2424
- f,
2425
- proto.search.v1.Row.serializeBinaryToWriter
2426
- );
2427
- }
2428
- };
2429
-
2430
-
2431
- /**
2432
- * optional string date = 1;
2433
- * @return {string}
2434
- */
2435
- proto.search.v1.DataRow.prototype.getDate = function() {
2436
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2437
- };
2438
-
2439
-
2440
- /**
2441
- * @param {string} value
2442
- * @return {!proto.search.v1.DataRow} returns this
2443
- */
2444
- proto.search.v1.DataRow.prototype.setDate = function(value) {
2445
- return jspb.Message.setProto3StringField(this, 1, value);
2446
- };
2447
-
2448
-
2449
- /**
2450
- * repeated Row row = 2;
2451
- * @return {!Array<!proto.search.v1.Row>}
2452
- */
2453
- proto.search.v1.DataRow.prototype.getRowList = function() {
2454
- return /** @type{!Array<!proto.search.v1.Row>} */ (
2455
- jspb.Message.getRepeatedWrapperField(this, proto.search.v1.Row, 2));
2456
- };
2457
-
2458
-
2459
- /**
2460
- * @param {!Array<!proto.search.v1.Row>} value
2461
- * @return {!proto.search.v1.DataRow} returns this
2462
- */
2463
- proto.search.v1.DataRow.prototype.setRowList = function(value) {
2464
- return jspb.Message.setRepeatedWrapperField(this, 2, value);
2465
- };
2466
-
2467
-
2468
- /**
2469
- * @param {!proto.search.v1.Row=} opt_value
2470
- * @param {number=} opt_index
2471
- * @return {!proto.search.v1.Row}
2472
- */
2473
- proto.search.v1.DataRow.prototype.addRow = function(opt_value, opt_index) {
2474
- return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.search.v1.Row, opt_index);
2475
- };
2476
-
2477
-
2478
- /**
2479
- * Clears the list making it empty but non-null.
2480
- * @return {!proto.search.v1.DataRow} returns this
2481
- */
2482
- proto.search.v1.DataRow.prototype.clearRowList = function() {
2483
- return this.setRowList([]);
2484
- };
2485
-
2486
-
2487
-
2488
- /**
2489
- * List of repeated fields within this message type.
2490
- * @private {!Array<number>}
2491
- * @const
2492
- */
2493
- proto.search.v1.Dataset.repeatedFields_ = [1];
2494
-
2495
-
2496
-
2497
- if (jspb.Message.GENERATE_TO_OBJECT) {
2498
- /**
2499
- * Creates an object representation of this proto.
2500
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
2501
- * Optional fields that are not set will be set to undefined.
2502
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2503
- * For the list of reserved names please see:
2504
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2505
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2506
- * JSPB instance for transitional soy proto support:
2507
- * http://goto/soy-param-migration
2508
- * @return {!Object}
2509
- */
2510
- proto.search.v1.Dataset.prototype.toObject = function(opt_includeInstance) {
2511
- return proto.search.v1.Dataset.toObject(opt_includeInstance, this);
2512
- };
2513
-
2514
-
2515
- /**
2516
- * Static version of the {@see toObject} method.
2517
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2518
- * the JSPB instance for transitional soy proto support:
2519
- * http://goto/soy-param-migration
2520
- * @param {!proto.search.v1.Dataset} msg The msg instance to transform.
2521
- * @return {!Object}
2522
- * @suppress {unusedLocalVariables} f is only used for nested messages
2523
- */
2524
- proto.search.v1.Dataset.toObject = function(includeInstance, msg) {
2525
- var f, obj = {
2526
- datasetList: jspb.Message.toObjectList(msg.getDatasetList(),
2527
- proto.search.v1.DataRow.toObject, includeInstance)
2528
- };
2529
-
2530
- if (includeInstance) {
2531
- obj.$jspbMessageInstance = msg;
2532
- }
2533
- return obj;
2534
- };
2535
- }
2536
-
2537
-
2538
- /**
2539
- * Deserializes binary data (in protobuf wire format).
2540
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
2541
- * @return {!proto.search.v1.Dataset}
2542
- */
2543
- proto.search.v1.Dataset.deserializeBinary = function(bytes) {
2544
- var reader = new jspb.BinaryReader(bytes);
2545
- var msg = new proto.search.v1.Dataset;
2546
- return proto.search.v1.Dataset.deserializeBinaryFromReader(msg, reader);
2547
- };
2548
-
2549
-
2550
- /**
2551
- * Deserializes binary data (in protobuf wire format) from the
2552
- * given reader into the given message object.
2553
- * @param {!proto.search.v1.Dataset} msg The message object to deserialize into.
2554
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2555
- * @return {!proto.search.v1.Dataset}
2556
- */
2557
- proto.search.v1.Dataset.deserializeBinaryFromReader = function(msg, reader) {
2558
- while (reader.nextField()) {
2559
- if (reader.isEndGroup()) {
2560
- break;
2561
- }
2562
- var field = reader.getFieldNumber();
2563
- switch (field) {
2564
- case 1:
2565
- var value = new proto.search.v1.DataRow;
2566
- reader.readMessage(value,proto.search.v1.DataRow.deserializeBinaryFromReader);
2567
- msg.addDataset(value);
2568
- break;
2569
- default:
2570
- reader.skipField();
2571
- break;
2572
- }
2573
- }
2574
- return msg;
2575
- };
2576
-
2577
-
2578
- /**
2579
- * Serializes the message to binary data (in protobuf wire format).
2580
- * @return {!Uint8Array}
2581
- */
2582
- proto.search.v1.Dataset.prototype.serializeBinary = function() {
2583
- var writer = new jspb.BinaryWriter();
2584
- proto.search.v1.Dataset.serializeBinaryToWriter(this, writer);
2585
- return writer.getResultBuffer();
2586
- };
2587
-
2588
-
2589
- /**
2590
- * Serializes the given message to binary data (in protobuf wire
2591
- * format), writing to the given BinaryWriter.
2592
- * @param {!proto.search.v1.Dataset} message
2593
- * @param {!jspb.BinaryWriter} writer
2594
- * @suppress {unusedLocalVariables} f is only used for nested messages
2595
- */
2596
- proto.search.v1.Dataset.serializeBinaryToWriter = function(message, writer) {
2597
- var f = undefined;
2598
- f = message.getDatasetList();
2599
- if (f.length > 0) {
2600
- writer.writeRepeatedMessage(
2601
- 1,
2602
- f,
2603
- proto.search.v1.DataRow.serializeBinaryToWriter
2604
- );
2605
- }
2606
- };
2607
-
2608
-
2609
- /**
2610
- * repeated DataRow dataset = 1;
2611
- * @return {!Array<!proto.search.v1.DataRow>}
2612
- */
2613
- proto.search.v1.Dataset.prototype.getDatasetList = function() {
2614
- return /** @type{!Array<!proto.search.v1.DataRow>} */ (
2615
- jspb.Message.getRepeatedWrapperField(this, proto.search.v1.DataRow, 1));
2616
- };
2617
-
2618
-
2619
- /**
2620
- * @param {!Array<!proto.search.v1.DataRow>} value
2621
- * @return {!proto.search.v1.Dataset} returns this
2622
- */
2623
- proto.search.v1.Dataset.prototype.setDatasetList = function(value) {
2624
- return jspb.Message.setRepeatedWrapperField(this, 1, value);
2625
- };
2626
-
2627
-
2628
- /**
2629
- * @param {!proto.search.v1.DataRow=} opt_value
2630
- * @param {number=} opt_index
2631
- * @return {!proto.search.v1.DataRow}
2632
- */
2633
- proto.search.v1.Dataset.prototype.addDataset = function(opt_value, opt_index) {
2634
- return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.search.v1.DataRow, opt_index);
2635
- };
2636
-
2637
-
2638
- /**
2639
- * Clears the list making it empty but non-null.
2640
- * @return {!proto.search.v1.Dataset} returns this
2641
- */
2642
- proto.search.v1.Dataset.prototype.clearDatasetList = function() {
2643
- return this.setDatasetList([]);
2644
- };
2645
-
2646
-
2647
-
2648
-
2649
-
2650
- if (jspb.Message.GENERATE_TO_OBJECT) {
2651
- /**
2652
- * Creates an object representation of this proto.
2653
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
2654
- * Optional fields that are not set will be set to undefined.
2655
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2656
- * For the list of reserved names please see:
2657
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2658
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2659
- * JSPB instance for transitional soy proto support:
2660
- * http://goto/soy-param-migration
2661
- * @return {!Object}
2662
- */
2663
- proto.search.v1.Empty.prototype.toObject = function(opt_includeInstance) {
2664
- return proto.search.v1.Empty.toObject(opt_includeInstance, this);
2665
- };
2666
-
2667
-
2668
- /**
2669
- * Static version of the {@see toObject} method.
2670
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2671
- * the JSPB instance for transitional soy proto support:
2672
- * http://goto/soy-param-migration
2673
- * @param {!proto.search.v1.Empty} msg The msg instance to transform.
2674
- * @return {!Object}
2675
- * @suppress {unusedLocalVariables} f is only used for nested messages
2676
- */
2677
- proto.search.v1.Empty.toObject = function(includeInstance, msg) {
2678
- var f, obj = {
2679
-
2680
- };
2681
-
2682
- if (includeInstance) {
2683
- obj.$jspbMessageInstance = msg;
2684
- }
2685
- return obj;
2686
- };
2687
- }
2688
-
2689
-
2690
- /**
2691
- * Deserializes binary data (in protobuf wire format).
2692
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
2693
- * @return {!proto.search.v1.Empty}
2694
- */
2695
- proto.search.v1.Empty.deserializeBinary = function(bytes) {
2696
- var reader = new jspb.BinaryReader(bytes);
2697
- var msg = new proto.search.v1.Empty;
2698
- return proto.search.v1.Empty.deserializeBinaryFromReader(msg, reader);
2699
- };
2700
-
2701
-
2702
- /**
2703
- * Deserializes binary data (in protobuf wire format) from the
2704
- * given reader into the given message object.
2705
- * @param {!proto.search.v1.Empty} msg The message object to deserialize into.
2706
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2707
- * @return {!proto.search.v1.Empty}
2708
- */
2709
- proto.search.v1.Empty.deserializeBinaryFromReader = function(msg, reader) {
2710
- while (reader.nextField()) {
2711
- if (reader.isEndGroup()) {
2712
- break;
2713
- }
2714
- var field = reader.getFieldNumber();
2715
- switch (field) {
2716
- default:
2717
- reader.skipField();
2718
- break;
2719
- }
2720
- }
2721
- return msg;
2722
- };
2723
-
2724
-
2725
- /**
2726
- * Serializes the message to binary data (in protobuf wire format).
2727
- * @return {!Uint8Array}
2728
- */
2729
- proto.search.v1.Empty.prototype.serializeBinary = function() {
2730
- var writer = new jspb.BinaryWriter();
2731
- proto.search.v1.Empty.serializeBinaryToWriter(this, writer);
2732
- return writer.getResultBuffer();
2733
- };
2734
-
2735
-
2736
- /**
2737
- * Serializes the given message to binary data (in protobuf wire
2738
- * format), writing to the given BinaryWriter.
2739
- * @param {!proto.search.v1.Empty} message
2740
- * @param {!jspb.BinaryWriter} writer
2741
- * @suppress {unusedLocalVariables} f is only used for nested messages
2742
- */
2743
- proto.search.v1.Empty.serializeBinaryToWriter = function(message, writer) {
2744
- var f = undefined;
2745
- };
2746
-
2747
-
2748
-
2749
-
2750
-
2751
- if (jspb.Message.GENERATE_TO_OBJECT) {
2752
- /**
2753
- * Creates an object representation of this proto.
2754
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
2755
- * Optional fields that are not set will be set to undefined.
2756
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2757
- * For the list of reserved names please see:
2758
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2759
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2760
- * JSPB instance for transitional soy proto support:
2761
- * http://goto/soy-param-migration
2762
- * @return {!Object}
2763
- */
2764
- proto.search.v1.Status.prototype.toObject = function(opt_includeInstance) {
2765
- return proto.search.v1.Status.toObject(opt_includeInstance, this);
2766
- };
2767
-
2768
-
2769
- /**
2770
- * Static version of the {@see toObject} method.
2771
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2772
- * the JSPB instance for transitional soy proto support:
2773
- * http://goto/soy-param-migration
2774
- * @param {!proto.search.v1.Status} msg The msg instance to transform.
2775
- * @return {!Object}
2776
- * @suppress {unusedLocalVariables} f is only used for nested messages
2777
- */
2778
- proto.search.v1.Status.toObject = function(includeInstance, msg) {
2779
- var f, obj = {
2780
- outcome: jspb.Message.getFieldWithDefault(msg, 1, ""),
2781
- error: jspb.Message.getFieldWithDefault(msg, 2, "")
2782
- };
2783
-
2784
- if (includeInstance) {
2785
- obj.$jspbMessageInstance = msg;
2786
- }
2787
- return obj;
2788
- };
2789
- }
2790
-
2791
-
2792
- /**
2793
- * Deserializes binary data (in protobuf wire format).
2794
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
2795
- * @return {!proto.search.v1.Status}
2796
- */
2797
- proto.search.v1.Status.deserializeBinary = function(bytes) {
2798
- var reader = new jspb.BinaryReader(bytes);
2799
- var msg = new proto.search.v1.Status;
2800
- return proto.search.v1.Status.deserializeBinaryFromReader(msg, reader);
2801
- };
2802
-
2803
-
2804
- /**
2805
- * Deserializes binary data (in protobuf wire format) from the
2806
- * given reader into the given message object.
2807
- * @param {!proto.search.v1.Status} msg The message object to deserialize into.
2808
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2809
- * @return {!proto.search.v1.Status}
2810
- */
2811
- proto.search.v1.Status.deserializeBinaryFromReader = function(msg, reader) {
2812
- while (reader.nextField()) {
2813
- if (reader.isEndGroup()) {
2814
- break;
2815
- }
2816
- var field = reader.getFieldNumber();
2817
- switch (field) {
2818
- case 1:
2819
- var value = /** @type {string} */ (reader.readString());
2820
- msg.setOutcome(value);
2821
- break;
2822
- case 2:
2823
- var value = /** @type {string} */ (reader.readString());
2824
- msg.setError(value);
2825
- break;
2826
- default:
2827
- reader.skipField();
2828
- break;
2829
- }
2830
- }
2831
- return msg;
2832
- };
2833
-
2834
-
2835
- /**
2836
- * Serializes the message to binary data (in protobuf wire format).
2837
- * @return {!Uint8Array}
2838
- */
2839
- proto.search.v1.Status.prototype.serializeBinary = function() {
2840
- var writer = new jspb.BinaryWriter();
2841
- proto.search.v1.Status.serializeBinaryToWriter(this, writer);
2842
- return writer.getResultBuffer();
2843
- };
2844
-
2845
-
2846
- /**
2847
- * Serializes the given message to binary data (in protobuf wire
2848
- * format), writing to the given BinaryWriter.
2849
- * @param {!proto.search.v1.Status} message
2850
- * @param {!jspb.BinaryWriter} writer
2851
- * @suppress {unusedLocalVariables} f is only used for nested messages
2852
- */
2853
- proto.search.v1.Status.serializeBinaryToWriter = function(message, writer) {
2854
- var f = undefined;
2855
- f = message.getOutcome();
2856
- if (f.length > 0) {
2857
- writer.writeString(
2858
- 1,
2859
- f
2860
- );
2861
- }
2862
- f = message.getError();
2863
- if (f.length > 0) {
2864
- writer.writeString(
2865
- 2,
2866
- f
2867
- );
2868
- }
2869
- };
2870
-
2871
-
2872
- /**
2873
- * optional string outcome = 1;
2874
- * @return {string}
2875
- */
2876
- proto.search.v1.Status.prototype.getOutcome = function() {
2877
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2878
- };
2879
-
2880
-
2881
- /**
2882
- * @param {string} value
2883
- * @return {!proto.search.v1.Status} returns this
2884
- */
2885
- proto.search.v1.Status.prototype.setOutcome = function(value) {
2886
- return jspb.Message.setProto3StringField(this, 1, value);
2887
- };
2888
-
2889
-
2890
- /**
2891
- * optional string error = 2;
2892
- * @return {string}
2893
- */
2894
- proto.search.v1.Status.prototype.getError = function() {
2895
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2896
- };
2897
-
2898
-
2899
- /**
2900
- * @param {string} value
2901
- * @return {!proto.search.v1.Status} returns this
2902
- */
2903
- proto.search.v1.Status.prototype.setError = function(value) {
2904
- return jspb.Message.setProto3StringField(this, 2, value);
2905
- };
2906
-
2907
-
2908
- goog.object.extend(exports, proto.search.v1);