@restatedev/restate-sdk 0.8.1 → 0.9.1

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 (374) hide show
  1. package/README.md +12 -118
  2. package/dist/{clients → src/clients}/workflow_client.d.ts +2 -2
  3. package/dist/src/clients/workflow_client.d.ts.map +1 -0
  4. package/dist/{clients → src/clients}/workflow_client.js +2 -2
  5. package/dist/src/clients/workflow_client.js.map +1 -0
  6. package/dist/{connection → src/connection}/buffered_connection.d.ts +1 -0
  7. package/dist/src/connection/buffered_connection.d.ts.map +1 -0
  8. package/dist/src/connection/buffered_connection.js.map +1 -0
  9. package/dist/src/connection/connection.d.ts.map +1 -0
  10. package/dist/src/connection/connection.js.map +1 -0
  11. package/dist/{connection → src/connection}/http_connection.d.ts +1 -1
  12. package/dist/src/connection/http_connection.d.ts.map +1 -0
  13. package/dist/{connection → src/connection}/http_connection.js +1 -1
  14. package/dist/src/connection/http_connection.js.map +1 -0
  15. package/dist/{connection → src/connection}/lambda_connection.d.ts +1 -0
  16. package/dist/src/connection/lambda_connection.d.ts.map +1 -0
  17. package/dist/{connection → src/connection}/lambda_connection.js +5 -4
  18. package/dist/src/connection/lambda_connection.js.map +1 -0
  19. package/dist/{context.d.ts → src/context.d.ts} +146 -224
  20. package/dist/src/context.d.ts.map +1 -0
  21. package/dist/{context.js → src/context.js} +6 -41
  22. package/dist/src/context.js.map +1 -0
  23. package/dist/src/context_impl.d.ts +62 -0
  24. package/dist/src/context_impl.d.ts.map +1 -0
  25. package/dist/{context_impl.js → src/context_impl.js} +201 -182
  26. package/dist/src/context_impl.js.map +1 -0
  27. package/dist/src/endpoint/endpoint_impl.d.ts +28 -0
  28. package/dist/src/endpoint/endpoint_impl.d.ts.map +1 -0
  29. package/dist/src/endpoint/endpoint_impl.js +164 -0
  30. package/dist/src/endpoint/endpoint_impl.js.map +1 -0
  31. package/dist/{endpoint → src/endpoint}/http2_handler.d.ts +1 -1
  32. package/dist/src/endpoint/http2_handler.d.ts.map +1 -0
  33. package/dist/src/endpoint/http2_handler.js +153 -0
  34. package/dist/src/endpoint/http2_handler.js.map +1 -0
  35. package/dist/{endpoint → src/endpoint}/lambda_handler.d.ts +2 -2
  36. package/dist/src/endpoint/lambda_handler.d.ts.map +1 -0
  37. package/dist/{endpoint → src/endpoint}/lambda_handler.js +66 -56
  38. package/dist/src/endpoint/lambda_handler.js.map +1 -0
  39. package/dist/src/endpoint/request_signing/basex.d.ts +10 -0
  40. package/dist/src/endpoint/request_signing/basex.d.ts.map +1 -0
  41. package/dist/src/endpoint/request_signing/basex.js +138 -0
  42. package/dist/src/endpoint/request_signing/basex.js.map +1 -0
  43. package/dist/src/endpoint/request_signing/ed25519.d.ts +17 -0
  44. package/dist/src/endpoint/request_signing/ed25519.d.ts.map +1 -0
  45. package/dist/src/endpoint/request_signing/ed25519.js +78 -0
  46. package/dist/src/endpoint/request_signing/ed25519.js.map +1 -0
  47. package/dist/src/endpoint/request_signing/v1.d.ts +9 -0
  48. package/dist/src/endpoint/request_signing/v1.d.ts.map +1 -0
  49. package/dist/src/endpoint/request_signing/v1.js +148 -0
  50. package/dist/src/endpoint/request_signing/v1.js.map +1 -0
  51. package/dist/src/endpoint/request_signing/validate.d.ts +18 -0
  52. package/dist/src/endpoint/request_signing/validate.d.ts.map +1 -0
  53. package/dist/src/endpoint/request_signing/validate.js +45 -0
  54. package/dist/src/endpoint/request_signing/validate.js.map +1 -0
  55. package/dist/src/endpoint.d.ts +102 -0
  56. package/dist/src/endpoint.d.ts.map +1 -0
  57. package/dist/{endpoint.js → src/endpoint.js} +1 -1
  58. package/dist/src/endpoint.js.map +1 -0
  59. package/dist/src/generated/proto/javascript_pb.d.ts +26 -0
  60. package/dist/src/generated/proto/javascript_pb.d.ts.map +1 -0
  61. package/dist/src/generated/proto/javascript_pb.js +52 -0
  62. package/dist/src/generated/proto/javascript_pb.js.map +1 -0
  63. package/dist/src/generated/proto/protocol_pb.d.ts +865 -0
  64. package/dist/src/generated/proto/protocol_pb.d.ts.map +1 -0
  65. package/dist/src/generated/proto/protocol_pb.js +1112 -0
  66. package/dist/src/generated/proto/protocol_pb.js.map +1 -0
  67. package/dist/src/generated/version.d.ts +2 -0
  68. package/dist/src/generated/version.d.ts.map +1 -0
  69. package/dist/src/generated/version.js +5 -0
  70. package/dist/src/generated/version.js.map +1 -0
  71. package/dist/{invocation.d.ts → src/invocation.d.ts} +14 -18
  72. package/dist/src/invocation.d.ts.map +1 -0
  73. package/dist/{invocation.js → src/invocation.js} +25 -24
  74. package/dist/src/invocation.js.map +1 -0
  75. package/dist/{io → src/io}/decoder.d.ts +3 -2
  76. package/dist/src/io/decoder.d.ts.map +1 -0
  77. package/dist/{io → src/io}/decoder.js +12 -10
  78. package/dist/src/io/decoder.js.map +1 -0
  79. package/dist/{io → src/io}/encoder.d.ts +1 -1
  80. package/dist/src/io/encoder.d.ts.map +1 -0
  81. package/dist/{io → src/io}/encoder.js +11 -21
  82. package/dist/src/io/encoder.js.map +1 -0
  83. package/dist/{journal.d.ts → src/journal.d.ts} +7 -7
  84. package/dist/src/journal.d.ts.map +1 -0
  85. package/dist/{journal.js → src/journal.js} +64 -46
  86. package/dist/src/journal.js.map +1 -0
  87. package/dist/{local_state_store.d.ts → src/local_state_store.d.ts} +2 -2
  88. package/dist/src/local_state_store.d.ts.map +1 -0
  89. package/dist/{local_state_store.js → src/local_state_store.js} +19 -17
  90. package/dist/src/local_state_store.js.map +1 -0
  91. package/dist/{logger.d.ts → src/logger.d.ts} +9 -1
  92. package/dist/src/logger.d.ts.map +1 -0
  93. package/dist/src/logger.js +158 -0
  94. package/dist/src/logger.js.map +1 -0
  95. package/dist/src/promise_combinator_tracker.d.ts.map +1 -0
  96. package/dist/src/promise_combinator_tracker.js.map +1 -0
  97. package/dist/src/public_api.d.ts +7 -0
  98. package/dist/src/public_api.d.ts.map +1 -0
  99. package/dist/{public_api.js → src/public_api.js} +4 -14
  100. package/dist/src/public_api.js.map +1 -0
  101. package/dist/{state_machine.d.ts → src/state_machine.d.ts} +7 -4
  102. package/dist/src/state_machine.d.ts.map +1 -0
  103. package/dist/{state_machine.js → src/state_machine.js} +34 -37
  104. package/dist/src/state_machine.js.map +1 -0
  105. package/dist/src/types/components.d.ts +65 -0
  106. package/dist/src/types/components.d.ts.map +1 -0
  107. package/dist/src/types/components.js +163 -0
  108. package/dist/src/types/components.js.map +1 -0
  109. package/dist/src/types/discovery.d.ts +40 -0
  110. package/dist/src/types/discovery.d.ts.map +1 -0
  111. package/dist/src/types/discovery.js +29 -0
  112. package/dist/src/types/discovery.js.map +1 -0
  113. package/dist/src/types/errors.d.ts +53 -0
  114. package/dist/src/types/errors.d.ts.map +1 -0
  115. package/dist/src/types/errors.js +129 -0
  116. package/dist/src/types/errors.js.map +1 -0
  117. package/dist/src/types/protocol.d.ts +33 -0
  118. package/dist/src/types/protocol.d.ts.map +1 -0
  119. package/dist/{types → src/types}/protocol.js +52 -52
  120. package/dist/src/types/protocol.js.map +1 -0
  121. package/dist/src/types/rpc.d.ts +50 -0
  122. package/dist/src/types/rpc.d.ts.map +1 -0
  123. package/dist/src/types/rpc.js +38 -0
  124. package/dist/src/types/rpc.js.map +1 -0
  125. package/dist/{types → src/types}/types.d.ts +0 -9
  126. package/dist/src/types/types.d.ts.map +1 -0
  127. package/dist/{types → src/types}/types.js +4 -21
  128. package/dist/src/types/types.js.map +1 -0
  129. package/dist/src/user_agent.d.ts +2 -0
  130. package/dist/src/user_agent.d.ts.map +1 -0
  131. package/dist/src/user_agent.js +16 -0
  132. package/dist/src/user_agent.js.map +1 -0
  133. package/dist/src/utils/message_logger.d.ts +7 -0
  134. package/dist/src/utils/message_logger.d.ts.map +1 -0
  135. package/dist/{utils → src/utils}/message_logger.js +17 -26
  136. package/dist/src/utils/message_logger.js.map +1 -0
  137. package/dist/src/utils/promises.d.ts.map +1 -0
  138. package/dist/src/utils/promises.js.map +1 -0
  139. package/dist/{utils → src/utils}/rand.d.ts +1 -0
  140. package/dist/src/utils/rand.d.ts.map +1 -0
  141. package/dist/{utils → src/utils}/rand.js +7 -6
  142. package/dist/src/utils/rand.js.map +1 -0
  143. package/dist/src/utils/serde.d.ts +3 -0
  144. package/dist/src/utils/serde.d.ts.map +1 -0
  145. package/dist/src/utils/serde.js +24 -0
  146. package/dist/src/utils/serde.js.map +1 -0
  147. package/dist/{utils → src/utils}/utils.d.ts +0 -1
  148. package/dist/src/utils/utils.d.ts.map +1 -0
  149. package/dist/{utils → src/utils}/utils.js +36 -43
  150. package/dist/src/utils/utils.js.map +1 -0
  151. package/dist/{workflows → src/workflows}/workflow.d.ts +6 -6
  152. package/dist/src/workflows/workflow.d.ts.map +1 -0
  153. package/dist/{workflows → src/workflows}/workflow.js +11 -7
  154. package/dist/src/workflows/workflow.js.map +1 -0
  155. package/dist/src/workflows/workflow_state_service.d.ts +35 -0
  156. package/dist/src/workflows/workflow_state_service.d.ts.map +1 -0
  157. package/dist/{workflows → src/workflows}/workflow_state_service.js +11 -11
  158. package/dist/src/workflows/workflow_state_service.js.map +1 -0
  159. package/dist/{workflows → src/workflows}/workflow_wrapper_service.d.ts +2 -2
  160. package/dist/src/workflows/workflow_wrapper_service.d.ts.map +1 -0
  161. package/dist/{workflows → src/workflows}/workflow_wrapper_service.js +66 -45
  162. package/dist/src/workflows/workflow_wrapper_service.js.map +1 -0
  163. package/dist/tsconfig.tsbuildinfo +1 -0
  164. package/package.json +13 -28
  165. package/LICENSE +0 -21
  166. package/dist/clients/workflow_client.d.ts.map +0 -1
  167. package/dist/clients/workflow_client.js.map +0 -1
  168. package/dist/connection/buffered_connection.d.ts.map +0 -1
  169. package/dist/connection/buffered_connection.js.map +0 -1
  170. package/dist/connection/connection.d.ts.map +0 -1
  171. package/dist/connection/connection.js.map +0 -1
  172. package/dist/connection/embedded_connection.d.ts +0 -20
  173. package/dist/connection/embedded_connection.d.ts.map +0 -1
  174. package/dist/connection/embedded_connection.js +0 -59
  175. package/dist/connection/embedded_connection.js.map +0 -1
  176. package/dist/connection/http_connection.d.ts.map +0 -1
  177. package/dist/connection/http_connection.js.map +0 -1
  178. package/dist/connection/lambda_connection.d.ts.map +0 -1
  179. package/dist/connection/lambda_connection.js.map +0 -1
  180. package/dist/context.d.ts.map +0 -1
  181. package/dist/context.js.map +0 -1
  182. package/dist/context_impl.d.ts +0 -65
  183. package/dist/context_impl.d.ts.map +0 -1
  184. package/dist/context_impl.js.map +0 -1
  185. package/dist/embedded/api.d.ts +0 -27
  186. package/dist/embedded/api.d.ts.map +0 -1
  187. package/dist/embedded/api.js +0 -35
  188. package/dist/embedded/api.js.map +0 -1
  189. package/dist/embedded/handler.d.ts +0 -4
  190. package/dist/embedded/handler.d.ts.map +0 -1
  191. package/dist/embedded/handler.js +0 -26
  192. package/dist/embedded/handler.js.map +0 -1
  193. package/dist/embedded/http2_remote.d.ts +0 -11
  194. package/dist/embedded/http2_remote.d.ts.map +0 -1
  195. package/dist/embedded/http2_remote.js +0 -91
  196. package/dist/embedded/http2_remote.js.map +0 -1
  197. package/dist/embedded/invocation.d.ts +0 -5
  198. package/dist/embedded/invocation.d.ts.map +0 -1
  199. package/dist/embedded/invocation.js +0 -94
  200. package/dist/embedded/invocation.js.map +0 -1
  201. package/dist/endpoint/endpoint_impl.d.ts +0 -35
  202. package/dist/endpoint/endpoint_impl.d.ts.map +0 -1
  203. package/dist/endpoint/endpoint_impl.js +0 -405
  204. package/dist/endpoint/endpoint_impl.js.map +0 -1
  205. package/dist/endpoint/http2_handler.d.ts.map +0 -1
  206. package/dist/endpoint/http2_handler.js +0 -119
  207. package/dist/endpoint/http2_handler.js.map +0 -1
  208. package/dist/endpoint/lambda_handler.d.ts.map +0 -1
  209. package/dist/endpoint/lambda_handler.js.map +0 -1
  210. package/dist/endpoint.d.ts +0 -161
  211. package/dist/endpoint.d.ts.map +0 -1
  212. package/dist/endpoint.js.map +0 -1
  213. package/dist/generated/dev/restate/events.d.ts +0 -96
  214. package/dist/generated/dev/restate/events.d.ts.map +0 -1
  215. package/dist/generated/dev/restate/events.js +0 -371
  216. package/dist/generated/dev/restate/events.js.map +0 -1
  217. package/dist/generated/dev/restate/ext.d.ts +0 -91
  218. package/dist/generated/dev/restate/ext.d.ts.map +0 -1
  219. package/dist/generated/dev/restate/ext.js +0 -215
  220. package/dist/generated/dev/restate/ext.js.map +0 -1
  221. package/dist/generated/google/protobuf/descriptor.d.ts +0 -1204
  222. package/dist/generated/google/protobuf/descriptor.d.ts.map +0 -1
  223. package/dist/generated/google/protobuf/descriptor.js +0 -6676
  224. package/dist/generated/google/protobuf/descriptor.js.map +0 -1
  225. package/dist/generated/google/protobuf/empty.d.ts +0 -86
  226. package/dist/generated/google/protobuf/empty.d.ts.map +0 -1
  227. package/dist/generated/google/protobuf/empty.js +0 -107
  228. package/dist/generated/google/protobuf/empty.js.map +0 -1
  229. package/dist/generated/google/protobuf/struct.d.ts +0 -175
  230. package/dist/generated/google/protobuf/struct.d.ts.map +0 -1
  231. package/dist/generated/google/protobuf/struct.js +0 -754
  232. package/dist/generated/google/protobuf/struct.js.map +0 -1
  233. package/dist/generated/proto/discovery.d.ts +0 -105
  234. package/dist/generated/proto/discovery.d.ts.map +0 -1
  235. package/dist/generated/proto/discovery.js +0 -364
  236. package/dist/generated/proto/discovery.js.map +0 -1
  237. package/dist/generated/proto/dynrpc.d.ts +0 -150
  238. package/dist/generated/proto/dynrpc.d.ts.map +0 -1
  239. package/dist/generated/proto/dynrpc.js +0 -668
  240. package/dist/generated/proto/dynrpc.js.map +0 -1
  241. package/dist/generated/proto/javascript.d.ts +0 -110
  242. package/dist/generated/proto/javascript.d.ts.map +0 -1
  243. package/dist/generated/proto/javascript.js +0 -416
  244. package/dist/generated/proto/javascript.js.map +0 -1
  245. package/dist/generated/proto/protocol.d.ts +0 -450
  246. package/dist/generated/proto/protocol.d.ts.map +0 -1
  247. package/dist/generated/proto/protocol.js +0 -2641
  248. package/dist/generated/proto/protocol.js.map +0 -1
  249. package/dist/generated/proto/services.d.ts +0 -307
  250. package/dist/generated/proto/services.d.ts.map +0 -1
  251. package/dist/generated/proto/services.js +0 -1535
  252. package/dist/generated/proto/services.js.map +0 -1
  253. package/dist/generated/proto/test.d.ts +0 -116
  254. package/dist/generated/proto/test.d.ts.map +0 -1
  255. package/dist/generated/proto/test.js +0 -321
  256. package/dist/generated/proto/test.js.map +0 -1
  257. package/dist/invocation.d.ts.map +0 -1
  258. package/dist/invocation.js.map +0 -1
  259. package/dist/io/decoder.d.ts.map +0 -1
  260. package/dist/io/decoder.js.map +0 -1
  261. package/dist/io/encoder.d.ts.map +0 -1
  262. package/dist/io/encoder.js.map +0 -1
  263. package/dist/journal.d.ts.map +0 -1
  264. package/dist/journal.js.map +0 -1
  265. package/dist/local_state_store.d.ts.map +0 -1
  266. package/dist/local_state_store.js.map +0 -1
  267. package/dist/logger.d.ts.map +0 -1
  268. package/dist/logger.js +0 -90
  269. package/dist/logger.js.map +0 -1
  270. package/dist/promise_combinator_tracker.d.ts.map +0 -1
  271. package/dist/promise_combinator_tracker.js.map +0 -1
  272. package/dist/public_api.d.ts +0 -10
  273. package/dist/public_api.d.ts.map +0 -1
  274. package/dist/public_api.js.map +0 -1
  275. package/dist/state_machine.d.ts.map +0 -1
  276. package/dist/state_machine.js.map +0 -1
  277. package/dist/types/errors.d.ts +0 -188
  278. package/dist/types/errors.d.ts.map +0 -1
  279. package/dist/types/errors.js +0 -273
  280. package/dist/types/errors.js.map +0 -1
  281. package/dist/types/grpc.d.ts +0 -90
  282. package/dist/types/grpc.d.ts.map +0 -1
  283. package/dist/types/grpc.js +0 -81
  284. package/dist/types/grpc.js.map +0 -1
  285. package/dist/types/protocol.d.ts +0 -30
  286. package/dist/types/protocol.d.ts.map +0 -1
  287. package/dist/types/protocol.js.map +0 -1
  288. package/dist/types/router.d.ts +0 -33
  289. package/dist/types/router.d.ts.map +0 -1
  290. package/dist/types/router.js +0 -36
  291. package/dist/types/router.js.map +0 -1
  292. package/dist/types/types.d.ts.map +0 -1
  293. package/dist/types/types.js.map +0 -1
  294. package/dist/utils/assumptions.d.ts +0 -8
  295. package/dist/utils/assumptions.d.ts.map +0 -1
  296. package/dist/utils/assumptions.js +0 -101
  297. package/dist/utils/assumptions.js.map +0 -1
  298. package/dist/utils/message_logger.d.ts +0 -28
  299. package/dist/utils/message_logger.d.ts.map +0 -1
  300. package/dist/utils/message_logger.js.map +0 -1
  301. package/dist/utils/promises.d.ts.map +0 -1
  302. package/dist/utils/promises.js.map +0 -1
  303. package/dist/utils/public_utils.d.ts +0 -58
  304. package/dist/utils/public_utils.d.ts.map +0 -1
  305. package/dist/utils/public_utils.js +0 -49
  306. package/dist/utils/public_utils.js.map +0 -1
  307. package/dist/utils/rand.d.ts.map +0 -1
  308. package/dist/utils/rand.js.map +0 -1
  309. package/dist/utils/utils.d.ts.map +0 -1
  310. package/dist/utils/utils.js.map +0 -1
  311. package/dist/workflows/workflow.d.ts.map +0 -1
  312. package/dist/workflows/workflow.js.map +0 -1
  313. package/dist/workflows/workflow_state_service.d.ts +0 -35
  314. package/dist/workflows/workflow_state_service.d.ts.map +0 -1
  315. package/dist/workflows/workflow_state_service.js.map +0 -1
  316. package/dist/workflows/workflow_wrapper_service.d.ts.map +0 -1
  317. package/dist/workflows/workflow_wrapper_service.js.map +0 -1
  318. package/src/clients/workflow_client.ts +0 -290
  319. package/src/connection/buffered_connection.ts +0 -47
  320. package/src/connection/connection.ts +0 -34
  321. package/src/connection/embedded_connection.ts +0 -62
  322. package/src/connection/http_connection.ts +0 -228
  323. package/src/connection/lambda_connection.ts +0 -69
  324. package/src/context.ts +0 -633
  325. package/src/context_impl.ts +0 -721
  326. package/src/embedded/api.ts +0 -57
  327. package/src/embedded/handler.ts +0 -36
  328. package/src/embedded/http2_remote.ts +0 -103
  329. package/src/embedded/invocation.ts +0 -126
  330. package/src/endpoint/endpoint_impl.ts +0 -623
  331. package/src/endpoint/http2_handler.ts +0 -151
  332. package/src/endpoint/lambda_handler.ts +0 -181
  333. package/src/endpoint.ts +0 -187
  334. package/src/generated/dev/restate/events.ts +0 -430
  335. package/src/generated/dev/restate/ext.ts +0 -238
  336. package/src/generated/google/protobuf/descriptor.ts +0 -7889
  337. package/src/generated/google/protobuf/empty.ts +0 -150
  338. package/src/generated/google/protobuf/struct.ts +0 -878
  339. package/src/generated/proto/discovery.ts +0 -423
  340. package/src/generated/proto/dynrpc.ts +0 -768
  341. package/src/generated/proto/javascript.ts +0 -488
  342. package/src/generated/proto/protocol.ts +0 -3091
  343. package/src/generated/proto/services.ts +0 -1834
  344. package/src/generated/proto/test.ts +0 -387
  345. package/src/invocation.ts +0 -212
  346. package/src/io/decoder.ts +0 -171
  347. package/src/io/encoder.ts +0 -72
  348. package/src/journal.ts +0 -537
  349. package/src/local_state_store.ts +0 -94
  350. package/src/logger.ts +0 -121
  351. package/src/promise_combinator_tracker.ts +0 -191
  352. package/src/public_api.ts +0 -53
  353. package/src/state_machine.ts +0 -635
  354. package/src/types/errors.ts +0 -297
  355. package/src/types/grpc.ts +0 -97
  356. package/src/types/protocol.ts +0 -201
  357. package/src/types/router.ts +0 -118
  358. package/src/types/types.ts +0 -160
  359. package/src/utils/assumptions.ts +0 -131
  360. package/src/utils/message_logger.ts +0 -112
  361. package/src/utils/promises.ts +0 -118
  362. package/src/utils/public_utils.ts +0 -91
  363. package/src/utils/rand.ts +0 -142
  364. package/src/utils/utils.ts +0 -178
  365. package/src/workflows/workflow.ts +0 -178
  366. package/src/workflows/workflow_state_service.ts +0 -299
  367. package/src/workflows/workflow_wrapper_service.ts +0 -314
  368. /package/dist/{connection → src/connection}/buffered_connection.js +0 -0
  369. /package/dist/{connection → src/connection}/connection.d.ts +0 -0
  370. /package/dist/{connection → src/connection}/connection.js +0 -0
  371. /package/dist/{promise_combinator_tracker.d.ts → src/promise_combinator_tracker.d.ts} +0 -0
  372. /package/dist/{promise_combinator_tracker.js → src/promise_combinator_tracker.js} +0 -0
  373. /package/dist/{utils → src/utils}/promises.d.ts +0 -0
  374. /package/dist/{utils → src/utils}/promises.js +0 -0
