@burnt-labs/xion-types 0.0.1-test.1762962136

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 (554) hide show
  1. package/jest.config.js +18 -0
  2. package/package.json +56 -0
  3. package/scripts/aminos.ts +29 -0
  4. package/scripts/codegen.ts +94 -0
  5. package/scripts/download-protos.ts +248 -0
  6. package/telescope.config.json +84 -0
  7. package/tsconfig.esm.json +9 -0
  8. package/tsconfig.json +18 -0
  9. package/types/abstractaccount/bundle.ts +35 -0
  10. package/types/abstractaccount/client.ts +48 -0
  11. package/types/abstractaccount/lcd.ts +130 -0
  12. package/types/abstractaccount/rpc.query.ts +93 -0
  13. package/types/abstractaccount/rpc.tx.ts +74 -0
  14. package/types/abstractaccount/v1/account.ts +250 -0
  15. package/types/abstractaccount/v1/events.ts +135 -0
  16. package/types/abstractaccount/v1/genesis.ts +106 -0
  17. package/types/abstractaccount/v1/params.ts +192 -0
  18. package/types/abstractaccount/v1/query.lcd.ts +19 -0
  19. package/types/abstractaccount/v1/query.rpc.Query.ts +31 -0
  20. package/types/abstractaccount/v1/query.ts +160 -0
  21. package/types/abstractaccount/v1/tx.amino.ts +14 -0
  22. package/types/abstractaccount/v1/tx.registry.ts +53 -0
  23. package/types/abstractaccount/v1/tx.rpc.msg.ts +29 -0
  24. package/types/abstractaccount/v1/tx.ts +454 -0
  25. package/types/amino/amino.ts +1 -0
  26. package/types/amino/bundle.ts +5 -0
  27. package/types/binary.ts +535 -0
  28. package/types/cosmos/app/runtime/v1alpha1/module.ts +492 -0
  29. package/types/cosmos/app/v1alpha1/config.ts +437 -0
  30. package/types/cosmos/app/v1alpha1/module.ts +466 -0
  31. package/types/cosmos/app/v1alpha1/query.rpc.Query.ts +31 -0
  32. package/types/cosmos/app/v1alpha1/query.ts +176 -0
  33. package/types/cosmos/auth/module/v1/module.ts +288 -0
  34. package/types/cosmos/auth/v1beta1/auth.ts +562 -0
  35. package/types/cosmos/auth/v1beta1/genesis.ts +123 -0
  36. package/types/cosmos/auth/v1beta1/query.lcd.ts +91 -0
  37. package/types/cosmos/auth/v1beta1/query.rpc.Query.ts +137 -0
  38. package/types/cosmos/auth/v1beta1/query.ts +2005 -0
  39. package/types/cosmos/auth/v1beta1/tx.amino.ts +9 -0
  40. package/types/cosmos/auth/v1beta1/tx.registry.ts +35 -0
  41. package/types/cosmos/auth/v1beta1/tx.rpc.msg.ts +24 -0
  42. package/types/cosmos/auth/v1beta1/tx.ts +208 -0
  43. package/types/cosmos/authz/module/v1/module.ts +77 -0
  44. package/types/cosmos/authz/v1beta1/authz.ts +599 -0
  45. package/types/cosmos/authz/v1beta1/event.ts +274 -0
  46. package/types/cosmos/authz/v1beta1/genesis.ts +99 -0
  47. package/types/cosmos/authz/v1beta1/query.lcd.ts +59 -0
  48. package/types/cosmos/authz/v1beta1/query.rpc.Query.ts +53 -0
  49. package/types/cosmos/authz/v1beta1/query.ts +734 -0
  50. package/types/cosmos/authz/v1beta1/tx.amino.ts +19 -0
  51. package/types/cosmos/authz/v1beta1/tx.registry.ts +71 -0
  52. package/types/cosmos/authz/v1beta1/tx.rpc.msg.ts +49 -0
  53. package/types/cosmos/authz/v1beta1/tx.ts +666 -0
  54. package/types/cosmos/autocli/v1/options.ts +1317 -0
  55. package/types/cosmos/autocli/v1/query.rpc.Query.ts +32 -0
  56. package/types/cosmos/autocli/v1/query.ts +298 -0
  57. package/types/cosmos/bank/module/v1/module.ts +156 -0
  58. package/types/cosmos/bank/v1beta1/authz.ts +134 -0
  59. package/types/cosmos/bank/v1beta1/bank.ts +984 -0
  60. package/types/cosmos/bank/v1beta1/genesis.ts +316 -0
  61. package/types/cosmos/bank/v1beta1/query.lcd.ts +207 -0
  62. package/types/cosmos/bank/v1beta1/query.rpc.Query.ts +212 -0
  63. package/types/cosmos/bank/v1beta1/query.ts +3051 -0
  64. package/types/cosmos/bank/v1beta1/tx.amino.ts +24 -0
  65. package/types/cosmos/bank/v1beta1/tx.registry.ts +89 -0
  66. package/types/cosmos/bank/v1beta1/tx.rpc.msg.ts +53 -0
  67. package/types/cosmos/bank/v1beta1/tx.ts +845 -0
  68. package/types/cosmos/base/abci/v1beta1/abci.ts +1776 -0
  69. package/types/cosmos/base/node/v1beta1/query.lcd.ts +25 -0
  70. package/types/cosmos/base/node/v1beta1/query.rpc.Service.ts +42 -0
  71. package/types/cosmos/base/node/v1beta1/query.ts +467 -0
  72. package/types/cosmos/base/query/v1beta1/pagination.ts +372 -0
  73. package/types/cosmos/base/reflection/v1beta1/reflection.ts +385 -0
  74. package/types/cosmos/base/reflection/v2alpha1/reflection.ts +2790 -0
  75. package/types/cosmos/base/tendermint/v1beta1/query.lcd.ts +87 -0
  76. package/types/cosmos/base/tendermint/v1beta1/query.rpc.Service.ts +103 -0
  77. package/types/cosmos/base/tendermint/v1beta1/query.ts +2358 -0
  78. package/types/cosmos/base/tendermint/v1beta1/types.ts +492 -0
  79. package/types/cosmos/base/v1beta1/coin.ts +449 -0
  80. package/types/cosmos/benchmark/module/v1/module.ts +384 -0
  81. package/types/cosmos/benchmark/v1/benchmark.ts +186 -0
  82. package/types/cosmos/benchmark/v1/tx.amino.ts +9 -0
  83. package/types/cosmos/benchmark/v1/tx.registry.ts +35 -0
  84. package/types/cosmos/benchmark/v1/tx.rpc.msg.ts +21 -0
  85. package/types/cosmos/benchmark/v1/tx.ts +224 -0
  86. package/types/cosmos/bundle.ts +807 -0
  87. package/types/cosmos/circuit/module/v1/module.ts +100 -0
  88. package/types/cosmos/circuit/v1/query.lcd.ts +40 -0
  89. package/types/cosmos/circuit/v1/query.rpc.Query.ts +55 -0
  90. package/types/cosmos/circuit/v1/query.ts +576 -0
  91. package/types/cosmos/circuit/v1/tx.amino.ts +19 -0
  92. package/types/cosmos/circuit/v1/tx.registry.ts +71 -0
  93. package/types/cosmos/circuit/v1/tx.rpc.msg.ts +43 -0
  94. package/types/cosmos/circuit/v1/tx.ts +685 -0
  95. package/types/cosmos/circuit/v1/types.ts +419 -0
  96. package/types/cosmos/client.ts +100 -0
  97. package/types/cosmos/consensus/module/v1/module.ts +100 -0
  98. package/types/cosmos/consensus/v1/query.lcd.ts +19 -0
  99. package/types/cosmos/consensus/v1/query.rpc.Query.ts +31 -0
  100. package/types/cosmos/consensus/v1/query.ts +182 -0
  101. package/types/cosmos/consensus/v1/tx.amino.ts +9 -0
  102. package/types/cosmos/consensus/v1/tx.registry.ts +35 -0
  103. package/types/cosmos/consensus/v1/tx.rpc.msg.ts +24 -0
  104. package/types/cosmos/consensus/v1/tx.ts +257 -0
  105. package/types/cosmos/counter/module/v1/module.ts +100 -0
  106. package/types/cosmos/counter/v1/query.rpc.Query.ts +31 -0
  107. package/types/cosmos/counter/v1/query.ts +171 -0
  108. package/types/cosmos/counter/v1/tx.amino.ts +9 -0
  109. package/types/cosmos/counter/v1/tx.registry.ts +35 -0
  110. package/types/cosmos/counter/v1/tx.rpc.msg.ts +21 -0
  111. package/types/cosmos/counter/v1/tx.ts +217 -0
  112. package/types/cosmos/crisis/module/v1/module.ts +119 -0
  113. package/types/cosmos/crisis/v1beta1/genesis.ts +105 -0
  114. package/types/cosmos/crisis/v1beta1/tx.amino.ts +14 -0
  115. package/types/cosmos/crisis/v1beta1/tx.registry.ts +53 -0
  116. package/types/cosmos/crisis/v1beta1/tx.rpc.msg.ts +32 -0
  117. package/types/cosmos/crisis/v1beta1/tx.ts +413 -0
  118. package/types/cosmos/crypto/bls12_381/keys.ts +207 -0
  119. package/types/cosmos/crypto/ed25519/keys.ts +214 -0
  120. package/types/cosmos/crypto/hd/v1/hd.ts +180 -0
  121. package/types/cosmos/crypto/keyring/v1/record.ts +542 -0
  122. package/types/cosmos/crypto/multisig/keys.ts +124 -0
  123. package/types/cosmos/crypto/multisig/v1beta1/multisig.ts +231 -0
  124. package/types/cosmos/crypto/secp256k1/keys.ts +207 -0
  125. package/types/cosmos/crypto/secp256r1/keys.ts +203 -0
  126. package/types/cosmos/distribution/module/v1/module.ts +115 -0
  127. package/types/cosmos/distribution/v1beta1/distribution.ts +1551 -0
  128. package/types/cosmos/distribution/v1beta1/genesis.ts +1208 -0
  129. package/types/cosmos/distribution/v1beta1/query.lcd.ts +89 -0
  130. package/types/cosmos/distribution/v1beta1/query.rpc.Query.ts +137 -0
  131. package/types/cosmos/distribution/v1beta1/query.ts +2195 -0
  132. package/types/cosmos/distribution/v1beta1/tx.amino.ts +39 -0
  133. package/types/cosmos/distribution/v1beta1/tx.registry.ts +143 -0
  134. package/types/cosmos/distribution/v1beta1/tx.rpc.msg.ts +96 -0
  135. package/types/cosmos/distribution/v1beta1/tx.ts +1460 -0
  136. package/types/cosmos/epochs/module/v1/module.ts +77 -0
  137. package/types/cosmos/epochs/v1beta1/events.ts +205 -0
  138. package/types/cosmos/epochs/v1beta1/genesis.ts +384 -0
  139. package/types/cosmos/epochs/v1beta1/query.lcd.ts +31 -0
  140. package/types/cosmos/epochs/v1beta1/query.rpc.Query.ts +42 -0
  141. package/types/cosmos/epochs/v1beta1/query.ts +390 -0
  142. package/types/cosmos/evidence/module/v1/module.ts +77 -0
  143. package/types/cosmos/evidence/v1beta1/evidence.ts +166 -0
  144. package/types/cosmos/evidence/v1beta1/genesis.ts +103 -0
  145. package/types/cosmos/evidence/v1beta1/query.lcd.ts +40 -0
  146. package/types/cosmos/evidence/v1beta1/query.rpc.Query.ts +44 -0
  147. package/types/cosmos/evidence/v1beta1/query.ts +458 -0
  148. package/types/cosmos/evidence/v1beta1/tx.amino.ts +9 -0
  149. package/types/cosmos/evidence/v1beta1/tx.registry.ts +35 -0
  150. package/types/cosmos/evidence/v1beta1/tx.rpc.msg.ts +24 -0
  151. package/types/cosmos/evidence/v1beta1/tx.ts +243 -0
  152. package/types/cosmos/feegrant/module/v1/module.ts +77 -0
  153. package/types/cosmos/feegrant/v1beta1/feegrant.ts +701 -0
  154. package/types/cosmos/feegrant/v1beta1/genesis.ts +99 -0
  155. package/types/cosmos/feegrant/v1beta1/query.lcd.ts +44 -0
  156. package/types/cosmos/feegrant/v1beta1/query.rpc.Query.ts +53 -0
  157. package/types/cosmos/feegrant/v1beta1/query.ts +683 -0
  158. package/types/cosmos/feegrant/v1beta1/tx.amino.ts +19 -0
  159. package/types/cosmos/feegrant/v1beta1/tx.registry.ts +71 -0
  160. package/types/cosmos/feegrant/v1beta1/tx.rpc.msg.ts +43 -0
  161. package/types/cosmos/feegrant/v1beta1/tx.ts +683 -0
  162. package/types/cosmos/genutil/module/v1/module.ts +77 -0
  163. package/types/cosmos/genutil/v1beta1/genesis.ts +103 -0
  164. package/types/cosmos/gov/module/v1/module.ts +123 -0
  165. package/types/cosmos/gov/v1/genesis.ts +288 -0
  166. package/types/cosmos/gov/v1/gov.ts +1889 -0
  167. package/types/cosmos/gov/v1/query.lcd.ts +95 -0
  168. package/types/cosmos/gov/v1/query.rpc.Query.ts +119 -0
  169. package/types/cosmos/gov/v1/query.ts +2026 -0
  170. package/types/cosmos/gov/v1/tx.amino.ts +39 -0
  171. package/types/cosmos/gov/v1/tx.registry.ts +143 -0
  172. package/types/cosmos/gov/v1/tx.rpc.msg.ts +75 -0
  173. package/types/cosmos/gov/v1/tx.ts +1911 -0
  174. package/types/cosmos/gov/v1beta1/genesis.ts +221 -0
  175. package/types/cosmos/gov/v1beta1/gov.ts +1725 -0
  176. package/types/cosmos/gov/v1beta1/query.lcd.ts +89 -0
  177. package/types/cosmos/gov/v1beta1/query.rpc.Query.ts +108 -0
  178. package/types/cosmos/gov/v1beta1/query.ts +1813 -0
  179. package/types/cosmos/gov/v1beta1/tx.amino.ts +24 -0
  180. package/types/cosmos/gov/v1beta1/tx.registry.ts +89 -0
  181. package/types/cosmos/gov/v1beta1/tx.rpc.msg.ts +45 -0
  182. package/types/cosmos/gov/v1beta1/tx.ts +1128 -0
  183. package/types/cosmos/group/module/v1/module.ts +128 -0
  184. package/types/cosmos/group/v1/events.ts +1195 -0
  185. package/types/cosmos/group/v1/genesis.ts +256 -0
  186. package/types/cosmos/group/v1/query.lcd.ts +158 -0
  187. package/types/cosmos/group/v1/query.rpc.Query.ts +182 -0
  188. package/types/cosmos/group/v1/query.ts +3108 -0
  189. package/types/cosmos/group/v1/tx.amino.ts +74 -0
  190. package/types/cosmos/group/v1/tx.registry.ts +269 -0
  191. package/types/cosmos/group/v1/tx.rpc.msg.ts +125 -0
  192. package/types/cosmos/group/v1/tx.ts +3353 -0
  193. package/types/cosmos/group/v1/types.ts +2248 -0
  194. package/types/cosmos/ics23/v1/proofs.ts +2167 -0
  195. package/types/cosmos/lcd.ts +125 -0
  196. package/types/cosmos/mint/module/v1/module.ts +115 -0
  197. package/types/cosmos/mint/v1beta1/genesis.ts +120 -0
  198. package/types/cosmos/mint/v1beta1/mint.ts +313 -0
  199. package/types/cosmos/mint/v1beta1/query.lcd.ts +31 -0
  200. package/types/cosmos/mint/v1beta1/query.rpc.Query.ts +53 -0
  201. package/types/cosmos/mint/v1beta1/query.ts +544 -0
  202. package/types/cosmos/mint/v1beta1/tx.amino.ts +9 -0
  203. package/types/cosmos/mint/v1beta1/tx.registry.ts +35 -0
  204. package/types/cosmos/mint/v1beta1/tx.rpc.msg.ts +24 -0
  205. package/types/cosmos/mint/v1beta1/tx.ts +208 -0
  206. package/types/cosmos/msg/textual/v1/textual.ts +1 -0
  207. package/types/cosmos/msg/v1/msg.ts +1 -0
  208. package/types/cosmos/nft/module/v1/module.ts +77 -0
  209. package/types/cosmos/nft/v1beta1/event.ts +429 -0
  210. package/types/cosmos/nft/v1beta1/genesis.ts +243 -0
  211. package/types/cosmos/nft/v1beta1/nft.ts +389 -0
  212. package/types/cosmos/nft/v1beta1/query.lcd.ts +77 -0
  213. package/types/cosmos/nft/v1beta1/query.rpc.Query.ts +102 -0
  214. package/types/cosmos/nft/v1beta1/query.ts +1513 -0
  215. package/types/cosmos/nft/v1beta1/tx.amino.ts +9 -0
  216. package/types/cosmos/nft/v1beta1/tx.registry.ts +35 -0
  217. package/types/cosmos/nft/v1beta1/tx.rpc.msg.ts +21 -0
  218. package/types/cosmos/nft/v1beta1/tx.ts +232 -0
  219. package/types/cosmos/params/module/v1/module.ts +77 -0
  220. package/types/cosmos/params/v1beta1/params.ts +262 -0
  221. package/types/cosmos/params/v1beta1/query.lcd.ts +35 -0
  222. package/types/cosmos/params/v1beta1/query.rpc.Query.ts +45 -0
  223. package/types/cosmos/params/v1beta1/query.ts +521 -0
  224. package/types/cosmos/protocolpool/module/v1/module.ts +100 -0
  225. package/types/cosmos/protocolpool/v1/genesis.ts +126 -0
  226. package/types/cosmos/protocolpool/v1/query.lcd.ts +37 -0
  227. package/types/cosmos/protocolpool/v1/query.rpc.Query.ts +64 -0
  228. package/types/cosmos/protocolpool/v1/query.ts +761 -0
  229. package/types/cosmos/protocolpool/v1/tx.amino.ts +29 -0
  230. package/types/cosmos/protocolpool/v1/tx.registry.ts +107 -0
  231. package/types/cosmos/protocolpool/v1/tx.rpc.msg.ts +69 -0
  232. package/types/cosmos/protocolpool/v1/tx.ts +1124 -0
  233. package/types/cosmos/protocolpool/v1/types.ts +268 -0
  234. package/types/cosmos/query/v1/query.ts +1 -0
  235. package/types/cosmos/reflection/v1/reflection.ts +178 -0
  236. package/types/cosmos/rpc.query.ts +90 -0
  237. package/types/cosmos/rpc.tx.ts +71 -0
  238. package/types/cosmos/slashing/module/v1/module.ts +100 -0
  239. package/types/cosmos/slashing/v1beta1/genesis.ts +511 -0
  240. package/types/cosmos/slashing/v1beta1/query.lcd.ts +40 -0
  241. package/types/cosmos/slashing/v1beta1/query.rpc.Query.ts +55 -0
  242. package/types/cosmos/slashing/v1beta1/query.ts +606 -0
  243. package/types/cosmos/slashing/v1beta1/slashing.ts +371 -0
  244. package/types/cosmos/slashing/v1beta1/tx.amino.ts +14 -0
  245. package/types/cosmos/slashing/v1beta1/tx.registry.ts +53 -0
  246. package/types/cosmos/slashing/v1beta1/tx.rpc.msg.ts +36 -0
  247. package/types/cosmos/slashing/v1beta1/tx.ts +377 -0
  248. package/types/cosmos/staking/module/v1/module.ts +165 -0
  249. package/types/cosmos/staking/v1beta1/authz.ts +321 -0
  250. package/types/cosmos/staking/v1beta1/genesis.ts +370 -0
  251. package/types/cosmos/staking/v1beta1/query.lcd.ts +174 -0
  252. package/types/cosmos/staking/v1beta1/query.rpc.Query.ts +217 -0
  253. package/types/cosmos/staking/v1beta1/query.ts +3187 -0
  254. package/types/cosmos/staking/v1beta1/staking.ts +3193 -0
  255. package/types/cosmos/staking/v1beta1/tx.amino.ts +39 -0
  256. package/types/cosmos/staking/v1beta1/tx.registry.ts +143 -0
  257. package/types/cosmos/staking/v1beta1/tx.rpc.msg.ts +84 -0
  258. package/types/cosmos/staking/v1beta1/tx.ts +1642 -0
  259. package/types/cosmos/store/internal/kv/v1beta1/kv.ts +208 -0
  260. package/types/cosmos/store/snapshots/v1/snapshot.ts +840 -0
  261. package/types/cosmos/store/streaming/abci/grpc.ts +393 -0
  262. package/types/cosmos/store/v1beta1/commit_info.ts +369 -0
  263. package/types/cosmos/store/v1beta1/listening.ts +296 -0
  264. package/types/cosmos/tx/config/v1/config.ts +127 -0
  265. package/types/cosmos/tx/signing/v1beta1/signing.ts +713 -0
  266. package/types/cosmos/tx/v1beta1/service.lcd.ts +59 -0
  267. package/types/cosmos/tx/v1beta1/service.rpc.Service.ts +119 -0
  268. package/types/cosmos/tx/v1beta1/service.ts +2319 -0
  269. package/types/cosmos/tx/v1beta1/tx.ts +2168 -0
  270. package/types/cosmos/upgrade/module/v1/module.ts +100 -0
  271. package/types/cosmos/upgrade/v1beta1/query.lcd.ts +54 -0
  272. package/types/cosmos/upgrade/v1beta1/query.rpc.Query.ts +82 -0
  273. package/types/cosmos/upgrade/v1beta1/query.ts +1004 -0
  274. package/types/cosmos/upgrade/v1beta1/tx.amino.ts +14 -0
  275. package/types/cosmos/upgrade/v1beta1/tx.registry.ts +53 -0
  276. package/types/cosmos/upgrade/v1beta1/tx.rpc.msg.ts +32 -0
  277. package/types/cosmos/upgrade/v1beta1/tx.ts +368 -0
  278. package/types/cosmos/upgrade/v1beta1/upgrade.ts +623 -0
  279. package/types/cosmos/vesting/module/v1/module.ts +77 -0
  280. package/types/cosmos/vesting/v1beta1/tx.amino.ts +19 -0
  281. package/types/cosmos/vesting/v1beta1/tx.registry.ts +71 -0
  282. package/types/cosmos/vesting/v1beta1/tx.rpc.msg.ts +46 -0
  283. package/types/cosmos/vesting/v1beta1/tx.ts +688 -0
  284. package/types/cosmos/vesting/v1beta1/vesting.ts +751 -0
  285. package/types/cosmos_proto/bundle.ts +5 -0
  286. package/types/cosmos_proto/cosmos.ts +355 -0
  287. package/types/cosmwasm/bundle.ts +39 -0
  288. package/types/cosmwasm/client.ts +48 -0
  289. package/types/cosmwasm/lcd.ts +132 -0
  290. package/types/cosmwasm/rpc.query.ts +95 -0
  291. package/types/cosmwasm/rpc.tx.ts +76 -0
  292. package/types/cosmwasm/wasm/v1/authz.ts +1409 -0
  293. package/types/cosmwasm/wasm/v1/genesis.ts +544 -0
  294. package/types/cosmwasm/wasm/v1/ibc.ts +437 -0
  295. package/types/cosmwasm/wasm/v1/proposal_legacy.ts +2711 -0
  296. package/types/cosmwasm/wasm/v1/query.lcd.ts +154 -0
  297. package/types/cosmwasm/wasm/v1/query.rpc.Query.ts +181 -0
  298. package/types/cosmwasm/wasm/v1/query.ts +3339 -0
  299. package/types/cosmwasm/wasm/v1/tx.amino.ts +89 -0
  300. package/types/cosmwasm/wasm/v1/tx.registry.ts +323 -0
  301. package/types/cosmwasm/wasm/v1/tx.rpc.msg.ts +197 -0
  302. package/types/cosmwasm/wasm/v1/tx.ts +4403 -0
  303. package/types/cosmwasm/wasm/v1/types.ts +1193 -0
  304. package/types/gogoproto/bundle.ts +5 -0
  305. package/types/gogoproto/gogo.ts +1 -0
  306. package/types/google/api/annotations.ts +1 -0
  307. package/types/google/api/apikeys/v2/apikeys.ts +1245 -0
  308. package/types/google/api/apikeys/v2/resources.ts +1268 -0
  309. package/types/google/api/auth.ts +1175 -0
  310. package/types/google/api/backend.ts +691 -0
  311. package/types/google/api/billing.ts +333 -0
  312. package/types/google/api/client.ts +3100 -0
  313. package/types/google/api/cloudquotas/v1/cloudquotas.ts +1196 -0
  314. package/types/google/api/cloudquotas/v1/resources.ts +2065 -0
  315. package/types/google/api/cloudquotas/v1beta/cloudquotas.ts +1196 -0
  316. package/types/google/api/cloudquotas/v1beta/quota_adjuster_settings.ts +509 -0
  317. package/types/google/api/cloudquotas/v1beta/resources.ts +2069 -0
  318. package/types/google/api/config_change.ts +385 -0
  319. package/types/google/api/consumer.ts +362 -0
  320. package/types/google/api/context.ts +418 -0
  321. package/types/google/api/control.ts +141 -0
  322. package/types/google/api/distribution.ts +1253 -0
  323. package/types/google/api/documentation.ts +738 -0
  324. package/types/google/api/endpoint.ts +245 -0
  325. package/types/google/api/error_reason.ts +816 -0
  326. package/types/google/api/expr/conformance/v1alpha1/conformance_service.ts +1293 -0
  327. package/types/google/api/expr/v1alpha1/checked.ts +2259 -0
  328. package/types/google/api/expr/v1alpha1/eval.ts +675 -0
  329. package/types/google/api/expr/v1alpha1/explain.ts +257 -0
  330. package/types/google/api/expr/v1alpha1/syntax.ts +2983 -0
  331. package/types/google/api/expr/v1alpha1/value.ts +771 -0
  332. package/types/google/api/expr/v1beta1/decl.ts +563 -0
  333. package/types/google/api/expr/v1beta1/eval.ts +758 -0
  334. package/types/google/api/expr/v1beta1/expr.ts +1750 -0
  335. package/types/google/api/expr/v1beta1/source.ts +446 -0
  336. package/types/google/api/expr/v1beta1/value.ts +771 -0
  337. package/types/google/api/field_behavior.ts +136 -0
  338. package/types/google/api/field_info.ts +319 -0
  339. package/types/google/api/http.ts +1362 -0
  340. package/types/google/api/httpbody.ts +270 -0
  341. package/types/google/api/label.ts +174 -0
  342. package/types/google/api/launch_stage.ts +112 -0
  343. package/types/google/api/log.ts +201 -0
  344. package/types/google/api/logging.ts +355 -0
  345. package/types/google/api/metric.ts +1174 -0
  346. package/types/google/api/monitored_resource.ts +841 -0
  347. package/types/google/api/monitoring.ts +430 -0
  348. package/types/google/api/policy.ts +314 -0
  349. package/types/google/api/quota.ts +1040 -0
  350. package/types/google/api/resource.ts +769 -0
  351. package/types/google/api/routing.ts +1405 -0
  352. package/types/google/api/service.ts +790 -0
  353. package/types/google/api/servicecontrol/v1/check_error.ts +366 -0
  354. package/types/google/api/servicecontrol/v1/distribution.ts +773 -0
  355. package/types/google/api/servicecontrol/v1/http_request.ts +427 -0
  356. package/types/google/api/servicecontrol/v1/log_entry.ts +804 -0
  357. package/types/google/api/servicecontrol/v1/metric_value.ts +499 -0
  358. package/types/google/api/servicecontrol/v1/operation.ts +544 -0
  359. package/types/google/api/servicecontrol/v1/quota_controller.ts +1041 -0
  360. package/types/google/api/servicecontrol/v1/service_controller.ts +1164 -0
  361. package/types/google/api/servicecontrol/v2/service_controller.ts +949 -0
  362. package/types/google/api/servicemanagement/v1/resources.ts +1888 -0
  363. package/types/google/api/servicemanagement/v1/servicemanager.ts +2444 -0
  364. package/types/google/api/serviceusage/v1/resources.ts +629 -0
  365. package/types/google/api/serviceusage/v1/serviceusage.ts +1530 -0
  366. package/types/google/api/serviceusage/v1beta1/resources.ts +2972 -0
  367. package/types/google/api/serviceusage/v1beta1/serviceusage.ts +4567 -0
  368. package/types/google/api/source_info.ts +97 -0
  369. package/types/google/api/system_parameter.ts +461 -0
  370. package/types/google/api/usage.ts +404 -0
  371. package/types/google/api/visibility.ts +328 -0
  372. package/types/google/bundle.ts +115 -0
  373. package/types/google/logging/type/log_severity.ts +104 -0
  374. package/types/google/longrunning/operations.ts +1153 -0
  375. package/types/google/protobuf/any.ts +424 -0
  376. package/types/google/protobuf/api.ts +942 -0
  377. package/types/google/protobuf/descriptor.ts +7801 -0
  378. package/types/google/protobuf/duration.ts +284 -0
  379. package/types/google/protobuf/empty.ts +93 -0
  380. package/types/google/protobuf/field_mask.ts +694 -0
  381. package/types/google/protobuf/source_context.ts +105 -0
  382. package/types/google/protobuf/struct.ts +584 -0
  383. package/types/google/protobuf/timestamp.ts +373 -0
  384. package/types/google/protobuf/type.ts +1279 -0
  385. package/types/google/protobuf/wrappers.ts +1002 -0
  386. package/types/google/rpc/code.ts +286 -0
  387. package/types/google/rpc/context/attribute_context.ts +2517 -0
  388. package/types/google/rpc/context/audit_context.ts +188 -0
  389. package/types/google/rpc/error_details.ts +2467 -0
  390. package/types/google/rpc/http.ts +424 -0
  391. package/types/google/rpc/status.ts +173 -0
  392. package/types/helpers.ts +259 -0
  393. package/types/ibc/applications/interchain_accounts/controller/v1/controller.ts +107 -0
  394. package/types/ibc/applications/interchain_accounts/controller/v1/query.lcd.ts +25 -0
  395. package/types/ibc/applications/interchain_accounts/controller/v1/query.rpc.Query.ts +42 -0
  396. package/types/ibc/applications/interchain_accounts/controller/v1/query.ts +379 -0
  397. package/types/ibc/applications/interchain_accounts/controller/v1/tx.amino.ts +19 -0
  398. package/types/ibc/applications/interchain_accounts/controller/v1/tx.registry.ts +71 -0
  399. package/types/ibc/applications/interchain_accounts/controller/v1/tx.rpc.msg.ts +37 -0
  400. package/types/ibc/applications/interchain_accounts/controller/v1/tx.ts +692 -0
  401. package/types/ibc/applications/interchain_accounts/genesis/v1/genesis.ts +675 -0
  402. package/types/ibc/applications/interchain_accounts/host/v1/host.ts +261 -0
  403. package/types/ibc/applications/interchain_accounts/host/v1/query.lcd.ts +19 -0
  404. package/types/ibc/applications/interchain_accounts/host/v1/query.rpc.Query.ts +31 -0
  405. package/types/ibc/applications/interchain_accounts/host/v1/query.ts +176 -0
  406. package/types/ibc/applications/interchain_accounts/host/v1/tx.amino.ts +14 -0
  407. package/types/ibc/applications/interchain_accounts/host/v1/tx.registry.ts +53 -0
  408. package/types/ibc/applications/interchain_accounts/host/v1/tx.rpc.msg.ts +29 -0
  409. package/types/ibc/applications/interchain_accounts/host/v1/tx.ts +440 -0
  410. package/types/ibc/applications/interchain_accounts/v1/account.ts +115 -0
  411. package/types/ibc/applications/interchain_accounts/v1/metadata.ts +206 -0
  412. package/types/ibc/applications/interchain_accounts/v1/packet.ts +262 -0
  413. package/types/ibc/applications/transfer/v1/authz.ts +297 -0
  414. package/types/ibc/applications/transfer/v1/denomtrace.ts +133 -0
  415. package/types/ibc/applications/transfer/v1/genesis.ts +156 -0
  416. package/types/ibc/applications/transfer/v1/packet.ts +186 -0
  417. package/types/ibc/applications/transfer/v1/query.lcd.ts +76 -0
  418. package/types/ibc/applications/transfer/v1/query.rpc.Query.ts +88 -0
  419. package/types/ibc/applications/transfer/v1/query.ts +1233 -0
  420. package/types/ibc/applications/transfer/v1/token.ts +347 -0
  421. package/types/ibc/applications/transfer/v1/transfer.ts +140 -0
  422. package/types/ibc/applications/transfer/v1/tx.amino.ts +14 -0
  423. package/types/ibc/applications/transfer/v1/tx.registry.ts +53 -0
  424. package/types/ibc/applications/transfer/v1/tx.rpc.msg.ts +29 -0
  425. package/types/ibc/applications/transfer/v1/tx.ts +579 -0
  426. package/types/ibc/bundle.ts +265 -0
  427. package/types/ibc/client.ts +72 -0
  428. package/types/ibc/core/channel/v1/channel.ts +1455 -0
  429. package/types/ibc/core/channel/v1/genesis.ts +351 -0
  430. package/types/ibc/core/channel/v1/query.lcd.ts +135 -0
  431. package/types/ibc/core/channel/v1/query.rpc.Query.ts +200 -0
  432. package/types/ibc/core/channel/v1/query.ts +3943 -0
  433. package/types/ibc/core/channel/v1/tx.amino.ts +54 -0
  434. package/types/ibc/core/channel/v1/tx.registry.ts +197 -0
  435. package/types/ibc/core/channel/v1/tx.rpc.msg.ts +96 -0
  436. package/types/ibc/core/channel/v1/tx.ts +2558 -0
  437. package/types/ibc/core/channel/v2/genesis.ts +433 -0
  438. package/types/ibc/core/channel/v2/packet.ts +640 -0
  439. package/types/ibc/core/channel/v2/query.lcd.ts +77 -0
  440. package/types/ibc/core/channel/v2/query.rpc.Query.ts +108 -0
  441. package/types/ibc/core/channel/v2/query.ts +2075 -0
  442. package/types/ibc/core/channel/v2/tx.amino.ts +24 -0
  443. package/types/ibc/core/channel/v2/tx.registry.ts +89 -0
  444. package/types/ibc/core/channel/v2/tx.rpc.msg.ts +45 -0
  445. package/types/ibc/core/channel/v2/tx.ts +1003 -0
  446. package/types/ibc/core/client/v1/client.ts +636 -0
  447. package/types/ibc/core/client/v1/genesis.ts +448 -0
  448. package/types/ibc/core/client/v1/query.lcd.ts +102 -0
  449. package/types/ibc/core/client/v1/query.rpc.Query.ts +149 -0
  450. package/types/ibc/core/client/v1/query.ts +2588 -0
  451. package/types/ibc/core/client/v1/tx.amino.ts +44 -0
  452. package/types/ibc/core/client/v1/tx.registry.ts +161 -0
  453. package/types/ibc/core/client/v1/tx.rpc.msg.ts +77 -0
  454. package/types/ibc/core/client/v1/tx.ts +1796 -0
  455. package/types/ibc/core/client/v2/config.ts +115 -0
  456. package/types/ibc/core/client/v2/counterparty.ts +122 -0
  457. package/types/ibc/core/client/v2/genesis.ts +220 -0
  458. package/types/ibc/core/client/v2/query.lcd.ts +25 -0
  459. package/types/ibc/core/client/v2/query.rpc.Query.ts +42 -0
  460. package/types/ibc/core/client/v2/query.ts +402 -0
  461. package/types/ibc/core/client/v2/tx.amino.ts +14 -0
  462. package/types/ibc/core/client/v2/tx.registry.ts +53 -0
  463. package/types/ibc/core/client/v2/tx.rpc.msg.ts +29 -0
  464. package/types/ibc/core/client/v2/tx.ts +453 -0
  465. package/types/ibc/core/commitment/v1/commitment.ts +321 -0
  466. package/types/ibc/core/commitment/v2/commitment.ts +193 -0
  467. package/types/ibc/core/connection/v1/connection.ts +1056 -0
  468. package/types/ibc/core/connection/v1/genesis.ts +150 -0
  469. package/types/ibc/core/connection/v1/query.lcd.ts +61 -0
  470. package/types/ibc/core/connection/v1/query.rpc.Query.ts +97 -0
  471. package/types/ibc/core/connection/v1/query.ts +1472 -0
  472. package/types/ibc/core/connection/v1/tx.amino.ts +29 -0
  473. package/types/ibc/core/connection/v1/tx.registry.ts +107 -0
  474. package/types/ibc/core/connection/v1/tx.rpc.msg.ts +59 -0
  475. package/types/ibc/core/connection/v1/tx.ts +1456 -0
  476. package/types/ibc/core/types/v1/genesis.ts +191 -0
  477. package/types/ibc/lcd.ts +176 -0
  478. package/types/ibc/lightclients/solomachine/v2/solomachine.ts +2161 -0
  479. package/types/ibc/lightclients/solomachine/v3/solomachine.ts +1114 -0
  480. package/types/ibc/lightclients/tendermint/v1/tendermint.ts +891 -0
  481. package/types/ibc/lightclients/wasm/v1/genesis.ts +201 -0
  482. package/types/ibc/lightclients/wasm/v1/query.lcd.ts +34 -0
  483. package/types/ibc/lightclients/wasm/v1/query.rpc.Query.ts +44 -0
  484. package/types/ibc/lightclients/wasm/v1/query.ts +413 -0
  485. package/types/ibc/lightclients/wasm/v1/tx.amino.ts +19 -0
  486. package/types/ibc/lightclients/wasm/v1/tx.registry.ts +71 -0
  487. package/types/ibc/lightclients/wasm/v1/tx.rpc.msg.ts +37 -0
  488. package/types/ibc/lightclients/wasm/v1/tx.ts +640 -0
  489. package/types/ibc/lightclients/wasm/v1/wasm.ts +444 -0
  490. package/types/ibc/rpc.query.ts +123 -0
  491. package/types/ibc/rpc.tx.ts +104 -0
  492. package/types/index.ts +25 -0
  493. package/types/tendermint/abci/types.ts +6565 -0
  494. package/types/tendermint/bundle.ts +33 -0
  495. package/types/tendermint/crypto/keys.ts +106 -0
  496. package/types/tendermint/crypto/proof.ts +576 -0
  497. package/types/tendermint/p2p/types.ts +523 -0
  498. package/types/tendermint/types/block.ts +134 -0
  499. package/types/tendermint/types/evidence.ts +491 -0
  500. package/types/tendermint/types/params.ts +839 -0
  501. package/types/tendermint/types/types.ts +2266 -0
  502. package/types/tendermint/types/validator.ts +399 -0
  503. package/types/tendermint/version/types.ts +228 -0
  504. package/types/utf8.ts +149 -0
  505. package/types/varint.ts +489 -0
  506. package/types/xion/bundle.ts +117 -0
  507. package/types/xion/client.ts +57 -0
  508. package/types/xion/feeabs/v1beta1/epoch.ts +386 -0
  509. package/types/xion/feeabs/v1beta1/genesis.ts +136 -0
  510. package/types/xion/feeabs/v1beta1/osmosisibc.ts +868 -0
  511. package/types/xion/feeabs/v1beta1/params.ts +189 -0
  512. package/types/xion/feeabs/v1beta1/proposal.ts +593 -0
  513. package/types/xion/feeabs/v1beta1/query.lcd.ts +37 -0
  514. package/types/xion/feeabs/v1beta1/query.rpc.Query.ts +64 -0
  515. package/types/xion/feeabs/v1beta1/query.ts +732 -0
  516. package/types/xion/feeabs/v1beta1/tx.amino.ts +39 -0
  517. package/types/xion/feeabs/v1beta1/tx.registry.ts +143 -0
  518. package/types/xion/feeabs/v1beta1/tx.rpc.msg.ts +72 -0
  519. package/types/xion/feeabs/v1beta1/tx.ts +1261 -0
  520. package/types/xion/globalfee/v1/genesis.ts +249 -0
  521. package/types/xion/globalfee/v1/query.lcd.ts +19 -0
  522. package/types/xion/globalfee/v1/query.rpc.Query.ts +31 -0
  523. package/types/xion/globalfee/v1/query.ts +178 -0
  524. package/types/xion/jwk/v1/audience.ts +224 -0
  525. package/types/xion/jwk/v1/genesis.ts +117 -0
  526. package/types/xion/jwk/v1/params.ts +113 -0
  527. package/types/xion/jwk/v1/query.lcd.ts +52 -0
  528. package/types/xion/jwk/v1/query.rpc.Query.ts +77 -0
  529. package/types/xion/jwk/v1/query.ts +1697 -0
  530. package/types/xion/jwk/v1/tx.amino.ts +29 -0
  531. package/types/xion/jwk/v1/tx.registry.ts +107 -0
  532. package/types/xion/jwk/v1/tx.rpc.msg.ts +53 -0
  533. package/types/xion/jwk/v1/tx.ts +1040 -0
  534. package/types/xion/lcd.ts +147 -0
  535. package/types/xion/mint/v1/event.ts +216 -0
  536. package/types/xion/mint/v1/genesis.ts +114 -0
  537. package/types/xion/mint/v1/mint.ts +307 -0
  538. package/types/xion/mint/v1/query.lcd.ts +31 -0
  539. package/types/xion/mint/v1/query.rpc.Query.ts +53 -0
  540. package/types/xion/mint/v1/query.ts +508 -0
  541. package/types/xion/mint/v1/tx.amino.ts +9 -0
  542. package/types/xion/mint/v1/tx.registry.ts +35 -0
  543. package/types/xion/mint/v1/tx.rpc.msg.ts +26 -0
  544. package/types/xion/mint/v1/tx.ts +222 -0
  545. package/types/xion/rpc.query.ts +105 -0
  546. package/types/xion/rpc.tx.ts +83 -0
  547. package/types/xion/v1/feegrant.ts +457 -0
  548. package/types/xion/v1/genesis.ts +116 -0
  549. package/types/xion/v1/query.rpc.Query.ts +64 -0
  550. package/types/xion/v1/query.ts +862 -0
  551. package/types/xion/v1/tx.amino.ts +24 -0
  552. package/types/xion/v1/tx.registry.ts +89 -0
  553. package/types/xion/v1/tx.rpc.msg.ts +57 -0
  554. package/types/xion/v1/tx.ts +793 -0
