@milaboratories/pl-client 2.16.8 → 2.16.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (253) hide show
  1. package/dist/__external/.pnpm/{@rollup_plugin-typescript@12.1.4_rollup@4.52.4_tslib@2.7.0_typescript@5.6.3 → @rollup_plugin-typescript@12.1.4_rollup@4.52.4_tslib@2.8.1_typescript@5.6.3}/__external/tslib/tslib.es6.cjs +2 -2
  2. package/dist/__external/.pnpm/{@rollup_plugin-typescript@12.1.4_rollup@4.52.4_tslib@2.7.0_typescript@5.6.3 → @rollup_plugin-typescript@12.1.4_rollup@4.52.4_tslib@2.8.1_typescript@5.6.3}/__external/tslib/tslib.es6.cjs.map +1 -1
  3. package/dist/__external/.pnpm/{@rollup_plugin-typescript@12.1.4_rollup@4.52.4_tslib@2.7.0_typescript@5.6.3 → @rollup_plugin-typescript@12.1.4_rollup@4.52.4_tslib@2.8.1_typescript@5.6.3}/__external/tslib/tslib.es6.js +2 -2
  4. package/dist/__external/.pnpm/{@rollup_plugin-typescript@12.1.4_rollup@4.52.4_tslib@2.7.0_typescript@5.6.3 → @rollup_plugin-typescript@12.1.4_rollup@4.52.4_tslib@2.8.1_typescript@5.6.3}/__external/tslib/tslib.es6.js.map +1 -1
  5. package/dist/core/abstract_stream.d.ts +18 -0
  6. package/dist/core/abstract_stream.d.ts.map +1 -0
  7. package/dist/core/client.cjs +6 -6
  8. package/dist/core/client.cjs.map +1 -1
  9. package/dist/core/client.d.ts +3 -3
  10. package/dist/core/client.d.ts.map +1 -1
  11. package/dist/core/client.js +6 -6
  12. package/dist/core/client.js.map +1 -1
  13. package/dist/core/config.cjs +3 -0
  14. package/dist/core/config.cjs.map +1 -1
  15. package/dist/core/config.d.ts +4 -0
  16. package/dist/core/config.d.ts.map +1 -1
  17. package/dist/core/config.js +3 -1
  18. package/dist/core/config.js.map +1 -1
  19. package/dist/core/driver.cjs +11 -0
  20. package/dist/core/driver.cjs.map +1 -1
  21. package/dist/core/driver.d.ts +8 -2
  22. package/dist/core/driver.d.ts.map +1 -1
  23. package/dist/core/driver.js +11 -1
  24. package/dist/core/driver.js.map +1 -1
  25. package/dist/core/errors.cjs +9 -0
  26. package/dist/core/errors.cjs.map +1 -1
  27. package/dist/core/errors.d.ts +1 -1
  28. package/dist/core/errors.d.ts.map +1 -1
  29. package/dist/core/errors.js +9 -0
  30. package/dist/core/errors.js.map +1 -1
  31. package/dist/core/ll_client.cjs +194 -39
  32. package/dist/core/ll_client.cjs.map +1 -1
  33. package/dist/core/ll_client.d.ts +36 -15
  34. package/dist/core/ll_client.d.ts.map +1 -1
  35. package/dist/core/ll_client.js +195 -40
  36. package/dist/core/ll_client.js.map +1 -1
  37. package/dist/core/ll_transaction.cjs.map +1 -1
  38. package/dist/core/ll_transaction.d.ts +3 -3
  39. package/dist/core/ll_transaction.d.ts.map +1 -1
  40. package/dist/core/ll_transaction.js.map +1 -1
  41. package/dist/core/transaction.cjs +2 -2
  42. package/dist/core/transaction.cjs.map +1 -1
  43. package/dist/core/transaction.js +2 -2
  44. package/dist/core/transaction.js.map +1 -1
  45. package/dist/core/type_conversion.cjs +2 -2
  46. package/dist/core/type_conversion.cjs.map +1 -1
  47. package/dist/core/type_conversion.d.ts +2 -2
  48. package/dist/core/type_conversion.d.ts.map +1 -1
  49. package/dist/core/type_conversion.js +2 -2
  50. package/dist/core/type_conversion.js.map +1 -1
  51. package/dist/core/unauth_client.cjs +4 -8
  52. package/dist/core/unauth_client.cjs.map +1 -1
  53. package/dist/core/unauth_client.d.ts +1 -1
  54. package/dist/core/unauth_client.d.ts.map +1 -1
  55. package/dist/core/unauth_client.js +4 -8
  56. package/dist/core/unauth_client.js.map +1 -1
  57. package/dist/core/wire.d.ts +34 -0
  58. package/dist/core/wire.d.ts.map +1 -0
  59. package/dist/index.cjs +4 -0
  60. package/dist/index.cjs.map +1 -1
  61. package/dist/index.d.ts +2 -1
  62. package/dist/index.d.ts.map +1 -1
  63. package/dist/index.js +4 -2
  64. package/dist/index.js.map +1 -1
  65. package/dist/proto-grpc/github.com/googleapis/googleapis/google/rpc/status.cjs.map +1 -0
  66. package/dist/{proto → proto-grpc}/github.com/googleapis/googleapis/google/rpc/status.d.ts +4 -2
  67. package/dist/proto-grpc/github.com/googleapis/googleapis/google/rpc/status.d.ts.map +1 -0
  68. package/dist/proto-grpc/github.com/googleapis/googleapis/google/rpc/status.js.map +1 -0
  69. package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/plapi/plapiproto/api.cjs +25 -25
  70. package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.cjs.map +1 -0
  71. package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.client.cjs.map +1 -0
  72. package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.client.d.ts.map +1 -0
  73. package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.client.js.map +1 -0
  74. package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.d.ts.map +1 -0
  75. package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/plapi/plapiproto/api.js +25 -25
  76. package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.js.map +1 -0
  77. package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api_types.cjs.map +1 -0
  78. package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api_types.d.ts.map +1 -0
  79. package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api_types.js.map +1 -0
  80. package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/base_types.cjs.map +1 -0
  81. package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/base_types.d.ts.map +1 -0
  82. package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/base_types.js.map +1 -0
  83. package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/import.d.ts.map +1 -0
  84. package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/resource_types.cjs.map +1 -0
  85. package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/resource_types.d.ts.map +1 -0
  86. package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/resource_types.js.map +1 -0
  87. package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/ws-test.d.ts +73 -0
  88. package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/ws-test.d.ts.map +1 -0
  89. package/dist/{proto → proto-grpc}/google/api/http.d.ts +28 -32
  90. package/dist/proto-grpc/google/api/http.d.ts.map +1 -0
  91. package/dist/proto-grpc/google/protobuf/any.cjs.map +1 -0
  92. package/dist/proto-grpc/google/protobuf/any.d.ts.map +1 -0
  93. package/dist/proto-grpc/google/protobuf/any.js.map +1 -0
  94. package/dist/{proto → proto-grpc}/google/protobuf/descriptor.d.ts +6 -152
  95. package/dist/proto-grpc/google/protobuf/descriptor.d.ts.map +1 -0
  96. package/dist/proto-grpc/google/protobuf/duration.cjs.map +1 -0
  97. package/dist/proto-grpc/google/protobuf/duration.d.ts.map +1 -0
  98. package/dist/proto-grpc/google/protobuf/duration.js.map +1 -0
  99. package/dist/proto-grpc/google/protobuf/empty.d.ts.map +1 -0
  100. package/dist/proto-grpc/google/protobuf/struct.d.ts.map +1 -0
  101. package/dist/proto-grpc/google/protobuf/timestamp.cjs.map +1 -0
  102. package/dist/proto-grpc/google/protobuf/timestamp.d.ts.map +1 -0
  103. package/dist/proto-grpc/google/protobuf/timestamp.js.map +1 -0
  104. package/dist/{proto → proto-grpc}/google/protobuf/wrappers.d.ts +0 -27
  105. package/dist/proto-grpc/google/protobuf/wrappers.d.ts.map +1 -0
  106. package/dist/proto-grpc/google/rpc/code.cjs +240 -0
  107. package/dist/proto-grpc/google/rpc/code.cjs.map +1 -0
  108. package/dist/proto-grpc/google/rpc/code.d.ts +219 -0
  109. package/dist/proto-grpc/google/rpc/code.d.ts.map +1 -0
  110. package/dist/proto-grpc/google/rpc/code.js +240 -0
  111. package/dist/proto-grpc/google/rpc/code.js.map +1 -0
  112. package/dist/proto-grpc/google/rpc/error_details.d.ts +654 -0
  113. package/dist/proto-grpc/google/rpc/error_details.d.ts.map +1 -0
  114. package/dist/proto-grpc/google/rpc/http.d.ts +121 -0
  115. package/dist/proto-grpc/google/rpc/http.d.ts.map +1 -0
  116. package/dist/proto-grpc/google/rpc/status.d.ts +55 -0
  117. package/dist/proto-grpc/google/rpc/status.d.ts.map +1 -0
  118. package/dist/proto-rest/index.cjs +64 -0
  119. package/dist/proto-rest/index.cjs.map +1 -0
  120. package/dist/proto-rest/index.d.ts +23 -0
  121. package/dist/proto-rest/index.d.ts.map +1 -0
  122. package/dist/proto-rest/index.js +61 -0
  123. package/dist/proto-rest/index.js.map +1 -0
  124. package/dist/proto-rest/plapi.d.ts +1488 -0
  125. package/dist/proto-rest/plapi.d.ts.map +1 -0
  126. package/package.json +7 -4
  127. package/src/core/abstract_stream.ts +25 -0
  128. package/src/core/client.ts +8 -8
  129. package/src/core/config.ts +9 -0
  130. package/src/core/driver.ts +13 -2
  131. package/src/core/errors.ts +7 -1
  132. package/src/core/ll_client.test.ts +1 -1
  133. package/src/core/ll_client.ts +212 -42
  134. package/src/core/ll_transaction.test.ts +1 -1
  135. package/src/core/ll_transaction.ts +4 -4
  136. package/src/core/transaction.ts +1 -1
  137. package/src/core/type_conversion.ts +3 -3
  138. package/src/core/unauth_client.test.ts +6 -0
  139. package/src/core/unauth_client.ts +8 -12
  140. package/src/core/wire.ts +40 -0
  141. package/src/index.ts +3 -1
  142. package/src/{proto → proto-grpc}/github.com/googleapis/googleapis/google/rpc/status.ts +5 -3
  143. package/src/{proto → proto-grpc}/github.com/milaboratory/pl/plapi/plapiproto/api.ts +25 -25
  144. package/src/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/ws-test.ts +209 -0
  145. package/src/{proto → proto-grpc}/google/api/http.ts +29 -33
  146. package/src/{proto → proto-grpc}/google/protobuf/descriptor.ts +11 -221
  147. package/src/{proto → proto-grpc}/google/protobuf/wrappers.ts +4 -38
  148. package/src/proto-grpc/google/rpc/code.ts +236 -0
  149. package/src/proto-grpc/google/rpc/error_details.ts +1386 -0
  150. package/src/proto-grpc/google/rpc/http.ts +307 -0
  151. package/src/proto-grpc/google/rpc/status.ts +127 -0
  152. package/src/proto-rest/index.ts +83 -0
  153. package/src/proto-rest/plapi.ts +1488 -0
  154. package/dist/core/grpc.d.ts +0 -16
  155. package/dist/core/grpc.d.ts.map +0 -1
  156. package/dist/core/http.d.ts +0 -2
  157. package/dist/core/http.d.ts.map +0 -1
  158. package/dist/proto/github.com/googleapis/googleapis/google/rpc/status.cjs.map +0 -1
  159. package/dist/proto/github.com/googleapis/googleapis/google/rpc/status.d.ts.map +0 -1
  160. package/dist/proto/github.com/googleapis/googleapis/google/rpc/status.js.map +0 -1
  161. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.d.ts +0 -40
  162. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.d.ts.map +0 -1
  163. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.d.ts +0 -116
  164. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.d.ts.map +0 -1
  165. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.d.ts +0 -46
  166. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.d.ts.map +0 -1
  167. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.d.ts +0 -170
  168. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.d.ts.map +0 -1
  169. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.d.ts +0 -51
  170. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.d.ts.map +0 -1
  171. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.d.ts +0 -176
  172. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.d.ts.map +0 -1
  173. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.d.ts +0 -131
  174. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.d.ts.map +0 -1
  175. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.d.ts +0 -320
  176. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.d.ts.map +0 -1
  177. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.cjs.map +0 -1
  178. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.client.cjs.map +0 -1
  179. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.client.d.ts.map +0 -1
  180. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.client.js.map +0 -1
  181. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.d.ts.map +0 -1
  182. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.js.map +0 -1
  183. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api_types.cjs.map +0 -1
  184. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api_types.d.ts.map +0 -1
  185. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api_types.js.map +0 -1
  186. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/base_types.cjs.map +0 -1
  187. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/base_types.d.ts.map +0 -1
  188. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/base_types.js.map +0 -1
  189. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/import.d.ts.map +0 -1
  190. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/resource_types.cjs.map +0 -1
  191. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/resource_types.d.ts.map +0 -1
  192. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/resource_types.js.map +0 -1
  193. package/dist/proto/google/api/http.d.ts.map +0 -1
  194. package/dist/proto/google/protobuf/any.cjs.map +0 -1
  195. package/dist/proto/google/protobuf/any.d.ts.map +0 -1
  196. package/dist/proto/google/protobuf/any.js.map +0 -1
  197. package/dist/proto/google/protobuf/descriptor.d.ts.map +0 -1
  198. package/dist/proto/google/protobuf/duration.cjs.map +0 -1
  199. package/dist/proto/google/protobuf/duration.d.ts.map +0 -1
  200. package/dist/proto/google/protobuf/duration.js.map +0 -1
  201. package/dist/proto/google/protobuf/empty.d.ts.map +0 -1
  202. package/dist/proto/google/protobuf/struct.d.ts.map +0 -1
  203. package/dist/proto/google/protobuf/timestamp.cjs.map +0 -1
  204. package/dist/proto/google/protobuf/timestamp.d.ts.map +0 -1
  205. package/dist/proto/google/protobuf/timestamp.js.map +0 -1
  206. package/dist/proto/google/protobuf/wrappers.d.ts.map +0 -1
  207. package/src/core/grpc.ts +0 -17
  208. package/src/core/http.ts +0 -178
  209. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.ts +0 -45
  210. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.ts +0 -313
  211. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.ts +0 -51
  212. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.ts +0 -406
  213. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.ts +0 -59
  214. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.ts +0 -489
  215. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.ts +0 -148
  216. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.ts +0 -719
  217. /package/dist/{proto → proto-grpc}/github.com/googleapis/googleapis/google/rpc/status.cjs +0 -0
  218. /package/dist/{proto → proto-grpc}/github.com/googleapis/googleapis/google/rpc/status.js +0 -0
  219. /package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/plapi/plapiproto/api.client.cjs +0 -0
  220. /package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/plapi/plapiproto/api.client.d.ts +0 -0
  221. /package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/plapi/plapiproto/api.client.js +0 -0
  222. /package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/plapi/plapiproto/api.d.ts +0 -0
  223. /package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/plapi/plapiproto/api_types.cjs +0 -0
  224. /package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/plapi/plapiproto/api_types.d.ts +0 -0
  225. /package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/plapi/plapiproto/api_types.js +0 -0
  226. /package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/plapi/plapiproto/base_types.cjs +0 -0
  227. /package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/plapi/plapiproto/base_types.d.ts +0 -0
  228. /package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/plapi/plapiproto/base_types.js +0 -0
  229. /package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/plapi/plapiproto/import.d.ts +0 -0
  230. /package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/plapi/plapiproto/resource_types.cjs +0 -0
  231. /package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/plapi/plapiproto/resource_types.d.ts +0 -0
  232. /package/dist/{proto → proto-grpc}/github.com/milaboratory/pl/plapi/plapiproto/resource_types.js +0 -0
  233. /package/dist/{proto → proto-grpc}/google/protobuf/any.cjs +0 -0
  234. /package/dist/{proto → proto-grpc}/google/protobuf/any.d.ts +0 -0
  235. /package/dist/{proto → proto-grpc}/google/protobuf/any.js +0 -0
  236. /package/dist/{proto → proto-grpc}/google/protobuf/duration.cjs +0 -0
  237. /package/dist/{proto → proto-grpc}/google/protobuf/duration.d.ts +0 -0
  238. /package/dist/{proto → proto-grpc}/google/protobuf/duration.js +0 -0
  239. /package/dist/{proto → proto-grpc}/google/protobuf/empty.d.ts +0 -0
  240. /package/dist/{proto → proto-grpc}/google/protobuf/struct.d.ts +0 -0
  241. /package/dist/{proto → proto-grpc}/google/protobuf/timestamp.cjs +0 -0
  242. /package/dist/{proto → proto-grpc}/google/protobuf/timestamp.d.ts +0 -0
  243. /package/dist/{proto → proto-grpc}/google/protobuf/timestamp.js +0 -0
  244. /package/src/{proto → proto-grpc}/github.com/milaboratory/pl/plapi/plapiproto/api.client.ts +0 -0
  245. /package/src/{proto → proto-grpc}/github.com/milaboratory/pl/plapi/plapiproto/api_types.ts +0 -0
  246. /package/src/{proto → proto-grpc}/github.com/milaboratory/pl/plapi/plapiproto/base_types.ts +0 -0
  247. /package/src/{proto → proto-grpc}/github.com/milaboratory/pl/plapi/plapiproto/import.ts +0 -0
  248. /package/src/{proto → proto-grpc}/github.com/milaboratory/pl/plapi/plapiproto/resource_types.ts +0 -0
  249. /package/src/{proto → proto-grpc}/google/protobuf/any.ts +0 -0
  250. /package/src/{proto → proto-grpc}/google/protobuf/duration.ts +0 -0
  251. /package/src/{proto → proto-grpc}/google/protobuf/empty.ts +0 -0
  252. /package/src/{proto → proto-grpc}/google/protobuf/struct.ts +0 -0
  253. /package/src/{proto → proto-grpc}/google/protobuf/timestamp.ts +0 -0