@@ -1,1204 +0,0 @@
1
- /// <reference types="node" />
2
- import _m0 from "protobufjs/minimal";
3
- import { FileDescriptorProto as FileDescriptorProto1 } from "ts-proto-descriptors";
4
- export declare const protobufPackage = "google.protobuf";
5
- /**
6
- * The protocol compiler can output a FileDescriptorSet containing the .proto
7
- * files it parses.
8
- */
9
- export interface FileDescriptorSet {
10
- file: FileDescriptorProto[];
11
- }
12
- /** Describes a complete .proto file. */
13
- export interface FileDescriptorProto {
14
- /** file name, relative to root of source tree */
15
- name: string;
16
- /** e.g. "foo", "foo.bar", etc. */
17
- package: string;
18
- /** Names of files imported by this file. */
19
- dependency: string[];
20
- /** Indexes of the public imported files in the dependency list above. */
21
- publicDependency: number[];
22
- /**
23
- * Indexes of the weak imported files in the dependency list.
24
- * For Google-internal migration only. Do not use.
25
- */
26
- weakDependency: number[];
27
- /** All top-level definitions in this file. */
28
- messageType: DescriptorProto[];
29
- enumType: EnumDescriptorProto[];
30
- service: ServiceDescriptorProto[];
31
- extension: FieldDescriptorProto[];
32
- options: FileOptions | undefined;
33
- /**
34
- * This field contains optional information about the original source code.
35
- * You may safely remove this entire field without harming runtime
36
- * functionality of the descriptors -- the information is needed only by
37
- * development tools.
38
- */
39
- sourceCodeInfo: SourceCodeInfo | undefined;
40
- /**
41
- * The syntax of the proto file.
42
- * The supported values are "proto2", "proto3", and "editions".
43
- *
44
- * If `edition` is present, this value must be "editions".
45
- */
46
- syntax: string;
47
- /** The edition of the proto file, which is an opaque string. */
48
- edition: string;
49
- }
50
- /** Describes a message type. */
51
- export interface DescriptorProto {
52
- name: string;
53
- field: FieldDescriptorProto[];
54
- extension: FieldDescriptorProto[];
55
- nestedType: DescriptorProto[];
56
- enumType: EnumDescriptorProto[];
57
- extensionRange: DescriptorProto_ExtensionRange[];
58
- oneofDecl: OneofDescriptorProto[];
59
- options: MessageOptions | undefined;
60
- reservedRange: DescriptorProto_ReservedRange[];
61
- /**
62
- * Reserved field names, which may not be used by fields in the same message.
63
- * A given name may only be reserved once.
64
- */
65
- reservedName: string[];
66
- }
67
- export interface DescriptorProto_ExtensionRange {
68
- /** Inclusive. */
69
- start: number;
70
- /** Exclusive. */
71
- end: number;
72
- options: ExtensionRangeOptions | undefined;
73
- }
74
- /**
75
- * Range of reserved tag numbers. Reserved tag numbers may not be used by
76
- * fields or extension ranges in the same message. Reserved ranges may
77
- * not overlap.
78
- */
79
- export interface DescriptorProto_ReservedRange {
80
- /** Inclusive. */
81
- start: number;
82
- /** Exclusive. */
83
- end: number;
84
- }
85
- export interface ExtensionRangeOptions {
86
- /** The parser stores options it doesn't recognize here. See above. */
87
- uninterpretedOption: UninterpretedOption[];
88
- }
89
- /** Describes a field within a message. */
90
- export interface FieldDescriptorProto {
91
- name: string;
92
- number: number;
93
- label: FieldDescriptorProto_Label;
94
- /**
95
- * If type_name is set, this need not be set. If both this and type_name
96
- * are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP.
97
- */
98
- type: FieldDescriptorProto_Type;
99
- /**
100
- * For message and enum types, this is the name of the type. If the name
101
- * starts with a '.', it is fully-qualified. Otherwise, C++-like scoping
102
- * rules are used to find the type (i.e. first the nested types within this
103
- * message are searched, then within the parent, on up to the root
104
- * namespace).
105
- */
106
- typeName: string;
107
- /**
108
- * For extensions, this is the name of the type being extended. It is
109
- * resolved in the same manner as type_name.
110
- */
111
- extendee: string;
112
- /**
113
- * For numeric types, contains the original text representation of the value.
114
- * For booleans, "true" or "false".
115
- * For strings, contains the default text contents (not escaped in any way).
116
- * For bytes, contains the C escaped value. All bytes >= 128 are escaped.
117
- */
118
- defaultValue: string;
119
- /**
120
- * If set, gives the index of a oneof in the containing type's oneof_decl
121
- * list. This field is a member of that oneof.
122
- */
123
- oneofIndex: number;
124
- /**
125
- * JSON name of this field. The value is set by protocol compiler. If the
126
- * user has set a "json_name" option on this field, that option's value
127
- * will be used. Otherwise, it's deduced from the field's name by converting
128
- * it to camelCase.
129
- */
130
- jsonName: string;
131
- options: FieldOptions | undefined;
132
- /**
133
- * If true, this is a proto3 "optional". When a proto3 field is optional, it
134
- * tracks presence regardless of field type.
135
- *
136
- * When proto3_optional is true, this field must be belong to a oneof to
137
- * signal to old proto3 clients that presence is tracked for this field. This
138
- * oneof is known as a "synthetic" oneof, and this field must be its sole
139
- * member (each proto3 optional field gets its own synthetic oneof). Synthetic
140
- * oneofs exist in the descriptor only, and do not generate any API. Synthetic
141
- * oneofs must be ordered after all "real" oneofs.
142
- *
143
- * For message fields, proto3_optional doesn't create any semantic change,
144
- * since non-repeated message fields always track presence. However it still
145
- * indicates the semantic detail of whether the user wrote "optional" or not.
146
- * This can be useful for round-tripping the .proto file. For consistency we
147
- * give message fields a synthetic oneof also, even though it is not required
148
- * to track presence. This is especially important because the parser can't
149
- * tell if a field is a message or an enum, so it must always create a
150
- * synthetic oneof.
151
- *
152
- * Proto2 optional fields do not set this flag, because they already indicate
153
- * optional with `LABEL_OPTIONAL`.
154
- */
155
- proto3Optional: boolean;
156
- }
157
- export declare enum FieldDescriptorProto_Type {
158
- /**
159
- * TYPE_DOUBLE - 0 is reserved for errors.
160
- * Order is weird for historical reasons.
161
- */
162
- TYPE_DOUBLE = 1,
163
- TYPE_FLOAT = 2,
164
- /**
165
- * TYPE_INT64 - Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if
166
- * negative values are likely.
167
- */
168
- TYPE_INT64 = 3,
169
- TYPE_UINT64 = 4,
170
- /**
171
- * TYPE_INT32 - Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if
172
- * negative values are likely.
173
- */
174
- TYPE_INT32 = 5,
175
- TYPE_FIXED64 = 6,
176
- TYPE_FIXED32 = 7,
177
- TYPE_BOOL = 8,
178
- TYPE_STRING = 9,
179
- /**
180
- * TYPE_GROUP - Tag-delimited aggregate.
181
- * Group type is deprecated and not supported in proto3. However, Proto3
182
- * implementations should still be able to parse the group wire format and
183
- * treat group fields as unknown fields.
184
- */
185
- TYPE_GROUP = 10,
186
- /** TYPE_MESSAGE - Length-delimited aggregate. */
187
- TYPE_MESSAGE = 11,
188
- /** TYPE_BYTES - New in version 2. */
189
- TYPE_BYTES = 12,
190
- TYPE_UINT32 = 13,
191
- TYPE_ENUM = 14,
192
- TYPE_SFIXED32 = 15,
193
- TYPE_SFIXED64 = 16,
194
- /** TYPE_SINT32 - Uses ZigZag encoding. */
195
- TYPE_SINT32 = 17,
196
- /** TYPE_SINT64 - Uses ZigZag encoding. */
197
- TYPE_SINT64 = 18,
198
- UNRECOGNIZED = -1
199
- }
200
- export declare function fieldDescriptorProto_TypeFromJSON(object: any): FieldDescriptorProto_Type;
201
- export declare function fieldDescriptorProto_TypeToJSON(object: FieldDescriptorProto_Type): string;
202
- export declare enum FieldDescriptorProto_Label {
203
- /** LABEL_OPTIONAL - 0 is reserved for errors */
204
- LABEL_OPTIONAL = 1,
205
- LABEL_REQUIRED = 2,
206
- LABEL_REPEATED = 3,
207
- UNRECOGNIZED = -1
208
- }
209
- export declare function fieldDescriptorProto_LabelFromJSON(object: any): FieldDescriptorProto_Label;
210
- export declare function fieldDescriptorProto_LabelToJSON(object: FieldDescriptorProto_Label): string;
211
- /** Describes a oneof. */
212
- export interface OneofDescriptorProto {
213
- name: string;
214
- options: OneofOptions | undefined;
215
- }
216
- /** Describes an enum type. */
217
- export interface EnumDescriptorProto {
218
- name: string;
219
- value: EnumValueDescriptorProto[];
220
- options: EnumOptions | undefined;
221
- /**
222
- * Range of reserved numeric values. Reserved numeric values may not be used
223
- * by enum values in the same enum declaration. Reserved ranges may not
224
- * overlap.
225
- */
226
- reservedRange: EnumDescriptorProto_EnumReservedRange[];
227
- /**
228
- * Reserved enum value names, which may not be reused. A given name may only
229
- * be reserved once.
230
- */
231
- reservedName: string[];
232
- }
233
- /**
234
- * Range of reserved numeric values. Reserved values may not be used by
235
- * entries in the same enum. Reserved ranges may not overlap.
236
- *
237
- * Note that this is distinct from DescriptorProto.ReservedRange in that it
238
- * is inclusive such that it can appropriately represent the entire int32
239
- * domain.
240
- */
241
- export interface EnumDescriptorProto_EnumReservedRange {
242
- /** Inclusive. */
243
- start: number;
244
- /** Inclusive. */
245
- end: number;
246
- }
247
- /** Describes a value within an enum. */
248
- export interface EnumValueDescriptorProto {
249
- name: string;
250
- number: number;
251
- options: EnumValueOptions | undefined;
252
- }
253
- /** Describes a service. */
254
- export interface ServiceDescriptorProto {
255
- name: string;
256
- method: MethodDescriptorProto[];
257
- options: ServiceOptions | undefined;
258
- }
259
- /** Describes a method of a service. */
260
- export interface MethodDescriptorProto {
261
- name: string;
262
- /**
263
- * Input and output type names. These are resolved in the same way as
264
- * FieldDescriptorProto.type_name, but must refer to a message type.
265
- */
266
- inputType: string;
267
- outputType: string;
268
- options: MethodOptions | undefined;
269
- /** Identifies if client streams multiple client messages */
270
- clientStreaming: boolean;
271
- /** Identifies if server streams multiple server messages */
272
- serverStreaming: boolean;
273
- }
274
- export interface FileOptions {
275
- /**
276
- * Sets the Java package where classes generated from this .proto will be
277
- * placed. By default, the proto package is used, but this is often
278
- * inappropriate because proto packages do not normally start with backwards
279
- * domain names.
280
- */
281
- javaPackage: string;
282
- /**
283
- * Controls the name of the wrapper Java class generated for the .proto file.
284
- * That class will always contain the .proto file's getDescriptor() method as
285
- * well as any top-level extensions defined in the .proto file.
286
- * If java_multiple_files is disabled, then all the other classes from the
287
- * .proto file will be nested inside the single wrapper outer class.
288
- */
289
- javaOuterClassname: string;
290
- /**
291
- * If enabled, then the Java code generator will generate a separate .java
292
- * file for each top-level message, enum, and service defined in the .proto
293
- * file. Thus, these types will *not* be nested inside the wrapper class
294
- * named by java_outer_classname. However, the wrapper class will still be
295
- * generated to contain the file's getDescriptor() method as well as any
296
- * top-level extensions defined in the file.
297
- */
298
- javaMultipleFiles: boolean;
299
- /**
300
- * This option does nothing.
301
- *
302
- * @deprecated
303
- */
304
- javaGenerateEqualsAndHash: boolean;
305
- /**
306
- * If set true, then the Java2 code generator will generate code that
307
- * throws an exception whenever an attempt is made to assign a non-UTF-8
308
- * byte sequence to a string field.
309
- * Message reflection will do the same.
310
- * However, an extension field still accepts non-UTF-8 byte sequences.
311
- * This option has no effect on when used with the lite runtime.
312
- */
313
- javaStringCheckUtf8: boolean;
314
- optimizeFor: FileOptions_OptimizeMode;
315
- /**
316
- * Sets the Go package where structs generated from this .proto will be
317
- * placed. If omitted, the Go package will be derived from the following:
318
- * - The basename of the package import path, if provided.
319
- * - Otherwise, the package statement in the .proto file, if present.
320
- * - Otherwise, the basename of the .proto file, without extension.
321
- */
322
- goPackage: string;
323
- /**
324
- * Should generic services be generated in each language? "Generic" services
325
- * are not specific to any particular RPC system. They are generated by the
326
- * main code generators in each language (without additional plugins).
327
- * Generic services were the only kind of service generation supported by
328
- * early versions of google.protobuf.
329
- *
330
- * Generic services are now considered deprecated in favor of using plugins
331
- * that generate code specific to your particular RPC system. Therefore,
332
- * these default to false. Old code which depends on generic services should
333
- * explicitly set them to true.
334
- */
335
- ccGenericServices: boolean;
336
- javaGenericServices: boolean;
337
- pyGenericServices: boolean;
338
- phpGenericServices: boolean;
339
- /**
340
- * Is this file deprecated?
341
- * Depending on the target platform, this can emit Deprecated annotations
342
- * for everything in the file, or it will be completely ignored; in the very
343
- * least, this is a formalization for deprecating files.
344
- */
345
- deprecated: boolean;
346
- /**
347
- * Enables the use of arenas for the proto messages in this file. This applies
348
- * only to generated classes for C++.
349
- */
350
- ccEnableArenas: boolean;
351
- /**
352
- * Sets the objective c class prefix which is prepended to all objective c
353
- * generated classes from this .proto. There is no default.
354
- */
355
- objcClassPrefix: string;
356
- /** Namespace for generated classes; defaults to the package. */
357
- csharpNamespace: string;
358
- /**
359
- * By default Swift generators will take the proto package and CamelCase it
360
- * replacing '.' with underscore and use that to prefix the types/symbols
361
- * defined. When this options is provided, they will use this value instead
362
- * to prefix the types/symbols defined.
363
- */
364
- swiftPrefix: string;
365
- /**
366
- * Sets the php class prefix which is prepended to all php generated classes
367
- * from this .proto. Default is empty.
368
- */
369
- phpClassPrefix: string;
370
- /**
371
- * Use this option to change the namespace of php generated classes. Default
372
- * is empty. When this option is empty, the package name will be used for
373
- * determining the namespace.
374
- */
375
- phpNamespace: string;
376
- /**
377
- * Use this option to change the namespace of php generated metadata classes.
378
- * Default is empty. When this option is empty, the proto file name will be
379
- * used for determining the namespace.
380
- */
381
- phpMetadataNamespace: string;
382
- /**
383
- * Use this option to change the package of ruby generated classes. Default
384
- * is empty. When this option is not set, the package name will be used for
385
- * determining the ruby package.
386
- */
387
- rubyPackage: string;
388
- /**
389
- * The parser stores options it doesn't recognize here.
390
- * See the documentation for the "Options" section above.
391
- */
392
- uninterpretedOption: UninterpretedOption[];
393
- }
394
- /** Generated classes can be optimized for speed or code size. */
395
- export declare enum FileOptions_OptimizeMode {
396
- /** SPEED - Generate complete code for parsing, serialization, */
397
- SPEED = 1,
398
- /** CODE_SIZE - etc. */
399
- CODE_SIZE = 2,
400
- /** LITE_RUNTIME - Generate code using MessageLite and the lite runtime. */
401
- LITE_RUNTIME = 3,
402
- UNRECOGNIZED = -1
403
- }
404
- export declare function fileOptions_OptimizeModeFromJSON(object: any): FileOptions_OptimizeMode;
405
- export declare function fileOptions_OptimizeModeToJSON(object: FileOptions_OptimizeMode): string;
406
- export interface MessageOptions {
407
- /**
408
- * Set true to use the old proto1 MessageSet wire format for extensions.
409
- * This is provided for backwards-compatibility with the MessageSet wire
410
- * format. You should not use this for any other reason: It's less
411
- * efficient, has fewer features, and is more complicated.
412
- *
413
- * The message must be defined exactly as follows:
414
- * message Foo {
415
- * option message_set_wire_format = true;
416
- * extensions 4 to max;
417
- * }
418
- * Note that the message cannot have any defined fields; MessageSets only
419
- * have extensions.
420
- *
421
- * All extensions of your type must be singular messages; e.g. they cannot
422
- * be int32s, enums, or repeated messages.
423
- *
424
- * Because this is an option, the above two restrictions are not enforced by
425
- * the protocol compiler.
426
- */
427
- messageSetWireFormat: boolean;
428
- /**
429
- * Disables the generation of the standard "descriptor()" accessor, which can
430
- * conflict with a field of the same name. This is meant to make migration
431
- * from proto1 easier; new code should avoid fields named "descriptor".
432
- */
433
- noStandardDescriptorAccessor: boolean;
434
- /**
435
- * Is this message deprecated?
436
- * Depending on the target platform, this can emit Deprecated annotations
437
- * for the message, or it will be completely ignored; in the very least,
438
- * this is a formalization for deprecating messages.
439
- */
440
- deprecated: boolean;
441
- /**
442
- * NOTE: Do not set the option in .proto files. Always use the maps syntax
443
- * instead. The option should only be implicitly set by the proto compiler
444
- * parser.
445
- *
446
- * Whether the message is an automatically generated map entry type for the
447
- * maps field.
448
- *
449
- * For maps fields:
450
- * map<KeyType, ValueType> map_field = 1;
451
- * The parsed descriptor looks like:
452
- * message MapFieldEntry {
453
- * option map_entry = true;
454
- * optional KeyType key = 1;
455
- * optional ValueType value = 2;
456
- * }
457
- * repeated MapFieldEntry map_field = 1;
458
- *
459
- * Implementations may choose not to generate the map_entry=true message, but
460
- * use a native map in the target language to hold the keys and values.
461
- * The reflection APIs in such implementations still need to work as
462
- * if the field is a repeated message field.
463
- */
464
- mapEntry: boolean;
465
- /**
466
- * Enable the legacy handling of JSON field name conflicts. This lowercases
467
- * and strips underscored from the fields before comparison in proto3 only.
468
- * The new behavior takes `json_name` into account and applies to proto2 as
469
- * well.
470
- *
471
- * This should only be used as a temporary measure against broken builds due
472
- * to the change in behavior for JSON field name conflicts.
473
- *
474
- * TODO(b/261750190) This is legacy behavior we plan to remove once downstream
475
- * teams have had time to migrate.
476
- *
477
- * @deprecated
478
- */
479
- deprecatedLegacyJsonFieldConflicts: boolean;
480
- /** The parser stores options it doesn't recognize here. See above. */
481
- uninterpretedOption: UninterpretedOption[];
482
- }
483
- export interface FieldOptions {
484
- /**
485
- * The ctype option instructs the C++ code generator to use a different
486
- * representation of the field than it normally would. See the specific
487
- * options below. This option is not yet implemented in the open source
488
- * release -- sorry, we'll try to include it in a future version!
489
- */
490
- ctype: FieldOptions_CType;
491
- /**
492
- * The packed option can be enabled for repeated primitive fields to enable
493
- * a more efficient representation on the wire. Rather than repeatedly
494
- * writing the tag and type for each element, the entire array is encoded as
495
- * a single length-delimited blob. In proto3, only explicit setting it to
496
- * false will avoid using packed encoding.
497
- */
498
- packed: boolean;
499
- /**
500
- * The jstype option determines the JavaScript type used for values of the
501
- * field. The option is permitted only for 64 bit integral and fixed types
502
- * (int64, uint64, sint64, fixed64, sfixed64). A field with jstype JS_STRING
503
- * is represented as JavaScript string, which avoids loss of precision that
504
- * can happen when a large value is converted to a floating point JavaScript.
505
- * Specifying JS_NUMBER for the jstype causes the generated JavaScript code to
506
- * use the JavaScript "number" type. The behavior of the default option
507
- * JS_NORMAL is implementation dependent.
508
- *
509
- * This option is an enum to permit additional types to be added, e.g.
510
- * goog.math.Integer.
511
- */
512
- jstype: FieldOptions_JSType;
513
- /**
514
- * Should this field be parsed lazily? Lazy applies only to message-type
515
- * fields. It means that when the outer message is initially parsed, the
516
- * inner message's contents will not be parsed but instead stored in encoded
517
- * form. The inner message will actually be parsed when it is first accessed.
518
- *
519
- * This is only a hint. Implementations are free to choose whether to use
520
- * eager or lazy parsing regardless of the value of this option. However,
521
- * setting this option true suggests that the protocol author believes that
522
- * using lazy parsing on this field is worth the additional bookkeeping
523
- * overhead typically needed to implement it.
524
- *
525
- * This option does not affect the public interface of any generated code;
526
- * all method signatures remain the same. Furthermore, thread-safety of the
527
- * interface is not affected by this option; const methods remain safe to
528
- * call from multiple threads concurrently, while non-const methods continue
529
- * to require exclusive access.
530
- *
531
- * Note that implementations may choose not to check required fields within
532
- * a lazy sub-message. That is, calling IsInitialized() on the outer message
533
- * may return true even if the inner message has missing required fields.
534
- * This is necessary because otherwise the inner message would have to be
535
- * parsed in order to perform the check, defeating the purpose of lazy
536
- * parsing. An implementation which chooses not to check required fields
537
- * must be consistent about it. That is, for any particular sub-message, the
538
- * implementation must either *always* check its required fields, or *never*
539
- * check its required fields, regardless of whether or not the message has
540
- * been parsed.
541
- *
542
- * As of May 2022, lazy verifies the contents of the byte stream during
543
- * parsing. An invalid byte stream will cause the overall parsing to fail.
544
- */
545
- lazy: boolean;
546
- /**
547
- * unverified_lazy does no correctness checks on the byte stream. This should
548
- * only be used where lazy with verification is prohibitive for performance
549
- * reasons.
550
- */
551
- unverifiedLazy: boolean;
552
- /**
553
- * Is this field deprecated?
554
- * Depending on the target platform, this can emit Deprecated annotations
555
- * for accessors, or it will be completely ignored; in the very least, this
556
- * is a formalization for deprecating fields.
557
- */
558
- deprecated: boolean;
559
- /** For Google-internal migration only. Do not use. */
560
- weak: boolean;
561
- /**
562
- * Indicate that the field value should not be printed out when using debug
563
- * formats, e.g. when the field contains sensitive credentials.
564
- */
565
- debugRedact: boolean;
566
- retention: FieldOptions_OptionRetention;
567
- target: FieldOptions_OptionTargetType;
568
- /** The parser stores options it doesn't recognize here. See above. */
569
- uninterpretedOption: UninterpretedOption[];
570
- }
571
- export declare enum FieldOptions_CType {
572
- /** STRING - Default mode. */
573
- STRING = 0,
574
- CORD = 1,
575
- STRING_PIECE = 2,
576
- UNRECOGNIZED = -1
577
- }
578
- export declare function fieldOptions_CTypeFromJSON(object: any): FieldOptions_CType;
579
- export declare function fieldOptions_CTypeToJSON(object: FieldOptions_CType): string;
580
- export declare enum FieldOptions_JSType {
581
- /** JS_NORMAL - Use the default type. */
582
- JS_NORMAL = 0,
583
- /** JS_STRING - Use JavaScript strings. */
584
- JS_STRING = 1,
585
- /** JS_NUMBER - Use JavaScript numbers. */
586
- JS_NUMBER = 2,
587
- UNRECOGNIZED = -1
588
- }
589
- export declare function fieldOptions_JSTypeFromJSON(object: any): FieldOptions_JSType;
590
- export declare function fieldOptions_JSTypeToJSON(object: FieldOptions_JSType): string;
591
- /**
592
- * If set to RETENTION_SOURCE, the option will be omitted from the binary.
593
- * Note: as of January 2023, support for this is in progress and does not yet
594
- * have an effect (b/264593489).
595
- */
596
- export declare enum FieldOptions_OptionRetention {
597
- RETENTION_UNKNOWN = 0,
598
- RETENTION_RUNTIME = 1,
599
- RETENTION_SOURCE = 2,
600
- UNRECOGNIZED = -1
601
- }
602
- export declare function fieldOptions_OptionRetentionFromJSON(object: any): FieldOptions_OptionRetention;
603
- export declare function fieldOptions_OptionRetentionToJSON(object: FieldOptions_OptionRetention): string;
604
- /**
605
- * This indicates the types of entities that the field may apply to when used
606
- * as an option. If it is unset, then the field may be freely used as an
607
- * option on any kind of entity. Note: as of January 2023, support for this is
608
- * in progress and does not yet have an effect (b/264593489).
609
- */
610
- export declare enum FieldOptions_OptionTargetType {
611
- TARGET_TYPE_UNKNOWN = 0,
612
- TARGET_TYPE_FILE = 1,
613
- TARGET_TYPE_EXTENSION_RANGE = 2,
614
- TARGET_TYPE_MESSAGE = 3,
615
- TARGET_TYPE_FIELD = 4,
616
- TARGET_TYPE_ONEOF = 5,
617
- TARGET_TYPE_ENUM = 6,
618
- TARGET_TYPE_ENUM_ENTRY = 7,
619
- TARGET_TYPE_SERVICE = 8,
620
- TARGET_TYPE_METHOD = 9,
621
- UNRECOGNIZED = -1
622
- }
623
- export declare function fieldOptions_OptionTargetTypeFromJSON(object: any): FieldOptions_OptionTargetType;
624
- export declare function fieldOptions_OptionTargetTypeToJSON(object: FieldOptions_OptionTargetType): string;
625
- export interface OneofOptions {
626
- /** The parser stores options it doesn't recognize here. See above. */
627
- uninterpretedOption: UninterpretedOption[];
628
- }
629
- export interface EnumOptions {
630
- /**
631
- * Set this option to true to allow mapping different tag names to the same
632
- * value.
633
- */
634
- allowAlias: boolean;
635
- /**
636
- * Is this enum deprecated?
637
- * Depending on the target platform, this can emit Deprecated annotations
638
- * for the enum, or it will be completely ignored; in the very least, this
639
- * is a formalization for deprecating enums.
640
- */
641
- deprecated: boolean;
642
- /**
643
- * Enable the legacy handling of JSON field name conflicts. This lowercases
644
- * and strips underscored from the fields before comparison in proto3 only.
645
- * The new behavior takes `json_name` into account and applies to proto2 as
646
- * well.
647
- * TODO(b/261750190) Remove this legacy behavior once downstream teams have
648
- * had time to migrate.
649
- *
650
- * @deprecated
651
- */
652
- deprecatedLegacyJsonFieldConflicts: boolean;
653
- /** The parser stores options it doesn't recognize here. See above. */
654
- uninterpretedOption: UninterpretedOption[];
655
- }
656
- export interface EnumValueOptions {
657
- /**
658
- * Is this enum value deprecated?
659
- * Depending on the target platform, this can emit Deprecated annotations
660
- * for the enum value, or it will be completely ignored; in the very least,
661
- * this is a formalization for deprecating enum values.
662
- */
663
- deprecated: boolean;
664
- /** The parser stores options it doesn't recognize here. See above. */
665
- uninterpretedOption: UninterpretedOption[];
666
- }
667
- export interface ServiceOptions {
668
- /**
669
- * Is this service deprecated?
670
- * Depending on the target platform, this can emit Deprecated annotations
671
- * for the service, or it will be completely ignored; in the very least,
672
- * this is a formalization for deprecating services.
673
- */
674
- deprecated: boolean;
675
- /** The parser stores options it doesn't recognize here. See above. */
676
- uninterpretedOption: UninterpretedOption[];
677
- }
678
- export interface MethodOptions {
679
- /**
680
- * Is this method deprecated?
681
- * Depending on the target platform, this can emit Deprecated annotations
682
- * for the method, or it will be completely ignored; in the very least,
683
- * this is a formalization for deprecating methods.
684
- */
685
- deprecated: boolean;
686
- idempotencyLevel: MethodOptions_IdempotencyLevel;
687
- /** The parser stores options it doesn't recognize here. See above. */
688
- uninterpretedOption: UninterpretedOption[];
689
- }
690
- /**
691
- * Is this method side-effect-free (or safe in HTTP parlance), or idempotent,
692
- * or neither? HTTP based RPC implementation may choose GET verb for safe
693
- * methods, and PUT verb for idempotent methods instead of the default POST.
694
- */
695
- export declare enum MethodOptions_IdempotencyLevel {
696
- IDEMPOTENCY_UNKNOWN = 0,
697
- /** NO_SIDE_EFFECTS - implies idempotent */
698
- NO_SIDE_EFFECTS = 1,
699
- /** IDEMPOTENT - idempotent, but may have side effects */
700
- IDEMPOTENT = 2,
701
- UNRECOGNIZED = -1
702
- }
703
- export declare function methodOptions_IdempotencyLevelFromJSON(object: any): MethodOptions_IdempotencyLevel;
704
- export declare function methodOptions_IdempotencyLevelToJSON(object: MethodOptions_IdempotencyLevel): string;
705
- /**
706
- * A message representing a option the parser does not recognize. This only
707
- * appears in options protos created by the compiler::Parser class.
708
- * DescriptorPool resolves these when building Descriptor objects. Therefore,
709
- * options protos in descriptor objects (e.g. returned by Descriptor::options(),
710
- * or produced by Descriptor::CopyTo()) will never have UninterpretedOptions
711
- * in them.
712
- */
713
- export interface UninterpretedOption {
714
- name: UninterpretedOption_NamePart[];
715
- /**
716
- * The value of the uninterpreted option, in whatever type the tokenizer
717
- * identified it as during parsing. Exactly one of these should be set.
718
- */
719
- identifierValue: string;
720
- positiveIntValue: number;
721
- negativeIntValue: number;
722
- doubleValue: number;
723
- stringValue: Buffer;
724
- aggregateValue: string;
725
- }
726
- /**
727
- * The name of the uninterpreted option. Each string represents a segment in
728
- * a dot-separated name. is_extension is true iff a segment represents an
729
- * extension (denoted with parentheses in options specs in .proto files).
730
- * E.g.,{ ["foo", false], ["bar.baz", true], ["moo", false] } represents
731
- * "foo.(bar.baz).moo".
732
- */
733
- export interface UninterpretedOption_NamePart {
734
- namePart: string;
735
- isExtension: boolean;
736
- }
737
- /**
738
- * Encapsulates information about the original source file from which a
739
- * FileDescriptorProto was generated.
740
- */
741
- export interface SourceCodeInfo {
742
- /**
743
- * A Location identifies a piece of source code in a .proto file which
744
- * corresponds to a particular definition. This information is intended
745
- * to be useful to IDEs, code indexers, documentation generators, and similar
746
- * tools.
747
- *
748
- * For example, say we have a file like:
749
- * message Foo {
750
- * optional string foo = 1;
751
- * }
752
- * Let's look at just the field definition:
753
- * optional string foo = 1;
754
- * ^ ^^ ^^ ^ ^^^
755
- * a bc de f ghi
756
- * We have the following locations:
757
- * span path represents
758
- * [a,i) [ 4, 0, 2, 0 ] The whole field definition.
759
- * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional).
760
- * [c,d) [ 4, 0, 2, 0, 5 ] The type (string).
761
- * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo).
762
- * [g,h) [ 4, 0, 2, 0, 3 ] The number (1).
763
- *
764
- * Notes:
765
- * - A location may refer to a repeated field itself (i.e. not to any
766
- * particular index within it). This is used whenever a set of elements are
767
- * logically enclosed in a single code segment. For example, an entire
768
- * extend block (possibly containing multiple extension definitions) will
769
- * have an outer location whose path refers to the "extensions" repeated
770
- * field without an index.
771
- * - Multiple locations may have the same path. This happens when a single
772
- * logical declaration is spread out across multiple places. The most
773
- * obvious example is the "extend" block again -- there may be multiple
774
- * extend blocks in the same scope, each of which will have the same path.
775
- * - A location's span is not always a subset of its parent's span. For
776
- * example, the "extendee" of an extension declaration appears at the
777
- * beginning of the "extend" block and is shared by all extensions within
778
- * the block.
779
- * - Just because a location's span is a subset of some other location's span
780
- * does not mean that it is a descendant. For example, a "group" defines
781
- * both a type and a field in a single declaration. Thus, the locations
782
- * corresponding to the type and field and their components will overlap.
783
- * - Code which tries to interpret locations should probably be designed to
784
- * ignore those that it doesn't understand, as more types of locations could
785
- * be recorded in the future.
786
- */
787
- location: SourceCodeInfo_Location[];
788
- }
789
- export interface SourceCodeInfo_Location {
790
- /**
791
- * Identifies which part of the FileDescriptorProto was defined at this
792
- * location.
793
- *
794
- * Each element is a field number or an index. They form a path from
795
- * the root FileDescriptorProto to the place where the definition occurs.
796
- * For example, this path:
797
- * [ 4, 3, 2, 7, 1 ]
798
- * refers to:
799
- * file.message_type(3) // 4, 3
800
- * .field(7) // 2, 7
801
- * .name() // 1
802
- * This is because FileDescriptorProto.message_type has field number 4:
803
- * repeated DescriptorProto message_type = 4;
804
- * and DescriptorProto.field has field number 2:
805
- * repeated FieldDescriptorProto field = 2;
806
- * and FieldDescriptorProto.name has field number 1:
807
- * optional string name = 1;
808
- *
809
- * Thus, the above path gives the location of a field name. If we removed
810
- * the last element:
811
- * [ 4, 3, 2, 7 ]
812
- * this path refers to the whole field declaration (from the beginning
813
- * of the label to the terminating semicolon).
814
- */
815
- path: number[];
816
- /**
817
- * Always has exactly three or four elements: start line, start column,
818
- * end line (optional, otherwise assumed same as start line), end column.
819
- * These are packed into a single field for efficiency. Note that line
820
- * and column numbers are zero-based -- typically you will want to add
821
- * 1 to each before displaying to a user.
822
- */
823
- span: number[];
824
- /**
825
- * If this SourceCodeInfo represents a complete declaration, these are any
826
- * comments appearing before and after the declaration which appear to be
827
- * attached to the declaration.
828
- *
829
- * A series of line comments appearing on consecutive lines, with no other
830
- * tokens appearing on those lines, will be treated as a single comment.
831
- *
832
- * leading_detached_comments will keep paragraphs of comments that appear
833
- * before (but not connected to) the current element. Each paragraph,
834
- * separated by empty lines, will be one comment element in the repeated
835
- * field.
836
- *
837
- * Only the comment content is provided; comment markers (e.g. //) are
838
- * stripped out. For block comments, leading whitespace and an asterisk
839
- * will be stripped from the beginning of each line other than the first.
840
- * Newlines are included in the output.
841
- *
842
- * Examples:
843
- *
844
- * optional int32 foo = 1; // Comment attached to foo.
845
- * // Comment attached to bar.
846
- * optional int32 bar = 2;
847
- *
848
- * optional string baz = 3;
849
- * // Comment attached to baz.
850
- * // Another line attached to baz.
851
- *
852
- * // Comment attached to moo.
853
- * //
854
- * // Another line attached to moo.
855
- * optional double moo = 4;
856
- *
857
- * // Detached comment for corge. This is not leading or trailing comments
858
- * // to moo or corge because there are blank lines separating it from
859
- * // both.
860
- *
861
- * // Detached comment for corge paragraph 2.
862
- *
863
- * optional string corge = 5;
864
- * /* Block comment attached
865
- * * to corge. Leading asterisks
866
- * * will be removed. * /
867
- * /* Block comment attached to
868
- * * grault. * /
869
- * optional int32 grault = 6;
870
- *
871
- * // ignored detached comments.
872
- */
873
- leadingComments: string;
874
- trailingComments: string;
875
- leadingDetachedComments: string[];
876
- }
877
- /**
878
- * Describes the relationship between generated code and its original source
879
- * file. A GeneratedCodeInfo message is associated with only one generated
880
- * source file, but may contain references to different source .proto files.
881
- */
882
- export interface GeneratedCodeInfo {
883
- /**
884
- * An Annotation connects some span of text in generated code to an element
885
- * of its generating .proto file.
886
- */
887
- annotation: GeneratedCodeInfo_Annotation[];
888
- }
889
- export interface GeneratedCodeInfo_Annotation {
890
- /**
891
- * Identifies the element in the original source .proto file. This field
892
- * is formatted the same as SourceCodeInfo.Location.path.
893
- */
894
- path: number[];
895
- /** Identifies the filesystem path to the original source .proto. */
896
- sourceFile: string;
897
- /**
898
- * Identifies the starting offset in bytes in the generated code
899
- * that relates to the identified object.
900
- */
901
- begin: number;
902
- /**
903
- * Identifies the ending offset in bytes in the generated code that
904
- * relates to the identified object. The end offset should be one past
905
- * the last relevant byte (so the length of the text = end - begin).
906
- */
907
- end: number;
908
- semantic: GeneratedCodeInfo_Annotation_Semantic;
909
- }
910
- /**
911
- * Represents the identified object's effect on the element in the original
912
- * .proto file.
913
- */
914
- export declare enum GeneratedCodeInfo_Annotation_Semantic {
915
- /** NONE - There is no effect or the effect is indescribable. */
916
- NONE = 0,
917
- /** SET - The element is set or otherwise mutated. */
918
- SET = 1,
919
- /** ALIAS - An alias to the element is returned. */
920
- ALIAS = 2,
921
- UNRECOGNIZED = -1
922
- }
923
- export declare function generatedCodeInfo_Annotation_SemanticFromJSON(object: any): GeneratedCodeInfo_Annotation_Semantic;
924
- export declare function generatedCodeInfo_Annotation_SemanticToJSON(object: GeneratedCodeInfo_Annotation_Semantic): string;
925
- export declare const FileDescriptorSet: {
926
- encode(message: FileDescriptorSet, writer?: _m0.Writer): _m0.Writer;
927
- decode(input: _m0.Reader | Uint8Array, length?: number): FileDescriptorSet;
928
- fromJSON(object: any): FileDescriptorSet;
929
- toJSON(message: FileDescriptorSet): unknown;
930
- create(base?: DeepPartial<FileDescriptorSet>): FileDescriptorSet;
931
- fromPartial(object: DeepPartial<FileDescriptorSet>): FileDescriptorSet;
932
- };
933
- export declare const FileDescriptorProto: {
934
- encode(message: FileDescriptorProto, writer?: _m0.Writer): _m0.Writer;
935
- decode(input: _m0.Reader | Uint8Array, length?: number): FileDescriptorProto;
936
- fromJSON(object: any): FileDescriptorProto;
937
- toJSON(message: FileDescriptorProto): unknown;
938
- create(base?: DeepPartial<FileDescriptorProto>): FileDescriptorProto;
939
- fromPartial(object: DeepPartial<FileDescriptorProto>): FileDescriptorProto;
940
- };
941
- export declare const DescriptorProto: {
942
- encode(message: DescriptorProto, writer?: _m0.Writer): _m0.Writer;
943
- decode(input: _m0.Reader | Uint8Array, length?: number): DescriptorProto;
944
- fromJSON(object: any): DescriptorProto;
945
- toJSON(message: DescriptorProto): unknown;
946
- create(base?: DeepPartial<DescriptorProto>): DescriptorProto;
947
- fromPartial(object: DeepPartial<DescriptorProto>): DescriptorProto;
948
- };
949
- export declare const DescriptorProto_ExtensionRange: {
950
- encode(message: DescriptorProto_ExtensionRange, writer?: _m0.Writer): _m0.Writer;
951
- decode(input: _m0.Reader | Uint8Array, length?: number): DescriptorProto_ExtensionRange;
952
- fromJSON(object: any): DescriptorProto_ExtensionRange;
953
- toJSON(message: DescriptorProto_ExtensionRange): unknown;
954
- create(base?: DeepPartial<DescriptorProto_ExtensionRange>): DescriptorProto_ExtensionRange;
955
- fromPartial(object: DeepPartial<DescriptorProto_ExtensionRange>): DescriptorProto_ExtensionRange;
956
- };
957
- export declare const DescriptorProto_ReservedRange: {
958
- encode(message: DescriptorProto_ReservedRange, writer?: _m0.Writer): _m0.Writer;
959
- decode(input: _m0.Reader | Uint8Array, length?: number): DescriptorProto_ReservedRange;
960
- fromJSON(object: any): DescriptorProto_ReservedRange;
961
- toJSON(message: DescriptorProto_ReservedRange): unknown;
962
- create(base?: DeepPartial<DescriptorProto_ReservedRange>): DescriptorProto_ReservedRange;
963
- fromPartial(object: DeepPartial<DescriptorProto_ReservedRange>): DescriptorProto_ReservedRange;
964
- };
965
- export declare const ExtensionRangeOptions: {
966
- encode(message: ExtensionRangeOptions, writer?: _m0.Writer): _m0.Writer;
967
- decode(input: _m0.Reader | Uint8Array, length?: number): ExtensionRangeOptions;
968
- fromJSON(object: any): ExtensionRangeOptions;
969
- toJSON(message: ExtensionRangeOptions): unknown;
970
- create(base?: DeepPartial<ExtensionRangeOptions>): ExtensionRangeOptions;
971
- fromPartial(object: DeepPartial<ExtensionRangeOptions>): ExtensionRangeOptions;
972
- };
973
- export declare const FieldDescriptorProto: {
974
- encode(message: FieldDescriptorProto, writer?: _m0.Writer): _m0.Writer;
975
- decode(input: _m0.Reader | Uint8Array, length?: number): FieldDescriptorProto;
976
- fromJSON(object: any): FieldDescriptorProto;
977
- toJSON(message: FieldDescriptorProto): unknown;
978
- create(base?: DeepPartial<FieldDescriptorProto>): FieldDescriptorProto;
979
- fromPartial(object: DeepPartial<FieldDescriptorProto>): FieldDescriptorProto;
980
- };
981
- export declare const OneofDescriptorProto: {
982
- encode(message: OneofDescriptorProto, writer?: _m0.Writer): _m0.Writer;
983
- decode(input: _m0.Reader | Uint8Array, length?: number): OneofDescriptorProto;
984
- fromJSON(object: any): OneofDescriptorProto;
985
- toJSON(message: OneofDescriptorProto): unknown;
986
- create(base?: DeepPartial<OneofDescriptorProto>): OneofDescriptorProto;
987
- fromPartial(object: DeepPartial<OneofDescriptorProto>): OneofDescriptorProto;
988
- };
989
- export declare const EnumDescriptorProto: {
990
- encode(message: EnumDescriptorProto, writer?: _m0.Writer): _m0.Writer;
991
- decode(input: _m0.Reader | Uint8Array, length?: number): EnumDescriptorProto;
992
- fromJSON(object: any): EnumDescriptorProto;
993
- toJSON(message: EnumDescriptorProto): unknown;
994
- create(base?: DeepPartial<EnumDescriptorProto>): EnumDescriptorProto;
995
- fromPartial(object: DeepPartial<EnumDescriptorProto>): EnumDescriptorProto;
996
- };
997
- export declare const EnumDescriptorProto_EnumReservedRange: {
998
- encode(message: EnumDescriptorProto_EnumReservedRange, writer?: _m0.Writer): _m0.Writer;
999
- decode(input: _m0.Reader | Uint8Array, length?: number): EnumDescriptorProto_EnumReservedRange;
1000
- fromJSON(object: any): EnumDescriptorProto_EnumReservedRange;
1001
- toJSON(message: EnumDescriptorProto_EnumReservedRange): unknown;
1002
- create(base?: DeepPartial<EnumDescriptorProto_EnumReservedRange>): EnumDescriptorProto_EnumReservedRange;
1003
- fromPartial(object: DeepPartial<EnumDescriptorProto_EnumReservedRange>): EnumDescriptorProto_EnumReservedRange;
1004
- };
1005
- export declare const EnumValueDescriptorProto: {
1006
- encode(message: EnumValueDescriptorProto, writer?: _m0.Writer): _m0.Writer;
1007
- decode(input: _m0.Reader | Uint8Array, length?: number): EnumValueDescriptorProto;
1008
- fromJSON(object: any): EnumValueDescriptorProto;
1009
- toJSON(message: EnumValueDescriptorProto): unknown;
1010
- create(base?: DeepPartial<EnumValueDescriptorProto>): EnumValueDescriptorProto;
1011
- fromPartial(object: DeepPartial<EnumValueDescriptorProto>): EnumValueDescriptorProto;
1012
- };
1013
- export declare const ServiceDescriptorProto: {
1014
- encode(message: ServiceDescriptorProto, writer?: _m0.Writer): _m0.Writer;
1015
- decode(input: _m0.Reader | Uint8Array, length?: number): ServiceDescriptorProto;
1016
- fromJSON(object: any): ServiceDescriptorProto;
1017
- toJSON(message: ServiceDescriptorProto): unknown;
1018
- create(base?: DeepPartial<ServiceDescriptorProto>): ServiceDescriptorProto;
1019
- fromPartial(object: DeepPartial<ServiceDescriptorProto>): ServiceDescriptorProto;
1020
- };
1021
- export declare const MethodDescriptorProto: {
1022
- encode(message: MethodDescriptorProto, writer?: _m0.Writer): _m0.Writer;
1023
- decode(input: _m0.Reader | Uint8Array, length?: number): MethodDescriptorProto;
1024
- fromJSON(object: any): MethodDescriptorProto;
1025
- toJSON(message: MethodDescriptorProto): unknown;
1026
- create(base?: DeepPartial<MethodDescriptorProto>): MethodDescriptorProto;
1027
- fromPartial(object: DeepPartial<MethodDescriptorProto>): MethodDescriptorProto;
1028
- };
1029
- export declare const FileOptions: {
1030
- encode(message: FileOptions, writer?: _m0.Writer): _m0.Writer;
1031
- decode(input: _m0.Reader | Uint8Array, length?: number): FileOptions;
1032
- fromJSON(object: any): FileOptions;
1033
- toJSON(message: FileOptions): unknown;
1034
- create(base?: DeepPartial<FileOptions>): FileOptions;
1035
- fromPartial(object: DeepPartial<FileOptions>): FileOptions;
1036
- };
1037
- export declare const MessageOptions: {
1038
- encode(message: MessageOptions, writer?: _m0.Writer): _m0.Writer;
1039
- decode(input: _m0.Reader | Uint8Array, length?: number): MessageOptions;
1040
- fromJSON(object: any): MessageOptions;
1041
- toJSON(message: MessageOptions): unknown;
1042
- create(base?: DeepPartial<MessageOptions>): MessageOptions;
1043
- fromPartial(object: DeepPartial<MessageOptions>): MessageOptions;
1044
- };
1045
- export declare const FieldOptions: {
1046
- encode(message: FieldOptions, writer?: _m0.Writer): _m0.Writer;
1047
- decode(input: _m0.Reader | Uint8Array, length?: number): FieldOptions;
1048
- fromJSON(object: any): FieldOptions;
1049
- toJSON(message: FieldOptions): unknown;
1050
- create(base?: DeepPartial<FieldOptions>): FieldOptions;
1051
- fromPartial(object: DeepPartial<FieldOptions>): FieldOptions;
1052
- };
1053
- export declare const OneofOptions: {
1054
- encode(message: OneofOptions, writer?: _m0.Writer): _m0.Writer;
1055
- decode(input: _m0.Reader | Uint8Array, length?: number): OneofOptions;
1056
- fromJSON(object: any): OneofOptions;
1057
- toJSON(message: OneofOptions): unknown;
1058
- create(base?: DeepPartial<OneofOptions>): OneofOptions;
1059
- fromPartial(object: DeepPartial<OneofOptions>): OneofOptions;
1060
- };
1061
- export declare const EnumOptions: {
1062
- encode(message: EnumOptions, writer?: _m0.Writer): _m0.Writer;
1063
- decode(input: _m0.Reader | Uint8Array, length?: number): EnumOptions;
1064
- fromJSON(object: any): EnumOptions;
1065
- toJSON(message: EnumOptions): unknown;
1066
- create(base?: DeepPartial<EnumOptions>): EnumOptions;
1067
- fromPartial(object: DeepPartial<EnumOptions>): EnumOptions;
1068
- };
1069
- export declare const EnumValueOptions: {
1070
- encode(message: EnumValueOptions, writer?: _m0.Writer): _m0.Writer;
1071
- decode(input: _m0.Reader | Uint8Array, length?: number): EnumValueOptions;
1072
- fromJSON(object: any): EnumValueOptions;
1073
- toJSON(message: EnumValueOptions): unknown;
1074
- create(base?: DeepPartial<EnumValueOptions>): EnumValueOptions;
1075
- fromPartial(object: DeepPartial<EnumValueOptions>): EnumValueOptions;
1076
- };
1077
- export declare const ServiceOptions: {
1078
- encode(message: ServiceOptions, writer?: _m0.Writer): _m0.Writer;
1079
- decode(input: _m0.Reader | Uint8Array, length?: number): ServiceOptions;
1080
- fromJSON(object: any): ServiceOptions;
1081
- toJSON(message: ServiceOptions): unknown;
1082
- create(base?: DeepPartial<ServiceOptions>): ServiceOptions;
1083
- fromPartial(object: DeepPartial<ServiceOptions>): ServiceOptions;
1084
- };
1085
- export declare const MethodOptions: {
1086
- encode(message: MethodOptions, writer?: _m0.Writer): _m0.Writer;
1087
- decode(input: _m0.Reader | Uint8Array, length?: number): MethodOptions;
1088
- fromJSON(object: any): MethodOptions;
1089
- toJSON(message: MethodOptions): unknown;
1090
- create(base?: DeepPartial<MethodOptions>): MethodOptions;
1091
- fromPartial(object: DeepPartial<MethodOptions>): MethodOptions;
1092
- };
1093
- export declare const UninterpretedOption: {
1094
- encode(message: UninterpretedOption, writer?: _m0.Writer): _m0.Writer;
1095
- decode(input: _m0.Reader | Uint8Array, length?: number): UninterpretedOption;
1096
- fromJSON(object: any): UninterpretedOption;
1097
- toJSON(message: UninterpretedOption): unknown;
1098
- create(base?: DeepPartial<UninterpretedOption>): UninterpretedOption;
1099
- fromPartial(object: DeepPartial<UninterpretedOption>): UninterpretedOption;
1100
- };
1101
- export declare const UninterpretedOption_NamePart: {
1102
- encode(message: UninterpretedOption_NamePart, writer?: _m0.Writer): _m0.Writer;
1103
- decode(input: _m0.Reader | Uint8Array, length?: number): UninterpretedOption_NamePart;
1104
- fromJSON(object: any): UninterpretedOption_NamePart;
1105
- toJSON(message: UninterpretedOption_NamePart): unknown;
1106
- create(base?: DeepPartial<UninterpretedOption_NamePart>): UninterpretedOption_NamePart;
1107
- fromPartial(object: DeepPartial<UninterpretedOption_NamePart>): UninterpretedOption_NamePart;
1108
- };
1109
- export declare const SourceCodeInfo: {
1110
- encode(message: SourceCodeInfo, writer?: _m0.Writer): _m0.Writer;
1111
- decode(input: _m0.Reader | Uint8Array, length?: number): SourceCodeInfo;
1112
- fromJSON(object: any): SourceCodeInfo;
1113
- toJSON(message: SourceCodeInfo): unknown;
1114
- create(base?: DeepPartial<SourceCodeInfo>): SourceCodeInfo;
1115
- fromPartial(object: DeepPartial<SourceCodeInfo>): SourceCodeInfo;
1116
- };
1117
- export declare const SourceCodeInfo_Location: {
1118
- encode(message: SourceCodeInfo_Location, writer?: _m0.Writer): _m0.Writer;
1119
- decode(input: _m0.Reader | Uint8Array, length?: number): SourceCodeInfo_Location;
1120
- fromJSON(object: any): SourceCodeInfo_Location;
1121
- toJSON(message: SourceCodeInfo_Location): unknown;
1122
- create(base?: DeepPartial<SourceCodeInfo_Location>): SourceCodeInfo_Location;
1123
- fromPartial(object: DeepPartial<SourceCodeInfo_Location>): SourceCodeInfo_Location;
1124
- };
1125
- export declare const GeneratedCodeInfo: {
1126
- encode(message: GeneratedCodeInfo, writer?: _m0.Writer): _m0.Writer;
1127
- decode(input: _m0.Reader | Uint8Array, length?: number): GeneratedCodeInfo;
1128
- fromJSON(object: any): GeneratedCodeInfo;
1129
- toJSON(message: GeneratedCodeInfo): unknown;
1130
- create(base?: DeepPartial<GeneratedCodeInfo>): GeneratedCodeInfo;
1131
- fromPartial(object: DeepPartial<GeneratedCodeInfo>): GeneratedCodeInfo;
1132
- };
1133
- export declare const GeneratedCodeInfo_Annotation: {
1134
- encode(message: GeneratedCodeInfo_Annotation, writer?: _m0.Writer): _m0.Writer;
1135
- decode(input: _m0.Reader | Uint8Array, length?: number): GeneratedCodeInfo_Annotation;
1136
- fromJSON(object: any): GeneratedCodeInfo_Annotation;
1137
- toJSON(message: GeneratedCodeInfo_Annotation): unknown;
1138
- create(base?: DeepPartial<GeneratedCodeInfo_Annotation>): GeneratedCodeInfo_Annotation;
1139
- fromPartial(object: DeepPartial<GeneratedCodeInfo_Annotation>): GeneratedCodeInfo_Annotation;
1140
- };
1141
- type ProtoMetaMessageOptions = {
1142
- options?: {
1143
- [key: string]: any;
1144
- };
1145
- fields?: {
1146
- [key: string]: {
1147
- [key: string]: any;
1148
- };
1149
- };
1150
- oneof?: {
1151
- [key: string]: {
1152
- [key: string]: any;
1153
- };
1154
- };
1155
- nested?: {
1156
- [key: string]: ProtoMetaMessageOptions;
1157
- };
1158
- };
1159
- export interface ProtoMetadata {
1160
- fileDescriptor: FileDescriptorProto1;
1161
- references: {
1162
- [key: string]: any;
1163
- };
1164
- dependencies?: ProtoMetadata[];
1165
- options?: {
1166
- options?: {
1167
- [key: string]: any;
1168
- };
1169
- services?: {
1170
- [key: string]: {
1171
- options?: {
1172
- [key: string]: any;
1173
- };
1174
- methods?: {
1175
- [key: string]: {
1176
- [key: string]: any;
1177
- };
1178
- };
1179
- };
1180
- };
1181
- messages?: {
1182
- [key: string]: ProtoMetaMessageOptions;
1183
- };
1184
- enums?: {
1185
- [key: string]: {
1186
- options?: {
1187
- [key: string]: any;
1188
- };
1189
- values?: {
1190
- [key: string]: {
1191
- [key: string]: any;
1192
- };
1193
- };
1194
- };
1195
- };
1196
- };
1197
- }
1198
- export declare const protoMetadata: ProtoMetadata;
1199
- type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
1200
- export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
1201
- [K in keyof T]?: DeepPartial<T[K]>;
1202
- } : Partial<T>;
1203
- export {};
1204
- //# sourceMappingURL=descriptor.d.ts.map