@zoguxprotocol/proto 0.1.0

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 (422) hide show
  1. package/LICENSE +800 -0
  2. package/README.md +14 -0
  3. package/package.json +48 -0
  4. package/src/codegen/amino/amino.ts +1 -0
  5. package/src/codegen/amino/bundle.ts +3 -0
  6. package/src/codegen/cosmos/app/runtime/v1alpha1/module.ts +277 -0
  7. package/src/codegen/cosmos/app/v1alpha1/config.ts +265 -0
  8. package/src/codegen/cosmos/app/v1alpha1/module.ts +274 -0
  9. package/src/codegen/cosmos/app/v1alpha1/query.rpc.Query.ts +35 -0
  10. package/src/codegen/cosmos/app/v1alpha1/query.ts +99 -0
  11. package/src/codegen/cosmos/auth/module/v1/module.ts +159 -0
  12. package/src/codegen/cosmos/auth/v1beta1/auth.ts +365 -0
  13. package/src/codegen/cosmos/auth/v1beta1/genesis.ts +74 -0
  14. package/src/codegen/cosmos/auth/v1beta1/query.lcd.ts +130 -0
  15. package/src/codegen/cosmos/auth/v1beta1/query.rpc.Query.ts +194 -0
  16. package/src/codegen/cosmos/auth/v1beta1/query.ts +1221 -0
  17. package/src/codegen/cosmos/auth/v1beta1/tx.rpc.msg.ts +29 -0
  18. package/src/codegen/cosmos/auth/v1beta1/tx.ts +135 -0
  19. package/src/codegen/cosmos/authz/module/v1/module.ts +42 -0
  20. package/src/codegen/cosmos/authz/v1beta1/authz.ts +298 -0
  21. package/src/codegen/cosmos/authz/v1beta1/event.ts +170 -0
  22. package/src/codegen/cosmos/authz/v1beta1/genesis.ts +58 -0
  23. package/src/codegen/cosmos/authz/v1beta1/query.lcd.ts +79 -0
  24. package/src/codegen/cosmos/authz/v1beta1/query.rpc.Query.ts +71 -0
  25. package/src/codegen/cosmos/authz/v1beta1/query.ts +447 -0
  26. package/src/codegen/cosmos/authz/v1beta1/tx.rpc.msg.ts +56 -0
  27. package/src/codegen/cosmos/authz/v1beta1/tx.ts +390 -0
  28. package/src/codegen/cosmos/bank/module/v1/module.ts +76 -0
  29. package/src/codegen/cosmos/bank/v1beta1/authz.ts +87 -0
  30. package/src/codegen/cosmos/bank/v1beta1/bank.ts +630 -0
  31. package/src/codegen/cosmos/bank/v1beta1/genesis.ts +199 -0
  32. package/src/codegen/cosmos/bank/v1beta1/query.lcd.ts +237 -0
  33. package/src/codegen/cosmos/bank/v1beta1/query.rpc.Query.ts +243 -0
  34. package/src/codegen/cosmos/bank/v1beta1/query.ts +1727 -0
  35. package/src/codegen/cosmos/bank/v1beta1/tx.rpc.msg.ts +66 -0
  36. package/src/codegen/cosmos/bank/v1beta1/tx.ts +519 -0
  37. package/src/codegen/cosmos/base/abci/v1beta1/abci.ts +1147 -0
  38. package/src/codegen/cosmos/base/node/v1beta1/query.lcd.ts +30 -0
  39. package/src/codegen/cosmos/base/node/v1beta1/query.rpc.Service.ts +49 -0
  40. package/src/codegen/cosmos/base/node/v1beta1/query.ts +276 -0
  41. package/src/codegen/cosmos/base/query/v1beta1/pagination.ts +243 -0
  42. package/src/codegen/cosmos/base/reflection/v1beta1/reflection.ts +221 -0
  43. package/src/codegen/cosmos/base/reflection/v2alpha1/reflection.ts +1630 -0
  44. package/src/codegen/cosmos/base/tendermint/v1beta1/query.lcd.ts +113 -0
  45. package/src/codegen/cosmos/base/tendermint/v1beta1/query.rpc.Service.ts +127 -0
  46. package/src/codegen/cosmos/base/tendermint/v1beta1/query.ts +1486 -0
  47. package/src/codegen/cosmos/base/tendermint/v1beta1/types.ts +335 -0
  48. package/src/codegen/cosmos/base/v1beta1/coin.ts +278 -0
  49. package/src/codegen/cosmos/bundle.ts +578 -0
  50. package/src/codegen/cosmos/circuit/module/v1/module.ts +58 -0
  51. package/src/codegen/cosmos/circuit/v1/query.lcd.ts +49 -0
  52. package/src/codegen/cosmos/circuit/v1/query.rpc.Query.ts +65 -0
  53. package/src/codegen/cosmos/circuit/v1/query.ts +334 -0
  54. package/src/codegen/cosmos/circuit/v1/tx.rpc.msg.ts +50 -0
  55. package/src/codegen/cosmos/circuit/v1/tx.ts +409 -0
  56. package/src/codegen/cosmos/circuit/v1/types.ts +290 -0
  57. package/src/codegen/cosmos/consensus/module/v1/module.ts +58 -0
  58. package/src/codegen/cosmos/consensus/v1/query.lcd.ts +22 -0
  59. package/src/codegen/cosmos/consensus/v1/query.rpc.Query.ts +35 -0
  60. package/src/codegen/cosmos/consensus/v1/query.ts +103 -0
  61. package/src/codegen/cosmos/consensus/v1/tx.rpc.msg.ts +29 -0
  62. package/src/codegen/cosmos/consensus/v1/tx.ts +163 -0
  63. package/src/codegen/cosmos/crisis/module/v1/module.ts +72 -0
  64. package/src/codegen/cosmos/crisis/v1beta1/genesis.ts +62 -0
  65. package/src/codegen/cosmos/crisis/v1beta1/tx.rpc.msg.ts +39 -0
  66. package/src/codegen/cosmos/crisis/v1beta1/tx.ts +255 -0
  67. package/src/codegen/cosmos/crypto/ed25519/keys.ts +130 -0
  68. package/src/codegen/cosmos/crypto/hd/v1/hd.ts +117 -0
  69. package/src/codegen/cosmos/crypto/keyring/v1/record.ts +326 -0
  70. package/src/codegen/cosmos/crypto/multisig/keys.ts +78 -0
  71. package/src/codegen/cosmos/crypto/multisig/v1beta1/multisig.ts +142 -0
  72. package/src/codegen/cosmos/crypto/secp256k1/keys.ts +124 -0
  73. package/src/codegen/cosmos/crypto/secp256r1/keys.ts +117 -0
  74. package/src/codegen/cosmos/distribution/module/v1/module.ts +71 -0
  75. package/src/codegen/cosmos/distribution/v1beta1/distribution.ts +977 -0
  76. package/src/codegen/cosmos/distribution/v1beta1/genesis.ts +752 -0
  77. package/src/codegen/cosmos/distribution/v1beta1/query.lcd.ts +112 -0
  78. package/src/codegen/cosmos/distribution/v1beta1/query.rpc.Query.ts +164 -0
  79. package/src/codegen/cosmos/distribution/v1beta1/query.ts +1300 -0
  80. package/src/codegen/cosmos/distribution/v1beta1/tx.rpc.msg.ts +113 -0
  81. package/src/codegen/cosmos/distribution/v1beta1/tx.ts +907 -0
  82. package/src/codegen/cosmos/evidence/module/v1/module.ts +42 -0
  83. package/src/codegen/cosmos/evidence/v1beta1/evidence.ts +107 -0
  84. package/src/codegen/cosmos/evidence/v1beta1/genesis.ts +59 -0
  85. package/src/codegen/cosmos/evidence/v1beta1/query.lcd.ts +49 -0
  86. package/src/codegen/cosmos/evidence/v1beta1/query.rpc.Query.ts +51 -0
  87. package/src/codegen/cosmos/evidence/v1beta1/query.ts +278 -0
  88. package/src/codegen/cosmos/evidence/v1beta1/tx.rpc.msg.ts +27 -0
  89. package/src/codegen/cosmos/evidence/v1beta1/tx.ts +135 -0
  90. package/src/codegen/cosmos/feegrant/module/v1/module.ts +42 -0
  91. package/src/codegen/cosmos/feegrant/v1beta1/feegrant.ts +368 -0
  92. package/src/codegen/cosmos/feegrant/v1beta1/genesis.ts +58 -0
  93. package/src/codegen/cosmos/feegrant/v1beta1/query.lcd.ts +57 -0
  94. package/src/codegen/cosmos/feegrant/v1beta1/query.rpc.Query.ts +67 -0
  95. package/src/codegen/cosmos/feegrant/v1beta1/query.ts +424 -0
  96. package/src/codegen/cosmos/feegrant/v1beta1/tx.rpc.msg.ts +54 -0
  97. package/src/codegen/cosmos/feegrant/v1beta1/tx.ts +355 -0
  98. package/src/codegen/cosmos/genutil/module/v1/module.ts +42 -0
  99. package/src/codegen/cosmos/genutil/v1beta1/genesis.ts +58 -0
  100. package/src/codegen/cosmos/gov/module/v1/module.ts +75 -0
  101. package/src/codegen/cosmos/gov/v1/genesis.ts +203 -0
  102. package/src/codegen/cosmos/gov/v1/gov.ts +1353 -0
  103. package/src/codegen/cosmos/gov/v1/query.lcd.ts +123 -0
  104. package/src/codegen/cosmos/gov/v1/query.rpc.Query.ts +147 -0
  105. package/src/codegen/cosmos/gov/v1/query.ts +1210 -0
  106. package/src/codegen/cosmos/gov/v1/tx.rpc.msg.ts +96 -0
  107. package/src/codegen/cosmos/gov/v1/tx.ts +1040 -0
  108. package/src/codegen/cosmos/gov/v1beta1/genesis.ts +143 -0
  109. package/src/codegen/cosmos/gov/v1beta1/gov.ts +1020 -0
  110. package/src/codegen/cosmos/gov/v1beta1/query.lcd.ts +115 -0
  111. package/src/codegen/cosmos/gov/v1beta1/query.rpc.Query.ts +133 -0
  112. package/src/codegen/cosmos/gov/v1beta1/query.ts +1076 -0
  113. package/src/codegen/cosmos/gov/v1beta1/tx.rpc.msg.ts +58 -0
  114. package/src/codegen/cosmos/gov/v1beta1/tx.ts +539 -0
  115. package/src/codegen/cosmos/group/module/v1/module.ts +79 -0
  116. package/src/codegen/cosmos/group/v1/events.ts +633 -0
  117. package/src/codegen/cosmos/group/v1/genesis.ts +166 -0
  118. package/src/codegen/cosmos/group/v1/query.lcd.ts +207 -0
  119. package/src/codegen/cosmos/group/v1/query.rpc.Query.ts +229 -0
  120. package/src/codegen/cosmos/group/v1/query.ts +1840 -0
  121. package/src/codegen/cosmos/group/v1/tx.rpc.msg.ts +154 -0
  122. package/src/codegen/cosmos/group/v1/tx.ts +2004 -0
  123. package/src/codegen/cosmos/group/v1/types.ts +1528 -0
  124. package/src/codegen/cosmos/lcd.ts +114 -0
  125. package/src/codegen/cosmos/mint/module/v1/module.ts +71 -0
  126. package/src/codegen/cosmos/mint/v1beta1/genesis.ts +73 -0
  127. package/src/codegen/cosmos/mint/v1beta1/mint.ts +198 -0
  128. package/src/codegen/cosmos/mint/v1beta1/query.lcd.ts +38 -0
  129. package/src/codegen/cosmos/mint/v1beta1/query.rpc.Query.ts +63 -0
  130. package/src/codegen/cosmos/mint/v1beta1/query.ts +309 -0
  131. package/src/codegen/cosmos/mint/v1beta1/tx.rpc.msg.ts +29 -0
  132. package/src/codegen/cosmos/mint/v1beta1/tx.ts +135 -0
  133. package/src/codegen/cosmos/msg/textual/v1/textual.ts +1 -0
  134. package/src/codegen/cosmos/msg/v1/msg.ts +1 -0
  135. package/src/codegen/cosmos/nft/module/v1/module.ts +42 -0
  136. package/src/codegen/cosmos/nft/v1beta1/event.ts +268 -0
  137. package/src/codegen/cosmos/nft/v1beta1/genesis.ts +143 -0
  138. package/src/codegen/cosmos/nft/v1beta1/nft.ts +255 -0
  139. package/src/codegen/cosmos/nft/v1beta1/query.lcd.ts +98 -0
  140. package/src/codegen/cosmos/nft/v1beta1/query.rpc.Query.ts +124 -0
  141. package/src/codegen/cosmos/nft/v1beta1/query.ts +886 -0
  142. package/src/codegen/cosmos/nft/v1beta1/tx.rpc.msg.ts +24 -0
  143. package/src/codegen/cosmos/nft/v1beta1/tx.ts +140 -0
  144. package/src/codegen/cosmos/orm/module/v1alpha1/module.ts +50 -0
  145. package/src/codegen/cosmos/orm/query/v1alpha1/query.rpc.Query.ts +49 -0
  146. package/src/codegen/cosmos/orm/query/v1alpha1/query.ts +640 -0
  147. package/src/codegen/cosmos/orm/v1/orm.ts +356 -0
  148. package/src/codegen/cosmos/orm/v1alpha1/schema.ts +232 -0
  149. package/src/codegen/cosmos/params/module/v1/module.ts +42 -0
  150. package/src/codegen/cosmos/params/v1beta1/params.ts +166 -0
  151. package/src/codegen/cosmos/params/v1beta1/query.lcd.ts +45 -0
  152. package/src/codegen/cosmos/params/v1beta1/query.rpc.Query.ts +56 -0
  153. package/src/codegen/cosmos/params/v1beta1/query.ts +321 -0
  154. package/src/codegen/cosmos/query/v1/query.ts +1 -0
  155. package/src/codegen/cosmos/reflection/v1/reflection.ts +99 -0
  156. package/src/codegen/cosmos/rpc.query.ts +82 -0
  157. package/src/codegen/cosmos/rpc.tx.ts +61 -0
  158. package/src/codegen/cosmos/slashing/module/v1/module.ts +58 -0
  159. package/src/codegen/cosmos/slashing/v1beta1/genesis.ts +309 -0
  160. package/src/codegen/cosmos/slashing/v1beta1/query.lcd.ts +49 -0
  161. package/src/codegen/cosmos/slashing/v1beta1/query.rpc.Query.ts +65 -0
  162. package/src/codegen/cosmos/slashing/v1beta1/query.ts +358 -0
  163. package/src/codegen/cosmos/slashing/v1beta1/slashing.ts +249 -0
  164. package/src/codegen/cosmos/slashing/v1beta1/tx.rpc.msg.ts +43 -0
  165. package/src/codegen/cosmos/slashing/v1beta1/tx.ts +230 -0
  166. package/src/codegen/cosmos/staking/module/v1/module.ts +104 -0
  167. package/src/codegen/cosmos/staking/v1beta1/authz.ts +244 -0
  168. package/src/codegen/cosmos/staking/v1beta1/genesis.ts +233 -0
  169. package/src/codegen/cosmos/staking/v1beta1/query.lcd.ts +220 -0
  170. package/src/codegen/cosmos/staking/v1beta1/query.rpc.Query.ts +260 -0
  171. package/src/codegen/cosmos/staking/v1beta1/query.ts +1910 -0
  172. package/src/codegen/cosmos/staking/v1beta1/staking.ts +2075 -0
  173. package/src/codegen/cosmos/staking/v1beta1/tx.rpc.msg.ts +102 -0
  174. package/src/codegen/cosmos/staking/v1beta1/tx.ts +1039 -0
  175. package/src/codegen/cosmos/store/internal/kv/v1beta1/kv.ts +124 -0
  176. package/src/codegen/cosmos/store/snapshots/v1/snapshot.ts +564 -0
  177. package/src/codegen/cosmos/store/streaming/abci/grpc.ts +231 -0
  178. package/src/codegen/cosmos/store/v1beta1/commit_info.ts +234 -0
  179. package/src/codegen/cosmos/store/v1beta1/listening.ts +196 -0
  180. package/src/codegen/cosmos/tx/config/v1/config.ts +78 -0
  181. package/src/codegen/cosmos/tx/signing/v1beta1/signing.ts +487 -0
  182. package/src/codegen/cosmos/tx/v1beta1/service.lcd.ts +77 -0
  183. package/src/codegen/cosmos/tx/v1beta1/service.rpc.Service.ts +167 -0
  184. package/src/codegen/cosmos/tx/v1beta1/service.ts +1536 -0
  185. package/src/codegen/cosmos/tx/v1beta1/tx.ts +1331 -0
  186. package/src/codegen/cosmos/upgrade/module/v1/module.ts +58 -0
  187. package/src/codegen/cosmos/upgrade/v1beta1/query.lcd.ts +71 -0
  188. package/src/codegen/cosmos/upgrade/v1beta1/query.rpc.Query.ts +106 -0
  189. package/src/codegen/cosmos/upgrade/v1beta1/query.ts +617 -0
  190. package/src/codegen/cosmos/upgrade/v1beta1/tx.rpc.msg.ts +43 -0
  191. package/src/codegen/cosmos/upgrade/v1beta1/tx.ts +241 -0
  192. package/src/codegen/cosmos/upgrade/v1beta1/upgrade.ts +403 -0
  193. package/src/codegen/cosmos/vesting/module/v1/module.ts +42 -0
  194. package/src/codegen/cosmos/vesting/v1beta1/tx.rpc.msg.ts +57 -0
  195. package/src/codegen/cosmos/vesting/v1beta1/tx.ts +445 -0
  196. package/src/codegen/cosmos/vesting/v1beta1/vesting.ts +473 -0
  197. package/src/codegen/cosmos_proto/bundle.ts +3 -0
  198. package/src/codegen/cosmos_proto/cosmos.ts +255 -0
  199. package/src/codegen/gogoproto/bundle.ts +3 -0
  200. package/src/codegen/gogoproto/gogo.ts +1 -0
  201. package/src/codegen/google/api/annotations.ts +1 -0
  202. package/src/codegen/google/api/http.ts +920 -0
  203. package/src/codegen/google/bundle.ts +16 -0
  204. package/src/codegen/google/protobuf/any.ts +260 -0
  205. package/src/codegen/google/protobuf/descriptor.ts +3697 -0
  206. package/src/codegen/google/protobuf/duration.ts +201 -0
  207. package/src/codegen/google/protobuf/timestamp.ts +247 -0
  208. package/src/codegen/helpers.ts +242 -0
  209. package/src/codegen/index.ts +13 -0
  210. package/src/codegen/tendermint/abci/types.ts +4487 -0
  211. package/src/codegen/tendermint/bundle.ts +32 -0
  212. package/src/codegen/tendermint/crypto/keys.ts +69 -0
  213. package/src/codegen/tendermint/crypto/proof.ts +372 -0
  214. package/src/codegen/tendermint/libs/bits/types.ts +77 -0
  215. package/src/codegen/tendermint/p2p/types.ts +350 -0
  216. package/src/codegen/tendermint/types/block.ts +91 -0
  217. package/src/codegen/tendermint/types/evidence.ts +325 -0
  218. package/src/codegen/tendermint/types/params.ts +544 -0
  219. package/src/codegen/tendermint/types/types.ts +1558 -0
  220. package/src/codegen/tendermint/types/validator.ts +286 -0
  221. package/src/codegen/tendermint/version/types.ts +152 -0
  222. package/src/codegen/zogux/accountplus/accountplus.ts +152 -0
  223. package/src/codegen/zogux/accountplus/genesis.ts +186 -0
  224. package/src/codegen/zogux/accountplus/models.ts +103 -0
  225. package/src/codegen/zogux/accountplus/params.ts +62 -0
  226. package/src/codegen/zogux/accountplus/query.lcd.ts +46 -0
  227. package/src/codegen/zogux/accountplus/query.rpc.Query.ts +77 -0
  228. package/src/codegen/zogux/accountplus/query.ts +455 -0
  229. package/src/codegen/zogux/accountplus/tx.rpc.msg.ts +47 -0
  230. package/src/codegen/zogux/accountplus/tx.ts +460 -0
  231. package/src/codegen/zogux/affiliates/affiliates.ts +425 -0
  232. package/src/codegen/zogux/affiliates/genesis.ts +73 -0
  233. package/src/codegen/zogux/affiliates/query.lcd.ts +62 -0
  234. package/src/codegen/zogux/affiliates/query.rpc.Query.ts +105 -0
  235. package/src/codegen/zogux/affiliates/query.ts +747 -0
  236. package/src/codegen/zogux/affiliates/tx.rpc.msg.ts +64 -0
  237. package/src/codegen/zogux/affiliates/tx.ts +553 -0
  238. package/src/codegen/zogux/assets/asset.ts +167 -0
  239. package/src/codegen/zogux/assets/genesis.ts +58 -0
  240. package/src/codegen/zogux/assets/query.lcd.ts +41 -0
  241. package/src/codegen/zogux/assets/query.rpc.Query.ts +51 -0
  242. package/src/codegen/zogux/assets/query.ts +238 -0
  243. package/src/codegen/zogux/assets/tx.ts +1 -0
  244. package/src/codegen/zogux/blocktime/blocktime.ts +203 -0
  245. package/src/codegen/zogux/blocktime/genesis.ts +58 -0
  246. package/src/codegen/zogux/blocktime/params.ts +125 -0
  247. package/src/codegen/zogux/blocktime/query.lcd.ts +38 -0
  248. package/src/codegen/zogux/blocktime/query.rpc.Query.ts +77 -0
  249. package/src/codegen/zogux/blocktime/query.ts +428 -0
  250. package/src/codegen/zogux/blocktime/tx.rpc.msg.ts +34 -0
  251. package/src/codegen/zogux/blocktime/tx.ts +233 -0
  252. package/src/codegen/zogux/bridge/bridge_event.ts +171 -0
  253. package/src/codegen/zogux/bridge/bridge_event_info.ts +81 -0
  254. package/src/codegen/zogux/bridge/events.ts +434 -0
  255. package/src/codegen/zogux/bridge/genesis.ts +131 -0
  256. package/src/codegen/zogux/bridge/params.ts +404 -0
  257. package/src/codegen/zogux/bridge/query.lcd.ts +162 -0
  258. package/src/codegen/zogux/bridge/query.rpc.Query.ts +249 -0
  259. package/src/codegen/zogux/bridge/query.ts +1342 -0
  260. package/src/codegen/zogux/bridge/token.ts +1030 -0
  261. package/src/codegen/zogux/bridge/tss.ts +883 -0
  262. package/src/codegen/zogux/bridge/tx.rpc.msg.ts +159 -0
  263. package/src/codegen/zogux/bridge/tx.ts +542 -0
  264. package/src/codegen/zogux/bridge/withdrawal.ts +306 -0
  265. package/src/codegen/zogux/bundle.ts +441 -0
  266. package/src/codegen/zogux/clob/block_rate_limit_config.ts +216 -0
  267. package/src/codegen/zogux/clob/clob_pair.ts +396 -0
  268. package/src/codegen/zogux/clob/equity_tier_limit_config.ts +154 -0
  269. package/src/codegen/zogux/clob/finalize_block.ts +65 -0
  270. package/src/codegen/zogux/clob/genesis.ts +97 -0
  271. package/src/codegen/zogux/clob/liquidations.ts +288 -0
  272. package/src/codegen/zogux/clob/liquidations_config.ts +358 -0
  273. package/src/codegen/zogux/clob/matches.ts +552 -0
  274. package/src/codegen/zogux/clob/mev.ts +525 -0
  275. package/src/codegen/zogux/clob/operation.ts +200 -0
  276. package/src/codegen/zogux/clob/order.ts +1538 -0
  277. package/src/codegen/zogux/clob/order_removals.ts +228 -0
  278. package/src/codegen/zogux/clob/process_proposer_matches_events.ts +176 -0
  279. package/src/codegen/zogux/clob/query.lcd.ts +81 -0
  280. package/src/codegen/zogux/clob/query.rpc.Query.ts +166 -0
  281. package/src/codegen/zogux/clob/query.ts +1945 -0
  282. package/src/codegen/zogux/clob/streaming.ts +96 -0
  283. package/src/codegen/zogux/clob/tx.rpc.msg.ts +131 -0
  284. package/src/codegen/zogux/clob/tx.ts +1472 -0
  285. package/src/codegen/zogux/daemons/bridge/bridge.ts +104 -0
  286. package/src/codegen/zogux/daemons/liquidation/liquidation.ts +156 -0
  287. package/src/codegen/zogux/daemons/pricefeed/price_feed.ts +244 -0
  288. package/src/codegen/zogux/delaymsg/block_message_ids.ts +79 -0
  289. package/src/codegen/zogux/delaymsg/delayed_message.ts +87 -0
  290. package/src/codegen/zogux/delaymsg/genesis.ts +73 -0
  291. package/src/codegen/zogux/delaymsg/query.lcd.ts +38 -0
  292. package/src/codegen/zogux/delaymsg/query.rpc.Query.ts +63 -0
  293. package/src/codegen/zogux/delaymsg/query.ts +364 -0
  294. package/src/codegen/zogux/delaymsg/tx.rpc.msg.ts +27 -0
  295. package/src/codegen/zogux/delaymsg/tx.ts +142 -0
  296. package/src/codegen/zogux/epochs/epoch_info.ts +167 -0
  297. package/src/codegen/zogux/epochs/genesis.ts +58 -0
  298. package/src/codegen/zogux/epochs/query.lcd.ts +41 -0
  299. package/src/codegen/zogux/epochs/query.rpc.Query.ts +51 -0
  300. package/src/codegen/zogux/epochs/query.ts +237 -0
  301. package/src/codegen/zogux/feetiers/genesis.ts +74 -0
  302. package/src/codegen/zogux/feetiers/params.ts +184 -0
  303. package/src/codegen/zogux/feetiers/per_market_fee_discount.ts +111 -0
  304. package/src/codegen/zogux/feetiers/query.lcd.ts +71 -0
  305. package/src/codegen/zogux/feetiers/query.rpc.Query.ts +108 -0
  306. package/src/codegen/zogux/feetiers/query.ts +715 -0
  307. package/src/codegen/zogux/feetiers/staking_tier.ts +151 -0
  308. package/src/codegen/zogux/feetiers/tx.rpc.msg.ts +47 -0
  309. package/src/codegen/zogux/feetiers/tx.ts +351 -0
  310. package/src/codegen/zogux/govplus/genesis.ts +42 -0
  311. package/src/codegen/zogux/govplus/query.rpc.Query.ts +18 -0
  312. package/src/codegen/zogux/govplus/query.ts +1 -0
  313. package/src/codegen/zogux/govplus/tx.rpc.msg.ts +27 -0
  314. package/src/codegen/zogux/govplus/tx.ts +173 -0
  315. package/src/codegen/zogux/indexer/events/events.ts +4292 -0
  316. package/src/codegen/zogux/indexer/indexer_manager/event.ts +428 -0
  317. package/src/codegen/zogux/indexer/off_chain_updates/off_chain_updates.ts +594 -0
  318. package/src/codegen/zogux/indexer/protocol/v1/clob.ts +887 -0
  319. package/src/codegen/zogux/indexer/protocol/v1/perpetual.ts +52 -0
  320. package/src/codegen/zogux/indexer/protocol/v1/subaccount.ts +281 -0
  321. package/src/codegen/zogux/indexer/protocol/v1/vault.ts +69 -0
  322. package/src/codegen/zogux/indexer/redis/redis_order.ts +190 -0
  323. package/src/codegen/zogux/indexer/shared/removal_reason.ts +216 -0
  324. package/src/codegen/zogux/indexer/socks/messages.ts +656 -0
  325. package/src/codegen/zogux/lcd.ts +176 -0
  326. package/src/codegen/zogux/listing/genesis.ts +76 -0
  327. package/src/codegen/zogux/listing/params.ts +89 -0
  328. package/src/codegen/zogux/listing/query.lcd.ts +30 -0
  329. package/src/codegen/zogux/listing/query.rpc.Query.ts +49 -0
  330. package/src/codegen/zogux/listing/query.ts +194 -0
  331. package/src/codegen/zogux/listing/tx.rpc.msg.ts +57 -0
  332. package/src/codegen/zogux/listing/tx.ts +483 -0
  333. package/src/codegen/zogux/perpetuals/genesis.ts +83 -0
  334. package/src/codegen/zogux/perpetuals/params.ts +97 -0
  335. package/src/codegen/zogux/perpetuals/perpetual.ts +660 -0
  336. package/src/codegen/zogux/perpetuals/query.lcd.ts +91 -0
  337. package/src/codegen/zogux/perpetuals/query.rpc.Query.ts +123 -0
  338. package/src/codegen/zogux/perpetuals/query.ts +765 -0
  339. package/src/codegen/zogux/perpetuals/tx.rpc.msg.ts +70 -0
  340. package/src/codegen/zogux/perpetuals/tx.ts +649 -0
  341. package/src/codegen/zogux/prices/genesis.ts +71 -0
  342. package/src/codegen/zogux/prices/market_param.ts +162 -0
  343. package/src/codegen/zogux/prices/market_price.ts +95 -0
  344. package/src/codegen/zogux/prices/query.lcd.ts +75 -0
  345. package/src/codegen/zogux/prices/query.rpc.Query.ts +95 -0
  346. package/src/codegen/zogux/prices/query.ts +630 -0
  347. package/src/codegen/zogux/prices/streaming.ts +87 -0
  348. package/src/codegen/zogux/prices/tx.rpc.msg.ts +50 -0
  349. package/src/codegen/zogux/prices/tx.ts +405 -0
  350. package/src/codegen/zogux/ratelimit/capacity.ts +147 -0
  351. package/src/codegen/zogux/ratelimit/genesis.ts +59 -0
  352. package/src/codegen/zogux/ratelimit/limit_params.ts +174 -0
  353. package/src/codegen/zogux/ratelimit/pending_send_packet.ts +75 -0
  354. package/src/codegen/zogux/ratelimit/query.lcd.ts +46 -0
  355. package/src/codegen/zogux/ratelimit/query.rpc.Query.ts +63 -0
  356. package/src/codegen/zogux/ratelimit/query.ts +333 -0
  357. package/src/codegen/zogux/ratelimit/tx.rpc.msg.ts +24 -0
  358. package/src/codegen/zogux/ratelimit/tx.ts +112 -0
  359. package/src/codegen/zogux/revshare/genesis.ts +58 -0
  360. package/src/codegen/zogux/revshare/params.ts +93 -0
  361. package/src/codegen/zogux/revshare/query.lcd.ts +47 -0
  362. package/src/codegen/zogux/revshare/query.rpc.Query.ts +80 -0
  363. package/src/codegen/zogux/revshare/query.ts +415 -0
  364. package/src/codegen/zogux/revshare/revshare.ts +266 -0
  365. package/src/codegen/zogux/revshare/tx.rpc.msg.ts +60 -0
  366. package/src/codegen/zogux/revshare/tx.ts +462 -0
  367. package/src/codegen/zogux/rewards/genesis.ts +59 -0
  368. package/src/codegen/zogux/rewards/params.ts +122 -0
  369. package/src/codegen/zogux/rewards/query.lcd.ts +22 -0
  370. package/src/codegen/zogux/rewards/query.rpc.Query.ts +35 -0
  371. package/src/codegen/zogux/rewards/query.ts +98 -0
  372. package/src/codegen/zogux/rewards/reward_share.ts +75 -0
  373. package/src/codegen/zogux/rewards/tx.rpc.msg.ts +24 -0
  374. package/src/codegen/zogux/rewards/tx.ts +112 -0
  375. package/src/codegen/zogux/rpc.query.ts +106 -0
  376. package/src/codegen/zogux/rpc.tx.ts +82 -0
  377. package/src/codegen/zogux/sending/genesis.ts +42 -0
  378. package/src/codegen/zogux/sending/query.rpc.Query.ts +18 -0
  379. package/src/codegen/zogux/sending/query.ts +1 -0
  380. package/src/codegen/zogux/sending/transfer.ts +420 -0
  381. package/src/codegen/zogux/sending/tx.rpc.msg.ts +64 -0
  382. package/src/codegen/zogux/sending/tx.ts +237 -0
  383. package/src/codegen/zogux/stats/genesis.ts +59 -0
  384. package/src/codegen/zogux/stats/params.ts +59 -0
  385. package/src/codegen/zogux/stats/query.lcd.ts +54 -0
  386. package/src/codegen/zogux/stats/query.rpc.Query.ts +77 -0
  387. package/src/codegen/zogux/stats/query.ts +412 -0
  388. package/src/codegen/zogux/stats/stats.ts +593 -0
  389. package/src/codegen/zogux/stats/tx.rpc.msg.ts +24 -0
  390. package/src/codegen/zogux/stats/tx.ts +112 -0
  391. package/src/codegen/zogux/subaccounts/asset_position.ts +96 -0
  392. package/src/codegen/zogux/subaccounts/genesis.ts +58 -0
  393. package/src/codegen/zogux/subaccounts/leverage.ts +134 -0
  394. package/src/codegen/zogux/subaccounts/perpetual_position.ts +109 -0
  395. package/src/codegen/zogux/subaccounts/query.lcd.ts +58 -0
  396. package/src/codegen/zogux/subaccounts/query.rpc.Query.ts +82 -0
  397. package/src/codegen/zogux/subaccounts/query.ts +527 -0
  398. package/src/codegen/zogux/subaccounts/streaming.ts +266 -0
  399. package/src/codegen/zogux/subaccounts/subaccount.ts +190 -0
  400. package/src/codegen/zogux/token/genesis.ts +73 -0
  401. package/src/codegen/zogux/token/params.ts +196 -0
  402. package/src/codegen/zogux/token/query.lcd.ts +38 -0
  403. package/src/codegen/zogux/token/query.rpc.Query.ts +63 -0
  404. package/src/codegen/zogux/token/query.ts +342 -0
  405. package/src/codegen/zogux/token/tx.rpc.msg.ts +84 -0
  406. package/src/codegen/zogux/token/tx.ts +828 -0
  407. package/src/codegen/zogux/vault/genesis.ts +433 -0
  408. package/src/codegen/zogux/vault/params.ts +523 -0
  409. package/src/codegen/zogux/vault/query.lcd.ts +91 -0
  410. package/src/codegen/zogux/vault/query.rpc.Query.ts +137 -0
  411. package/src/codegen/zogux/vault/query.ts +1162 -0
  412. package/src/codegen/zogux/vault/share.ts +271 -0
  413. package/src/codegen/zogux/vault/tx.rpc.msg.ts +97 -0
  414. package/src/codegen/zogux/vault/tx.ts +1189 -0
  415. package/src/codegen/zogux/vault/vault.ts +185 -0
  416. package/src/codegen/zogux/vest/genesis.ts +59 -0
  417. package/src/codegen/zogux/vest/query.lcd.ts +30 -0
  418. package/src/codegen/zogux/vest/query.rpc.Query.ts +35 -0
  419. package/src/codegen/zogux/vest/query.ts +114 -0
  420. package/src/codegen/zogux/vest/tx.rpc.msg.ts +34 -0
  421. package/src/codegen/zogux/vest/tx.ts +223 -0
  422. package/src/codegen/zogux/vest/vest_entry.ts +127 -0
