@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,2983 @@
1
+ //@ts-nocheck
2
+ import { NullValue } from "../../../protobuf/struct";
3
+ import { Duration, DurationAmino, DurationSDKType } from "../../../protobuf/duration";
4
+ import { Timestamp } from "../../../protobuf/timestamp";
5
+ import { BinaryReader, BinaryWriter } from "../../../../binary";
6
+ import { toTimestamp, fromTimestamp, bytesFromBase64, base64FromBytes } from "../../../../helpers";
7
+ /** CEL component specifier. */
8
+ export enum SourceInfo_Extension_Component {
9
+ /** COMPONENT_UNSPECIFIED - Unspecified, default. */
10
+ COMPONENT_UNSPECIFIED = 0,
11
+ /** COMPONENT_PARSER - Parser. Converts a CEL string to an AST. */
12
+ COMPONENT_PARSER = 1,
13
+ /**
14
+ * COMPONENT_TYPE_CHECKER - Type checker. Checks that references in an AST are defined and types
15
+ * agree.
16
+ */
17
+ COMPONENT_TYPE_CHECKER = 2,
18
+ /**
19
+ * COMPONENT_RUNTIME - Runtime. Evaluates a parsed and optionally checked CEL AST against a
20
+ * context.
21
+ */
22
+ COMPONENT_RUNTIME = 3,
23
+ UNRECOGNIZED = -1,
24
+ }
25
+ export const SourceInfo_Extension_ComponentSDKType = SourceInfo_Extension_Component;
26
+ export const SourceInfo_Extension_ComponentAmino = SourceInfo_Extension_Component;
27
+ export function sourceInfo_Extension_ComponentFromJSON(object: any): SourceInfo_Extension_Component {
28
+ switch (object) {
29
+ case 0:
30
+ case "COMPONENT_UNSPECIFIED":
31
+ return SourceInfo_Extension_Component.COMPONENT_UNSPECIFIED;
32
+ case 1:
33
+ case "COMPONENT_PARSER":
34
+ return SourceInfo_Extension_Component.COMPONENT_PARSER;
35
+ case 2:
36
+ case "COMPONENT_TYPE_CHECKER":
37
+ return SourceInfo_Extension_Component.COMPONENT_TYPE_CHECKER;
38
+ case 3:
39
+ case "COMPONENT_RUNTIME":
40
+ return SourceInfo_Extension_Component.COMPONENT_RUNTIME;
41
+ case -1:
42
+ case "UNRECOGNIZED":
43
+ default:
44
+ return SourceInfo_Extension_Component.UNRECOGNIZED;
45
+ }
46
+ }
47
+ export function sourceInfo_Extension_ComponentToJSON(object: SourceInfo_Extension_Component): string {
48
+ switch (object) {
49
+ case SourceInfo_Extension_Component.COMPONENT_UNSPECIFIED:
50
+ return "COMPONENT_UNSPECIFIED";
51
+ case SourceInfo_Extension_Component.COMPONENT_PARSER:
52
+ return "COMPONENT_PARSER";
53
+ case SourceInfo_Extension_Component.COMPONENT_TYPE_CHECKER:
54
+ return "COMPONENT_TYPE_CHECKER";
55
+ case SourceInfo_Extension_Component.COMPONENT_RUNTIME:
56
+ return "COMPONENT_RUNTIME";
57
+ case SourceInfo_Extension_Component.UNRECOGNIZED:
58
+ default:
59
+ return "UNRECOGNIZED";
60
+ }
61
+ }
62
+ /** An expression together with source information as returned by the parser. */
63
+ export interface ParsedExpr {
64
+ /** The parsed expression. */
65
+ expr?: Expr;
66
+ /** The source info derived from input that generated the parsed `expr`. */
67
+ sourceInfo?: SourceInfo;
68
+ }
69
+ export interface ParsedExprProtoMsg {
70
+ typeUrl: "/google.api.expr.v1alpha1.ParsedExpr";
71
+ value: Uint8Array;
72
+ }
73
+ /**
74
+ * An expression together with source information as returned by the parser.
75
+ * @name ParsedExprAmino
76
+ * @package google.api.expr.v1alpha1
77
+ * @see proto type: google.api.expr.v1alpha1.ParsedExpr
78
+ */
79
+ export interface ParsedExprAmino {
80
+ /**
81
+ * The parsed expression.
82
+ */
83
+ expr?: ExprAmino;
84
+ /**
85
+ * The source info derived from input that generated the parsed `expr`.
86
+ */
87
+ source_info?: SourceInfoAmino;
88
+ }
89
+ export interface ParsedExprAminoMsg {
90
+ type: "/google.api.expr.v1alpha1.ParsedExpr";
91
+ value: ParsedExprAmino;
92
+ }
93
+ /** An expression together with source information as returned by the parser. */
94
+ export interface ParsedExprSDKType {
95
+ expr?: ExprSDKType;
96
+ source_info?: SourceInfoSDKType;
97
+ }
98
+ /**
99
+ * An abstract representation of a common expression.
100
+ *
101
+ * Expressions are abstractly represented as a collection of identifiers,
102
+ * select statements, function calls, literals, and comprehensions. All
103
+ * operators with the exception of the '.' operator are modelled as function
104
+ * calls. This makes it easy to represent new operators into the existing AST.
105
+ *
106
+ * All references within expressions must resolve to a
107
+ * [Decl][google.api.expr.v1alpha1.Decl] provided at type-check for an
108
+ * expression to be valid. A reference may either be a bare identifier `name` or
109
+ * a qualified identifier `google.api.name`. References may either refer to a
110
+ * value or a function declaration.
111
+ *
112
+ * For example, the expression `google.api.name.startsWith('expr')` references
113
+ * the declaration `google.api.name` within a
114
+ * [Expr.Select][google.api.expr.v1alpha1.Expr.Select] expression, and the
115
+ * function declaration `startsWith`.
116
+ */
117
+ export interface Expr {
118
+ /**
119
+ * Required. An id assigned to this node by the parser which is unique in a
120
+ * given expression tree. This is used to associate type information and other
121
+ * attributes to a node in the parse tree.
122
+ */
123
+ id: bigint;
124
+ /** A literal expression. */
125
+ constExpr?: Constant;
126
+ /** An identifier expression. */
127
+ identExpr?: Expr_Ident;
128
+ /** A field selection expression, e.g. `request.auth`. */
129
+ selectExpr?: Expr_Select;
130
+ /** A call expression, including calls to predefined functions and operators. */
131
+ callExpr?: Expr_Call;
132
+ /** A list creation expression. */
133
+ listExpr?: Expr_CreateList;
134
+ /** A map or message creation expression. */
135
+ structExpr?: Expr_CreateStruct;
136
+ /** A comprehension expression. */
137
+ comprehensionExpr?: Expr_Comprehension;
138
+ }
139
+ export interface ExprProtoMsg {
140
+ typeUrl: "/google.api.expr.v1alpha1.Expr";
141
+ value: Uint8Array;
142
+ }
143
+ /**
144
+ * An abstract representation of a common expression.
145
+ *
146
+ * Expressions are abstractly represented as a collection of identifiers,
147
+ * select statements, function calls, literals, and comprehensions. All
148
+ * operators with the exception of the '.' operator are modelled as function
149
+ * calls. This makes it easy to represent new operators into the existing AST.
150
+ *
151
+ * All references within expressions must resolve to a
152
+ * [Decl][google.api.expr.v1alpha1.Decl] provided at type-check for an
153
+ * expression to be valid. A reference may either be a bare identifier `name` or
154
+ * a qualified identifier `google.api.name`. References may either refer to a
155
+ * value or a function declaration.
156
+ *
157
+ * For example, the expression `google.api.name.startsWith('expr')` references
158
+ * the declaration `google.api.name` within a
159
+ * [Expr.Select][google.api.expr.v1alpha1.Expr.Select] expression, and the
160
+ * function declaration `startsWith`.
161
+ * @name ExprAmino
162
+ * @package google.api.expr.v1alpha1
163
+ * @see proto type: google.api.expr.v1alpha1.Expr
164
+ */
165
+ export interface ExprAmino {
166
+ /**
167
+ * Required. An id assigned to this node by the parser which is unique in a
168
+ * given expression tree. This is used to associate type information and other
169
+ * attributes to a node in the parse tree.
170
+ */
171
+ id?: string;
172
+ /**
173
+ * A literal expression.
174
+ */
175
+ const_expr?: ConstantAmino;
176
+ /**
177
+ * An identifier expression.
178
+ */
179
+ ident_expr?: Expr_IdentAmino;
180
+ /**
181
+ * A field selection expression, e.g. `request.auth`.
182
+ */
183
+ select_expr?: Expr_SelectAmino;
184
+ /**
185
+ * A call expression, including calls to predefined functions and operators.
186
+ */
187
+ call_expr?: Expr_CallAmino;
188
+ /**
189
+ * A list creation expression.
190
+ */
191
+ list_expr?: Expr_CreateListAmino;
192
+ /**
193
+ * A map or message creation expression.
194
+ */
195
+ struct_expr?: Expr_CreateStructAmino;
196
+ /**
197
+ * A comprehension expression.
198
+ */
199
+ comprehension_expr?: Expr_ComprehensionAmino;
200
+ }
201
+ export interface ExprAminoMsg {
202
+ type: "/google.api.expr.v1alpha1.Expr";
203
+ value: ExprAmino;
204
+ }
205
+ /**
206
+ * An abstract representation of a common expression.
207
+ *
208
+ * Expressions are abstractly represented as a collection of identifiers,
209
+ * select statements, function calls, literals, and comprehensions. All
210
+ * operators with the exception of the '.' operator are modelled as function
211
+ * calls. This makes it easy to represent new operators into the existing AST.
212
+ *
213
+ * All references within expressions must resolve to a
214
+ * [Decl][google.api.expr.v1alpha1.Decl] provided at type-check for an
215
+ * expression to be valid. A reference may either be a bare identifier `name` or
216
+ * a qualified identifier `google.api.name`. References may either refer to a
217
+ * value or a function declaration.
218
+ *
219
+ * For example, the expression `google.api.name.startsWith('expr')` references
220
+ * the declaration `google.api.name` within a
221
+ * [Expr.Select][google.api.expr.v1alpha1.Expr.Select] expression, and the
222
+ * function declaration `startsWith`.
223
+ */
224
+ export interface ExprSDKType {
225
+ id: bigint;
226
+ const_expr?: ConstantSDKType;
227
+ ident_expr?: Expr_IdentSDKType;
228
+ select_expr?: Expr_SelectSDKType;
229
+ call_expr?: Expr_CallSDKType;
230
+ list_expr?: Expr_CreateListSDKType;
231
+ struct_expr?: Expr_CreateStructSDKType;
232
+ comprehension_expr?: Expr_ComprehensionSDKType;
233
+ }
234
+ /** An identifier expression. e.g. `request`. */
235
+ export interface Expr_Ident {
236
+ /**
237
+ * Required. Holds a single, unqualified identifier, possibly preceded by a
238
+ * '.'.
239
+ *
240
+ * Qualified names are represented by the
241
+ * [Expr.Select][google.api.expr.v1alpha1.Expr.Select] expression.
242
+ */
243
+ name: string;
244
+ }
245
+ export interface Expr_IdentProtoMsg {
246
+ typeUrl: "/google.api.expr.v1alpha1.Ident";
247
+ value: Uint8Array;
248
+ }
249
+ /**
250
+ * An identifier expression. e.g. `request`.
251
+ * @name Expr_IdentAmino
252
+ * @package google.api.expr.v1alpha1
253
+ * @see proto type: google.api.expr.v1alpha1.Expr_Ident
254
+ */
255
+ export interface Expr_IdentAmino {
256
+ /**
257
+ * Required. Holds a single, unqualified identifier, possibly preceded by a
258
+ * '.'.
259
+ *
260
+ * Qualified names are represented by the
261
+ * [Expr.Select][google.api.expr.v1alpha1.Expr.Select] expression.
262
+ */
263
+ name?: string;
264
+ }
265
+ export interface Expr_IdentAminoMsg {
266
+ type: "/google.api.expr.v1alpha1.Ident";
267
+ value: Expr_IdentAmino;
268
+ }
269
+ /** An identifier expression. e.g. `request`. */
270
+ export interface Expr_IdentSDKType {
271
+ name: string;
272
+ }
273
+ /** A field selection expression. e.g. `request.auth`. */
274
+ export interface Expr_Select {
275
+ /**
276
+ * Required. The target of the selection expression.
277
+ *
278
+ * For example, in the select expression `request.auth`, the `request`
279
+ * portion of the expression is the `operand`.
280
+ */
281
+ operand?: Expr;
282
+ /**
283
+ * Required. The name of the field to select.
284
+ *
285
+ * For example, in the select expression `request.auth`, the `auth` portion
286
+ * of the expression would be the `field`.
287
+ */
288
+ field: string;
289
+ /**
290
+ * Whether the select is to be interpreted as a field presence test.
291
+ *
292
+ * This results from the macro `has(request.auth)`.
293
+ */
294
+ testOnly: boolean;
295
+ }
296
+ export interface Expr_SelectProtoMsg {
297
+ typeUrl: "/google.api.expr.v1alpha1.Select";
298
+ value: Uint8Array;
299
+ }
300
+ /**
301
+ * A field selection expression. e.g. `request.auth`.
302
+ * @name Expr_SelectAmino
303
+ * @package google.api.expr.v1alpha1
304
+ * @see proto type: google.api.expr.v1alpha1.Expr_Select
305
+ */
306
+ export interface Expr_SelectAmino {
307
+ /**
308
+ * Required. The target of the selection expression.
309
+ *
310
+ * For example, in the select expression `request.auth`, the `request`
311
+ * portion of the expression is the `operand`.
312
+ */
313
+ operand?: ExprAmino;
314
+ /**
315
+ * Required. The name of the field to select.
316
+ *
317
+ * For example, in the select expression `request.auth`, the `auth` portion
318
+ * of the expression would be the `field`.
319
+ */
320
+ field?: string;
321
+ /**
322
+ * Whether the select is to be interpreted as a field presence test.
323
+ *
324
+ * This results from the macro `has(request.auth)`.
325
+ */
326
+ test_only?: boolean;
327
+ }
328
+ export interface Expr_SelectAminoMsg {
329
+ type: "/google.api.expr.v1alpha1.Select";
330
+ value: Expr_SelectAmino;
331
+ }
332
+ /** A field selection expression. e.g. `request.auth`. */
333
+ export interface Expr_SelectSDKType {
334
+ operand?: ExprSDKType;
335
+ field: string;
336
+ test_only: boolean;
337
+ }
338
+ /**
339
+ * A call expression, including calls to predefined functions and operators.
340
+ *
341
+ * For example, `value == 10`, `size(map_value)`.
342
+ */
343
+ export interface Expr_Call {
344
+ /**
345
+ * The target of an method call-style expression. For example, `x` in
346
+ * `x.f()`.
347
+ */
348
+ target?: Expr;
349
+ /** Required. The name of the function or method being called. */
350
+ function: string;
351
+ /** The arguments. */
352
+ args: Expr[];
353
+ }
354
+ export interface Expr_CallProtoMsg {
355
+ typeUrl: "/google.api.expr.v1alpha1.Call";
356
+ value: Uint8Array;
357
+ }
358
+ /**
359
+ * A call expression, including calls to predefined functions and operators.
360
+ *
361
+ * For example, `value == 10`, `size(map_value)`.
362
+ * @name Expr_CallAmino
363
+ * @package google.api.expr.v1alpha1
364
+ * @see proto type: google.api.expr.v1alpha1.Expr_Call
365
+ */
366
+ export interface Expr_CallAmino {
367
+ /**
368
+ * The target of an method call-style expression. For example, `x` in
369
+ * `x.f()`.
370
+ */
371
+ target?: ExprAmino;
372
+ /**
373
+ * Required. The name of the function or method being called.
374
+ */
375
+ function?: string;
376
+ /**
377
+ * The arguments.
378
+ */
379
+ args?: ExprAmino[];
380
+ }
381
+ export interface Expr_CallAminoMsg {
382
+ type: "/google.api.expr.v1alpha1.Call";
383
+ value: Expr_CallAmino;
384
+ }
385
+ /**
386
+ * A call expression, including calls to predefined functions and operators.
387
+ *
388
+ * For example, `value == 10`, `size(map_value)`.
389
+ */
390
+ export interface Expr_CallSDKType {
391
+ target?: ExprSDKType;
392
+ function: string;
393
+ args: ExprSDKType[];
394
+ }
395
+ /**
396
+ * A list creation expression.
397
+ *
398
+ * Lists may either be homogenous, e.g. `[1, 2, 3]`, or heterogeneous, e.g.
399
+ * `dyn([1, 'hello', 2.0])`
400
+ */
401
+ export interface Expr_CreateList {
402
+ /** The elements part of the list. */
403
+ elements: Expr[];
404
+ /**
405
+ * The indices within the elements list which are marked as optional
406
+ * elements.
407
+ *
408
+ * When an optional-typed value is present, the value it contains
409
+ * is included in the list. If the optional-typed value is absent, the list
410
+ * element is omitted from the CreateList result.
411
+ */
412
+ optionalIndices: number[];
413
+ }
414
+ export interface Expr_CreateListProtoMsg {
415
+ typeUrl: "/google.api.expr.v1alpha1.CreateList";
416
+ value: Uint8Array;
417
+ }
418
+ /**
419
+ * A list creation expression.
420
+ *
421
+ * Lists may either be homogenous, e.g. `[1, 2, 3]`, or heterogeneous, e.g.
422
+ * `dyn([1, 'hello', 2.0])`
423
+ * @name Expr_CreateListAmino
424
+ * @package google.api.expr.v1alpha1
425
+ * @see proto type: google.api.expr.v1alpha1.Expr_CreateList
426
+ */
427
+ export interface Expr_CreateListAmino {
428
+ /**
429
+ * The elements part of the list.
430
+ */
431
+ elements?: ExprAmino[];
432
+ /**
433
+ * The indices within the elements list which are marked as optional
434
+ * elements.
435
+ *
436
+ * When an optional-typed value is present, the value it contains
437
+ * is included in the list. If the optional-typed value is absent, the list
438
+ * element is omitted from the CreateList result.
439
+ */
440
+ optional_indices?: number[];
441
+ }
442
+ export interface Expr_CreateListAminoMsg {
443
+ type: "/google.api.expr.v1alpha1.CreateList";
444
+ value: Expr_CreateListAmino;
445
+ }
446
+ /**
447
+ * A list creation expression.
448
+ *
449
+ * Lists may either be homogenous, e.g. `[1, 2, 3]`, or heterogeneous, e.g.
450
+ * `dyn([1, 'hello', 2.0])`
451
+ */
452
+ export interface Expr_CreateListSDKType {
453
+ elements: ExprSDKType[];
454
+ optional_indices: number[];
455
+ }
456
+ /**
457
+ * A map or message creation expression.
458
+ *
459
+ * Maps are constructed as `{'key_name': 'value'}`. Message construction is
460
+ * similar, but prefixed with a type name and composed of field ids:
461
+ * `types.MyType{field_id: 'value'}`.
462
+ */
463
+ export interface Expr_CreateStruct {
464
+ /**
465
+ * The type name of the message to be created, empty when creating map
466
+ * literals.
467
+ */
468
+ messageName: string;
469
+ /** The entries in the creation expression. */
470
+ entries: Expr_CreateStruct_Entry[];
471
+ }
472
+ export interface Expr_CreateStructProtoMsg {
473
+ typeUrl: "/google.api.expr.v1alpha1.CreateStruct";
474
+ value: Uint8Array;
475
+ }
476
+ /**
477
+ * A map or message creation expression.
478
+ *
479
+ * Maps are constructed as `{'key_name': 'value'}`. Message construction is
480
+ * similar, but prefixed with a type name and composed of field ids:
481
+ * `types.MyType{field_id: 'value'}`.
482
+ * @name Expr_CreateStructAmino
483
+ * @package google.api.expr.v1alpha1
484
+ * @see proto type: google.api.expr.v1alpha1.Expr_CreateStruct
485
+ */
486
+ export interface Expr_CreateStructAmino {
487
+ /**
488
+ * The type name of the message to be created, empty when creating map
489
+ * literals.
490
+ */
491
+ message_name?: string;
492
+ /**
493
+ * The entries in the creation expression.
494
+ */
495
+ entries?: Expr_CreateStruct_EntryAmino[];
496
+ }
497
+ export interface Expr_CreateStructAminoMsg {
498
+ type: "/google.api.expr.v1alpha1.CreateStruct";
499
+ value: Expr_CreateStructAmino;
500
+ }
501
+ /**
502
+ * A map or message creation expression.
503
+ *
504
+ * Maps are constructed as `{'key_name': 'value'}`. Message construction is
505
+ * similar, but prefixed with a type name and composed of field ids:
506
+ * `types.MyType{field_id: 'value'}`.
507
+ */
508
+ export interface Expr_CreateStructSDKType {
509
+ message_name: string;
510
+ entries: Expr_CreateStruct_EntrySDKType[];
511
+ }
512
+ /** Represents an entry. */
513
+ export interface Expr_CreateStruct_Entry {
514
+ /**
515
+ * Required. An id assigned to this node by the parser which is unique
516
+ * in a given expression tree. This is used to associate type
517
+ * information and other attributes to the node.
518
+ */
519
+ id: bigint;
520
+ /** The field key for a message creator statement. */
521
+ fieldKey?: string;
522
+ /** The key expression for a map creation statement. */
523
+ mapKey?: Expr;
524
+ /**
525
+ * Required. The value assigned to the key.
526
+ *
527
+ * If the optional_entry field is true, the expression must resolve to an
528
+ * optional-typed value. If the optional value is present, the key will be
529
+ * set; however, if the optional value is absent, the key will be unset.
530
+ */
531
+ value?: Expr;
532
+ /** Whether the key-value pair is optional. */
533
+ optionalEntry: boolean;
534
+ }
535
+ export interface Expr_CreateStruct_EntryProtoMsg {
536
+ typeUrl: "/google.api.expr.v1alpha1.Entry";
537
+ value: Uint8Array;
538
+ }
539
+ /**
540
+ * Represents an entry.
541
+ * @name Expr_CreateStruct_EntryAmino
542
+ * @package google.api.expr.v1alpha1
543
+ * @see proto type: google.api.expr.v1alpha1.Expr_CreateStruct_Entry
544
+ */
545
+ export interface Expr_CreateStruct_EntryAmino {
546
+ /**
547
+ * Required. An id assigned to this node by the parser which is unique
548
+ * in a given expression tree. This is used to associate type
549
+ * information and other attributes to the node.
550
+ */
551
+ id?: string;
552
+ /**
553
+ * The field key for a message creator statement.
554
+ */
555
+ field_key?: string;
556
+ /**
557
+ * The key expression for a map creation statement.
558
+ */
559
+ map_key?: ExprAmino;
560
+ /**
561
+ * Required. The value assigned to the key.
562
+ *
563
+ * If the optional_entry field is true, the expression must resolve to an
564
+ * optional-typed value. If the optional value is present, the key will be
565
+ * set; however, if the optional value is absent, the key will be unset.
566
+ */
567
+ value?: ExprAmino;
568
+ /**
569
+ * Whether the key-value pair is optional.
570
+ */
571
+ optional_entry?: boolean;
572
+ }
573
+ export interface Expr_CreateStruct_EntryAminoMsg {
574
+ type: "/google.api.expr.v1alpha1.Entry";
575
+ value: Expr_CreateStruct_EntryAmino;
576
+ }
577
+ /** Represents an entry. */
578
+ export interface Expr_CreateStruct_EntrySDKType {
579
+ id: bigint;
580
+ field_key?: string;
581
+ map_key?: ExprSDKType;
582
+ value?: ExprSDKType;
583
+ optional_entry: boolean;
584
+ }
585
+ /**
586
+ * A comprehension expression applied to a list or map.
587
+ *
588
+ * Comprehensions are not part of the core syntax, but enabled with macros.
589
+ * A macro matches a specific call signature within a parsed AST and replaces
590
+ * the call with an alternate AST block. Macro expansion happens at parse
591
+ * time.
592
+ *
593
+ * The following macros are supported within CEL:
594
+ *
595
+ * Aggregate type macros may be applied to all elements in a list or all keys
596
+ * in a map:
597
+ *
598
+ * * `all`, `exists`, `exists_one` - test a predicate expression against
599
+ * the inputs and return `true` if the predicate is satisfied for all,
600
+ * any, or only one value `list.all(x, x < 10)`.
601
+ * * `filter` - test a predicate expression against the inputs and return
602
+ * the subset of elements which satisfy the predicate:
603
+ * `payments.filter(p, p > 1000)`.
604
+ * * `map` - apply an expression to all elements in the input and return the
605
+ * output aggregate type: `[1, 2, 3].map(i, i * i)`.
606
+ *
607
+ * The `has(m.x)` macro tests whether the property `x` is present in struct
608
+ * `m`. The semantics of this macro depend on the type of `m`. For proto2
609
+ * messages `has(m.x)` is defined as 'defined, but not set`. For proto3, the
610
+ * macro tests whether the property is set to its default. For map and struct
611
+ * types, the macro tests whether the property `x` is defined on `m`.
612
+ *
613
+ * Comprehensions for the standard environment macros evaluation can be best
614
+ * visualized as the following pseudocode:
615
+ *
616
+ * ```
617
+ * let `accu_var` = `accu_init`
618
+ * for (let `iter_var` in `iter_range`) {
619
+ * if (!`loop_condition`) {
620
+ * break
621
+ * }
622
+ * `accu_var` = `loop_step`
623
+ * }
624
+ * return `result`
625
+ * ```
626
+ *
627
+ * Comprehensions for the optional V2 macros which support map-to-map
628
+ * translation differ slightly from the standard environment macros in that
629
+ * they expose both the key or index in addition to the value for each list
630
+ * or map entry:
631
+ *
632
+ * ```
633
+ * let `accu_var` = `accu_init`
634
+ * for (let `iter_var`, `iter_var2` in `iter_range`) {
635
+ * if (!`loop_condition`) {
636
+ * break
637
+ * }
638
+ * `accu_var` = `loop_step`
639
+ * }
640
+ * return `result`
641
+ * ```
642
+ */
643
+ export interface Expr_Comprehension {
644
+ /**
645
+ * The name of the first iteration variable.
646
+ * When the iter_range is a list, this variable is the list element.
647
+ * When the iter_range is a map, this variable is the map entry key.
648
+ */
649
+ iterVar: string;
650
+ /**
651
+ * The name of the second iteration variable, empty if not set.
652
+ * When the iter_range is a list, this variable is the integer index.
653
+ * When the iter_range is a map, this variable is the map entry value.
654
+ * This field is only set for comprehension v2 macros.
655
+ */
656
+ iterVar2: string;
657
+ /** The range over which the comprehension iterates. */
658
+ iterRange?: Expr;
659
+ /** The name of the variable used for accumulation of the result. */
660
+ accuVar: string;
661
+ /** The initial value of the accumulator. */
662
+ accuInit?: Expr;
663
+ /**
664
+ * An expression which can contain iter_var, iter_var2, and accu_var.
665
+ *
666
+ * Returns false when the result has been computed and may be used as
667
+ * a hint to short-circuit the remainder of the comprehension.
668
+ */
669
+ loopCondition?: Expr;
670
+ /**
671
+ * An expression which can contain iter_var, iter_var2, and accu_var.
672
+ *
673
+ * Computes the next value of accu_var.
674
+ */
675
+ loopStep?: Expr;
676
+ /**
677
+ * An expression which can contain accu_var.
678
+ *
679
+ * Computes the result.
680
+ */
681
+ result?: Expr;
682
+ }
683
+ export interface Expr_ComprehensionProtoMsg {
684
+ typeUrl: "/google.api.expr.v1alpha1.Comprehension";
685
+ value: Uint8Array;
686
+ }
687
+ /**
688
+ * A comprehension expression applied to a list or map.
689
+ *
690
+ * Comprehensions are not part of the core syntax, but enabled with macros.
691
+ * A macro matches a specific call signature within a parsed AST and replaces
692
+ * the call with an alternate AST block. Macro expansion happens at parse
693
+ * time.
694
+ *
695
+ * The following macros are supported within CEL:
696
+ *
697
+ * Aggregate type macros may be applied to all elements in a list or all keys
698
+ * in a map:
699
+ *
700
+ * * `all`, `exists`, `exists_one` - test a predicate expression against
701
+ * the inputs and return `true` if the predicate is satisfied for all,
702
+ * any, or only one value `list.all(x, x < 10)`.
703
+ * * `filter` - test a predicate expression against the inputs and return
704
+ * the subset of elements which satisfy the predicate:
705
+ * `payments.filter(p, p > 1000)`.
706
+ * * `map` - apply an expression to all elements in the input and return the
707
+ * output aggregate type: `[1, 2, 3].map(i, i * i)`.
708
+ *
709
+ * The `has(m.x)` macro tests whether the property `x` is present in struct
710
+ * `m`. The semantics of this macro depend on the type of `m`. For proto2
711
+ * messages `has(m.x)` is defined as 'defined, but not set`. For proto3, the
712
+ * macro tests whether the property is set to its default. For map and struct
713
+ * types, the macro tests whether the property `x` is defined on `m`.
714
+ *
715
+ * Comprehensions for the standard environment macros evaluation can be best
716
+ * visualized as the following pseudocode:
717
+ *
718
+ * ```
719
+ * let `accu_var` = `accu_init`
720
+ * for (let `iter_var` in `iter_range`) {
721
+ * if (!`loop_condition`) {
722
+ * break
723
+ * }
724
+ * `accu_var` = `loop_step`
725
+ * }
726
+ * return `result`
727
+ * ```
728
+ *
729
+ * Comprehensions for the optional V2 macros which support map-to-map
730
+ * translation differ slightly from the standard environment macros in that
731
+ * they expose both the key or index in addition to the value for each list
732
+ * or map entry:
733
+ *
734
+ * ```
735
+ * let `accu_var` = `accu_init`
736
+ * for (let `iter_var`, `iter_var2` in `iter_range`) {
737
+ * if (!`loop_condition`) {
738
+ * break
739
+ * }
740
+ * `accu_var` = `loop_step`
741
+ * }
742
+ * return `result`
743
+ * ```
744
+ * @name Expr_ComprehensionAmino
745
+ * @package google.api.expr.v1alpha1
746
+ * @see proto type: google.api.expr.v1alpha1.Expr_Comprehension
747
+ */
748
+ export interface Expr_ComprehensionAmino {
749
+ /**
750
+ * The name of the first iteration variable.
751
+ * When the iter_range is a list, this variable is the list element.
752
+ * When the iter_range is a map, this variable is the map entry key.
753
+ */
754
+ iter_var?: string;
755
+ /**
756
+ * The name of the second iteration variable, empty if not set.
757
+ * When the iter_range is a list, this variable is the integer index.
758
+ * When the iter_range is a map, this variable is the map entry value.
759
+ * This field is only set for comprehension v2 macros.
760
+ */
761
+ iter_var2?: string;
762
+ /**
763
+ * The range over which the comprehension iterates.
764
+ */
765
+ iter_range?: ExprAmino;
766
+ /**
767
+ * The name of the variable used for accumulation of the result.
768
+ */
769
+ accu_var?: string;
770
+ /**
771
+ * The initial value of the accumulator.
772
+ */
773
+ accu_init?: ExprAmino;
774
+ /**
775
+ * An expression which can contain iter_var, iter_var2, and accu_var.
776
+ *
777
+ * Returns false when the result has been computed and may be used as
778
+ * a hint to short-circuit the remainder of the comprehension.
779
+ */
780
+ loop_condition?: ExprAmino;
781
+ /**
782
+ * An expression which can contain iter_var, iter_var2, and accu_var.
783
+ *
784
+ * Computes the next value of accu_var.
785
+ */
786
+ loop_step?: ExprAmino;
787
+ /**
788
+ * An expression which can contain accu_var.
789
+ *
790
+ * Computes the result.
791
+ */
792
+ result?: ExprAmino;
793
+ }
794
+ export interface Expr_ComprehensionAminoMsg {
795
+ type: "/google.api.expr.v1alpha1.Comprehension";
796
+ value: Expr_ComprehensionAmino;
797
+ }
798
+ /**
799
+ * A comprehension expression applied to a list or map.
800
+ *
801
+ * Comprehensions are not part of the core syntax, but enabled with macros.
802
+ * A macro matches a specific call signature within a parsed AST and replaces
803
+ * the call with an alternate AST block. Macro expansion happens at parse
804
+ * time.
805
+ *
806
+ * The following macros are supported within CEL:
807
+ *
808
+ * Aggregate type macros may be applied to all elements in a list or all keys
809
+ * in a map:
810
+ *
811
+ * * `all`, `exists`, `exists_one` - test a predicate expression against
812
+ * the inputs and return `true` if the predicate is satisfied for all,
813
+ * any, or only one value `list.all(x, x < 10)`.
814
+ * * `filter` - test a predicate expression against the inputs and return
815
+ * the subset of elements which satisfy the predicate:
816
+ * `payments.filter(p, p > 1000)`.
817
+ * * `map` - apply an expression to all elements in the input and return the
818
+ * output aggregate type: `[1, 2, 3].map(i, i * i)`.
819
+ *
820
+ * The `has(m.x)` macro tests whether the property `x` is present in struct
821
+ * `m`. The semantics of this macro depend on the type of `m`. For proto2
822
+ * messages `has(m.x)` is defined as 'defined, but not set`. For proto3, the
823
+ * macro tests whether the property is set to its default. For map and struct
824
+ * types, the macro tests whether the property `x` is defined on `m`.
825
+ *
826
+ * Comprehensions for the standard environment macros evaluation can be best
827
+ * visualized as the following pseudocode:
828
+ *
829
+ * ```
830
+ * let `accu_var` = `accu_init`
831
+ * for (let `iter_var` in `iter_range`) {
832
+ * if (!`loop_condition`) {
833
+ * break
834
+ * }
835
+ * `accu_var` = `loop_step`
836
+ * }
837
+ * return `result`
838
+ * ```
839
+ *
840
+ * Comprehensions for the optional V2 macros which support map-to-map
841
+ * translation differ slightly from the standard environment macros in that
842
+ * they expose both the key or index in addition to the value for each list
843
+ * or map entry:
844
+ *
845
+ * ```
846
+ * let `accu_var` = `accu_init`
847
+ * for (let `iter_var`, `iter_var2` in `iter_range`) {
848
+ * if (!`loop_condition`) {
849
+ * break
850
+ * }
851
+ * `accu_var` = `loop_step`
852
+ * }
853
+ * return `result`
854
+ * ```
855
+ */
856
+ export interface Expr_ComprehensionSDKType {
857
+ iter_var: string;
858
+ iter_var2: string;
859
+ iter_range?: ExprSDKType;
860
+ accu_var: string;
861
+ accu_init?: ExprSDKType;
862
+ loop_condition?: ExprSDKType;
863
+ loop_step?: ExprSDKType;
864
+ result?: ExprSDKType;
865
+ }
866
+ /**
867
+ * Represents a primitive literal.
868
+ *
869
+ * Named 'Constant' here for backwards compatibility.
870
+ *
871
+ * This is similar as the primitives supported in the well-known type
872
+ * `google.protobuf.Value`, but richer so it can represent CEL's full range of
873
+ * primitives.
874
+ *
875
+ * Lists and structs are not included as constants as these aggregate types may
876
+ * contain [Expr][google.api.expr.v1alpha1.Expr] elements which require
877
+ * evaluation and are thus not constant.
878
+ *
879
+ * Examples of literals include: `"hello"`, `b'bytes'`, `1u`, `4.2`, `-2`,
880
+ * `true`, `null`.
881
+ */
882
+ export interface Constant {
883
+ /** null value. */
884
+ nullValue?: NullValue;
885
+ /** boolean value. */
886
+ boolValue?: boolean;
887
+ /** int64 value. */
888
+ int64Value?: bigint;
889
+ /** uint64 value. */
890
+ uint64Value?: bigint;
891
+ /** double value. */
892
+ doubleValue?: number;
893
+ /** string value. */
894
+ stringValue?: string;
895
+ /** bytes value. */
896
+ bytesValue?: Uint8Array;
897
+ /**
898
+ * protobuf.Duration value.
899
+ *
900
+ * Deprecated: duration is no longer considered a builtin cel type.
901
+ */
902
+ /** @deprecated */
903
+ durationValue?: Duration;
904
+ /**
905
+ * protobuf.Timestamp value.
906
+ *
907
+ * Deprecated: timestamp is no longer considered a builtin cel type.
908
+ */
909
+ /** @deprecated */
910
+ timestampValue?: Date;
911
+ }
912
+ export interface ConstantProtoMsg {
913
+ typeUrl: "/google.api.expr.v1alpha1.Constant";
914
+ value: Uint8Array;
915
+ }
916
+ /**
917
+ * Represents a primitive literal.
918
+ *
919
+ * Named 'Constant' here for backwards compatibility.
920
+ *
921
+ * This is similar as the primitives supported in the well-known type
922
+ * `google.protobuf.Value`, but richer so it can represent CEL's full range of
923
+ * primitives.
924
+ *
925
+ * Lists and structs are not included as constants as these aggregate types may
926
+ * contain [Expr][google.api.expr.v1alpha1.Expr] elements which require
927
+ * evaluation and are thus not constant.
928
+ *
929
+ * Examples of literals include: `"hello"`, `b'bytes'`, `1u`, `4.2`, `-2`,
930
+ * `true`, `null`.
931
+ * @name ConstantAmino
932
+ * @package google.api.expr.v1alpha1
933
+ * @see proto type: google.api.expr.v1alpha1.Constant
934
+ */
935
+ export interface ConstantAmino {
936
+ /**
937
+ * null value.
938
+ */
939
+ null_value?: NullValue;
940
+ /**
941
+ * boolean value.
942
+ */
943
+ bool_value?: boolean;
944
+ /**
945
+ * int64 value.
946
+ */
947
+ int64_value?: string;
948
+ /**
949
+ * uint64 value.
950
+ */
951
+ uint64_value?: string;
952
+ /**
953
+ * double value.
954
+ */
955
+ double_value?: number;
956
+ /**
957
+ * string value.
958
+ */
959
+ string_value?: string;
960
+ /**
961
+ * bytes value.
962
+ */
963
+ bytes_value?: string;
964
+ /**
965
+ * protobuf.Duration value.
966
+ *
967
+ * Deprecated: duration is no longer considered a builtin cel type.
968
+ * @deprecated
969
+ */
970
+ duration_value?: DurationAmino;
971
+ /**
972
+ * protobuf.Timestamp value.
973
+ *
974
+ * Deprecated: timestamp is no longer considered a builtin cel type.
975
+ * @deprecated
976
+ */
977
+ timestamp_value?: string;
978
+ }
979
+ export interface ConstantAminoMsg {
980
+ type: "/google.api.expr.v1alpha1.Constant";
981
+ value: ConstantAmino;
982
+ }
983
+ /**
984
+ * Represents a primitive literal.
985
+ *
986
+ * Named 'Constant' here for backwards compatibility.
987
+ *
988
+ * This is similar as the primitives supported in the well-known type
989
+ * `google.protobuf.Value`, but richer so it can represent CEL's full range of
990
+ * primitives.
991
+ *
992
+ * Lists and structs are not included as constants as these aggregate types may
993
+ * contain [Expr][google.api.expr.v1alpha1.Expr] elements which require
994
+ * evaluation and are thus not constant.
995
+ *
996
+ * Examples of literals include: `"hello"`, `b'bytes'`, `1u`, `4.2`, `-2`,
997
+ * `true`, `null`.
998
+ */
999
+ export interface ConstantSDKType {
1000
+ null_value?: NullValue;
1001
+ bool_value?: boolean;
1002
+ int64_value?: bigint;
1003
+ uint64_value?: bigint;
1004
+ double_value?: number;
1005
+ string_value?: string;
1006
+ bytes_value?: Uint8Array;
1007
+ /** @deprecated */
1008
+ duration_value?: DurationSDKType;
1009
+ /** @deprecated */
1010
+ timestamp_value?: Date;
1011
+ }
1012
+ export interface SourceInfo_PositionsEntry {
1013
+ key: bigint;
1014
+ value: number;
1015
+ }
1016
+ export interface SourceInfo_PositionsEntryProtoMsg {
1017
+ typeUrl: string;
1018
+ value: Uint8Array;
1019
+ }
1020
+ /**
1021
+ * @name SourceInfo_PositionsEntryAmino
1022
+ * @package google.api.expr.v1alpha1
1023
+ * @see proto type: google.api.expr.v1alpha1.SourceInfo_PositionsEntry
1024
+ */
1025
+ export interface SourceInfo_PositionsEntryAmino {
1026
+ key?: string;
1027
+ value?: number;
1028
+ }
1029
+ export interface SourceInfo_PositionsEntryAminoMsg {
1030
+ type: string;
1031
+ value: SourceInfo_PositionsEntryAmino;
1032
+ }
1033
+ export interface SourceInfo_PositionsEntrySDKType {
1034
+ key: bigint;
1035
+ value: number;
1036
+ }
1037
+ export interface SourceInfo_MacroCallsEntry {
1038
+ key: bigint;
1039
+ value?: Expr;
1040
+ }
1041
+ export interface SourceInfo_MacroCallsEntryProtoMsg {
1042
+ typeUrl: string;
1043
+ value: Uint8Array;
1044
+ }
1045
+ /**
1046
+ * @name SourceInfo_MacroCallsEntryAmino
1047
+ * @package google.api.expr.v1alpha1
1048
+ * @see proto type: google.api.expr.v1alpha1.SourceInfo_MacroCallsEntry
1049
+ */
1050
+ export interface SourceInfo_MacroCallsEntryAmino {
1051
+ key?: string;
1052
+ value?: ExprAmino;
1053
+ }
1054
+ export interface SourceInfo_MacroCallsEntryAminoMsg {
1055
+ type: string;
1056
+ value: SourceInfo_MacroCallsEntryAmino;
1057
+ }
1058
+ export interface SourceInfo_MacroCallsEntrySDKType {
1059
+ key: bigint;
1060
+ value?: ExprSDKType;
1061
+ }
1062
+ /** Source information collected at parse time. */
1063
+ export interface SourceInfo {
1064
+ /** The syntax version of the source, e.g. `cel1`. */
1065
+ syntaxVersion: string;
1066
+ /**
1067
+ * The location name. All position information attached to an expression is
1068
+ * relative to this location.
1069
+ *
1070
+ * The location could be a file, UI element, or similar. For example,
1071
+ * `acme/app/AnvilPolicy.cel`.
1072
+ */
1073
+ location: string;
1074
+ /**
1075
+ * Monotonically increasing list of code point offsets where newlines
1076
+ * `\n` appear.
1077
+ *
1078
+ * The line number of a given position is the index `i` where for a given
1079
+ * `id` the `line_offsets[i] < id_positions[id] < line_offsets[i+1]`. The
1080
+ * column may be derivd from `id_positions[id] - line_offsets[i]`.
1081
+ */
1082
+ lineOffsets: number[];
1083
+ /**
1084
+ * A map from the parse node id (e.g. `Expr.id`) to the code point offset
1085
+ * within the source.
1086
+ */
1087
+ positions: {
1088
+ [key: bigint]: number;
1089
+ };
1090
+ /**
1091
+ * A map from the parse node id where a macro replacement was made to the
1092
+ * call `Expr` that resulted in a macro expansion.
1093
+ *
1094
+ * For example, `has(value.field)` is a function call that is replaced by a
1095
+ * `test_only` field selection in the AST. Likewise, the call
1096
+ * `list.exists(e, e > 10)` translates to a comprehension expression. The key
1097
+ * in the map corresponds to the expression id of the expanded macro, and the
1098
+ * value is the call `Expr` that was replaced.
1099
+ */
1100
+ macroCalls: {
1101
+ [key: bigint]: Expr;
1102
+ };
1103
+ /**
1104
+ * A list of tags for extensions that were used while parsing or type checking
1105
+ * the source expression. For example, optimizations that require special
1106
+ * runtime support may be specified.
1107
+ *
1108
+ * These are used to check feature support between components in separate
1109
+ * implementations. This can be used to either skip redundant work or
1110
+ * report an error if the extension is unsupported.
1111
+ */
1112
+ extensions: SourceInfo_Extension[];
1113
+ }
1114
+ export interface SourceInfoProtoMsg {
1115
+ typeUrl: "/google.api.expr.v1alpha1.SourceInfo";
1116
+ value: Uint8Array;
1117
+ }
1118
+ /**
1119
+ * Source information collected at parse time.
1120
+ * @name SourceInfoAmino
1121
+ * @package google.api.expr.v1alpha1
1122
+ * @see proto type: google.api.expr.v1alpha1.SourceInfo
1123
+ */
1124
+ export interface SourceInfoAmino {
1125
+ /**
1126
+ * The syntax version of the source, e.g. `cel1`.
1127
+ */
1128
+ syntax_version?: string;
1129
+ /**
1130
+ * The location name. All position information attached to an expression is
1131
+ * relative to this location.
1132
+ *
1133
+ * The location could be a file, UI element, or similar. For example,
1134
+ * `acme/app/AnvilPolicy.cel`.
1135
+ */
1136
+ location?: string;
1137
+ /**
1138
+ * Monotonically increasing list of code point offsets where newlines
1139
+ * `\n` appear.
1140
+ *
1141
+ * The line number of a given position is the index `i` where for a given
1142
+ * `id` the `line_offsets[i] < id_positions[id] < line_offsets[i+1]`. The
1143
+ * column may be derivd from `id_positions[id] - line_offsets[i]`.
1144
+ */
1145
+ line_offsets?: number[];
1146
+ /**
1147
+ * A map from the parse node id (e.g. `Expr.id`) to the code point offset
1148
+ * within the source.
1149
+ */
1150
+ positions?: {
1151
+ [key: string]: number;
1152
+ };
1153
+ /**
1154
+ * A map from the parse node id where a macro replacement was made to the
1155
+ * call `Expr` that resulted in a macro expansion.
1156
+ *
1157
+ * For example, `has(value.field)` is a function call that is replaced by a
1158
+ * `test_only` field selection in the AST. Likewise, the call
1159
+ * `list.exists(e, e > 10)` translates to a comprehension expression. The key
1160
+ * in the map corresponds to the expression id of the expanded macro, and the
1161
+ * value is the call `Expr` that was replaced.
1162
+ */
1163
+ macro_calls?: {
1164
+ [key: string]: ExprAmino;
1165
+ };
1166
+ /**
1167
+ * A list of tags for extensions that were used while parsing or type checking
1168
+ * the source expression. For example, optimizations that require special
1169
+ * runtime support may be specified.
1170
+ *
1171
+ * These are used to check feature support between components in separate
1172
+ * implementations. This can be used to either skip redundant work or
1173
+ * report an error if the extension is unsupported.
1174
+ */
1175
+ extensions?: SourceInfo_ExtensionAmino[];
1176
+ }
1177
+ export interface SourceInfoAminoMsg {
1178
+ type: "/google.api.expr.v1alpha1.SourceInfo";
1179
+ value: SourceInfoAmino;
1180
+ }
1181
+ /** Source information collected at parse time. */
1182
+ export interface SourceInfoSDKType {
1183
+ syntax_version: string;
1184
+ location: string;
1185
+ line_offsets: number[];
1186
+ positions: {
1187
+ [key: bigint]: number;
1188
+ };
1189
+ macro_calls: {
1190
+ [key: bigint]: ExprSDKType;
1191
+ };
1192
+ extensions: SourceInfo_ExtensionSDKType[];
1193
+ }
1194
+ /** An extension that was requested for the source expression. */
1195
+ export interface SourceInfo_Extension {
1196
+ /** Identifier for the extension. Example: constant_folding */
1197
+ id: string;
1198
+ /**
1199
+ * If set, the listed components must understand the extension for the
1200
+ * expression to evaluate correctly.
1201
+ *
1202
+ * This field has set semantics, repeated values should be deduplicated.
1203
+ */
1204
+ affectedComponents: SourceInfo_Extension_Component[];
1205
+ /**
1206
+ * Version info. May be skipped if it isn't meaningful for the extension.
1207
+ * (for example constant_folding might always be v0.0).
1208
+ */
1209
+ version?: SourceInfo_Extension_Version;
1210
+ }
1211
+ export interface SourceInfo_ExtensionProtoMsg {
1212
+ typeUrl: "/google.api.expr.v1alpha1.Extension";
1213
+ value: Uint8Array;
1214
+ }
1215
+ /**
1216
+ * An extension that was requested for the source expression.
1217
+ * @name SourceInfo_ExtensionAmino
1218
+ * @package google.api.expr.v1alpha1
1219
+ * @see proto type: google.api.expr.v1alpha1.SourceInfo_Extension
1220
+ */
1221
+ export interface SourceInfo_ExtensionAmino {
1222
+ /**
1223
+ * Identifier for the extension. Example: constant_folding
1224
+ */
1225
+ id?: string;
1226
+ /**
1227
+ * If set, the listed components must understand the extension for the
1228
+ * expression to evaluate correctly.
1229
+ *
1230
+ * This field has set semantics, repeated values should be deduplicated.
1231
+ */
1232
+ affected_components?: SourceInfo_Extension_Component[];
1233
+ /**
1234
+ * Version info. May be skipped if it isn't meaningful for the extension.
1235
+ * (for example constant_folding might always be v0.0).
1236
+ */
1237
+ version?: SourceInfo_Extension_VersionAmino;
1238
+ }
1239
+ export interface SourceInfo_ExtensionAminoMsg {
1240
+ type: "/google.api.expr.v1alpha1.Extension";
1241
+ value: SourceInfo_ExtensionAmino;
1242
+ }
1243
+ /** An extension that was requested for the source expression. */
1244
+ export interface SourceInfo_ExtensionSDKType {
1245
+ id: string;
1246
+ affected_components: SourceInfo_Extension_Component[];
1247
+ version?: SourceInfo_Extension_VersionSDKType;
1248
+ }
1249
+ /** Version */
1250
+ export interface SourceInfo_Extension_Version {
1251
+ /**
1252
+ * Major version changes indicate different required support level from
1253
+ * the required components.
1254
+ */
1255
+ major: bigint;
1256
+ /**
1257
+ * Minor version changes must not change the observed behavior from
1258
+ * existing implementations, but may be provided informationally.
1259
+ */
1260
+ minor: bigint;
1261
+ }
1262
+ export interface SourceInfo_Extension_VersionProtoMsg {
1263
+ typeUrl: "/google.api.expr.v1alpha1.Version";
1264
+ value: Uint8Array;
1265
+ }
1266
+ /**
1267
+ * Version
1268
+ * @name SourceInfo_Extension_VersionAmino
1269
+ * @package google.api.expr.v1alpha1
1270
+ * @see proto type: google.api.expr.v1alpha1.SourceInfo_Extension_Version
1271
+ */
1272
+ export interface SourceInfo_Extension_VersionAmino {
1273
+ /**
1274
+ * Major version changes indicate different required support level from
1275
+ * the required components.
1276
+ */
1277
+ major?: string;
1278
+ /**
1279
+ * Minor version changes must not change the observed behavior from
1280
+ * existing implementations, but may be provided informationally.
1281
+ */
1282
+ minor?: string;
1283
+ }
1284
+ export interface SourceInfo_Extension_VersionAminoMsg {
1285
+ type: "/google.api.expr.v1alpha1.Version";
1286
+ value: SourceInfo_Extension_VersionAmino;
1287
+ }
1288
+ /** Version */
1289
+ export interface SourceInfo_Extension_VersionSDKType {
1290
+ major: bigint;
1291
+ minor: bigint;
1292
+ }
1293
+ /** A specific position in source. */
1294
+ export interface SourcePosition {
1295
+ /** The soucre location name (e.g. file name). */
1296
+ location: string;
1297
+ /** The UTF-8 code unit offset. */
1298
+ offset: number;
1299
+ /**
1300
+ * The 1-based index of the starting line in the source text
1301
+ * where the issue occurs, or 0 if unknown.
1302
+ */
1303
+ line: number;
1304
+ /**
1305
+ * The 0-based index of the starting position within the line of source text
1306
+ * where the issue occurs. Only meaningful if line is nonzero.
1307
+ */
1308
+ column: number;
1309
+ }
1310
+ export interface SourcePositionProtoMsg {
1311
+ typeUrl: "/google.api.expr.v1alpha1.SourcePosition";
1312
+ value: Uint8Array;
1313
+ }
1314
+ /**
1315
+ * A specific position in source.
1316
+ * @name SourcePositionAmino
1317
+ * @package google.api.expr.v1alpha1
1318
+ * @see proto type: google.api.expr.v1alpha1.SourcePosition
1319
+ */
1320
+ export interface SourcePositionAmino {
1321
+ /**
1322
+ * The soucre location name (e.g. file name).
1323
+ */
1324
+ location?: string;
1325
+ /**
1326
+ * The UTF-8 code unit offset.
1327
+ */
1328
+ offset?: number;
1329
+ /**
1330
+ * The 1-based index of the starting line in the source text
1331
+ * where the issue occurs, or 0 if unknown.
1332
+ */
1333
+ line?: number;
1334
+ /**
1335
+ * The 0-based index of the starting position within the line of source text
1336
+ * where the issue occurs. Only meaningful if line is nonzero.
1337
+ */
1338
+ column?: number;
1339
+ }
1340
+ export interface SourcePositionAminoMsg {
1341
+ type: "/google.api.expr.v1alpha1.SourcePosition";
1342
+ value: SourcePositionAmino;
1343
+ }
1344
+ /** A specific position in source. */
1345
+ export interface SourcePositionSDKType {
1346
+ location: string;
1347
+ offset: number;
1348
+ line: number;
1349
+ column: number;
1350
+ }
1351
+ function createBaseParsedExpr(): ParsedExpr {
1352
+ return {
1353
+ expr: undefined,
1354
+ sourceInfo: undefined
1355
+ };
1356
+ }
1357
+ export const ParsedExpr = {
1358
+ typeUrl: "/google.api.expr.v1alpha1.ParsedExpr",
1359
+ encode(message: ParsedExpr, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1360
+ if (message.expr !== undefined) {
1361
+ Expr.encode(message.expr, writer.uint32(18).fork()).ldelim();
1362
+ }
1363
+ if (message.sourceInfo !== undefined) {
1364
+ SourceInfo.encode(message.sourceInfo, writer.uint32(26).fork()).ldelim();
1365
+ }
1366
+ return writer;
1367
+ },
1368
+ decode(input: BinaryReader | Uint8Array, length?: number): ParsedExpr {
1369
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1370
+ let end = length === undefined ? reader.len : reader.pos + length;
1371
+ const message = createBaseParsedExpr();
1372
+ while (reader.pos < end) {
1373
+ const tag = reader.uint32();
1374
+ switch (tag >>> 3) {
1375
+ case 2:
1376
+ message.expr = Expr.decode(reader, reader.uint32());
1377
+ break;
1378
+ case 3:
1379
+ message.sourceInfo = SourceInfo.decode(reader, reader.uint32());
1380
+ break;
1381
+ default:
1382
+ reader.skipType(tag & 7);
1383
+ break;
1384
+ }
1385
+ }
1386
+ return message;
1387
+ },
1388
+ fromPartial(object: Partial<ParsedExpr>): ParsedExpr {
1389
+ const message = createBaseParsedExpr();
1390
+ message.expr = object.expr !== undefined && object.expr !== null ? Expr.fromPartial(object.expr) : undefined;
1391
+ message.sourceInfo = object.sourceInfo !== undefined && object.sourceInfo !== null ? SourceInfo.fromPartial(object.sourceInfo) : undefined;
1392
+ return message;
1393
+ },
1394
+ fromAmino(object: ParsedExprAmino): ParsedExpr {
1395
+ const message = createBaseParsedExpr();
1396
+ if (object.expr !== undefined && object.expr !== null) {
1397
+ message.expr = Expr.fromAmino(object.expr);
1398
+ }
1399
+ if (object.source_info !== undefined && object.source_info !== null) {
1400
+ message.sourceInfo = SourceInfo.fromAmino(object.source_info);
1401
+ }
1402
+ return message;
1403
+ },
1404
+ toAmino(message: ParsedExpr): ParsedExprAmino {
1405
+ const obj: any = {};
1406
+ obj.expr = message.expr ? Expr.toAmino(message.expr) : undefined;
1407
+ obj.source_info = message.sourceInfo ? SourceInfo.toAmino(message.sourceInfo) : undefined;
1408
+ return obj;
1409
+ },
1410
+ fromAminoMsg(object: ParsedExprAminoMsg): ParsedExpr {
1411
+ return ParsedExpr.fromAmino(object.value);
1412
+ },
1413
+ fromProtoMsg(message: ParsedExprProtoMsg): ParsedExpr {
1414
+ return ParsedExpr.decode(message.value);
1415
+ },
1416
+ toProto(message: ParsedExpr): Uint8Array {
1417
+ return ParsedExpr.encode(message).finish();
1418
+ },
1419
+ toProtoMsg(message: ParsedExpr): ParsedExprProtoMsg {
1420
+ return {
1421
+ typeUrl: "/google.api.expr.v1alpha1.ParsedExpr",
1422
+ value: ParsedExpr.encode(message).finish()
1423
+ };
1424
+ }
1425
+ };
1426
+ function createBaseExpr(): Expr {
1427
+ return {
1428
+ id: BigInt(0),
1429
+ constExpr: undefined,
1430
+ identExpr: undefined,
1431
+ selectExpr: undefined,
1432
+ callExpr: undefined,
1433
+ listExpr: undefined,
1434
+ structExpr: undefined,
1435
+ comprehensionExpr: undefined
1436
+ };
1437
+ }
1438
+ export const Expr = {
1439
+ typeUrl: "/google.api.expr.v1alpha1.Expr",
1440
+ encode(message: Expr, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1441
+ if (message.id !== BigInt(0)) {
1442
+ writer.uint32(16).int64(message.id);
1443
+ }
1444
+ if (message.constExpr !== undefined) {
1445
+ Constant.encode(message.constExpr, writer.uint32(26).fork()).ldelim();
1446
+ }
1447
+ if (message.identExpr !== undefined) {
1448
+ Expr_Ident.encode(message.identExpr, writer.uint32(34).fork()).ldelim();
1449
+ }
1450
+ if (message.selectExpr !== undefined) {
1451
+ Expr_Select.encode(message.selectExpr, writer.uint32(42).fork()).ldelim();
1452
+ }
1453
+ if (message.callExpr !== undefined) {
1454
+ Expr_Call.encode(message.callExpr, writer.uint32(50).fork()).ldelim();
1455
+ }
1456
+ if (message.listExpr !== undefined) {
1457
+ Expr_CreateList.encode(message.listExpr, writer.uint32(58).fork()).ldelim();
1458
+ }
1459
+ if (message.structExpr !== undefined) {
1460
+ Expr_CreateStruct.encode(message.structExpr, writer.uint32(66).fork()).ldelim();
1461
+ }
1462
+ if (message.comprehensionExpr !== undefined) {
1463
+ Expr_Comprehension.encode(message.comprehensionExpr, writer.uint32(74).fork()).ldelim();
1464
+ }
1465
+ return writer;
1466
+ },
1467
+ decode(input: BinaryReader | Uint8Array, length?: number): Expr {
1468
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1469
+ let end = length === undefined ? reader.len : reader.pos + length;
1470
+ const message = createBaseExpr();
1471
+ while (reader.pos < end) {
1472
+ const tag = reader.uint32();
1473
+ switch (tag >>> 3) {
1474
+ case 2:
1475
+ message.id = reader.int64();
1476
+ break;
1477
+ case 3:
1478
+ message.constExpr = Constant.decode(reader, reader.uint32());
1479
+ break;
1480
+ case 4:
1481
+ message.identExpr = Expr_Ident.decode(reader, reader.uint32());
1482
+ break;
1483
+ case 5:
1484
+ message.selectExpr = Expr_Select.decode(reader, reader.uint32());
1485
+ break;
1486
+ case 6:
1487
+ message.callExpr = Expr_Call.decode(reader, reader.uint32());
1488
+ break;
1489
+ case 7:
1490
+ message.listExpr = Expr_CreateList.decode(reader, reader.uint32());
1491
+ break;
1492
+ case 8:
1493
+ message.structExpr = Expr_CreateStruct.decode(reader, reader.uint32());
1494
+ break;
1495
+ case 9:
1496
+ message.comprehensionExpr = Expr_Comprehension.decode(reader, reader.uint32());
1497
+ break;
1498
+ default:
1499
+ reader.skipType(tag & 7);
1500
+ break;
1501
+ }
1502
+ }
1503
+ return message;
1504
+ },
1505
+ fromPartial(object: Partial<Expr>): Expr {
1506
+ const message = createBaseExpr();
1507
+ message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0);
1508
+ message.constExpr = object.constExpr !== undefined && object.constExpr !== null ? Constant.fromPartial(object.constExpr) : undefined;
1509
+ message.identExpr = object.identExpr !== undefined && object.identExpr !== null ? Expr_Ident.fromPartial(object.identExpr) : undefined;
1510
+ message.selectExpr = object.selectExpr !== undefined && object.selectExpr !== null ? Expr_Select.fromPartial(object.selectExpr) : undefined;
1511
+ message.callExpr = object.callExpr !== undefined && object.callExpr !== null ? Expr_Call.fromPartial(object.callExpr) : undefined;
1512
+ message.listExpr = object.listExpr !== undefined && object.listExpr !== null ? Expr_CreateList.fromPartial(object.listExpr) : undefined;
1513
+ message.structExpr = object.structExpr !== undefined && object.structExpr !== null ? Expr_CreateStruct.fromPartial(object.structExpr) : undefined;
1514
+ message.comprehensionExpr = object.comprehensionExpr !== undefined && object.comprehensionExpr !== null ? Expr_Comprehension.fromPartial(object.comprehensionExpr) : undefined;
1515
+ return message;
1516
+ },
1517
+ fromAmino(object: ExprAmino): Expr {
1518
+ const message = createBaseExpr();
1519
+ if (object.id !== undefined && object.id !== null) {
1520
+ message.id = BigInt(object.id);
1521
+ }
1522
+ if (object.const_expr !== undefined && object.const_expr !== null) {
1523
+ message.constExpr = Constant.fromAmino(object.const_expr);
1524
+ }
1525
+ if (object.ident_expr !== undefined && object.ident_expr !== null) {
1526
+ message.identExpr = Expr_Ident.fromAmino(object.ident_expr);
1527
+ }
1528
+ if (object.select_expr !== undefined && object.select_expr !== null) {
1529
+ message.selectExpr = Expr_Select.fromAmino(object.select_expr);
1530
+ }
1531
+ if (object.call_expr !== undefined && object.call_expr !== null) {
1532
+ message.callExpr = Expr_Call.fromAmino(object.call_expr);
1533
+ }
1534
+ if (object.list_expr !== undefined && object.list_expr !== null) {
1535
+ message.listExpr = Expr_CreateList.fromAmino(object.list_expr);
1536
+ }
1537
+ if (object.struct_expr !== undefined && object.struct_expr !== null) {
1538
+ message.structExpr = Expr_CreateStruct.fromAmino(object.struct_expr);
1539
+ }
1540
+ if (object.comprehension_expr !== undefined && object.comprehension_expr !== null) {
1541
+ message.comprehensionExpr = Expr_Comprehension.fromAmino(object.comprehension_expr);
1542
+ }
1543
+ return message;
1544
+ },
1545
+ toAmino(message: Expr): ExprAmino {
1546
+ const obj: any = {};
1547
+ obj.id = message.id !== BigInt(0) ? message.id?.toString() : undefined;
1548
+ obj.const_expr = message.constExpr ? Constant.toAmino(message.constExpr) : undefined;
1549
+ obj.ident_expr = message.identExpr ? Expr_Ident.toAmino(message.identExpr) : undefined;
1550
+ obj.select_expr = message.selectExpr ? Expr_Select.toAmino(message.selectExpr) : undefined;
1551
+ obj.call_expr = message.callExpr ? Expr_Call.toAmino(message.callExpr) : undefined;
1552
+ obj.list_expr = message.listExpr ? Expr_CreateList.toAmino(message.listExpr) : undefined;
1553
+ obj.struct_expr = message.structExpr ? Expr_CreateStruct.toAmino(message.structExpr) : undefined;
1554
+ obj.comprehension_expr = message.comprehensionExpr ? Expr_Comprehension.toAmino(message.comprehensionExpr) : undefined;
1555
+ return obj;
1556
+ },
1557
+ fromAminoMsg(object: ExprAminoMsg): Expr {
1558
+ return Expr.fromAmino(object.value);
1559
+ },
1560
+ fromProtoMsg(message: ExprProtoMsg): Expr {
1561
+ return Expr.decode(message.value);
1562
+ },
1563
+ toProto(message: Expr): Uint8Array {
1564
+ return Expr.encode(message).finish();
1565
+ },
1566
+ toProtoMsg(message: Expr): ExprProtoMsg {
1567
+ return {
1568
+ typeUrl: "/google.api.expr.v1alpha1.Expr",
1569
+ value: Expr.encode(message).finish()
1570
+ };
1571
+ }
1572
+ };
1573
+ function createBaseExpr_Ident(): Expr_Ident {
1574
+ return {
1575
+ name: ""
1576
+ };
1577
+ }
1578
+ export const Expr_Ident = {
1579
+ typeUrl: "/google.api.expr.v1alpha1.Ident",
1580
+ encode(message: Expr_Ident, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1581
+ if (message.name !== "") {
1582
+ writer.uint32(10).string(message.name);
1583
+ }
1584
+ return writer;
1585
+ },
1586
+ decode(input: BinaryReader | Uint8Array, length?: number): Expr_Ident {
1587
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1588
+ let end = length === undefined ? reader.len : reader.pos + length;
1589
+ const message = createBaseExpr_Ident();
1590
+ while (reader.pos < end) {
1591
+ const tag = reader.uint32();
1592
+ switch (tag >>> 3) {
1593
+ case 1:
1594
+ message.name = reader.string();
1595
+ break;
1596
+ default:
1597
+ reader.skipType(tag & 7);
1598
+ break;
1599
+ }
1600
+ }
1601
+ return message;
1602
+ },
1603
+ fromPartial(object: Partial<Expr_Ident>): Expr_Ident {
1604
+ const message = createBaseExpr_Ident();
1605
+ message.name = object.name ?? "";
1606
+ return message;
1607
+ },
1608
+ fromAmino(object: Expr_IdentAmino): Expr_Ident {
1609
+ const message = createBaseExpr_Ident();
1610
+ if (object.name !== undefined && object.name !== null) {
1611
+ message.name = object.name;
1612
+ }
1613
+ return message;
1614
+ },
1615
+ toAmino(message: Expr_Ident): Expr_IdentAmino {
1616
+ const obj: any = {};
1617
+ obj.name = message.name === "" ? undefined : message.name;
1618
+ return obj;
1619
+ },
1620
+ fromAminoMsg(object: Expr_IdentAminoMsg): Expr_Ident {
1621
+ return Expr_Ident.fromAmino(object.value);
1622
+ },
1623
+ fromProtoMsg(message: Expr_IdentProtoMsg): Expr_Ident {
1624
+ return Expr_Ident.decode(message.value);
1625
+ },
1626
+ toProto(message: Expr_Ident): Uint8Array {
1627
+ return Expr_Ident.encode(message).finish();
1628
+ },
1629
+ toProtoMsg(message: Expr_Ident): Expr_IdentProtoMsg {
1630
+ return {
1631
+ typeUrl: "/google.api.expr.v1alpha1.Ident",
1632
+ value: Expr_Ident.encode(message).finish()
1633
+ };
1634
+ }
1635
+ };
1636
+ function createBaseExpr_Select(): Expr_Select {
1637
+ return {
1638
+ operand: undefined,
1639
+ field: "",
1640
+ testOnly: false
1641
+ };
1642
+ }
1643
+ export const Expr_Select = {
1644
+ typeUrl: "/google.api.expr.v1alpha1.Select",
1645
+ encode(message: Expr_Select, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1646
+ if (message.operand !== undefined) {
1647
+ Expr.encode(message.operand, writer.uint32(10).fork()).ldelim();
1648
+ }
1649
+ if (message.field !== "") {
1650
+ writer.uint32(18).string(message.field);
1651
+ }
1652
+ if (message.testOnly === true) {
1653
+ writer.uint32(24).bool(message.testOnly);
1654
+ }
1655
+ return writer;
1656
+ },
1657
+ decode(input: BinaryReader | Uint8Array, length?: number): Expr_Select {
1658
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1659
+ let end = length === undefined ? reader.len : reader.pos + length;
1660
+ const message = createBaseExpr_Select();
1661
+ while (reader.pos < end) {
1662
+ const tag = reader.uint32();
1663
+ switch (tag >>> 3) {
1664
+ case 1:
1665
+ message.operand = Expr.decode(reader, reader.uint32());
1666
+ break;
1667
+ case 2:
1668
+ message.field = reader.string();
1669
+ break;
1670
+ case 3:
1671
+ message.testOnly = reader.bool();
1672
+ break;
1673
+ default:
1674
+ reader.skipType(tag & 7);
1675
+ break;
1676
+ }
1677
+ }
1678
+ return message;
1679
+ },
1680
+ fromPartial(object: Partial<Expr_Select>): Expr_Select {
1681
+ const message = createBaseExpr_Select();
1682
+ message.operand = object.operand !== undefined && object.operand !== null ? Expr.fromPartial(object.operand) : undefined;
1683
+ message.field = object.field ?? "";
1684
+ message.testOnly = object.testOnly ?? false;
1685
+ return message;
1686
+ },
1687
+ fromAmino(object: Expr_SelectAmino): Expr_Select {
1688
+ const message = createBaseExpr_Select();
1689
+ if (object.operand !== undefined && object.operand !== null) {
1690
+ message.operand = Expr.fromAmino(object.operand);
1691
+ }
1692
+ if (object.field !== undefined && object.field !== null) {
1693
+ message.field = object.field;
1694
+ }
1695
+ if (object.test_only !== undefined && object.test_only !== null) {
1696
+ message.testOnly = object.test_only;
1697
+ }
1698
+ return message;
1699
+ },
1700
+ toAmino(message: Expr_Select): Expr_SelectAmino {
1701
+ const obj: any = {};
1702
+ obj.operand = message.operand ? Expr.toAmino(message.operand) : undefined;
1703
+ obj.field = message.field === "" ? undefined : message.field;
1704
+ obj.test_only = message.testOnly === false ? undefined : message.testOnly;
1705
+ return obj;
1706
+ },
1707
+ fromAminoMsg(object: Expr_SelectAminoMsg): Expr_Select {
1708
+ return Expr_Select.fromAmino(object.value);
1709
+ },
1710
+ fromProtoMsg(message: Expr_SelectProtoMsg): Expr_Select {
1711
+ return Expr_Select.decode(message.value);
1712
+ },
1713
+ toProto(message: Expr_Select): Uint8Array {
1714
+ return Expr_Select.encode(message).finish();
1715
+ },
1716
+ toProtoMsg(message: Expr_Select): Expr_SelectProtoMsg {
1717
+ return {
1718
+ typeUrl: "/google.api.expr.v1alpha1.Select",
1719
+ value: Expr_Select.encode(message).finish()
1720
+ };
1721
+ }
1722
+ };
1723
+ function createBaseExpr_Call(): Expr_Call {
1724
+ return {
1725
+ target: undefined,
1726
+ function: "",
1727
+ args: []
1728
+ };
1729
+ }
1730
+ export const Expr_Call = {
1731
+ typeUrl: "/google.api.expr.v1alpha1.Call",
1732
+ encode(message: Expr_Call, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1733
+ if (message.target !== undefined) {
1734
+ Expr.encode(message.target, writer.uint32(10).fork()).ldelim();
1735
+ }
1736
+ if (message.function !== "") {
1737
+ writer.uint32(18).string(message.function);
1738
+ }
1739
+ for (const v of message.args) {
1740
+ Expr.encode(v!, writer.uint32(26).fork()).ldelim();
1741
+ }
1742
+ return writer;
1743
+ },
1744
+ decode(input: BinaryReader | Uint8Array, length?: number): Expr_Call {
1745
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1746
+ let end = length === undefined ? reader.len : reader.pos + length;
1747
+ const message = createBaseExpr_Call();
1748
+ while (reader.pos < end) {
1749
+ const tag = reader.uint32();
1750
+ switch (tag >>> 3) {
1751
+ case 1:
1752
+ message.target = Expr.decode(reader, reader.uint32());
1753
+ break;
1754
+ case 2:
1755
+ message.function = reader.string();
1756
+ break;
1757
+ case 3:
1758
+ message.args.push(Expr.decode(reader, reader.uint32()));
1759
+ break;
1760
+ default:
1761
+ reader.skipType(tag & 7);
1762
+ break;
1763
+ }
1764
+ }
1765
+ return message;
1766
+ },
1767
+ fromPartial(object: Partial<Expr_Call>): Expr_Call {
1768
+ const message = createBaseExpr_Call();
1769
+ message.target = object.target !== undefined && object.target !== null ? Expr.fromPartial(object.target) : undefined;
1770
+ message.function = object.function ?? "";
1771
+ message.args = object.args?.map(e => Expr.fromPartial(e)) || [];
1772
+ return message;
1773
+ },
1774
+ fromAmino(object: Expr_CallAmino): Expr_Call {
1775
+ const message = createBaseExpr_Call();
1776
+ if (object.target !== undefined && object.target !== null) {
1777
+ message.target = Expr.fromAmino(object.target);
1778
+ }
1779
+ if (object.function !== undefined && object.function !== null) {
1780
+ message.function = object.function;
1781
+ }
1782
+ message.args = object.args?.map(e => Expr.fromAmino(e)) || [];
1783
+ return message;
1784
+ },
1785
+ toAmino(message: Expr_Call): Expr_CallAmino {
1786
+ const obj: any = {};
1787
+ obj.target = message.target ? Expr.toAmino(message.target) : undefined;
1788
+ obj.function = message.function === "" ? undefined : message.function;
1789
+ if (message.args) {
1790
+ obj.args = message.args.map(e => e ? Expr.toAmino(e) : undefined);
1791
+ } else {
1792
+ obj.args = message.args;
1793
+ }
1794
+ return obj;
1795
+ },
1796
+ fromAminoMsg(object: Expr_CallAminoMsg): Expr_Call {
1797
+ return Expr_Call.fromAmino(object.value);
1798
+ },
1799
+ fromProtoMsg(message: Expr_CallProtoMsg): Expr_Call {
1800
+ return Expr_Call.decode(message.value);
1801
+ },
1802
+ toProto(message: Expr_Call): Uint8Array {
1803
+ return Expr_Call.encode(message).finish();
1804
+ },
1805
+ toProtoMsg(message: Expr_Call): Expr_CallProtoMsg {
1806
+ return {
1807
+ typeUrl: "/google.api.expr.v1alpha1.Call",
1808
+ value: Expr_Call.encode(message).finish()
1809
+ };
1810
+ }
1811
+ };
1812
+ function createBaseExpr_CreateList(): Expr_CreateList {
1813
+ return {
1814
+ elements: [],
1815
+ optionalIndices: []
1816
+ };
1817
+ }
1818
+ export const Expr_CreateList = {
1819
+ typeUrl: "/google.api.expr.v1alpha1.CreateList",
1820
+ encode(message: Expr_CreateList, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1821
+ for (const v of message.elements) {
1822
+ Expr.encode(v!, writer.uint32(10).fork()).ldelim();
1823
+ }
1824
+ writer.uint32(18).fork();
1825
+ for (const v of message.optionalIndices) {
1826
+ writer.int32(v);
1827
+ }
1828
+ writer.ldelim();
1829
+ return writer;
1830
+ },
1831
+ decode(input: BinaryReader | Uint8Array, length?: number): Expr_CreateList {
1832
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1833
+ let end = length === undefined ? reader.len : reader.pos + length;
1834
+ const message = createBaseExpr_CreateList();
1835
+ while (reader.pos < end) {
1836
+ const tag = reader.uint32();
1837
+ switch (tag >>> 3) {
1838
+ case 1:
1839
+ message.elements.push(Expr.decode(reader, reader.uint32()));
1840
+ break;
1841
+ case 2:
1842
+ if ((tag & 7) === 2) {
1843
+ const end2 = reader.uint32() + reader.pos;
1844
+ while (reader.pos < end2) {
1845
+ message.optionalIndices.push(reader.int32());
1846
+ }
1847
+ } else {
1848
+ message.optionalIndices.push(reader.int32());
1849
+ }
1850
+ break;
1851
+ default:
1852
+ reader.skipType(tag & 7);
1853
+ break;
1854
+ }
1855
+ }
1856
+ return message;
1857
+ },
1858
+ fromPartial(object: Partial<Expr_CreateList>): Expr_CreateList {
1859
+ const message = createBaseExpr_CreateList();
1860
+ message.elements = object.elements?.map(e => Expr.fromPartial(e)) || [];
1861
+ message.optionalIndices = object.optionalIndices?.map(e => e) || [];
1862
+ return message;
1863
+ },
1864
+ fromAmino(object: Expr_CreateListAmino): Expr_CreateList {
1865
+ const message = createBaseExpr_CreateList();
1866
+ message.elements = object.elements?.map(e => Expr.fromAmino(e)) || [];
1867
+ message.optionalIndices = object.optional_indices?.map(e => e) || [];
1868
+ return message;
1869
+ },
1870
+ toAmino(message: Expr_CreateList): Expr_CreateListAmino {
1871
+ const obj: any = {};
1872
+ if (message.elements) {
1873
+ obj.elements = message.elements.map(e => e ? Expr.toAmino(e) : undefined);
1874
+ } else {
1875
+ obj.elements = message.elements;
1876
+ }
1877
+ if (message.optionalIndices) {
1878
+ obj.optional_indices = message.optionalIndices.map(e => e);
1879
+ } else {
1880
+ obj.optional_indices = message.optionalIndices;
1881
+ }
1882
+ return obj;
1883
+ },
1884
+ fromAminoMsg(object: Expr_CreateListAminoMsg): Expr_CreateList {
1885
+ return Expr_CreateList.fromAmino(object.value);
1886
+ },
1887
+ fromProtoMsg(message: Expr_CreateListProtoMsg): Expr_CreateList {
1888
+ return Expr_CreateList.decode(message.value);
1889
+ },
1890
+ toProto(message: Expr_CreateList): Uint8Array {
1891
+ return Expr_CreateList.encode(message).finish();
1892
+ },
1893
+ toProtoMsg(message: Expr_CreateList): Expr_CreateListProtoMsg {
1894
+ return {
1895
+ typeUrl: "/google.api.expr.v1alpha1.CreateList",
1896
+ value: Expr_CreateList.encode(message).finish()
1897
+ };
1898
+ }
1899
+ };
1900
+ function createBaseExpr_CreateStruct(): Expr_CreateStruct {
1901
+ return {
1902
+ messageName: "",
1903
+ entries: []
1904
+ };
1905
+ }
1906
+ export const Expr_CreateStruct = {
1907
+ typeUrl: "/google.api.expr.v1alpha1.CreateStruct",
1908
+ encode(message: Expr_CreateStruct, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1909
+ if (message.messageName !== "") {
1910
+ writer.uint32(10).string(message.messageName);
1911
+ }
1912
+ for (const v of message.entries) {
1913
+ Expr_CreateStruct_Entry.encode(v!, writer.uint32(18).fork()).ldelim();
1914
+ }
1915
+ return writer;
1916
+ },
1917
+ decode(input: BinaryReader | Uint8Array, length?: number): Expr_CreateStruct {
1918
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1919
+ let end = length === undefined ? reader.len : reader.pos + length;
1920
+ const message = createBaseExpr_CreateStruct();
1921
+ while (reader.pos < end) {
1922
+ const tag = reader.uint32();
1923
+ switch (tag >>> 3) {
1924
+ case 1:
1925
+ message.messageName = reader.string();
1926
+ break;
1927
+ case 2:
1928
+ message.entries.push(Expr_CreateStruct_Entry.decode(reader, reader.uint32()));
1929
+ break;
1930
+ default:
1931
+ reader.skipType(tag & 7);
1932
+ break;
1933
+ }
1934
+ }
1935
+ return message;
1936
+ },
1937
+ fromPartial(object: Partial<Expr_CreateStruct>): Expr_CreateStruct {
1938
+ const message = createBaseExpr_CreateStruct();
1939
+ message.messageName = object.messageName ?? "";
1940
+ message.entries = object.entries?.map(e => Expr_CreateStruct_Entry.fromPartial(e)) || [];
1941
+ return message;
1942
+ },
1943
+ fromAmino(object: Expr_CreateStructAmino): Expr_CreateStruct {
1944
+ const message = createBaseExpr_CreateStruct();
1945
+ if (object.message_name !== undefined && object.message_name !== null) {
1946
+ message.messageName = object.message_name;
1947
+ }
1948
+ message.entries = object.entries?.map(e => Expr_CreateStruct_Entry.fromAmino(e)) || [];
1949
+ return message;
1950
+ },
1951
+ toAmino(message: Expr_CreateStruct): Expr_CreateStructAmino {
1952
+ const obj: any = {};
1953
+ obj.message_name = message.messageName === "" ? undefined : message.messageName;
1954
+ if (message.entries) {
1955
+ obj.entries = message.entries.map(e => e ? Expr_CreateStruct_Entry.toAmino(e) : undefined);
1956
+ } else {
1957
+ obj.entries = message.entries;
1958
+ }
1959
+ return obj;
1960
+ },
1961
+ fromAminoMsg(object: Expr_CreateStructAminoMsg): Expr_CreateStruct {
1962
+ return Expr_CreateStruct.fromAmino(object.value);
1963
+ },
1964
+ fromProtoMsg(message: Expr_CreateStructProtoMsg): Expr_CreateStruct {
1965
+ return Expr_CreateStruct.decode(message.value);
1966
+ },
1967
+ toProto(message: Expr_CreateStruct): Uint8Array {
1968
+ return Expr_CreateStruct.encode(message).finish();
1969
+ },
1970
+ toProtoMsg(message: Expr_CreateStruct): Expr_CreateStructProtoMsg {
1971
+ return {
1972
+ typeUrl: "/google.api.expr.v1alpha1.CreateStruct",
1973
+ value: Expr_CreateStruct.encode(message).finish()
1974
+ };
1975
+ }
1976
+ };
1977
+ function createBaseExpr_CreateStruct_Entry(): Expr_CreateStruct_Entry {
1978
+ return {
1979
+ id: BigInt(0),
1980
+ fieldKey: undefined,
1981
+ mapKey: undefined,
1982
+ value: undefined,
1983
+ optionalEntry: false
1984
+ };
1985
+ }
1986
+ export const Expr_CreateStruct_Entry = {
1987
+ typeUrl: "/google.api.expr.v1alpha1.Entry",
1988
+ encode(message: Expr_CreateStruct_Entry, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1989
+ if (message.id !== BigInt(0)) {
1990
+ writer.uint32(8).int64(message.id);
1991
+ }
1992
+ if (message.fieldKey !== undefined) {
1993
+ writer.uint32(18).string(message.fieldKey);
1994
+ }
1995
+ if (message.mapKey !== undefined) {
1996
+ Expr.encode(message.mapKey, writer.uint32(26).fork()).ldelim();
1997
+ }
1998
+ if (message.value !== undefined) {
1999
+ Expr.encode(message.value, writer.uint32(34).fork()).ldelim();
2000
+ }
2001
+ if (message.optionalEntry === true) {
2002
+ writer.uint32(40).bool(message.optionalEntry);
2003
+ }
2004
+ return writer;
2005
+ },
2006
+ decode(input: BinaryReader | Uint8Array, length?: number): Expr_CreateStruct_Entry {
2007
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2008
+ let end = length === undefined ? reader.len : reader.pos + length;
2009
+ const message = createBaseExpr_CreateStruct_Entry();
2010
+ while (reader.pos < end) {
2011
+ const tag = reader.uint32();
2012
+ switch (tag >>> 3) {
2013
+ case 1:
2014
+ message.id = reader.int64();
2015
+ break;
2016
+ case 2:
2017
+ message.fieldKey = reader.string();
2018
+ break;
2019
+ case 3:
2020
+ message.mapKey = Expr.decode(reader, reader.uint32());
2021
+ break;
2022
+ case 4:
2023
+ message.value = Expr.decode(reader, reader.uint32());
2024
+ break;
2025
+ case 5:
2026
+ message.optionalEntry = reader.bool();
2027
+ break;
2028
+ default:
2029
+ reader.skipType(tag & 7);
2030
+ break;
2031
+ }
2032
+ }
2033
+ return message;
2034
+ },
2035
+ fromPartial(object: Partial<Expr_CreateStruct_Entry>): Expr_CreateStruct_Entry {
2036
+ const message = createBaseExpr_CreateStruct_Entry();
2037
+ message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0);
2038
+ message.fieldKey = object.fieldKey ?? undefined;
2039
+ message.mapKey = object.mapKey !== undefined && object.mapKey !== null ? Expr.fromPartial(object.mapKey) : undefined;
2040
+ message.value = object.value !== undefined && object.value !== null ? Expr.fromPartial(object.value) : undefined;
2041
+ message.optionalEntry = object.optionalEntry ?? false;
2042
+ return message;
2043
+ },
2044
+ fromAmino(object: Expr_CreateStruct_EntryAmino): Expr_CreateStruct_Entry {
2045
+ const message = createBaseExpr_CreateStruct_Entry();
2046
+ if (object.id !== undefined && object.id !== null) {
2047
+ message.id = BigInt(object.id);
2048
+ }
2049
+ if (object.field_key !== undefined && object.field_key !== null) {
2050
+ message.fieldKey = object.field_key;
2051
+ }
2052
+ if (object.map_key !== undefined && object.map_key !== null) {
2053
+ message.mapKey = Expr.fromAmino(object.map_key);
2054
+ }
2055
+ if (object.value !== undefined && object.value !== null) {
2056
+ message.value = Expr.fromAmino(object.value);
2057
+ }
2058
+ if (object.optional_entry !== undefined && object.optional_entry !== null) {
2059
+ message.optionalEntry = object.optional_entry;
2060
+ }
2061
+ return message;
2062
+ },
2063
+ toAmino(message: Expr_CreateStruct_Entry): Expr_CreateStruct_EntryAmino {
2064
+ const obj: any = {};
2065
+ obj.id = message.id !== BigInt(0) ? message.id?.toString() : undefined;
2066
+ obj.field_key = message.fieldKey === null ? undefined : message.fieldKey;
2067
+ obj.map_key = message.mapKey ? Expr.toAmino(message.mapKey) : undefined;
2068
+ obj.value = message.value ? Expr.toAmino(message.value) : undefined;
2069
+ obj.optional_entry = message.optionalEntry === false ? undefined : message.optionalEntry;
2070
+ return obj;
2071
+ },
2072
+ fromAminoMsg(object: Expr_CreateStruct_EntryAminoMsg): Expr_CreateStruct_Entry {
2073
+ return Expr_CreateStruct_Entry.fromAmino(object.value);
2074
+ },
2075
+ fromProtoMsg(message: Expr_CreateStruct_EntryProtoMsg): Expr_CreateStruct_Entry {
2076
+ return Expr_CreateStruct_Entry.decode(message.value);
2077
+ },
2078
+ toProto(message: Expr_CreateStruct_Entry): Uint8Array {
2079
+ return Expr_CreateStruct_Entry.encode(message).finish();
2080
+ },
2081
+ toProtoMsg(message: Expr_CreateStruct_Entry): Expr_CreateStruct_EntryProtoMsg {
2082
+ return {
2083
+ typeUrl: "/google.api.expr.v1alpha1.Entry",
2084
+ value: Expr_CreateStruct_Entry.encode(message).finish()
2085
+ };
2086
+ }
2087
+ };
2088
+ function createBaseExpr_Comprehension(): Expr_Comprehension {
2089
+ return {
2090
+ iterVar: "",
2091
+ iterVar2: "",
2092
+ iterRange: undefined,
2093
+ accuVar: "",
2094
+ accuInit: undefined,
2095
+ loopCondition: undefined,
2096
+ loopStep: undefined,
2097
+ result: undefined
2098
+ };
2099
+ }
2100
+ export const Expr_Comprehension = {
2101
+ typeUrl: "/google.api.expr.v1alpha1.Comprehension",
2102
+ encode(message: Expr_Comprehension, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
2103
+ if (message.iterVar !== "") {
2104
+ writer.uint32(10).string(message.iterVar);
2105
+ }
2106
+ if (message.iterVar2 !== "") {
2107
+ writer.uint32(66).string(message.iterVar2);
2108
+ }
2109
+ if (message.iterRange !== undefined) {
2110
+ Expr.encode(message.iterRange, writer.uint32(18).fork()).ldelim();
2111
+ }
2112
+ if (message.accuVar !== "") {
2113
+ writer.uint32(26).string(message.accuVar);
2114
+ }
2115
+ if (message.accuInit !== undefined) {
2116
+ Expr.encode(message.accuInit, writer.uint32(34).fork()).ldelim();
2117
+ }
2118
+ if (message.loopCondition !== undefined) {
2119
+ Expr.encode(message.loopCondition, writer.uint32(42).fork()).ldelim();
2120
+ }
2121
+ if (message.loopStep !== undefined) {
2122
+ Expr.encode(message.loopStep, writer.uint32(50).fork()).ldelim();
2123
+ }
2124
+ if (message.result !== undefined) {
2125
+ Expr.encode(message.result, writer.uint32(58).fork()).ldelim();
2126
+ }
2127
+ return writer;
2128
+ },
2129
+ decode(input: BinaryReader | Uint8Array, length?: number): Expr_Comprehension {
2130
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2131
+ let end = length === undefined ? reader.len : reader.pos + length;
2132
+ const message = createBaseExpr_Comprehension();
2133
+ while (reader.pos < end) {
2134
+ const tag = reader.uint32();
2135
+ switch (tag >>> 3) {
2136
+ case 1:
2137
+ message.iterVar = reader.string();
2138
+ break;
2139
+ case 8:
2140
+ message.iterVar2 = reader.string();
2141
+ break;
2142
+ case 2:
2143
+ message.iterRange = Expr.decode(reader, reader.uint32());
2144
+ break;
2145
+ case 3:
2146
+ message.accuVar = reader.string();
2147
+ break;
2148
+ case 4:
2149
+ message.accuInit = Expr.decode(reader, reader.uint32());
2150
+ break;
2151
+ case 5:
2152
+ message.loopCondition = Expr.decode(reader, reader.uint32());
2153
+ break;
2154
+ case 6:
2155
+ message.loopStep = Expr.decode(reader, reader.uint32());
2156
+ break;
2157
+ case 7:
2158
+ message.result = Expr.decode(reader, reader.uint32());
2159
+ break;
2160
+ default:
2161
+ reader.skipType(tag & 7);
2162
+ break;
2163
+ }
2164
+ }
2165
+ return message;
2166
+ },
2167
+ fromPartial(object: Partial<Expr_Comprehension>): Expr_Comprehension {
2168
+ const message = createBaseExpr_Comprehension();
2169
+ message.iterVar = object.iterVar ?? "";
2170
+ message.iterVar2 = object.iterVar2 ?? "";
2171
+ message.iterRange = object.iterRange !== undefined && object.iterRange !== null ? Expr.fromPartial(object.iterRange) : undefined;
2172
+ message.accuVar = object.accuVar ?? "";
2173
+ message.accuInit = object.accuInit !== undefined && object.accuInit !== null ? Expr.fromPartial(object.accuInit) : undefined;
2174
+ message.loopCondition = object.loopCondition !== undefined && object.loopCondition !== null ? Expr.fromPartial(object.loopCondition) : undefined;
2175
+ message.loopStep = object.loopStep !== undefined && object.loopStep !== null ? Expr.fromPartial(object.loopStep) : undefined;
2176
+ message.result = object.result !== undefined && object.result !== null ? Expr.fromPartial(object.result) : undefined;
2177
+ return message;
2178
+ },
2179
+ fromAmino(object: Expr_ComprehensionAmino): Expr_Comprehension {
2180
+ const message = createBaseExpr_Comprehension();
2181
+ if (object.iter_var !== undefined && object.iter_var !== null) {
2182
+ message.iterVar = object.iter_var;
2183
+ }
2184
+ if (object.iter_var2 !== undefined && object.iter_var2 !== null) {
2185
+ message.iterVar2 = object.iter_var2;
2186
+ }
2187
+ if (object.iter_range !== undefined && object.iter_range !== null) {
2188
+ message.iterRange = Expr.fromAmino(object.iter_range);
2189
+ }
2190
+ if (object.accu_var !== undefined && object.accu_var !== null) {
2191
+ message.accuVar = object.accu_var;
2192
+ }
2193
+ if (object.accu_init !== undefined && object.accu_init !== null) {
2194
+ message.accuInit = Expr.fromAmino(object.accu_init);
2195
+ }
2196
+ if (object.loop_condition !== undefined && object.loop_condition !== null) {
2197
+ message.loopCondition = Expr.fromAmino(object.loop_condition);
2198
+ }
2199
+ if (object.loop_step !== undefined && object.loop_step !== null) {
2200
+ message.loopStep = Expr.fromAmino(object.loop_step);
2201
+ }
2202
+ if (object.result !== undefined && object.result !== null) {
2203
+ message.result = Expr.fromAmino(object.result);
2204
+ }
2205
+ return message;
2206
+ },
2207
+ toAmino(message: Expr_Comprehension): Expr_ComprehensionAmino {
2208
+ const obj: any = {};
2209
+ obj.iter_var = message.iterVar === "" ? undefined : message.iterVar;
2210
+ obj.iter_var2 = message.iterVar2 === "" ? undefined : message.iterVar2;
2211
+ obj.iter_range = message.iterRange ? Expr.toAmino(message.iterRange) : undefined;
2212
+ obj.accu_var = message.accuVar === "" ? undefined : message.accuVar;
2213
+ obj.accu_init = message.accuInit ? Expr.toAmino(message.accuInit) : undefined;
2214
+ obj.loop_condition = message.loopCondition ? Expr.toAmino(message.loopCondition) : undefined;
2215
+ obj.loop_step = message.loopStep ? Expr.toAmino(message.loopStep) : undefined;
2216
+ obj.result = message.result ? Expr.toAmino(message.result) : undefined;
2217
+ return obj;
2218
+ },
2219
+ fromAminoMsg(object: Expr_ComprehensionAminoMsg): Expr_Comprehension {
2220
+ return Expr_Comprehension.fromAmino(object.value);
2221
+ },
2222
+ fromProtoMsg(message: Expr_ComprehensionProtoMsg): Expr_Comprehension {
2223
+ return Expr_Comprehension.decode(message.value);
2224
+ },
2225
+ toProto(message: Expr_Comprehension): Uint8Array {
2226
+ return Expr_Comprehension.encode(message).finish();
2227
+ },
2228
+ toProtoMsg(message: Expr_Comprehension): Expr_ComprehensionProtoMsg {
2229
+ return {
2230
+ typeUrl: "/google.api.expr.v1alpha1.Comprehension",
2231
+ value: Expr_Comprehension.encode(message).finish()
2232
+ };
2233
+ }
2234
+ };
2235
+ function createBaseConstant(): Constant {
2236
+ return {
2237
+ nullValue: undefined,
2238
+ boolValue: undefined,
2239
+ int64Value: undefined,
2240
+ uint64Value: undefined,
2241
+ doubleValue: undefined,
2242
+ stringValue: undefined,
2243
+ bytesValue: undefined,
2244
+ durationValue: undefined,
2245
+ timestampValue: undefined
2246
+ };
2247
+ }
2248
+ export const Constant = {
2249
+ typeUrl: "/google.api.expr.v1alpha1.Constant",
2250
+ encode(message: Constant, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
2251
+ if (message.nullValue !== undefined) {
2252
+ writer.uint32(8).int32(message.nullValue);
2253
+ }
2254
+ if (message.boolValue !== undefined) {
2255
+ writer.uint32(16).bool(message.boolValue);
2256
+ }
2257
+ if (message.int64Value !== undefined) {
2258
+ writer.uint32(24).int64(message.int64Value);
2259
+ }
2260
+ if (message.uint64Value !== undefined) {
2261
+ writer.uint32(32).uint64(message.uint64Value);
2262
+ }
2263
+ if (message.doubleValue !== undefined) {
2264
+ writer.uint32(41).double(message.doubleValue);
2265
+ }
2266
+ if (message.stringValue !== undefined) {
2267
+ writer.uint32(50).string(message.stringValue);
2268
+ }
2269
+ if (message.bytesValue !== undefined) {
2270
+ writer.uint32(58).bytes(message.bytesValue);
2271
+ }
2272
+ if (message.durationValue !== undefined) {
2273
+ Duration.encode(message.durationValue, writer.uint32(66).fork()).ldelim();
2274
+ }
2275
+ if (message.timestampValue !== undefined) {
2276
+ Timestamp.encode(toTimestamp(message.timestampValue), writer.uint32(74).fork()).ldelim();
2277
+ }
2278
+ return writer;
2279
+ },
2280
+ decode(input: BinaryReader | Uint8Array, length?: number): Constant {
2281
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2282
+ let end = length === undefined ? reader.len : reader.pos + length;
2283
+ const message = createBaseConstant();
2284
+ while (reader.pos < end) {
2285
+ const tag = reader.uint32();
2286
+ switch (tag >>> 3) {
2287
+ case 1:
2288
+ message.nullValue = reader.int32() as any;
2289
+ break;
2290
+ case 2:
2291
+ message.boolValue = reader.bool();
2292
+ break;
2293
+ case 3:
2294
+ message.int64Value = reader.int64();
2295
+ break;
2296
+ case 4:
2297
+ message.uint64Value = reader.uint64();
2298
+ break;
2299
+ case 5:
2300
+ message.doubleValue = reader.double();
2301
+ break;
2302
+ case 6:
2303
+ message.stringValue = reader.string();
2304
+ break;
2305
+ case 7:
2306
+ message.bytesValue = reader.bytes();
2307
+ break;
2308
+ case 8:
2309
+ message.durationValue = Duration.decode(reader, reader.uint32());
2310
+ break;
2311
+ case 9:
2312
+ message.timestampValue = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
2313
+ break;
2314
+ default:
2315
+ reader.skipType(tag & 7);
2316
+ break;
2317
+ }
2318
+ }
2319
+ return message;
2320
+ },
2321
+ fromPartial(object: Partial<Constant>): Constant {
2322
+ const message = createBaseConstant();
2323
+ message.nullValue = object.nullValue ?? undefined;
2324
+ message.boolValue = object.boolValue ?? undefined;
2325
+ message.int64Value = object.int64Value !== undefined && object.int64Value !== null ? BigInt(object.int64Value.toString()) : undefined;
2326
+ message.uint64Value = object.uint64Value !== undefined && object.uint64Value !== null ? BigInt(object.uint64Value.toString()) : undefined;
2327
+ message.doubleValue = object.doubleValue ?? undefined;
2328
+ message.stringValue = object.stringValue ?? undefined;
2329
+ message.bytesValue = object.bytesValue ?? undefined;
2330
+ message.durationValue = object.durationValue !== undefined && object.durationValue !== null ? Duration.fromPartial(object.durationValue) : undefined;
2331
+ message.timestampValue = object.timestampValue ?? undefined;
2332
+ return message;
2333
+ },
2334
+ fromAmino(object: ConstantAmino): Constant {
2335
+ const message = createBaseConstant();
2336
+ if (object.null_value !== undefined && object.null_value !== null) {
2337
+ message.nullValue = object.null_value;
2338
+ }
2339
+ if (object.bool_value !== undefined && object.bool_value !== null) {
2340
+ message.boolValue = object.bool_value;
2341
+ }
2342
+ if (object.int64_value !== undefined && object.int64_value !== null) {
2343
+ message.int64Value = BigInt(object.int64_value);
2344
+ }
2345
+ if (object.uint64_value !== undefined && object.uint64_value !== null) {
2346
+ message.uint64Value = BigInt(object.uint64_value);
2347
+ }
2348
+ if (object.double_value !== undefined && object.double_value !== null) {
2349
+ message.doubleValue = object.double_value;
2350
+ }
2351
+ if (object.string_value !== undefined && object.string_value !== null) {
2352
+ message.stringValue = object.string_value;
2353
+ }
2354
+ if (object.bytes_value !== undefined && object.bytes_value !== null) {
2355
+ message.bytesValue = bytesFromBase64(object.bytes_value);
2356
+ }
2357
+ if (object.duration_value !== undefined && object.duration_value !== null) {
2358
+ message.durationValue = Duration.fromAmino(object.duration_value);
2359
+ }
2360
+ if (object.timestamp_value !== undefined && object.timestamp_value !== null) {
2361
+ message.timestampValue = fromTimestamp(Timestamp.fromAmino(object.timestamp_value));
2362
+ }
2363
+ return message;
2364
+ },
2365
+ toAmino(message: Constant): ConstantAmino {
2366
+ const obj: any = {};
2367
+ obj.null_value = message.nullValue === null ? undefined : message.nullValue;
2368
+ obj.bool_value = message.boolValue === null ? undefined : message.boolValue;
2369
+ obj.int64_value = message.int64Value !== BigInt(0) ? message.int64Value?.toString() : undefined;
2370
+ obj.uint64_value = message.uint64Value !== BigInt(0) ? message.uint64Value?.toString() : undefined;
2371
+ obj.double_value = message.doubleValue === null ? undefined : message.doubleValue;
2372
+ obj.string_value = message.stringValue === null ? undefined : message.stringValue;
2373
+ obj.bytes_value = message.bytesValue ? base64FromBytes(message.bytesValue) : undefined;
2374
+ obj.duration_value = message.durationValue ? Duration.toAmino(message.durationValue) : undefined;
2375
+ obj.timestamp_value = message.timestampValue ? Timestamp.toAmino(toTimestamp(message.timestampValue)) : undefined;
2376
+ return obj;
2377
+ },
2378
+ fromAminoMsg(object: ConstantAminoMsg): Constant {
2379
+ return Constant.fromAmino(object.value);
2380
+ },
2381
+ fromProtoMsg(message: ConstantProtoMsg): Constant {
2382
+ return Constant.decode(message.value);
2383
+ },
2384
+ toProto(message: Constant): Uint8Array {
2385
+ return Constant.encode(message).finish();
2386
+ },
2387
+ toProtoMsg(message: Constant): ConstantProtoMsg {
2388
+ return {
2389
+ typeUrl: "/google.api.expr.v1alpha1.Constant",
2390
+ value: Constant.encode(message).finish()
2391
+ };
2392
+ }
2393
+ };
2394
+ function createBaseSourceInfo_PositionsEntry(): SourceInfo_PositionsEntry {
2395
+ return {
2396
+ key: BigInt(0),
2397
+ value: 0
2398
+ };
2399
+ }
2400
+ export const SourceInfo_PositionsEntry = {
2401
+ encode(message: SourceInfo_PositionsEntry, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
2402
+ if (message.key !== BigInt(0)) {
2403
+ writer.uint32(8).int64(message.key);
2404
+ }
2405
+ if (message.value !== 0) {
2406
+ writer.uint32(16).int32(message.value);
2407
+ }
2408
+ return writer;
2409
+ },
2410
+ decode(input: BinaryReader | Uint8Array, length?: number): SourceInfo_PositionsEntry {
2411
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2412
+ let end = length === undefined ? reader.len : reader.pos + length;
2413
+ const message = createBaseSourceInfo_PositionsEntry();
2414
+ while (reader.pos < end) {
2415
+ const tag = reader.uint32();
2416
+ switch (tag >>> 3) {
2417
+ case 1:
2418
+ message.key = reader.int64();
2419
+ break;
2420
+ case 2:
2421
+ message.value = reader.int32();
2422
+ break;
2423
+ default:
2424
+ reader.skipType(tag & 7);
2425
+ break;
2426
+ }
2427
+ }
2428
+ return message;
2429
+ },
2430
+ fromPartial(object: Partial<SourceInfo_PositionsEntry>): SourceInfo_PositionsEntry {
2431
+ const message = createBaseSourceInfo_PositionsEntry();
2432
+ message.key = object.key !== undefined && object.key !== null ? BigInt(object.key.toString()) : BigInt(0);
2433
+ message.value = object.value ?? 0;
2434
+ return message;
2435
+ },
2436
+ fromAmino(object: SourceInfo_PositionsEntryAmino): SourceInfo_PositionsEntry {
2437
+ const message = createBaseSourceInfo_PositionsEntry();
2438
+ if (object.key !== undefined && object.key !== null) {
2439
+ message.key = BigInt(object.key);
2440
+ }
2441
+ if (object.value !== undefined && object.value !== null) {
2442
+ message.value = object.value;
2443
+ }
2444
+ return message;
2445
+ },
2446
+ toAmino(message: SourceInfo_PositionsEntry): SourceInfo_PositionsEntryAmino {
2447
+ const obj: any = {};
2448
+ obj.key = message.key !== BigInt(0) ? message.key?.toString() : undefined;
2449
+ obj.value = message.value === 0 ? undefined : message.value;
2450
+ return obj;
2451
+ },
2452
+ fromAminoMsg(object: SourceInfo_PositionsEntryAminoMsg): SourceInfo_PositionsEntry {
2453
+ return SourceInfo_PositionsEntry.fromAmino(object.value);
2454
+ },
2455
+ fromProtoMsg(message: SourceInfo_PositionsEntryProtoMsg): SourceInfo_PositionsEntry {
2456
+ return SourceInfo_PositionsEntry.decode(message.value);
2457
+ },
2458
+ toProto(message: SourceInfo_PositionsEntry): Uint8Array {
2459
+ return SourceInfo_PositionsEntry.encode(message).finish();
2460
+ }
2461
+ };
2462
+ function createBaseSourceInfo_MacroCallsEntry(): SourceInfo_MacroCallsEntry {
2463
+ return {
2464
+ key: BigInt(0),
2465
+ value: undefined
2466
+ };
2467
+ }
2468
+ export const SourceInfo_MacroCallsEntry = {
2469
+ encode(message: SourceInfo_MacroCallsEntry, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
2470
+ if (message.key !== BigInt(0)) {
2471
+ writer.uint32(8).int64(message.key);
2472
+ }
2473
+ if (message.value !== undefined) {
2474
+ Expr.encode(message.value, writer.uint32(18).fork()).ldelim();
2475
+ }
2476
+ return writer;
2477
+ },
2478
+ decode(input: BinaryReader | Uint8Array, length?: number): SourceInfo_MacroCallsEntry {
2479
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2480
+ let end = length === undefined ? reader.len : reader.pos + length;
2481
+ const message = createBaseSourceInfo_MacroCallsEntry();
2482
+ while (reader.pos < end) {
2483
+ const tag = reader.uint32();
2484
+ switch (tag >>> 3) {
2485
+ case 1:
2486
+ message.key = reader.int64();
2487
+ break;
2488
+ case 2:
2489
+ message.value = Expr.decode(reader, reader.uint32());
2490
+ break;
2491
+ default:
2492
+ reader.skipType(tag & 7);
2493
+ break;
2494
+ }
2495
+ }
2496
+ return message;
2497
+ },
2498
+ fromPartial(object: Partial<SourceInfo_MacroCallsEntry>): SourceInfo_MacroCallsEntry {
2499
+ const message = createBaseSourceInfo_MacroCallsEntry();
2500
+ message.key = object.key !== undefined && object.key !== null ? BigInt(object.key.toString()) : BigInt(0);
2501
+ message.value = object.value !== undefined && object.value !== null ? Expr.fromPartial(object.value) : undefined;
2502
+ return message;
2503
+ },
2504
+ fromAmino(object: SourceInfo_MacroCallsEntryAmino): SourceInfo_MacroCallsEntry {
2505
+ const message = createBaseSourceInfo_MacroCallsEntry();
2506
+ if (object.key !== undefined && object.key !== null) {
2507
+ message.key = BigInt(object.key);
2508
+ }
2509
+ if (object.value !== undefined && object.value !== null) {
2510
+ message.value = Expr.fromAmino(object.value);
2511
+ }
2512
+ return message;
2513
+ },
2514
+ toAmino(message: SourceInfo_MacroCallsEntry): SourceInfo_MacroCallsEntryAmino {
2515
+ const obj: any = {};
2516
+ obj.key = message.key !== BigInt(0) ? message.key?.toString() : undefined;
2517
+ obj.value = message.value ? Expr.toAmino(message.value) : undefined;
2518
+ return obj;
2519
+ },
2520
+ fromAminoMsg(object: SourceInfo_MacroCallsEntryAminoMsg): SourceInfo_MacroCallsEntry {
2521
+ return SourceInfo_MacroCallsEntry.fromAmino(object.value);
2522
+ },
2523
+ fromProtoMsg(message: SourceInfo_MacroCallsEntryProtoMsg): SourceInfo_MacroCallsEntry {
2524
+ return SourceInfo_MacroCallsEntry.decode(message.value);
2525
+ },
2526
+ toProto(message: SourceInfo_MacroCallsEntry): Uint8Array {
2527
+ return SourceInfo_MacroCallsEntry.encode(message).finish();
2528
+ }
2529
+ };
2530
+ function createBaseSourceInfo(): SourceInfo {
2531
+ return {
2532
+ syntaxVersion: "",
2533
+ location: "",
2534
+ lineOffsets: [],
2535
+ positions: {},
2536
+ macroCalls: {},
2537
+ extensions: []
2538
+ };
2539
+ }
2540
+ export const SourceInfo = {
2541
+ typeUrl: "/google.api.expr.v1alpha1.SourceInfo",
2542
+ encode(message: SourceInfo, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
2543
+ if (message.syntaxVersion !== "") {
2544
+ writer.uint32(10).string(message.syntaxVersion);
2545
+ }
2546
+ if (message.location !== "") {
2547
+ writer.uint32(18).string(message.location);
2548
+ }
2549
+ writer.uint32(26).fork();
2550
+ for (const v of message.lineOffsets) {
2551
+ writer.int32(v);
2552
+ }
2553
+ writer.ldelim();
2554
+ Object.entries(message.positions).forEach(([key, value]) => {
2555
+ SourceInfo_PositionsEntry.encode({
2556
+ key: key as any,
2557
+ value
2558
+ }, writer.uint32(32).fork()).ldelim();
2559
+ });
2560
+ Object.entries(message.macroCalls).forEach(([key, value]) => {
2561
+ SourceInfo_MacroCallsEntry.encode({
2562
+ key: key as any,
2563
+ value
2564
+ }, writer.uint32(42).fork()).ldelim();
2565
+ });
2566
+ for (const v of message.extensions) {
2567
+ SourceInfo_Extension.encode(v!, writer.uint32(50).fork()).ldelim();
2568
+ }
2569
+ return writer;
2570
+ },
2571
+ decode(input: BinaryReader | Uint8Array, length?: number): SourceInfo {
2572
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2573
+ let end = length === undefined ? reader.len : reader.pos + length;
2574
+ const message = createBaseSourceInfo();
2575
+ while (reader.pos < end) {
2576
+ const tag = reader.uint32();
2577
+ switch (tag >>> 3) {
2578
+ case 1:
2579
+ message.syntaxVersion = reader.string();
2580
+ break;
2581
+ case 2:
2582
+ message.location = reader.string();
2583
+ break;
2584
+ case 3:
2585
+ if ((tag & 7) === 2) {
2586
+ const end2 = reader.uint32() + reader.pos;
2587
+ while (reader.pos < end2) {
2588
+ message.lineOffsets.push(reader.int32());
2589
+ }
2590
+ } else {
2591
+ message.lineOffsets.push(reader.int32());
2592
+ }
2593
+ break;
2594
+ case 4:
2595
+ const entry4 = SourceInfo_PositionsEntry.decode(reader, reader.uint32());
2596
+ if (entry4.value !== undefined) {
2597
+ message.positions[entry4.key] = entry4.value;
2598
+ }
2599
+ break;
2600
+ case 5:
2601
+ const entry5 = SourceInfo_MacroCallsEntry.decode(reader, reader.uint32());
2602
+ if (entry5.value !== undefined) {
2603
+ message.macroCalls[entry5.key] = entry5.value;
2604
+ }
2605
+ break;
2606
+ case 6:
2607
+ message.extensions.push(SourceInfo_Extension.decode(reader, reader.uint32()));
2608
+ break;
2609
+ default:
2610
+ reader.skipType(tag & 7);
2611
+ break;
2612
+ }
2613
+ }
2614
+ return message;
2615
+ },
2616
+ fromPartial(object: Partial<SourceInfo>): SourceInfo {
2617
+ const message = createBaseSourceInfo();
2618
+ message.syntaxVersion = object.syntaxVersion ?? "";
2619
+ message.location = object.location ?? "";
2620
+ message.lineOffsets = object.lineOffsets?.map(e => e) || [];
2621
+ message.positions = Object.entries(object.positions ?? {}).reduce<{
2622
+ [key: bigint]: number;
2623
+ }>((acc, [key, value]) => {
2624
+ if (value !== undefined) {
2625
+ acc[Number(key)] = Number(value);
2626
+ }
2627
+ return acc;
2628
+ }, {});
2629
+ message.macroCalls = Object.entries(object.macroCalls ?? {}).reduce<{
2630
+ [key: bigint]: Expr;
2631
+ }>((acc, [key, value]) => {
2632
+ if (value !== undefined) {
2633
+ acc[Number(key)] = Expr.fromPartial(value);
2634
+ }
2635
+ return acc;
2636
+ }, {});
2637
+ message.extensions = object.extensions?.map(e => SourceInfo_Extension.fromPartial(e)) || [];
2638
+ return message;
2639
+ },
2640
+ fromAmino(object: SourceInfoAmino): SourceInfo {
2641
+ const message = createBaseSourceInfo();
2642
+ if (object.syntax_version !== undefined && object.syntax_version !== null) {
2643
+ message.syntaxVersion = object.syntax_version;
2644
+ }
2645
+ if (object.location !== undefined && object.location !== null) {
2646
+ message.location = object.location;
2647
+ }
2648
+ message.lineOffsets = object.line_offsets?.map(e => e) || [];
2649
+ message.positions = Object.entries(object.positions ?? {}).reduce<{
2650
+ [key: bigint]: number;
2651
+ }>((acc, [key, value]) => {
2652
+ if (value !== undefined) {
2653
+ acc[Number(key)] = Number(value);
2654
+ }
2655
+ return acc;
2656
+ }, {});
2657
+ message.macroCalls = Object.entries(object.macro_calls ?? {}).reduce<{
2658
+ [key: bigint]: Expr;
2659
+ }>((acc, [key, value]) => {
2660
+ if (value !== undefined) {
2661
+ acc[Number(key)] = Expr.fromAmino(value);
2662
+ }
2663
+ return acc;
2664
+ }, {});
2665
+ message.extensions = object.extensions?.map(e => SourceInfo_Extension.fromAmino(e)) || [];
2666
+ return message;
2667
+ },
2668
+ toAmino(message: SourceInfo): SourceInfoAmino {
2669
+ const obj: any = {};
2670
+ obj.syntax_version = message.syntaxVersion === "" ? undefined : message.syntaxVersion;
2671
+ obj.location = message.location === "" ? undefined : message.location;
2672
+ if (message.lineOffsets) {
2673
+ obj.line_offsets = message.lineOffsets.map(e => e);
2674
+ } else {
2675
+ obj.line_offsets = message.lineOffsets;
2676
+ }
2677
+ obj.positions = {};
2678
+ if (message.positions) {
2679
+ Object.entries(message.positions).forEach(([k, v]) => {
2680
+ obj.positions[k] = Math.round(v);
2681
+ });
2682
+ }
2683
+ obj.macro_calls = {};
2684
+ if (message.macroCalls) {
2685
+ Object.entries(message.macroCalls).forEach(([k, v]) => {
2686
+ obj.macro_calls[k] = Expr.toAmino(v);
2687
+ });
2688
+ }
2689
+ if (message.extensions) {
2690
+ obj.extensions = message.extensions.map(e => e ? SourceInfo_Extension.toAmino(e) : undefined);
2691
+ } else {
2692
+ obj.extensions = message.extensions;
2693
+ }
2694
+ return obj;
2695
+ },
2696
+ fromAminoMsg(object: SourceInfoAminoMsg): SourceInfo {
2697
+ return SourceInfo.fromAmino(object.value);
2698
+ },
2699
+ fromProtoMsg(message: SourceInfoProtoMsg): SourceInfo {
2700
+ return SourceInfo.decode(message.value);
2701
+ },
2702
+ toProto(message: SourceInfo): Uint8Array {
2703
+ return SourceInfo.encode(message).finish();
2704
+ },
2705
+ toProtoMsg(message: SourceInfo): SourceInfoProtoMsg {
2706
+ return {
2707
+ typeUrl: "/google.api.expr.v1alpha1.SourceInfo",
2708
+ value: SourceInfo.encode(message).finish()
2709
+ };
2710
+ }
2711
+ };
2712
+ function createBaseSourceInfo_Extension(): SourceInfo_Extension {
2713
+ return {
2714
+ id: "",
2715
+ affectedComponents: [],
2716
+ version: undefined
2717
+ };
2718
+ }
2719
+ export const SourceInfo_Extension = {
2720
+ typeUrl: "/google.api.expr.v1alpha1.Extension",
2721
+ encode(message: SourceInfo_Extension, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
2722
+ if (message.id !== "") {
2723
+ writer.uint32(10).string(message.id);
2724
+ }
2725
+ writer.uint32(18).fork();
2726
+ for (const v of message.affectedComponents) {
2727
+ writer.int32(v);
2728
+ }
2729
+ writer.ldelim();
2730
+ if (message.version !== undefined) {
2731
+ SourceInfo_Extension_Version.encode(message.version, writer.uint32(26).fork()).ldelim();
2732
+ }
2733
+ return writer;
2734
+ },
2735
+ decode(input: BinaryReader | Uint8Array, length?: number): SourceInfo_Extension {
2736
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2737
+ let end = length === undefined ? reader.len : reader.pos + length;
2738
+ const message = createBaseSourceInfo_Extension();
2739
+ while (reader.pos < end) {
2740
+ const tag = reader.uint32();
2741
+ switch (tag >>> 3) {
2742
+ case 1:
2743
+ message.id = reader.string();
2744
+ break;
2745
+ case 2:
2746
+ if ((tag & 7) === 2) {
2747
+ const end2 = reader.uint32() + reader.pos;
2748
+ while (reader.pos < end2) {
2749
+ message.affectedComponents.push(reader.int32() as any);
2750
+ }
2751
+ } else {
2752
+ message.affectedComponents.push(reader.int32() as any);
2753
+ }
2754
+ break;
2755
+ case 3:
2756
+ message.version = SourceInfo_Extension_Version.decode(reader, reader.uint32());
2757
+ break;
2758
+ default:
2759
+ reader.skipType(tag & 7);
2760
+ break;
2761
+ }
2762
+ }
2763
+ return message;
2764
+ },
2765
+ fromPartial(object: Partial<SourceInfo_Extension>): SourceInfo_Extension {
2766
+ const message = createBaseSourceInfo_Extension();
2767
+ message.id = object.id ?? "";
2768
+ message.affectedComponents = object.affectedComponents?.map(e => e) || [];
2769
+ message.version = object.version !== undefined && object.version !== null ? SourceInfo_Extension_Version.fromPartial(object.version) : undefined;
2770
+ return message;
2771
+ },
2772
+ fromAmino(object: SourceInfo_ExtensionAmino): SourceInfo_Extension {
2773
+ const message = createBaseSourceInfo_Extension();
2774
+ if (object.id !== undefined && object.id !== null) {
2775
+ message.id = object.id;
2776
+ }
2777
+ message.affectedComponents = object.affected_components?.map(e => e) || [];
2778
+ if (object.version !== undefined && object.version !== null) {
2779
+ message.version = SourceInfo_Extension_Version.fromAmino(object.version);
2780
+ }
2781
+ return message;
2782
+ },
2783
+ toAmino(message: SourceInfo_Extension): SourceInfo_ExtensionAmino {
2784
+ const obj: any = {};
2785
+ obj.id = message.id === "" ? undefined : message.id;
2786
+ if (message.affectedComponents) {
2787
+ obj.affected_components = message.affectedComponents.map(e => e);
2788
+ } else {
2789
+ obj.affected_components = message.affectedComponents;
2790
+ }
2791
+ obj.version = message.version ? SourceInfo_Extension_Version.toAmino(message.version) : undefined;
2792
+ return obj;
2793
+ },
2794
+ fromAminoMsg(object: SourceInfo_ExtensionAminoMsg): SourceInfo_Extension {
2795
+ return SourceInfo_Extension.fromAmino(object.value);
2796
+ },
2797
+ fromProtoMsg(message: SourceInfo_ExtensionProtoMsg): SourceInfo_Extension {
2798
+ return SourceInfo_Extension.decode(message.value);
2799
+ },
2800
+ toProto(message: SourceInfo_Extension): Uint8Array {
2801
+ return SourceInfo_Extension.encode(message).finish();
2802
+ },
2803
+ toProtoMsg(message: SourceInfo_Extension): SourceInfo_ExtensionProtoMsg {
2804
+ return {
2805
+ typeUrl: "/google.api.expr.v1alpha1.Extension",
2806
+ value: SourceInfo_Extension.encode(message).finish()
2807
+ };
2808
+ }
2809
+ };
2810
+ function createBaseSourceInfo_Extension_Version(): SourceInfo_Extension_Version {
2811
+ return {
2812
+ major: BigInt(0),
2813
+ minor: BigInt(0)
2814
+ };
2815
+ }
2816
+ export const SourceInfo_Extension_Version = {
2817
+ typeUrl: "/google.api.expr.v1alpha1.Version",
2818
+ encode(message: SourceInfo_Extension_Version, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
2819
+ if (message.major !== BigInt(0)) {
2820
+ writer.uint32(8).int64(message.major);
2821
+ }
2822
+ if (message.minor !== BigInt(0)) {
2823
+ writer.uint32(16).int64(message.minor);
2824
+ }
2825
+ return writer;
2826
+ },
2827
+ decode(input: BinaryReader | Uint8Array, length?: number): SourceInfo_Extension_Version {
2828
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2829
+ let end = length === undefined ? reader.len : reader.pos + length;
2830
+ const message = createBaseSourceInfo_Extension_Version();
2831
+ while (reader.pos < end) {
2832
+ const tag = reader.uint32();
2833
+ switch (tag >>> 3) {
2834
+ case 1:
2835
+ message.major = reader.int64();
2836
+ break;
2837
+ case 2:
2838
+ message.minor = reader.int64();
2839
+ break;
2840
+ default:
2841
+ reader.skipType(tag & 7);
2842
+ break;
2843
+ }
2844
+ }
2845
+ return message;
2846
+ },
2847
+ fromPartial(object: Partial<SourceInfo_Extension_Version>): SourceInfo_Extension_Version {
2848
+ const message = createBaseSourceInfo_Extension_Version();
2849
+ message.major = object.major !== undefined && object.major !== null ? BigInt(object.major.toString()) : BigInt(0);
2850
+ message.minor = object.minor !== undefined && object.minor !== null ? BigInt(object.minor.toString()) : BigInt(0);
2851
+ return message;
2852
+ },
2853
+ fromAmino(object: SourceInfo_Extension_VersionAmino): SourceInfo_Extension_Version {
2854
+ const message = createBaseSourceInfo_Extension_Version();
2855
+ if (object.major !== undefined && object.major !== null) {
2856
+ message.major = BigInt(object.major);
2857
+ }
2858
+ if (object.minor !== undefined && object.minor !== null) {
2859
+ message.minor = BigInt(object.minor);
2860
+ }
2861
+ return message;
2862
+ },
2863
+ toAmino(message: SourceInfo_Extension_Version): SourceInfo_Extension_VersionAmino {
2864
+ const obj: any = {};
2865
+ obj.major = message.major !== BigInt(0) ? message.major?.toString() : undefined;
2866
+ obj.minor = message.minor !== BigInt(0) ? message.minor?.toString() : undefined;
2867
+ return obj;
2868
+ },
2869
+ fromAminoMsg(object: SourceInfo_Extension_VersionAminoMsg): SourceInfo_Extension_Version {
2870
+ return SourceInfo_Extension_Version.fromAmino(object.value);
2871
+ },
2872
+ fromProtoMsg(message: SourceInfo_Extension_VersionProtoMsg): SourceInfo_Extension_Version {
2873
+ return SourceInfo_Extension_Version.decode(message.value);
2874
+ },
2875
+ toProto(message: SourceInfo_Extension_Version): Uint8Array {
2876
+ return SourceInfo_Extension_Version.encode(message).finish();
2877
+ },
2878
+ toProtoMsg(message: SourceInfo_Extension_Version): SourceInfo_Extension_VersionProtoMsg {
2879
+ return {
2880
+ typeUrl: "/google.api.expr.v1alpha1.Version",
2881
+ value: SourceInfo_Extension_Version.encode(message).finish()
2882
+ };
2883
+ }
2884
+ };
2885
+ function createBaseSourcePosition(): SourcePosition {
2886
+ return {
2887
+ location: "",
2888
+ offset: 0,
2889
+ line: 0,
2890
+ column: 0
2891
+ };
2892
+ }
2893
+ export const SourcePosition = {
2894
+ typeUrl: "/google.api.expr.v1alpha1.SourcePosition",
2895
+ encode(message: SourcePosition, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
2896
+ if (message.location !== "") {
2897
+ writer.uint32(10).string(message.location);
2898
+ }
2899
+ if (message.offset !== 0) {
2900
+ writer.uint32(16).int32(message.offset);
2901
+ }
2902
+ if (message.line !== 0) {
2903
+ writer.uint32(24).int32(message.line);
2904
+ }
2905
+ if (message.column !== 0) {
2906
+ writer.uint32(32).int32(message.column);
2907
+ }
2908
+ return writer;
2909
+ },
2910
+ decode(input: BinaryReader | Uint8Array, length?: number): SourcePosition {
2911
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2912
+ let end = length === undefined ? reader.len : reader.pos + length;
2913
+ const message = createBaseSourcePosition();
2914
+ while (reader.pos < end) {
2915
+ const tag = reader.uint32();
2916
+ switch (tag >>> 3) {
2917
+ case 1:
2918
+ message.location = reader.string();
2919
+ break;
2920
+ case 2:
2921
+ message.offset = reader.int32();
2922
+ break;
2923
+ case 3:
2924
+ message.line = reader.int32();
2925
+ break;
2926
+ case 4:
2927
+ message.column = reader.int32();
2928
+ break;
2929
+ default:
2930
+ reader.skipType(tag & 7);
2931
+ break;
2932
+ }
2933
+ }
2934
+ return message;
2935
+ },
2936
+ fromPartial(object: Partial<SourcePosition>): SourcePosition {
2937
+ const message = createBaseSourcePosition();
2938
+ message.location = object.location ?? "";
2939
+ message.offset = object.offset ?? 0;
2940
+ message.line = object.line ?? 0;
2941
+ message.column = object.column ?? 0;
2942
+ return message;
2943
+ },
2944
+ fromAmino(object: SourcePositionAmino): SourcePosition {
2945
+ const message = createBaseSourcePosition();
2946
+ if (object.location !== undefined && object.location !== null) {
2947
+ message.location = object.location;
2948
+ }
2949
+ if (object.offset !== undefined && object.offset !== null) {
2950
+ message.offset = object.offset;
2951
+ }
2952
+ if (object.line !== undefined && object.line !== null) {
2953
+ message.line = object.line;
2954
+ }
2955
+ if (object.column !== undefined && object.column !== null) {
2956
+ message.column = object.column;
2957
+ }
2958
+ return message;
2959
+ },
2960
+ toAmino(message: SourcePosition): SourcePositionAmino {
2961
+ const obj: any = {};
2962
+ obj.location = message.location === "" ? undefined : message.location;
2963
+ obj.offset = message.offset === 0 ? undefined : message.offset;
2964
+ obj.line = message.line === 0 ? undefined : message.line;
2965
+ obj.column = message.column === 0 ? undefined : message.column;
2966
+ return obj;
2967
+ },
2968
+ fromAminoMsg(object: SourcePositionAminoMsg): SourcePosition {
2969
+ return SourcePosition.fromAmino(object.value);
2970
+ },
2971
+ fromProtoMsg(message: SourcePositionProtoMsg): SourcePosition {
2972
+ return SourcePosition.decode(message.value);
2973
+ },
2974
+ toProto(message: SourcePosition): Uint8Array {
2975
+ return SourcePosition.encode(message).finish();
2976
+ },
2977
+ toProtoMsg(message: SourcePosition): SourcePositionProtoMsg {
2978
+ return {
2979
+ typeUrl: "/google.api.expr.v1alpha1.SourcePosition",
2980
+ value: SourcePosition.encode(message).finish()
2981
+ };
2982
+ }
2983
+ };