@@ -0,0 +1,1750 @@
1
+ //@ts-nocheck
2
+ import { SourceInfo, SourceInfoAmino, SourceInfoSDKType } from "./source";
3
+ import { NullValue } from "../../../protobuf/struct";
4
+ import { BinaryReader, BinaryWriter } from "../../../../binary";
5
+ import { bytesFromBase64, base64FromBytes } from "../../../../helpers";
6
+ /** An expression together with source information as returned by the parser. */
7
+ export interface ParsedExpr {
8
+ /** The parsed expression. */
9
+ expr?: Expr;
10
+ /** The source info derived from input that generated the parsed `expr`. */
11
+ sourceInfo?: SourceInfo;
12
+ /** The syntax version of the source, e.g. `cel1`. */
13
+ syntaxVersion: string;
14
+ }
15
+ export interface ParsedExprProtoMsg {
16
+ typeUrl: "/google.api.expr.v1beta1.ParsedExpr";
17
+ value: Uint8Array;
18
+ }
19
+ /**
20
+ * An expression together with source information as returned by the parser.
21
+ * @name ParsedExprAmino
22
+ * @package google.api.expr.v1beta1
23
+ * @see proto type: google.api.expr.v1beta1.ParsedExpr
24
+ */
25
+ export interface ParsedExprAmino {
26
+ /**
27
+ * The parsed expression.
28
+ */
29
+ expr?: ExprAmino;
30
+ /**
31
+ * The source info derived from input that generated the parsed `expr`.
32
+ */
33
+ source_info?: SourceInfoAmino;
34
+ /**
35
+ * The syntax version of the source, e.g. `cel1`.
36
+ */
37
+ syntax_version?: string;
38
+ }
39
+ export interface ParsedExprAminoMsg {
40
+ type: "/google.api.expr.v1beta1.ParsedExpr";
41
+ value: ParsedExprAmino;
42
+ }
43
+ /** An expression together with source information as returned by the parser. */
44
+ export interface ParsedExprSDKType {
45
+ expr?: ExprSDKType;
46
+ source_info?: SourceInfoSDKType;
47
+ syntax_version: string;
48
+ }
49
+ /**
50
+ * An abstract representation of a common expression.
51
+ *
52
+ * Expressions are abstractly represented as a collection of identifiers,
53
+ * select statements, function calls, literals, and comprehensions. All
54
+ * operators with the exception of the '.' operator are modelled as function
55
+ * calls. This makes it easy to represent new operators into the existing AST.
56
+ *
57
+ * All references within expressions must resolve to a [Decl][google.api.expr.v1beta1.Decl] provided at
58
+ * type-check for an expression to be valid. A reference may either be a bare
59
+ * identifier `name` or a qualified identifier `google.api.name`. References
60
+ * may either refer to a value or a function declaration.
61
+ *
62
+ * For example, the expression `google.api.name.startsWith('expr')` references
63
+ * the declaration `google.api.name` within a [Expr.Select][google.api.expr.v1beta1.Expr.Select] expression, and
64
+ * the function declaration `startsWith`.
65
+ */
66
+ export interface Expr {
67
+ /**
68
+ * Required. An id assigned to this node by the parser which is unique in a
69
+ * given expression tree. This is used to associate type information and other
70
+ * attributes to a node in the parse tree.
71
+ */
72
+ id: number;
73
+ /** A literal expression. */
74
+ literalExpr?: Literal;
75
+ /** An identifier expression. */
76
+ identExpr?: Expr_Ident;
77
+ /** A field selection expression, e.g. `request.auth`. */
78
+ selectExpr?: Expr_Select;
79
+ /** A call expression, including calls to predefined functions and operators. */
80
+ callExpr?: Expr_Call;
81
+ /** A list creation expression. */
82
+ listExpr?: Expr_CreateList;
83
+ /** A map or object creation expression. */
84
+ structExpr?: Expr_CreateStruct;
85
+ /** A comprehension expression. */
86
+ comprehensionExpr?: Expr_Comprehension;
87
+ }
88
+ export interface ExprProtoMsg {
89
+ typeUrl: "/google.api.expr.v1beta1.Expr";
90
+ value: Uint8Array;
91
+ }
92
+ /**
93
+ * An abstract representation of a common expression.
94
+ *
95
+ * Expressions are abstractly represented as a collection of identifiers,
96
+ * select statements, function calls, literals, and comprehensions. All
97
+ * operators with the exception of the '.' operator are modelled as function
98
+ * calls. This makes it easy to represent new operators into the existing AST.
99
+ *
100
+ * All references within expressions must resolve to a [Decl][google.api.expr.v1beta1.Decl] provided at
101
+ * type-check for an expression to be valid. A reference may either be a bare
102
+ * identifier `name` or a qualified identifier `google.api.name`. References
103
+ * may either refer to a value or a function declaration.
104
+ *
105
+ * For example, the expression `google.api.name.startsWith('expr')` references
106
+ * the declaration `google.api.name` within a [Expr.Select][google.api.expr.v1beta1.Expr.Select] expression, and
107
+ * the function declaration `startsWith`.
108
+ * @name ExprAmino
109
+ * @package google.api.expr.v1beta1
110
+ * @see proto type: google.api.expr.v1beta1.Expr
111
+ */
112
+ export interface ExprAmino {
113
+ /**
114
+ * Required. An id assigned to this node by the parser which is unique in a
115
+ * given expression tree. This is used to associate type information and other
116
+ * attributes to a node in the parse tree.
117
+ */
118
+ id?: number;
119
+ /**
120
+ * A literal expression.
121
+ */
122
+ literal_expr?: LiteralAmino;
123
+ /**
124
+ * An identifier expression.
125
+ */
126
+ ident_expr?: Expr_IdentAmino;
127
+ /**
128
+ * A field selection expression, e.g. `request.auth`.
129
+ */
130
+ select_expr?: Expr_SelectAmino;
131
+ /**
132
+ * A call expression, including calls to predefined functions and operators.
133
+ */
134
+ call_expr?: Expr_CallAmino;
135
+ /**
136
+ * A list creation expression.
137
+ */
138
+ list_expr?: Expr_CreateListAmino;
139
+ /**
140
+ * A map or object creation expression.
141
+ */
142
+ struct_expr?: Expr_CreateStructAmino;
143
+ /**
144
+ * A comprehension expression.
145
+ */
146
+ comprehension_expr?: Expr_ComprehensionAmino;
147
+ }
148
+ export interface ExprAminoMsg {
149
+ type: "/google.api.expr.v1beta1.Expr";
150
+ value: ExprAmino;
151
+ }
152
+ /**
153
+ * An abstract representation of a common expression.
154
+ *
155
+ * Expressions are abstractly represented as a collection of identifiers,
156
+ * select statements, function calls, literals, and comprehensions. All
157
+ * operators with the exception of the '.' operator are modelled as function
158
+ * calls. This makes it easy to represent new operators into the existing AST.
159
+ *
160
+ * All references within expressions must resolve to a [Decl][google.api.expr.v1beta1.Decl] provided at
161
+ * type-check for an expression to be valid. A reference may either be a bare
162
+ * identifier `name` or a qualified identifier `google.api.name`. References
163
+ * may either refer to a value or a function declaration.
164
+ *
165
+ * For example, the expression `google.api.name.startsWith('expr')` references
166
+ * the declaration `google.api.name` within a [Expr.Select][google.api.expr.v1beta1.Expr.Select] expression, and
167
+ * the function declaration `startsWith`.
168
+ */
169
+ export interface ExprSDKType {
170
+ id: number;
171
+ literal_expr?: LiteralSDKType;
172
+ ident_expr?: Expr_IdentSDKType;
173
+ select_expr?: Expr_SelectSDKType;
174
+ call_expr?: Expr_CallSDKType;
175
+ list_expr?: Expr_CreateListSDKType;
176
+ struct_expr?: Expr_CreateStructSDKType;
177
+ comprehension_expr?: Expr_ComprehensionSDKType;
178
+ }
179
+ /** An identifier expression. e.g. `request`. */
180
+ export interface Expr_Ident {
181
+ /**
182
+ * Required. Holds a single, unqualified identifier, possibly preceded by a
183
+ * '.'.
184
+ *
185
+ * Qualified names are represented by the [Expr.Select][google.api.expr.v1beta1.Expr.Select] expression.
186
+ */
187
+ name: string;
188
+ }
189
+ export interface Expr_IdentProtoMsg {
190
+ typeUrl: "/google.api.expr.v1beta1.Ident";
191
+ value: Uint8Array;
192
+ }
193
+ /**
194
+ * An identifier expression. e.g. `request`.
195
+ * @name Expr_IdentAmino
196
+ * @package google.api.expr.v1beta1
197
+ * @see proto type: google.api.expr.v1beta1.Expr_Ident
198
+ */
199
+ export interface Expr_IdentAmino {
200
+ /**
201
+ * Required. Holds a single, unqualified identifier, possibly preceded by a
202
+ * '.'.
203
+ *
204
+ * Qualified names are represented by the [Expr.Select][google.api.expr.v1beta1.Expr.Select] expression.
205
+ */
206
+ name?: string;
207
+ }
208
+ export interface Expr_IdentAminoMsg {
209
+ type: "/google.api.expr.v1beta1.Ident";
210
+ value: Expr_IdentAmino;
211
+ }
212
+ /** An identifier expression. e.g. `request`. */
213
+ export interface Expr_IdentSDKType {
214
+ name: string;
215
+ }
216
+ /** A field selection expression. e.g. `request.auth`. */
217
+ export interface Expr_Select {
218
+ /**
219
+ * Required. The target of the selection expression.
220
+ *
221
+ * For example, in the select expression `request.auth`, the `request`
222
+ * portion of the expression is the `operand`.
223
+ */
224
+ operand?: Expr;
225
+ /**
226
+ * Required. The name of the field to select.
227
+ *
228
+ * For example, in the select expression `request.auth`, the `auth` portion
229
+ * of the expression would be the `field`.
230
+ */
231
+ field: string;
232
+ /**
233
+ * Whether the select is to be interpreted as a field presence test.
234
+ *
235
+ * This results from the macro `has(request.auth)`.
236
+ */
237
+ testOnly: boolean;
238
+ }
239
+ export interface Expr_SelectProtoMsg {
240
+ typeUrl: "/google.api.expr.v1beta1.Select";
241
+ value: Uint8Array;
242
+ }
243
+ /**
244
+ * A field selection expression. e.g. `request.auth`.
245
+ * @name Expr_SelectAmino
246
+ * @package google.api.expr.v1beta1
247
+ * @see proto type: google.api.expr.v1beta1.Expr_Select
248
+ */
249
+ export interface Expr_SelectAmino {
250
+ /**
251
+ * Required. The target of the selection expression.
252
+ *
253
+ * For example, in the select expression `request.auth`, the `request`
254
+ * portion of the expression is the `operand`.
255
+ */
256
+ operand?: ExprAmino;
257
+ /**
258
+ * Required. The name of the field to select.
259
+ *
260
+ * For example, in the select expression `request.auth`, the `auth` portion
261
+ * of the expression would be the `field`.
262
+ */
263
+ field?: string;
264
+ /**
265
+ * Whether the select is to be interpreted as a field presence test.
266
+ *
267
+ * This results from the macro `has(request.auth)`.
268
+ */
269
+ test_only?: boolean;
270
+ }
271
+ export interface Expr_SelectAminoMsg {
272
+ type: "/google.api.expr.v1beta1.Select";
273
+ value: Expr_SelectAmino;
274
+ }
275
+ /** A field selection expression. e.g. `request.auth`. */
276
+ export interface Expr_SelectSDKType {
277
+ operand?: ExprSDKType;
278
+ field: string;
279
+ test_only: boolean;
280
+ }
281
+ /**
282
+ * A call expression, including calls to predefined functions and operators.
283
+ *
284
+ * For example, `value == 10`, `size(map_value)`.
285
+ */
286
+ export interface Expr_Call {
287
+ /**
288
+ * The target of an method call-style expression. For example, `x` in
289
+ * `x.f()`.
290
+ */
291
+ target?: Expr;
292
+ /** Required. The name of the function or method being called. */
293
+ function: string;
294
+ /** The arguments. */
295
+ args: Expr[];
296
+ }
297
+ export interface Expr_CallProtoMsg {
298
+ typeUrl: "/google.api.expr.v1beta1.Call";
299
+ value: Uint8Array;
300
+ }
301
+ /**
302
+ * A call expression, including calls to predefined functions and operators.
303
+ *
304
+ * For example, `value == 10`, `size(map_value)`.
305
+ * @name Expr_CallAmino
306
+ * @package google.api.expr.v1beta1
307
+ * @see proto type: google.api.expr.v1beta1.Expr_Call
308
+ */
309
+ export interface Expr_CallAmino {
310
+ /**
311
+ * The target of an method call-style expression. For example, `x` in
312
+ * `x.f()`.
313
+ */
314
+ target?: ExprAmino;
315
+ /**
316
+ * Required. The name of the function or method being called.
317
+ */
318
+ function?: string;
319
+ /**
320
+ * The arguments.
321
+ */
322
+ args?: ExprAmino[];
323
+ }
324
+ export interface Expr_CallAminoMsg {
325
+ type: "/google.api.expr.v1beta1.Call";
326
+ value: Expr_CallAmino;
327
+ }
328
+ /**
329
+ * A call expression, including calls to predefined functions and operators.
330
+ *
331
+ * For example, `value == 10`, `size(map_value)`.
332
+ */
333
+ export interface Expr_CallSDKType {
334
+ target?: ExprSDKType;
335
+ function: string;
336
+ args: ExprSDKType[];
337
+ }
338
+ /**
339
+ * A list creation expression.
340
+ *
341
+ * Lists may either be homogenous, e.g. `[1, 2, 3]`, or heterogenous, e.g.
342
+ * `dyn([1, 'hello', 2.0])`
343
+ */
344
+ export interface Expr_CreateList {
345
+ /** The elements part of the list. */
346
+ elements: Expr[];
347
+ }
348
+ export interface Expr_CreateListProtoMsg {
349
+ typeUrl: "/google.api.expr.v1beta1.CreateList";
350
+ value: Uint8Array;
351
+ }
352
+ /**
353
+ * A list creation expression.
354
+ *
355
+ * Lists may either be homogenous, e.g. `[1, 2, 3]`, or heterogenous, e.g.
356
+ * `dyn([1, 'hello', 2.0])`
357
+ * @name Expr_CreateListAmino
358
+ * @package google.api.expr.v1beta1
359
+ * @see proto type: google.api.expr.v1beta1.Expr_CreateList
360
+ */
361
+ export interface Expr_CreateListAmino {
362
+ /**
363
+ * The elements part of the list.
364
+ */
365
+ elements?: ExprAmino[];
366
+ }
367
+ export interface Expr_CreateListAminoMsg {
368
+ type: "/google.api.expr.v1beta1.CreateList";
369
+ value: Expr_CreateListAmino;
370
+ }
371
+ /**
372
+ * A list creation expression.
373
+ *
374
+ * Lists may either be homogenous, e.g. `[1, 2, 3]`, or heterogenous, e.g.
375
+ * `dyn([1, 'hello', 2.0])`
376
+ */
377
+ export interface Expr_CreateListSDKType {
378
+ elements: ExprSDKType[];
379
+ }
380
+ /**
381
+ * A map or message creation expression.
382
+ *
383
+ * Maps are constructed as `{'key_name': 'value'}`. Message construction is
384
+ * similar, but prefixed with a type name and composed of field ids:
385
+ * `types.MyType{field_id: 'value'}`.
386
+ */
387
+ export interface Expr_CreateStruct {
388
+ /**
389
+ * The type name of the message to be created, empty when creating map
390
+ * literals.
391
+ */
392
+ type: string;
393
+ /** The entries in the creation expression. */
394
+ entries: Expr_CreateStruct_Entry[];
395
+ }
396
+ export interface Expr_CreateStructProtoMsg {
397
+ typeUrl: "/google.api.expr.v1beta1.CreateStruct";
398
+ value: Uint8Array;
399
+ }
400
+ /**
401
+ * A map or message creation expression.
402
+ *
403
+ * Maps are constructed as `{'key_name': 'value'}`. Message construction is
404
+ * similar, but prefixed with a type name and composed of field ids:
405
+ * `types.MyType{field_id: 'value'}`.
406
+ * @name Expr_CreateStructAmino
407
+ * @package google.api.expr.v1beta1
408
+ * @see proto type: google.api.expr.v1beta1.Expr_CreateStruct
409
+ */
410
+ export interface Expr_CreateStructAmino {
411
+ /**
412
+ * The type name of the message to be created, empty when creating map
413
+ * literals.
414
+ */
415
+ type?: string;
416
+ /**
417
+ * The entries in the creation expression.
418
+ */
419
+ entries?: Expr_CreateStruct_EntryAmino[];
420
+ }
421
+ export interface Expr_CreateStructAminoMsg {
422
+ type: "/google.api.expr.v1beta1.CreateStruct";
423
+ value: Expr_CreateStructAmino;
424
+ }
425
+ /**
426
+ * A map or message creation expression.
427
+ *
428
+ * Maps are constructed as `{'key_name': 'value'}`. Message construction is
429
+ * similar, but prefixed with a type name and composed of field ids:
430
+ * `types.MyType{field_id: 'value'}`.
431
+ */
432
+ export interface Expr_CreateStructSDKType {
433
+ type: string;
434
+ entries: Expr_CreateStruct_EntrySDKType[];
435
+ }
436
+ /** Represents an entry. */
437
+ export interface Expr_CreateStruct_Entry {
438
+ /**
439
+ * Required. An id assigned to this node by the parser which is unique
440
+ * in a given expression tree. This is used to associate type
441
+ * information and other attributes to the node.
442
+ */
443
+ id: number;
444
+ /** The field key for a message creator statement. */
445
+ fieldKey?: string;
446
+ /** The key expression for a map creation statement. */
447
+ mapKey?: Expr;
448
+ /** Required. The value assigned to the key. */
449
+ value?: Expr;
450
+ }
451
+ export interface Expr_CreateStruct_EntryProtoMsg {
452
+ typeUrl: "/google.api.expr.v1beta1.Entry";
453
+ value: Uint8Array;
454
+ }
455
+ /**
456
+ * Represents an entry.
457
+ * @name Expr_CreateStruct_EntryAmino
458
+ * @package google.api.expr.v1beta1
459
+ * @see proto type: google.api.expr.v1beta1.Expr_CreateStruct_Entry
460
+ */
461
+ export interface Expr_CreateStruct_EntryAmino {
462
+ /**
463
+ * Required. An id assigned to this node by the parser which is unique
464
+ * in a given expression tree. This is used to associate type
465
+ * information and other attributes to the node.
466
+ */
467
+ id?: number;
468
+ /**
469
+ * The field key for a message creator statement.
470
+ */
471
+ field_key?: string;
472
+ /**
473
+ * The key expression for a map creation statement.
474
+ */
475
+ map_key?: ExprAmino;
476
+ /**
477
+ * Required. The value assigned to the key.
478
+ */
479
+ value?: ExprAmino;
480
+ }
481
+ export interface Expr_CreateStruct_EntryAminoMsg {
482
+ type: "/google.api.expr.v1beta1.Entry";
483
+ value: Expr_CreateStruct_EntryAmino;
484
+ }
485
+ /** Represents an entry. */
486
+ export interface Expr_CreateStruct_EntrySDKType {
487
+ id: number;
488
+ field_key?: string;
489
+ map_key?: ExprSDKType;
490
+ value?: ExprSDKType;
491
+ }
492
+ /**
493
+ * A comprehension expression applied to a list or map.
494
+ *
495
+ * Comprehensions are not part of the core syntax, but enabled with macros.
496
+ * A macro matches a specific call signature within a parsed AST and replaces
497
+ * the call with an alternate AST block. Macro expansion happens at parse
498
+ * time.
499
+ *
500
+ * The following macros are supported within CEL:
501
+ *
502
+ * Aggregate type macros may be applied to all elements in a list or all keys
503
+ * in a map:
504
+ *
505
+ * * `all`, `exists`, `exists_one` - test a predicate expression against
506
+ * the inputs and return `true` if the predicate is satisfied for all,
507
+ * any, or only one value `list.all(x, x < 10)`.
508
+ * * `filter` - test a predicate expression against the inputs and return
509
+ * the subset of elements which satisfy the predicate:
510
+ * `payments.filter(p, p > 1000)`.
511
+ * * `map` - apply an expression to all elements in the input and return the
512
+ * output aggregate type: `[1, 2, 3].map(i, i * i)`.
513
+ *
514
+ * The `has(m.x)` macro tests whether the property `x` is present in struct
515
+ * `m`. The semantics of this macro depend on the type of `m`. For proto2
516
+ * messages `has(m.x)` is defined as 'defined, but not set`. For proto3, the
517
+ * macro tests whether the property is set to its default. For map and struct
518
+ * types, the macro tests whether the property `x` is defined on `m`.
519
+ */
520
+ export interface Expr_Comprehension {
521
+ /** The name of the iteration variable. */
522
+ iterVar: string;
523
+ /** The range over which var iterates. */
524
+ iterRange?: Expr;
525
+ /** The name of the variable used for accumulation of the result. */
526
+ accuVar: string;
527
+ /** The initial value of the accumulator. */
528
+ accuInit?: Expr;
529
+ /**
530
+ * An expression which can contain iter_var and accu_var.
531
+ *
532
+ * Returns false when the result has been computed and may be used as
533
+ * a hint to short-circuit the remainder of the comprehension.
534
+ */
535
+ loopCondition?: Expr;
536
+ /**
537
+ * An expression which can contain iter_var and accu_var.
538
+ *
539
+ * Computes the next value of accu_var.
540
+ */
541
+ loopStep?: Expr;
542
+ /**
543
+ * An expression which can contain accu_var.
544
+ *
545
+ * Computes the result.
546
+ */
547
+ result?: Expr;
548
+ }
549
+ export interface Expr_ComprehensionProtoMsg {
550
+ typeUrl: "/google.api.expr.v1beta1.Comprehension";
551
+ value: Uint8Array;
552
+ }
553
+ /**
554
+ * A comprehension expression applied to a list or map.
555
+ *
556
+ * Comprehensions are not part of the core syntax, but enabled with macros.
557
+ * A macro matches a specific call signature within a parsed AST and replaces
558
+ * the call with an alternate AST block. Macro expansion happens at parse
559
+ * time.
560
+ *
561
+ * The following macros are supported within CEL:
562
+ *
563
+ * Aggregate type macros may be applied to all elements in a list or all keys
564
+ * in a map:
565
+ *
566
+ * * `all`, `exists`, `exists_one` - test a predicate expression against
567
+ * the inputs and return `true` if the predicate is satisfied for all,
568
+ * any, or only one value `list.all(x, x < 10)`.
569
+ * * `filter` - test a predicate expression against the inputs and return
570
+ * the subset of elements which satisfy the predicate:
571
+ * `payments.filter(p, p > 1000)`.
572
+ * * `map` - apply an expression to all elements in the input and return the
573
+ * output aggregate type: `[1, 2, 3].map(i, i * i)`.
574
+ *
575
+ * The `has(m.x)` macro tests whether the property `x` is present in struct
576
+ * `m`. The semantics of this macro depend on the type of `m`. For proto2
577
+ * messages `has(m.x)` is defined as 'defined, but not set`. For proto3, the
578
+ * macro tests whether the property is set to its default. For map and struct
579
+ * types, the macro tests whether the property `x` is defined on `m`.
580
+ * @name Expr_ComprehensionAmino
581
+ * @package google.api.expr.v1beta1
582
+ * @see proto type: google.api.expr.v1beta1.Expr_Comprehension
583
+ */
584
+ export interface Expr_ComprehensionAmino {
585
+ /**
586
+ * The name of the iteration variable.
587
+ */
588
+ iter_var?: string;
589
+ /**
590
+ * The range over which var iterates.
591
+ */
592
+ iter_range?: ExprAmino;
593
+ /**
594
+ * The name of the variable used for accumulation of the result.
595
+ */
596
+ accu_var?: string;
597
+ /**
598
+ * The initial value of the accumulator.
599
+ */
600
+ accu_init?: ExprAmino;
601
+ /**
602
+ * An expression which can contain iter_var and accu_var.
603
+ *
604
+ * Returns false when the result has been computed and may be used as
605
+ * a hint to short-circuit the remainder of the comprehension.
606
+ */
607
+ loop_condition?: ExprAmino;
608
+ /**
609
+ * An expression which can contain iter_var and accu_var.
610
+ *
611
+ * Computes the next value of accu_var.
612
+ */
613
+ loop_step?: ExprAmino;
614
+ /**
615
+ * An expression which can contain accu_var.
616
+ *
617
+ * Computes the result.
618
+ */
619
+ result?: ExprAmino;
620
+ }
621
+ export interface Expr_ComprehensionAminoMsg {
622
+ type: "/google.api.expr.v1beta1.Comprehension";
623
+ value: Expr_ComprehensionAmino;
624
+ }
625
+ /**
626
+ * A comprehension expression applied to a list or map.
627
+ *
628
+ * Comprehensions are not part of the core syntax, but enabled with macros.
629
+ * A macro matches a specific call signature within a parsed AST and replaces
630
+ * the call with an alternate AST block. Macro expansion happens at parse
631
+ * time.
632
+ *
633
+ * The following macros are supported within CEL:
634
+ *
635
+ * Aggregate type macros may be applied to all elements in a list or all keys
636
+ * in a map:
637
+ *
638
+ * * `all`, `exists`, `exists_one` - test a predicate expression against
639
+ * the inputs and return `true` if the predicate is satisfied for all,
640
+ * any, or only one value `list.all(x, x < 10)`.
641
+ * * `filter` - test a predicate expression against the inputs and return
642
+ * the subset of elements which satisfy the predicate:
643
+ * `payments.filter(p, p > 1000)`.
644
+ * * `map` - apply an expression to all elements in the input and return the
645
+ * output aggregate type: `[1, 2, 3].map(i, i * i)`.
646
+ *
647
+ * The `has(m.x)` macro tests whether the property `x` is present in struct
648
+ * `m`. The semantics of this macro depend on the type of `m`. For proto2
649
+ * messages `has(m.x)` is defined as 'defined, but not set`. For proto3, the
650
+ * macro tests whether the property is set to its default. For map and struct
651
+ * types, the macro tests whether the property `x` is defined on `m`.
652
+ */
653
+ export interface Expr_ComprehensionSDKType {
654
+ iter_var: string;
655
+ iter_range?: ExprSDKType;
656
+ accu_var: string;
657
+ accu_init?: ExprSDKType;
658
+ loop_condition?: ExprSDKType;
659
+ loop_step?: ExprSDKType;
660
+ result?: ExprSDKType;
661
+ }
662
+ /**
663
+ * Represents a primitive literal.
664
+ *
665
+ * This is similar to the primitives supported in the well-known type
666
+ * `google.protobuf.Value`, but richer so it can represent CEL's full range of
667
+ * primitives.
668
+ *
669
+ * Lists and structs are not included as constants as these aggregate types may
670
+ * contain [Expr][google.api.expr.v1beta1.Expr] elements which require evaluation and are thus not constant.
671
+ *
672
+ * Examples of literals include: `"hello"`, `b'bytes'`, `1u`, `4.2`, `-2`,
673
+ * `true`, `null`.
674
+ */
675
+ export interface Literal {
676
+ /** null value. */
677
+ nullValue?: NullValue;
678
+ /** boolean value. */
679
+ boolValue?: boolean;
680
+ /** int64 value. */
681
+ int64Value?: bigint;
682
+ /** uint64 value. */
683
+ uint64Value?: bigint;
684
+ /** double value. */
685
+ doubleValue?: number;
686
+ /** string value. */
687
+ stringValue?: string;
688
+ /** bytes value. */
689
+ bytesValue?: Uint8Array;
690
+ }
691
+ export interface LiteralProtoMsg {
692
+ typeUrl: "/google.api.expr.v1beta1.Literal";
693
+ value: Uint8Array;
694
+ }
695
+ /**
696
+ * Represents a primitive literal.
697
+ *
698
+ * This is similar to the primitives supported in the well-known type
699
+ * `google.protobuf.Value`, but richer so it can represent CEL's full range of
700
+ * primitives.
701
+ *
702
+ * Lists and structs are not included as constants as these aggregate types may
703
+ * contain [Expr][google.api.expr.v1beta1.Expr] elements which require evaluation and are thus not constant.
704
+ *
705
+ * Examples of literals include: `"hello"`, `b'bytes'`, `1u`, `4.2`, `-2`,
706
+ * `true`, `null`.
707
+ * @name LiteralAmino
708
+ * @package google.api.expr.v1beta1
709
+ * @see proto type: google.api.expr.v1beta1.Literal
710
+ */
711
+ export interface LiteralAmino {
712
+ /**
713
+ * null value.
714
+ */
715
+ null_value?: NullValue;
716
+ /**
717
+ * boolean value.
718
+ */
719
+ bool_value?: boolean;
720
+ /**
721
+ * int64 value.
722
+ */
723
+ int64_value?: string;
724
+ /**
725
+ * uint64 value.
726
+ */
727
+ uint64_value?: string;
728
+ /**
729
+ * double value.
730
+ */
731
+ double_value?: number;
732
+ /**
733
+ * string value.
734
+ */
735
+ string_value?: string;
736
+ /**
737
+ * bytes value.
738
+ */
739
+ bytes_value?: string;
740
+ }
741
+ export interface LiteralAminoMsg {
742
+ type: "/google.api.expr.v1beta1.Literal";
743
+ value: LiteralAmino;
744
+ }
745
+ /**
746
+ * Represents a primitive literal.
747
+ *
748
+ * This is similar to the primitives supported in the well-known type
749
+ * `google.protobuf.Value`, but richer so it can represent CEL's full range of
750
+ * primitives.
751
+ *
752
+ * Lists and structs are not included as constants as these aggregate types may
753
+ * contain [Expr][google.api.expr.v1beta1.Expr] elements which require evaluation and are thus not constant.
754
+ *
755
+ * Examples of literals include: `"hello"`, `b'bytes'`, `1u`, `4.2`, `-2`,
756
+ * `true`, `null`.
757
+ */
758
+ export interface LiteralSDKType {
759
+ null_value?: NullValue;
760
+ bool_value?: boolean;
761
+ int64_value?: bigint;
762
+ uint64_value?: bigint;
763
+ double_value?: number;
764
+ string_value?: string;
765
+ bytes_value?: Uint8Array;
766
+ }
767
+ function createBaseParsedExpr(): ParsedExpr {
768
+ return {
769
+ expr: undefined,
770
+ sourceInfo: undefined,
771
+ syntaxVersion: ""
772
+ };
773
+ }
774
+ export const ParsedExpr = {
775
+ typeUrl: "/google.api.expr.v1beta1.ParsedExpr",
776
+ encode(message: ParsedExpr, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
777
+ if (message.expr !== undefined) {
778
+ Expr.encode(message.expr, writer.uint32(18).fork()).ldelim();
779
+ }
780
+ if (message.sourceInfo !== undefined) {
781
+ SourceInfo.encode(message.sourceInfo, writer.uint32(26).fork()).ldelim();
782
+ }
783
+ if (message.syntaxVersion !== "") {
784
+ writer.uint32(34).string(message.syntaxVersion);
785
+ }
786
+ return writer;
787
+ },
788
+ decode(input: BinaryReader | Uint8Array, length?: number): ParsedExpr {
789
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
790
+ let end = length === undefined ? reader.len : reader.pos + length;
791
+ const message = createBaseParsedExpr();
792
+ while (reader.pos < end) {
793
+ const tag = reader.uint32();
794
+ switch (tag >>> 3) {
795
+ case 2:
796
+ message.expr = Expr.decode(reader, reader.uint32());
797
+ break;
798
+ case 3:
799
+ message.sourceInfo = SourceInfo.decode(reader, reader.uint32());
800
+ break;
801
+ case 4:
802
+ message.syntaxVersion = reader.string();
803
+ break;
804
+ default:
805
+ reader.skipType(tag & 7);
806
+ break;
807
+ }
808
+ }
809
+ return message;
810
+ },
811
+ fromPartial(object: Partial<ParsedExpr>): ParsedExpr {
812
+ const message = createBaseParsedExpr();
813
+ message.expr = object.expr !== undefined && object.expr !== null ? Expr.fromPartial(object.expr) : undefined;
814
+ message.sourceInfo = object.sourceInfo !== undefined && object.sourceInfo !== null ? SourceInfo.fromPartial(object.sourceInfo) : undefined;
815
+ message.syntaxVersion = object.syntaxVersion ?? "";
816
+ return message;
817
+ },
818
+ fromAmino(object: ParsedExprAmino): ParsedExpr {
819
+ const message = createBaseParsedExpr();
820
+ if (object.expr !== undefined && object.expr !== null) {
821
+ message.expr = Expr.fromAmino(object.expr);
822
+ }
823
+ if (object.source_info !== undefined && object.source_info !== null) {
824
+ message.sourceInfo = SourceInfo.fromAmino(object.source_info);
825
+ }
826
+ if (object.syntax_version !== undefined && object.syntax_version !== null) {
827
+ message.syntaxVersion = object.syntax_version;
828
+ }
829
+ return message;
830
+ },
831
+ toAmino(message: ParsedExpr): ParsedExprAmino {
832
+ const obj: any = {};
833
+ obj.expr = message.expr ? Expr.toAmino(message.expr) : undefined;
834
+ obj.source_info = message.sourceInfo ? SourceInfo.toAmino(message.sourceInfo) : undefined;
835
+ obj.syntax_version = message.syntaxVersion === "" ? undefined : message.syntaxVersion;
836
+ return obj;
837
+ },
838
+ fromAminoMsg(object: ParsedExprAminoMsg): ParsedExpr {
839
+ return ParsedExpr.fromAmino(object.value);
840
+ },
841
+ fromProtoMsg(message: ParsedExprProtoMsg): ParsedExpr {
842
+ return ParsedExpr.decode(message.value);
843
+ },
844
+ toProto(message: ParsedExpr): Uint8Array {
845
+ return ParsedExpr.encode(message).finish();
846
+ },
847
+ toProtoMsg(message: ParsedExpr): ParsedExprProtoMsg {
848
+ return {
849
+ typeUrl: "/google.api.expr.v1beta1.ParsedExpr",
850
+ value: ParsedExpr.encode(message).finish()
851
+ };
852
+ }
853
+ };
854
+ function createBaseExpr(): Expr {
855
+ return {
856
+ id: 0,
857
+ literalExpr: undefined,
858
+ identExpr: undefined,
859
+ selectExpr: undefined,
860
+ callExpr: undefined,
861
+ listExpr: undefined,
862
+ structExpr: undefined,
863
+ comprehensionExpr: undefined
864
+ };
865
+ }
866
+ export const Expr = {
867
+ typeUrl: "/google.api.expr.v1beta1.Expr",
868
+ encode(message: Expr, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
869
+ if (message.id !== 0) {
870
+ writer.uint32(16).int32(message.id);
871
+ }
872
+ if (message.literalExpr !== undefined) {
873
+ Literal.encode(message.literalExpr, writer.uint32(26).fork()).ldelim();
874
+ }
875
+ if (message.identExpr !== undefined) {
876
+ Expr_Ident.encode(message.identExpr, writer.uint32(34).fork()).ldelim();
877
+ }
878
+ if (message.selectExpr !== undefined) {
879
+ Expr_Select.encode(message.selectExpr, writer.uint32(42).fork()).ldelim();
880
+ }
881
+ if (message.callExpr !== undefined) {
882
+ Expr_Call.encode(message.callExpr, writer.uint32(50).fork()).ldelim();
883
+ }
884
+ if (message.listExpr !== undefined) {
885
+ Expr_CreateList.encode(message.listExpr, writer.uint32(58).fork()).ldelim();
886
+ }
887
+ if (message.structExpr !== undefined) {
888
+ Expr_CreateStruct.encode(message.structExpr, writer.uint32(66).fork()).ldelim();
889
+ }
890
+ if (message.comprehensionExpr !== undefined) {
891
+ Expr_Comprehension.encode(message.comprehensionExpr, writer.uint32(74).fork()).ldelim();
892
+ }
893
+ return writer;
894
+ },
895
+ decode(input: BinaryReader | Uint8Array, length?: number): Expr {
896
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
897
+ let end = length === undefined ? reader.len : reader.pos + length;
898
+ const message = createBaseExpr();
899
+ while (reader.pos < end) {
900
+ const tag = reader.uint32();
901
+ switch (tag >>> 3) {
902
+ case 2:
903
+ message.id = reader.int32();
904
+ break;
905
+ case 3:
906
+ message.literalExpr = Literal.decode(reader, reader.uint32());
907
+ break;
908
+ case 4:
909
+ message.identExpr = Expr_Ident.decode(reader, reader.uint32());
910
+ break;
911
+ case 5:
912
+ message.selectExpr = Expr_Select.decode(reader, reader.uint32());
913
+ break;
914
+ case 6:
915
+ message.callExpr = Expr_Call.decode(reader, reader.uint32());
916
+ break;
917
+ case 7:
918
+ message.listExpr = Expr_CreateList.decode(reader, reader.uint32());
919
+ break;
920
+ case 8:
921
+ message.structExpr = Expr_CreateStruct.decode(reader, reader.uint32());
922
+ break;
923
+ case 9:
924
+ message.comprehensionExpr = Expr_Comprehension.decode(reader, reader.uint32());
925
+ break;
926
+ default:
927
+ reader.skipType(tag & 7);
928
+ break;
929
+ }
930
+ }
931
+ return message;
932
+ },
933
+ fromPartial(object: Partial<Expr>): Expr {
934
+ const message = createBaseExpr();
935
+ message.id = object.id ?? 0;
936
+ message.literalExpr = object.literalExpr !== undefined && object.literalExpr !== null ? Literal.fromPartial(object.literalExpr) : undefined;
937
+ message.identExpr = object.identExpr !== undefined && object.identExpr !== null ? Expr_Ident.fromPartial(object.identExpr) : undefined;
938
+ message.selectExpr = object.selectExpr !== undefined && object.selectExpr !== null ? Expr_Select.fromPartial(object.selectExpr) : undefined;
939
+ message.callExpr = object.callExpr !== undefined && object.callExpr !== null ? Expr_Call.fromPartial(object.callExpr) : undefined;
940
+ message.listExpr = object.listExpr !== undefined && object.listExpr !== null ? Expr_CreateList.fromPartial(object.listExpr) : undefined;
941
+ message.structExpr = object.structExpr !== undefined && object.structExpr !== null ? Expr_CreateStruct.fromPartial(object.structExpr) : undefined;
942
+ message.comprehensionExpr = object.comprehensionExpr !== undefined && object.comprehensionExpr !== null ? Expr_Comprehension.fromPartial(object.comprehensionExpr) : undefined;
943
+ return message;
944
+ },
945
+ fromAmino(object: ExprAmino): Expr {
946
+ const message = createBaseExpr();
947
+ if (object.id !== undefined && object.id !== null) {
948
+ message.id = object.id;
949
+ }
950
+ if (object.literal_expr !== undefined && object.literal_expr !== null) {
951
+ message.literalExpr = Literal.fromAmino(object.literal_expr);
952
+ }
953
+ if (object.ident_expr !== undefined && object.ident_expr !== null) {
954
+ message.identExpr = Expr_Ident.fromAmino(object.ident_expr);
955
+ }
956
+ if (object.select_expr !== undefined && object.select_expr !== null) {
957
+ message.selectExpr = Expr_Select.fromAmino(object.select_expr);
958
+ }
959
+ if (object.call_expr !== undefined && object.call_expr !== null) {
960
+ message.callExpr = Expr_Call.fromAmino(object.call_expr);
961
+ }
962
+ if (object.list_expr !== undefined && object.list_expr !== null) {
963
+ message.listExpr = Expr_CreateList.fromAmino(object.list_expr);
964
+ }
965
+ if (object.struct_expr !== undefined && object.struct_expr !== null) {
966
+ message.structExpr = Expr_CreateStruct.fromAmino(object.struct_expr);
967
+ }
968
+ if (object.comprehension_expr !== undefined && object.comprehension_expr !== null) {
969
+ message.comprehensionExpr = Expr_Comprehension.fromAmino(object.comprehension_expr);
970
+ }
971
+ return message;
972
+ },
973
+ toAmino(message: Expr): ExprAmino {
974
+ const obj: any = {};
975
+ obj.id = message.id === 0 ? undefined : message.id;
976
+ obj.literal_expr = message.literalExpr ? Literal.toAmino(message.literalExpr) : undefined;
977
+ obj.ident_expr = message.identExpr ? Expr_Ident.toAmino(message.identExpr) : undefined;
978
+ obj.select_expr = message.selectExpr ? Expr_Select.toAmino(message.selectExpr) : undefined;
979
+ obj.call_expr = message.callExpr ? Expr_Call.toAmino(message.callExpr) : undefined;
980
+ obj.list_expr = message.listExpr ? Expr_CreateList.toAmino(message.listExpr) : undefined;
981
+ obj.struct_expr = message.structExpr ? Expr_CreateStruct.toAmino(message.structExpr) : undefined;
982
+ obj.comprehension_expr = message.comprehensionExpr ? Expr_Comprehension.toAmino(message.comprehensionExpr) : undefined;
983
+ return obj;
984
+ },
985
+ fromAminoMsg(object: ExprAminoMsg): Expr {
986
+ return Expr.fromAmino(object.value);
987
+ },
988
+ fromProtoMsg(message: ExprProtoMsg): Expr {
989
+ return Expr.decode(message.value);
990
+ },
991
+ toProto(message: Expr): Uint8Array {
992
+ return Expr.encode(message).finish();
993
+ },
994
+ toProtoMsg(message: Expr): ExprProtoMsg {
995
+ return {
996
+ typeUrl: "/google.api.expr.v1beta1.Expr",
997
+ value: Expr.encode(message).finish()
998
+ };
999
+ }
1000
+ };
1001
+ function createBaseExpr_Ident(): Expr_Ident {
1002
+ return {
1003
+ name: ""
1004
+ };
1005
+ }
1006
+ export const Expr_Ident = {
1007
+ typeUrl: "/google.api.expr.v1beta1.Ident",
1008
+ encode(message: Expr_Ident, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1009
+ if (message.name !== "") {
1010
+ writer.uint32(10).string(message.name);
1011
+ }
1012
+ return writer;
1013
+ },
1014
+ decode(input: BinaryReader | Uint8Array, length?: number): Expr_Ident {
1015
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1016
+ let end = length === undefined ? reader.len : reader.pos + length;
1017
+ const message = createBaseExpr_Ident();
1018
+ while (reader.pos < end) {
1019
+ const tag = reader.uint32();
1020
+ switch (tag >>> 3) {
1021
+ case 1:
1022
+ message.name = reader.string();
1023
+ break;
1024
+ default:
1025
+ reader.skipType(tag & 7);
1026
+ break;
1027
+ }
1028
+ }
1029
+ return message;
1030
+ },
1031
+ fromPartial(object: Partial<Expr_Ident>): Expr_Ident {
1032
+ const message = createBaseExpr_Ident();
1033
+ message.name = object.name ?? "";
1034
+ return message;
1035
+ },
1036
+ fromAmino(object: Expr_IdentAmino): Expr_Ident {
1037
+ const message = createBaseExpr_Ident();
1038
+ if (object.name !== undefined && object.name !== null) {
1039
+ message.name = object.name;
1040
+ }
1041
+ return message;
1042
+ },
1043
+ toAmino(message: Expr_Ident): Expr_IdentAmino {
1044
+ const obj: any = {};
1045
+ obj.name = message.name === "" ? undefined : message.name;
1046
+ return obj;
1047
+ },
1048
+ fromAminoMsg(object: Expr_IdentAminoMsg): Expr_Ident {
1049
+ return Expr_Ident.fromAmino(object.value);
1050
+ },
1051
+ fromProtoMsg(message: Expr_IdentProtoMsg): Expr_Ident {
1052
+ return Expr_Ident.decode(message.value);
1053
+ },
1054
+ toProto(message: Expr_Ident): Uint8Array {
1055
+ return Expr_Ident.encode(message).finish();
1056
+ },
1057
+ toProtoMsg(message: Expr_Ident): Expr_IdentProtoMsg {
1058
+ return {
1059
+ typeUrl: "/google.api.expr.v1beta1.Ident",
1060
+ value: Expr_Ident.encode(message).finish()
1061
+ };
1062
+ }
1063
+ };
1064
+ function createBaseExpr_Select(): Expr_Select {
1065
+ return {
1066
+ operand: undefined,
1067
+ field: "",
1068
+ testOnly: false
1069
+ };
1070
+ }
1071
+ export const Expr_Select = {
1072
+ typeUrl: "/google.api.expr.v1beta1.Select",
1073
+ encode(message: Expr_Select, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1074
+ if (message.operand !== undefined) {
1075
+ Expr.encode(message.operand, writer.uint32(10).fork()).ldelim();
1076
+ }
1077
+ if (message.field !== "") {
1078
+ writer.uint32(18).string(message.field);
1079
+ }
1080
+ if (message.testOnly === true) {
1081
+ writer.uint32(24).bool(message.testOnly);
1082
+ }
1083
+ return writer;
1084
+ },
1085
+ decode(input: BinaryReader | Uint8Array, length?: number): Expr_Select {
1086
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1087
+ let end = length === undefined ? reader.len : reader.pos + length;
1088
+ const message = createBaseExpr_Select();
1089
+ while (reader.pos < end) {
1090
+ const tag = reader.uint32();
1091
+ switch (tag >>> 3) {
1092
+ case 1:
1093
+ message.operand = Expr.decode(reader, reader.uint32());
1094
+ break;
1095
+ case 2:
1096
+ message.field = reader.string();
1097
+ break;
1098
+ case 3:
1099
+ message.testOnly = reader.bool();
1100
+ break;
1101
+ default:
1102
+ reader.skipType(tag & 7);
1103
+ break;
1104
+ }
1105
+ }
1106
+ return message;
1107
+ },
1108
+ fromPartial(object: Partial<Expr_Select>): Expr_Select {
1109
+ const message = createBaseExpr_Select();
1110
+ message.operand = object.operand !== undefined && object.operand !== null ? Expr.fromPartial(object.operand) : undefined;
1111
+ message.field = object.field ?? "";
1112
+ message.testOnly = object.testOnly ?? false;
1113
+ return message;
1114
+ },
1115
+ fromAmino(object: Expr_SelectAmino): Expr_Select {
1116
+ const message = createBaseExpr_Select();
1117
+ if (object.operand !== undefined && object.operand !== null) {
1118
+ message.operand = Expr.fromAmino(object.operand);
1119
+ }
1120
+ if (object.field !== undefined && object.field !== null) {
1121
+ message.field = object.field;
1122
+ }
1123
+ if (object.test_only !== undefined && object.test_only !== null) {
1124
+ message.testOnly = object.test_only;
1125
+ }
1126
+ return message;
1127
+ },
1128
+ toAmino(message: Expr_Select): Expr_SelectAmino {
1129
+ const obj: any = {};
1130
+ obj.operand = message.operand ? Expr.toAmino(message.operand) : undefined;
1131
+ obj.field = message.field === "" ? undefined : message.field;
1132
+ obj.test_only = message.testOnly === false ? undefined : message.testOnly;
1133
+ return obj;
1134
+ },
1135
+ fromAminoMsg(object: Expr_SelectAminoMsg): Expr_Select {
1136
+ return Expr_Select.fromAmino(object.value);
1137
+ },
1138
+ fromProtoMsg(message: Expr_SelectProtoMsg): Expr_Select {
1139
+ return Expr_Select.decode(message.value);
1140
+ },
1141
+ toProto(message: Expr_Select): Uint8Array {
1142
+ return Expr_Select.encode(message).finish();
1143
+ },
1144
+ toProtoMsg(message: Expr_Select): Expr_SelectProtoMsg {
1145
+ return {
1146
+ typeUrl: "/google.api.expr.v1beta1.Select",
1147
+ value: Expr_Select.encode(message).finish()
1148
+ };
1149
+ }
1150
+ };
1151
+ function createBaseExpr_Call(): Expr_Call {
1152
+ return {
1153
+ target: undefined,
1154
+ function: "",
1155
+ args: []
1156
+ };
1157
+ }
1158
+ export const Expr_Call = {
1159
+ typeUrl: "/google.api.expr.v1beta1.Call",
1160
+ encode(message: Expr_Call, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1161
+ if (message.target !== undefined) {
1162
+ Expr.encode(message.target, writer.uint32(10).fork()).ldelim();
1163
+ }
1164
+ if (message.function !== "") {
1165
+ writer.uint32(18).string(message.function);
1166
+ }
1167
+ for (const v of message.args) {
1168
+ Expr.encode(v!, writer.uint32(26).fork()).ldelim();
1169
+ }
1170
+ return writer;
1171
+ },
1172
+ decode(input: BinaryReader | Uint8Array, length?: number): Expr_Call {
1173
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1174
+ let end = length === undefined ? reader.len : reader.pos + length;
1175
+ const message = createBaseExpr_Call();
1176
+ while (reader.pos < end) {
1177
+ const tag = reader.uint32();
1178
+ switch (tag >>> 3) {
1179
+ case 1:
1180
+ message.target = Expr.decode(reader, reader.uint32());
1181
+ break;
1182
+ case 2:
1183
+ message.function = reader.string();
1184
+ break;
1185
+ case 3:
1186
+ message.args.push(Expr.decode(reader, reader.uint32()));
1187
+ break;
1188
+ default:
1189
+ reader.skipType(tag & 7);
1190
+ break;
1191
+ }
1192
+ }
1193
+ return message;
1194
+ },
1195
+ fromPartial(object: Partial<Expr_Call>): Expr_Call {
1196
+ const message = createBaseExpr_Call();
1197
+ message.target = object.target !== undefined && object.target !== null ? Expr.fromPartial(object.target) : undefined;
1198
+ message.function = object.function ?? "";
1199
+ message.args = object.args?.map(e => Expr.fromPartial(e)) || [];
1200
+ return message;
1201
+ },
1202
+ fromAmino(object: Expr_CallAmino): Expr_Call {
1203
+ const message = createBaseExpr_Call();
1204
+ if (object.target !== undefined && object.target !== null) {
1205
+ message.target = Expr.fromAmino(object.target);
1206
+ }
1207
+ if (object.function !== undefined && object.function !== null) {
1208
+ message.function = object.function;
1209
+ }
1210
+ message.args = object.args?.map(e => Expr.fromAmino(e)) || [];
1211
+ return message;
1212
+ },
1213
+ toAmino(message: Expr_Call): Expr_CallAmino {
1214
+ const obj: any = {};
1215
+ obj.target = message.target ? Expr.toAmino(message.target) : undefined;
1216
+ obj.function = message.function === "" ? undefined : message.function;
1217
+ if (message.args) {
1218
+ obj.args = message.args.map(e => e ? Expr.toAmino(e) : undefined);
1219
+ } else {
1220
+ obj.args = message.args;
1221
+ }
1222
+ return obj;
1223
+ },
1224
+ fromAminoMsg(object: Expr_CallAminoMsg): Expr_Call {
1225
+ return Expr_Call.fromAmino(object.value);
1226
+ },
1227
+ fromProtoMsg(message: Expr_CallProtoMsg): Expr_Call {
1228
+ return Expr_Call.decode(message.value);
1229
+ },
1230
+ toProto(message: Expr_Call): Uint8Array {
1231
+ return Expr_Call.encode(message).finish();
1232
+ },
1233
+ toProtoMsg(message: Expr_Call): Expr_CallProtoMsg {
1234
+ return {
1235
+ typeUrl: "/google.api.expr.v1beta1.Call",
1236
+ value: Expr_Call.encode(message).finish()
1237
+ };
1238
+ }
1239
+ };
1240
+ function createBaseExpr_CreateList(): Expr_CreateList {
1241
+ return {
1242
+ elements: []
1243
+ };
1244
+ }
1245
+ export const Expr_CreateList = {
1246
+ typeUrl: "/google.api.expr.v1beta1.CreateList",
1247
+ encode(message: Expr_CreateList, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1248
+ for (const v of message.elements) {
1249
+ Expr.encode(v!, writer.uint32(10).fork()).ldelim();
1250
+ }
1251
+ return writer;
1252
+ },
1253
+ decode(input: BinaryReader | Uint8Array, length?: number): Expr_CreateList {
1254
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1255
+ let end = length === undefined ? reader.len : reader.pos + length;
1256
+ const message = createBaseExpr_CreateList();
1257
+ while (reader.pos < end) {
1258
+ const tag = reader.uint32();
1259
+ switch (tag >>> 3) {
1260
+ case 1:
1261
+ message.elements.push(Expr.decode(reader, reader.uint32()));
1262
+ break;
1263
+ default:
1264
+ reader.skipType(tag & 7);
1265
+ break;
1266
+ }
1267
+ }
1268
+ return message;
1269
+ },
1270
+ fromPartial(object: Partial<Expr_CreateList>): Expr_CreateList {
1271
+ const message = createBaseExpr_CreateList();
1272
+ message.elements = object.elements?.map(e => Expr.fromPartial(e)) || [];
1273
+ return message;
1274
+ },
1275
+ fromAmino(object: Expr_CreateListAmino): Expr_CreateList {
1276
+ const message = createBaseExpr_CreateList();
1277
+ message.elements = object.elements?.map(e => Expr.fromAmino(e)) || [];
1278
+ return message;
1279
+ },
1280
+ toAmino(message: Expr_CreateList): Expr_CreateListAmino {
1281
+ const obj: any = {};
1282
+ if (message.elements) {
1283
+ obj.elements = message.elements.map(e => e ? Expr.toAmino(e) : undefined);
1284
+ } else {
1285
+ obj.elements = message.elements;
1286
+ }
1287
+ return obj;
1288
+ },
1289
+ fromAminoMsg(object: Expr_CreateListAminoMsg): Expr_CreateList {
1290
+ return Expr_CreateList.fromAmino(object.value);
1291
+ },
1292
+ fromProtoMsg(message: Expr_CreateListProtoMsg): Expr_CreateList {
1293
+ return Expr_CreateList.decode(message.value);
1294
+ },
1295
+ toProto(message: Expr_CreateList): Uint8Array {
1296
+ return Expr_CreateList.encode(message).finish();
1297
+ },
1298
+ toProtoMsg(message: Expr_CreateList): Expr_CreateListProtoMsg {
1299
+ return {
1300
+ typeUrl: "/google.api.expr.v1beta1.CreateList",
1301
+ value: Expr_CreateList.encode(message).finish()
1302
+ };
1303
+ }
1304
+ };
1305
+ function createBaseExpr_CreateStruct(): Expr_CreateStruct {
1306
+ return {
1307
+ type: "",
1308
+ entries: []
1309
+ };
1310
+ }
1311
+ export const Expr_CreateStruct = {
1312
+ typeUrl: "/google.api.expr.v1beta1.CreateStruct",
1313
+ encode(message: Expr_CreateStruct, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1314
+ if (message.type !== "") {
1315
+ writer.uint32(10).string(message.type);
1316
+ }
1317
+ for (const v of message.entries) {
1318
+ Expr_CreateStruct_Entry.encode(v!, writer.uint32(18).fork()).ldelim();
1319
+ }
1320
+ return writer;
1321
+ },
1322
+ decode(input: BinaryReader | Uint8Array, length?: number): Expr_CreateStruct {
1323
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1324
+ let end = length === undefined ? reader.len : reader.pos + length;
1325
+ const message = createBaseExpr_CreateStruct();
1326
+ while (reader.pos < end) {
1327
+ const tag = reader.uint32();
1328
+ switch (tag >>> 3) {
1329
+ case 1:
1330
+ message.type = reader.string();
1331
+ break;
1332
+ case 2:
1333
+ message.entries.push(Expr_CreateStruct_Entry.decode(reader, reader.uint32()));
1334
+ break;
1335
+ default:
1336
+ reader.skipType(tag & 7);
1337
+ break;
1338
+ }
1339
+ }
1340
+ return message;
1341
+ },
1342
+ fromPartial(object: Partial<Expr_CreateStruct>): Expr_CreateStruct {
1343
+ const message = createBaseExpr_CreateStruct();
1344
+ message.type = object.type ?? "";
1345
+ message.entries = object.entries?.map(e => Expr_CreateStruct_Entry.fromPartial(e)) || [];
1346
+ return message;
1347
+ },
1348
+ fromAmino(object: Expr_CreateStructAmino): Expr_CreateStruct {
1349
+ const message = createBaseExpr_CreateStruct();
1350
+ if (object.type !== undefined && object.type !== null) {
1351
+ message.type = object.type;
1352
+ }
1353
+ message.entries = object.entries?.map(e => Expr_CreateStruct_Entry.fromAmino(e)) || [];
1354
+ return message;
1355
+ },
1356
+ toAmino(message: Expr_CreateStruct): Expr_CreateStructAmino {
1357
+ const obj: any = {};
1358
+ obj.type = message.type === "" ? undefined : message.type;
1359
+ if (message.entries) {
1360
+ obj.entries = message.entries.map(e => e ? Expr_CreateStruct_Entry.toAmino(e) : undefined);
1361
+ } else {
1362
+ obj.entries = message.entries;
1363
+ }
1364
+ return obj;
1365
+ },
1366
+ fromAminoMsg(object: Expr_CreateStructAminoMsg): Expr_CreateStruct {
1367
+ return Expr_CreateStruct.fromAmino(object.value);
1368
+ },
1369
+ fromProtoMsg(message: Expr_CreateStructProtoMsg): Expr_CreateStruct {
1370
+ return Expr_CreateStruct.decode(message.value);
1371
+ },
1372
+ toProto(message: Expr_CreateStruct): Uint8Array {
1373
+ return Expr_CreateStruct.encode(message).finish();
1374
+ },
1375
+ toProtoMsg(message: Expr_CreateStruct): Expr_CreateStructProtoMsg {
1376
+ return {
1377
+ typeUrl: "/google.api.expr.v1beta1.CreateStruct",
1378
+ value: Expr_CreateStruct.encode(message).finish()
1379
+ };
1380
+ }
1381
+ };
1382
+ function createBaseExpr_CreateStruct_Entry(): Expr_CreateStruct_Entry {
1383
+ return {
1384
+ id: 0,
1385
+ fieldKey: undefined,
1386
+ mapKey: undefined,
1387
+ value: undefined
1388
+ };
1389
+ }
1390
+ export const Expr_CreateStruct_Entry = {
1391
+ typeUrl: "/google.api.expr.v1beta1.Entry",
1392
+ encode(message: Expr_CreateStruct_Entry, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1393
+ if (message.id !== 0) {
1394
+ writer.uint32(8).int32(message.id);
1395
+ }
1396
+ if (message.fieldKey !== undefined) {
1397
+ writer.uint32(18).string(message.fieldKey);
1398
+ }
1399
+ if (message.mapKey !== undefined) {
1400
+ Expr.encode(message.mapKey, writer.uint32(26).fork()).ldelim();
1401
+ }
1402
+ if (message.value !== undefined) {
1403
+ Expr.encode(message.value, writer.uint32(34).fork()).ldelim();
1404
+ }
1405
+ return writer;
1406
+ },
1407
+ decode(input: BinaryReader | Uint8Array, length?: number): Expr_CreateStruct_Entry {
1408
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1409
+ let end = length === undefined ? reader.len : reader.pos + length;
1410
+ const message = createBaseExpr_CreateStruct_Entry();
1411
+ while (reader.pos < end) {
1412
+ const tag = reader.uint32();
1413
+ switch (tag >>> 3) {
1414
+ case 1:
1415
+ message.id = reader.int32();
1416
+ break;
1417
+ case 2:
1418
+ message.fieldKey = reader.string();
1419
+ break;
1420
+ case 3:
1421
+ message.mapKey = Expr.decode(reader, reader.uint32());
1422
+ break;
1423
+ case 4:
1424
+ message.value = Expr.decode(reader, reader.uint32());
1425
+ break;
1426
+ default:
1427
+ reader.skipType(tag & 7);
1428
+ break;
1429
+ }
1430
+ }
1431
+ return message;
1432
+ },
1433
+ fromPartial(object: Partial<Expr_CreateStruct_Entry>): Expr_CreateStruct_Entry {
1434
+ const message = createBaseExpr_CreateStruct_Entry();
1435
+ message.id = object.id ?? 0;
1436
+ message.fieldKey = object.fieldKey ?? undefined;
1437
+ message.mapKey = object.mapKey !== undefined && object.mapKey !== null ? Expr.fromPartial(object.mapKey) : undefined;
1438
+ message.value = object.value !== undefined && object.value !== null ? Expr.fromPartial(object.value) : undefined;
1439
+ return message;
1440
+ },
1441
+ fromAmino(object: Expr_CreateStruct_EntryAmino): Expr_CreateStruct_Entry {
1442
+ const message = createBaseExpr_CreateStruct_Entry();
1443
+ if (object.id !== undefined && object.id !== null) {
1444
+ message.id = object.id;
1445
+ }
1446
+ if (object.field_key !== undefined && object.field_key !== null) {
1447
+ message.fieldKey = object.field_key;
1448
+ }
1449
+ if (object.map_key !== undefined && object.map_key !== null) {
1450
+ message.mapKey = Expr.fromAmino(object.map_key);
1451
+ }
1452
+ if (object.value !== undefined && object.value !== null) {
1453
+ message.value = Expr.fromAmino(object.value);
1454
+ }
1455
+ return message;
1456
+ },
1457
+ toAmino(message: Expr_CreateStruct_Entry): Expr_CreateStruct_EntryAmino {
1458
+ const obj: any = {};
1459
+ obj.id = message.id === 0 ? undefined : message.id;
1460
+ obj.field_key = message.fieldKey === null ? undefined : message.fieldKey;
1461
+ obj.map_key = message.mapKey ? Expr.toAmino(message.mapKey) : undefined;
1462
+ obj.value = message.value ? Expr.toAmino(message.value) : undefined;
1463
+ return obj;
1464
+ },
1465
+ fromAminoMsg(object: Expr_CreateStruct_EntryAminoMsg): Expr_CreateStruct_Entry {
1466
+ return Expr_CreateStruct_Entry.fromAmino(object.value);
1467
+ },
1468
+ fromProtoMsg(message: Expr_CreateStruct_EntryProtoMsg): Expr_CreateStruct_Entry {
1469
+ return Expr_CreateStruct_Entry.decode(message.value);
1470
+ },
1471
+ toProto(message: Expr_CreateStruct_Entry): Uint8Array {
1472
+ return Expr_CreateStruct_Entry.encode(message).finish();
1473
+ },
1474
+ toProtoMsg(message: Expr_CreateStruct_Entry): Expr_CreateStruct_EntryProtoMsg {
1475
+ return {
1476
+ typeUrl: "/google.api.expr.v1beta1.Entry",
1477
+ value: Expr_CreateStruct_Entry.encode(message).finish()
1478
+ };
1479
+ }
1480
+ };
1481
+ function createBaseExpr_Comprehension(): Expr_Comprehension {
1482
+ return {
1483
+ iterVar: "",
1484
+ iterRange: undefined,
1485
+ accuVar: "",
1486
+ accuInit: undefined,
1487
+ loopCondition: undefined,
1488
+ loopStep: undefined,
1489
+ result: undefined
1490
+ };
1491
+ }
1492
+ export const Expr_Comprehension = {
1493
+ typeUrl: "/google.api.expr.v1beta1.Comprehension",
1494
+ encode(message: Expr_Comprehension, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1495
+ if (message.iterVar !== "") {
1496
+ writer.uint32(10).string(message.iterVar);
1497
+ }
1498
+ if (message.iterRange !== undefined) {
1499
+ Expr.encode(message.iterRange, writer.uint32(18).fork()).ldelim();
1500
+ }
1501
+ if (message.accuVar !== "") {
1502
+ writer.uint32(26).string(message.accuVar);
1503
+ }
1504
+ if (message.accuInit !== undefined) {
1505
+ Expr.encode(message.accuInit, writer.uint32(34).fork()).ldelim();
1506
+ }
1507
+ if (message.loopCondition !== undefined) {
1508
+ Expr.encode(message.loopCondition, writer.uint32(42).fork()).ldelim();
1509
+ }
1510
+ if (message.loopStep !== undefined) {
1511
+ Expr.encode(message.loopStep, writer.uint32(50).fork()).ldelim();
1512
+ }
1513
+ if (message.result !== undefined) {
1514
+ Expr.encode(message.result, writer.uint32(58).fork()).ldelim();
1515
+ }
1516
+ return writer;
1517
+ },
1518
+ decode(input: BinaryReader | Uint8Array, length?: number): Expr_Comprehension {
1519
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1520
+ let end = length === undefined ? reader.len : reader.pos + length;
1521
+ const message = createBaseExpr_Comprehension();
1522
+ while (reader.pos < end) {
1523
+ const tag = reader.uint32();
1524
+ switch (tag >>> 3) {
1525
+ case 1:
1526
+ message.iterVar = reader.string();
1527
+ break;
1528
+ case 2:
1529
+ message.iterRange = Expr.decode(reader, reader.uint32());
1530
+ break;
1531
+ case 3:
1532
+ message.accuVar = reader.string();
1533
+ break;
1534
+ case 4:
1535
+ message.accuInit = Expr.decode(reader, reader.uint32());
1536
+ break;
1537
+ case 5:
1538
+ message.loopCondition = Expr.decode(reader, reader.uint32());
1539
+ break;
1540
+ case 6:
1541
+ message.loopStep = Expr.decode(reader, reader.uint32());
1542
+ break;
1543
+ case 7:
1544
+ message.result = Expr.decode(reader, reader.uint32());
1545
+ break;
1546
+ default:
1547
+ reader.skipType(tag & 7);
1548
+ break;
1549
+ }
1550
+ }
1551
+ return message;
1552
+ },
1553
+ fromPartial(object: Partial<Expr_Comprehension>): Expr_Comprehension {
1554
+ const message = createBaseExpr_Comprehension();
1555
+ message.iterVar = object.iterVar ?? "";
1556
+ message.iterRange = object.iterRange !== undefined && object.iterRange !== null ? Expr.fromPartial(object.iterRange) : undefined;
1557
+ message.accuVar = object.accuVar ?? "";
1558
+ message.accuInit = object.accuInit !== undefined && object.accuInit !== null ? Expr.fromPartial(object.accuInit) : undefined;
1559
+ message.loopCondition = object.loopCondition !== undefined && object.loopCondition !== null ? Expr.fromPartial(object.loopCondition) : undefined;
1560
+ message.loopStep = object.loopStep !== undefined && object.loopStep !== null ? Expr.fromPartial(object.loopStep) : undefined;
1561
+ message.result = object.result !== undefined && object.result !== null ? Expr.fromPartial(object.result) : undefined;
1562
+ return message;
1563
+ },
1564
+ fromAmino(object: Expr_ComprehensionAmino): Expr_Comprehension {
1565
+ const message = createBaseExpr_Comprehension();
1566
+ if (object.iter_var !== undefined && object.iter_var !== null) {
1567
+ message.iterVar = object.iter_var;
1568
+ }
1569
+ if (object.iter_range !== undefined && object.iter_range !== null) {
1570
+ message.iterRange = Expr.fromAmino(object.iter_range);
1571
+ }
1572
+ if (object.accu_var !== undefined && object.accu_var !== null) {
1573
+ message.accuVar = object.accu_var;
1574
+ }
1575
+ if (object.accu_init !== undefined && object.accu_init !== null) {
1576
+ message.accuInit = Expr.fromAmino(object.accu_init);
1577
+ }
1578
+ if (object.loop_condition !== undefined && object.loop_condition !== null) {
1579
+ message.loopCondition = Expr.fromAmino(object.loop_condition);
1580
+ }
1581
+ if (object.loop_step !== undefined && object.loop_step !== null) {
1582
+ message.loopStep = Expr.fromAmino(object.loop_step);
1583
+ }
1584
+ if (object.result !== undefined && object.result !== null) {
1585
+ message.result = Expr.fromAmino(object.result);
1586
+ }
1587
+ return message;
1588
+ },
1589
+ toAmino(message: Expr_Comprehension): Expr_ComprehensionAmino {
1590
+ const obj: any = {};
1591
+ obj.iter_var = message.iterVar === "" ? undefined : message.iterVar;
1592
+ obj.iter_range = message.iterRange ? Expr.toAmino(message.iterRange) : undefined;
1593
+ obj.accu_var = message.accuVar === "" ? undefined : message.accuVar;
1594
+ obj.accu_init = message.accuInit ? Expr.toAmino(message.accuInit) : undefined;
1595
+ obj.loop_condition = message.loopCondition ? Expr.toAmino(message.loopCondition) : undefined;
1596
+ obj.loop_step = message.loopStep ? Expr.toAmino(message.loopStep) : undefined;
1597
+ obj.result = message.result ? Expr.toAmino(message.result) : undefined;
1598
+ return obj;
1599
+ },
1600
+ fromAminoMsg(object: Expr_ComprehensionAminoMsg): Expr_Comprehension {
1601
+ return Expr_Comprehension.fromAmino(object.value);
1602
+ },
1603
+ fromProtoMsg(message: Expr_ComprehensionProtoMsg): Expr_Comprehension {
1604
+ return Expr_Comprehension.decode(message.value);
1605
+ },
1606
+ toProto(message: Expr_Comprehension): Uint8Array {
1607
+ return Expr_Comprehension.encode(message).finish();
1608
+ },
1609
+ toProtoMsg(message: Expr_Comprehension): Expr_ComprehensionProtoMsg {
1610
+ return {
1611
+ typeUrl: "/google.api.expr.v1beta1.Comprehension",
1612
+ value: Expr_Comprehension.encode(message).finish()
1613
+ };
1614
+ }
1615
+ };
1616
+ function createBaseLiteral(): Literal {
1617
+ return {
1618
+ nullValue: undefined,
1619
+ boolValue: undefined,
1620
+ int64Value: undefined,
1621
+ uint64Value: undefined,
1622
+ doubleValue: undefined,
1623
+ stringValue: undefined,
1624
+ bytesValue: undefined
1625
+ };
1626
+ }
1627
+ export const Literal = {
1628
+ typeUrl: "/google.api.expr.v1beta1.Literal",
1629
+ encode(message: Literal, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1630
+ if (message.nullValue !== undefined) {
1631
+ writer.uint32(8).int32(message.nullValue);
1632
+ }
1633
+ if (message.boolValue !== undefined) {
1634
+ writer.uint32(16).bool(message.boolValue);
1635
+ }
1636
+ if (message.int64Value !== undefined) {
1637
+ writer.uint32(24).int64(message.int64Value);
1638
+ }
1639
+ if (message.uint64Value !== undefined) {
1640
+ writer.uint32(32).uint64(message.uint64Value);
1641
+ }
1642
+ if (message.doubleValue !== undefined) {
1643
+ writer.uint32(41).double(message.doubleValue);
1644
+ }
1645
+ if (message.stringValue !== undefined) {
1646
+ writer.uint32(50).string(message.stringValue);
1647
+ }
1648
+ if (message.bytesValue !== undefined) {
1649
+ writer.uint32(58).bytes(message.bytesValue);
1650
+ }
1651
+ return writer;
1652
+ },
1653
+ decode(input: BinaryReader | Uint8Array, length?: number): Literal {
1654
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1655
+ let end = length === undefined ? reader.len : reader.pos + length;
1656
+ const message = createBaseLiteral();
1657
+ while (reader.pos < end) {
1658
+ const tag = reader.uint32();
1659
+ switch (tag >>> 3) {
1660
+ case 1:
1661
+ message.nullValue = reader.int32() as any;
1662
+ break;
1663
+ case 2:
1664
+ message.boolValue = reader.bool();
1665
+ break;
1666
+ case 3:
1667
+ message.int64Value = reader.int64();
1668
+ break;
1669
+ case 4:
1670
+ message.uint64Value = reader.uint64();
1671
+ break;
1672
+ case 5:
1673
+ message.doubleValue = reader.double();
1674
+ break;
1675
+ case 6:
1676
+ message.stringValue = reader.string();
1677
+ break;
1678
+ case 7:
1679
+ message.bytesValue = reader.bytes();
1680
+ break;
1681
+ default:
1682
+ reader.skipType(tag & 7);
1683
+ break;
1684
+ }
1685
+ }
1686
+ return message;
1687
+ },
1688
+ fromPartial(object: Partial<Literal>): Literal {
1689
+ const message = createBaseLiteral();
1690
+ message.nullValue = object.nullValue ?? undefined;
1691
+ message.boolValue = object.boolValue ?? undefined;
1692
+ message.int64Value = object.int64Value !== undefined && object.int64Value !== null ? BigInt(object.int64Value.toString()) : undefined;
1693
+ message.uint64Value = object.uint64Value !== undefined && object.uint64Value !== null ? BigInt(object.uint64Value.toString()) : undefined;
1694
+ message.doubleValue = object.doubleValue ?? undefined;
1695
+ message.stringValue = object.stringValue ?? undefined;
1696
+ message.bytesValue = object.bytesValue ?? undefined;
1697
+ return message;
1698
+ },
1699
+ fromAmino(object: LiteralAmino): Literal {
1700
+ const message = createBaseLiteral();
1701
+ if (object.null_value !== undefined && object.null_value !== null) {
1702
+ message.nullValue = object.null_value;
1703
+ }
1704
+ if (object.bool_value !== undefined && object.bool_value !== null) {
1705
+ message.boolValue = object.bool_value;
1706
+ }
1707
+ if (object.int64_value !== undefined && object.int64_value !== null) {
1708
+ message.int64Value = BigInt(object.int64_value);
1709
+ }
1710
+ if (object.uint64_value !== undefined && object.uint64_value !== null) {
1711
+ message.uint64Value = BigInt(object.uint64_value);
1712
+ }
1713
+ if (object.double_value !== undefined && object.double_value !== null) {
1714
+ message.doubleValue = object.double_value;
1715
+ }
1716
+ if (object.string_value !== undefined && object.string_value !== null) {
1717
+ message.stringValue = object.string_value;
1718
+ }
1719
+ if (object.bytes_value !== undefined && object.bytes_value !== null) {
1720
+ message.bytesValue = bytesFromBase64(object.bytes_value);
1721
+ }
1722
+ return message;
1723
+ },
1724
+ toAmino(message: Literal): LiteralAmino {
1725
+ const obj: any = {};
1726
+ obj.null_value = message.nullValue === null ? undefined : message.nullValue;
1727
+ obj.bool_value = message.boolValue === null ? undefined : message.boolValue;
1728
+ obj.int64_value = message.int64Value !== BigInt(0) ? message.int64Value?.toString() : undefined;
1729
+ obj.uint64_value = message.uint64Value !== BigInt(0) ? message.uint64Value?.toString() : undefined;
1730
+ obj.double_value = message.doubleValue === null ? undefined : message.doubleValue;
1731
+ obj.string_value = message.stringValue === null ? undefined : message.stringValue;
1732
+ obj.bytes_value = message.bytesValue ? base64FromBytes(message.bytesValue) : undefined;
1733
+ return obj;
1734
+ },
1735
+ fromAminoMsg(object: LiteralAminoMsg): Literal {
1736
+ return Literal.fromAmino(object.value);
1737
+ },
1738
+ fromProtoMsg(message: LiteralProtoMsg): Literal {
1739
+ return Literal.decode(message.value);
1740
+ },
1741
+ toProto(message: Literal): Uint8Array {
1742
+ return Literal.encode(message).finish();
1743
+ },
1744
+ toProtoMsg(message: Literal): LiteralProtoMsg {
1745
+ return {
1746
+ typeUrl: "/google.api.expr.v1beta1.Literal",
1747
+ value: Literal.encode(message).finish()
1748
+ };
1749
+ }
1750
+ };