@@ -1,719 +0,0 @@
1
- // @generated by protobuf-ts 2.11.1 with parameter client_generic,optimize_speed,generate_dependencies,force_server_none
2
- // @generated from protobuf file "github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.proto" (package "MiLaboratories.Controller.Shared", syntax proto3)
3
- // tslint:disable
4
- import { ServiceType } from "@protobuf-ts/runtime-rpc";
5
- import { WireType } from "@protobuf-ts/runtime";
6
- import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
7
- import type { IBinaryWriter } from "@protobuf-ts/runtime";
8
- import type { BinaryReadOptions } from "@protobuf-ts/runtime";
9
- import type { IBinaryReader } from "@protobuf-ts/runtime";
10
- import { UnknownFieldHandler } from "@protobuf-ts/runtime";
11
- import type { PartialMessage } from "@protobuf-ts/runtime";
12
- import { reflectionMergePartial } from "@protobuf-ts/runtime";
13
- import { MessageType } from "@protobuf-ts/runtime";
14
- /**
15
- * @generated from protobuf message MiLaboratories.Controller.Shared.StreamingAPI
16
- */
17
- export interface StreamingAPI {
18
- }
19
- /**
20
- * @generated from protobuf message MiLaboratories.Controller.Shared.StreamingAPI.StreamBinary
21
- */
22
- export interface StreamingAPI_StreamBinary {
23
- /**
24
- * <resource_id> of Stream resource, that keeps info on item to be streamed.
25
- *
26
- * @generated from protobuf field: uint64 resource_id = 1
27
- */
28
- resourceId: bigint;
29
- /**
30
- * <offset> makes streamer to perform seek operation to given offset before sending the data.
31
- *
32
- * @generated from protobuf field: int64 offset = 2
33
- */
34
- offset: bigint;
35
- /**
36
- * <chunk_size> limits the maximum size of <data> for each response message in stream.
37
- *
38
- * Default value: 32 768 (32 KiB)
39
- * Max value: 3900 * 1024 (3.9 MiB)
40
- *
41
- * @generated from protobuf field: optional uint32 chunk_size = 11
42
- */
43
- chunkSize?: number;
44
- /**
45
- * <read_limit> allows client to limit total data sent from server.
46
- * This limit is aggregation of all data, sent in all chunks.
47
- * E.g. to read 2000 bytes of data in chunks of at most
48
- * 130 bytes, use <chunk_size> = 130; <read_limit> = 2000.
49
- * For storage item of appropriate size this settings will result in
50
- * 16 messages from server: 15 of 130 bytes and one of 50 bytes.
51
- *
52
- * @generated from protobuf field: optional int64 read_limit = 20
53
- */
54
- readLimit?: bigint;
55
- }
56
- /**
57
- * @generated from protobuf message MiLaboratories.Controller.Shared.StreamingAPI.ReadBinary
58
- */
59
- export interface StreamingAPI_ReadBinary {
60
- /**
61
- * <resource_id> of Stream resource, that keeps info on item to be streamed.
62
- *
63
- * @generated from protobuf field: uint64 resource_id = 1
64
- */
65
- resourceId: bigint;
66
- /**
67
- * <offset> makes streamer to perform seek operation to given offset before sending the data.
68
- *
69
- * @generated from protobuf field: int64 offset = 2
70
- */
71
- offset: bigint;
72
- /**
73
- * <chunk_size> limits the maximum size of <data> for response message in stream.
74
- *
75
- * Default value: 32 768 (32 KiB)
76
- * Max value: 3900 * 1024 (3.9 MiB)
77
- *
78
- * @generated from protobuf field: optional uint32 chunk_size = 11
79
- */
80
- chunkSize?: number;
81
- }
82
- /**
83
- * @generated from protobuf message MiLaboratories.Controller.Shared.StreamingAPI.StreamText
84
- */
85
- export interface StreamingAPI_StreamText {
86
- /**
87
- * <resource_id> of Stream resource, that keeps info on item to be streamed.
88
- *
89
- * @generated from protobuf field: uint64 resource_id = 1
90
- */
91
- resourceId: bigint;
92
- /**
93
- * <offset> makes streamer to perform seek operation to given offset before sending the contents.
94
- * This offset is taken in BYTES, as it eases streaming recovery after client reconnection or controller restart.
95
- * Client can just use the <new_offset> value of the last response from server to continue streaming after reconnection.
96
- *
97
- * @generated from protobuf field: int64 offset = 2
98
- */
99
- offset: bigint;
100
- /**
101
- * <read_limit> allows client to limit total data sent from server.
102
- * This limit is aggregation of all data, sent in all chunks, measured
103
- * in lines of text.
104
- * E.g. to read top 1000 lines from stream source, use <read_limit> = 1000.
105
- * When both <read_limit> and <search>/<search_re> are set, the <read_limit> is applied first.
106
- * this is equivalent to 'head -n <read_limit> | grep <search>'.
107
- *
108
- * @generated from protobuf field: optional int64 read_limit = 20
109
- */
110
- readLimit?: bigint;
111
- /**
112
- * <search> is substring for line search pattern.
113
- * This option makes controller to send to the client only lines, that
114
- * have given substring.
115
- *
116
- * @generated from protobuf field: optional string search = 21
117
- */
118
- search?: string;
119
- /**
120
- * <search_re> is regular expression for line search pattern.
121
- * This option makes controller to send to the client only lines, that
122
- * match given regular expression.
123
- *
124
- * @generated from protobuf field: optional string search_re = 22
125
- */
126
- searchRe?: string;
127
- }
128
- /**
129
- * @generated from protobuf message MiLaboratories.Controller.Shared.StreamingAPI.ReadText
130
- */
131
- export interface StreamingAPI_ReadText {
132
- /**
133
- * <resource_id> of Stream resource, that keeps info on item to be streamed.
134
- *
135
- * @generated from protobuf field: uint64 resource_id = 1
136
- */
137
- resourceId: bigint;
138
- /**
139
- * <offset> makes streamer to perform seek operation to given offset before sending the contents.
140
- * This offset is taken in BYTES, as it eases streaming recovery after client reconnection or controller restart.
141
- * Client can just use the <new_offset> value of the last response from server to continue streaming after reconnection.
142
- *
143
- * @generated from protobuf field: int64 offset = 2
144
- */
145
- offset: bigint;
146
- /**
147
- * <read_limit> allows client to limit total data sent from server.
148
- * Measured in lines of text.
149
- * E.g. to read top 1000 lines from stream source, use <read_limit> = 1000.
150
- * When both <read_limit> and <search>/<search_re> are set, the <read_limit> is applied first.
151
- * this is equivalent to 'head -n <read_limit> | grep <search>'.
152
- * At most 3.9 MiB (3900 * 1024 KiB) of data is returned in single read regardless of <read_limit> option
153
- * Only full lines of text are returned except for the last line from the completed source
154
- * (the one that is not expected to have new data, like blob in storage)
155
- *
156
- * @generated from protobuf field: optional int64 read_limit = 20
157
- */
158
- readLimit?: bigint;
159
- /**
160
- * <search> is substring for line search pattern.
161
- * This option makes controller to send to the client only lines, that
162
- * have given substring.
163
- *
164
- * @generated from protobuf field: optional string search = 21
165
- */
166
- search?: string;
167
- /**
168
- * <search_re> is regular expression for line search pattern.
169
- * This option makes controller to send to the client only lines, that
170
- * match given regular expression.
171
- *
172
- * @generated from protobuf field: optional string search_re = 22
173
- */
174
- searchRe?: string;
175
- }
176
- /**
177
- * @generated from protobuf message MiLaboratories.Controller.Shared.StreamingAPI.LastLines
178
- */
179
- export interface StreamingAPI_LastLines {
180
- /**
181
- * <resource_id> of Stream resource, that keeps info on item to be streamed.
182
- *
183
- * @generated from protobuf field: uint64 resource_id = 1
184
- */
185
- resourceId: bigint;
186
- /**
187
- * <offset> makes streamer to perform seek operation to given offset before sending the contents.
188
- * This offset is taken in BYTES, as it eases streaming recovery after client reconnection or controller restart.
189
- * By default, LastLines starts to treat the data source from the very last byte available in data stream
190
- * at the moment of call, but client can set the server to start from earlier position.
191
- *
192
- * @generated from protobuf field: optional int64 offset = 2
193
- */
194
- offset?: bigint;
195
- /**
196
- * <line_count> makes streamer to return up to <line_count> lines to the client.
197
- * Default value: 1
198
- *
199
- * @generated from protobuf field: optional int32 line_count = 3
200
- */
201
- lineCount?: number;
202
- /**
203
- * <search> is substring for line search pattern.
204
- * This option makes controller to send to the client only lines, that
205
- * have given substring.
206
- *
207
- * @generated from protobuf field: optional string search = 21
208
- */
209
- search?: string;
210
- /**
211
- * <search_re> is regular expression for line search pattern.
212
- * This option makes controller to send to the client only lines, that
213
- * match given regular expression.
214
- *
215
- * @generated from protobuf field: optional string search_re = 22
216
- */
217
- searchRe?: string;
218
- }
219
- /**
220
- * @generated from protobuf message MiLaboratories.Controller.Shared.StreamingAPI.Response
221
- */
222
- export interface StreamingAPI_Response {
223
- /**
224
- * data chunk from item, starting from the <new_offset> of the previous message in the same stream.
225
- *
226
- * @generated from protobuf field: bytes data = 1
227
- */
228
- data: Uint8Array;
229
- /**
230
- * <size> is the actual size of the streamed item at the moment of this message.
231
- * This might be not a final amount of streamed data, as stream source can be updated
232
- * by other independent process (e.g., data is written to log file).
233
- * This field in combination with <new_offset> shows, how far the client is from the end
234
- * of the data right now.
235
- *
236
- * @generated from protobuf field: uint64 size = 2
237
- */
238
- size: bigint;
239
- /**
240
- * <new_offset> is the new offset in bytes from the start of the streamed item,
241
- * including size of <data> in current response.
242
- * Call to Stream rpc with <offset> = <new_offset> will continue
243
- * streaming from the place of last received message
244
- * (e.g. <offset> = <new_offset> - 1 will repeat the last byte of
245
- * previously received <data>)
246
- *
247
- * @generated from protobuf field: uint64 new_offset = 3
248
- */
249
- newOffset: bigint;
250
- }
251
- // @generated message type with reflection information, may provide speed optimized methods
252
- class StreamingAPI$Type extends MessageType<StreamingAPI> {
253
- constructor() {
254
- super("MiLaboratories.Controller.Shared.StreamingAPI", []);
255
- }
256
- create(value?: PartialMessage<StreamingAPI>): StreamingAPI {
257
- const message = globalThis.Object.create((this.messagePrototype!));
258
- if (value !== undefined)
259
- reflectionMergePartial<StreamingAPI>(this, message, value);
260
- return message;
261
- }
262
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StreamingAPI): StreamingAPI {
263
- let message = target ?? this.create(), end = reader.pos + length;
264
- while (reader.pos < end) {
265
- let [fieldNo, wireType] = reader.tag();
266
- switch (fieldNo) {
267
- default:
268
- let u = options.readUnknownField;
269
- if (u === "throw")
270
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
271
- let d = reader.skip(wireType);
272
- if (u !== false)
273
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
274
- }
275
- }
276
- return message;
277
- }
278
- internalBinaryWrite(message: StreamingAPI, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
279
- let u = options.writeUnknownFields;
280
- if (u !== false)
281
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
282
- return writer;
283
- }
284
- }
285
- /**
286
- * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.StreamingAPI
287
- */
288
- export const StreamingAPI = new StreamingAPI$Type();
289
- // @generated message type with reflection information, may provide speed optimized methods
290
- class StreamingAPI_StreamBinary$Type extends MessageType<StreamingAPI_StreamBinary> {
291
- constructor() {
292
- super("MiLaboratories.Controller.Shared.StreamingAPI.StreamBinary", [
293
- { no: 1, name: "resource_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
294
- { no: 2, name: "offset", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
295
- { no: 11, name: "chunk_size", kind: "scalar", opt: true, T: 13 /*ScalarType.UINT32*/ },
296
- { no: 20, name: "read_limit", kind: "scalar", opt: true, T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ }
297
- ]);
298
- }
299
- create(value?: PartialMessage<StreamingAPI_StreamBinary>): StreamingAPI_StreamBinary {
300
- const message = globalThis.Object.create((this.messagePrototype!));
301
- message.resourceId = 0n;
302
- message.offset = 0n;
303
- if (value !== undefined)
304
- reflectionMergePartial<StreamingAPI_StreamBinary>(this, message, value);
305
- return message;
306
- }
307
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StreamingAPI_StreamBinary): StreamingAPI_StreamBinary {
308
- let message = target ?? this.create(), end = reader.pos + length;
309
- while (reader.pos < end) {
310
- let [fieldNo, wireType] = reader.tag();
311
- switch (fieldNo) {
312
- case /* uint64 resource_id */ 1:
313
- message.resourceId = reader.uint64().toBigInt();
314
- break;
315
- case /* int64 offset */ 2:
316
- message.offset = reader.int64().toBigInt();
317
- break;
318
- case /* optional uint32 chunk_size */ 11:
319
- message.chunkSize = reader.uint32();
320
- break;
321
- case /* optional int64 read_limit */ 20:
322
- message.readLimit = reader.int64().toBigInt();
323
- break;
324
- default:
325
- let u = options.readUnknownField;
326
- if (u === "throw")
327
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
328
- let d = reader.skip(wireType);
329
- if (u !== false)
330
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
331
- }
332
- }
333
- return message;
334
- }
335
- internalBinaryWrite(message: StreamingAPI_StreamBinary, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
336
- /* uint64 resource_id = 1; */
337
- if (message.resourceId !== 0n)
338
- writer.tag(1, WireType.Varint).uint64(message.resourceId);
339
- /* int64 offset = 2; */
340
- if (message.offset !== 0n)
341
- writer.tag(2, WireType.Varint).int64(message.offset);
342
- /* optional uint32 chunk_size = 11; */
343
- if (message.chunkSize !== undefined)
344
- writer.tag(11, WireType.Varint).uint32(message.chunkSize);
345
- /* optional int64 read_limit = 20; */
346
- if (message.readLimit !== undefined)
347
- writer.tag(20, WireType.Varint).int64(message.readLimit);
348
- let u = options.writeUnknownFields;
349
- if (u !== false)
350
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
351
- return writer;
352
- }
353
- }
354
- /**
355
- * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.StreamingAPI.StreamBinary
356
- */
357
- export const StreamingAPI_StreamBinary = new StreamingAPI_StreamBinary$Type();
358
- // @generated message type with reflection information, may provide speed optimized methods
359
- class StreamingAPI_ReadBinary$Type extends MessageType<StreamingAPI_ReadBinary> {
360
- constructor() {
361
- super("MiLaboratories.Controller.Shared.StreamingAPI.ReadBinary", [
362
- { no: 1, name: "resource_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
363
- { no: 2, name: "offset", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
364
- { no: 11, name: "chunk_size", kind: "scalar", opt: true, T: 13 /*ScalarType.UINT32*/ }
365
- ]);
366
- }
367
- create(value?: PartialMessage<StreamingAPI_ReadBinary>): StreamingAPI_ReadBinary {
368
- const message = globalThis.Object.create((this.messagePrototype!));
369
- message.resourceId = 0n;
370
- message.offset = 0n;
371
- if (value !== undefined)
372
- reflectionMergePartial<StreamingAPI_ReadBinary>(this, message, value);
373
- return message;
374
- }
375
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StreamingAPI_ReadBinary): StreamingAPI_ReadBinary {
376
- let message = target ?? this.create(), end = reader.pos + length;
377
- while (reader.pos < end) {
378
- let [fieldNo, wireType] = reader.tag();
379
- switch (fieldNo) {
380
- case /* uint64 resource_id */ 1:
381
- message.resourceId = reader.uint64().toBigInt();
382
- break;
383
- case /* int64 offset */ 2:
384
- message.offset = reader.int64().toBigInt();
385
- break;
386
- case /* optional uint32 chunk_size */ 11:
387
- message.chunkSize = reader.uint32();
388
- break;
389
- default:
390
- let u = options.readUnknownField;
391
- if (u === "throw")
392
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
393
- let d = reader.skip(wireType);
394
- if (u !== false)
395
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
396
- }
397
- }
398
- return message;
399
- }
400
- internalBinaryWrite(message: StreamingAPI_ReadBinary, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
401
- /* uint64 resource_id = 1; */
402
- if (message.resourceId !== 0n)
403
- writer.tag(1, WireType.Varint).uint64(message.resourceId);
404
- /* int64 offset = 2; */
405
- if (message.offset !== 0n)
406
- writer.tag(2, WireType.Varint).int64(message.offset);
407
- /* optional uint32 chunk_size = 11; */
408
- if (message.chunkSize !== undefined)
409
- writer.tag(11, WireType.Varint).uint32(message.chunkSize);
410
- let u = options.writeUnknownFields;
411
- if (u !== false)
412
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
413
- return writer;
414
- }
415
- }
416
- /**
417
- * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.StreamingAPI.ReadBinary
418
- */
419
- export const StreamingAPI_ReadBinary = new StreamingAPI_ReadBinary$Type();
420
- // @generated message type with reflection information, may provide speed optimized methods
421
- class StreamingAPI_StreamText$Type extends MessageType<StreamingAPI_StreamText> {
422
- constructor() {
423
- super("MiLaboratories.Controller.Shared.StreamingAPI.StreamText", [
424
- { no: 1, name: "resource_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
425
- { no: 2, name: "offset", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
426
- { no: 20, name: "read_limit", kind: "scalar", opt: true, T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
427
- { no: 21, name: "search", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
428
- { no: 22, name: "search_re", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
429
- ]);
430
- }
431
- create(value?: PartialMessage<StreamingAPI_StreamText>): StreamingAPI_StreamText {
432
- const message = globalThis.Object.create((this.messagePrototype!));
433
- message.resourceId = 0n;
434
- message.offset = 0n;
435
- if (value !== undefined)
436
- reflectionMergePartial<StreamingAPI_StreamText>(this, message, value);
437
- return message;
438
- }
439
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StreamingAPI_StreamText): StreamingAPI_StreamText {
440
- let message = target ?? this.create(), end = reader.pos + length;
441
- while (reader.pos < end) {
442
- let [fieldNo, wireType] = reader.tag();
443
- switch (fieldNo) {
444
- case /* uint64 resource_id */ 1:
445
- message.resourceId = reader.uint64().toBigInt();
446
- break;
447
- case /* int64 offset */ 2:
448
- message.offset = reader.int64().toBigInt();
449
- break;
450
- case /* optional int64 read_limit */ 20:
451
- message.readLimit = reader.int64().toBigInt();
452
- break;
453
- case /* optional string search */ 21:
454
- message.search = reader.string();
455
- break;
456
- case /* optional string search_re */ 22:
457
- message.searchRe = reader.string();
458
- break;
459
- default:
460
- let u = options.readUnknownField;
461
- if (u === "throw")
462
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
463
- let d = reader.skip(wireType);
464
- if (u !== false)
465
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
466
- }
467
- }
468
- return message;
469
- }
470
- internalBinaryWrite(message: StreamingAPI_StreamText, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
471
- /* uint64 resource_id = 1; */
472
- if (message.resourceId !== 0n)
473
- writer.tag(1, WireType.Varint).uint64(message.resourceId);
474
- /* int64 offset = 2; */
475
- if (message.offset !== 0n)
476
- writer.tag(2, WireType.Varint).int64(message.offset);
477
- /* optional int64 read_limit = 20; */
478
- if (message.readLimit !== undefined)
479
- writer.tag(20, WireType.Varint).int64(message.readLimit);
480
- /* optional string search = 21; */
481
- if (message.search !== undefined)
482
- writer.tag(21, WireType.LengthDelimited).string(message.search);
483
- /* optional string search_re = 22; */
484
- if (message.searchRe !== undefined)
485
- writer.tag(22, WireType.LengthDelimited).string(message.searchRe);
486
- let u = options.writeUnknownFields;
487
- if (u !== false)
488
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
489
- return writer;
490
- }
491
- }
492
- /**
493
- * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.StreamingAPI.StreamText
494
- */
495
- export const StreamingAPI_StreamText = new StreamingAPI_StreamText$Type();
496
- // @generated message type with reflection information, may provide speed optimized methods
497
- class StreamingAPI_ReadText$Type extends MessageType<StreamingAPI_ReadText> {
498
- constructor() {
499
- super("MiLaboratories.Controller.Shared.StreamingAPI.ReadText", [
500
- { no: 1, name: "resource_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
501
- { no: 2, name: "offset", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
502
- { no: 20, name: "read_limit", kind: "scalar", opt: true, T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
503
- { no: 21, name: "search", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
504
- { no: 22, name: "search_re", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
505
- ]);
506
- }
507
- create(value?: PartialMessage<StreamingAPI_ReadText>): StreamingAPI_ReadText {
508
- const message = globalThis.Object.create((this.messagePrototype!));
509
- message.resourceId = 0n;
510
- message.offset = 0n;
511
- if (value !== undefined)
512
- reflectionMergePartial<StreamingAPI_ReadText>(this, message, value);
513
- return message;
514
- }
515
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StreamingAPI_ReadText): StreamingAPI_ReadText {
516
- let message = target ?? this.create(), end = reader.pos + length;
517
- while (reader.pos < end) {
518
- let [fieldNo, wireType] = reader.tag();
519
- switch (fieldNo) {
520
- case /* uint64 resource_id */ 1:
521
- message.resourceId = reader.uint64().toBigInt();
522
- break;
523
- case /* int64 offset */ 2:
524
- message.offset = reader.int64().toBigInt();
525
- break;
526
- case /* optional int64 read_limit */ 20:
527
- message.readLimit = reader.int64().toBigInt();
528
- break;
529
- case /* optional string search */ 21:
530
- message.search = reader.string();
531
- break;
532
- case /* optional string search_re */ 22:
533
- message.searchRe = reader.string();
534
- break;
535
- default:
536
- let u = options.readUnknownField;
537
- if (u === "throw")
538
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
539
- let d = reader.skip(wireType);
540
- if (u !== false)
541
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
542
- }
543
- }
544
- return message;
545
- }
546
- internalBinaryWrite(message: StreamingAPI_ReadText, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
547
- /* uint64 resource_id = 1; */
548
- if (message.resourceId !== 0n)
549
- writer.tag(1, WireType.Varint).uint64(message.resourceId);
550
- /* int64 offset = 2; */
551
- if (message.offset !== 0n)
552
- writer.tag(2, WireType.Varint).int64(message.offset);
553
- /* optional int64 read_limit = 20; */
554
- if (message.readLimit !== undefined)
555
- writer.tag(20, WireType.Varint).int64(message.readLimit);
556
- /* optional string search = 21; */
557
- if (message.search !== undefined)
558
- writer.tag(21, WireType.LengthDelimited).string(message.search);
559
- /* optional string search_re = 22; */
560
- if (message.searchRe !== undefined)
561
- writer.tag(22, WireType.LengthDelimited).string(message.searchRe);
562
- let u = options.writeUnknownFields;
563
- if (u !== false)
564
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
565
- return writer;
566
- }
567
- }
568
- /**
569
- * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.StreamingAPI.ReadText
570
- */
571
- export const StreamingAPI_ReadText = new StreamingAPI_ReadText$Type();
572
- // @generated message type with reflection information, may provide speed optimized methods
573
- class StreamingAPI_LastLines$Type extends MessageType<StreamingAPI_LastLines> {
574
- constructor() {
575
- super("MiLaboratories.Controller.Shared.StreamingAPI.LastLines", [
576
- { no: 1, name: "resource_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
577
- { no: 2, name: "offset", kind: "scalar", opt: true, T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
578
- { no: 3, name: "line_count", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ },
579
- { no: 21, name: "search", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
580
- { no: 22, name: "search_re", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
581
- ]);
582
- }
583
- create(value?: PartialMessage<StreamingAPI_LastLines>): StreamingAPI_LastLines {
584
- const message = globalThis.Object.create((this.messagePrototype!));
585
- message.resourceId = 0n;
586
- if (value !== undefined)
587
- reflectionMergePartial<StreamingAPI_LastLines>(this, message, value);
588
- return message;
589
- }
590
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StreamingAPI_LastLines): StreamingAPI_LastLines {
591
- let message = target ?? this.create(), end = reader.pos + length;
592
- while (reader.pos < end) {
593
- let [fieldNo, wireType] = reader.tag();
594
- switch (fieldNo) {
595
- case /* uint64 resource_id */ 1:
596
- message.resourceId = reader.uint64().toBigInt();
597
- break;
598
- case /* optional int64 offset */ 2:
599
- message.offset = reader.int64().toBigInt();
600
- break;
601
- case /* optional int32 line_count */ 3:
602
- message.lineCount = reader.int32();
603
- break;
604
- case /* optional string search */ 21:
605
- message.search = reader.string();
606
- break;
607
- case /* optional string search_re */ 22:
608
- message.searchRe = reader.string();
609
- break;
610
- default:
611
- let u = options.readUnknownField;
612
- if (u === "throw")
613
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
614
- let d = reader.skip(wireType);
615
- if (u !== false)
616
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
617
- }
618
- }
619
- return message;
620
- }
621
- internalBinaryWrite(message: StreamingAPI_LastLines, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
622
- /* uint64 resource_id = 1; */
623
- if (message.resourceId !== 0n)
624
- writer.tag(1, WireType.Varint).uint64(message.resourceId);
625
- /* optional int64 offset = 2; */
626
- if (message.offset !== undefined)
627
- writer.tag(2, WireType.Varint).int64(message.offset);
628
- /* optional int32 line_count = 3; */
629
- if (message.lineCount !== undefined)
630
- writer.tag(3, WireType.Varint).int32(message.lineCount);
631
- /* optional string search = 21; */
632
- if (message.search !== undefined)
633
- writer.tag(21, WireType.LengthDelimited).string(message.search);
634
- /* optional string search_re = 22; */
635
- if (message.searchRe !== undefined)
636
- writer.tag(22, WireType.LengthDelimited).string(message.searchRe);
637
- let u = options.writeUnknownFields;
638
- if (u !== false)
639
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
640
- return writer;
641
- }
642
- }
643
- /**
644
- * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.StreamingAPI.LastLines
645
- */
646
- export const StreamingAPI_LastLines = new StreamingAPI_LastLines$Type();
647
- // @generated message type with reflection information, may provide speed optimized methods
648
- class StreamingAPI_Response$Type extends MessageType<StreamingAPI_Response> {
649
- constructor() {
650
- super("MiLaboratories.Controller.Shared.StreamingAPI.Response", [
651
- { no: 1, name: "data", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
652
- { no: 2, name: "size", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
653
- { no: 3, name: "new_offset", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ }
654
- ]);
655
- }
656
- create(value?: PartialMessage<StreamingAPI_Response>): StreamingAPI_Response {
657
- const message = globalThis.Object.create((this.messagePrototype!));
658
- message.data = new Uint8Array(0);
659
- message.size = 0n;
660
- message.newOffset = 0n;
661
- if (value !== undefined)
662
- reflectionMergePartial<StreamingAPI_Response>(this, message, value);
663
- return message;
664
- }
665
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StreamingAPI_Response): StreamingAPI_Response {
666
- let message = target ?? this.create(), end = reader.pos + length;
667
- while (reader.pos < end) {
668
- let [fieldNo, wireType] = reader.tag();
669
- switch (fieldNo) {
670
- case /* bytes data */ 1:
671
- message.data = reader.bytes();
672
- break;
673
- case /* uint64 size */ 2:
674
- message.size = reader.uint64().toBigInt();
675
- break;
676
- case /* uint64 new_offset */ 3:
677
- message.newOffset = reader.uint64().toBigInt();
678
- break;
679
- default:
680
- let u = options.readUnknownField;
681
- if (u === "throw")
682
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
683
- let d = reader.skip(wireType);
684
- if (u !== false)
685
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
686
- }
687
- }
688
- return message;
689
- }
690
- internalBinaryWrite(message: StreamingAPI_Response, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
691
- /* bytes data = 1; */
692
- if (message.data.length)
693
- writer.tag(1, WireType.LengthDelimited).bytes(message.data);
694
- /* uint64 size = 2; */
695
- if (message.size !== 0n)
696
- writer.tag(2, WireType.Varint).uint64(message.size);
697
- /* uint64 new_offset = 3; */
698
- if (message.newOffset !== 0n)
699
- writer.tag(3, WireType.Varint).uint64(message.newOffset);
700
- let u = options.writeUnknownFields;
701
- if (u !== false)
702
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
703
- return writer;
704
- }
705
- }
706
- /**
707
- * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.StreamingAPI.Response
708
- */
709
- export const StreamingAPI_Response = new StreamingAPI_Response$Type();
710
- /**
711
- * @generated ServiceType for protobuf service MiLaboratories.Controller.Shared.Streaming
712
- */
713
- export const Streaming = new ServiceType("MiLaboratories.Controller.Shared.Streaming", [
714
- { name: "StreamBinary", serverStreaming: true, options: {}, I: StreamingAPI_StreamBinary, O: StreamingAPI_Response },
715
- { name: "ReadBinary", options: {}, I: StreamingAPI_ReadBinary, O: StreamingAPI_Response },
716
- { name: "StreamText", serverStreaming: true, options: {}, I: StreamingAPI_StreamText, O: StreamingAPI_Response },
717
- { name: "ReadText", options: {}, I: StreamingAPI_ReadText, O: StreamingAPI_Response },
718
- { name: "LastLines", options: {}, I: StreamingAPI_LastLines, O: StreamingAPI_Response }
719
- ]);