@@ -0,0 +1,3697 @@
1
+ import * as _m0 from "protobufjs/minimal";
2
+ import { DeepPartial, Long } from "../../helpers";
3
+ export enum FieldDescriptorProto_Type {
4
+ /**
5
+ * TYPE_DOUBLE - 0 is reserved for errors.
6
+ * Order is weird for historical reasons.
7
+ */
8
+ TYPE_DOUBLE = 1,
9
+ TYPE_FLOAT = 2,
10
+
11
+ /**
12
+ * TYPE_INT64 - Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if
13
+ * negative values are likely.
14
+ */
15
+ TYPE_INT64 = 3,
16
+ TYPE_UINT64 = 4,
17
+
18
+ /**
19
+ * TYPE_INT32 - Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if
20
+ * negative values are likely.
21
+ */
22
+ TYPE_INT32 = 5,
23
+ TYPE_FIXED64 = 6,
24
+ TYPE_FIXED32 = 7,
25
+ TYPE_BOOL = 8,
26
+ TYPE_STRING = 9,
27
+
28
+ /**
29
+ * TYPE_GROUP - Tag-delimited aggregate.
30
+ * Group type is deprecated and not supported in proto3. However, Proto3
31
+ * implementations should still be able to parse the group wire format and
32
+ * treat group fields as unknown fields.
33
+ */
34
+ TYPE_GROUP = 10,
35
+ TYPE_MESSAGE = 11,
36
+
37
+ /** TYPE_BYTES - New in version 2. */
38
+ TYPE_BYTES = 12,
39
+ TYPE_UINT32 = 13,
40
+ TYPE_ENUM = 14,
41
+ TYPE_SFIXED32 = 15,
42
+ TYPE_SFIXED64 = 16,
43
+
44
+ /** TYPE_SINT32 - Uses ZigZag encoding. */
45
+ TYPE_SINT32 = 17,
46
+
47
+ /** TYPE_SINT64 - Uses ZigZag encoding. */
48
+ TYPE_SINT64 = 18,
49
+ UNRECOGNIZED = -1,
50
+ }
51
+ export const FieldDescriptorProto_TypeSDKType = FieldDescriptorProto_Type;
52
+ export function fieldDescriptorProto_TypeFromJSON(object: any): FieldDescriptorProto_Type {
53
+ switch (object) {
54
+ case 1:
55
+ case "TYPE_DOUBLE":
56
+ return FieldDescriptorProto_Type.TYPE_DOUBLE;
57
+
58
+ case 2:
59
+ case "TYPE_FLOAT":
60
+ return FieldDescriptorProto_Type.TYPE_FLOAT;
61
+
62
+ case 3:
63
+ case "TYPE_INT64":
64
+ return FieldDescriptorProto_Type.TYPE_INT64;
65
+
66
+ case 4:
67
+ case "TYPE_UINT64":
68
+ return FieldDescriptorProto_Type.TYPE_UINT64;
69
+
70
+ case 5:
71
+ case "TYPE_INT32":
72
+ return FieldDescriptorProto_Type.TYPE_INT32;
73
+
74
+ case 6:
75
+ case "TYPE_FIXED64":
76
+ return FieldDescriptorProto_Type.TYPE_FIXED64;
77
+
78
+ case 7:
79
+ case "TYPE_FIXED32":
80
+ return FieldDescriptorProto_Type.TYPE_FIXED32;
81
+
82
+ case 8:
83
+ case "TYPE_BOOL":
84
+ return FieldDescriptorProto_Type.TYPE_BOOL;
85
+
86
+ case 9:
87
+ case "TYPE_STRING":
88
+ return FieldDescriptorProto_Type.TYPE_STRING;
89
+
90
+ case 10:
91
+ case "TYPE_GROUP":
92
+ return FieldDescriptorProto_Type.TYPE_GROUP;
93
+
94
+ case 11:
95
+ case "TYPE_MESSAGE":
96
+ return FieldDescriptorProto_Type.TYPE_MESSAGE;
97
+
98
+ case 12:
99
+ case "TYPE_BYTES":
100
+ return FieldDescriptorProto_Type.TYPE_BYTES;
101
+
102
+ case 13:
103
+ case "TYPE_UINT32":
104
+ return FieldDescriptorProto_Type.TYPE_UINT32;
105
+
106
+ case 14:
107
+ case "TYPE_ENUM":
108
+ return FieldDescriptorProto_Type.TYPE_ENUM;
109
+
110
+ case 15:
111
+ case "TYPE_SFIXED32":
112
+ return FieldDescriptorProto_Type.TYPE_SFIXED32;
113
+
114
+ case 16:
115
+ case "TYPE_SFIXED64":
116
+ return FieldDescriptorProto_Type.TYPE_SFIXED64;
117
+
118
+ case 17:
119
+ case "TYPE_SINT32":
120
+ return FieldDescriptorProto_Type.TYPE_SINT32;
121
+
122
+ case 18:
123
+ case "TYPE_SINT64":
124
+ return FieldDescriptorProto_Type.TYPE_SINT64;
125
+
126
+ case -1:
127
+ case "UNRECOGNIZED":
128
+ default:
129
+ return FieldDescriptorProto_Type.UNRECOGNIZED;
130
+ }
131
+ }
132
+ export function fieldDescriptorProto_TypeToJSON(object: FieldDescriptorProto_Type): string {
133
+ switch (object) {
134
+ case FieldDescriptorProto_Type.TYPE_DOUBLE:
135
+ return "TYPE_DOUBLE";
136
+
137
+ case FieldDescriptorProto_Type.TYPE_FLOAT:
138
+ return "TYPE_FLOAT";
139
+
140
+ case FieldDescriptorProto_Type.TYPE_INT64:
141
+ return "TYPE_INT64";
142
+
143
+ case FieldDescriptorProto_Type.TYPE_UINT64:
144
+ return "TYPE_UINT64";
145
+
146
+ case FieldDescriptorProto_Type.TYPE_INT32:
147
+ return "TYPE_INT32";
148
+
149
+ case FieldDescriptorProto_Type.TYPE_FIXED64:
150
+ return "TYPE_FIXED64";
151
+
152
+ case FieldDescriptorProto_Type.TYPE_FIXED32:
153
+ return "TYPE_FIXED32";
154
+
155
+ case FieldDescriptorProto_Type.TYPE_BOOL:
156
+ return "TYPE_BOOL";
157
+
158
+ case FieldDescriptorProto_Type.TYPE_STRING:
159
+ return "TYPE_STRING";
160
+
161
+ case FieldDescriptorProto_Type.TYPE_GROUP:
162
+ return "TYPE_GROUP";
163
+
164
+ case FieldDescriptorProto_Type.TYPE_MESSAGE:
165
+ return "TYPE_MESSAGE";
166
+
167
+ case FieldDescriptorProto_Type.TYPE_BYTES:
168
+ return "TYPE_BYTES";
169
+
170
+ case FieldDescriptorProto_Type.TYPE_UINT32:
171
+ return "TYPE_UINT32";
172
+
173
+ case FieldDescriptorProto_Type.TYPE_ENUM:
174
+ return "TYPE_ENUM";
175
+
176
+ case FieldDescriptorProto_Type.TYPE_SFIXED32:
177
+ return "TYPE_SFIXED32";
178
+
179
+ case FieldDescriptorProto_Type.TYPE_SFIXED64:
180
+ return "TYPE_SFIXED64";
181
+
182
+ case FieldDescriptorProto_Type.TYPE_SINT32:
183
+ return "TYPE_SINT32";
184
+
185
+ case FieldDescriptorProto_Type.TYPE_SINT64:
186
+ return "TYPE_SINT64";
187
+
188
+ case FieldDescriptorProto_Type.UNRECOGNIZED:
189
+ default:
190
+ return "UNRECOGNIZED";
191
+ }
192
+ }
193
+ export enum FieldDescriptorProto_Label {
194
+ /** LABEL_OPTIONAL - 0 is reserved for errors */
195
+ LABEL_OPTIONAL = 1,
196
+ LABEL_REQUIRED = 2,
197
+ LABEL_REPEATED = 3,
198
+ UNRECOGNIZED = -1,
199
+ }
200
+ export const FieldDescriptorProto_LabelSDKType = FieldDescriptorProto_Label;
201
+ export function fieldDescriptorProto_LabelFromJSON(object: any): FieldDescriptorProto_Label {
202
+ switch (object) {
203
+ case 1:
204
+ case "LABEL_OPTIONAL":
205
+ return FieldDescriptorProto_Label.LABEL_OPTIONAL;
206
+
207
+ case 2:
208
+ case "LABEL_REQUIRED":
209
+ return FieldDescriptorProto_Label.LABEL_REQUIRED;
210
+
211
+ case 3:
212
+ case "LABEL_REPEATED":
213
+ return FieldDescriptorProto_Label.LABEL_REPEATED;
214
+
215
+ case -1:
216
+ case "UNRECOGNIZED":
217
+ default:
218
+ return FieldDescriptorProto_Label.UNRECOGNIZED;
219
+ }
220
+ }
221
+ export function fieldDescriptorProto_LabelToJSON(object: FieldDescriptorProto_Label): string {
222
+ switch (object) {
223
+ case FieldDescriptorProto_Label.LABEL_OPTIONAL:
224
+ return "LABEL_OPTIONAL";
225
+
226
+ case FieldDescriptorProto_Label.LABEL_REQUIRED:
227
+ return "LABEL_REQUIRED";
228
+
229
+ case FieldDescriptorProto_Label.LABEL_REPEATED:
230
+ return "LABEL_REPEATED";
231
+
232
+ case FieldDescriptorProto_Label.UNRECOGNIZED:
233
+ default:
234
+ return "UNRECOGNIZED";
235
+ }
236
+ }
237
+ /** Generated classes can be optimized for speed or code size. */
238
+
239
+ export enum FileOptions_OptimizeMode {
240
+ /**
241
+ * SPEED - Generate complete code for parsing, serialization,
242
+ * etc.
243
+ */
244
+ SPEED = 1,
245
+
246
+ /** CODE_SIZE - Use ReflectionOps to implement these methods. */
247
+ CODE_SIZE = 2,
248
+
249
+ /** LITE_RUNTIME - Generate code using MessageLite and the lite runtime. */
250
+ LITE_RUNTIME = 3,
251
+ UNRECOGNIZED = -1,
252
+ }
253
+ export const FileOptions_OptimizeModeSDKType = FileOptions_OptimizeMode;
254
+ export function fileOptions_OptimizeModeFromJSON(object: any): FileOptions_OptimizeMode {
255
+ switch (object) {
256
+ case 1:
257
+ case "SPEED":
258
+ return FileOptions_OptimizeMode.SPEED;
259
+
260
+ case 2:
261
+ case "CODE_SIZE":
262
+ return FileOptions_OptimizeMode.CODE_SIZE;
263
+
264
+ case 3:
265
+ case "LITE_RUNTIME":
266
+ return FileOptions_OptimizeMode.LITE_RUNTIME;
267
+
268
+ case -1:
269
+ case "UNRECOGNIZED":
270
+ default:
271
+ return FileOptions_OptimizeMode.UNRECOGNIZED;
272
+ }
273
+ }
274
+ export function fileOptions_OptimizeModeToJSON(object: FileOptions_OptimizeMode): string {
275
+ switch (object) {
276
+ case FileOptions_OptimizeMode.SPEED:
277
+ return "SPEED";
278
+
279
+ case FileOptions_OptimizeMode.CODE_SIZE:
280
+ return "CODE_SIZE";
281
+
282
+ case FileOptions_OptimizeMode.LITE_RUNTIME:
283
+ return "LITE_RUNTIME";
284
+
285
+ case FileOptions_OptimizeMode.UNRECOGNIZED:
286
+ default:
287
+ return "UNRECOGNIZED";
288
+ }
289
+ }
290
+ export enum FieldOptions_CType {
291
+ /** STRING - Default mode. */
292
+ STRING = 0,
293
+ CORD = 1,
294
+ STRING_PIECE = 2,
295
+ UNRECOGNIZED = -1,
296
+ }
297
+ export const FieldOptions_CTypeSDKType = FieldOptions_CType;
298
+ export function fieldOptions_CTypeFromJSON(object: any): FieldOptions_CType {
299
+ switch (object) {
300
+ case 0:
301
+ case "STRING":
302
+ return FieldOptions_CType.STRING;
303
+
304
+ case 1:
305
+ case "CORD":
306
+ return FieldOptions_CType.CORD;
307
+
308
+ case 2:
309
+ case "STRING_PIECE":
310
+ return FieldOptions_CType.STRING_PIECE;
311
+
312
+ case -1:
313
+ case "UNRECOGNIZED":
314
+ default:
315
+ return FieldOptions_CType.UNRECOGNIZED;
316
+ }
317
+ }
318
+ export function fieldOptions_CTypeToJSON(object: FieldOptions_CType): string {
319
+ switch (object) {
320
+ case FieldOptions_CType.STRING:
321
+ return "STRING";
322
+
323
+ case FieldOptions_CType.CORD:
324
+ return "CORD";
325
+
326
+ case FieldOptions_CType.STRING_PIECE:
327
+ return "STRING_PIECE";
328
+
329
+ case FieldOptions_CType.UNRECOGNIZED:
330
+ default:
331
+ return "UNRECOGNIZED";
332
+ }
333
+ }
334
+ export enum FieldOptions_JSType {
335
+ /** JS_NORMAL - Use the default type. */
336
+ JS_NORMAL = 0,
337
+
338
+ /** JS_STRING - Use JavaScript strings. */
339
+ JS_STRING = 1,
340
+
341
+ /** JS_NUMBER - Use JavaScript numbers. */
342
+ JS_NUMBER = 2,
343
+ UNRECOGNIZED = -1,
344
+ }
345
+ export const FieldOptions_JSTypeSDKType = FieldOptions_JSType;
346
+ export function fieldOptions_JSTypeFromJSON(object: any): FieldOptions_JSType {
347
+ switch (object) {
348
+ case 0:
349
+ case "JS_NORMAL":
350
+ return FieldOptions_JSType.JS_NORMAL;
351
+
352
+ case 1:
353
+ case "JS_STRING":
354
+ return FieldOptions_JSType.JS_STRING;
355
+
356
+ case 2:
357
+ case "JS_NUMBER":
358
+ return FieldOptions_JSType.JS_NUMBER;
359
+
360
+ case -1:
361
+ case "UNRECOGNIZED":
362
+ default:
363
+ return FieldOptions_JSType.UNRECOGNIZED;
364
+ }
365
+ }
366
+ export function fieldOptions_JSTypeToJSON(object: FieldOptions_JSType): string {
367
+ switch (object) {
368
+ case FieldOptions_JSType.JS_NORMAL:
369
+ return "JS_NORMAL";
370
+
371
+ case FieldOptions_JSType.JS_STRING:
372
+ return "JS_STRING";
373
+
374
+ case FieldOptions_JSType.JS_NUMBER:
375
+ return "JS_NUMBER";
376
+
377
+ case FieldOptions_JSType.UNRECOGNIZED:
378
+ default:
379
+ return "UNRECOGNIZED";
380
+ }
381
+ }
382
+ /**
383
+ * Is this method side-effect-free (or safe in HTTP parlance), or idempotent,
384
+ * or neither? HTTP based RPC implementation may choose GET verb for safe
385
+ * methods, and PUT verb for idempotent methods instead of the default POST.
386
+ */
387
+
388
+ export enum MethodOptions_IdempotencyLevel {
389
+ IDEMPOTENCY_UNKNOWN = 0,
390
+
391
+ /** NO_SIDE_EFFECTS - implies idempotent */
392
+ NO_SIDE_EFFECTS = 1,
393
+
394
+ /** IDEMPOTENT - idempotent, but may have side effects */
395
+ IDEMPOTENT = 2,
396
+ UNRECOGNIZED = -1,
397
+ }
398
+ export const MethodOptions_IdempotencyLevelSDKType = MethodOptions_IdempotencyLevel;
399
+ export function methodOptions_IdempotencyLevelFromJSON(object: any): MethodOptions_IdempotencyLevel {
400
+ switch (object) {
401
+ case 0:
402
+ case "IDEMPOTENCY_UNKNOWN":
403
+ return MethodOptions_IdempotencyLevel.IDEMPOTENCY_UNKNOWN;
404
+
405
+ case 1:
406
+ case "NO_SIDE_EFFECTS":
407
+ return MethodOptions_IdempotencyLevel.NO_SIDE_EFFECTS;
408
+
409
+ case 2:
410
+ case "IDEMPOTENT":
411
+ return MethodOptions_IdempotencyLevel.IDEMPOTENT;
412
+
413
+ case -1:
414
+ case "UNRECOGNIZED":
415
+ default:
416
+ return MethodOptions_IdempotencyLevel.UNRECOGNIZED;
417
+ }
418
+ }
419
+ export function methodOptions_IdempotencyLevelToJSON(object: MethodOptions_IdempotencyLevel): string {
420
+ switch (object) {
421
+ case MethodOptions_IdempotencyLevel.IDEMPOTENCY_UNKNOWN:
422
+ return "IDEMPOTENCY_UNKNOWN";
423
+
424
+ case MethodOptions_IdempotencyLevel.NO_SIDE_EFFECTS:
425
+ return "NO_SIDE_EFFECTS";
426
+
427
+ case MethodOptions_IdempotencyLevel.IDEMPOTENT:
428
+ return "IDEMPOTENT";
429
+
430
+ case MethodOptions_IdempotencyLevel.UNRECOGNIZED:
431
+ default:
432
+ return "UNRECOGNIZED";
433
+ }
434
+ }
435
+ /**
436
+ * The protocol compiler can output a FileDescriptorSet containing the .proto
437
+ * files it parses.
438
+ */
439
+
440
+ export interface FileDescriptorSet {
441
+ file: FileDescriptorProto[];
442
+ }
443
+ /**
444
+ * The protocol compiler can output a FileDescriptorSet containing the .proto
445
+ * files it parses.
446
+ */
447
+
448
+ export interface FileDescriptorSetSDKType {
449
+ file: FileDescriptorProtoSDKType[];
450
+ }
451
+ /** Describes a complete .proto file. */
452
+
453
+ export interface FileDescriptorProto {
454
+ /** file name, relative to root of source tree */
455
+ name: string;
456
+ package: string;
457
+ /** Names of files imported by this file. */
458
+
459
+ dependency: string[];
460
+ /** Indexes of the public imported files in the dependency list above. */
461
+
462
+ publicDependency: number[];
463
+ /**
464
+ * Indexes of the weak imported files in the dependency list.
465
+ * For Google-internal migration only. Do not use.
466
+ */
467
+
468
+ weakDependency: number[];
469
+ /** All top-level definitions in this file. */
470
+
471
+ messageType: DescriptorProto[];
472
+ enumType: EnumDescriptorProto[];
473
+ service: ServiceDescriptorProto[];
474
+ extension: FieldDescriptorProto[];
475
+ options?: FileOptions;
476
+ /**
477
+ * This field contains optional information about the original source code.
478
+ * You may safely remove this entire field without harming runtime
479
+ * functionality of the descriptors -- the information is needed only by
480
+ * development tools.
481
+ */
482
+
483
+ sourceCodeInfo?: SourceCodeInfo;
484
+ /**
485
+ * The syntax of the proto file.
486
+ * The supported values are "proto2" and "proto3".
487
+ */
488
+
489
+ syntax: string;
490
+ }
491
+ /** Describes a complete .proto file. */
492
+
493
+ export interface FileDescriptorProtoSDKType {
494
+ name: string;
495
+ package: string;
496
+ dependency: string[];
497
+ public_dependency: number[];
498
+ weak_dependency: number[];
499
+ message_type: DescriptorProtoSDKType[];
500
+ enum_type: EnumDescriptorProtoSDKType[];
501
+ service: ServiceDescriptorProtoSDKType[];
502
+ extension: FieldDescriptorProtoSDKType[];
503
+ options?: FileOptionsSDKType;
504
+ source_code_info?: SourceCodeInfoSDKType;
505
+ syntax: string;
506
+ }
507
+ /** Describes a message type. */
508
+
509
+ export interface DescriptorProto {
510
+ name: string;
511
+ field: FieldDescriptorProto[];
512
+ extension: FieldDescriptorProto[];
513
+ nestedType: DescriptorProto[];
514
+ enumType: EnumDescriptorProto[];
515
+ extensionRange: DescriptorProto_ExtensionRange[];
516
+ oneofDecl: OneofDescriptorProto[];
517
+ options?: MessageOptions;
518
+ reservedRange: DescriptorProto_ReservedRange[];
519
+ /**
520
+ * Reserved field names, which may not be used by fields in the same message.
521
+ * A given name may only be reserved once.
522
+ */
523
+
524
+ reservedName: string[];
525
+ }
526
+ /** Describes a message type. */
527
+
528
+ export interface DescriptorProtoSDKType {
529
+ name: string;
530
+ field: FieldDescriptorProtoSDKType[];
531
+ extension: FieldDescriptorProtoSDKType[];
532
+ nested_type: DescriptorProtoSDKType[];
533
+ enum_type: EnumDescriptorProtoSDKType[];
534
+ extension_range: DescriptorProto_ExtensionRangeSDKType[];
535
+ oneof_decl: OneofDescriptorProtoSDKType[];
536
+ options?: MessageOptionsSDKType;
537
+ reserved_range: DescriptorProto_ReservedRangeSDKType[];
538
+ reserved_name: string[];
539
+ }
540
+ export interface DescriptorProto_ExtensionRange {
541
+ /** Inclusive. */
542
+ start: number;
543
+ /** Exclusive. */
544
+
545
+ end: number;
546
+ options?: ExtensionRangeOptions;
547
+ }
548
+ export interface DescriptorProto_ExtensionRangeSDKType {
549
+ start: number;
550
+ end: number;
551
+ options?: ExtensionRangeOptionsSDKType;
552
+ }
553
+ /**
554
+ * Range of reserved tag numbers. Reserved tag numbers may not be used by
555
+ * fields or extension ranges in the same message. Reserved ranges may
556
+ * not overlap.
557
+ */
558
+
559
+ export interface DescriptorProto_ReservedRange {
560
+ /** Inclusive. */
561
+ start: number;
562
+ /** Exclusive. */
563
+
564
+ end: number;
565
+ }
566
+ /**
567
+ * Range of reserved tag numbers. Reserved tag numbers may not be used by
568
+ * fields or extension ranges in the same message. Reserved ranges may
569
+ * not overlap.
570
+ */
571
+
572
+ export interface DescriptorProto_ReservedRangeSDKType {
573
+ start: number;
574
+ end: number;
575
+ }
576
+ export interface ExtensionRangeOptions {
577
+ /** The parser stores options it doesn't recognize here. See above. */
578
+ uninterpretedOption: UninterpretedOption[];
579
+ }
580
+ export interface ExtensionRangeOptionsSDKType {
581
+ uninterpreted_option: UninterpretedOptionSDKType[];
582
+ }
583
+ /** Describes a field within a message. */
584
+
585
+ export interface FieldDescriptorProto {
586
+ name: string;
587
+ number: number;
588
+ label: FieldDescriptorProto_Label;
589
+ /**
590
+ * If type_name is set, this need not be set. If both this and type_name
591
+ * are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP.
592
+ */
593
+
594
+ type: FieldDescriptorProto_Type;
595
+ /**
596
+ * For message and enum types, this is the name of the type. If the name
597
+ * starts with a '.', it is fully-qualified. Otherwise, C++-like scoping
598
+ * rules are used to find the type (i.e. first the nested types within this
599
+ * message are searched, then within the parent, on up to the root
600
+ * namespace).
601
+ */
602
+
603
+ typeName: string;
604
+ /**
605
+ * For extensions, this is the name of the type being extended. It is
606
+ * resolved in the same manner as type_name.
607
+ */
608
+
609
+ extendee: string;
610
+ /**
611
+ * For numeric types, contains the original text representation of the value.
612
+ * For booleans, "true" or "false".
613
+ * For strings, contains the default text contents (not escaped in any way).
614
+ * For bytes, contains the C escaped value. All bytes >= 128 are escaped.
615
+ * TODO(kenton): Base-64 encode?
616
+ */
617
+
618
+ defaultValue: string;
619
+ /**
620
+ * If set, gives the index of a oneof in the containing type's oneof_decl
621
+ * list. This field is a member of that oneof.
622
+ */
623
+
624
+ oneofIndex: number;
625
+ /**
626
+ * JSON name of this field. The value is set by protocol compiler. If the
627
+ * user has set a "json_name" option on this field, that option's value
628
+ * will be used. Otherwise, it's deduced from the field's name by converting
629
+ * it to camelCase.
630
+ */
631
+
632
+ jsonName: string;
633
+ options?: FieldOptions;
634
+ }
635
+ /** Describes a field within a message. */
636
+
637
+ export interface FieldDescriptorProtoSDKType {
638
+ name: string;
639
+ number: number;
640
+ label: FieldDescriptorProto_Label;
641
+ type: FieldDescriptorProto_Type;
642
+ type_name: string;
643
+ extendee: string;
644
+ default_value: string;
645
+ oneof_index: number;
646
+ json_name: string;
647
+ options?: FieldOptionsSDKType;
648
+ }
649
+ /** Describes a oneof. */
650
+
651
+ export interface OneofDescriptorProto {
652
+ name: string;
653
+ options?: OneofOptions;
654
+ }
655
+ /** Describes a oneof. */
656
+
657
+ export interface OneofDescriptorProtoSDKType {
658
+ name: string;
659
+ options?: OneofOptionsSDKType;
660
+ }
661
+ /** Describes an enum type. */
662
+
663
+ export interface EnumDescriptorProto {
664
+ name: string;
665
+ value: EnumValueDescriptorProto[];
666
+ options?: EnumOptions;
667
+ /**
668
+ * Range of reserved numeric values. Reserved numeric values may not be used
669
+ * by enum values in the same enum declaration. Reserved ranges may not
670
+ * overlap.
671
+ */
672
+
673
+ reservedRange: EnumDescriptorProto_EnumReservedRange[];
674
+ /**
675
+ * Reserved enum value names, which may not be reused. A given name may only
676
+ * be reserved once.
677
+ */
678
+
679
+ reservedName: string[];
680
+ }
681
+ /** Describes an enum type. */
682
+
683
+ export interface EnumDescriptorProtoSDKType {
684
+ name: string;
685
+ value: EnumValueDescriptorProtoSDKType[];
686
+ options?: EnumOptionsSDKType;
687
+ reserved_range: EnumDescriptorProto_EnumReservedRangeSDKType[];
688
+ reserved_name: string[];
689
+ }
690
+ /**
691
+ * Range of reserved numeric values. Reserved values may not be used by
692
+ * entries in the same enum. Reserved ranges may not overlap.
693
+ *
694
+ * Note that this is distinct from DescriptorProto.ReservedRange in that it
695
+ * is inclusive such that it can appropriately represent the entire int32
696
+ * domain.
697
+ */
698
+
699
+ export interface EnumDescriptorProto_EnumReservedRange {
700
+ /** Inclusive. */
701
+ start: number;
702
+ /** Inclusive. */
703
+
704
+ end: number;
705
+ }
706
+ /**
707
+ * Range of reserved numeric values. Reserved values may not be used by
708
+ * entries in the same enum. Reserved ranges may not overlap.
709
+ *
710
+ * Note that this is distinct from DescriptorProto.ReservedRange in that it
711
+ * is inclusive such that it can appropriately represent the entire int32
712
+ * domain.
713
+ */
714
+
715
+ export interface EnumDescriptorProto_EnumReservedRangeSDKType {
716
+ start: number;
717
+ end: number;
718
+ }
719
+ /** Describes a value within an enum. */
720
+
721
+ export interface EnumValueDescriptorProto {
722
+ name: string;
723
+ number: number;
724
+ options?: EnumValueOptions;
725
+ }
726
+ /** Describes a value within an enum. */
727
+
728
+ export interface EnumValueDescriptorProtoSDKType {
729
+ name: string;
730
+ number: number;
731
+ options?: EnumValueOptionsSDKType;
732
+ }
733
+ /** Describes a service. */
734
+
735
+ export interface ServiceDescriptorProto {
736
+ name: string;
737
+ method: MethodDescriptorProto[];
738
+ options?: ServiceOptions;
739
+ }
740
+ /** Describes a service. */
741
+
742
+ export interface ServiceDescriptorProtoSDKType {
743
+ name: string;
744
+ method: MethodDescriptorProtoSDKType[];
745
+ options?: ServiceOptionsSDKType;
746
+ }
747
+ /** Describes a method of a service. */
748
+
749
+ export interface MethodDescriptorProto {
750
+ name: string;
751
+ /**
752
+ * Input and output type names. These are resolved in the same way as
753
+ * FieldDescriptorProto.type_name, but must refer to a message type.
754
+ */
755
+
756
+ inputType: string;
757
+ outputType: string;
758
+ options?: MethodOptions;
759
+ /** Identifies if client streams multiple client messages */
760
+
761
+ clientStreaming: boolean;
762
+ /** Identifies if server streams multiple server messages */
763
+
764
+ serverStreaming: boolean;
765
+ }
766
+ /** Describes a method of a service. */
767
+
768
+ export interface MethodDescriptorProtoSDKType {
769
+ name: string;
770
+ input_type: string;
771
+ output_type: string;
772
+ options?: MethodOptionsSDKType;
773
+ client_streaming: boolean;
774
+ server_streaming: boolean;
775
+ }
776
+ export interface FileOptions {
777
+ /**
778
+ * Sets the Java package where classes generated from this .proto will be
779
+ * placed. By default, the proto package is used, but this is often
780
+ * inappropriate because proto packages do not normally start with backwards
781
+ * domain names.
782
+ */
783
+ javaPackage: string;
784
+ /**
785
+ * If set, all the classes from the .proto file are wrapped in a single
786
+ * outer class with the given name. This applies to both Proto1
787
+ * (equivalent to the old "--one_java_file" option) and Proto2 (where
788
+ * a .proto always translates to a single class, but you may want to
789
+ * explicitly choose the class name).
790
+ */
791
+
792
+ javaOuterClassname: string;
793
+ /**
794
+ * If set true, then the Java code generator will generate a separate .java
795
+ * file for each top-level message, enum, and service defined in the .proto
796
+ * file. Thus, these types will *not* be nested inside the outer class
797
+ * named by java_outer_classname. However, the outer class will still be
798
+ * generated to contain the file's getDescriptor() method as well as any
799
+ * top-level extensions defined in the file.
800
+ */
801
+
802
+ javaMultipleFiles: boolean;
803
+ /** This option does nothing. */
804
+
805
+ /** @deprecated */
806
+
807
+ javaGenerateEqualsAndHash: boolean;
808
+ /**
809
+ * If set true, then the Java2 code generator will generate code that
810
+ * throws an exception whenever an attempt is made to assign a non-UTF-8
811
+ * byte sequence to a string field.
812
+ * Message reflection will do the same.
813
+ * However, an extension field still accepts non-UTF-8 byte sequences.
814
+ * This option has no effect on when used with the lite runtime.
815
+ */
816
+
817
+ javaStringCheckUtf8: boolean;
818
+ optimizeFor: FileOptions_OptimizeMode;
819
+ /**
820
+ * Sets the Go package where structs generated from this .proto will be
821
+ * placed. If omitted, the Go package will be derived from the following:
822
+ * - The basename of the package import path, if provided.
823
+ * - Otherwise, the package statement in the .proto file, if present.
824
+ * - Otherwise, the basename of the .proto file, without extension.
825
+ */
826
+
827
+ goPackage: string;
828
+ /**
829
+ * Should generic services be generated in each language? "Generic" services
830
+ * are not specific to any particular RPC system. They are generated by the
831
+ * main code generators in each language (without additional plugins).
832
+ * Generic services were the only kind of service generation supported by
833
+ * early versions of google.protobuf.
834
+ *
835
+ * Generic services are now considered deprecated in favor of using plugins
836
+ * that generate code specific to your particular RPC system. Therefore,
837
+ * these default to false. Old code which depends on generic services should
838
+ * explicitly set them to true.
839
+ */
840
+
841
+ ccGenericServices: boolean;
842
+ javaGenericServices: boolean;
843
+ pyGenericServices: boolean;
844
+ phpGenericServices: boolean;
845
+ /**
846
+ * Is this file deprecated?
847
+ * Depending on the target platform, this can emit Deprecated annotations
848
+ * for everything in the file, or it will be completely ignored; in the very
849
+ * least, this is a formalization for deprecating files.
850
+ */
851
+
852
+ deprecated: boolean;
853
+ /**
854
+ * Enables the use of arenas for the proto messages in this file. This applies
855
+ * only to generated classes for C++.
856
+ */
857
+
858
+ ccEnableArenas: boolean;
859
+ /**
860
+ * Sets the objective c class prefix which is prepended to all objective c
861
+ * generated classes from this .proto. There is no default.
862
+ */
863
+
864
+ objcClassPrefix: string;
865
+ /** Namespace for generated classes; defaults to the package. */
866
+
867
+ csharpNamespace: string;
868
+ /**
869
+ * By default Swift generators will take the proto package and CamelCase it
870
+ * replacing '.' with underscore and use that to prefix the types/symbols
871
+ * defined. When this options is provided, they will use this value instead
872
+ * to prefix the types/symbols defined.
873
+ */
874
+
875
+ swiftPrefix: string;
876
+ /**
877
+ * Sets the php class prefix which is prepended to all php generated classes
878
+ * from this .proto. Default is empty.
879
+ */
880
+
881
+ phpClassPrefix: string;
882
+ /**
883
+ * Use this option to change the namespace of php generated classes. Default
884
+ * is empty. When this option is empty, the package name will be used for
885
+ * determining the namespace.
886
+ */
887
+
888
+ phpNamespace: string;
889
+ /**
890
+ * Use this option to change the namespace of php generated metadata classes.
891
+ * Default is empty. When this option is empty, the proto file name will be
892
+ * used for determining the namespace.
893
+ */
894
+
895
+ phpMetadataNamespace: string;
896
+ /**
897
+ * Use this option to change the package of ruby generated classes. Default
898
+ * is empty. When this option is not set, the package name will be used for
899
+ * determining the ruby package.
900
+ */
901
+
902
+ rubyPackage: string;
903
+ /**
904
+ * The parser stores options it doesn't recognize here.
905
+ * See the documentation for the "Options" section above.
906
+ */
907
+
908
+ uninterpretedOption: UninterpretedOption[];
909
+ }
910
+ export interface FileOptionsSDKType {
911
+ java_package: string;
912
+ java_outer_classname: string;
913
+ java_multiple_files: boolean;
914
+ /** @deprecated */
915
+
916
+ java_generate_equals_and_hash: boolean;
917
+ java_string_check_utf8: boolean;
918
+ optimize_for: FileOptions_OptimizeMode;
919
+ go_package: string;
920
+ cc_generic_services: boolean;
921
+ java_generic_services: boolean;
922
+ py_generic_services: boolean;
923
+ php_generic_services: boolean;
924
+ deprecated: boolean;
925
+ cc_enable_arenas: boolean;
926
+ objc_class_prefix: string;
927
+ csharp_namespace: string;
928
+ swift_prefix: string;
929
+ php_class_prefix: string;
930
+ php_namespace: string;
931
+ php_metadata_namespace: string;
932
+ ruby_package: string;
933
+ uninterpreted_option: UninterpretedOptionSDKType[];
934
+ }
935
+ export interface MessageOptions {
936
+ /**
937
+ * Set true to use the old proto1 MessageSet wire format for extensions.
938
+ * This is provided for backwards-compatibility with the MessageSet wire
939
+ * format. You should not use this for any other reason: It's less
940
+ * efficient, has fewer features, and is more complicated.
941
+ *
942
+ * The message must be defined exactly as follows:
943
+ * message Foo {
944
+ * option message_set_wire_format = true;
945
+ * extensions 4 to max;
946
+ * }
947
+ * Note that the message cannot have any defined fields; MessageSets only
948
+ * have extensions.
949
+ *
950
+ * All extensions of your type must be singular messages; e.g. they cannot
951
+ * be int32s, enums, or repeated messages.
952
+ *
953
+ * Because this is an option, the above two restrictions are not enforced by
954
+ * the protocol compiler.
955
+ */
956
+ messageSetWireFormat: boolean;
957
+ /**
958
+ * Disables the generation of the standard "descriptor()" accessor, which can
959
+ * conflict with a field of the same name. This is meant to make migration
960
+ * from proto1 easier; new code should avoid fields named "descriptor".
961
+ */
962
+
963
+ noStandardDescriptorAccessor: boolean;
964
+ /**
965
+ * Is this message deprecated?
966
+ * Depending on the target platform, this can emit Deprecated annotations
967
+ * for the message, or it will be completely ignored; in the very least,
968
+ * this is a formalization for deprecating messages.
969
+ */
970
+
971
+ deprecated: boolean;
972
+ /**
973
+ * Whether the message is an automatically generated map entry type for the
974
+ * maps field.
975
+ *
976
+ * For maps fields:
977
+ * map<KeyType, ValueType> map_field = 1;
978
+ * The parsed descriptor looks like:
979
+ * message MapFieldEntry {
980
+ * option map_entry = true;
981
+ * optional KeyType key = 1;
982
+ * optional ValueType value = 2;
983
+ * }
984
+ * repeated MapFieldEntry map_field = 1;
985
+ *
986
+ * Implementations may choose not to generate the map_entry=true message, but
987
+ * use a native map in the target language to hold the keys and values.
988
+ * The reflection APIs in such implementations still need to work as
989
+ * if the field is a repeated message field.
990
+ *
991
+ * NOTE: Do not set the option in .proto files. Always use the maps syntax
992
+ * instead. The option should only be implicitly set by the proto compiler
993
+ * parser.
994
+ */
995
+
996
+ mapEntry: boolean;
997
+ /** The parser stores options it doesn't recognize here. See above. */
998
+
999
+ uninterpretedOption: UninterpretedOption[];
1000
+ }
1001
+ export interface MessageOptionsSDKType {
1002
+ message_set_wire_format: boolean;
1003
+ no_standard_descriptor_accessor: boolean;
1004
+ deprecated: boolean;
1005
+ map_entry: boolean;
1006
+ uninterpreted_option: UninterpretedOptionSDKType[];
1007
+ }
1008
+ export interface FieldOptions {
1009
+ /**
1010
+ * The ctype option instructs the C++ code generator to use a different
1011
+ * representation of the field than it normally would. See the specific
1012
+ * options below. This option is not yet implemented in the open source
1013
+ * release -- sorry, we'll try to include it in a future version!
1014
+ */
1015
+ ctype: FieldOptions_CType;
1016
+ /**
1017
+ * The packed option can be enabled for repeated primitive fields to enable
1018
+ * a more efficient representation on the wire. Rather than repeatedly
1019
+ * writing the tag and type for each element, the entire array is encoded as
1020
+ * a single length-delimited blob. In proto3, only explicit setting it to
1021
+ * false will avoid using packed encoding.
1022
+ */
1023
+
1024
+ packed: boolean;
1025
+ /**
1026
+ * The jstype option determines the JavaScript type used for values of the
1027
+ * field. The option is permitted only for 64 bit integral and fixed types
1028
+ * (int64, uint64, sint64, fixed64, sfixed64). A field with jstype JS_STRING
1029
+ * is represented as JavaScript string, which avoids loss of precision that
1030
+ * can happen when a large value is converted to a floating point JavaScript.
1031
+ * Specifying JS_NUMBER for the jstype causes the generated JavaScript code to
1032
+ * use the JavaScript "number" type. The behavior of the default option
1033
+ * JS_NORMAL is implementation dependent.
1034
+ *
1035
+ * This option is an enum to permit additional types to be added, e.g.
1036
+ * goog.math.Integer.
1037
+ */
1038
+
1039
+ jstype: FieldOptions_JSType;
1040
+ /**
1041
+ * Should this field be parsed lazily? Lazy applies only to message-type
1042
+ * fields. It means that when the outer message is initially parsed, the
1043
+ * inner message's contents will not be parsed but instead stored in encoded
1044
+ * form. The inner message will actually be parsed when it is first accessed.
1045
+ *
1046
+ * This is only a hint. Implementations are free to choose whether to use
1047
+ * eager or lazy parsing regardless of the value of this option. However,
1048
+ * setting this option true suggests that the protocol author believes that
1049
+ * using lazy parsing on this field is worth the additional bookkeeping
1050
+ * overhead typically needed to implement it.
1051
+ *
1052
+ * This option does not affect the public interface of any generated code;
1053
+ * all method signatures remain the same. Furthermore, thread-safety of the
1054
+ * interface is not affected by this option; const methods remain safe to
1055
+ * call from multiple threads concurrently, while non-const methods continue
1056
+ * to require exclusive access.
1057
+ *
1058
+ *
1059
+ * Note that implementations may choose not to check required fields within
1060
+ * a lazy sub-message. That is, calling IsInitialized() on the outer message
1061
+ * may return true even if the inner message has missing required fields.
1062
+ * This is necessary because otherwise the inner message would have to be
1063
+ * parsed in order to perform the check, defeating the purpose of lazy
1064
+ * parsing. An implementation which chooses not to check required fields
1065
+ * must be consistent about it. That is, for any particular sub-message, the
1066
+ * implementation must either *always* check its required fields, or *never*
1067
+ * check its required fields, regardless of whether or not the message has
1068
+ * been parsed.
1069
+ */
1070
+
1071
+ lazy: boolean;
1072
+ /**
1073
+ * Is this field deprecated?
1074
+ * Depending on the target platform, this can emit Deprecated annotations
1075
+ * for accessors, or it will be completely ignored; in the very least, this
1076
+ * is a formalization for deprecating fields.
1077
+ */
1078
+
1079
+ deprecated: boolean;
1080
+ /** For Google-internal migration only. Do not use. */
1081
+
1082
+ weak: boolean;
1083
+ /** The parser stores options it doesn't recognize here. See above. */
1084
+
1085
+ uninterpretedOption: UninterpretedOption[];
1086
+ }
1087
+ export interface FieldOptionsSDKType {
1088
+ ctype: FieldOptions_CType;
1089
+ packed: boolean;
1090
+ jstype: FieldOptions_JSType;
1091
+ lazy: boolean;
1092
+ deprecated: boolean;
1093
+ weak: boolean;
1094
+ uninterpreted_option: UninterpretedOptionSDKType[];
1095
+ }
1096
+ export interface OneofOptions {
1097
+ /** The parser stores options it doesn't recognize here. See above. */
1098
+ uninterpretedOption: UninterpretedOption[];
1099
+ }
1100
+ export interface OneofOptionsSDKType {
1101
+ uninterpreted_option: UninterpretedOptionSDKType[];
1102
+ }
1103
+ export interface EnumOptions {
1104
+ /**
1105
+ * Set this option to true to allow mapping different tag names to the same
1106
+ * value.
1107
+ */
1108
+ allowAlias: boolean;
1109
+ /**
1110
+ * Is this enum deprecated?
1111
+ * Depending on the target platform, this can emit Deprecated annotations
1112
+ * for the enum, or it will be completely ignored; in the very least, this
1113
+ * is a formalization for deprecating enums.
1114
+ */
1115
+
1116
+ deprecated: boolean;
1117
+ /** The parser stores options it doesn't recognize here. See above. */
1118
+
1119
+ uninterpretedOption: UninterpretedOption[];
1120
+ }
1121
+ export interface EnumOptionsSDKType {
1122
+ allow_alias: boolean;
1123
+ deprecated: boolean;
1124
+ uninterpreted_option: UninterpretedOptionSDKType[];
1125
+ }
1126
+ export interface EnumValueOptions {
1127
+ /**
1128
+ * Is this enum value deprecated?
1129
+ * Depending on the target platform, this can emit Deprecated annotations
1130
+ * for the enum value, or it will be completely ignored; in the very least,
1131
+ * this is a formalization for deprecating enum values.
1132
+ */
1133
+ deprecated: boolean;
1134
+ /** The parser stores options it doesn't recognize here. See above. */
1135
+
1136
+ uninterpretedOption: UninterpretedOption[];
1137
+ }
1138
+ export interface EnumValueOptionsSDKType {
1139
+ deprecated: boolean;
1140
+ uninterpreted_option: UninterpretedOptionSDKType[];
1141
+ }
1142
+ export interface ServiceOptions {
1143
+ /**
1144
+ * Is this service deprecated?
1145
+ * Depending on the target platform, this can emit Deprecated annotations
1146
+ * for the service, or it will be completely ignored; in the very least,
1147
+ * this is a formalization for deprecating services.
1148
+ */
1149
+ deprecated: boolean;
1150
+ /** The parser stores options it doesn't recognize here. See above. */
1151
+
1152
+ uninterpretedOption: UninterpretedOption[];
1153
+ }
1154
+ export interface ServiceOptionsSDKType {
1155
+ deprecated: boolean;
1156
+ uninterpreted_option: UninterpretedOptionSDKType[];
1157
+ }
1158
+ export interface MethodOptions {
1159
+ /**
1160
+ * Is this method deprecated?
1161
+ * Depending on the target platform, this can emit Deprecated annotations
1162
+ * for the method, or it will be completely ignored; in the very least,
1163
+ * this is a formalization for deprecating methods.
1164
+ */
1165
+ deprecated: boolean;
1166
+ idempotencyLevel: MethodOptions_IdempotencyLevel;
1167
+ /** The parser stores options it doesn't recognize here. See above. */
1168
+
1169
+ uninterpretedOption: UninterpretedOption[];
1170
+ }
1171
+ export interface MethodOptionsSDKType {
1172
+ deprecated: boolean;
1173
+ idempotency_level: MethodOptions_IdempotencyLevel;
1174
+ uninterpreted_option: UninterpretedOptionSDKType[];
1175
+ }
1176
+ /**
1177
+ * A message representing a option the parser does not recognize. This only
1178
+ * appears in options protos created by the compiler::Parser class.
1179
+ * DescriptorPool resolves these when building Descriptor objects. Therefore,
1180
+ * options protos in descriptor objects (e.g. returned by Descriptor::options(),
1181
+ * or produced by Descriptor::CopyTo()) will never have UninterpretedOptions
1182
+ * in them.
1183
+ */
1184
+
1185
+ export interface UninterpretedOption {
1186
+ name: UninterpretedOption_NamePart[];
1187
+ /**
1188
+ * The value of the uninterpreted option, in whatever type the tokenizer
1189
+ * identified it as during parsing. Exactly one of these should be set.
1190
+ */
1191
+
1192
+ identifierValue: string;
1193
+ positiveIntValue: Long;
1194
+ negativeIntValue: Long;
1195
+ doubleValue: number;
1196
+ stringValue: Uint8Array;
1197
+ aggregateValue: string;
1198
+ }
1199
+ /**
1200
+ * A message representing a option the parser does not recognize. This only
1201
+ * appears in options protos created by the compiler::Parser class.
1202
+ * DescriptorPool resolves these when building Descriptor objects. Therefore,
1203
+ * options protos in descriptor objects (e.g. returned by Descriptor::options(),
1204
+ * or produced by Descriptor::CopyTo()) will never have UninterpretedOptions
1205
+ * in them.
1206
+ */
1207
+
1208
+ export interface UninterpretedOptionSDKType {
1209
+ name: UninterpretedOption_NamePartSDKType[];
1210
+ identifier_value: string;
1211
+ positive_int_value: Long;
1212
+ negative_int_value: Long;
1213
+ double_value: number;
1214
+ string_value: Uint8Array;
1215
+ aggregate_value: string;
1216
+ }
1217
+ /**
1218
+ * The name of the uninterpreted option. Each string represents a segment in
1219
+ * a dot-separated name. is_extension is true iff a segment represents an
1220
+ * extension (denoted with parentheses in options specs in .proto files).
1221
+ * E.g.,{ ["foo", false], ["bar.baz", true], ["qux", false] } represents
1222
+ * "foo.(bar.baz).qux".
1223
+ */
1224
+
1225
+ export interface UninterpretedOption_NamePart {
1226
+ namePart: string;
1227
+ isExtension: boolean;
1228
+ }
1229
+ /**
1230
+ * The name of the uninterpreted option. Each string represents a segment in
1231
+ * a dot-separated name. is_extension is true iff a segment represents an
1232
+ * extension (denoted with parentheses in options specs in .proto files).
1233
+ * E.g.,{ ["foo", false], ["bar.baz", true], ["qux", false] } represents
1234
+ * "foo.(bar.baz).qux".
1235
+ */
1236
+
1237
+ export interface UninterpretedOption_NamePartSDKType {
1238
+ name_part: string;
1239
+ is_extension: boolean;
1240
+ }
1241
+ /**
1242
+ * Encapsulates information about the original source file from which a
1243
+ * FileDescriptorProto was generated.
1244
+ */
1245
+
1246
+ export interface SourceCodeInfo {
1247
+ /**
1248
+ * A Location identifies a piece of source code in a .proto file which
1249
+ * corresponds to a particular definition. This information is intended
1250
+ * to be useful to IDEs, code indexers, documentation generators, and similar
1251
+ * tools.
1252
+ *
1253
+ * For example, say we have a file like:
1254
+ * message Foo {
1255
+ * optional string foo = 1;
1256
+ * }
1257
+ * Let's look at just the field definition:
1258
+ * optional string foo = 1;
1259
+ * ^ ^^ ^^ ^ ^^^
1260
+ * a bc de f ghi
1261
+ * We have the following locations:
1262
+ * span path represents
1263
+ * [a,i) [ 4, 0, 2, 0 ] The whole field definition.
1264
+ * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional).
1265
+ * [c,d) [ 4, 0, 2, 0, 5 ] The type (string).
1266
+ * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo).
1267
+ * [g,h) [ 4, 0, 2, 0, 3 ] The number (1).
1268
+ *
1269
+ * Notes:
1270
+ * - A location may refer to a repeated field itself (i.e. not to any
1271
+ * particular index within it). This is used whenever a set of elements are
1272
+ * logically enclosed in a single code segment. For example, an entire
1273
+ * extend block (possibly containing multiple extension definitions) will
1274
+ * have an outer location whose path refers to the "extensions" repeated
1275
+ * field without an index.
1276
+ * - Multiple locations may have the same path. This happens when a single
1277
+ * logical declaration is spread out across multiple places. The most
1278
+ * obvious example is the "extend" block again -- there may be multiple
1279
+ * extend blocks in the same scope, each of which will have the same path.
1280
+ * - A location's span is not always a subset of its parent's span. For
1281
+ * example, the "extendee" of an extension declaration appears at the
1282
+ * beginning of the "extend" block and is shared by all extensions within
1283
+ * the block.
1284
+ * - Just because a location's span is a subset of some other location's span
1285
+ * does not mean that it is a descendant. For example, a "group" defines
1286
+ * both a type and a field in a single declaration. Thus, the locations
1287
+ * corresponding to the type and field and their components will overlap.
1288
+ * - Code which tries to interpret locations should probably be designed to
1289
+ * ignore those that it doesn't understand, as more types of locations could
1290
+ * be recorded in the future.
1291
+ */
1292
+ location: SourceCodeInfo_Location[];
1293
+ }
1294
+ /**
1295
+ * Encapsulates information about the original source file from which a
1296
+ * FileDescriptorProto was generated.
1297
+ */
1298
+
1299
+ export interface SourceCodeInfoSDKType {
1300
+ location: SourceCodeInfo_LocationSDKType[];
1301
+ }
1302
+ export interface SourceCodeInfo_Location {
1303
+ /**
1304
+ * Identifies which part of the FileDescriptorProto was defined at this
1305
+ * location.
1306
+ *
1307
+ * Each element is a field number or an index. They form a path from
1308
+ * the root FileDescriptorProto to the place where the definition. For
1309
+ * example, this path:
1310
+ * [ 4, 3, 2, 7, 1 ]
1311
+ * refers to:
1312
+ * file.message_type(3) // 4, 3
1313
+ * .field(7) // 2, 7
1314
+ * .name() // 1
1315
+ * This is because FileDescriptorProto.message_type has field number 4:
1316
+ * repeated DescriptorProto message_type = 4;
1317
+ * and DescriptorProto.field has field number 2:
1318
+ * repeated FieldDescriptorProto field = 2;
1319
+ * and FieldDescriptorProto.name has field number 1:
1320
+ * optional string name = 1;
1321
+ *
1322
+ * Thus, the above path gives the location of a field name. If we removed
1323
+ * the last element:
1324
+ * [ 4, 3, 2, 7 ]
1325
+ * this path refers to the whole field declaration (from the beginning
1326
+ * of the label to the terminating semicolon).
1327
+ */
1328
+ path: number[];
1329
+ /**
1330
+ * Always has exactly three or four elements: start line, start column,
1331
+ * end line (optional, otherwise assumed same as start line), end column.
1332
+ * These are packed into a single field for efficiency. Note that line
1333
+ * and column numbers are zero-based -- typically you will want to add
1334
+ * 1 to each before displaying to a user.
1335
+ */
1336
+
1337
+ span: number[];
1338
+ /**
1339
+ * If this SourceCodeInfo represents a complete declaration, these are any
1340
+ * comments appearing before and after the declaration which appear to be
1341
+ * attached to the declaration.
1342
+ *
1343
+ * A series of line comments appearing on consecutive lines, with no other
1344
+ * tokens appearing on those lines, will be treated as a single comment.
1345
+ *
1346
+ * leading_detached_comments will keep paragraphs of comments that appear
1347
+ * before (but not connected to) the current element. Each paragraph,
1348
+ * separated by empty lines, will be one comment element in the repeated
1349
+ * field.
1350
+ *
1351
+ * Only the comment content is provided; comment markers (e.g. //) are
1352
+ * stripped out. For block comments, leading whitespace and an asterisk
1353
+ * will be stripped from the beginning of each line other than the first.
1354
+ * Newlines are included in the output.
1355
+ *
1356
+ * Examples:
1357
+ *
1358
+ * optional int32 foo = 1; // Comment attached to foo.
1359
+ * // Comment attached to bar.
1360
+ * optional int32 bar = 2;
1361
+ *
1362
+ * optional string baz = 3;
1363
+ * // Comment attached to baz.
1364
+ * // Another line attached to baz.
1365
+ *
1366
+ * // Comment attached to qux.
1367
+ * //
1368
+ * // Another line attached to qux.
1369
+ * optional double qux = 4;
1370
+ *
1371
+ * // Detached comment for corge. This is not leading or trailing comments
1372
+ * // to qux or corge because there are blank lines separating it from
1373
+ * // both.
1374
+ *
1375
+ * // Detached comment for corge paragraph 2.
1376
+ *
1377
+ * optional string corge = 5;
1378
+ * /* Block comment attached
1379
+ * * to corge. Leading asterisks
1380
+ * * will be removed. *\/
1381
+ * /* Block comment attached to
1382
+ * * grault. *\/
1383
+ * optional int32 grault = 6;
1384
+ *
1385
+ * // ignored detached comments.
1386
+ */
1387
+
1388
+ leadingComments: string;
1389
+ trailingComments: string;
1390
+ leadingDetachedComments: string[];
1391
+ }
1392
+ export interface SourceCodeInfo_LocationSDKType {
1393
+ path: number[];
1394
+ span: number[];
1395
+ leading_comments: string;
1396
+ trailing_comments: string;
1397
+ leading_detached_comments: string[];
1398
+ }
1399
+ /**
1400
+ * Describes the relationship between generated code and its original source
1401
+ * file. A GeneratedCodeInfo message is associated with only one generated
1402
+ * source file, but may contain references to different source .proto files.
1403
+ */
1404
+
1405
+ export interface GeneratedCodeInfo {
1406
+ /**
1407
+ * An Annotation connects some span of text in generated code to an element
1408
+ * of its generating .proto file.
1409
+ */
1410
+ annotation: GeneratedCodeInfo_Annotation[];
1411
+ }
1412
+ /**
1413
+ * Describes the relationship between generated code and its original source
1414
+ * file. A GeneratedCodeInfo message is associated with only one generated
1415
+ * source file, but may contain references to different source .proto files.
1416
+ */
1417
+
1418
+ export interface GeneratedCodeInfoSDKType {
1419
+ annotation: GeneratedCodeInfo_AnnotationSDKType[];
1420
+ }
1421
+ export interface GeneratedCodeInfo_Annotation {
1422
+ /**
1423
+ * Identifies the element in the original source .proto file. This field
1424
+ * is formatted the same as SourceCodeInfo.Location.path.
1425
+ */
1426
+ path: number[];
1427
+ /** Identifies the filesystem path to the original source .proto. */
1428
+
1429
+ sourceFile: string;
1430
+ /**
1431
+ * Identifies the starting offset in bytes in the generated code
1432
+ * that relates to the identified object.
1433
+ */
1434
+
1435
+ begin: number;
1436
+ /**
1437
+ * Identifies the ending offset in bytes in the generated code that
1438
+ * relates to the identified offset. The end offset should be one past
1439
+ * the last relevant byte (so the length of the text = end - begin).
1440
+ */
1441
+
1442
+ end: number;
1443
+ }
1444
+ export interface GeneratedCodeInfo_AnnotationSDKType {
1445
+ path: number[];
1446
+ source_file: string;
1447
+ begin: number;
1448
+ end: number;
1449
+ }
1450
+
1451
+ function createBaseFileDescriptorSet(): FileDescriptorSet {
1452
+ return {
1453
+ file: []
1454
+ };
1455
+ }
1456
+
1457
+ export const FileDescriptorSet = {
1458
+ encode(message: FileDescriptorSet, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
1459
+ for (const v of message.file) {
1460
+ FileDescriptorProto.encode(v!, writer.uint32(10).fork()).ldelim();
1461
+ }
1462
+
1463
+ return writer;
1464
+ },
1465
+
1466
+ decode(input: _m0.Reader | Uint8Array, length?: number): FileDescriptorSet {
1467
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
1468
+ let end = length === undefined ? reader.len : reader.pos + length;
1469
+ const message = createBaseFileDescriptorSet();
1470
+
1471
+ while (reader.pos < end) {
1472
+ const tag = reader.uint32();
1473
+
1474
+ switch (tag >>> 3) {
1475
+ case 1:
1476
+ message.file.push(FileDescriptorProto.decode(reader, reader.uint32()));
1477
+ break;
1478
+
1479
+ default:
1480
+ reader.skipType(tag & 7);
1481
+ break;
1482
+ }
1483
+ }
1484
+
1485
+ return message;
1486
+ },
1487
+
1488
+ fromPartial(object: DeepPartial<FileDescriptorSet>): FileDescriptorSet {
1489
+ const message = createBaseFileDescriptorSet();
1490
+ message.file = object.file?.map(e => FileDescriptorProto.fromPartial(e)) || [];
1491
+ return message;
1492
+ }
1493
+
1494
+ };
1495
+
1496
+ function createBaseFileDescriptorProto(): FileDescriptorProto {
1497
+ return {
1498
+ name: "",
1499
+ package: "",
1500
+ dependency: [],
1501
+ publicDependency: [],
1502
+ weakDependency: [],
1503
+ messageType: [],
1504
+ enumType: [],
1505
+ service: [],
1506
+ extension: [],
1507
+ options: undefined,
1508
+ sourceCodeInfo: undefined,
1509
+ syntax: ""
1510
+ };
1511
+ }
1512
+
1513
+ export const FileDescriptorProto = {
1514
+ encode(message: FileDescriptorProto, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
1515
+ if (message.name !== "") {
1516
+ writer.uint32(10).string(message.name);
1517
+ }
1518
+
1519
+ if (message.package !== "") {
1520
+ writer.uint32(18).string(message.package);
1521
+ }
1522
+
1523
+ for (const v of message.dependency) {
1524
+ writer.uint32(26).string(v!);
1525
+ }
1526
+
1527
+ writer.uint32(82).fork();
1528
+
1529
+ for (const v of message.publicDependency) {
1530
+ writer.int32(v);
1531
+ }
1532
+
1533
+ writer.ldelim();
1534
+ writer.uint32(90).fork();
1535
+
1536
+ for (const v of message.weakDependency) {
1537
+ writer.int32(v);
1538
+ }
1539
+
1540
+ writer.ldelim();
1541
+
1542
+ for (const v of message.messageType) {
1543
+ DescriptorProto.encode(v!, writer.uint32(34).fork()).ldelim();
1544
+ }
1545
+
1546
+ for (const v of message.enumType) {
1547
+ EnumDescriptorProto.encode(v!, writer.uint32(42).fork()).ldelim();
1548
+ }
1549
+
1550
+ for (const v of message.service) {
1551
+ ServiceDescriptorProto.encode(v!, writer.uint32(50).fork()).ldelim();
1552
+ }
1553
+
1554
+ for (const v of message.extension) {
1555
+ FieldDescriptorProto.encode(v!, writer.uint32(58).fork()).ldelim();
1556
+ }
1557
+
1558
+ if (message.options !== undefined) {
1559
+ FileOptions.encode(message.options, writer.uint32(66).fork()).ldelim();
1560
+ }
1561
+
1562
+ if (message.sourceCodeInfo !== undefined) {
1563
+ SourceCodeInfo.encode(message.sourceCodeInfo, writer.uint32(74).fork()).ldelim();
1564
+ }
1565
+
1566
+ if (message.syntax !== "") {
1567
+ writer.uint32(98).string(message.syntax);
1568
+ }
1569
+
1570
+ return writer;
1571
+ },
1572
+
1573
+ decode(input: _m0.Reader | Uint8Array, length?: number): FileDescriptorProto {
1574
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
1575
+ let end = length === undefined ? reader.len : reader.pos + length;
1576
+ const message = createBaseFileDescriptorProto();
1577
+
1578
+ while (reader.pos < end) {
1579
+ const tag = reader.uint32();
1580
+
1581
+ switch (tag >>> 3) {
1582
+ case 1:
1583
+ message.name = reader.string();
1584
+ break;
1585
+
1586
+ case 2:
1587
+ message.package = reader.string();
1588
+ break;
1589
+
1590
+ case 3:
1591
+ message.dependency.push(reader.string());
1592
+ break;
1593
+
1594
+ case 10:
1595
+ if ((tag & 7) === 2) {
1596
+ const end2 = reader.uint32() + reader.pos;
1597
+
1598
+ while (reader.pos < end2) {
1599
+ message.publicDependency.push(reader.int32());
1600
+ }
1601
+ } else {
1602
+ message.publicDependency.push(reader.int32());
1603
+ }
1604
+
1605
+ break;
1606
+
1607
+ case 11:
1608
+ if ((tag & 7) === 2) {
1609
+ const end2 = reader.uint32() + reader.pos;
1610
+
1611
+ while (reader.pos < end2) {
1612
+ message.weakDependency.push(reader.int32());
1613
+ }
1614
+ } else {
1615
+ message.weakDependency.push(reader.int32());
1616
+ }
1617
+
1618
+ break;
1619
+
1620
+ case 4:
1621
+ message.messageType.push(DescriptorProto.decode(reader, reader.uint32()));
1622
+ break;
1623
+
1624
+ case 5:
1625
+ message.enumType.push(EnumDescriptorProto.decode(reader, reader.uint32()));
1626
+ break;
1627
+
1628
+ case 6:
1629
+ message.service.push(ServiceDescriptorProto.decode(reader, reader.uint32()));
1630
+ break;
1631
+
1632
+ case 7:
1633
+ message.extension.push(FieldDescriptorProto.decode(reader, reader.uint32()));
1634
+ break;
1635
+
1636
+ case 8:
1637
+ message.options = FileOptions.decode(reader, reader.uint32());
1638
+ break;
1639
+
1640
+ case 9:
1641
+ message.sourceCodeInfo = SourceCodeInfo.decode(reader, reader.uint32());
1642
+ break;
1643
+
1644
+ case 12:
1645
+ message.syntax = reader.string();
1646
+ break;
1647
+
1648
+ default:
1649
+ reader.skipType(tag & 7);
1650
+ break;
1651
+ }
1652
+ }
1653
+
1654
+ return message;
1655
+ },
1656
+
1657
+ fromPartial(object: DeepPartial<FileDescriptorProto>): FileDescriptorProto {
1658
+ const message = createBaseFileDescriptorProto();
1659
+ message.name = object.name ?? "";
1660
+ message.package = object.package ?? "";
1661
+ message.dependency = object.dependency?.map(e => e) || [];
1662
+ message.publicDependency = object.publicDependency?.map(e => e) || [];
1663
+ message.weakDependency = object.weakDependency?.map(e => e) || [];
1664
+ message.messageType = object.messageType?.map(e => DescriptorProto.fromPartial(e)) || [];
1665
+ message.enumType = object.enumType?.map(e => EnumDescriptorProto.fromPartial(e)) || [];
1666
+ message.service = object.service?.map(e => ServiceDescriptorProto.fromPartial(e)) || [];
1667
+ message.extension = object.extension?.map(e => FieldDescriptorProto.fromPartial(e)) || [];
1668
+ message.options = object.options !== undefined && object.options !== null ? FileOptions.fromPartial(object.options) : undefined;
1669
+ message.sourceCodeInfo = object.sourceCodeInfo !== undefined && object.sourceCodeInfo !== null ? SourceCodeInfo.fromPartial(object.sourceCodeInfo) : undefined;
1670
+ message.syntax = object.syntax ?? "";
1671
+ return message;
1672
+ }
1673
+
1674
+ };
1675
+
1676
+ function createBaseDescriptorProto(): DescriptorProto {
1677
+ return {
1678
+ name: "",
1679
+ field: [],
1680
+ extension: [],
1681
+ nestedType: [],
1682
+ enumType: [],
1683
+ extensionRange: [],
1684
+ oneofDecl: [],
1685
+ options: undefined,
1686
+ reservedRange: [],
1687
+ reservedName: []
1688
+ };
1689
+ }
1690
+
1691
+ export const DescriptorProto = {
1692
+ encode(message: DescriptorProto, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
1693
+ if (message.name !== "") {
1694
+ writer.uint32(10).string(message.name);
1695
+ }
1696
+
1697
+ for (const v of message.field) {
1698
+ FieldDescriptorProto.encode(v!, writer.uint32(18).fork()).ldelim();
1699
+ }
1700
+
1701
+ for (const v of message.extension) {
1702
+ FieldDescriptorProto.encode(v!, writer.uint32(50).fork()).ldelim();
1703
+ }
1704
+
1705
+ for (const v of message.nestedType) {
1706
+ DescriptorProto.encode(v!, writer.uint32(26).fork()).ldelim();
1707
+ }
1708
+
1709
+ for (const v of message.enumType) {
1710
+ EnumDescriptorProto.encode(v!, writer.uint32(34).fork()).ldelim();
1711
+ }
1712
+
1713
+ for (const v of message.extensionRange) {
1714
+ DescriptorProto_ExtensionRange.encode(v!, writer.uint32(42).fork()).ldelim();
1715
+ }
1716
+
1717
+ for (const v of message.oneofDecl) {
1718
+ OneofDescriptorProto.encode(v!, writer.uint32(66).fork()).ldelim();
1719
+ }
1720
+
1721
+ if (message.options !== undefined) {
1722
+ MessageOptions.encode(message.options, writer.uint32(58).fork()).ldelim();
1723
+ }
1724
+
1725
+ for (const v of message.reservedRange) {
1726
+ DescriptorProto_ReservedRange.encode(v!, writer.uint32(74).fork()).ldelim();
1727
+ }
1728
+
1729
+ for (const v of message.reservedName) {
1730
+ writer.uint32(82).string(v!);
1731
+ }
1732
+
1733
+ return writer;
1734
+ },
1735
+
1736
+ decode(input: _m0.Reader | Uint8Array, length?: number): DescriptorProto {
1737
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
1738
+ let end = length === undefined ? reader.len : reader.pos + length;
1739
+ const message = createBaseDescriptorProto();
1740
+
1741
+ while (reader.pos < end) {
1742
+ const tag = reader.uint32();
1743
+
1744
+ switch (tag >>> 3) {
1745
+ case 1:
1746
+ message.name = reader.string();
1747
+ break;
1748
+
1749
+ case 2:
1750
+ message.field.push(FieldDescriptorProto.decode(reader, reader.uint32()));
1751
+ break;
1752
+
1753
+ case 6:
1754
+ message.extension.push(FieldDescriptorProto.decode(reader, reader.uint32()));
1755
+ break;
1756
+
1757
+ case 3:
1758
+ message.nestedType.push(DescriptorProto.decode(reader, reader.uint32()));
1759
+ break;
1760
+
1761
+ case 4:
1762
+ message.enumType.push(EnumDescriptorProto.decode(reader, reader.uint32()));
1763
+ break;
1764
+
1765
+ case 5:
1766
+ message.extensionRange.push(DescriptorProto_ExtensionRange.decode(reader, reader.uint32()));
1767
+ break;
1768
+
1769
+ case 8:
1770
+ message.oneofDecl.push(OneofDescriptorProto.decode(reader, reader.uint32()));
1771
+ break;
1772
+
1773
+ case 7:
1774
+ message.options = MessageOptions.decode(reader, reader.uint32());
1775
+ break;
1776
+
1777
+ case 9:
1778
+ message.reservedRange.push(DescriptorProto_ReservedRange.decode(reader, reader.uint32()));
1779
+ break;
1780
+
1781
+ case 10:
1782
+ message.reservedName.push(reader.string());
1783
+ break;
1784
+
1785
+ default:
1786
+ reader.skipType(tag & 7);
1787
+ break;
1788
+ }
1789
+ }
1790
+
1791
+ return message;
1792
+ },
1793
+
1794
+ fromPartial(object: DeepPartial<DescriptorProto>): DescriptorProto {
1795
+ const message = createBaseDescriptorProto();
1796
+ message.name = object.name ?? "";
1797
+ message.field = object.field?.map(e => FieldDescriptorProto.fromPartial(e)) || [];
1798
+ message.extension = object.extension?.map(e => FieldDescriptorProto.fromPartial(e)) || [];
1799
+ message.nestedType = object.nestedType?.map(e => DescriptorProto.fromPartial(e)) || [];
1800
+ message.enumType = object.enumType?.map(e => EnumDescriptorProto.fromPartial(e)) || [];
1801
+ message.extensionRange = object.extensionRange?.map(e => DescriptorProto_ExtensionRange.fromPartial(e)) || [];
1802
+ message.oneofDecl = object.oneofDecl?.map(e => OneofDescriptorProto.fromPartial(e)) || [];
1803
+ message.options = object.options !== undefined && object.options !== null ? MessageOptions.fromPartial(object.options) : undefined;
1804
+ message.reservedRange = object.reservedRange?.map(e => DescriptorProto_ReservedRange.fromPartial(e)) || [];
1805
+ message.reservedName = object.reservedName?.map(e => e) || [];
1806
+ return message;
1807
+ }
1808
+
1809
+ };
1810
+
1811
+ function createBaseDescriptorProto_ExtensionRange(): DescriptorProto_ExtensionRange {
1812
+ return {
1813
+ start: 0,
1814
+ end: 0,
1815
+ options: undefined
1816
+ };
1817
+ }
1818
+
1819
+ export const DescriptorProto_ExtensionRange = {
1820
+ encode(message: DescriptorProto_ExtensionRange, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
1821
+ if (message.start !== 0) {
1822
+ writer.uint32(8).int32(message.start);
1823
+ }
1824
+
1825
+ if (message.end !== 0) {
1826
+ writer.uint32(16).int32(message.end);
1827
+ }
1828
+
1829
+ if (message.options !== undefined) {
1830
+ ExtensionRangeOptions.encode(message.options, writer.uint32(26).fork()).ldelim();
1831
+ }
1832
+
1833
+ return writer;
1834
+ },
1835
+
1836
+ decode(input: _m0.Reader | Uint8Array, length?: number): DescriptorProto_ExtensionRange {
1837
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
1838
+ let end = length === undefined ? reader.len : reader.pos + length;
1839
+ const message = createBaseDescriptorProto_ExtensionRange();
1840
+
1841
+ while (reader.pos < end) {
1842
+ const tag = reader.uint32();
1843
+
1844
+ switch (tag >>> 3) {
1845
+ case 1:
1846
+ message.start = reader.int32();
1847
+ break;
1848
+
1849
+ case 2:
1850
+ message.end = reader.int32();
1851
+ break;
1852
+
1853
+ case 3:
1854
+ message.options = ExtensionRangeOptions.decode(reader, reader.uint32());
1855
+ break;
1856
+
1857
+ default:
1858
+ reader.skipType(tag & 7);
1859
+ break;
1860
+ }
1861
+ }
1862
+
1863
+ return message;
1864
+ },
1865
+
1866
+ fromPartial(object: DeepPartial<DescriptorProto_ExtensionRange>): DescriptorProto_ExtensionRange {
1867
+ const message = createBaseDescriptorProto_ExtensionRange();
1868
+ message.start = object.start ?? 0;
1869
+ message.end = object.end ?? 0;
1870
+ message.options = object.options !== undefined && object.options !== null ? ExtensionRangeOptions.fromPartial(object.options) : undefined;
1871
+ return message;
1872
+ }
1873
+
1874
+ };
1875
+
1876
+ function createBaseDescriptorProto_ReservedRange(): DescriptorProto_ReservedRange {
1877
+ return {
1878
+ start: 0,
1879
+ end: 0
1880
+ };
1881
+ }
1882
+
1883
+ export const DescriptorProto_ReservedRange = {
1884
+ encode(message: DescriptorProto_ReservedRange, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
1885
+ if (message.start !== 0) {
1886
+ writer.uint32(8).int32(message.start);
1887
+ }
1888
+
1889
+ if (message.end !== 0) {
1890
+ writer.uint32(16).int32(message.end);
1891
+ }
1892
+
1893
+ return writer;
1894
+ },
1895
+
1896
+ decode(input: _m0.Reader | Uint8Array, length?: number): DescriptorProto_ReservedRange {
1897
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
1898
+ let end = length === undefined ? reader.len : reader.pos + length;
1899
+ const message = createBaseDescriptorProto_ReservedRange();
1900
+
1901
+ while (reader.pos < end) {
1902
+ const tag = reader.uint32();
1903
+
1904
+ switch (tag >>> 3) {
1905
+ case 1:
1906
+ message.start = reader.int32();
1907
+ break;
1908
+
1909
+ case 2:
1910
+ message.end = reader.int32();
1911
+ break;
1912
+
1913
+ default:
1914
+ reader.skipType(tag & 7);
1915
+ break;
1916
+ }
1917
+ }
1918
+
1919
+ return message;
1920
+ },
1921
+
1922
+ fromPartial(object: DeepPartial<DescriptorProto_ReservedRange>): DescriptorProto_ReservedRange {
1923
+ const message = createBaseDescriptorProto_ReservedRange();
1924
+ message.start = object.start ?? 0;
1925
+ message.end = object.end ?? 0;
1926
+ return message;
1927
+ }
1928
+
1929
+ };
1930
+
1931
+ function createBaseExtensionRangeOptions(): ExtensionRangeOptions {
1932
+ return {
1933
+ uninterpretedOption: []
1934
+ };
1935
+ }
1936
+
1937
+ export const ExtensionRangeOptions = {
1938
+ encode(message: ExtensionRangeOptions, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
1939
+ for (const v of message.uninterpretedOption) {
1940
+ UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim();
1941
+ }
1942
+
1943
+ return writer;
1944
+ },
1945
+
1946
+ decode(input: _m0.Reader | Uint8Array, length?: number): ExtensionRangeOptions {
1947
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
1948
+ let end = length === undefined ? reader.len : reader.pos + length;
1949
+ const message = createBaseExtensionRangeOptions();
1950
+
1951
+ while (reader.pos < end) {
1952
+ const tag = reader.uint32();
1953
+
1954
+ switch (tag >>> 3) {
1955
+ case 999:
1956
+ message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32()));
1957
+ break;
1958
+
1959
+ default:
1960
+ reader.skipType(tag & 7);
1961
+ break;
1962
+ }
1963
+ }
1964
+
1965
+ return message;
1966
+ },
1967
+
1968
+ fromPartial(object: DeepPartial<ExtensionRangeOptions>): ExtensionRangeOptions {
1969
+ const message = createBaseExtensionRangeOptions();
1970
+ message.uninterpretedOption = object.uninterpretedOption?.map(e => UninterpretedOption.fromPartial(e)) || [];
1971
+ return message;
1972
+ }
1973
+
1974
+ };
1975
+
1976
+ function createBaseFieldDescriptorProto(): FieldDescriptorProto {
1977
+ return {
1978
+ name: "",
1979
+ number: 0,
1980
+ label: 1,
1981
+ type: 1,
1982
+ typeName: "",
1983
+ extendee: "",
1984
+ defaultValue: "",
1985
+ oneofIndex: 0,
1986
+ jsonName: "",
1987
+ options: undefined
1988
+ };
1989
+ }
1990
+
1991
+ export const FieldDescriptorProto = {
1992
+ encode(message: FieldDescriptorProto, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
1993
+ if (message.name !== "") {
1994
+ writer.uint32(10).string(message.name);
1995
+ }
1996
+
1997
+ if (message.number !== 0) {
1998
+ writer.uint32(24).int32(message.number);
1999
+ }
2000
+
2001
+ if (message.label !== 1) {
2002
+ writer.uint32(32).int32(message.label);
2003
+ }
2004
+
2005
+ if (message.type !== 1) {
2006
+ writer.uint32(40).int32(message.type);
2007
+ }
2008
+
2009
+ if (message.typeName !== "") {
2010
+ writer.uint32(50).string(message.typeName);
2011
+ }
2012
+
2013
+ if (message.extendee !== "") {
2014
+ writer.uint32(18).string(message.extendee);
2015
+ }
2016
+
2017
+ if (message.defaultValue !== "") {
2018
+ writer.uint32(58).string(message.defaultValue);
2019
+ }
2020
+
2021
+ if (message.oneofIndex !== 0) {
2022
+ writer.uint32(72).int32(message.oneofIndex);
2023
+ }
2024
+
2025
+ if (message.jsonName !== "") {
2026
+ writer.uint32(82).string(message.jsonName);
2027
+ }
2028
+
2029
+ if (message.options !== undefined) {
2030
+ FieldOptions.encode(message.options, writer.uint32(66).fork()).ldelim();
2031
+ }
2032
+
2033
+ return writer;
2034
+ },
2035
+
2036
+ decode(input: _m0.Reader | Uint8Array, length?: number): FieldDescriptorProto {
2037
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
2038
+ let end = length === undefined ? reader.len : reader.pos + length;
2039
+ const message = createBaseFieldDescriptorProto();
2040
+
2041
+ while (reader.pos < end) {
2042
+ const tag = reader.uint32();
2043
+
2044
+ switch (tag >>> 3) {
2045
+ case 1:
2046
+ message.name = reader.string();
2047
+ break;
2048
+
2049
+ case 3:
2050
+ message.number = reader.int32();
2051
+ break;
2052
+
2053
+ case 4:
2054
+ message.label = (reader.int32() as any);
2055
+ break;
2056
+
2057
+ case 5:
2058
+ message.type = (reader.int32() as any);
2059
+ break;
2060
+
2061
+ case 6:
2062
+ message.typeName = reader.string();
2063
+ break;
2064
+
2065
+ case 2:
2066
+ message.extendee = reader.string();
2067
+ break;
2068
+
2069
+ case 7:
2070
+ message.defaultValue = reader.string();
2071
+ break;
2072
+
2073
+ case 9:
2074
+ message.oneofIndex = reader.int32();
2075
+ break;
2076
+
2077
+ case 10:
2078
+ message.jsonName = reader.string();
2079
+ break;
2080
+
2081
+ case 8:
2082
+ message.options = FieldOptions.decode(reader, reader.uint32());
2083
+ break;
2084
+
2085
+ default:
2086
+ reader.skipType(tag & 7);
2087
+ break;
2088
+ }
2089
+ }
2090
+
2091
+ return message;
2092
+ },
2093
+
2094
+ fromPartial(object: DeepPartial<FieldDescriptorProto>): FieldDescriptorProto {
2095
+ const message = createBaseFieldDescriptorProto();
2096
+ message.name = object.name ?? "";
2097
+ message.number = object.number ?? 0;
2098
+ message.label = object.label ?? 1;
2099
+ message.type = object.type ?? 1;
2100
+ message.typeName = object.typeName ?? "";
2101
+ message.extendee = object.extendee ?? "";
2102
+ message.defaultValue = object.defaultValue ?? "";
2103
+ message.oneofIndex = object.oneofIndex ?? 0;
2104
+ message.jsonName = object.jsonName ?? "";
2105
+ message.options = object.options !== undefined && object.options !== null ? FieldOptions.fromPartial(object.options) : undefined;
2106
+ return message;
2107
+ }
2108
+
2109
+ };
2110
+
2111
+ function createBaseOneofDescriptorProto(): OneofDescriptorProto {
2112
+ return {
2113
+ name: "",
2114
+ options: undefined
2115
+ };
2116
+ }
2117
+
2118
+ export const OneofDescriptorProto = {
2119
+ encode(message: OneofDescriptorProto, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
2120
+ if (message.name !== "") {
2121
+ writer.uint32(10).string(message.name);
2122
+ }
2123
+
2124
+ if (message.options !== undefined) {
2125
+ OneofOptions.encode(message.options, writer.uint32(18).fork()).ldelim();
2126
+ }
2127
+
2128
+ return writer;
2129
+ },
2130
+
2131
+ decode(input: _m0.Reader | Uint8Array, length?: number): OneofDescriptorProto {
2132
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
2133
+ let end = length === undefined ? reader.len : reader.pos + length;
2134
+ const message = createBaseOneofDescriptorProto();
2135
+
2136
+ while (reader.pos < end) {
2137
+ const tag = reader.uint32();
2138
+
2139
+ switch (tag >>> 3) {
2140
+ case 1:
2141
+ message.name = reader.string();
2142
+ break;
2143
+
2144
+ case 2:
2145
+ message.options = OneofOptions.decode(reader, reader.uint32());
2146
+ break;
2147
+
2148
+ default:
2149
+ reader.skipType(tag & 7);
2150
+ break;
2151
+ }
2152
+ }
2153
+
2154
+ return message;
2155
+ },
2156
+
2157
+ fromPartial(object: DeepPartial<OneofDescriptorProto>): OneofDescriptorProto {
2158
+ const message = createBaseOneofDescriptorProto();
2159
+ message.name = object.name ?? "";
2160
+ message.options = object.options !== undefined && object.options !== null ? OneofOptions.fromPartial(object.options) : undefined;
2161
+ return message;
2162
+ }
2163
+
2164
+ };
2165
+
2166
+ function createBaseEnumDescriptorProto(): EnumDescriptorProto {
2167
+ return {
2168
+ name: "",
2169
+ value: [],
2170
+ options: undefined,
2171
+ reservedRange: [],
2172
+ reservedName: []
2173
+ };
2174
+ }
2175
+
2176
+ export const EnumDescriptorProto = {
2177
+ encode(message: EnumDescriptorProto, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
2178
+ if (message.name !== "") {
2179
+ writer.uint32(10).string(message.name);
2180
+ }
2181
+
2182
+ for (const v of message.value) {
2183
+ EnumValueDescriptorProto.encode(v!, writer.uint32(18).fork()).ldelim();
2184
+ }
2185
+
2186
+ if (message.options !== undefined) {
2187
+ EnumOptions.encode(message.options, writer.uint32(26).fork()).ldelim();
2188
+ }
2189
+
2190
+ for (const v of message.reservedRange) {
2191
+ EnumDescriptorProto_EnumReservedRange.encode(v!, writer.uint32(34).fork()).ldelim();
2192
+ }
2193
+
2194
+ for (const v of message.reservedName) {
2195
+ writer.uint32(42).string(v!);
2196
+ }
2197
+
2198
+ return writer;
2199
+ },
2200
+
2201
+ decode(input: _m0.Reader | Uint8Array, length?: number): EnumDescriptorProto {
2202
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
2203
+ let end = length === undefined ? reader.len : reader.pos + length;
2204
+ const message = createBaseEnumDescriptorProto();
2205
+
2206
+ while (reader.pos < end) {
2207
+ const tag = reader.uint32();
2208
+
2209
+ switch (tag >>> 3) {
2210
+ case 1:
2211
+ message.name = reader.string();
2212
+ break;
2213
+
2214
+ case 2:
2215
+ message.value.push(EnumValueDescriptorProto.decode(reader, reader.uint32()));
2216
+ break;
2217
+
2218
+ case 3:
2219
+ message.options = EnumOptions.decode(reader, reader.uint32());
2220
+ break;
2221
+
2222
+ case 4:
2223
+ message.reservedRange.push(EnumDescriptorProto_EnumReservedRange.decode(reader, reader.uint32()));
2224
+ break;
2225
+
2226
+ case 5:
2227
+ message.reservedName.push(reader.string());
2228
+ break;
2229
+
2230
+ default:
2231
+ reader.skipType(tag & 7);
2232
+ break;
2233
+ }
2234
+ }
2235
+
2236
+ return message;
2237
+ },
2238
+
2239
+ fromPartial(object: DeepPartial<EnumDescriptorProto>): EnumDescriptorProto {
2240
+ const message = createBaseEnumDescriptorProto();
2241
+ message.name = object.name ?? "";
2242
+ message.value = object.value?.map(e => EnumValueDescriptorProto.fromPartial(e)) || [];
2243
+ message.options = object.options !== undefined && object.options !== null ? EnumOptions.fromPartial(object.options) : undefined;
2244
+ message.reservedRange = object.reservedRange?.map(e => EnumDescriptorProto_EnumReservedRange.fromPartial(e)) || [];
2245
+ message.reservedName = object.reservedName?.map(e => e) || [];
2246
+ return message;
2247
+ }
2248
+
2249
+ };
2250
+
2251
+ function createBaseEnumDescriptorProto_EnumReservedRange(): EnumDescriptorProto_EnumReservedRange {
2252
+ return {
2253
+ start: 0,
2254
+ end: 0
2255
+ };
2256
+ }
2257
+
2258
+ export const EnumDescriptorProto_EnumReservedRange = {
2259
+ encode(message: EnumDescriptorProto_EnumReservedRange, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
2260
+ if (message.start !== 0) {
2261
+ writer.uint32(8).int32(message.start);
2262
+ }
2263
+
2264
+ if (message.end !== 0) {
2265
+ writer.uint32(16).int32(message.end);
2266
+ }
2267
+
2268
+ return writer;
2269
+ },
2270
+
2271
+ decode(input: _m0.Reader | Uint8Array, length?: number): EnumDescriptorProto_EnumReservedRange {
2272
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
2273
+ let end = length === undefined ? reader.len : reader.pos + length;
2274
+ const message = createBaseEnumDescriptorProto_EnumReservedRange();
2275
+
2276
+ while (reader.pos < end) {
2277
+ const tag = reader.uint32();
2278
+
2279
+ switch (tag >>> 3) {
2280
+ case 1:
2281
+ message.start = reader.int32();
2282
+ break;
2283
+
2284
+ case 2:
2285
+ message.end = reader.int32();
2286
+ break;
2287
+
2288
+ default:
2289
+ reader.skipType(tag & 7);
2290
+ break;
2291
+ }
2292
+ }
2293
+
2294
+ return message;
2295
+ },
2296
+
2297
+ fromPartial(object: DeepPartial<EnumDescriptorProto_EnumReservedRange>): EnumDescriptorProto_EnumReservedRange {
2298
+ const message = createBaseEnumDescriptorProto_EnumReservedRange();
2299
+ message.start = object.start ?? 0;
2300
+ message.end = object.end ?? 0;
2301
+ return message;
2302
+ }
2303
+
2304
+ };
2305
+
2306
+ function createBaseEnumValueDescriptorProto(): EnumValueDescriptorProto {
2307
+ return {
2308
+ name: "",
2309
+ number: 0,
2310
+ options: undefined
2311
+ };
2312
+ }
2313
+
2314
+ export const EnumValueDescriptorProto = {
2315
+ encode(message: EnumValueDescriptorProto, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
2316
+ if (message.name !== "") {
2317
+ writer.uint32(10).string(message.name);
2318
+ }
2319
+
2320
+ if (message.number !== 0) {
2321
+ writer.uint32(16).int32(message.number);
2322
+ }
2323
+
2324
+ if (message.options !== undefined) {
2325
+ EnumValueOptions.encode(message.options, writer.uint32(26).fork()).ldelim();
2326
+ }
2327
+
2328
+ return writer;
2329
+ },
2330
+
2331
+ decode(input: _m0.Reader | Uint8Array, length?: number): EnumValueDescriptorProto {
2332
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
2333
+ let end = length === undefined ? reader.len : reader.pos + length;
2334
+ const message = createBaseEnumValueDescriptorProto();
2335
+
2336
+ while (reader.pos < end) {
2337
+ const tag = reader.uint32();
2338
+
2339
+ switch (tag >>> 3) {
2340
+ case 1:
2341
+ message.name = reader.string();
2342
+ break;
2343
+
2344
+ case 2:
2345
+ message.number = reader.int32();
2346
+ break;
2347
+
2348
+ case 3:
2349
+ message.options = EnumValueOptions.decode(reader, reader.uint32());
2350
+ break;
2351
+
2352
+ default:
2353
+ reader.skipType(tag & 7);
2354
+ break;
2355
+ }
2356
+ }
2357
+
2358
+ return message;
2359
+ },
2360
+
2361
+ fromPartial(object: DeepPartial<EnumValueDescriptorProto>): EnumValueDescriptorProto {
2362
+ const message = createBaseEnumValueDescriptorProto();
2363
+ message.name = object.name ?? "";
2364
+ message.number = object.number ?? 0;
2365
+ message.options = object.options !== undefined && object.options !== null ? EnumValueOptions.fromPartial(object.options) : undefined;
2366
+ return message;
2367
+ }
2368
+
2369
+ };
2370
+
2371
+ function createBaseServiceDescriptorProto(): ServiceDescriptorProto {
2372
+ return {
2373
+ name: "",
2374
+ method: [],
2375
+ options: undefined
2376
+ };
2377
+ }
2378
+
2379
+ export const ServiceDescriptorProto = {
2380
+ encode(message: ServiceDescriptorProto, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
2381
+ if (message.name !== "") {
2382
+ writer.uint32(10).string(message.name);
2383
+ }
2384
+
2385
+ for (const v of message.method) {
2386
+ MethodDescriptorProto.encode(v!, writer.uint32(18).fork()).ldelim();
2387
+ }
2388
+
2389
+ if (message.options !== undefined) {
2390
+ ServiceOptions.encode(message.options, writer.uint32(26).fork()).ldelim();
2391
+ }
2392
+
2393
+ return writer;
2394
+ },
2395
+
2396
+ decode(input: _m0.Reader | Uint8Array, length?: number): ServiceDescriptorProto {
2397
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
2398
+ let end = length === undefined ? reader.len : reader.pos + length;
2399
+ const message = createBaseServiceDescriptorProto();
2400
+
2401
+ while (reader.pos < end) {
2402
+ const tag = reader.uint32();
2403
+
2404
+ switch (tag >>> 3) {
2405
+ case 1:
2406
+ message.name = reader.string();
2407
+ break;
2408
+
2409
+ case 2:
2410
+ message.method.push(MethodDescriptorProto.decode(reader, reader.uint32()));
2411
+ break;
2412
+
2413
+ case 3:
2414
+ message.options = ServiceOptions.decode(reader, reader.uint32());
2415
+ break;
2416
+
2417
+ default:
2418
+ reader.skipType(tag & 7);
2419
+ break;
2420
+ }
2421
+ }
2422
+
2423
+ return message;
2424
+ },
2425
+
2426
+ fromPartial(object: DeepPartial<ServiceDescriptorProto>): ServiceDescriptorProto {
2427
+ const message = createBaseServiceDescriptorProto();
2428
+ message.name = object.name ?? "";
2429
+ message.method = object.method?.map(e => MethodDescriptorProto.fromPartial(e)) || [];
2430
+ message.options = object.options !== undefined && object.options !== null ? ServiceOptions.fromPartial(object.options) : undefined;
2431
+ return message;
2432
+ }
2433
+
2434
+ };
2435
+
2436
+ function createBaseMethodDescriptorProto(): MethodDescriptorProto {
2437
+ return {
2438
+ name: "",
2439
+ inputType: "",
2440
+ outputType: "",
2441
+ options: undefined,
2442
+ clientStreaming: false,
2443
+ serverStreaming: false
2444
+ };
2445
+ }
2446
+
2447
+ export const MethodDescriptorProto = {
2448
+ encode(message: MethodDescriptorProto, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
2449
+ if (message.name !== "") {
2450
+ writer.uint32(10).string(message.name);
2451
+ }
2452
+
2453
+ if (message.inputType !== "") {
2454
+ writer.uint32(18).string(message.inputType);
2455
+ }
2456
+
2457
+ if (message.outputType !== "") {
2458
+ writer.uint32(26).string(message.outputType);
2459
+ }
2460
+
2461
+ if (message.options !== undefined) {
2462
+ MethodOptions.encode(message.options, writer.uint32(34).fork()).ldelim();
2463
+ }
2464
+
2465
+ if (message.clientStreaming === true) {
2466
+ writer.uint32(40).bool(message.clientStreaming);
2467
+ }
2468
+
2469
+ if (message.serverStreaming === true) {
2470
+ writer.uint32(48).bool(message.serverStreaming);
2471
+ }
2472
+
2473
+ return writer;
2474
+ },
2475
+
2476
+ decode(input: _m0.Reader | Uint8Array, length?: number): MethodDescriptorProto {
2477
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
2478
+ let end = length === undefined ? reader.len : reader.pos + length;
2479
+ const message = createBaseMethodDescriptorProto();
2480
+
2481
+ while (reader.pos < end) {
2482
+ const tag = reader.uint32();
2483
+
2484
+ switch (tag >>> 3) {
2485
+ case 1:
2486
+ message.name = reader.string();
2487
+ break;
2488
+
2489
+ case 2:
2490
+ message.inputType = reader.string();
2491
+ break;
2492
+
2493
+ case 3:
2494
+ message.outputType = reader.string();
2495
+ break;
2496
+
2497
+ case 4:
2498
+ message.options = MethodOptions.decode(reader, reader.uint32());
2499
+ break;
2500
+
2501
+ case 5:
2502
+ message.clientStreaming = reader.bool();
2503
+ break;
2504
+
2505
+ case 6:
2506
+ message.serverStreaming = reader.bool();
2507
+ break;
2508
+
2509
+ default:
2510
+ reader.skipType(tag & 7);
2511
+ break;
2512
+ }
2513
+ }
2514
+
2515
+ return message;
2516
+ },
2517
+
2518
+ fromPartial(object: DeepPartial<MethodDescriptorProto>): MethodDescriptorProto {
2519
+ const message = createBaseMethodDescriptorProto();
2520
+ message.name = object.name ?? "";
2521
+ message.inputType = object.inputType ?? "";
2522
+ message.outputType = object.outputType ?? "";
2523
+ message.options = object.options !== undefined && object.options !== null ? MethodOptions.fromPartial(object.options) : undefined;
2524
+ message.clientStreaming = object.clientStreaming ?? false;
2525
+ message.serverStreaming = object.serverStreaming ?? false;
2526
+ return message;
2527
+ }
2528
+
2529
+ };
2530
+
2531
+ function createBaseFileOptions(): FileOptions {
2532
+ return {
2533
+ javaPackage: "",
2534
+ javaOuterClassname: "",
2535
+ javaMultipleFiles: false,
2536
+ javaGenerateEqualsAndHash: false,
2537
+ javaStringCheckUtf8: false,
2538
+ optimizeFor: 1,
2539
+ goPackage: "",
2540
+ ccGenericServices: false,
2541
+ javaGenericServices: false,
2542
+ pyGenericServices: false,
2543
+ phpGenericServices: false,
2544
+ deprecated: false,
2545
+ ccEnableArenas: false,
2546
+ objcClassPrefix: "",
2547
+ csharpNamespace: "",
2548
+ swiftPrefix: "",
2549
+ phpClassPrefix: "",
2550
+ phpNamespace: "",
2551
+ phpMetadataNamespace: "",
2552
+ rubyPackage: "",
2553
+ uninterpretedOption: []
2554
+ };
2555
+ }
2556
+
2557
+ export const FileOptions = {
2558
+ encode(message: FileOptions, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
2559
+ if (message.javaPackage !== "") {
2560
+ writer.uint32(10).string(message.javaPackage);
2561
+ }
2562
+
2563
+ if (message.javaOuterClassname !== "") {
2564
+ writer.uint32(66).string(message.javaOuterClassname);
2565
+ }
2566
+
2567
+ if (message.javaMultipleFiles === true) {
2568
+ writer.uint32(80).bool(message.javaMultipleFiles);
2569
+ }
2570
+
2571
+ if (message.javaGenerateEqualsAndHash === true) {
2572
+ writer.uint32(160).bool(message.javaGenerateEqualsAndHash);
2573
+ }
2574
+
2575
+ if (message.javaStringCheckUtf8 === true) {
2576
+ writer.uint32(216).bool(message.javaStringCheckUtf8);
2577
+ }
2578
+
2579
+ if (message.optimizeFor !== 1) {
2580
+ writer.uint32(72).int32(message.optimizeFor);
2581
+ }
2582
+
2583
+ if (message.goPackage !== "") {
2584
+ writer.uint32(90).string(message.goPackage);
2585
+ }
2586
+
2587
+ if (message.ccGenericServices === true) {
2588
+ writer.uint32(128).bool(message.ccGenericServices);
2589
+ }
2590
+
2591
+ if (message.javaGenericServices === true) {
2592
+ writer.uint32(136).bool(message.javaGenericServices);
2593
+ }
2594
+
2595
+ if (message.pyGenericServices === true) {
2596
+ writer.uint32(144).bool(message.pyGenericServices);
2597
+ }
2598
+
2599
+ if (message.phpGenericServices === true) {
2600
+ writer.uint32(336).bool(message.phpGenericServices);
2601
+ }
2602
+
2603
+ if (message.deprecated === true) {
2604
+ writer.uint32(184).bool(message.deprecated);
2605
+ }
2606
+
2607
+ if (message.ccEnableArenas === true) {
2608
+ writer.uint32(248).bool(message.ccEnableArenas);
2609
+ }
2610
+
2611
+ if (message.objcClassPrefix !== "") {
2612
+ writer.uint32(290).string(message.objcClassPrefix);
2613
+ }
2614
+
2615
+ if (message.csharpNamespace !== "") {
2616
+ writer.uint32(298).string(message.csharpNamespace);
2617
+ }
2618
+
2619
+ if (message.swiftPrefix !== "") {
2620
+ writer.uint32(314).string(message.swiftPrefix);
2621
+ }
2622
+
2623
+ if (message.phpClassPrefix !== "") {
2624
+ writer.uint32(322).string(message.phpClassPrefix);
2625
+ }
2626
+
2627
+ if (message.phpNamespace !== "") {
2628
+ writer.uint32(330).string(message.phpNamespace);
2629
+ }
2630
+
2631
+ if (message.phpMetadataNamespace !== "") {
2632
+ writer.uint32(354).string(message.phpMetadataNamespace);
2633
+ }
2634
+
2635
+ if (message.rubyPackage !== "") {
2636
+ writer.uint32(362).string(message.rubyPackage);
2637
+ }
2638
+
2639
+ for (const v of message.uninterpretedOption) {
2640
+ UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim();
2641
+ }
2642
+
2643
+ return writer;
2644
+ },
2645
+
2646
+ decode(input: _m0.Reader | Uint8Array, length?: number): FileOptions {
2647
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
2648
+ let end = length === undefined ? reader.len : reader.pos + length;
2649
+ const message = createBaseFileOptions();
2650
+
2651
+ while (reader.pos < end) {
2652
+ const tag = reader.uint32();
2653
+
2654
+ switch (tag >>> 3) {
2655
+ case 1:
2656
+ message.javaPackage = reader.string();
2657
+ break;
2658
+
2659
+ case 8:
2660
+ message.javaOuterClassname = reader.string();
2661
+ break;
2662
+
2663
+ case 10:
2664
+ message.javaMultipleFiles = reader.bool();
2665
+ break;
2666
+
2667
+ case 20:
2668
+ message.javaGenerateEqualsAndHash = reader.bool();
2669
+ break;
2670
+
2671
+ case 27:
2672
+ message.javaStringCheckUtf8 = reader.bool();
2673
+ break;
2674
+
2675
+ case 9:
2676
+ message.optimizeFor = (reader.int32() as any);
2677
+ break;
2678
+
2679
+ case 11:
2680
+ message.goPackage = reader.string();
2681
+ break;
2682
+
2683
+ case 16:
2684
+ message.ccGenericServices = reader.bool();
2685
+ break;
2686
+
2687
+ case 17:
2688
+ message.javaGenericServices = reader.bool();
2689
+ break;
2690
+
2691
+ case 18:
2692
+ message.pyGenericServices = reader.bool();
2693
+ break;
2694
+
2695
+ case 42:
2696
+ message.phpGenericServices = reader.bool();
2697
+ break;
2698
+
2699
+ case 23:
2700
+ message.deprecated = reader.bool();
2701
+ break;
2702
+
2703
+ case 31:
2704
+ message.ccEnableArenas = reader.bool();
2705
+ break;
2706
+
2707
+ case 36:
2708
+ message.objcClassPrefix = reader.string();
2709
+ break;
2710
+
2711
+ case 37:
2712
+ message.csharpNamespace = reader.string();
2713
+ break;
2714
+
2715
+ case 39:
2716
+ message.swiftPrefix = reader.string();
2717
+ break;
2718
+
2719
+ case 40:
2720
+ message.phpClassPrefix = reader.string();
2721
+ break;
2722
+
2723
+ case 41:
2724
+ message.phpNamespace = reader.string();
2725
+ break;
2726
+
2727
+ case 44:
2728
+ message.phpMetadataNamespace = reader.string();
2729
+ break;
2730
+
2731
+ case 45:
2732
+ message.rubyPackage = reader.string();
2733
+ break;
2734
+
2735
+ case 999:
2736
+ message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32()));
2737
+ break;
2738
+
2739
+ default:
2740
+ reader.skipType(tag & 7);
2741
+ break;
2742
+ }
2743
+ }
2744
+
2745
+ return message;
2746
+ },
2747
+
2748
+ fromPartial(object: DeepPartial<FileOptions>): FileOptions {
2749
+ const message = createBaseFileOptions();
2750
+ message.javaPackage = object.javaPackage ?? "";
2751
+ message.javaOuterClassname = object.javaOuterClassname ?? "";
2752
+ message.javaMultipleFiles = object.javaMultipleFiles ?? false;
2753
+ message.javaGenerateEqualsAndHash = object.javaGenerateEqualsAndHash ?? false;
2754
+ message.javaStringCheckUtf8 = object.javaStringCheckUtf8 ?? false;
2755
+ message.optimizeFor = object.optimizeFor ?? 1;
2756
+ message.goPackage = object.goPackage ?? "";
2757
+ message.ccGenericServices = object.ccGenericServices ?? false;
2758
+ message.javaGenericServices = object.javaGenericServices ?? false;
2759
+ message.pyGenericServices = object.pyGenericServices ?? false;
2760
+ message.phpGenericServices = object.phpGenericServices ?? false;
2761
+ message.deprecated = object.deprecated ?? false;
2762
+ message.ccEnableArenas = object.ccEnableArenas ?? false;
2763
+ message.objcClassPrefix = object.objcClassPrefix ?? "";
2764
+ message.csharpNamespace = object.csharpNamespace ?? "";
2765
+ message.swiftPrefix = object.swiftPrefix ?? "";
2766
+ message.phpClassPrefix = object.phpClassPrefix ?? "";
2767
+ message.phpNamespace = object.phpNamespace ?? "";
2768
+ message.phpMetadataNamespace = object.phpMetadataNamespace ?? "";
2769
+ message.rubyPackage = object.rubyPackage ?? "";
2770
+ message.uninterpretedOption = object.uninterpretedOption?.map(e => UninterpretedOption.fromPartial(e)) || [];
2771
+ return message;
2772
+ }
2773
+
2774
+ };
2775
+
2776
+ function createBaseMessageOptions(): MessageOptions {
2777
+ return {
2778
+ messageSetWireFormat: false,
2779
+ noStandardDescriptorAccessor: false,
2780
+ deprecated: false,
2781
+ mapEntry: false,
2782
+ uninterpretedOption: []
2783
+ };
2784
+ }
2785
+
2786
+ export const MessageOptions = {
2787
+ encode(message: MessageOptions, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
2788
+ if (message.messageSetWireFormat === true) {
2789
+ writer.uint32(8).bool(message.messageSetWireFormat);
2790
+ }
2791
+
2792
+ if (message.noStandardDescriptorAccessor === true) {
2793
+ writer.uint32(16).bool(message.noStandardDescriptorAccessor);
2794
+ }
2795
+
2796
+ if (message.deprecated === true) {
2797
+ writer.uint32(24).bool(message.deprecated);
2798
+ }
2799
+
2800
+ if (message.mapEntry === true) {
2801
+ writer.uint32(56).bool(message.mapEntry);
2802
+ }
2803
+
2804
+ for (const v of message.uninterpretedOption) {
2805
+ UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim();
2806
+ }
2807
+
2808
+ return writer;
2809
+ },
2810
+
2811
+ decode(input: _m0.Reader | Uint8Array, length?: number): MessageOptions {
2812
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
2813
+ let end = length === undefined ? reader.len : reader.pos + length;
2814
+ const message = createBaseMessageOptions();
2815
+
2816
+ while (reader.pos < end) {
2817
+ const tag = reader.uint32();
2818
+
2819
+ switch (tag >>> 3) {
2820
+ case 1:
2821
+ message.messageSetWireFormat = reader.bool();
2822
+ break;
2823
+
2824
+ case 2:
2825
+ message.noStandardDescriptorAccessor = reader.bool();
2826
+ break;
2827
+
2828
+ case 3:
2829
+ message.deprecated = reader.bool();
2830
+ break;
2831
+
2832
+ case 7:
2833
+ message.mapEntry = reader.bool();
2834
+ break;
2835
+
2836
+ case 999:
2837
+ message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32()));
2838
+ break;
2839
+
2840
+ default:
2841
+ reader.skipType(tag & 7);
2842
+ break;
2843
+ }
2844
+ }
2845
+
2846
+ return message;
2847
+ },
2848
+
2849
+ fromPartial(object: DeepPartial<MessageOptions>): MessageOptions {
2850
+ const message = createBaseMessageOptions();
2851
+ message.messageSetWireFormat = object.messageSetWireFormat ?? false;
2852
+ message.noStandardDescriptorAccessor = object.noStandardDescriptorAccessor ?? false;
2853
+ message.deprecated = object.deprecated ?? false;
2854
+ message.mapEntry = object.mapEntry ?? false;
2855
+ message.uninterpretedOption = object.uninterpretedOption?.map(e => UninterpretedOption.fromPartial(e)) || [];
2856
+ return message;
2857
+ }
2858
+
2859
+ };
2860
+
2861
+ function createBaseFieldOptions(): FieldOptions {
2862
+ return {
2863
+ ctype: 1,
2864
+ packed: false,
2865
+ jstype: 1,
2866
+ lazy: false,
2867
+ deprecated: false,
2868
+ weak: false,
2869
+ uninterpretedOption: []
2870
+ };
2871
+ }
2872
+
2873
+ export const FieldOptions = {
2874
+ encode(message: FieldOptions, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
2875
+ if (message.ctype !== 1) {
2876
+ writer.uint32(8).int32(message.ctype);
2877
+ }
2878
+
2879
+ if (message.packed === true) {
2880
+ writer.uint32(16).bool(message.packed);
2881
+ }
2882
+
2883
+ if (message.jstype !== 1) {
2884
+ writer.uint32(48).int32(message.jstype);
2885
+ }
2886
+
2887
+ if (message.lazy === true) {
2888
+ writer.uint32(40).bool(message.lazy);
2889
+ }
2890
+
2891
+ if (message.deprecated === true) {
2892
+ writer.uint32(24).bool(message.deprecated);
2893
+ }
2894
+
2895
+ if (message.weak === true) {
2896
+ writer.uint32(80).bool(message.weak);
2897
+ }
2898
+
2899
+ for (const v of message.uninterpretedOption) {
2900
+ UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim();
2901
+ }
2902
+
2903
+ return writer;
2904
+ },
2905
+
2906
+ decode(input: _m0.Reader | Uint8Array, length?: number): FieldOptions {
2907
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
2908
+ let end = length === undefined ? reader.len : reader.pos + length;
2909
+ const message = createBaseFieldOptions();
2910
+
2911
+ while (reader.pos < end) {
2912
+ const tag = reader.uint32();
2913
+
2914
+ switch (tag >>> 3) {
2915
+ case 1:
2916
+ message.ctype = (reader.int32() as any);
2917
+ break;
2918
+
2919
+ case 2:
2920
+ message.packed = reader.bool();
2921
+ break;
2922
+
2923
+ case 6:
2924
+ message.jstype = (reader.int32() as any);
2925
+ break;
2926
+
2927
+ case 5:
2928
+ message.lazy = reader.bool();
2929
+ break;
2930
+
2931
+ case 3:
2932
+ message.deprecated = reader.bool();
2933
+ break;
2934
+
2935
+ case 10:
2936
+ message.weak = reader.bool();
2937
+ break;
2938
+
2939
+ case 999:
2940
+ message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32()));
2941
+ break;
2942
+
2943
+ default:
2944
+ reader.skipType(tag & 7);
2945
+ break;
2946
+ }
2947
+ }
2948
+
2949
+ return message;
2950
+ },
2951
+
2952
+ fromPartial(object: DeepPartial<FieldOptions>): FieldOptions {
2953
+ const message = createBaseFieldOptions();
2954
+ message.ctype = object.ctype ?? 1;
2955
+ message.packed = object.packed ?? false;
2956
+ message.jstype = object.jstype ?? 1;
2957
+ message.lazy = object.lazy ?? false;
2958
+ message.deprecated = object.deprecated ?? false;
2959
+ message.weak = object.weak ?? false;
2960
+ message.uninterpretedOption = object.uninterpretedOption?.map(e => UninterpretedOption.fromPartial(e)) || [];
2961
+ return message;
2962
+ }
2963
+
2964
+ };
2965
+
2966
+ function createBaseOneofOptions(): OneofOptions {
2967
+ return {
2968
+ uninterpretedOption: []
2969
+ };
2970
+ }
2971
+
2972
+ export const OneofOptions = {
2973
+ encode(message: OneofOptions, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
2974
+ for (const v of message.uninterpretedOption) {
2975
+ UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim();
2976
+ }
2977
+
2978
+ return writer;
2979
+ },
2980
+
2981
+ decode(input: _m0.Reader | Uint8Array, length?: number): OneofOptions {
2982
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
2983
+ let end = length === undefined ? reader.len : reader.pos + length;
2984
+ const message = createBaseOneofOptions();
2985
+
2986
+ while (reader.pos < end) {
2987
+ const tag = reader.uint32();
2988
+
2989
+ switch (tag >>> 3) {
2990
+ case 999:
2991
+ message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32()));
2992
+ break;
2993
+
2994
+ default:
2995
+ reader.skipType(tag & 7);
2996
+ break;
2997
+ }
2998
+ }
2999
+
3000
+ return message;
3001
+ },
3002
+
3003
+ fromPartial(object: DeepPartial<OneofOptions>): OneofOptions {
3004
+ const message = createBaseOneofOptions();
3005
+ message.uninterpretedOption = object.uninterpretedOption?.map(e => UninterpretedOption.fromPartial(e)) || [];
3006
+ return message;
3007
+ }
3008
+
3009
+ };
3010
+
3011
+ function createBaseEnumOptions(): EnumOptions {
3012
+ return {
3013
+ allowAlias: false,
3014
+ deprecated: false,
3015
+ uninterpretedOption: []
3016
+ };
3017
+ }
3018
+
3019
+ export const EnumOptions = {
3020
+ encode(message: EnumOptions, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
3021
+ if (message.allowAlias === true) {
3022
+ writer.uint32(16).bool(message.allowAlias);
3023
+ }
3024
+
3025
+ if (message.deprecated === true) {
3026
+ writer.uint32(24).bool(message.deprecated);
3027
+ }
3028
+
3029
+ for (const v of message.uninterpretedOption) {
3030
+ UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim();
3031
+ }
3032
+
3033
+ return writer;
3034
+ },
3035
+
3036
+ decode(input: _m0.Reader | Uint8Array, length?: number): EnumOptions {
3037
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
3038
+ let end = length === undefined ? reader.len : reader.pos + length;
3039
+ const message = createBaseEnumOptions();
3040
+
3041
+ while (reader.pos < end) {
3042
+ const tag = reader.uint32();
3043
+
3044
+ switch (tag >>> 3) {
3045
+ case 2:
3046
+ message.allowAlias = reader.bool();
3047
+ break;
3048
+
3049
+ case 3:
3050
+ message.deprecated = reader.bool();
3051
+ break;
3052
+
3053
+ case 999:
3054
+ message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32()));
3055
+ break;
3056
+
3057
+ default:
3058
+ reader.skipType(tag & 7);
3059
+ break;
3060
+ }
3061
+ }
3062
+
3063
+ return message;
3064
+ },
3065
+
3066
+ fromPartial(object: DeepPartial<EnumOptions>): EnumOptions {
3067
+ const message = createBaseEnumOptions();
3068
+ message.allowAlias = object.allowAlias ?? false;
3069
+ message.deprecated = object.deprecated ?? false;
3070
+ message.uninterpretedOption = object.uninterpretedOption?.map(e => UninterpretedOption.fromPartial(e)) || [];
3071
+ return message;
3072
+ }
3073
+
3074
+ };
3075
+
3076
+ function createBaseEnumValueOptions(): EnumValueOptions {
3077
+ return {
3078
+ deprecated: false,
3079
+ uninterpretedOption: []
3080
+ };
3081
+ }
3082
+
3083
+ export const EnumValueOptions = {
3084
+ encode(message: EnumValueOptions, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
3085
+ if (message.deprecated === true) {
3086
+ writer.uint32(8).bool(message.deprecated);
3087
+ }
3088
+
3089
+ for (const v of message.uninterpretedOption) {
3090
+ UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim();
3091
+ }
3092
+
3093
+ return writer;
3094
+ },
3095
+
3096
+ decode(input: _m0.Reader | Uint8Array, length?: number): EnumValueOptions {
3097
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
3098
+ let end = length === undefined ? reader.len : reader.pos + length;
3099
+ const message = createBaseEnumValueOptions();
3100
+
3101
+ while (reader.pos < end) {
3102
+ const tag = reader.uint32();
3103
+
3104
+ switch (tag >>> 3) {
3105
+ case 1:
3106
+ message.deprecated = reader.bool();
3107
+ break;
3108
+
3109
+ case 999:
3110
+ message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32()));
3111
+ break;
3112
+
3113
+ default:
3114
+ reader.skipType(tag & 7);
3115
+ break;
3116
+ }
3117
+ }
3118
+
3119
+ return message;
3120
+ },
3121
+
3122
+ fromPartial(object: DeepPartial<EnumValueOptions>): EnumValueOptions {
3123
+ const message = createBaseEnumValueOptions();
3124
+ message.deprecated = object.deprecated ?? false;
3125
+ message.uninterpretedOption = object.uninterpretedOption?.map(e => UninterpretedOption.fromPartial(e)) || [];
3126
+ return message;
3127
+ }
3128
+
3129
+ };
3130
+
3131
+ function createBaseServiceOptions(): ServiceOptions {
3132
+ return {
3133
+ deprecated: false,
3134
+ uninterpretedOption: []
3135
+ };
3136
+ }
3137
+
3138
+ export const ServiceOptions = {
3139
+ encode(message: ServiceOptions, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
3140
+ if (message.deprecated === true) {
3141
+ writer.uint32(264).bool(message.deprecated);
3142
+ }
3143
+
3144
+ for (const v of message.uninterpretedOption) {
3145
+ UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim();
3146
+ }
3147
+
3148
+ return writer;
3149
+ },
3150
+
3151
+ decode(input: _m0.Reader | Uint8Array, length?: number): ServiceOptions {
3152
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
3153
+ let end = length === undefined ? reader.len : reader.pos + length;
3154
+ const message = createBaseServiceOptions();
3155
+
3156
+ while (reader.pos < end) {
3157
+ const tag = reader.uint32();
3158
+
3159
+ switch (tag >>> 3) {
3160
+ case 33:
3161
+ message.deprecated = reader.bool();
3162
+ break;
3163
+
3164
+ case 999:
3165
+ message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32()));
3166
+ break;
3167
+
3168
+ default:
3169
+ reader.skipType(tag & 7);
3170
+ break;
3171
+ }
3172
+ }
3173
+
3174
+ return message;
3175
+ },
3176
+
3177
+ fromPartial(object: DeepPartial<ServiceOptions>): ServiceOptions {
3178
+ const message = createBaseServiceOptions();
3179
+ message.deprecated = object.deprecated ?? false;
3180
+ message.uninterpretedOption = object.uninterpretedOption?.map(e => UninterpretedOption.fromPartial(e)) || [];
3181
+ return message;
3182
+ }
3183
+
3184
+ };
3185
+
3186
+ function createBaseMethodOptions(): MethodOptions {
3187
+ return {
3188
+ deprecated: false,
3189
+ idempotencyLevel: 1,
3190
+ uninterpretedOption: []
3191
+ };
3192
+ }
3193
+
3194
+ export const MethodOptions = {
3195
+ encode(message: MethodOptions, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
3196
+ if (message.deprecated === true) {
3197
+ writer.uint32(264).bool(message.deprecated);
3198
+ }
3199
+
3200
+ if (message.idempotencyLevel !== 1) {
3201
+ writer.uint32(272).int32(message.idempotencyLevel);
3202
+ }
3203
+
3204
+ for (const v of message.uninterpretedOption) {
3205
+ UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim();
3206
+ }
3207
+
3208
+ return writer;
3209
+ },
3210
+
3211
+ decode(input: _m0.Reader | Uint8Array, length?: number): MethodOptions {
3212
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
3213
+ let end = length === undefined ? reader.len : reader.pos + length;
3214
+ const message = createBaseMethodOptions();
3215
+
3216
+ while (reader.pos < end) {
3217
+ const tag = reader.uint32();
3218
+
3219
+ switch (tag >>> 3) {
3220
+ case 33:
3221
+ message.deprecated = reader.bool();
3222
+ break;
3223
+
3224
+ case 34:
3225
+ message.idempotencyLevel = (reader.int32() as any);
3226
+ break;
3227
+
3228
+ case 999:
3229
+ message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32()));
3230
+ break;
3231
+
3232
+ default:
3233
+ reader.skipType(tag & 7);
3234
+ break;
3235
+ }
3236
+ }
3237
+
3238
+ return message;
3239
+ },
3240
+
3241
+ fromPartial(object: DeepPartial<MethodOptions>): MethodOptions {
3242
+ const message = createBaseMethodOptions();
3243
+ message.deprecated = object.deprecated ?? false;
3244
+ message.idempotencyLevel = object.idempotencyLevel ?? 1;
3245
+ message.uninterpretedOption = object.uninterpretedOption?.map(e => UninterpretedOption.fromPartial(e)) || [];
3246
+ return message;
3247
+ }
3248
+
3249
+ };
3250
+
3251
+ function createBaseUninterpretedOption(): UninterpretedOption {
3252
+ return {
3253
+ name: [],
3254
+ identifierValue: "",
3255
+ positiveIntValue: Long.UZERO,
3256
+ negativeIntValue: Long.ZERO,
3257
+ doubleValue: 0,
3258
+ stringValue: new Uint8Array(),
3259
+ aggregateValue: ""
3260
+ };
3261
+ }
3262
+
3263
+ export const UninterpretedOption = {
3264
+ encode(message: UninterpretedOption, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
3265
+ for (const v of message.name) {
3266
+ UninterpretedOption_NamePart.encode(v!, writer.uint32(18).fork()).ldelim();
3267
+ }
3268
+
3269
+ if (message.identifierValue !== "") {
3270
+ writer.uint32(26).string(message.identifierValue);
3271
+ }
3272
+
3273
+ if (!message.positiveIntValue.isZero()) {
3274
+ writer.uint32(32).uint64(message.positiveIntValue);
3275
+ }
3276
+
3277
+ if (!message.negativeIntValue.isZero()) {
3278
+ writer.uint32(40).int64(message.negativeIntValue);
3279
+ }
3280
+
3281
+ if (message.doubleValue !== 0) {
3282
+ writer.uint32(49).double(message.doubleValue);
3283
+ }
3284
+
3285
+ if (message.stringValue.length !== 0) {
3286
+ writer.uint32(58).bytes(message.stringValue);
3287
+ }
3288
+
3289
+ if (message.aggregateValue !== "") {
3290
+ writer.uint32(66).string(message.aggregateValue);
3291
+ }
3292
+
3293
+ return writer;
3294
+ },
3295
+
3296
+ decode(input: _m0.Reader | Uint8Array, length?: number): UninterpretedOption {
3297
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
3298
+ let end = length === undefined ? reader.len : reader.pos + length;
3299
+ const message = createBaseUninterpretedOption();
3300
+
3301
+ while (reader.pos < end) {
3302
+ const tag = reader.uint32();
3303
+
3304
+ switch (tag >>> 3) {
3305
+ case 2:
3306
+ message.name.push(UninterpretedOption_NamePart.decode(reader, reader.uint32()));
3307
+ break;
3308
+
3309
+ case 3:
3310
+ message.identifierValue = reader.string();
3311
+ break;
3312
+
3313
+ case 4:
3314
+ message.positiveIntValue = (reader.uint64() as Long);
3315
+ break;
3316
+
3317
+ case 5:
3318
+ message.negativeIntValue = (reader.int64() as Long);
3319
+ break;
3320
+
3321
+ case 6:
3322
+ message.doubleValue = reader.double();
3323
+ break;
3324
+
3325
+ case 7:
3326
+ message.stringValue = reader.bytes();
3327
+ break;
3328
+
3329
+ case 8:
3330
+ message.aggregateValue = reader.string();
3331
+ break;
3332
+
3333
+ default:
3334
+ reader.skipType(tag & 7);
3335
+ break;
3336
+ }
3337
+ }
3338
+
3339
+ return message;
3340
+ },
3341
+
3342
+ fromPartial(object: DeepPartial<UninterpretedOption>): UninterpretedOption {
3343
+ const message = createBaseUninterpretedOption();
3344
+ message.name = object.name?.map(e => UninterpretedOption_NamePart.fromPartial(e)) || [];
3345
+ message.identifierValue = object.identifierValue ?? "";
3346
+ message.positiveIntValue = object.positiveIntValue !== undefined && object.positiveIntValue !== null ? Long.fromValue(object.positiveIntValue) : Long.UZERO;
3347
+ message.negativeIntValue = object.negativeIntValue !== undefined && object.negativeIntValue !== null ? Long.fromValue(object.negativeIntValue) : Long.ZERO;
3348
+ message.doubleValue = object.doubleValue ?? 0;
3349
+ message.stringValue = object.stringValue ?? new Uint8Array();
3350
+ message.aggregateValue = object.aggregateValue ?? "";
3351
+ return message;
3352
+ }
3353
+
3354
+ };
3355
+
3356
+ function createBaseUninterpretedOption_NamePart(): UninterpretedOption_NamePart {
3357
+ return {
3358
+ namePart: "",
3359
+ isExtension: false
3360
+ };
3361
+ }
3362
+
3363
+ export const UninterpretedOption_NamePart = {
3364
+ encode(message: UninterpretedOption_NamePart, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
3365
+ if (message.namePart !== "") {
3366
+ writer.uint32(10).string(message.namePart);
3367
+ }
3368
+
3369
+ if (message.isExtension === true) {
3370
+ writer.uint32(16).bool(message.isExtension);
3371
+ }
3372
+
3373
+ return writer;
3374
+ },
3375
+
3376
+ decode(input: _m0.Reader | Uint8Array, length?: number): UninterpretedOption_NamePart {
3377
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
3378
+ let end = length === undefined ? reader.len : reader.pos + length;
3379
+ const message = createBaseUninterpretedOption_NamePart();
3380
+
3381
+ while (reader.pos < end) {
3382
+ const tag = reader.uint32();
3383
+
3384
+ switch (tag >>> 3) {
3385
+ case 1:
3386
+ message.namePart = reader.string();
3387
+ break;
3388
+
3389
+ case 2:
3390
+ message.isExtension = reader.bool();
3391
+ break;
3392
+
3393
+ default:
3394
+ reader.skipType(tag & 7);
3395
+ break;
3396
+ }
3397
+ }
3398
+
3399
+ return message;
3400
+ },
3401
+
3402
+ fromPartial(object: DeepPartial<UninterpretedOption_NamePart>): UninterpretedOption_NamePart {
3403
+ const message = createBaseUninterpretedOption_NamePart();
3404
+ message.namePart = object.namePart ?? "";
3405
+ message.isExtension = object.isExtension ?? false;
3406
+ return message;
3407
+ }
3408
+
3409
+ };
3410
+
3411
+ function createBaseSourceCodeInfo(): SourceCodeInfo {
3412
+ return {
3413
+ location: []
3414
+ };
3415
+ }
3416
+
3417
+ export const SourceCodeInfo = {
3418
+ encode(message: SourceCodeInfo, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
3419
+ for (const v of message.location) {
3420
+ SourceCodeInfo_Location.encode(v!, writer.uint32(10).fork()).ldelim();
3421
+ }
3422
+
3423
+ return writer;
3424
+ },
3425
+
3426
+ decode(input: _m0.Reader | Uint8Array, length?: number): SourceCodeInfo {
3427
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
3428
+ let end = length === undefined ? reader.len : reader.pos + length;
3429
+ const message = createBaseSourceCodeInfo();
3430
+
3431
+ while (reader.pos < end) {
3432
+ const tag = reader.uint32();
3433
+
3434
+ switch (tag >>> 3) {
3435
+ case 1:
3436
+ message.location.push(SourceCodeInfo_Location.decode(reader, reader.uint32()));
3437
+ break;
3438
+
3439
+ default:
3440
+ reader.skipType(tag & 7);
3441
+ break;
3442
+ }
3443
+ }
3444
+
3445
+ return message;
3446
+ },
3447
+
3448
+ fromPartial(object: DeepPartial<SourceCodeInfo>): SourceCodeInfo {
3449
+ const message = createBaseSourceCodeInfo();
3450
+ message.location = object.location?.map(e => SourceCodeInfo_Location.fromPartial(e)) || [];
3451
+ return message;
3452
+ }
3453
+
3454
+ };
3455
+
3456
+ function createBaseSourceCodeInfo_Location(): SourceCodeInfo_Location {
3457
+ return {
3458
+ path: [],
3459
+ span: [],
3460
+ leadingComments: "",
3461
+ trailingComments: "",
3462
+ leadingDetachedComments: []
3463
+ };
3464
+ }
3465
+
3466
+ export const SourceCodeInfo_Location = {
3467
+ encode(message: SourceCodeInfo_Location, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
3468
+ writer.uint32(10).fork();
3469
+
3470
+ for (const v of message.path) {
3471
+ writer.int32(v);
3472
+ }
3473
+
3474
+ writer.ldelim();
3475
+ writer.uint32(18).fork();
3476
+
3477
+ for (const v of message.span) {
3478
+ writer.int32(v);
3479
+ }
3480
+
3481
+ writer.ldelim();
3482
+
3483
+ if (message.leadingComments !== "") {
3484
+ writer.uint32(26).string(message.leadingComments);
3485
+ }
3486
+
3487
+ if (message.trailingComments !== "") {
3488
+ writer.uint32(34).string(message.trailingComments);
3489
+ }
3490
+
3491
+ for (const v of message.leadingDetachedComments) {
3492
+ writer.uint32(50).string(v!);
3493
+ }
3494
+
3495
+ return writer;
3496
+ },
3497
+
3498
+ decode(input: _m0.Reader | Uint8Array, length?: number): SourceCodeInfo_Location {
3499
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
3500
+ let end = length === undefined ? reader.len : reader.pos + length;
3501
+ const message = createBaseSourceCodeInfo_Location();
3502
+
3503
+ while (reader.pos < end) {
3504
+ const tag = reader.uint32();
3505
+
3506
+ switch (tag >>> 3) {
3507
+ case 1:
3508
+ if ((tag & 7) === 2) {
3509
+ const end2 = reader.uint32() + reader.pos;
3510
+
3511
+ while (reader.pos < end2) {
3512
+ message.path.push(reader.int32());
3513
+ }
3514
+ } else {
3515
+ message.path.push(reader.int32());
3516
+ }
3517
+
3518
+ break;
3519
+
3520
+ case 2:
3521
+ if ((tag & 7) === 2) {
3522
+ const end2 = reader.uint32() + reader.pos;
3523
+
3524
+ while (reader.pos < end2) {
3525
+ message.span.push(reader.int32());
3526
+ }
3527
+ } else {
3528
+ message.span.push(reader.int32());
3529
+ }
3530
+
3531
+ break;
3532
+
3533
+ case 3:
3534
+ message.leadingComments = reader.string();
3535
+ break;
3536
+
3537
+ case 4:
3538
+ message.trailingComments = reader.string();
3539
+ break;
3540
+
3541
+ case 6:
3542
+ message.leadingDetachedComments.push(reader.string());
3543
+ break;
3544
+
3545
+ default:
3546
+ reader.skipType(tag & 7);
3547
+ break;
3548
+ }
3549
+ }
3550
+
3551
+ return message;
3552
+ },
3553
+
3554
+ fromPartial(object: DeepPartial<SourceCodeInfo_Location>): SourceCodeInfo_Location {
3555
+ const message = createBaseSourceCodeInfo_Location();
3556
+ message.path = object.path?.map(e => e) || [];
3557
+ message.span = object.span?.map(e => e) || [];
3558
+ message.leadingComments = object.leadingComments ?? "";
3559
+ message.trailingComments = object.trailingComments ?? "";
3560
+ message.leadingDetachedComments = object.leadingDetachedComments?.map(e => e) || [];
3561
+ return message;
3562
+ }
3563
+
3564
+ };
3565
+
3566
+ function createBaseGeneratedCodeInfo(): GeneratedCodeInfo {
3567
+ return {
3568
+ annotation: []
3569
+ };
3570
+ }
3571
+
3572
+ export const GeneratedCodeInfo = {
3573
+ encode(message: GeneratedCodeInfo, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
3574
+ for (const v of message.annotation) {
3575
+ GeneratedCodeInfo_Annotation.encode(v!, writer.uint32(10).fork()).ldelim();
3576
+ }
3577
+
3578
+ return writer;
3579
+ },
3580
+
3581
+ decode(input: _m0.Reader | Uint8Array, length?: number): GeneratedCodeInfo {
3582
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
3583
+ let end = length === undefined ? reader.len : reader.pos + length;
3584
+ const message = createBaseGeneratedCodeInfo();
3585
+
3586
+ while (reader.pos < end) {
3587
+ const tag = reader.uint32();
3588
+
3589
+ switch (tag >>> 3) {
3590
+ case 1:
3591
+ message.annotation.push(GeneratedCodeInfo_Annotation.decode(reader, reader.uint32()));
3592
+ break;
3593
+
3594
+ default:
3595
+ reader.skipType(tag & 7);
3596
+ break;
3597
+ }
3598
+ }
3599
+
3600
+ return message;
3601
+ },
3602
+
3603
+ fromPartial(object: DeepPartial<GeneratedCodeInfo>): GeneratedCodeInfo {
3604
+ const message = createBaseGeneratedCodeInfo();
3605
+ message.annotation = object.annotation?.map(e => GeneratedCodeInfo_Annotation.fromPartial(e)) || [];
3606
+ return message;
3607
+ }
3608
+
3609
+ };
3610
+
3611
+ function createBaseGeneratedCodeInfo_Annotation(): GeneratedCodeInfo_Annotation {
3612
+ return {
3613
+ path: [],
3614
+ sourceFile: "",
3615
+ begin: 0,
3616
+ end: 0
3617
+ };
3618
+ }
3619
+
3620
+ export const GeneratedCodeInfo_Annotation = {
3621
+ encode(message: GeneratedCodeInfo_Annotation, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
3622
+ writer.uint32(10).fork();
3623
+
3624
+ for (const v of message.path) {
3625
+ writer.int32(v);
3626
+ }
3627
+
3628
+ writer.ldelim();
3629
+
3630
+ if (message.sourceFile !== "") {
3631
+ writer.uint32(18).string(message.sourceFile);
3632
+ }
3633
+
3634
+ if (message.begin !== 0) {
3635
+ writer.uint32(24).int32(message.begin);
3636
+ }
3637
+
3638
+ if (message.end !== 0) {
3639
+ writer.uint32(32).int32(message.end);
3640
+ }
3641
+
3642
+ return writer;
3643
+ },
3644
+
3645
+ decode(input: _m0.Reader | Uint8Array, length?: number): GeneratedCodeInfo_Annotation {
3646
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
3647
+ let end = length === undefined ? reader.len : reader.pos + length;
3648
+ const message = createBaseGeneratedCodeInfo_Annotation();
3649
+
3650
+ while (reader.pos < end) {
3651
+ const tag = reader.uint32();
3652
+
3653
+ switch (tag >>> 3) {
3654
+ case 1:
3655
+ if ((tag & 7) === 2) {
3656
+ const end2 = reader.uint32() + reader.pos;
3657
+
3658
+ while (reader.pos < end2) {
3659
+ message.path.push(reader.int32());
3660
+ }
3661
+ } else {
3662
+ message.path.push(reader.int32());
3663
+ }
3664
+
3665
+ break;
3666
+
3667
+ case 2:
3668
+ message.sourceFile = reader.string();
3669
+ break;
3670
+
3671
+ case 3:
3672
+ message.begin = reader.int32();
3673
+ break;
3674
+
3675
+ case 4:
3676
+ message.end = reader.int32();
3677
+ break;
3678
+
3679
+ default:
3680
+ reader.skipType(tag & 7);
3681
+ break;
3682
+ }
3683
+ }
3684
+
3685
+ return message;
3686
+ },
3687
+
3688
+ fromPartial(object: DeepPartial<GeneratedCodeInfo_Annotation>): GeneratedCodeInfo_Annotation {
3689
+ const message = createBaseGeneratedCodeInfo_Annotation();
3690
+ message.path = object.path?.map(e => e) || [];
3691
+ message.sourceFile = object.sourceFile ?? "";
3692
+ message.begin = object.begin ?? 0;
3693
+ message.end = object.end ?? 0;
3694
+ return message;
3695
+ }
3696
+
3697
+ };