@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.
- package/jest.config.js +18 -0
- package/package.json +56 -0
- package/scripts/aminos.ts +29 -0
- package/scripts/codegen.ts +94 -0
- package/scripts/download-protos.ts +248 -0
- package/telescope.config.json +84 -0
- package/tsconfig.esm.json +9 -0
- package/tsconfig.json +18 -0
- package/types/abstractaccount/bundle.ts +35 -0
- package/types/abstractaccount/client.ts +48 -0
- package/types/abstractaccount/lcd.ts +130 -0
- package/types/abstractaccount/rpc.query.ts +93 -0
- package/types/abstractaccount/rpc.tx.ts +74 -0
- package/types/abstractaccount/v1/account.ts +250 -0
- package/types/abstractaccount/v1/events.ts +135 -0
- package/types/abstractaccount/v1/genesis.ts +106 -0
- package/types/abstractaccount/v1/params.ts +192 -0
- package/types/abstractaccount/v1/query.lcd.ts +19 -0
- package/types/abstractaccount/v1/query.rpc.Query.ts +31 -0
- package/types/abstractaccount/v1/query.ts +160 -0
- package/types/abstractaccount/v1/tx.amino.ts +14 -0
- package/types/abstractaccount/v1/tx.registry.ts +53 -0
- package/types/abstractaccount/v1/tx.rpc.msg.ts +29 -0
- package/types/abstractaccount/v1/tx.ts +454 -0
- package/types/amino/amino.ts +1 -0
- package/types/amino/bundle.ts +5 -0
- package/types/binary.ts +535 -0
- package/types/cosmos/app/runtime/v1alpha1/module.ts +492 -0
- package/types/cosmos/app/v1alpha1/config.ts +437 -0
- package/types/cosmos/app/v1alpha1/module.ts +466 -0
- package/types/cosmos/app/v1alpha1/query.rpc.Query.ts +31 -0
- package/types/cosmos/app/v1alpha1/query.ts +176 -0
- package/types/cosmos/auth/module/v1/module.ts +288 -0
- package/types/cosmos/auth/v1beta1/auth.ts +562 -0
- package/types/cosmos/auth/v1beta1/genesis.ts +123 -0
- package/types/cosmos/auth/v1beta1/query.lcd.ts +91 -0
- package/types/cosmos/auth/v1beta1/query.rpc.Query.ts +137 -0
- package/types/cosmos/auth/v1beta1/query.ts +2005 -0
- package/types/cosmos/auth/v1beta1/tx.amino.ts +9 -0
- package/types/cosmos/auth/v1beta1/tx.registry.ts +35 -0
- package/types/cosmos/auth/v1beta1/tx.rpc.msg.ts +24 -0
- package/types/cosmos/auth/v1beta1/tx.ts +208 -0
- package/types/cosmos/authz/module/v1/module.ts +77 -0
- package/types/cosmos/authz/v1beta1/authz.ts +599 -0
- package/types/cosmos/authz/v1beta1/event.ts +274 -0
- package/types/cosmos/authz/v1beta1/genesis.ts +99 -0
- package/types/cosmos/authz/v1beta1/query.lcd.ts +59 -0
- package/types/cosmos/authz/v1beta1/query.rpc.Query.ts +53 -0
- package/types/cosmos/authz/v1beta1/query.ts +734 -0
- package/types/cosmos/authz/v1beta1/tx.amino.ts +19 -0
- package/types/cosmos/authz/v1beta1/tx.registry.ts +71 -0
- package/types/cosmos/authz/v1beta1/tx.rpc.msg.ts +49 -0
- package/types/cosmos/authz/v1beta1/tx.ts +666 -0
- package/types/cosmos/autocli/v1/options.ts +1317 -0
- package/types/cosmos/autocli/v1/query.rpc.Query.ts +32 -0
- package/types/cosmos/autocli/v1/query.ts +298 -0
- package/types/cosmos/bank/module/v1/module.ts +156 -0
- package/types/cosmos/bank/v1beta1/authz.ts +134 -0
- package/types/cosmos/bank/v1beta1/bank.ts +984 -0
- package/types/cosmos/bank/v1beta1/genesis.ts +316 -0
- package/types/cosmos/bank/v1beta1/query.lcd.ts +207 -0
- package/types/cosmos/bank/v1beta1/query.rpc.Query.ts +212 -0
- package/types/cosmos/bank/v1beta1/query.ts +3051 -0
- package/types/cosmos/bank/v1beta1/tx.amino.ts +24 -0
- package/types/cosmos/bank/v1beta1/tx.registry.ts +89 -0
- package/types/cosmos/bank/v1beta1/tx.rpc.msg.ts +53 -0
- package/types/cosmos/bank/v1beta1/tx.ts +845 -0
- package/types/cosmos/base/abci/v1beta1/abci.ts +1776 -0
- package/types/cosmos/base/node/v1beta1/query.lcd.ts +25 -0
- package/types/cosmos/base/node/v1beta1/query.rpc.Service.ts +42 -0
- package/types/cosmos/base/node/v1beta1/query.ts +467 -0
- package/types/cosmos/base/query/v1beta1/pagination.ts +372 -0
- package/types/cosmos/base/reflection/v1beta1/reflection.ts +385 -0
- package/types/cosmos/base/reflection/v2alpha1/reflection.ts +2790 -0
- package/types/cosmos/base/tendermint/v1beta1/query.lcd.ts +87 -0
- package/types/cosmos/base/tendermint/v1beta1/query.rpc.Service.ts +103 -0
- package/types/cosmos/base/tendermint/v1beta1/query.ts +2358 -0
- package/types/cosmos/base/tendermint/v1beta1/types.ts +492 -0
- package/types/cosmos/base/v1beta1/coin.ts +449 -0
- package/types/cosmos/benchmark/module/v1/module.ts +384 -0
- package/types/cosmos/benchmark/v1/benchmark.ts +186 -0
- package/types/cosmos/benchmark/v1/tx.amino.ts +9 -0
- package/types/cosmos/benchmark/v1/tx.registry.ts +35 -0
- package/types/cosmos/benchmark/v1/tx.rpc.msg.ts +21 -0
- package/types/cosmos/benchmark/v1/tx.ts +224 -0
- package/types/cosmos/bundle.ts +807 -0
- package/types/cosmos/circuit/module/v1/module.ts +100 -0
- package/types/cosmos/circuit/v1/query.lcd.ts +40 -0
- package/types/cosmos/circuit/v1/query.rpc.Query.ts +55 -0
- package/types/cosmos/circuit/v1/query.ts +576 -0
- package/types/cosmos/circuit/v1/tx.amino.ts +19 -0
- package/types/cosmos/circuit/v1/tx.registry.ts +71 -0
- package/types/cosmos/circuit/v1/tx.rpc.msg.ts +43 -0
- package/types/cosmos/circuit/v1/tx.ts +685 -0
- package/types/cosmos/circuit/v1/types.ts +419 -0
- package/types/cosmos/client.ts +100 -0
- package/types/cosmos/consensus/module/v1/module.ts +100 -0
- package/types/cosmos/consensus/v1/query.lcd.ts +19 -0
- package/types/cosmos/consensus/v1/query.rpc.Query.ts +31 -0
- package/types/cosmos/consensus/v1/query.ts +182 -0
- package/types/cosmos/consensus/v1/tx.amino.ts +9 -0
- package/types/cosmos/consensus/v1/tx.registry.ts +35 -0
- package/types/cosmos/consensus/v1/tx.rpc.msg.ts +24 -0
- package/types/cosmos/consensus/v1/tx.ts +257 -0
- package/types/cosmos/counter/module/v1/module.ts +100 -0
- package/types/cosmos/counter/v1/query.rpc.Query.ts +31 -0
- package/types/cosmos/counter/v1/query.ts +171 -0
- package/types/cosmos/counter/v1/tx.amino.ts +9 -0
- package/types/cosmos/counter/v1/tx.registry.ts +35 -0
- package/types/cosmos/counter/v1/tx.rpc.msg.ts +21 -0
- package/types/cosmos/counter/v1/tx.ts +217 -0
- package/types/cosmos/crisis/module/v1/module.ts +119 -0
- package/types/cosmos/crisis/v1beta1/genesis.ts +105 -0
- package/types/cosmos/crisis/v1beta1/tx.amino.ts +14 -0
- package/types/cosmos/crisis/v1beta1/tx.registry.ts +53 -0
- package/types/cosmos/crisis/v1beta1/tx.rpc.msg.ts +32 -0
- package/types/cosmos/crisis/v1beta1/tx.ts +413 -0
- package/types/cosmos/crypto/bls12_381/keys.ts +207 -0
- package/types/cosmos/crypto/ed25519/keys.ts +214 -0
- package/types/cosmos/crypto/hd/v1/hd.ts +180 -0
- package/types/cosmos/crypto/keyring/v1/record.ts +542 -0
- package/types/cosmos/crypto/multisig/keys.ts +124 -0
- package/types/cosmos/crypto/multisig/v1beta1/multisig.ts +231 -0
- package/types/cosmos/crypto/secp256k1/keys.ts +207 -0
- package/types/cosmos/crypto/secp256r1/keys.ts +203 -0
- package/types/cosmos/distribution/module/v1/module.ts +115 -0
- package/types/cosmos/distribution/v1beta1/distribution.ts +1551 -0
- package/types/cosmos/distribution/v1beta1/genesis.ts +1208 -0
- package/types/cosmos/distribution/v1beta1/query.lcd.ts +89 -0
- package/types/cosmos/distribution/v1beta1/query.rpc.Query.ts +137 -0
- package/types/cosmos/distribution/v1beta1/query.ts +2195 -0
- package/types/cosmos/distribution/v1beta1/tx.amino.ts +39 -0
- package/types/cosmos/distribution/v1beta1/tx.registry.ts +143 -0
- package/types/cosmos/distribution/v1beta1/tx.rpc.msg.ts +96 -0
- package/types/cosmos/distribution/v1beta1/tx.ts +1460 -0
- package/types/cosmos/epochs/module/v1/module.ts +77 -0
- package/types/cosmos/epochs/v1beta1/events.ts +205 -0
- package/types/cosmos/epochs/v1beta1/genesis.ts +384 -0
- package/types/cosmos/epochs/v1beta1/query.lcd.ts +31 -0
- package/types/cosmos/epochs/v1beta1/query.rpc.Query.ts +42 -0
- package/types/cosmos/epochs/v1beta1/query.ts +390 -0
- package/types/cosmos/evidence/module/v1/module.ts +77 -0
- package/types/cosmos/evidence/v1beta1/evidence.ts +166 -0
- package/types/cosmos/evidence/v1beta1/genesis.ts +103 -0
- package/types/cosmos/evidence/v1beta1/query.lcd.ts +40 -0
- package/types/cosmos/evidence/v1beta1/query.rpc.Query.ts +44 -0
- package/types/cosmos/evidence/v1beta1/query.ts +458 -0
- package/types/cosmos/evidence/v1beta1/tx.amino.ts +9 -0
- package/types/cosmos/evidence/v1beta1/tx.registry.ts +35 -0
- package/types/cosmos/evidence/v1beta1/tx.rpc.msg.ts +24 -0
- package/types/cosmos/evidence/v1beta1/tx.ts +243 -0
- package/types/cosmos/feegrant/module/v1/module.ts +77 -0
- package/types/cosmos/feegrant/v1beta1/feegrant.ts +701 -0
- package/types/cosmos/feegrant/v1beta1/genesis.ts +99 -0
- package/types/cosmos/feegrant/v1beta1/query.lcd.ts +44 -0
- package/types/cosmos/feegrant/v1beta1/query.rpc.Query.ts +53 -0
- package/types/cosmos/feegrant/v1beta1/query.ts +683 -0
- package/types/cosmos/feegrant/v1beta1/tx.amino.ts +19 -0
- package/types/cosmos/feegrant/v1beta1/tx.registry.ts +71 -0
- package/types/cosmos/feegrant/v1beta1/tx.rpc.msg.ts +43 -0
- package/types/cosmos/feegrant/v1beta1/tx.ts +683 -0
- package/types/cosmos/genutil/module/v1/module.ts +77 -0
- package/types/cosmos/genutil/v1beta1/genesis.ts +103 -0
- package/types/cosmos/gov/module/v1/module.ts +123 -0
- package/types/cosmos/gov/v1/genesis.ts +288 -0
- package/types/cosmos/gov/v1/gov.ts +1889 -0
- package/types/cosmos/gov/v1/query.lcd.ts +95 -0
- package/types/cosmos/gov/v1/query.rpc.Query.ts +119 -0
- package/types/cosmos/gov/v1/query.ts +2026 -0
- package/types/cosmos/gov/v1/tx.amino.ts +39 -0
- package/types/cosmos/gov/v1/tx.registry.ts +143 -0
- package/types/cosmos/gov/v1/tx.rpc.msg.ts +75 -0
- package/types/cosmos/gov/v1/tx.ts +1911 -0
- package/types/cosmos/gov/v1beta1/genesis.ts +221 -0
- package/types/cosmos/gov/v1beta1/gov.ts +1725 -0
- package/types/cosmos/gov/v1beta1/query.lcd.ts +89 -0
- package/types/cosmos/gov/v1beta1/query.rpc.Query.ts +108 -0
- package/types/cosmos/gov/v1beta1/query.ts +1813 -0
- package/types/cosmos/gov/v1beta1/tx.amino.ts +24 -0
- package/types/cosmos/gov/v1beta1/tx.registry.ts +89 -0
- package/types/cosmos/gov/v1beta1/tx.rpc.msg.ts +45 -0
- package/types/cosmos/gov/v1beta1/tx.ts +1128 -0
- package/types/cosmos/group/module/v1/module.ts +128 -0
- package/types/cosmos/group/v1/events.ts +1195 -0
- package/types/cosmos/group/v1/genesis.ts +256 -0
- package/types/cosmos/group/v1/query.lcd.ts +158 -0
- package/types/cosmos/group/v1/query.rpc.Query.ts +182 -0
- package/types/cosmos/group/v1/query.ts +3108 -0
- package/types/cosmos/group/v1/tx.amino.ts +74 -0
- package/types/cosmos/group/v1/tx.registry.ts +269 -0
- package/types/cosmos/group/v1/tx.rpc.msg.ts +125 -0
- package/types/cosmos/group/v1/tx.ts +3353 -0
- package/types/cosmos/group/v1/types.ts +2248 -0
- package/types/cosmos/ics23/v1/proofs.ts +2167 -0
- package/types/cosmos/lcd.ts +125 -0
- package/types/cosmos/mint/module/v1/module.ts +115 -0
- package/types/cosmos/mint/v1beta1/genesis.ts +120 -0
- package/types/cosmos/mint/v1beta1/mint.ts +313 -0
- package/types/cosmos/mint/v1beta1/query.lcd.ts +31 -0
- package/types/cosmos/mint/v1beta1/query.rpc.Query.ts +53 -0
- package/types/cosmos/mint/v1beta1/query.ts +544 -0
- package/types/cosmos/mint/v1beta1/tx.amino.ts +9 -0
- package/types/cosmos/mint/v1beta1/tx.registry.ts +35 -0
- package/types/cosmos/mint/v1beta1/tx.rpc.msg.ts +24 -0
- package/types/cosmos/mint/v1beta1/tx.ts +208 -0
- package/types/cosmos/msg/textual/v1/textual.ts +1 -0
- package/types/cosmos/msg/v1/msg.ts +1 -0
- package/types/cosmos/nft/module/v1/module.ts +77 -0
- package/types/cosmos/nft/v1beta1/event.ts +429 -0
- package/types/cosmos/nft/v1beta1/genesis.ts +243 -0
- package/types/cosmos/nft/v1beta1/nft.ts +389 -0
- package/types/cosmos/nft/v1beta1/query.lcd.ts +77 -0
- package/types/cosmos/nft/v1beta1/query.rpc.Query.ts +102 -0
- package/types/cosmos/nft/v1beta1/query.ts +1513 -0
- package/types/cosmos/nft/v1beta1/tx.amino.ts +9 -0
- package/types/cosmos/nft/v1beta1/tx.registry.ts +35 -0
- package/types/cosmos/nft/v1beta1/tx.rpc.msg.ts +21 -0
- package/types/cosmos/nft/v1beta1/tx.ts +232 -0
- package/types/cosmos/params/module/v1/module.ts +77 -0
- package/types/cosmos/params/v1beta1/params.ts +262 -0
- package/types/cosmos/params/v1beta1/query.lcd.ts +35 -0
- package/types/cosmos/params/v1beta1/query.rpc.Query.ts +45 -0
- package/types/cosmos/params/v1beta1/query.ts +521 -0
- package/types/cosmos/protocolpool/module/v1/module.ts +100 -0
- package/types/cosmos/protocolpool/v1/genesis.ts +126 -0
- package/types/cosmos/protocolpool/v1/query.lcd.ts +37 -0
- package/types/cosmos/protocolpool/v1/query.rpc.Query.ts +64 -0
- package/types/cosmos/protocolpool/v1/query.ts +761 -0
- package/types/cosmos/protocolpool/v1/tx.amino.ts +29 -0
- package/types/cosmos/protocolpool/v1/tx.registry.ts +107 -0
- package/types/cosmos/protocolpool/v1/tx.rpc.msg.ts +69 -0
- package/types/cosmos/protocolpool/v1/tx.ts +1124 -0
- package/types/cosmos/protocolpool/v1/types.ts +268 -0
- package/types/cosmos/query/v1/query.ts +1 -0
- package/types/cosmos/reflection/v1/reflection.ts +178 -0
- package/types/cosmos/rpc.query.ts +90 -0
- package/types/cosmos/rpc.tx.ts +71 -0
- package/types/cosmos/slashing/module/v1/module.ts +100 -0
- package/types/cosmos/slashing/v1beta1/genesis.ts +511 -0
- package/types/cosmos/slashing/v1beta1/query.lcd.ts +40 -0
- package/types/cosmos/slashing/v1beta1/query.rpc.Query.ts +55 -0
- package/types/cosmos/slashing/v1beta1/query.ts +606 -0
- package/types/cosmos/slashing/v1beta1/slashing.ts +371 -0
- package/types/cosmos/slashing/v1beta1/tx.amino.ts +14 -0
- package/types/cosmos/slashing/v1beta1/tx.registry.ts +53 -0
- package/types/cosmos/slashing/v1beta1/tx.rpc.msg.ts +36 -0
- package/types/cosmos/slashing/v1beta1/tx.ts +377 -0
- package/types/cosmos/staking/module/v1/module.ts +165 -0
- package/types/cosmos/staking/v1beta1/authz.ts +321 -0
- package/types/cosmos/staking/v1beta1/genesis.ts +370 -0
- package/types/cosmos/staking/v1beta1/query.lcd.ts +174 -0
- package/types/cosmos/staking/v1beta1/query.rpc.Query.ts +217 -0
- package/types/cosmos/staking/v1beta1/query.ts +3187 -0
- package/types/cosmos/staking/v1beta1/staking.ts +3193 -0
- package/types/cosmos/staking/v1beta1/tx.amino.ts +39 -0
- package/types/cosmos/staking/v1beta1/tx.registry.ts +143 -0
- package/types/cosmos/staking/v1beta1/tx.rpc.msg.ts +84 -0
- package/types/cosmos/staking/v1beta1/tx.ts +1642 -0
- package/types/cosmos/store/internal/kv/v1beta1/kv.ts +208 -0
- package/types/cosmos/store/snapshots/v1/snapshot.ts +840 -0
- package/types/cosmos/store/streaming/abci/grpc.ts +393 -0
- package/types/cosmos/store/v1beta1/commit_info.ts +369 -0
- package/types/cosmos/store/v1beta1/listening.ts +296 -0
- package/types/cosmos/tx/config/v1/config.ts +127 -0
- package/types/cosmos/tx/signing/v1beta1/signing.ts +713 -0
- package/types/cosmos/tx/v1beta1/service.lcd.ts +59 -0
- package/types/cosmos/tx/v1beta1/service.rpc.Service.ts +119 -0
- package/types/cosmos/tx/v1beta1/service.ts +2319 -0
- package/types/cosmos/tx/v1beta1/tx.ts +2168 -0
- package/types/cosmos/upgrade/module/v1/module.ts +100 -0
- package/types/cosmos/upgrade/v1beta1/query.lcd.ts +54 -0
- package/types/cosmos/upgrade/v1beta1/query.rpc.Query.ts +82 -0
- package/types/cosmos/upgrade/v1beta1/query.ts +1004 -0
- package/types/cosmos/upgrade/v1beta1/tx.amino.ts +14 -0
- package/types/cosmos/upgrade/v1beta1/tx.registry.ts +53 -0
- package/types/cosmos/upgrade/v1beta1/tx.rpc.msg.ts +32 -0
- package/types/cosmos/upgrade/v1beta1/tx.ts +368 -0
- package/types/cosmos/upgrade/v1beta1/upgrade.ts +623 -0
- package/types/cosmos/vesting/module/v1/module.ts +77 -0
- package/types/cosmos/vesting/v1beta1/tx.amino.ts +19 -0
- package/types/cosmos/vesting/v1beta1/tx.registry.ts +71 -0
- package/types/cosmos/vesting/v1beta1/tx.rpc.msg.ts +46 -0
- package/types/cosmos/vesting/v1beta1/tx.ts +688 -0
- package/types/cosmos/vesting/v1beta1/vesting.ts +751 -0
- package/types/cosmos_proto/bundle.ts +5 -0
- package/types/cosmos_proto/cosmos.ts +355 -0
- package/types/cosmwasm/bundle.ts +39 -0
- package/types/cosmwasm/client.ts +48 -0
- package/types/cosmwasm/lcd.ts +132 -0
- package/types/cosmwasm/rpc.query.ts +95 -0
- package/types/cosmwasm/rpc.tx.ts +76 -0
- package/types/cosmwasm/wasm/v1/authz.ts +1409 -0
- package/types/cosmwasm/wasm/v1/genesis.ts +544 -0
- package/types/cosmwasm/wasm/v1/ibc.ts +437 -0
- package/types/cosmwasm/wasm/v1/proposal_legacy.ts +2711 -0
- package/types/cosmwasm/wasm/v1/query.lcd.ts +154 -0
- package/types/cosmwasm/wasm/v1/query.rpc.Query.ts +181 -0
- package/types/cosmwasm/wasm/v1/query.ts +3339 -0
- package/types/cosmwasm/wasm/v1/tx.amino.ts +89 -0
- package/types/cosmwasm/wasm/v1/tx.registry.ts +323 -0
- package/types/cosmwasm/wasm/v1/tx.rpc.msg.ts +197 -0
- package/types/cosmwasm/wasm/v1/tx.ts +4403 -0
- package/types/cosmwasm/wasm/v1/types.ts +1193 -0
- package/types/gogoproto/bundle.ts +5 -0
- package/types/gogoproto/gogo.ts +1 -0
- package/types/google/api/annotations.ts +1 -0
- package/types/google/api/apikeys/v2/apikeys.ts +1245 -0
- package/types/google/api/apikeys/v2/resources.ts +1268 -0
- package/types/google/api/auth.ts +1175 -0
- package/types/google/api/backend.ts +691 -0
- package/types/google/api/billing.ts +333 -0
- package/types/google/api/client.ts +3100 -0
- package/types/google/api/cloudquotas/v1/cloudquotas.ts +1196 -0
- package/types/google/api/cloudquotas/v1/resources.ts +2065 -0
- package/types/google/api/cloudquotas/v1beta/cloudquotas.ts +1196 -0
- package/types/google/api/cloudquotas/v1beta/quota_adjuster_settings.ts +509 -0
- package/types/google/api/cloudquotas/v1beta/resources.ts +2069 -0
- package/types/google/api/config_change.ts +385 -0
- package/types/google/api/consumer.ts +362 -0
- package/types/google/api/context.ts +418 -0
- package/types/google/api/control.ts +141 -0
- package/types/google/api/distribution.ts +1253 -0
- package/types/google/api/documentation.ts +738 -0
- package/types/google/api/endpoint.ts +245 -0
- package/types/google/api/error_reason.ts +816 -0
- package/types/google/api/expr/conformance/v1alpha1/conformance_service.ts +1293 -0
- package/types/google/api/expr/v1alpha1/checked.ts +2259 -0
- package/types/google/api/expr/v1alpha1/eval.ts +675 -0
- package/types/google/api/expr/v1alpha1/explain.ts +257 -0
- package/types/google/api/expr/v1alpha1/syntax.ts +2983 -0
- package/types/google/api/expr/v1alpha1/value.ts +771 -0
- package/types/google/api/expr/v1beta1/decl.ts +563 -0
- package/types/google/api/expr/v1beta1/eval.ts +758 -0
- package/types/google/api/expr/v1beta1/expr.ts +1750 -0
- package/types/google/api/expr/v1beta1/source.ts +446 -0
- package/types/google/api/expr/v1beta1/value.ts +771 -0
- package/types/google/api/field_behavior.ts +136 -0
- package/types/google/api/field_info.ts +319 -0
- package/types/google/api/http.ts +1362 -0
- package/types/google/api/httpbody.ts +270 -0
- package/types/google/api/label.ts +174 -0
- package/types/google/api/launch_stage.ts +112 -0
- package/types/google/api/log.ts +201 -0
- package/types/google/api/logging.ts +355 -0
- package/types/google/api/metric.ts +1174 -0
- package/types/google/api/monitored_resource.ts +841 -0
- package/types/google/api/monitoring.ts +430 -0
- package/types/google/api/policy.ts +314 -0
- package/types/google/api/quota.ts +1040 -0
- package/types/google/api/resource.ts +769 -0
- package/types/google/api/routing.ts +1405 -0
- package/types/google/api/service.ts +790 -0
- package/types/google/api/servicecontrol/v1/check_error.ts +366 -0
- package/types/google/api/servicecontrol/v1/distribution.ts +773 -0
- package/types/google/api/servicecontrol/v1/http_request.ts +427 -0
- package/types/google/api/servicecontrol/v1/log_entry.ts +804 -0
- package/types/google/api/servicecontrol/v1/metric_value.ts +499 -0
- package/types/google/api/servicecontrol/v1/operation.ts +544 -0
- package/types/google/api/servicecontrol/v1/quota_controller.ts +1041 -0
- package/types/google/api/servicecontrol/v1/service_controller.ts +1164 -0
- package/types/google/api/servicecontrol/v2/service_controller.ts +949 -0
- package/types/google/api/servicemanagement/v1/resources.ts +1888 -0
- package/types/google/api/servicemanagement/v1/servicemanager.ts +2444 -0
- package/types/google/api/serviceusage/v1/resources.ts +629 -0
- package/types/google/api/serviceusage/v1/serviceusage.ts +1530 -0
- package/types/google/api/serviceusage/v1beta1/resources.ts +2972 -0
- package/types/google/api/serviceusage/v1beta1/serviceusage.ts +4567 -0
- package/types/google/api/source_info.ts +97 -0
- package/types/google/api/system_parameter.ts +461 -0
- package/types/google/api/usage.ts +404 -0
- package/types/google/api/visibility.ts +328 -0
- package/types/google/bundle.ts +115 -0
- package/types/google/logging/type/log_severity.ts +104 -0
- package/types/google/longrunning/operations.ts +1153 -0
- package/types/google/protobuf/any.ts +424 -0
- package/types/google/protobuf/api.ts +942 -0
- package/types/google/protobuf/descriptor.ts +7801 -0
- package/types/google/protobuf/duration.ts +284 -0
- package/types/google/protobuf/empty.ts +93 -0
- package/types/google/protobuf/field_mask.ts +694 -0
- package/types/google/protobuf/source_context.ts +105 -0
- package/types/google/protobuf/struct.ts +584 -0
- package/types/google/protobuf/timestamp.ts +373 -0
- package/types/google/protobuf/type.ts +1279 -0
- package/types/google/protobuf/wrappers.ts +1002 -0
- package/types/google/rpc/code.ts +286 -0
- package/types/google/rpc/context/attribute_context.ts +2517 -0
- package/types/google/rpc/context/audit_context.ts +188 -0
- package/types/google/rpc/error_details.ts +2467 -0
- package/types/google/rpc/http.ts +424 -0
- package/types/google/rpc/status.ts +173 -0
- package/types/helpers.ts +259 -0
- package/types/ibc/applications/interchain_accounts/controller/v1/controller.ts +107 -0
- package/types/ibc/applications/interchain_accounts/controller/v1/query.lcd.ts +25 -0
- package/types/ibc/applications/interchain_accounts/controller/v1/query.rpc.Query.ts +42 -0
- package/types/ibc/applications/interchain_accounts/controller/v1/query.ts +379 -0
- package/types/ibc/applications/interchain_accounts/controller/v1/tx.amino.ts +19 -0
- package/types/ibc/applications/interchain_accounts/controller/v1/tx.registry.ts +71 -0
- package/types/ibc/applications/interchain_accounts/controller/v1/tx.rpc.msg.ts +37 -0
- package/types/ibc/applications/interchain_accounts/controller/v1/tx.ts +692 -0
- package/types/ibc/applications/interchain_accounts/genesis/v1/genesis.ts +675 -0
- package/types/ibc/applications/interchain_accounts/host/v1/host.ts +261 -0
- package/types/ibc/applications/interchain_accounts/host/v1/query.lcd.ts +19 -0
- package/types/ibc/applications/interchain_accounts/host/v1/query.rpc.Query.ts +31 -0
- package/types/ibc/applications/interchain_accounts/host/v1/query.ts +176 -0
- package/types/ibc/applications/interchain_accounts/host/v1/tx.amino.ts +14 -0
- package/types/ibc/applications/interchain_accounts/host/v1/tx.registry.ts +53 -0
- package/types/ibc/applications/interchain_accounts/host/v1/tx.rpc.msg.ts +29 -0
- package/types/ibc/applications/interchain_accounts/host/v1/tx.ts +440 -0
- package/types/ibc/applications/interchain_accounts/v1/account.ts +115 -0
- package/types/ibc/applications/interchain_accounts/v1/metadata.ts +206 -0
- package/types/ibc/applications/interchain_accounts/v1/packet.ts +262 -0
- package/types/ibc/applications/transfer/v1/authz.ts +297 -0
- package/types/ibc/applications/transfer/v1/denomtrace.ts +133 -0
- package/types/ibc/applications/transfer/v1/genesis.ts +156 -0
- package/types/ibc/applications/transfer/v1/packet.ts +186 -0
- package/types/ibc/applications/transfer/v1/query.lcd.ts +76 -0
- package/types/ibc/applications/transfer/v1/query.rpc.Query.ts +88 -0
- package/types/ibc/applications/transfer/v1/query.ts +1233 -0
- package/types/ibc/applications/transfer/v1/token.ts +347 -0
- package/types/ibc/applications/transfer/v1/transfer.ts +140 -0
- package/types/ibc/applications/transfer/v1/tx.amino.ts +14 -0
- package/types/ibc/applications/transfer/v1/tx.registry.ts +53 -0
- package/types/ibc/applications/transfer/v1/tx.rpc.msg.ts +29 -0
- package/types/ibc/applications/transfer/v1/tx.ts +579 -0
- package/types/ibc/bundle.ts +265 -0
- package/types/ibc/client.ts +72 -0
- package/types/ibc/core/channel/v1/channel.ts +1455 -0
- package/types/ibc/core/channel/v1/genesis.ts +351 -0
- package/types/ibc/core/channel/v1/query.lcd.ts +135 -0
- package/types/ibc/core/channel/v1/query.rpc.Query.ts +200 -0
- package/types/ibc/core/channel/v1/query.ts +3943 -0
- package/types/ibc/core/channel/v1/tx.amino.ts +54 -0
- package/types/ibc/core/channel/v1/tx.registry.ts +197 -0
- package/types/ibc/core/channel/v1/tx.rpc.msg.ts +96 -0
- package/types/ibc/core/channel/v1/tx.ts +2558 -0
- package/types/ibc/core/channel/v2/genesis.ts +433 -0
- package/types/ibc/core/channel/v2/packet.ts +640 -0
- package/types/ibc/core/channel/v2/query.lcd.ts +77 -0
- package/types/ibc/core/channel/v2/query.rpc.Query.ts +108 -0
- package/types/ibc/core/channel/v2/query.ts +2075 -0
- package/types/ibc/core/channel/v2/tx.amino.ts +24 -0
- package/types/ibc/core/channel/v2/tx.registry.ts +89 -0
- package/types/ibc/core/channel/v2/tx.rpc.msg.ts +45 -0
- package/types/ibc/core/channel/v2/tx.ts +1003 -0
- package/types/ibc/core/client/v1/client.ts +636 -0
- package/types/ibc/core/client/v1/genesis.ts +448 -0
- package/types/ibc/core/client/v1/query.lcd.ts +102 -0
- package/types/ibc/core/client/v1/query.rpc.Query.ts +149 -0
- package/types/ibc/core/client/v1/query.ts +2588 -0
- package/types/ibc/core/client/v1/tx.amino.ts +44 -0
- package/types/ibc/core/client/v1/tx.registry.ts +161 -0
- package/types/ibc/core/client/v1/tx.rpc.msg.ts +77 -0
- package/types/ibc/core/client/v1/tx.ts +1796 -0
- package/types/ibc/core/client/v2/config.ts +115 -0
- package/types/ibc/core/client/v2/counterparty.ts +122 -0
- package/types/ibc/core/client/v2/genesis.ts +220 -0
- package/types/ibc/core/client/v2/query.lcd.ts +25 -0
- package/types/ibc/core/client/v2/query.rpc.Query.ts +42 -0
- package/types/ibc/core/client/v2/query.ts +402 -0
- package/types/ibc/core/client/v2/tx.amino.ts +14 -0
- package/types/ibc/core/client/v2/tx.registry.ts +53 -0
- package/types/ibc/core/client/v2/tx.rpc.msg.ts +29 -0
- package/types/ibc/core/client/v2/tx.ts +453 -0
- package/types/ibc/core/commitment/v1/commitment.ts +321 -0
- package/types/ibc/core/commitment/v2/commitment.ts +193 -0
- package/types/ibc/core/connection/v1/connection.ts +1056 -0
- package/types/ibc/core/connection/v1/genesis.ts +150 -0
- package/types/ibc/core/connection/v1/query.lcd.ts +61 -0
- package/types/ibc/core/connection/v1/query.rpc.Query.ts +97 -0
- package/types/ibc/core/connection/v1/query.ts +1472 -0
- package/types/ibc/core/connection/v1/tx.amino.ts +29 -0
- package/types/ibc/core/connection/v1/tx.registry.ts +107 -0
- package/types/ibc/core/connection/v1/tx.rpc.msg.ts +59 -0
- package/types/ibc/core/connection/v1/tx.ts +1456 -0
- package/types/ibc/core/types/v1/genesis.ts +191 -0
- package/types/ibc/lcd.ts +176 -0
- package/types/ibc/lightclients/solomachine/v2/solomachine.ts +2161 -0
- package/types/ibc/lightclients/solomachine/v3/solomachine.ts +1114 -0
- package/types/ibc/lightclients/tendermint/v1/tendermint.ts +891 -0
- package/types/ibc/lightclients/wasm/v1/genesis.ts +201 -0
- package/types/ibc/lightclients/wasm/v1/query.lcd.ts +34 -0
- package/types/ibc/lightclients/wasm/v1/query.rpc.Query.ts +44 -0
- package/types/ibc/lightclients/wasm/v1/query.ts +413 -0
- package/types/ibc/lightclients/wasm/v1/tx.amino.ts +19 -0
- package/types/ibc/lightclients/wasm/v1/tx.registry.ts +71 -0
- package/types/ibc/lightclients/wasm/v1/tx.rpc.msg.ts +37 -0
- package/types/ibc/lightclients/wasm/v1/tx.ts +640 -0
- package/types/ibc/lightclients/wasm/v1/wasm.ts +444 -0
- package/types/ibc/rpc.query.ts +123 -0
- package/types/ibc/rpc.tx.ts +104 -0
- package/types/index.ts +25 -0
- package/types/tendermint/abci/types.ts +6565 -0
- package/types/tendermint/bundle.ts +33 -0
- package/types/tendermint/crypto/keys.ts +106 -0
- package/types/tendermint/crypto/proof.ts +576 -0
- package/types/tendermint/p2p/types.ts +523 -0
- package/types/tendermint/types/block.ts +134 -0
- package/types/tendermint/types/evidence.ts +491 -0
- package/types/tendermint/types/params.ts +839 -0
- package/types/tendermint/types/types.ts +2266 -0
- package/types/tendermint/types/validator.ts +399 -0
- package/types/tendermint/version/types.ts +228 -0
- package/types/utf8.ts +149 -0
- package/types/varint.ts +489 -0
- package/types/xion/bundle.ts +117 -0
- package/types/xion/client.ts +57 -0
- package/types/xion/feeabs/v1beta1/epoch.ts +386 -0
- package/types/xion/feeabs/v1beta1/genesis.ts +136 -0
- package/types/xion/feeabs/v1beta1/osmosisibc.ts +868 -0
- package/types/xion/feeabs/v1beta1/params.ts +189 -0
- package/types/xion/feeabs/v1beta1/proposal.ts +593 -0
- package/types/xion/feeabs/v1beta1/query.lcd.ts +37 -0
- package/types/xion/feeabs/v1beta1/query.rpc.Query.ts +64 -0
- package/types/xion/feeabs/v1beta1/query.ts +732 -0
- package/types/xion/feeabs/v1beta1/tx.amino.ts +39 -0
- package/types/xion/feeabs/v1beta1/tx.registry.ts +143 -0
- package/types/xion/feeabs/v1beta1/tx.rpc.msg.ts +72 -0
- package/types/xion/feeabs/v1beta1/tx.ts +1261 -0
- package/types/xion/globalfee/v1/genesis.ts +249 -0
- package/types/xion/globalfee/v1/query.lcd.ts +19 -0
- package/types/xion/globalfee/v1/query.rpc.Query.ts +31 -0
- package/types/xion/globalfee/v1/query.ts +178 -0
- package/types/xion/jwk/v1/audience.ts +224 -0
- package/types/xion/jwk/v1/genesis.ts +117 -0
- package/types/xion/jwk/v1/params.ts +113 -0
- package/types/xion/jwk/v1/query.lcd.ts +52 -0
- package/types/xion/jwk/v1/query.rpc.Query.ts +77 -0
- package/types/xion/jwk/v1/query.ts +1697 -0
- package/types/xion/jwk/v1/tx.amino.ts +29 -0
- package/types/xion/jwk/v1/tx.registry.ts +107 -0
- package/types/xion/jwk/v1/tx.rpc.msg.ts +53 -0
- package/types/xion/jwk/v1/tx.ts +1040 -0
- package/types/xion/lcd.ts +147 -0
- package/types/xion/mint/v1/event.ts +216 -0
- package/types/xion/mint/v1/genesis.ts +114 -0
- package/types/xion/mint/v1/mint.ts +307 -0
- package/types/xion/mint/v1/query.lcd.ts +31 -0
- package/types/xion/mint/v1/query.rpc.Query.ts +53 -0
- package/types/xion/mint/v1/query.ts +508 -0
- package/types/xion/mint/v1/tx.amino.ts +9 -0
- package/types/xion/mint/v1/tx.registry.ts +35 -0
- package/types/xion/mint/v1/tx.rpc.msg.ts +26 -0
- package/types/xion/mint/v1/tx.ts +222 -0
- package/types/xion/rpc.query.ts +105 -0
- package/types/xion/rpc.tx.ts +83 -0
- package/types/xion/v1/feegrant.ts +457 -0
- package/types/xion/v1/genesis.ts +116 -0
- package/types/xion/v1/query.rpc.Query.ts +64 -0
- package/types/xion/v1/query.ts +862 -0
- package/types/xion/v1/tx.amino.ts +24 -0
- package/types/xion/v1/tx.registry.ts +89 -0
- package/types/xion/v1/tx.rpc.msg.ts +57 -0
- package/types/xion/v1/tx.ts +793 -0
|
@@ -0,0 +1,2259 @@
|
|
|
1
|
+
//@ts-nocheck
|
|
2
|
+
import { SourceInfo, SourceInfoAmino, SourceInfoSDKType, Expr, ExprAmino, ExprSDKType, Constant, ConstantAmino, ConstantSDKType } from "./syntax";
|
|
3
|
+
import { Empty, EmptyAmino, EmptySDKType } from "../../../protobuf/empty";
|
|
4
|
+
import { NullValue } from "../../../protobuf/struct";
|
|
5
|
+
import { BinaryReader, BinaryWriter } from "../../../../binary";
|
|
6
|
+
/** CEL primitive types. */
|
|
7
|
+
export enum Type_PrimitiveType {
|
|
8
|
+
/** PRIMITIVE_TYPE_UNSPECIFIED - Unspecified type. */
|
|
9
|
+
PRIMITIVE_TYPE_UNSPECIFIED = 0,
|
|
10
|
+
/** BOOL - Boolean type. */
|
|
11
|
+
BOOL = 1,
|
|
12
|
+
/**
|
|
13
|
+
* INT64 - Int64 type.
|
|
14
|
+
*
|
|
15
|
+
* Proto-based integer values are widened to int64.
|
|
16
|
+
*/
|
|
17
|
+
INT64 = 2,
|
|
18
|
+
/**
|
|
19
|
+
* UINT64 - Uint64 type.
|
|
20
|
+
*
|
|
21
|
+
* Proto-based unsigned integer values are widened to uint64.
|
|
22
|
+
*/
|
|
23
|
+
UINT64 = 3,
|
|
24
|
+
/**
|
|
25
|
+
* DOUBLE - Double type.
|
|
26
|
+
*
|
|
27
|
+
* Proto-based float values are widened to double values.
|
|
28
|
+
*/
|
|
29
|
+
DOUBLE = 4,
|
|
30
|
+
/** STRING - String type. */
|
|
31
|
+
STRING = 5,
|
|
32
|
+
/** BYTES - Bytes type. */
|
|
33
|
+
BYTES = 6,
|
|
34
|
+
UNRECOGNIZED = -1,
|
|
35
|
+
}
|
|
36
|
+
export const Type_PrimitiveTypeSDKType = Type_PrimitiveType;
|
|
37
|
+
export const Type_PrimitiveTypeAmino = Type_PrimitiveType;
|
|
38
|
+
export function type_PrimitiveTypeFromJSON(object: any): Type_PrimitiveType {
|
|
39
|
+
switch (object) {
|
|
40
|
+
case 0:
|
|
41
|
+
case "PRIMITIVE_TYPE_UNSPECIFIED":
|
|
42
|
+
return Type_PrimitiveType.PRIMITIVE_TYPE_UNSPECIFIED;
|
|
43
|
+
case 1:
|
|
44
|
+
case "BOOL":
|
|
45
|
+
return Type_PrimitiveType.BOOL;
|
|
46
|
+
case 2:
|
|
47
|
+
case "INT64":
|
|
48
|
+
return Type_PrimitiveType.INT64;
|
|
49
|
+
case 3:
|
|
50
|
+
case "UINT64":
|
|
51
|
+
return Type_PrimitiveType.UINT64;
|
|
52
|
+
case 4:
|
|
53
|
+
case "DOUBLE":
|
|
54
|
+
return Type_PrimitiveType.DOUBLE;
|
|
55
|
+
case 5:
|
|
56
|
+
case "STRING":
|
|
57
|
+
return Type_PrimitiveType.STRING;
|
|
58
|
+
case 6:
|
|
59
|
+
case "BYTES":
|
|
60
|
+
return Type_PrimitiveType.BYTES;
|
|
61
|
+
case -1:
|
|
62
|
+
case "UNRECOGNIZED":
|
|
63
|
+
default:
|
|
64
|
+
return Type_PrimitiveType.UNRECOGNIZED;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
export function type_PrimitiveTypeToJSON(object: Type_PrimitiveType): string {
|
|
68
|
+
switch (object) {
|
|
69
|
+
case Type_PrimitiveType.PRIMITIVE_TYPE_UNSPECIFIED:
|
|
70
|
+
return "PRIMITIVE_TYPE_UNSPECIFIED";
|
|
71
|
+
case Type_PrimitiveType.BOOL:
|
|
72
|
+
return "BOOL";
|
|
73
|
+
case Type_PrimitiveType.INT64:
|
|
74
|
+
return "INT64";
|
|
75
|
+
case Type_PrimitiveType.UINT64:
|
|
76
|
+
return "UINT64";
|
|
77
|
+
case Type_PrimitiveType.DOUBLE:
|
|
78
|
+
return "DOUBLE";
|
|
79
|
+
case Type_PrimitiveType.STRING:
|
|
80
|
+
return "STRING";
|
|
81
|
+
case Type_PrimitiveType.BYTES:
|
|
82
|
+
return "BYTES";
|
|
83
|
+
case Type_PrimitiveType.UNRECOGNIZED:
|
|
84
|
+
default:
|
|
85
|
+
return "UNRECOGNIZED";
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
/** Well-known protobuf types treated with first-class support in CEL. */
|
|
89
|
+
export enum Type_WellKnownType {
|
|
90
|
+
/** WELL_KNOWN_TYPE_UNSPECIFIED - Unspecified type. */
|
|
91
|
+
WELL_KNOWN_TYPE_UNSPECIFIED = 0,
|
|
92
|
+
/**
|
|
93
|
+
* ANY - Well-known protobuf.Any type.
|
|
94
|
+
*
|
|
95
|
+
* Any types are a polymorphic message type. During type-checking they are
|
|
96
|
+
* treated like `DYN` types, but at runtime they are resolved to a specific
|
|
97
|
+
* message type specified at evaluation time.
|
|
98
|
+
*/
|
|
99
|
+
ANY = 1,
|
|
100
|
+
/** TIMESTAMP - Well-known protobuf.Timestamp type, internally referenced as `timestamp`. */
|
|
101
|
+
TIMESTAMP = 2,
|
|
102
|
+
/** DURATION - Well-known protobuf.Duration type, internally referenced as `duration`. */
|
|
103
|
+
DURATION = 3,
|
|
104
|
+
UNRECOGNIZED = -1,
|
|
105
|
+
}
|
|
106
|
+
export const Type_WellKnownTypeSDKType = Type_WellKnownType;
|
|
107
|
+
export const Type_WellKnownTypeAmino = Type_WellKnownType;
|
|
108
|
+
export function type_WellKnownTypeFromJSON(object: any): Type_WellKnownType {
|
|
109
|
+
switch (object) {
|
|
110
|
+
case 0:
|
|
111
|
+
case "WELL_KNOWN_TYPE_UNSPECIFIED":
|
|
112
|
+
return Type_WellKnownType.WELL_KNOWN_TYPE_UNSPECIFIED;
|
|
113
|
+
case 1:
|
|
114
|
+
case "ANY":
|
|
115
|
+
return Type_WellKnownType.ANY;
|
|
116
|
+
case 2:
|
|
117
|
+
case "TIMESTAMP":
|
|
118
|
+
return Type_WellKnownType.TIMESTAMP;
|
|
119
|
+
case 3:
|
|
120
|
+
case "DURATION":
|
|
121
|
+
return Type_WellKnownType.DURATION;
|
|
122
|
+
case -1:
|
|
123
|
+
case "UNRECOGNIZED":
|
|
124
|
+
default:
|
|
125
|
+
return Type_WellKnownType.UNRECOGNIZED;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
export function type_WellKnownTypeToJSON(object: Type_WellKnownType): string {
|
|
129
|
+
switch (object) {
|
|
130
|
+
case Type_WellKnownType.WELL_KNOWN_TYPE_UNSPECIFIED:
|
|
131
|
+
return "WELL_KNOWN_TYPE_UNSPECIFIED";
|
|
132
|
+
case Type_WellKnownType.ANY:
|
|
133
|
+
return "ANY";
|
|
134
|
+
case Type_WellKnownType.TIMESTAMP:
|
|
135
|
+
return "TIMESTAMP";
|
|
136
|
+
case Type_WellKnownType.DURATION:
|
|
137
|
+
return "DURATION";
|
|
138
|
+
case Type_WellKnownType.UNRECOGNIZED:
|
|
139
|
+
default:
|
|
140
|
+
return "UNRECOGNIZED";
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
export interface CheckedExpr_ReferenceMapEntry {
|
|
144
|
+
key: bigint;
|
|
145
|
+
value?: Reference;
|
|
146
|
+
}
|
|
147
|
+
export interface CheckedExpr_ReferenceMapEntryProtoMsg {
|
|
148
|
+
typeUrl: string;
|
|
149
|
+
value: Uint8Array;
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* @name CheckedExpr_ReferenceMapEntryAmino
|
|
153
|
+
* @package google.api.expr.v1alpha1
|
|
154
|
+
* @see proto type: google.api.expr.v1alpha1.CheckedExpr_ReferenceMapEntry
|
|
155
|
+
*/
|
|
156
|
+
export interface CheckedExpr_ReferenceMapEntryAmino {
|
|
157
|
+
key?: string;
|
|
158
|
+
value?: ReferenceAmino;
|
|
159
|
+
}
|
|
160
|
+
export interface CheckedExpr_ReferenceMapEntryAminoMsg {
|
|
161
|
+
type: string;
|
|
162
|
+
value: CheckedExpr_ReferenceMapEntryAmino;
|
|
163
|
+
}
|
|
164
|
+
export interface CheckedExpr_ReferenceMapEntrySDKType {
|
|
165
|
+
key: bigint;
|
|
166
|
+
value?: ReferenceSDKType;
|
|
167
|
+
}
|
|
168
|
+
export interface CheckedExpr_TypeMapEntry {
|
|
169
|
+
key: bigint;
|
|
170
|
+
value?: Type;
|
|
171
|
+
}
|
|
172
|
+
export interface CheckedExpr_TypeMapEntryProtoMsg {
|
|
173
|
+
typeUrl: string;
|
|
174
|
+
value: Uint8Array;
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* @name CheckedExpr_TypeMapEntryAmino
|
|
178
|
+
* @package google.api.expr.v1alpha1
|
|
179
|
+
* @see proto type: google.api.expr.v1alpha1.CheckedExpr_TypeMapEntry
|
|
180
|
+
*/
|
|
181
|
+
export interface CheckedExpr_TypeMapEntryAmino {
|
|
182
|
+
key?: string;
|
|
183
|
+
value?: TypeAmino;
|
|
184
|
+
}
|
|
185
|
+
export interface CheckedExpr_TypeMapEntryAminoMsg {
|
|
186
|
+
type: string;
|
|
187
|
+
value: CheckedExpr_TypeMapEntryAmino;
|
|
188
|
+
}
|
|
189
|
+
export interface CheckedExpr_TypeMapEntrySDKType {
|
|
190
|
+
key: bigint;
|
|
191
|
+
value?: TypeSDKType;
|
|
192
|
+
}
|
|
193
|
+
/** A CEL expression which has been successfully type checked. */
|
|
194
|
+
export interface CheckedExpr {
|
|
195
|
+
/**
|
|
196
|
+
* A map from expression ids to resolved references.
|
|
197
|
+
*
|
|
198
|
+
* The following entries are in this table:
|
|
199
|
+
*
|
|
200
|
+
* - An Ident or Select expression is represented here if it resolves to a
|
|
201
|
+
* declaration. For instance, if `a.b.c` is represented by
|
|
202
|
+
* `select(select(id(a), b), c)`, and `a.b` resolves to a declaration,
|
|
203
|
+
* while `c` is a field selection, then the reference is attached to the
|
|
204
|
+
* nested select expression (but not to the id or or the outer select).
|
|
205
|
+
* In turn, if `a` resolves to a declaration and `b.c` are field selections,
|
|
206
|
+
* the reference is attached to the ident expression.
|
|
207
|
+
* - Every Call expression has an entry here, identifying the function being
|
|
208
|
+
* called.
|
|
209
|
+
* - Every CreateStruct expression for a message has an entry, identifying
|
|
210
|
+
* the message.
|
|
211
|
+
*/
|
|
212
|
+
referenceMap: {
|
|
213
|
+
[key: bigint]: Reference;
|
|
214
|
+
};
|
|
215
|
+
/**
|
|
216
|
+
* A map from expression ids to types.
|
|
217
|
+
*
|
|
218
|
+
* Every expression node which has a type different than DYN has a mapping
|
|
219
|
+
* here. If an expression has type DYN, it is omitted from this map to save
|
|
220
|
+
* space.
|
|
221
|
+
*/
|
|
222
|
+
typeMap: {
|
|
223
|
+
[key: bigint]: Type;
|
|
224
|
+
};
|
|
225
|
+
/**
|
|
226
|
+
* The source info derived from input that generated the parsed `expr` and
|
|
227
|
+
* any optimizations made during the type-checking pass.
|
|
228
|
+
*/
|
|
229
|
+
sourceInfo?: SourceInfo;
|
|
230
|
+
/**
|
|
231
|
+
* The expr version indicates the major / minor version number of the `expr`
|
|
232
|
+
* representation.
|
|
233
|
+
*
|
|
234
|
+
* The most common reason for a version change will be to indicate to the CEL
|
|
235
|
+
* runtimes that transformations have been performed on the expr during static
|
|
236
|
+
* analysis. In some cases, this will save the runtime the work of applying
|
|
237
|
+
* the same or similar transformations prior to evaluation.
|
|
238
|
+
*/
|
|
239
|
+
exprVersion: string;
|
|
240
|
+
/**
|
|
241
|
+
* The checked expression. Semantically equivalent to the parsed `expr`, but
|
|
242
|
+
* may have structural differences.
|
|
243
|
+
*/
|
|
244
|
+
expr?: Expr;
|
|
245
|
+
}
|
|
246
|
+
export interface CheckedExprProtoMsg {
|
|
247
|
+
typeUrl: "/google.api.expr.v1alpha1.CheckedExpr";
|
|
248
|
+
value: Uint8Array;
|
|
249
|
+
}
|
|
250
|
+
/**
|
|
251
|
+
* A CEL expression which has been successfully type checked.
|
|
252
|
+
* @name CheckedExprAmino
|
|
253
|
+
* @package google.api.expr.v1alpha1
|
|
254
|
+
* @see proto type: google.api.expr.v1alpha1.CheckedExpr
|
|
255
|
+
*/
|
|
256
|
+
export interface CheckedExprAmino {
|
|
257
|
+
/**
|
|
258
|
+
* A map from expression ids to resolved references.
|
|
259
|
+
*
|
|
260
|
+
* The following entries are in this table:
|
|
261
|
+
*
|
|
262
|
+
* - An Ident or Select expression is represented here if it resolves to a
|
|
263
|
+
* declaration. For instance, if `a.b.c` is represented by
|
|
264
|
+
* `select(select(id(a), b), c)`, and `a.b` resolves to a declaration,
|
|
265
|
+
* while `c` is a field selection, then the reference is attached to the
|
|
266
|
+
* nested select expression (but not to the id or or the outer select).
|
|
267
|
+
* In turn, if `a` resolves to a declaration and `b.c` are field selections,
|
|
268
|
+
* the reference is attached to the ident expression.
|
|
269
|
+
* - Every Call expression has an entry here, identifying the function being
|
|
270
|
+
* called.
|
|
271
|
+
* - Every CreateStruct expression for a message has an entry, identifying
|
|
272
|
+
* the message.
|
|
273
|
+
*/
|
|
274
|
+
reference_map?: {
|
|
275
|
+
[key: string]: ReferenceAmino;
|
|
276
|
+
};
|
|
277
|
+
/**
|
|
278
|
+
* A map from expression ids to types.
|
|
279
|
+
*
|
|
280
|
+
* Every expression node which has a type different than DYN has a mapping
|
|
281
|
+
* here. If an expression has type DYN, it is omitted from this map to save
|
|
282
|
+
* space.
|
|
283
|
+
*/
|
|
284
|
+
type_map?: {
|
|
285
|
+
[key: string]: TypeAmino;
|
|
286
|
+
};
|
|
287
|
+
/**
|
|
288
|
+
* The source info derived from input that generated the parsed `expr` and
|
|
289
|
+
* any optimizations made during the type-checking pass.
|
|
290
|
+
*/
|
|
291
|
+
source_info?: SourceInfoAmino;
|
|
292
|
+
/**
|
|
293
|
+
* The expr version indicates the major / minor version number of the `expr`
|
|
294
|
+
* representation.
|
|
295
|
+
*
|
|
296
|
+
* The most common reason for a version change will be to indicate to the CEL
|
|
297
|
+
* runtimes that transformations have been performed on the expr during static
|
|
298
|
+
* analysis. In some cases, this will save the runtime the work of applying
|
|
299
|
+
* the same or similar transformations prior to evaluation.
|
|
300
|
+
*/
|
|
301
|
+
expr_version?: string;
|
|
302
|
+
/**
|
|
303
|
+
* The checked expression. Semantically equivalent to the parsed `expr`, but
|
|
304
|
+
* may have structural differences.
|
|
305
|
+
*/
|
|
306
|
+
expr?: ExprAmino;
|
|
307
|
+
}
|
|
308
|
+
export interface CheckedExprAminoMsg {
|
|
309
|
+
type: "/google.api.expr.v1alpha1.CheckedExpr";
|
|
310
|
+
value: CheckedExprAmino;
|
|
311
|
+
}
|
|
312
|
+
/** A CEL expression which has been successfully type checked. */
|
|
313
|
+
export interface CheckedExprSDKType {
|
|
314
|
+
reference_map: {
|
|
315
|
+
[key: bigint]: ReferenceSDKType;
|
|
316
|
+
};
|
|
317
|
+
type_map: {
|
|
318
|
+
[key: bigint]: TypeSDKType;
|
|
319
|
+
};
|
|
320
|
+
source_info?: SourceInfoSDKType;
|
|
321
|
+
expr_version: string;
|
|
322
|
+
expr?: ExprSDKType;
|
|
323
|
+
}
|
|
324
|
+
/** Represents a CEL type. */
|
|
325
|
+
export interface Type {
|
|
326
|
+
/** Dynamic type. */
|
|
327
|
+
dyn?: Empty;
|
|
328
|
+
/** Null value. */
|
|
329
|
+
null?: NullValue;
|
|
330
|
+
/** Primitive types: `true`, `1u`, `-2.0`, `'string'`, `b'bytes'`. */
|
|
331
|
+
primitive?: Type_PrimitiveType;
|
|
332
|
+
/** Wrapper of a primitive type, e.g. `google.protobuf.Int64Value`. */
|
|
333
|
+
wrapper?: Type_PrimitiveType;
|
|
334
|
+
/** Well-known protobuf type such as `google.protobuf.Timestamp`. */
|
|
335
|
+
wellKnown?: Type_WellKnownType;
|
|
336
|
+
/** Parameterized list with elements of `list_type`, e.g. `list<timestamp>`. */
|
|
337
|
+
listType?: Type_ListType;
|
|
338
|
+
/** Parameterized map with typed keys and values. */
|
|
339
|
+
mapType?: Type_MapType;
|
|
340
|
+
/** Function type. */
|
|
341
|
+
function?: Type_FunctionType;
|
|
342
|
+
/**
|
|
343
|
+
* Protocol buffer message type.
|
|
344
|
+
*
|
|
345
|
+
* The `message_type` string specifies the qualified message type name. For
|
|
346
|
+
* example, `google.plus.Profile`.
|
|
347
|
+
*/
|
|
348
|
+
messageType?: string;
|
|
349
|
+
/**
|
|
350
|
+
* Type param type.
|
|
351
|
+
*
|
|
352
|
+
* The `type_param` string specifies the type parameter name, e.g. `list<E>`
|
|
353
|
+
* would be a `list_type` whose element type was a `type_param` type
|
|
354
|
+
* named `E`.
|
|
355
|
+
*/
|
|
356
|
+
typeParam?: string;
|
|
357
|
+
/**
|
|
358
|
+
* Type type.
|
|
359
|
+
*
|
|
360
|
+
* The `type` value specifies the target type. e.g. int is type with a
|
|
361
|
+
* target type of `Primitive.INT`.
|
|
362
|
+
*/
|
|
363
|
+
type?: Type;
|
|
364
|
+
/**
|
|
365
|
+
* Error type.
|
|
366
|
+
*
|
|
367
|
+
* During type-checking if an expression is an error, its type is propagated
|
|
368
|
+
* as the `ERROR` type. This permits the type-checker to discover other
|
|
369
|
+
* errors present in the expression.
|
|
370
|
+
*/
|
|
371
|
+
error?: Empty;
|
|
372
|
+
/** Abstract, application defined type. */
|
|
373
|
+
abstractType?: Type_AbstractType;
|
|
374
|
+
}
|
|
375
|
+
export interface TypeProtoMsg {
|
|
376
|
+
typeUrl: "/google.api.expr.v1alpha1.Type";
|
|
377
|
+
value: Uint8Array;
|
|
378
|
+
}
|
|
379
|
+
/**
|
|
380
|
+
* Represents a CEL type.
|
|
381
|
+
* @name TypeAmino
|
|
382
|
+
* @package google.api.expr.v1alpha1
|
|
383
|
+
* @see proto type: google.api.expr.v1alpha1.Type
|
|
384
|
+
*/
|
|
385
|
+
export interface TypeAmino {
|
|
386
|
+
/**
|
|
387
|
+
* Dynamic type.
|
|
388
|
+
*/
|
|
389
|
+
dyn?: EmptyAmino;
|
|
390
|
+
/**
|
|
391
|
+
* Null value.
|
|
392
|
+
*/
|
|
393
|
+
null?: NullValue;
|
|
394
|
+
/**
|
|
395
|
+
* Primitive types: `true`, `1u`, `-2.0`, `'string'`, `b'bytes'`.
|
|
396
|
+
*/
|
|
397
|
+
primitive?: Type_PrimitiveType;
|
|
398
|
+
/**
|
|
399
|
+
* Wrapper of a primitive type, e.g. `google.protobuf.Int64Value`.
|
|
400
|
+
*/
|
|
401
|
+
wrapper?: Type_PrimitiveType;
|
|
402
|
+
/**
|
|
403
|
+
* Well-known protobuf type such as `google.protobuf.Timestamp`.
|
|
404
|
+
*/
|
|
405
|
+
well_known?: Type_WellKnownType;
|
|
406
|
+
/**
|
|
407
|
+
* Parameterized list with elements of `list_type`, e.g. `list<timestamp>`.
|
|
408
|
+
*/
|
|
409
|
+
list_type?: Type_ListTypeAmino;
|
|
410
|
+
/**
|
|
411
|
+
* Parameterized map with typed keys and values.
|
|
412
|
+
*/
|
|
413
|
+
map_type?: Type_MapTypeAmino;
|
|
414
|
+
/**
|
|
415
|
+
* Function type.
|
|
416
|
+
*/
|
|
417
|
+
function?: Type_FunctionTypeAmino;
|
|
418
|
+
/**
|
|
419
|
+
* Protocol buffer message type.
|
|
420
|
+
*
|
|
421
|
+
* The `message_type` string specifies the qualified message type name. For
|
|
422
|
+
* example, `google.plus.Profile`.
|
|
423
|
+
*/
|
|
424
|
+
message_type?: string;
|
|
425
|
+
/**
|
|
426
|
+
* Type param type.
|
|
427
|
+
*
|
|
428
|
+
* The `type_param` string specifies the type parameter name, e.g. `list<E>`
|
|
429
|
+
* would be a `list_type` whose element type was a `type_param` type
|
|
430
|
+
* named `E`.
|
|
431
|
+
*/
|
|
432
|
+
type_param?: string;
|
|
433
|
+
/**
|
|
434
|
+
* Type type.
|
|
435
|
+
*
|
|
436
|
+
* The `type` value specifies the target type. e.g. int is type with a
|
|
437
|
+
* target type of `Primitive.INT`.
|
|
438
|
+
*/
|
|
439
|
+
type?: TypeAmino;
|
|
440
|
+
/**
|
|
441
|
+
* Error type.
|
|
442
|
+
*
|
|
443
|
+
* During type-checking if an expression is an error, its type is propagated
|
|
444
|
+
* as the `ERROR` type. This permits the type-checker to discover other
|
|
445
|
+
* errors present in the expression.
|
|
446
|
+
*/
|
|
447
|
+
error?: EmptyAmino;
|
|
448
|
+
/**
|
|
449
|
+
* Abstract, application defined type.
|
|
450
|
+
*/
|
|
451
|
+
abstract_type?: Type_AbstractTypeAmino;
|
|
452
|
+
}
|
|
453
|
+
export interface TypeAminoMsg {
|
|
454
|
+
type: "/google.api.expr.v1alpha1.Type";
|
|
455
|
+
value: TypeAmino;
|
|
456
|
+
}
|
|
457
|
+
/** Represents a CEL type. */
|
|
458
|
+
export interface TypeSDKType {
|
|
459
|
+
dyn?: EmptySDKType;
|
|
460
|
+
null?: NullValue;
|
|
461
|
+
primitive?: Type_PrimitiveType;
|
|
462
|
+
wrapper?: Type_PrimitiveType;
|
|
463
|
+
well_known?: Type_WellKnownType;
|
|
464
|
+
list_type?: Type_ListTypeSDKType;
|
|
465
|
+
map_type?: Type_MapTypeSDKType;
|
|
466
|
+
function?: Type_FunctionTypeSDKType;
|
|
467
|
+
message_type?: string;
|
|
468
|
+
type_param?: string;
|
|
469
|
+
type?: TypeSDKType;
|
|
470
|
+
error?: EmptySDKType;
|
|
471
|
+
abstract_type?: Type_AbstractTypeSDKType;
|
|
472
|
+
}
|
|
473
|
+
/** List type with typed elements, e.g. `list<example.proto.MyMessage>`. */
|
|
474
|
+
export interface Type_ListType {
|
|
475
|
+
/** The element type. */
|
|
476
|
+
elemType?: Type;
|
|
477
|
+
}
|
|
478
|
+
export interface Type_ListTypeProtoMsg {
|
|
479
|
+
typeUrl: "/google.api.expr.v1alpha1.ListType";
|
|
480
|
+
value: Uint8Array;
|
|
481
|
+
}
|
|
482
|
+
/**
|
|
483
|
+
* List type with typed elements, e.g. `list<example.proto.MyMessage>`.
|
|
484
|
+
* @name Type_ListTypeAmino
|
|
485
|
+
* @package google.api.expr.v1alpha1
|
|
486
|
+
* @see proto type: google.api.expr.v1alpha1.Type_ListType
|
|
487
|
+
*/
|
|
488
|
+
export interface Type_ListTypeAmino {
|
|
489
|
+
/**
|
|
490
|
+
* The element type.
|
|
491
|
+
*/
|
|
492
|
+
elem_type?: TypeAmino;
|
|
493
|
+
}
|
|
494
|
+
export interface Type_ListTypeAminoMsg {
|
|
495
|
+
type: "/google.api.expr.v1alpha1.ListType";
|
|
496
|
+
value: Type_ListTypeAmino;
|
|
497
|
+
}
|
|
498
|
+
/** List type with typed elements, e.g. `list<example.proto.MyMessage>`. */
|
|
499
|
+
export interface Type_ListTypeSDKType {
|
|
500
|
+
elem_type?: TypeSDKType;
|
|
501
|
+
}
|
|
502
|
+
/** Map type with parameterized key and value types, e.g. `map<string, int>`. */
|
|
503
|
+
export interface Type_MapType {
|
|
504
|
+
/** The type of the key. */
|
|
505
|
+
keyType?: Type;
|
|
506
|
+
/** The type of the value. */
|
|
507
|
+
valueType?: Type;
|
|
508
|
+
}
|
|
509
|
+
export interface Type_MapTypeProtoMsg {
|
|
510
|
+
typeUrl: "/google.api.expr.v1alpha1.MapType";
|
|
511
|
+
value: Uint8Array;
|
|
512
|
+
}
|
|
513
|
+
/**
|
|
514
|
+
* Map type with parameterized key and value types, e.g. `map<string, int>`.
|
|
515
|
+
* @name Type_MapTypeAmino
|
|
516
|
+
* @package google.api.expr.v1alpha1
|
|
517
|
+
* @see proto type: google.api.expr.v1alpha1.Type_MapType
|
|
518
|
+
*/
|
|
519
|
+
export interface Type_MapTypeAmino {
|
|
520
|
+
/**
|
|
521
|
+
* The type of the key.
|
|
522
|
+
*/
|
|
523
|
+
key_type?: TypeAmino;
|
|
524
|
+
/**
|
|
525
|
+
* The type of the value.
|
|
526
|
+
*/
|
|
527
|
+
value_type?: TypeAmino;
|
|
528
|
+
}
|
|
529
|
+
export interface Type_MapTypeAminoMsg {
|
|
530
|
+
type: "/google.api.expr.v1alpha1.MapType";
|
|
531
|
+
value: Type_MapTypeAmino;
|
|
532
|
+
}
|
|
533
|
+
/** Map type with parameterized key and value types, e.g. `map<string, int>`. */
|
|
534
|
+
export interface Type_MapTypeSDKType {
|
|
535
|
+
key_type?: TypeSDKType;
|
|
536
|
+
value_type?: TypeSDKType;
|
|
537
|
+
}
|
|
538
|
+
/** Function type with result and arg types. */
|
|
539
|
+
export interface Type_FunctionType {
|
|
540
|
+
/** Result type of the function. */
|
|
541
|
+
resultType?: Type;
|
|
542
|
+
/** Argument types of the function. */
|
|
543
|
+
argTypes: Type[];
|
|
544
|
+
}
|
|
545
|
+
export interface Type_FunctionTypeProtoMsg {
|
|
546
|
+
typeUrl: "/google.api.expr.v1alpha1.FunctionType";
|
|
547
|
+
value: Uint8Array;
|
|
548
|
+
}
|
|
549
|
+
/**
|
|
550
|
+
* Function type with result and arg types.
|
|
551
|
+
* @name Type_FunctionTypeAmino
|
|
552
|
+
* @package google.api.expr.v1alpha1
|
|
553
|
+
* @see proto type: google.api.expr.v1alpha1.Type_FunctionType
|
|
554
|
+
*/
|
|
555
|
+
export interface Type_FunctionTypeAmino {
|
|
556
|
+
/**
|
|
557
|
+
* Result type of the function.
|
|
558
|
+
*/
|
|
559
|
+
result_type?: TypeAmino;
|
|
560
|
+
/**
|
|
561
|
+
* Argument types of the function.
|
|
562
|
+
*/
|
|
563
|
+
arg_types?: TypeAmino[];
|
|
564
|
+
}
|
|
565
|
+
export interface Type_FunctionTypeAminoMsg {
|
|
566
|
+
type: "/google.api.expr.v1alpha1.FunctionType";
|
|
567
|
+
value: Type_FunctionTypeAmino;
|
|
568
|
+
}
|
|
569
|
+
/** Function type with result and arg types. */
|
|
570
|
+
export interface Type_FunctionTypeSDKType {
|
|
571
|
+
result_type?: TypeSDKType;
|
|
572
|
+
arg_types: TypeSDKType[];
|
|
573
|
+
}
|
|
574
|
+
/** Application defined abstract type. */
|
|
575
|
+
export interface Type_AbstractType {
|
|
576
|
+
/** The fully qualified name of this abstract type. */
|
|
577
|
+
name: string;
|
|
578
|
+
/** Parameter types for this abstract type. */
|
|
579
|
+
parameterTypes: Type[];
|
|
580
|
+
}
|
|
581
|
+
export interface Type_AbstractTypeProtoMsg {
|
|
582
|
+
typeUrl: "/google.api.expr.v1alpha1.AbstractType";
|
|
583
|
+
value: Uint8Array;
|
|
584
|
+
}
|
|
585
|
+
/**
|
|
586
|
+
* Application defined abstract type.
|
|
587
|
+
* @name Type_AbstractTypeAmino
|
|
588
|
+
* @package google.api.expr.v1alpha1
|
|
589
|
+
* @see proto type: google.api.expr.v1alpha1.Type_AbstractType
|
|
590
|
+
*/
|
|
591
|
+
export interface Type_AbstractTypeAmino {
|
|
592
|
+
/**
|
|
593
|
+
* The fully qualified name of this abstract type.
|
|
594
|
+
*/
|
|
595
|
+
name?: string;
|
|
596
|
+
/**
|
|
597
|
+
* Parameter types for this abstract type.
|
|
598
|
+
*/
|
|
599
|
+
parameter_types?: TypeAmino[];
|
|
600
|
+
}
|
|
601
|
+
export interface Type_AbstractTypeAminoMsg {
|
|
602
|
+
type: "/google.api.expr.v1alpha1.AbstractType";
|
|
603
|
+
value: Type_AbstractTypeAmino;
|
|
604
|
+
}
|
|
605
|
+
/** Application defined abstract type. */
|
|
606
|
+
export interface Type_AbstractTypeSDKType {
|
|
607
|
+
name: string;
|
|
608
|
+
parameter_types: TypeSDKType[];
|
|
609
|
+
}
|
|
610
|
+
/**
|
|
611
|
+
* Represents a declaration of a named value or function.
|
|
612
|
+
*
|
|
613
|
+
* A declaration is part of the contract between the expression, the agent
|
|
614
|
+
* evaluating that expression, and the caller requesting evaluation.
|
|
615
|
+
*/
|
|
616
|
+
export interface Decl {
|
|
617
|
+
/**
|
|
618
|
+
* The fully qualified name of the declaration.
|
|
619
|
+
*
|
|
620
|
+
* Declarations are organized in containers and this represents the full path
|
|
621
|
+
* to the declaration in its container, as in `google.api.expr.Decl`.
|
|
622
|
+
*
|
|
623
|
+
* Declarations used as
|
|
624
|
+
* [FunctionDecl.Overload][google.api.expr.v1alpha1.Decl.FunctionDecl.Overload]
|
|
625
|
+
* parameters may or may not have a name depending on whether the overload is
|
|
626
|
+
* function declaration or a function definition containing a result
|
|
627
|
+
* [Expr][google.api.expr.v1alpha1.Expr].
|
|
628
|
+
*/
|
|
629
|
+
name: string;
|
|
630
|
+
/** Identifier declaration. */
|
|
631
|
+
ident?: Decl_IdentDecl;
|
|
632
|
+
/** Function declaration. */
|
|
633
|
+
function?: Decl_FunctionDecl;
|
|
634
|
+
}
|
|
635
|
+
export interface DeclProtoMsg {
|
|
636
|
+
typeUrl: "/google.api.expr.v1alpha1.Decl";
|
|
637
|
+
value: Uint8Array;
|
|
638
|
+
}
|
|
639
|
+
/**
|
|
640
|
+
* Represents a declaration of a named value or function.
|
|
641
|
+
*
|
|
642
|
+
* A declaration is part of the contract between the expression, the agent
|
|
643
|
+
* evaluating that expression, and the caller requesting evaluation.
|
|
644
|
+
* @name DeclAmino
|
|
645
|
+
* @package google.api.expr.v1alpha1
|
|
646
|
+
* @see proto type: google.api.expr.v1alpha1.Decl
|
|
647
|
+
*/
|
|
648
|
+
export interface DeclAmino {
|
|
649
|
+
/**
|
|
650
|
+
* The fully qualified name of the declaration.
|
|
651
|
+
*
|
|
652
|
+
* Declarations are organized in containers and this represents the full path
|
|
653
|
+
* to the declaration in its container, as in `google.api.expr.Decl`.
|
|
654
|
+
*
|
|
655
|
+
* Declarations used as
|
|
656
|
+
* [FunctionDecl.Overload][google.api.expr.v1alpha1.Decl.FunctionDecl.Overload]
|
|
657
|
+
* parameters may or may not have a name depending on whether the overload is
|
|
658
|
+
* function declaration or a function definition containing a result
|
|
659
|
+
* [Expr][google.api.expr.v1alpha1.Expr].
|
|
660
|
+
*/
|
|
661
|
+
name?: string;
|
|
662
|
+
/**
|
|
663
|
+
* Identifier declaration.
|
|
664
|
+
*/
|
|
665
|
+
ident?: Decl_IdentDeclAmino;
|
|
666
|
+
/**
|
|
667
|
+
* Function declaration.
|
|
668
|
+
*/
|
|
669
|
+
function?: Decl_FunctionDeclAmino;
|
|
670
|
+
}
|
|
671
|
+
export interface DeclAminoMsg {
|
|
672
|
+
type: "/google.api.expr.v1alpha1.Decl";
|
|
673
|
+
value: DeclAmino;
|
|
674
|
+
}
|
|
675
|
+
/**
|
|
676
|
+
* Represents a declaration of a named value or function.
|
|
677
|
+
*
|
|
678
|
+
* A declaration is part of the contract between the expression, the agent
|
|
679
|
+
* evaluating that expression, and the caller requesting evaluation.
|
|
680
|
+
*/
|
|
681
|
+
export interface DeclSDKType {
|
|
682
|
+
name: string;
|
|
683
|
+
ident?: Decl_IdentDeclSDKType;
|
|
684
|
+
function?: Decl_FunctionDeclSDKType;
|
|
685
|
+
}
|
|
686
|
+
/**
|
|
687
|
+
* Identifier declaration which specifies its type and optional `Expr` value.
|
|
688
|
+
*
|
|
689
|
+
* An identifier without a value is a declaration that must be provided at
|
|
690
|
+
* evaluation time. An identifier with a value should resolve to a constant,
|
|
691
|
+
* but may be used in conjunction with other identifiers bound at evaluation
|
|
692
|
+
* time.
|
|
693
|
+
*/
|
|
694
|
+
export interface Decl_IdentDecl {
|
|
695
|
+
/** Required. The type of the identifier. */
|
|
696
|
+
type?: Type;
|
|
697
|
+
/**
|
|
698
|
+
* The constant value of the identifier. If not specified, the identifier
|
|
699
|
+
* must be supplied at evaluation time.
|
|
700
|
+
*/
|
|
701
|
+
value?: Constant;
|
|
702
|
+
/** Documentation string for the identifier. */
|
|
703
|
+
doc: string;
|
|
704
|
+
}
|
|
705
|
+
export interface Decl_IdentDeclProtoMsg {
|
|
706
|
+
typeUrl: "/google.api.expr.v1alpha1.IdentDecl";
|
|
707
|
+
value: Uint8Array;
|
|
708
|
+
}
|
|
709
|
+
/**
|
|
710
|
+
* Identifier declaration which specifies its type and optional `Expr` value.
|
|
711
|
+
*
|
|
712
|
+
* An identifier without a value is a declaration that must be provided at
|
|
713
|
+
* evaluation time. An identifier with a value should resolve to a constant,
|
|
714
|
+
* but may be used in conjunction with other identifiers bound at evaluation
|
|
715
|
+
* time.
|
|
716
|
+
* @name Decl_IdentDeclAmino
|
|
717
|
+
* @package google.api.expr.v1alpha1
|
|
718
|
+
* @see proto type: google.api.expr.v1alpha1.Decl_IdentDecl
|
|
719
|
+
*/
|
|
720
|
+
export interface Decl_IdentDeclAmino {
|
|
721
|
+
/**
|
|
722
|
+
* Required. The type of the identifier.
|
|
723
|
+
*/
|
|
724
|
+
type?: TypeAmino;
|
|
725
|
+
/**
|
|
726
|
+
* The constant value of the identifier. If not specified, the identifier
|
|
727
|
+
* must be supplied at evaluation time.
|
|
728
|
+
*/
|
|
729
|
+
value?: ConstantAmino;
|
|
730
|
+
/**
|
|
731
|
+
* Documentation string for the identifier.
|
|
732
|
+
*/
|
|
733
|
+
doc?: string;
|
|
734
|
+
}
|
|
735
|
+
export interface Decl_IdentDeclAminoMsg {
|
|
736
|
+
type: "/google.api.expr.v1alpha1.IdentDecl";
|
|
737
|
+
value: Decl_IdentDeclAmino;
|
|
738
|
+
}
|
|
739
|
+
/**
|
|
740
|
+
* Identifier declaration which specifies its type and optional `Expr` value.
|
|
741
|
+
*
|
|
742
|
+
* An identifier without a value is a declaration that must be provided at
|
|
743
|
+
* evaluation time. An identifier with a value should resolve to a constant,
|
|
744
|
+
* but may be used in conjunction with other identifiers bound at evaluation
|
|
745
|
+
* time.
|
|
746
|
+
*/
|
|
747
|
+
export interface Decl_IdentDeclSDKType {
|
|
748
|
+
type?: TypeSDKType;
|
|
749
|
+
value?: ConstantSDKType;
|
|
750
|
+
doc: string;
|
|
751
|
+
}
|
|
752
|
+
/**
|
|
753
|
+
* Function declaration specifies one or more overloads which indicate the
|
|
754
|
+
* function's parameter types and return type.
|
|
755
|
+
*
|
|
756
|
+
* Functions have no observable side-effects (there may be side-effects like
|
|
757
|
+
* logging which are not observable from CEL).
|
|
758
|
+
*/
|
|
759
|
+
export interface Decl_FunctionDecl {
|
|
760
|
+
/** Required. List of function overloads, must contain at least one overload. */
|
|
761
|
+
overloads: Decl_FunctionDecl_Overload[];
|
|
762
|
+
}
|
|
763
|
+
export interface Decl_FunctionDeclProtoMsg {
|
|
764
|
+
typeUrl: "/google.api.expr.v1alpha1.FunctionDecl";
|
|
765
|
+
value: Uint8Array;
|
|
766
|
+
}
|
|
767
|
+
/**
|
|
768
|
+
* Function declaration specifies one or more overloads which indicate the
|
|
769
|
+
* function's parameter types and return type.
|
|
770
|
+
*
|
|
771
|
+
* Functions have no observable side-effects (there may be side-effects like
|
|
772
|
+
* logging which are not observable from CEL).
|
|
773
|
+
* @name Decl_FunctionDeclAmino
|
|
774
|
+
* @package google.api.expr.v1alpha1
|
|
775
|
+
* @see proto type: google.api.expr.v1alpha1.Decl_FunctionDecl
|
|
776
|
+
*/
|
|
777
|
+
export interface Decl_FunctionDeclAmino {
|
|
778
|
+
/**
|
|
779
|
+
* Required. List of function overloads, must contain at least one overload.
|
|
780
|
+
*/
|
|
781
|
+
overloads?: Decl_FunctionDecl_OverloadAmino[];
|
|
782
|
+
}
|
|
783
|
+
export interface Decl_FunctionDeclAminoMsg {
|
|
784
|
+
type: "/google.api.expr.v1alpha1.FunctionDecl";
|
|
785
|
+
value: Decl_FunctionDeclAmino;
|
|
786
|
+
}
|
|
787
|
+
/**
|
|
788
|
+
* Function declaration specifies one or more overloads which indicate the
|
|
789
|
+
* function's parameter types and return type.
|
|
790
|
+
*
|
|
791
|
+
* Functions have no observable side-effects (there may be side-effects like
|
|
792
|
+
* logging which are not observable from CEL).
|
|
793
|
+
*/
|
|
794
|
+
export interface Decl_FunctionDeclSDKType {
|
|
795
|
+
overloads: Decl_FunctionDecl_OverloadSDKType[];
|
|
796
|
+
}
|
|
797
|
+
/**
|
|
798
|
+
* An overload indicates a function's parameter types and return type, and
|
|
799
|
+
* may optionally include a function body described in terms of
|
|
800
|
+
* [Expr][google.api.expr.v1alpha1.Expr] values.
|
|
801
|
+
*
|
|
802
|
+
* Functions overloads are declared in either a function or method
|
|
803
|
+
* call-style. For methods, the `params[0]` is the expected type of the
|
|
804
|
+
* target receiver.
|
|
805
|
+
*
|
|
806
|
+
* Overloads must have non-overlapping argument types after erasure of all
|
|
807
|
+
* parameterized type variables (similar as type erasure in Java).
|
|
808
|
+
*/
|
|
809
|
+
export interface Decl_FunctionDecl_Overload {
|
|
810
|
+
/**
|
|
811
|
+
* Required. Globally unique overload name of the function which reflects
|
|
812
|
+
* the function name and argument types.
|
|
813
|
+
*
|
|
814
|
+
* This will be used by a [Reference][google.api.expr.v1alpha1.Reference]
|
|
815
|
+
* to indicate the `overload_id` that was resolved for the function
|
|
816
|
+
* `name`.
|
|
817
|
+
*/
|
|
818
|
+
overloadId: string;
|
|
819
|
+
/**
|
|
820
|
+
* List of function parameter [Type][google.api.expr.v1alpha1.Type]
|
|
821
|
+
* values.
|
|
822
|
+
*
|
|
823
|
+
* Param types are disjoint after generic type parameters have been
|
|
824
|
+
* replaced with the type `DYN`. Since the `DYN` type is compatible with
|
|
825
|
+
* any other type, this means that if `A` is a type parameter, the
|
|
826
|
+
* function types `int<A>` and `int<int>` are not disjoint. Likewise,
|
|
827
|
+
* `map<string, string>` is not disjoint from `map<K, V>`.
|
|
828
|
+
*
|
|
829
|
+
* When the `result_type` of a function is a generic type param, the
|
|
830
|
+
* type param name also appears as the `type` of on at least one params.
|
|
831
|
+
*/
|
|
832
|
+
params: Type[];
|
|
833
|
+
/**
|
|
834
|
+
* The type param names associated with the function declaration.
|
|
835
|
+
*
|
|
836
|
+
* For example, `function ex<K,V>(K key, map<K, V> map) : V` would yield
|
|
837
|
+
* the type params of `K, V`.
|
|
838
|
+
*/
|
|
839
|
+
typeParams: string[];
|
|
840
|
+
/**
|
|
841
|
+
* Required. The result type of the function. For example, the operator
|
|
842
|
+
* `string.isEmpty()` would have `result_type` of `kind: BOOL`.
|
|
843
|
+
*/
|
|
844
|
+
resultType?: Type;
|
|
845
|
+
/**
|
|
846
|
+
* Whether the function is to be used in a method call-style `x.f(...)`
|
|
847
|
+
* or a function call-style `f(x, ...)`.
|
|
848
|
+
*
|
|
849
|
+
* For methods, the first parameter declaration, `params[0]` is the
|
|
850
|
+
* expected type of the target receiver.
|
|
851
|
+
*/
|
|
852
|
+
isInstanceFunction: boolean;
|
|
853
|
+
/** Documentation string for the overload. */
|
|
854
|
+
doc: string;
|
|
855
|
+
}
|
|
856
|
+
export interface Decl_FunctionDecl_OverloadProtoMsg {
|
|
857
|
+
typeUrl: "/google.api.expr.v1alpha1.Overload";
|
|
858
|
+
value: Uint8Array;
|
|
859
|
+
}
|
|
860
|
+
/**
|
|
861
|
+
* An overload indicates a function's parameter types and return type, and
|
|
862
|
+
* may optionally include a function body described in terms of
|
|
863
|
+
* [Expr][google.api.expr.v1alpha1.Expr] values.
|
|
864
|
+
*
|
|
865
|
+
* Functions overloads are declared in either a function or method
|
|
866
|
+
* call-style. For methods, the `params[0]` is the expected type of the
|
|
867
|
+
* target receiver.
|
|
868
|
+
*
|
|
869
|
+
* Overloads must have non-overlapping argument types after erasure of all
|
|
870
|
+
* parameterized type variables (similar as type erasure in Java).
|
|
871
|
+
* @name Decl_FunctionDecl_OverloadAmino
|
|
872
|
+
* @package google.api.expr.v1alpha1
|
|
873
|
+
* @see proto type: google.api.expr.v1alpha1.Decl_FunctionDecl_Overload
|
|
874
|
+
*/
|
|
875
|
+
export interface Decl_FunctionDecl_OverloadAmino {
|
|
876
|
+
/**
|
|
877
|
+
* Required. Globally unique overload name of the function which reflects
|
|
878
|
+
* the function name and argument types.
|
|
879
|
+
*
|
|
880
|
+
* This will be used by a [Reference][google.api.expr.v1alpha1.Reference]
|
|
881
|
+
* to indicate the `overload_id` that was resolved for the function
|
|
882
|
+
* `name`.
|
|
883
|
+
*/
|
|
884
|
+
overload_id?: string;
|
|
885
|
+
/**
|
|
886
|
+
* List of function parameter [Type][google.api.expr.v1alpha1.Type]
|
|
887
|
+
* values.
|
|
888
|
+
*
|
|
889
|
+
* Param types are disjoint after generic type parameters have been
|
|
890
|
+
* replaced with the type `DYN`. Since the `DYN` type is compatible with
|
|
891
|
+
* any other type, this means that if `A` is a type parameter, the
|
|
892
|
+
* function types `int<A>` and `int<int>` are not disjoint. Likewise,
|
|
893
|
+
* `map<string, string>` is not disjoint from `map<K, V>`.
|
|
894
|
+
*
|
|
895
|
+
* When the `result_type` of a function is a generic type param, the
|
|
896
|
+
* type param name also appears as the `type` of on at least one params.
|
|
897
|
+
*/
|
|
898
|
+
params?: TypeAmino[];
|
|
899
|
+
/**
|
|
900
|
+
* The type param names associated with the function declaration.
|
|
901
|
+
*
|
|
902
|
+
* For example, `function ex<K,V>(K key, map<K, V> map) : V` would yield
|
|
903
|
+
* the type params of `K, V`.
|
|
904
|
+
*/
|
|
905
|
+
type_params?: string[];
|
|
906
|
+
/**
|
|
907
|
+
* Required. The result type of the function. For example, the operator
|
|
908
|
+
* `string.isEmpty()` would have `result_type` of `kind: BOOL`.
|
|
909
|
+
*/
|
|
910
|
+
result_type?: TypeAmino;
|
|
911
|
+
/**
|
|
912
|
+
* Whether the function is to be used in a method call-style `x.f(...)`
|
|
913
|
+
* or a function call-style `f(x, ...)`.
|
|
914
|
+
*
|
|
915
|
+
* For methods, the first parameter declaration, `params[0]` is the
|
|
916
|
+
* expected type of the target receiver.
|
|
917
|
+
*/
|
|
918
|
+
is_instance_function?: boolean;
|
|
919
|
+
/**
|
|
920
|
+
* Documentation string for the overload.
|
|
921
|
+
*/
|
|
922
|
+
doc?: string;
|
|
923
|
+
}
|
|
924
|
+
export interface Decl_FunctionDecl_OverloadAminoMsg {
|
|
925
|
+
type: "/google.api.expr.v1alpha1.Overload";
|
|
926
|
+
value: Decl_FunctionDecl_OverloadAmino;
|
|
927
|
+
}
|
|
928
|
+
/**
|
|
929
|
+
* An overload indicates a function's parameter types and return type, and
|
|
930
|
+
* may optionally include a function body described in terms of
|
|
931
|
+
* [Expr][google.api.expr.v1alpha1.Expr] values.
|
|
932
|
+
*
|
|
933
|
+
* Functions overloads are declared in either a function or method
|
|
934
|
+
* call-style. For methods, the `params[0]` is the expected type of the
|
|
935
|
+
* target receiver.
|
|
936
|
+
*
|
|
937
|
+
* Overloads must have non-overlapping argument types after erasure of all
|
|
938
|
+
* parameterized type variables (similar as type erasure in Java).
|
|
939
|
+
*/
|
|
940
|
+
export interface Decl_FunctionDecl_OverloadSDKType {
|
|
941
|
+
overload_id: string;
|
|
942
|
+
params: TypeSDKType[];
|
|
943
|
+
type_params: string[];
|
|
944
|
+
result_type?: TypeSDKType;
|
|
945
|
+
is_instance_function: boolean;
|
|
946
|
+
doc: string;
|
|
947
|
+
}
|
|
948
|
+
/** Describes a resolved reference to a declaration. */
|
|
949
|
+
export interface Reference {
|
|
950
|
+
/** The fully qualified name of the declaration. */
|
|
951
|
+
name: string;
|
|
952
|
+
/**
|
|
953
|
+
* For references to functions, this is a list of `Overload.overload_id`
|
|
954
|
+
* values which match according to typing rules.
|
|
955
|
+
*
|
|
956
|
+
* If the list has more than one element, overload resolution among the
|
|
957
|
+
* presented candidates must happen at runtime because of dynamic types. The
|
|
958
|
+
* type checker attempts to narrow down this list as much as possible.
|
|
959
|
+
*
|
|
960
|
+
* Empty if this is not a reference to a
|
|
961
|
+
* [Decl.FunctionDecl][google.api.expr.v1alpha1.Decl.FunctionDecl].
|
|
962
|
+
*/
|
|
963
|
+
overloadId: string[];
|
|
964
|
+
/**
|
|
965
|
+
* For references to constants, this may contain the value of the
|
|
966
|
+
* constant if known at compile time.
|
|
967
|
+
*/
|
|
968
|
+
value?: Constant;
|
|
969
|
+
}
|
|
970
|
+
export interface ReferenceProtoMsg {
|
|
971
|
+
typeUrl: "/google.api.expr.v1alpha1.Reference";
|
|
972
|
+
value: Uint8Array;
|
|
973
|
+
}
|
|
974
|
+
/**
|
|
975
|
+
* Describes a resolved reference to a declaration.
|
|
976
|
+
* @name ReferenceAmino
|
|
977
|
+
* @package google.api.expr.v1alpha1
|
|
978
|
+
* @see proto type: google.api.expr.v1alpha1.Reference
|
|
979
|
+
*/
|
|
980
|
+
export interface ReferenceAmino {
|
|
981
|
+
/**
|
|
982
|
+
* The fully qualified name of the declaration.
|
|
983
|
+
*/
|
|
984
|
+
name?: string;
|
|
985
|
+
/**
|
|
986
|
+
* For references to functions, this is a list of `Overload.overload_id`
|
|
987
|
+
* values which match according to typing rules.
|
|
988
|
+
*
|
|
989
|
+
* If the list has more than one element, overload resolution among the
|
|
990
|
+
* presented candidates must happen at runtime because of dynamic types. The
|
|
991
|
+
* type checker attempts to narrow down this list as much as possible.
|
|
992
|
+
*
|
|
993
|
+
* Empty if this is not a reference to a
|
|
994
|
+
* [Decl.FunctionDecl][google.api.expr.v1alpha1.Decl.FunctionDecl].
|
|
995
|
+
*/
|
|
996
|
+
overload_id?: string[];
|
|
997
|
+
/**
|
|
998
|
+
* For references to constants, this may contain the value of the
|
|
999
|
+
* constant if known at compile time.
|
|
1000
|
+
*/
|
|
1001
|
+
value?: ConstantAmino;
|
|
1002
|
+
}
|
|
1003
|
+
export interface ReferenceAminoMsg {
|
|
1004
|
+
type: "/google.api.expr.v1alpha1.Reference";
|
|
1005
|
+
value: ReferenceAmino;
|
|
1006
|
+
}
|
|
1007
|
+
/** Describes a resolved reference to a declaration. */
|
|
1008
|
+
export interface ReferenceSDKType {
|
|
1009
|
+
name: string;
|
|
1010
|
+
overload_id: string[];
|
|
1011
|
+
value?: ConstantSDKType;
|
|
1012
|
+
}
|
|
1013
|
+
function createBaseCheckedExpr_ReferenceMapEntry(): CheckedExpr_ReferenceMapEntry {
|
|
1014
|
+
return {
|
|
1015
|
+
key: BigInt(0),
|
|
1016
|
+
value: undefined
|
|
1017
|
+
};
|
|
1018
|
+
}
|
|
1019
|
+
export const CheckedExpr_ReferenceMapEntry = {
|
|
1020
|
+
encode(message: CheckedExpr_ReferenceMapEntry, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1021
|
+
if (message.key !== BigInt(0)) {
|
|
1022
|
+
writer.uint32(8).int64(message.key);
|
|
1023
|
+
}
|
|
1024
|
+
if (message.value !== undefined) {
|
|
1025
|
+
Reference.encode(message.value, writer.uint32(18).fork()).ldelim();
|
|
1026
|
+
}
|
|
1027
|
+
return writer;
|
|
1028
|
+
},
|
|
1029
|
+
decode(input: BinaryReader | Uint8Array, length?: number): CheckedExpr_ReferenceMapEntry {
|
|
1030
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1031
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1032
|
+
const message = createBaseCheckedExpr_ReferenceMapEntry();
|
|
1033
|
+
while (reader.pos < end) {
|
|
1034
|
+
const tag = reader.uint32();
|
|
1035
|
+
switch (tag >>> 3) {
|
|
1036
|
+
case 1:
|
|
1037
|
+
message.key = reader.int64();
|
|
1038
|
+
break;
|
|
1039
|
+
case 2:
|
|
1040
|
+
message.value = Reference.decode(reader, reader.uint32());
|
|
1041
|
+
break;
|
|
1042
|
+
default:
|
|
1043
|
+
reader.skipType(tag & 7);
|
|
1044
|
+
break;
|
|
1045
|
+
}
|
|
1046
|
+
}
|
|
1047
|
+
return message;
|
|
1048
|
+
},
|
|
1049
|
+
fromPartial(object: Partial<CheckedExpr_ReferenceMapEntry>): CheckedExpr_ReferenceMapEntry {
|
|
1050
|
+
const message = createBaseCheckedExpr_ReferenceMapEntry();
|
|
1051
|
+
message.key = object.key !== undefined && object.key !== null ? BigInt(object.key.toString()) : BigInt(0);
|
|
1052
|
+
message.value = object.value !== undefined && object.value !== null ? Reference.fromPartial(object.value) : undefined;
|
|
1053
|
+
return message;
|
|
1054
|
+
},
|
|
1055
|
+
fromAmino(object: CheckedExpr_ReferenceMapEntryAmino): CheckedExpr_ReferenceMapEntry {
|
|
1056
|
+
const message = createBaseCheckedExpr_ReferenceMapEntry();
|
|
1057
|
+
if (object.key !== undefined && object.key !== null) {
|
|
1058
|
+
message.key = BigInt(object.key);
|
|
1059
|
+
}
|
|
1060
|
+
if (object.value !== undefined && object.value !== null) {
|
|
1061
|
+
message.value = Reference.fromAmino(object.value);
|
|
1062
|
+
}
|
|
1063
|
+
return message;
|
|
1064
|
+
},
|
|
1065
|
+
toAmino(message: CheckedExpr_ReferenceMapEntry): CheckedExpr_ReferenceMapEntryAmino {
|
|
1066
|
+
const obj: any = {};
|
|
1067
|
+
obj.key = message.key !== BigInt(0) ? message.key?.toString() : undefined;
|
|
1068
|
+
obj.value = message.value ? Reference.toAmino(message.value) : undefined;
|
|
1069
|
+
return obj;
|
|
1070
|
+
},
|
|
1071
|
+
fromAminoMsg(object: CheckedExpr_ReferenceMapEntryAminoMsg): CheckedExpr_ReferenceMapEntry {
|
|
1072
|
+
return CheckedExpr_ReferenceMapEntry.fromAmino(object.value);
|
|
1073
|
+
},
|
|
1074
|
+
fromProtoMsg(message: CheckedExpr_ReferenceMapEntryProtoMsg): CheckedExpr_ReferenceMapEntry {
|
|
1075
|
+
return CheckedExpr_ReferenceMapEntry.decode(message.value);
|
|
1076
|
+
},
|
|
1077
|
+
toProto(message: CheckedExpr_ReferenceMapEntry): Uint8Array {
|
|
1078
|
+
return CheckedExpr_ReferenceMapEntry.encode(message).finish();
|
|
1079
|
+
}
|
|
1080
|
+
};
|
|
1081
|
+
function createBaseCheckedExpr_TypeMapEntry(): CheckedExpr_TypeMapEntry {
|
|
1082
|
+
return {
|
|
1083
|
+
key: BigInt(0),
|
|
1084
|
+
value: undefined
|
|
1085
|
+
};
|
|
1086
|
+
}
|
|
1087
|
+
export const CheckedExpr_TypeMapEntry = {
|
|
1088
|
+
encode(message: CheckedExpr_TypeMapEntry, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1089
|
+
if (message.key !== BigInt(0)) {
|
|
1090
|
+
writer.uint32(8).int64(message.key);
|
|
1091
|
+
}
|
|
1092
|
+
if (message.value !== undefined) {
|
|
1093
|
+
Type.encode(message.value, writer.uint32(18).fork()).ldelim();
|
|
1094
|
+
}
|
|
1095
|
+
return writer;
|
|
1096
|
+
},
|
|
1097
|
+
decode(input: BinaryReader | Uint8Array, length?: number): CheckedExpr_TypeMapEntry {
|
|
1098
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1099
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1100
|
+
const message = createBaseCheckedExpr_TypeMapEntry();
|
|
1101
|
+
while (reader.pos < end) {
|
|
1102
|
+
const tag = reader.uint32();
|
|
1103
|
+
switch (tag >>> 3) {
|
|
1104
|
+
case 1:
|
|
1105
|
+
message.key = reader.int64();
|
|
1106
|
+
break;
|
|
1107
|
+
case 2:
|
|
1108
|
+
message.value = Type.decode(reader, reader.uint32());
|
|
1109
|
+
break;
|
|
1110
|
+
default:
|
|
1111
|
+
reader.skipType(tag & 7);
|
|
1112
|
+
break;
|
|
1113
|
+
}
|
|
1114
|
+
}
|
|
1115
|
+
return message;
|
|
1116
|
+
},
|
|
1117
|
+
fromPartial(object: Partial<CheckedExpr_TypeMapEntry>): CheckedExpr_TypeMapEntry {
|
|
1118
|
+
const message = createBaseCheckedExpr_TypeMapEntry();
|
|
1119
|
+
message.key = object.key !== undefined && object.key !== null ? BigInt(object.key.toString()) : BigInt(0);
|
|
1120
|
+
message.value = object.value !== undefined && object.value !== null ? Type.fromPartial(object.value) : undefined;
|
|
1121
|
+
return message;
|
|
1122
|
+
},
|
|
1123
|
+
fromAmino(object: CheckedExpr_TypeMapEntryAmino): CheckedExpr_TypeMapEntry {
|
|
1124
|
+
const message = createBaseCheckedExpr_TypeMapEntry();
|
|
1125
|
+
if (object.key !== undefined && object.key !== null) {
|
|
1126
|
+
message.key = BigInt(object.key);
|
|
1127
|
+
}
|
|
1128
|
+
if (object.value !== undefined && object.value !== null) {
|
|
1129
|
+
message.value = Type.fromAmino(object.value);
|
|
1130
|
+
}
|
|
1131
|
+
return message;
|
|
1132
|
+
},
|
|
1133
|
+
toAmino(message: CheckedExpr_TypeMapEntry): CheckedExpr_TypeMapEntryAmino {
|
|
1134
|
+
const obj: any = {};
|
|
1135
|
+
obj.key = message.key !== BigInt(0) ? message.key?.toString() : undefined;
|
|
1136
|
+
obj.value = message.value ? Type.toAmino(message.value) : undefined;
|
|
1137
|
+
return obj;
|
|
1138
|
+
},
|
|
1139
|
+
fromAminoMsg(object: CheckedExpr_TypeMapEntryAminoMsg): CheckedExpr_TypeMapEntry {
|
|
1140
|
+
return CheckedExpr_TypeMapEntry.fromAmino(object.value);
|
|
1141
|
+
},
|
|
1142
|
+
fromProtoMsg(message: CheckedExpr_TypeMapEntryProtoMsg): CheckedExpr_TypeMapEntry {
|
|
1143
|
+
return CheckedExpr_TypeMapEntry.decode(message.value);
|
|
1144
|
+
},
|
|
1145
|
+
toProto(message: CheckedExpr_TypeMapEntry): Uint8Array {
|
|
1146
|
+
return CheckedExpr_TypeMapEntry.encode(message).finish();
|
|
1147
|
+
}
|
|
1148
|
+
};
|
|
1149
|
+
function createBaseCheckedExpr(): CheckedExpr {
|
|
1150
|
+
return {
|
|
1151
|
+
referenceMap: {},
|
|
1152
|
+
typeMap: {},
|
|
1153
|
+
sourceInfo: undefined,
|
|
1154
|
+
exprVersion: "",
|
|
1155
|
+
expr: undefined
|
|
1156
|
+
};
|
|
1157
|
+
}
|
|
1158
|
+
export const CheckedExpr = {
|
|
1159
|
+
typeUrl: "/google.api.expr.v1alpha1.CheckedExpr",
|
|
1160
|
+
encode(message: CheckedExpr, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1161
|
+
Object.entries(message.referenceMap).forEach(([key, value]) => {
|
|
1162
|
+
CheckedExpr_ReferenceMapEntry.encode({
|
|
1163
|
+
key: key as any,
|
|
1164
|
+
value
|
|
1165
|
+
}, writer.uint32(18).fork()).ldelim();
|
|
1166
|
+
});
|
|
1167
|
+
Object.entries(message.typeMap).forEach(([key, value]) => {
|
|
1168
|
+
CheckedExpr_TypeMapEntry.encode({
|
|
1169
|
+
key: key as any,
|
|
1170
|
+
value
|
|
1171
|
+
}, writer.uint32(26).fork()).ldelim();
|
|
1172
|
+
});
|
|
1173
|
+
if (message.sourceInfo !== undefined) {
|
|
1174
|
+
SourceInfo.encode(message.sourceInfo, writer.uint32(42).fork()).ldelim();
|
|
1175
|
+
}
|
|
1176
|
+
if (message.exprVersion !== "") {
|
|
1177
|
+
writer.uint32(50).string(message.exprVersion);
|
|
1178
|
+
}
|
|
1179
|
+
if (message.expr !== undefined) {
|
|
1180
|
+
Expr.encode(message.expr, writer.uint32(34).fork()).ldelim();
|
|
1181
|
+
}
|
|
1182
|
+
return writer;
|
|
1183
|
+
},
|
|
1184
|
+
decode(input: BinaryReader | Uint8Array, length?: number): CheckedExpr {
|
|
1185
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1186
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1187
|
+
const message = createBaseCheckedExpr();
|
|
1188
|
+
while (reader.pos < end) {
|
|
1189
|
+
const tag = reader.uint32();
|
|
1190
|
+
switch (tag >>> 3) {
|
|
1191
|
+
case 2:
|
|
1192
|
+
const entry2 = CheckedExpr_ReferenceMapEntry.decode(reader, reader.uint32());
|
|
1193
|
+
if (entry2.value !== undefined) {
|
|
1194
|
+
message.referenceMap[entry2.key] = entry2.value;
|
|
1195
|
+
}
|
|
1196
|
+
break;
|
|
1197
|
+
case 3:
|
|
1198
|
+
const entry3 = CheckedExpr_TypeMapEntry.decode(reader, reader.uint32());
|
|
1199
|
+
if (entry3.value !== undefined) {
|
|
1200
|
+
message.typeMap[entry3.key] = entry3.value;
|
|
1201
|
+
}
|
|
1202
|
+
break;
|
|
1203
|
+
case 5:
|
|
1204
|
+
message.sourceInfo = SourceInfo.decode(reader, reader.uint32());
|
|
1205
|
+
break;
|
|
1206
|
+
case 6:
|
|
1207
|
+
message.exprVersion = reader.string();
|
|
1208
|
+
break;
|
|
1209
|
+
case 4:
|
|
1210
|
+
message.expr = Expr.decode(reader, reader.uint32());
|
|
1211
|
+
break;
|
|
1212
|
+
default:
|
|
1213
|
+
reader.skipType(tag & 7);
|
|
1214
|
+
break;
|
|
1215
|
+
}
|
|
1216
|
+
}
|
|
1217
|
+
return message;
|
|
1218
|
+
},
|
|
1219
|
+
fromPartial(object: Partial<CheckedExpr>): CheckedExpr {
|
|
1220
|
+
const message = createBaseCheckedExpr();
|
|
1221
|
+
message.referenceMap = Object.entries(object.referenceMap ?? {}).reduce<{
|
|
1222
|
+
[key: bigint]: Reference;
|
|
1223
|
+
}>((acc, [key, value]) => {
|
|
1224
|
+
if (value !== undefined) {
|
|
1225
|
+
acc[Number(key)] = Reference.fromPartial(value);
|
|
1226
|
+
}
|
|
1227
|
+
return acc;
|
|
1228
|
+
}, {});
|
|
1229
|
+
message.typeMap = Object.entries(object.typeMap ?? {}).reduce<{
|
|
1230
|
+
[key: bigint]: Type;
|
|
1231
|
+
}>((acc, [key, value]) => {
|
|
1232
|
+
if (value !== undefined) {
|
|
1233
|
+
acc[Number(key)] = Type.fromPartial(value);
|
|
1234
|
+
}
|
|
1235
|
+
return acc;
|
|
1236
|
+
}, {});
|
|
1237
|
+
message.sourceInfo = object.sourceInfo !== undefined && object.sourceInfo !== null ? SourceInfo.fromPartial(object.sourceInfo) : undefined;
|
|
1238
|
+
message.exprVersion = object.exprVersion ?? "";
|
|
1239
|
+
message.expr = object.expr !== undefined && object.expr !== null ? Expr.fromPartial(object.expr) : undefined;
|
|
1240
|
+
return message;
|
|
1241
|
+
},
|
|
1242
|
+
fromAmino(object: CheckedExprAmino): CheckedExpr {
|
|
1243
|
+
const message = createBaseCheckedExpr();
|
|
1244
|
+
message.referenceMap = Object.entries(object.reference_map ?? {}).reduce<{
|
|
1245
|
+
[key: bigint]: Reference;
|
|
1246
|
+
}>((acc, [key, value]) => {
|
|
1247
|
+
if (value !== undefined) {
|
|
1248
|
+
acc[Number(key)] = Reference.fromAmino(value);
|
|
1249
|
+
}
|
|
1250
|
+
return acc;
|
|
1251
|
+
}, {});
|
|
1252
|
+
message.typeMap = Object.entries(object.type_map ?? {}).reduce<{
|
|
1253
|
+
[key: bigint]: Type;
|
|
1254
|
+
}>((acc, [key, value]) => {
|
|
1255
|
+
if (value !== undefined) {
|
|
1256
|
+
acc[Number(key)] = Type.fromAmino(value);
|
|
1257
|
+
}
|
|
1258
|
+
return acc;
|
|
1259
|
+
}, {});
|
|
1260
|
+
if (object.source_info !== undefined && object.source_info !== null) {
|
|
1261
|
+
message.sourceInfo = SourceInfo.fromAmino(object.source_info);
|
|
1262
|
+
}
|
|
1263
|
+
if (object.expr_version !== undefined && object.expr_version !== null) {
|
|
1264
|
+
message.exprVersion = object.expr_version;
|
|
1265
|
+
}
|
|
1266
|
+
if (object.expr !== undefined && object.expr !== null) {
|
|
1267
|
+
message.expr = Expr.fromAmino(object.expr);
|
|
1268
|
+
}
|
|
1269
|
+
return message;
|
|
1270
|
+
},
|
|
1271
|
+
toAmino(message: CheckedExpr): CheckedExprAmino {
|
|
1272
|
+
const obj: any = {};
|
|
1273
|
+
obj.reference_map = {};
|
|
1274
|
+
if (message.referenceMap) {
|
|
1275
|
+
Object.entries(message.referenceMap).forEach(([k, v]) => {
|
|
1276
|
+
obj.reference_map[k] = Reference.toAmino(v);
|
|
1277
|
+
});
|
|
1278
|
+
}
|
|
1279
|
+
obj.type_map = {};
|
|
1280
|
+
if (message.typeMap) {
|
|
1281
|
+
Object.entries(message.typeMap).forEach(([k, v]) => {
|
|
1282
|
+
obj.type_map[k] = Type.toAmino(v);
|
|
1283
|
+
});
|
|
1284
|
+
}
|
|
1285
|
+
obj.source_info = message.sourceInfo ? SourceInfo.toAmino(message.sourceInfo) : undefined;
|
|
1286
|
+
obj.expr_version = message.exprVersion === "" ? undefined : message.exprVersion;
|
|
1287
|
+
obj.expr = message.expr ? Expr.toAmino(message.expr) : undefined;
|
|
1288
|
+
return obj;
|
|
1289
|
+
},
|
|
1290
|
+
fromAminoMsg(object: CheckedExprAminoMsg): CheckedExpr {
|
|
1291
|
+
return CheckedExpr.fromAmino(object.value);
|
|
1292
|
+
},
|
|
1293
|
+
fromProtoMsg(message: CheckedExprProtoMsg): CheckedExpr {
|
|
1294
|
+
return CheckedExpr.decode(message.value);
|
|
1295
|
+
},
|
|
1296
|
+
toProto(message: CheckedExpr): Uint8Array {
|
|
1297
|
+
return CheckedExpr.encode(message).finish();
|
|
1298
|
+
},
|
|
1299
|
+
toProtoMsg(message: CheckedExpr): CheckedExprProtoMsg {
|
|
1300
|
+
return {
|
|
1301
|
+
typeUrl: "/google.api.expr.v1alpha1.CheckedExpr",
|
|
1302
|
+
value: CheckedExpr.encode(message).finish()
|
|
1303
|
+
};
|
|
1304
|
+
}
|
|
1305
|
+
};
|
|
1306
|
+
function createBaseType(): Type {
|
|
1307
|
+
return {
|
|
1308
|
+
dyn: undefined,
|
|
1309
|
+
null: undefined,
|
|
1310
|
+
primitive: undefined,
|
|
1311
|
+
wrapper: undefined,
|
|
1312
|
+
wellKnown: undefined,
|
|
1313
|
+
listType: undefined,
|
|
1314
|
+
mapType: undefined,
|
|
1315
|
+
function: undefined,
|
|
1316
|
+
messageType: undefined,
|
|
1317
|
+
typeParam: undefined,
|
|
1318
|
+
type: undefined,
|
|
1319
|
+
error: undefined,
|
|
1320
|
+
abstractType: undefined
|
|
1321
|
+
};
|
|
1322
|
+
}
|
|
1323
|
+
export const Type = {
|
|
1324
|
+
typeUrl: "/google.api.expr.v1alpha1.Type",
|
|
1325
|
+
encode(message: Type, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1326
|
+
if (message.dyn !== undefined) {
|
|
1327
|
+
Empty.encode(message.dyn, writer.uint32(10).fork()).ldelim();
|
|
1328
|
+
}
|
|
1329
|
+
if (message.null !== undefined) {
|
|
1330
|
+
writer.uint32(16).int32(message.null);
|
|
1331
|
+
}
|
|
1332
|
+
if (message.primitive !== undefined) {
|
|
1333
|
+
writer.uint32(24).int32(message.primitive);
|
|
1334
|
+
}
|
|
1335
|
+
if (message.wrapper !== undefined) {
|
|
1336
|
+
writer.uint32(32).int32(message.wrapper);
|
|
1337
|
+
}
|
|
1338
|
+
if (message.wellKnown !== undefined) {
|
|
1339
|
+
writer.uint32(40).int32(message.wellKnown);
|
|
1340
|
+
}
|
|
1341
|
+
if (message.listType !== undefined) {
|
|
1342
|
+
Type_ListType.encode(message.listType, writer.uint32(50).fork()).ldelim();
|
|
1343
|
+
}
|
|
1344
|
+
if (message.mapType !== undefined) {
|
|
1345
|
+
Type_MapType.encode(message.mapType, writer.uint32(58).fork()).ldelim();
|
|
1346
|
+
}
|
|
1347
|
+
if (message.function !== undefined) {
|
|
1348
|
+
Type_FunctionType.encode(message.function, writer.uint32(66).fork()).ldelim();
|
|
1349
|
+
}
|
|
1350
|
+
if (message.messageType !== undefined) {
|
|
1351
|
+
writer.uint32(74).string(message.messageType);
|
|
1352
|
+
}
|
|
1353
|
+
if (message.typeParam !== undefined) {
|
|
1354
|
+
writer.uint32(82).string(message.typeParam);
|
|
1355
|
+
}
|
|
1356
|
+
if (message.type !== undefined) {
|
|
1357
|
+
Type.encode(message.type, writer.uint32(90).fork()).ldelim();
|
|
1358
|
+
}
|
|
1359
|
+
if (message.error !== undefined) {
|
|
1360
|
+
Empty.encode(message.error, writer.uint32(98).fork()).ldelim();
|
|
1361
|
+
}
|
|
1362
|
+
if (message.abstractType !== undefined) {
|
|
1363
|
+
Type_AbstractType.encode(message.abstractType, writer.uint32(114).fork()).ldelim();
|
|
1364
|
+
}
|
|
1365
|
+
return writer;
|
|
1366
|
+
},
|
|
1367
|
+
decode(input: BinaryReader | Uint8Array, length?: number): Type {
|
|
1368
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1369
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1370
|
+
const message = createBaseType();
|
|
1371
|
+
while (reader.pos < end) {
|
|
1372
|
+
const tag = reader.uint32();
|
|
1373
|
+
switch (tag >>> 3) {
|
|
1374
|
+
case 1:
|
|
1375
|
+
message.dyn = Empty.decode(reader, reader.uint32());
|
|
1376
|
+
break;
|
|
1377
|
+
case 2:
|
|
1378
|
+
message.null = reader.int32() as any;
|
|
1379
|
+
break;
|
|
1380
|
+
case 3:
|
|
1381
|
+
message.primitive = reader.int32() as any;
|
|
1382
|
+
break;
|
|
1383
|
+
case 4:
|
|
1384
|
+
message.wrapper = reader.int32() as any;
|
|
1385
|
+
break;
|
|
1386
|
+
case 5:
|
|
1387
|
+
message.wellKnown = reader.int32() as any;
|
|
1388
|
+
break;
|
|
1389
|
+
case 6:
|
|
1390
|
+
message.listType = Type_ListType.decode(reader, reader.uint32());
|
|
1391
|
+
break;
|
|
1392
|
+
case 7:
|
|
1393
|
+
message.mapType = Type_MapType.decode(reader, reader.uint32());
|
|
1394
|
+
break;
|
|
1395
|
+
case 8:
|
|
1396
|
+
message.function = Type_FunctionType.decode(reader, reader.uint32());
|
|
1397
|
+
break;
|
|
1398
|
+
case 9:
|
|
1399
|
+
message.messageType = reader.string();
|
|
1400
|
+
break;
|
|
1401
|
+
case 10:
|
|
1402
|
+
message.typeParam = reader.string();
|
|
1403
|
+
break;
|
|
1404
|
+
case 11:
|
|
1405
|
+
message.type = Type.decode(reader, reader.uint32());
|
|
1406
|
+
break;
|
|
1407
|
+
case 12:
|
|
1408
|
+
message.error = Empty.decode(reader, reader.uint32());
|
|
1409
|
+
break;
|
|
1410
|
+
case 14:
|
|
1411
|
+
message.abstractType = Type_AbstractType.decode(reader, reader.uint32());
|
|
1412
|
+
break;
|
|
1413
|
+
default:
|
|
1414
|
+
reader.skipType(tag & 7);
|
|
1415
|
+
break;
|
|
1416
|
+
}
|
|
1417
|
+
}
|
|
1418
|
+
return message;
|
|
1419
|
+
},
|
|
1420
|
+
fromPartial(object: Partial<Type>): Type {
|
|
1421
|
+
const message = createBaseType();
|
|
1422
|
+
message.dyn = object.dyn !== undefined && object.dyn !== null ? Empty.fromPartial(object.dyn) : undefined;
|
|
1423
|
+
message.null = object.null ?? undefined;
|
|
1424
|
+
message.primitive = object.primitive ?? undefined;
|
|
1425
|
+
message.wrapper = object.wrapper ?? undefined;
|
|
1426
|
+
message.wellKnown = object.wellKnown ?? undefined;
|
|
1427
|
+
message.listType = object.listType !== undefined && object.listType !== null ? Type_ListType.fromPartial(object.listType) : undefined;
|
|
1428
|
+
message.mapType = object.mapType !== undefined && object.mapType !== null ? Type_MapType.fromPartial(object.mapType) : undefined;
|
|
1429
|
+
message.function = object.function !== undefined && object.function !== null ? Type_FunctionType.fromPartial(object.function) : undefined;
|
|
1430
|
+
message.messageType = object.messageType ?? undefined;
|
|
1431
|
+
message.typeParam = object.typeParam ?? undefined;
|
|
1432
|
+
message.type = object.type !== undefined && object.type !== null ? Type.fromPartial(object.type) : undefined;
|
|
1433
|
+
message.error = object.error !== undefined && object.error !== null ? Empty.fromPartial(object.error) : undefined;
|
|
1434
|
+
message.abstractType = object.abstractType !== undefined && object.abstractType !== null ? Type_AbstractType.fromPartial(object.abstractType) : undefined;
|
|
1435
|
+
return message;
|
|
1436
|
+
},
|
|
1437
|
+
fromAmino(object: TypeAmino): Type {
|
|
1438
|
+
const message = createBaseType();
|
|
1439
|
+
if (object.dyn !== undefined && object.dyn !== null) {
|
|
1440
|
+
message.dyn = Empty.fromAmino(object.dyn);
|
|
1441
|
+
}
|
|
1442
|
+
if (object.null !== undefined && object.null !== null) {
|
|
1443
|
+
message.null = object.null;
|
|
1444
|
+
}
|
|
1445
|
+
if (object.primitive !== undefined && object.primitive !== null) {
|
|
1446
|
+
message.primitive = object.primitive;
|
|
1447
|
+
}
|
|
1448
|
+
if (object.wrapper !== undefined && object.wrapper !== null) {
|
|
1449
|
+
message.wrapper = object.wrapper;
|
|
1450
|
+
}
|
|
1451
|
+
if (object.well_known !== undefined && object.well_known !== null) {
|
|
1452
|
+
message.wellKnown = object.well_known;
|
|
1453
|
+
}
|
|
1454
|
+
if (object.list_type !== undefined && object.list_type !== null) {
|
|
1455
|
+
message.listType = Type_ListType.fromAmino(object.list_type);
|
|
1456
|
+
}
|
|
1457
|
+
if (object.map_type !== undefined && object.map_type !== null) {
|
|
1458
|
+
message.mapType = Type_MapType.fromAmino(object.map_type);
|
|
1459
|
+
}
|
|
1460
|
+
if (object.function !== undefined && object.function !== null) {
|
|
1461
|
+
message.function = Type_FunctionType.fromAmino(object.function);
|
|
1462
|
+
}
|
|
1463
|
+
if (object.message_type !== undefined && object.message_type !== null) {
|
|
1464
|
+
message.messageType = object.message_type;
|
|
1465
|
+
}
|
|
1466
|
+
if (object.type_param !== undefined && object.type_param !== null) {
|
|
1467
|
+
message.typeParam = object.type_param;
|
|
1468
|
+
}
|
|
1469
|
+
if (object.type !== undefined && object.type !== null) {
|
|
1470
|
+
message.type = Type.fromAmino(object.type);
|
|
1471
|
+
}
|
|
1472
|
+
if (object.error !== undefined && object.error !== null) {
|
|
1473
|
+
message.error = Empty.fromAmino(object.error);
|
|
1474
|
+
}
|
|
1475
|
+
if (object.abstract_type !== undefined && object.abstract_type !== null) {
|
|
1476
|
+
message.abstractType = Type_AbstractType.fromAmino(object.abstract_type);
|
|
1477
|
+
}
|
|
1478
|
+
return message;
|
|
1479
|
+
},
|
|
1480
|
+
toAmino(message: Type): TypeAmino {
|
|
1481
|
+
const obj: any = {};
|
|
1482
|
+
obj.dyn = message.dyn ? Empty.toAmino(message.dyn) : undefined;
|
|
1483
|
+
obj.null = message.null === null ? undefined : message.null;
|
|
1484
|
+
obj.primitive = message.primitive === null ? undefined : message.primitive;
|
|
1485
|
+
obj.wrapper = message.wrapper === null ? undefined : message.wrapper;
|
|
1486
|
+
obj.well_known = message.wellKnown === null ? undefined : message.wellKnown;
|
|
1487
|
+
obj.list_type = message.listType ? Type_ListType.toAmino(message.listType) : undefined;
|
|
1488
|
+
obj.map_type = message.mapType ? Type_MapType.toAmino(message.mapType) : undefined;
|
|
1489
|
+
obj.function = message.function ? Type_FunctionType.toAmino(message.function) : undefined;
|
|
1490
|
+
obj.message_type = message.messageType === null ? undefined : message.messageType;
|
|
1491
|
+
obj.type_param = message.typeParam === null ? undefined : message.typeParam;
|
|
1492
|
+
obj.type = message.type ? Type.toAmino(message.type) : undefined;
|
|
1493
|
+
obj.error = message.error ? Empty.toAmino(message.error) : undefined;
|
|
1494
|
+
obj.abstract_type = message.abstractType ? Type_AbstractType.toAmino(message.abstractType) : undefined;
|
|
1495
|
+
return obj;
|
|
1496
|
+
},
|
|
1497
|
+
fromAminoMsg(object: TypeAminoMsg): Type {
|
|
1498
|
+
return Type.fromAmino(object.value);
|
|
1499
|
+
},
|
|
1500
|
+
fromProtoMsg(message: TypeProtoMsg): Type {
|
|
1501
|
+
return Type.decode(message.value);
|
|
1502
|
+
},
|
|
1503
|
+
toProto(message: Type): Uint8Array {
|
|
1504
|
+
return Type.encode(message).finish();
|
|
1505
|
+
},
|
|
1506
|
+
toProtoMsg(message: Type): TypeProtoMsg {
|
|
1507
|
+
return {
|
|
1508
|
+
typeUrl: "/google.api.expr.v1alpha1.Type",
|
|
1509
|
+
value: Type.encode(message).finish()
|
|
1510
|
+
};
|
|
1511
|
+
}
|
|
1512
|
+
};
|
|
1513
|
+
function createBaseType_ListType(): Type_ListType {
|
|
1514
|
+
return {
|
|
1515
|
+
elemType: undefined
|
|
1516
|
+
};
|
|
1517
|
+
}
|
|
1518
|
+
export const Type_ListType = {
|
|
1519
|
+
typeUrl: "/google.api.expr.v1alpha1.ListType",
|
|
1520
|
+
encode(message: Type_ListType, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1521
|
+
if (message.elemType !== undefined) {
|
|
1522
|
+
Type.encode(message.elemType, writer.uint32(10).fork()).ldelim();
|
|
1523
|
+
}
|
|
1524
|
+
return writer;
|
|
1525
|
+
},
|
|
1526
|
+
decode(input: BinaryReader | Uint8Array, length?: number): Type_ListType {
|
|
1527
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1528
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1529
|
+
const message = createBaseType_ListType();
|
|
1530
|
+
while (reader.pos < end) {
|
|
1531
|
+
const tag = reader.uint32();
|
|
1532
|
+
switch (tag >>> 3) {
|
|
1533
|
+
case 1:
|
|
1534
|
+
message.elemType = Type.decode(reader, reader.uint32());
|
|
1535
|
+
break;
|
|
1536
|
+
default:
|
|
1537
|
+
reader.skipType(tag & 7);
|
|
1538
|
+
break;
|
|
1539
|
+
}
|
|
1540
|
+
}
|
|
1541
|
+
return message;
|
|
1542
|
+
},
|
|
1543
|
+
fromPartial(object: Partial<Type_ListType>): Type_ListType {
|
|
1544
|
+
const message = createBaseType_ListType();
|
|
1545
|
+
message.elemType = object.elemType !== undefined && object.elemType !== null ? Type.fromPartial(object.elemType) : undefined;
|
|
1546
|
+
return message;
|
|
1547
|
+
},
|
|
1548
|
+
fromAmino(object: Type_ListTypeAmino): Type_ListType {
|
|
1549
|
+
const message = createBaseType_ListType();
|
|
1550
|
+
if (object.elem_type !== undefined && object.elem_type !== null) {
|
|
1551
|
+
message.elemType = Type.fromAmino(object.elem_type);
|
|
1552
|
+
}
|
|
1553
|
+
return message;
|
|
1554
|
+
},
|
|
1555
|
+
toAmino(message: Type_ListType): Type_ListTypeAmino {
|
|
1556
|
+
const obj: any = {};
|
|
1557
|
+
obj.elem_type = message.elemType ? Type.toAmino(message.elemType) : undefined;
|
|
1558
|
+
return obj;
|
|
1559
|
+
},
|
|
1560
|
+
fromAminoMsg(object: Type_ListTypeAminoMsg): Type_ListType {
|
|
1561
|
+
return Type_ListType.fromAmino(object.value);
|
|
1562
|
+
},
|
|
1563
|
+
fromProtoMsg(message: Type_ListTypeProtoMsg): Type_ListType {
|
|
1564
|
+
return Type_ListType.decode(message.value);
|
|
1565
|
+
},
|
|
1566
|
+
toProto(message: Type_ListType): Uint8Array {
|
|
1567
|
+
return Type_ListType.encode(message).finish();
|
|
1568
|
+
},
|
|
1569
|
+
toProtoMsg(message: Type_ListType): Type_ListTypeProtoMsg {
|
|
1570
|
+
return {
|
|
1571
|
+
typeUrl: "/google.api.expr.v1alpha1.ListType",
|
|
1572
|
+
value: Type_ListType.encode(message).finish()
|
|
1573
|
+
};
|
|
1574
|
+
}
|
|
1575
|
+
};
|
|
1576
|
+
function createBaseType_MapType(): Type_MapType {
|
|
1577
|
+
return {
|
|
1578
|
+
keyType: undefined,
|
|
1579
|
+
valueType: undefined
|
|
1580
|
+
};
|
|
1581
|
+
}
|
|
1582
|
+
export const Type_MapType = {
|
|
1583
|
+
typeUrl: "/google.api.expr.v1alpha1.MapType",
|
|
1584
|
+
encode(message: Type_MapType, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1585
|
+
if (message.keyType !== undefined) {
|
|
1586
|
+
Type.encode(message.keyType, writer.uint32(10).fork()).ldelim();
|
|
1587
|
+
}
|
|
1588
|
+
if (message.valueType !== undefined) {
|
|
1589
|
+
Type.encode(message.valueType, writer.uint32(18).fork()).ldelim();
|
|
1590
|
+
}
|
|
1591
|
+
return writer;
|
|
1592
|
+
},
|
|
1593
|
+
decode(input: BinaryReader | Uint8Array, length?: number): Type_MapType {
|
|
1594
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1595
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1596
|
+
const message = createBaseType_MapType();
|
|
1597
|
+
while (reader.pos < end) {
|
|
1598
|
+
const tag = reader.uint32();
|
|
1599
|
+
switch (tag >>> 3) {
|
|
1600
|
+
case 1:
|
|
1601
|
+
message.keyType = Type.decode(reader, reader.uint32());
|
|
1602
|
+
break;
|
|
1603
|
+
case 2:
|
|
1604
|
+
message.valueType = Type.decode(reader, reader.uint32());
|
|
1605
|
+
break;
|
|
1606
|
+
default:
|
|
1607
|
+
reader.skipType(tag & 7);
|
|
1608
|
+
break;
|
|
1609
|
+
}
|
|
1610
|
+
}
|
|
1611
|
+
return message;
|
|
1612
|
+
},
|
|
1613
|
+
fromPartial(object: Partial<Type_MapType>): Type_MapType {
|
|
1614
|
+
const message = createBaseType_MapType();
|
|
1615
|
+
message.keyType = object.keyType !== undefined && object.keyType !== null ? Type.fromPartial(object.keyType) : undefined;
|
|
1616
|
+
message.valueType = object.valueType !== undefined && object.valueType !== null ? Type.fromPartial(object.valueType) : undefined;
|
|
1617
|
+
return message;
|
|
1618
|
+
},
|
|
1619
|
+
fromAmino(object: Type_MapTypeAmino): Type_MapType {
|
|
1620
|
+
const message = createBaseType_MapType();
|
|
1621
|
+
if (object.key_type !== undefined && object.key_type !== null) {
|
|
1622
|
+
message.keyType = Type.fromAmino(object.key_type);
|
|
1623
|
+
}
|
|
1624
|
+
if (object.value_type !== undefined && object.value_type !== null) {
|
|
1625
|
+
message.valueType = Type.fromAmino(object.value_type);
|
|
1626
|
+
}
|
|
1627
|
+
return message;
|
|
1628
|
+
},
|
|
1629
|
+
toAmino(message: Type_MapType): Type_MapTypeAmino {
|
|
1630
|
+
const obj: any = {};
|
|
1631
|
+
obj.key_type = message.keyType ? Type.toAmino(message.keyType) : undefined;
|
|
1632
|
+
obj.value_type = message.valueType ? Type.toAmino(message.valueType) : undefined;
|
|
1633
|
+
return obj;
|
|
1634
|
+
},
|
|
1635
|
+
fromAminoMsg(object: Type_MapTypeAminoMsg): Type_MapType {
|
|
1636
|
+
return Type_MapType.fromAmino(object.value);
|
|
1637
|
+
},
|
|
1638
|
+
fromProtoMsg(message: Type_MapTypeProtoMsg): Type_MapType {
|
|
1639
|
+
return Type_MapType.decode(message.value);
|
|
1640
|
+
},
|
|
1641
|
+
toProto(message: Type_MapType): Uint8Array {
|
|
1642
|
+
return Type_MapType.encode(message).finish();
|
|
1643
|
+
},
|
|
1644
|
+
toProtoMsg(message: Type_MapType): Type_MapTypeProtoMsg {
|
|
1645
|
+
return {
|
|
1646
|
+
typeUrl: "/google.api.expr.v1alpha1.MapType",
|
|
1647
|
+
value: Type_MapType.encode(message).finish()
|
|
1648
|
+
};
|
|
1649
|
+
}
|
|
1650
|
+
};
|
|
1651
|
+
function createBaseType_FunctionType(): Type_FunctionType {
|
|
1652
|
+
return {
|
|
1653
|
+
resultType: undefined,
|
|
1654
|
+
argTypes: []
|
|
1655
|
+
};
|
|
1656
|
+
}
|
|
1657
|
+
export const Type_FunctionType = {
|
|
1658
|
+
typeUrl: "/google.api.expr.v1alpha1.FunctionType",
|
|
1659
|
+
encode(message: Type_FunctionType, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1660
|
+
if (message.resultType !== undefined) {
|
|
1661
|
+
Type.encode(message.resultType, writer.uint32(10).fork()).ldelim();
|
|
1662
|
+
}
|
|
1663
|
+
for (const v of message.argTypes) {
|
|
1664
|
+
Type.encode(v!, writer.uint32(18).fork()).ldelim();
|
|
1665
|
+
}
|
|
1666
|
+
return writer;
|
|
1667
|
+
},
|
|
1668
|
+
decode(input: BinaryReader | Uint8Array, length?: number): Type_FunctionType {
|
|
1669
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1670
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1671
|
+
const message = createBaseType_FunctionType();
|
|
1672
|
+
while (reader.pos < end) {
|
|
1673
|
+
const tag = reader.uint32();
|
|
1674
|
+
switch (tag >>> 3) {
|
|
1675
|
+
case 1:
|
|
1676
|
+
message.resultType = Type.decode(reader, reader.uint32());
|
|
1677
|
+
break;
|
|
1678
|
+
case 2:
|
|
1679
|
+
message.argTypes.push(Type.decode(reader, reader.uint32()));
|
|
1680
|
+
break;
|
|
1681
|
+
default:
|
|
1682
|
+
reader.skipType(tag & 7);
|
|
1683
|
+
break;
|
|
1684
|
+
}
|
|
1685
|
+
}
|
|
1686
|
+
return message;
|
|
1687
|
+
},
|
|
1688
|
+
fromPartial(object: Partial<Type_FunctionType>): Type_FunctionType {
|
|
1689
|
+
const message = createBaseType_FunctionType();
|
|
1690
|
+
message.resultType = object.resultType !== undefined && object.resultType !== null ? Type.fromPartial(object.resultType) : undefined;
|
|
1691
|
+
message.argTypes = object.argTypes?.map(e => Type.fromPartial(e)) || [];
|
|
1692
|
+
return message;
|
|
1693
|
+
},
|
|
1694
|
+
fromAmino(object: Type_FunctionTypeAmino): Type_FunctionType {
|
|
1695
|
+
const message = createBaseType_FunctionType();
|
|
1696
|
+
if (object.result_type !== undefined && object.result_type !== null) {
|
|
1697
|
+
message.resultType = Type.fromAmino(object.result_type);
|
|
1698
|
+
}
|
|
1699
|
+
message.argTypes = object.arg_types?.map(e => Type.fromAmino(e)) || [];
|
|
1700
|
+
return message;
|
|
1701
|
+
},
|
|
1702
|
+
toAmino(message: Type_FunctionType): Type_FunctionTypeAmino {
|
|
1703
|
+
const obj: any = {};
|
|
1704
|
+
obj.result_type = message.resultType ? Type.toAmino(message.resultType) : undefined;
|
|
1705
|
+
if (message.argTypes) {
|
|
1706
|
+
obj.arg_types = message.argTypes.map(e => e ? Type.toAmino(e) : undefined);
|
|
1707
|
+
} else {
|
|
1708
|
+
obj.arg_types = message.argTypes;
|
|
1709
|
+
}
|
|
1710
|
+
return obj;
|
|
1711
|
+
},
|
|
1712
|
+
fromAminoMsg(object: Type_FunctionTypeAminoMsg): Type_FunctionType {
|
|
1713
|
+
return Type_FunctionType.fromAmino(object.value);
|
|
1714
|
+
},
|
|
1715
|
+
fromProtoMsg(message: Type_FunctionTypeProtoMsg): Type_FunctionType {
|
|
1716
|
+
return Type_FunctionType.decode(message.value);
|
|
1717
|
+
},
|
|
1718
|
+
toProto(message: Type_FunctionType): Uint8Array {
|
|
1719
|
+
return Type_FunctionType.encode(message).finish();
|
|
1720
|
+
},
|
|
1721
|
+
toProtoMsg(message: Type_FunctionType): Type_FunctionTypeProtoMsg {
|
|
1722
|
+
return {
|
|
1723
|
+
typeUrl: "/google.api.expr.v1alpha1.FunctionType",
|
|
1724
|
+
value: Type_FunctionType.encode(message).finish()
|
|
1725
|
+
};
|
|
1726
|
+
}
|
|
1727
|
+
};
|
|
1728
|
+
function createBaseType_AbstractType(): Type_AbstractType {
|
|
1729
|
+
return {
|
|
1730
|
+
name: "",
|
|
1731
|
+
parameterTypes: []
|
|
1732
|
+
};
|
|
1733
|
+
}
|
|
1734
|
+
export const Type_AbstractType = {
|
|
1735
|
+
typeUrl: "/google.api.expr.v1alpha1.AbstractType",
|
|
1736
|
+
encode(message: Type_AbstractType, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1737
|
+
if (message.name !== "") {
|
|
1738
|
+
writer.uint32(10).string(message.name);
|
|
1739
|
+
}
|
|
1740
|
+
for (const v of message.parameterTypes) {
|
|
1741
|
+
Type.encode(v!, writer.uint32(18).fork()).ldelim();
|
|
1742
|
+
}
|
|
1743
|
+
return writer;
|
|
1744
|
+
},
|
|
1745
|
+
decode(input: BinaryReader | Uint8Array, length?: number): Type_AbstractType {
|
|
1746
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1747
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1748
|
+
const message = createBaseType_AbstractType();
|
|
1749
|
+
while (reader.pos < end) {
|
|
1750
|
+
const tag = reader.uint32();
|
|
1751
|
+
switch (tag >>> 3) {
|
|
1752
|
+
case 1:
|
|
1753
|
+
message.name = reader.string();
|
|
1754
|
+
break;
|
|
1755
|
+
case 2:
|
|
1756
|
+
message.parameterTypes.push(Type.decode(reader, reader.uint32()));
|
|
1757
|
+
break;
|
|
1758
|
+
default:
|
|
1759
|
+
reader.skipType(tag & 7);
|
|
1760
|
+
break;
|
|
1761
|
+
}
|
|
1762
|
+
}
|
|
1763
|
+
return message;
|
|
1764
|
+
},
|
|
1765
|
+
fromPartial(object: Partial<Type_AbstractType>): Type_AbstractType {
|
|
1766
|
+
const message = createBaseType_AbstractType();
|
|
1767
|
+
message.name = object.name ?? "";
|
|
1768
|
+
message.parameterTypes = object.parameterTypes?.map(e => Type.fromPartial(e)) || [];
|
|
1769
|
+
return message;
|
|
1770
|
+
},
|
|
1771
|
+
fromAmino(object: Type_AbstractTypeAmino): Type_AbstractType {
|
|
1772
|
+
const message = createBaseType_AbstractType();
|
|
1773
|
+
if (object.name !== undefined && object.name !== null) {
|
|
1774
|
+
message.name = object.name;
|
|
1775
|
+
}
|
|
1776
|
+
message.parameterTypes = object.parameter_types?.map(e => Type.fromAmino(e)) || [];
|
|
1777
|
+
return message;
|
|
1778
|
+
},
|
|
1779
|
+
toAmino(message: Type_AbstractType): Type_AbstractTypeAmino {
|
|
1780
|
+
const obj: any = {};
|
|
1781
|
+
obj.name = message.name === "" ? undefined : message.name;
|
|
1782
|
+
if (message.parameterTypes) {
|
|
1783
|
+
obj.parameter_types = message.parameterTypes.map(e => e ? Type.toAmino(e) : undefined);
|
|
1784
|
+
} else {
|
|
1785
|
+
obj.parameter_types = message.parameterTypes;
|
|
1786
|
+
}
|
|
1787
|
+
return obj;
|
|
1788
|
+
},
|
|
1789
|
+
fromAminoMsg(object: Type_AbstractTypeAminoMsg): Type_AbstractType {
|
|
1790
|
+
return Type_AbstractType.fromAmino(object.value);
|
|
1791
|
+
},
|
|
1792
|
+
fromProtoMsg(message: Type_AbstractTypeProtoMsg): Type_AbstractType {
|
|
1793
|
+
return Type_AbstractType.decode(message.value);
|
|
1794
|
+
},
|
|
1795
|
+
toProto(message: Type_AbstractType): Uint8Array {
|
|
1796
|
+
return Type_AbstractType.encode(message).finish();
|
|
1797
|
+
},
|
|
1798
|
+
toProtoMsg(message: Type_AbstractType): Type_AbstractTypeProtoMsg {
|
|
1799
|
+
return {
|
|
1800
|
+
typeUrl: "/google.api.expr.v1alpha1.AbstractType",
|
|
1801
|
+
value: Type_AbstractType.encode(message).finish()
|
|
1802
|
+
};
|
|
1803
|
+
}
|
|
1804
|
+
};
|
|
1805
|
+
function createBaseDecl(): Decl {
|
|
1806
|
+
return {
|
|
1807
|
+
name: "",
|
|
1808
|
+
ident: undefined,
|
|
1809
|
+
function: undefined
|
|
1810
|
+
};
|
|
1811
|
+
}
|
|
1812
|
+
export const Decl = {
|
|
1813
|
+
typeUrl: "/google.api.expr.v1alpha1.Decl",
|
|
1814
|
+
encode(message: Decl, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1815
|
+
if (message.name !== "") {
|
|
1816
|
+
writer.uint32(10).string(message.name);
|
|
1817
|
+
}
|
|
1818
|
+
if (message.ident !== undefined) {
|
|
1819
|
+
Decl_IdentDecl.encode(message.ident, writer.uint32(18).fork()).ldelim();
|
|
1820
|
+
}
|
|
1821
|
+
if (message.function !== undefined) {
|
|
1822
|
+
Decl_FunctionDecl.encode(message.function, writer.uint32(26).fork()).ldelim();
|
|
1823
|
+
}
|
|
1824
|
+
return writer;
|
|
1825
|
+
},
|
|
1826
|
+
decode(input: BinaryReader | Uint8Array, length?: number): Decl {
|
|
1827
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1828
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1829
|
+
const message = createBaseDecl();
|
|
1830
|
+
while (reader.pos < end) {
|
|
1831
|
+
const tag = reader.uint32();
|
|
1832
|
+
switch (tag >>> 3) {
|
|
1833
|
+
case 1:
|
|
1834
|
+
message.name = reader.string();
|
|
1835
|
+
break;
|
|
1836
|
+
case 2:
|
|
1837
|
+
message.ident = Decl_IdentDecl.decode(reader, reader.uint32());
|
|
1838
|
+
break;
|
|
1839
|
+
case 3:
|
|
1840
|
+
message.function = Decl_FunctionDecl.decode(reader, reader.uint32());
|
|
1841
|
+
break;
|
|
1842
|
+
default:
|
|
1843
|
+
reader.skipType(tag & 7);
|
|
1844
|
+
break;
|
|
1845
|
+
}
|
|
1846
|
+
}
|
|
1847
|
+
return message;
|
|
1848
|
+
},
|
|
1849
|
+
fromPartial(object: Partial<Decl>): Decl {
|
|
1850
|
+
const message = createBaseDecl();
|
|
1851
|
+
message.name = object.name ?? "";
|
|
1852
|
+
message.ident = object.ident !== undefined && object.ident !== null ? Decl_IdentDecl.fromPartial(object.ident) : undefined;
|
|
1853
|
+
message.function = object.function !== undefined && object.function !== null ? Decl_FunctionDecl.fromPartial(object.function) : undefined;
|
|
1854
|
+
return message;
|
|
1855
|
+
},
|
|
1856
|
+
fromAmino(object: DeclAmino): Decl {
|
|
1857
|
+
const message = createBaseDecl();
|
|
1858
|
+
if (object.name !== undefined && object.name !== null) {
|
|
1859
|
+
message.name = object.name;
|
|
1860
|
+
}
|
|
1861
|
+
if (object.ident !== undefined && object.ident !== null) {
|
|
1862
|
+
message.ident = Decl_IdentDecl.fromAmino(object.ident);
|
|
1863
|
+
}
|
|
1864
|
+
if (object.function !== undefined && object.function !== null) {
|
|
1865
|
+
message.function = Decl_FunctionDecl.fromAmino(object.function);
|
|
1866
|
+
}
|
|
1867
|
+
return message;
|
|
1868
|
+
},
|
|
1869
|
+
toAmino(message: Decl): DeclAmino {
|
|
1870
|
+
const obj: any = {};
|
|
1871
|
+
obj.name = message.name === "" ? undefined : message.name;
|
|
1872
|
+
obj.ident = message.ident ? Decl_IdentDecl.toAmino(message.ident) : undefined;
|
|
1873
|
+
obj.function = message.function ? Decl_FunctionDecl.toAmino(message.function) : undefined;
|
|
1874
|
+
return obj;
|
|
1875
|
+
},
|
|
1876
|
+
fromAminoMsg(object: DeclAminoMsg): Decl {
|
|
1877
|
+
return Decl.fromAmino(object.value);
|
|
1878
|
+
},
|
|
1879
|
+
fromProtoMsg(message: DeclProtoMsg): Decl {
|
|
1880
|
+
return Decl.decode(message.value);
|
|
1881
|
+
},
|
|
1882
|
+
toProto(message: Decl): Uint8Array {
|
|
1883
|
+
return Decl.encode(message).finish();
|
|
1884
|
+
},
|
|
1885
|
+
toProtoMsg(message: Decl): DeclProtoMsg {
|
|
1886
|
+
return {
|
|
1887
|
+
typeUrl: "/google.api.expr.v1alpha1.Decl",
|
|
1888
|
+
value: Decl.encode(message).finish()
|
|
1889
|
+
};
|
|
1890
|
+
}
|
|
1891
|
+
};
|
|
1892
|
+
function createBaseDecl_IdentDecl(): Decl_IdentDecl {
|
|
1893
|
+
return {
|
|
1894
|
+
type: undefined,
|
|
1895
|
+
value: undefined,
|
|
1896
|
+
doc: ""
|
|
1897
|
+
};
|
|
1898
|
+
}
|
|
1899
|
+
export const Decl_IdentDecl = {
|
|
1900
|
+
typeUrl: "/google.api.expr.v1alpha1.IdentDecl",
|
|
1901
|
+
encode(message: Decl_IdentDecl, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1902
|
+
if (message.type !== undefined) {
|
|
1903
|
+
Type.encode(message.type, writer.uint32(10).fork()).ldelim();
|
|
1904
|
+
}
|
|
1905
|
+
if (message.value !== undefined) {
|
|
1906
|
+
Constant.encode(message.value, writer.uint32(18).fork()).ldelim();
|
|
1907
|
+
}
|
|
1908
|
+
if (message.doc !== "") {
|
|
1909
|
+
writer.uint32(26).string(message.doc);
|
|
1910
|
+
}
|
|
1911
|
+
return writer;
|
|
1912
|
+
},
|
|
1913
|
+
decode(input: BinaryReader | Uint8Array, length?: number): Decl_IdentDecl {
|
|
1914
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1915
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1916
|
+
const message = createBaseDecl_IdentDecl();
|
|
1917
|
+
while (reader.pos < end) {
|
|
1918
|
+
const tag = reader.uint32();
|
|
1919
|
+
switch (tag >>> 3) {
|
|
1920
|
+
case 1:
|
|
1921
|
+
message.type = Type.decode(reader, reader.uint32());
|
|
1922
|
+
break;
|
|
1923
|
+
case 2:
|
|
1924
|
+
message.value = Constant.decode(reader, reader.uint32());
|
|
1925
|
+
break;
|
|
1926
|
+
case 3:
|
|
1927
|
+
message.doc = reader.string();
|
|
1928
|
+
break;
|
|
1929
|
+
default:
|
|
1930
|
+
reader.skipType(tag & 7);
|
|
1931
|
+
break;
|
|
1932
|
+
}
|
|
1933
|
+
}
|
|
1934
|
+
return message;
|
|
1935
|
+
},
|
|
1936
|
+
fromPartial(object: Partial<Decl_IdentDecl>): Decl_IdentDecl {
|
|
1937
|
+
const message = createBaseDecl_IdentDecl();
|
|
1938
|
+
message.type = object.type !== undefined && object.type !== null ? Type.fromPartial(object.type) : undefined;
|
|
1939
|
+
message.value = object.value !== undefined && object.value !== null ? Constant.fromPartial(object.value) : undefined;
|
|
1940
|
+
message.doc = object.doc ?? "";
|
|
1941
|
+
return message;
|
|
1942
|
+
},
|
|
1943
|
+
fromAmino(object: Decl_IdentDeclAmino): Decl_IdentDecl {
|
|
1944
|
+
const message = createBaseDecl_IdentDecl();
|
|
1945
|
+
if (object.type !== undefined && object.type !== null) {
|
|
1946
|
+
message.type = Type.fromAmino(object.type);
|
|
1947
|
+
}
|
|
1948
|
+
if (object.value !== undefined && object.value !== null) {
|
|
1949
|
+
message.value = Constant.fromAmino(object.value);
|
|
1950
|
+
}
|
|
1951
|
+
if (object.doc !== undefined && object.doc !== null) {
|
|
1952
|
+
message.doc = object.doc;
|
|
1953
|
+
}
|
|
1954
|
+
return message;
|
|
1955
|
+
},
|
|
1956
|
+
toAmino(message: Decl_IdentDecl): Decl_IdentDeclAmino {
|
|
1957
|
+
const obj: any = {};
|
|
1958
|
+
obj.type = message.type ? Type.toAmino(message.type) : undefined;
|
|
1959
|
+
obj.value = message.value ? Constant.toAmino(message.value) : undefined;
|
|
1960
|
+
obj.doc = message.doc === "" ? undefined : message.doc;
|
|
1961
|
+
return obj;
|
|
1962
|
+
},
|
|
1963
|
+
fromAminoMsg(object: Decl_IdentDeclAminoMsg): Decl_IdentDecl {
|
|
1964
|
+
return Decl_IdentDecl.fromAmino(object.value);
|
|
1965
|
+
},
|
|
1966
|
+
fromProtoMsg(message: Decl_IdentDeclProtoMsg): Decl_IdentDecl {
|
|
1967
|
+
return Decl_IdentDecl.decode(message.value);
|
|
1968
|
+
},
|
|
1969
|
+
toProto(message: Decl_IdentDecl): Uint8Array {
|
|
1970
|
+
return Decl_IdentDecl.encode(message).finish();
|
|
1971
|
+
},
|
|
1972
|
+
toProtoMsg(message: Decl_IdentDecl): Decl_IdentDeclProtoMsg {
|
|
1973
|
+
return {
|
|
1974
|
+
typeUrl: "/google.api.expr.v1alpha1.IdentDecl",
|
|
1975
|
+
value: Decl_IdentDecl.encode(message).finish()
|
|
1976
|
+
};
|
|
1977
|
+
}
|
|
1978
|
+
};
|
|
1979
|
+
function createBaseDecl_FunctionDecl(): Decl_FunctionDecl {
|
|
1980
|
+
return {
|
|
1981
|
+
overloads: []
|
|
1982
|
+
};
|
|
1983
|
+
}
|
|
1984
|
+
export const Decl_FunctionDecl = {
|
|
1985
|
+
typeUrl: "/google.api.expr.v1alpha1.FunctionDecl",
|
|
1986
|
+
encode(message: Decl_FunctionDecl, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1987
|
+
for (const v of message.overloads) {
|
|
1988
|
+
Decl_FunctionDecl_Overload.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
1989
|
+
}
|
|
1990
|
+
return writer;
|
|
1991
|
+
},
|
|
1992
|
+
decode(input: BinaryReader | Uint8Array, length?: number): Decl_FunctionDecl {
|
|
1993
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1994
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1995
|
+
const message = createBaseDecl_FunctionDecl();
|
|
1996
|
+
while (reader.pos < end) {
|
|
1997
|
+
const tag = reader.uint32();
|
|
1998
|
+
switch (tag >>> 3) {
|
|
1999
|
+
case 1:
|
|
2000
|
+
message.overloads.push(Decl_FunctionDecl_Overload.decode(reader, reader.uint32()));
|
|
2001
|
+
break;
|
|
2002
|
+
default:
|
|
2003
|
+
reader.skipType(tag & 7);
|
|
2004
|
+
break;
|
|
2005
|
+
}
|
|
2006
|
+
}
|
|
2007
|
+
return message;
|
|
2008
|
+
},
|
|
2009
|
+
fromPartial(object: Partial<Decl_FunctionDecl>): Decl_FunctionDecl {
|
|
2010
|
+
const message = createBaseDecl_FunctionDecl();
|
|
2011
|
+
message.overloads = object.overloads?.map(e => Decl_FunctionDecl_Overload.fromPartial(e)) || [];
|
|
2012
|
+
return message;
|
|
2013
|
+
},
|
|
2014
|
+
fromAmino(object: Decl_FunctionDeclAmino): Decl_FunctionDecl {
|
|
2015
|
+
const message = createBaseDecl_FunctionDecl();
|
|
2016
|
+
message.overloads = object.overloads?.map(e => Decl_FunctionDecl_Overload.fromAmino(e)) || [];
|
|
2017
|
+
return message;
|
|
2018
|
+
},
|
|
2019
|
+
toAmino(message: Decl_FunctionDecl): Decl_FunctionDeclAmino {
|
|
2020
|
+
const obj: any = {};
|
|
2021
|
+
if (message.overloads) {
|
|
2022
|
+
obj.overloads = message.overloads.map(e => e ? Decl_FunctionDecl_Overload.toAmino(e) : undefined);
|
|
2023
|
+
} else {
|
|
2024
|
+
obj.overloads = message.overloads;
|
|
2025
|
+
}
|
|
2026
|
+
return obj;
|
|
2027
|
+
},
|
|
2028
|
+
fromAminoMsg(object: Decl_FunctionDeclAminoMsg): Decl_FunctionDecl {
|
|
2029
|
+
return Decl_FunctionDecl.fromAmino(object.value);
|
|
2030
|
+
},
|
|
2031
|
+
fromProtoMsg(message: Decl_FunctionDeclProtoMsg): Decl_FunctionDecl {
|
|
2032
|
+
return Decl_FunctionDecl.decode(message.value);
|
|
2033
|
+
},
|
|
2034
|
+
toProto(message: Decl_FunctionDecl): Uint8Array {
|
|
2035
|
+
return Decl_FunctionDecl.encode(message).finish();
|
|
2036
|
+
},
|
|
2037
|
+
toProtoMsg(message: Decl_FunctionDecl): Decl_FunctionDeclProtoMsg {
|
|
2038
|
+
return {
|
|
2039
|
+
typeUrl: "/google.api.expr.v1alpha1.FunctionDecl",
|
|
2040
|
+
value: Decl_FunctionDecl.encode(message).finish()
|
|
2041
|
+
};
|
|
2042
|
+
}
|
|
2043
|
+
};
|
|
2044
|
+
function createBaseDecl_FunctionDecl_Overload(): Decl_FunctionDecl_Overload {
|
|
2045
|
+
return {
|
|
2046
|
+
overloadId: "",
|
|
2047
|
+
params: [],
|
|
2048
|
+
typeParams: [],
|
|
2049
|
+
resultType: undefined,
|
|
2050
|
+
isInstanceFunction: false,
|
|
2051
|
+
doc: ""
|
|
2052
|
+
};
|
|
2053
|
+
}
|
|
2054
|
+
export const Decl_FunctionDecl_Overload = {
|
|
2055
|
+
typeUrl: "/google.api.expr.v1alpha1.Overload",
|
|
2056
|
+
encode(message: Decl_FunctionDecl_Overload, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
2057
|
+
if (message.overloadId !== "") {
|
|
2058
|
+
writer.uint32(10).string(message.overloadId);
|
|
2059
|
+
}
|
|
2060
|
+
for (const v of message.params) {
|
|
2061
|
+
Type.encode(v!, writer.uint32(18).fork()).ldelim();
|
|
2062
|
+
}
|
|
2063
|
+
for (const v of message.typeParams) {
|
|
2064
|
+
writer.uint32(26).string(v!);
|
|
2065
|
+
}
|
|
2066
|
+
if (message.resultType !== undefined) {
|
|
2067
|
+
Type.encode(message.resultType, writer.uint32(34).fork()).ldelim();
|
|
2068
|
+
}
|
|
2069
|
+
if (message.isInstanceFunction === true) {
|
|
2070
|
+
writer.uint32(40).bool(message.isInstanceFunction);
|
|
2071
|
+
}
|
|
2072
|
+
if (message.doc !== "") {
|
|
2073
|
+
writer.uint32(50).string(message.doc);
|
|
2074
|
+
}
|
|
2075
|
+
return writer;
|
|
2076
|
+
},
|
|
2077
|
+
decode(input: BinaryReader | Uint8Array, length?: number): Decl_FunctionDecl_Overload {
|
|
2078
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2079
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2080
|
+
const message = createBaseDecl_FunctionDecl_Overload();
|
|
2081
|
+
while (reader.pos < end) {
|
|
2082
|
+
const tag = reader.uint32();
|
|
2083
|
+
switch (tag >>> 3) {
|
|
2084
|
+
case 1:
|
|
2085
|
+
message.overloadId = reader.string();
|
|
2086
|
+
break;
|
|
2087
|
+
case 2:
|
|
2088
|
+
message.params.push(Type.decode(reader, reader.uint32()));
|
|
2089
|
+
break;
|
|
2090
|
+
case 3:
|
|
2091
|
+
message.typeParams.push(reader.string());
|
|
2092
|
+
break;
|
|
2093
|
+
case 4:
|
|
2094
|
+
message.resultType = Type.decode(reader, reader.uint32());
|
|
2095
|
+
break;
|
|
2096
|
+
case 5:
|
|
2097
|
+
message.isInstanceFunction = reader.bool();
|
|
2098
|
+
break;
|
|
2099
|
+
case 6:
|
|
2100
|
+
message.doc = reader.string();
|
|
2101
|
+
break;
|
|
2102
|
+
default:
|
|
2103
|
+
reader.skipType(tag & 7);
|
|
2104
|
+
break;
|
|
2105
|
+
}
|
|
2106
|
+
}
|
|
2107
|
+
return message;
|
|
2108
|
+
},
|
|
2109
|
+
fromPartial(object: Partial<Decl_FunctionDecl_Overload>): Decl_FunctionDecl_Overload {
|
|
2110
|
+
const message = createBaseDecl_FunctionDecl_Overload();
|
|
2111
|
+
message.overloadId = object.overloadId ?? "";
|
|
2112
|
+
message.params = object.params?.map(e => Type.fromPartial(e)) || [];
|
|
2113
|
+
message.typeParams = object.typeParams?.map(e => e) || [];
|
|
2114
|
+
message.resultType = object.resultType !== undefined && object.resultType !== null ? Type.fromPartial(object.resultType) : undefined;
|
|
2115
|
+
message.isInstanceFunction = object.isInstanceFunction ?? false;
|
|
2116
|
+
message.doc = object.doc ?? "";
|
|
2117
|
+
return message;
|
|
2118
|
+
},
|
|
2119
|
+
fromAmino(object: Decl_FunctionDecl_OverloadAmino): Decl_FunctionDecl_Overload {
|
|
2120
|
+
const message = createBaseDecl_FunctionDecl_Overload();
|
|
2121
|
+
if (object.overload_id !== undefined && object.overload_id !== null) {
|
|
2122
|
+
message.overloadId = object.overload_id;
|
|
2123
|
+
}
|
|
2124
|
+
message.params = object.params?.map(e => Type.fromAmino(e)) || [];
|
|
2125
|
+
message.typeParams = object.type_params?.map(e => e) || [];
|
|
2126
|
+
if (object.result_type !== undefined && object.result_type !== null) {
|
|
2127
|
+
message.resultType = Type.fromAmino(object.result_type);
|
|
2128
|
+
}
|
|
2129
|
+
if (object.is_instance_function !== undefined && object.is_instance_function !== null) {
|
|
2130
|
+
message.isInstanceFunction = object.is_instance_function;
|
|
2131
|
+
}
|
|
2132
|
+
if (object.doc !== undefined && object.doc !== null) {
|
|
2133
|
+
message.doc = object.doc;
|
|
2134
|
+
}
|
|
2135
|
+
return message;
|
|
2136
|
+
},
|
|
2137
|
+
toAmino(message: Decl_FunctionDecl_Overload): Decl_FunctionDecl_OverloadAmino {
|
|
2138
|
+
const obj: any = {};
|
|
2139
|
+
obj.overload_id = message.overloadId === "" ? undefined : message.overloadId;
|
|
2140
|
+
if (message.params) {
|
|
2141
|
+
obj.params = message.params.map(e => e ? Type.toAmino(e) : undefined);
|
|
2142
|
+
} else {
|
|
2143
|
+
obj.params = message.params;
|
|
2144
|
+
}
|
|
2145
|
+
if (message.typeParams) {
|
|
2146
|
+
obj.type_params = message.typeParams.map(e => e);
|
|
2147
|
+
} else {
|
|
2148
|
+
obj.type_params = message.typeParams;
|
|
2149
|
+
}
|
|
2150
|
+
obj.result_type = message.resultType ? Type.toAmino(message.resultType) : undefined;
|
|
2151
|
+
obj.is_instance_function = message.isInstanceFunction === false ? undefined : message.isInstanceFunction;
|
|
2152
|
+
obj.doc = message.doc === "" ? undefined : message.doc;
|
|
2153
|
+
return obj;
|
|
2154
|
+
},
|
|
2155
|
+
fromAminoMsg(object: Decl_FunctionDecl_OverloadAminoMsg): Decl_FunctionDecl_Overload {
|
|
2156
|
+
return Decl_FunctionDecl_Overload.fromAmino(object.value);
|
|
2157
|
+
},
|
|
2158
|
+
fromProtoMsg(message: Decl_FunctionDecl_OverloadProtoMsg): Decl_FunctionDecl_Overload {
|
|
2159
|
+
return Decl_FunctionDecl_Overload.decode(message.value);
|
|
2160
|
+
},
|
|
2161
|
+
toProto(message: Decl_FunctionDecl_Overload): Uint8Array {
|
|
2162
|
+
return Decl_FunctionDecl_Overload.encode(message).finish();
|
|
2163
|
+
},
|
|
2164
|
+
toProtoMsg(message: Decl_FunctionDecl_Overload): Decl_FunctionDecl_OverloadProtoMsg {
|
|
2165
|
+
return {
|
|
2166
|
+
typeUrl: "/google.api.expr.v1alpha1.Overload",
|
|
2167
|
+
value: Decl_FunctionDecl_Overload.encode(message).finish()
|
|
2168
|
+
};
|
|
2169
|
+
}
|
|
2170
|
+
};
|
|
2171
|
+
function createBaseReference(): Reference {
|
|
2172
|
+
return {
|
|
2173
|
+
name: "",
|
|
2174
|
+
overloadId: [],
|
|
2175
|
+
value: undefined
|
|
2176
|
+
};
|
|
2177
|
+
}
|
|
2178
|
+
export const Reference = {
|
|
2179
|
+
typeUrl: "/google.api.expr.v1alpha1.Reference",
|
|
2180
|
+
encode(message: Reference, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
2181
|
+
if (message.name !== "") {
|
|
2182
|
+
writer.uint32(10).string(message.name);
|
|
2183
|
+
}
|
|
2184
|
+
for (const v of message.overloadId) {
|
|
2185
|
+
writer.uint32(26).string(v!);
|
|
2186
|
+
}
|
|
2187
|
+
if (message.value !== undefined) {
|
|
2188
|
+
Constant.encode(message.value, writer.uint32(34).fork()).ldelim();
|
|
2189
|
+
}
|
|
2190
|
+
return writer;
|
|
2191
|
+
},
|
|
2192
|
+
decode(input: BinaryReader | Uint8Array, length?: number): Reference {
|
|
2193
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2194
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2195
|
+
const message = createBaseReference();
|
|
2196
|
+
while (reader.pos < end) {
|
|
2197
|
+
const tag = reader.uint32();
|
|
2198
|
+
switch (tag >>> 3) {
|
|
2199
|
+
case 1:
|
|
2200
|
+
message.name = reader.string();
|
|
2201
|
+
break;
|
|
2202
|
+
case 3:
|
|
2203
|
+
message.overloadId.push(reader.string());
|
|
2204
|
+
break;
|
|
2205
|
+
case 4:
|
|
2206
|
+
message.value = Constant.decode(reader, reader.uint32());
|
|
2207
|
+
break;
|
|
2208
|
+
default:
|
|
2209
|
+
reader.skipType(tag & 7);
|
|
2210
|
+
break;
|
|
2211
|
+
}
|
|
2212
|
+
}
|
|
2213
|
+
return message;
|
|
2214
|
+
},
|
|
2215
|
+
fromPartial(object: Partial<Reference>): Reference {
|
|
2216
|
+
const message = createBaseReference();
|
|
2217
|
+
message.name = object.name ?? "";
|
|
2218
|
+
message.overloadId = object.overloadId?.map(e => e) || [];
|
|
2219
|
+
message.value = object.value !== undefined && object.value !== null ? Constant.fromPartial(object.value) : undefined;
|
|
2220
|
+
return message;
|
|
2221
|
+
},
|
|
2222
|
+
fromAmino(object: ReferenceAmino): Reference {
|
|
2223
|
+
const message = createBaseReference();
|
|
2224
|
+
if (object.name !== undefined && object.name !== null) {
|
|
2225
|
+
message.name = object.name;
|
|
2226
|
+
}
|
|
2227
|
+
message.overloadId = object.overload_id?.map(e => e) || [];
|
|
2228
|
+
if (object.value !== undefined && object.value !== null) {
|
|
2229
|
+
message.value = Constant.fromAmino(object.value);
|
|
2230
|
+
}
|
|
2231
|
+
return message;
|
|
2232
|
+
},
|
|
2233
|
+
toAmino(message: Reference): ReferenceAmino {
|
|
2234
|
+
const obj: any = {};
|
|
2235
|
+
obj.name = message.name === "" ? undefined : message.name;
|
|
2236
|
+
if (message.overloadId) {
|
|
2237
|
+
obj.overload_id = message.overloadId.map(e => e);
|
|
2238
|
+
} else {
|
|
2239
|
+
obj.overload_id = message.overloadId;
|
|
2240
|
+
}
|
|
2241
|
+
obj.value = message.value ? Constant.toAmino(message.value) : undefined;
|
|
2242
|
+
return obj;
|
|
2243
|
+
},
|
|
2244
|
+
fromAminoMsg(object: ReferenceAminoMsg): Reference {
|
|
2245
|
+
return Reference.fromAmino(object.value);
|
|
2246
|
+
},
|
|
2247
|
+
fromProtoMsg(message: ReferenceProtoMsg): Reference {
|
|
2248
|
+
return Reference.decode(message.value);
|
|
2249
|
+
},
|
|
2250
|
+
toProto(message: Reference): Uint8Array {
|
|
2251
|
+
return Reference.encode(message).finish();
|
|
2252
|
+
},
|
|
2253
|
+
toProtoMsg(message: Reference): ReferenceProtoMsg {
|
|
2254
|
+
return {
|
|
2255
|
+
typeUrl: "/google.api.expr.v1alpha1.Reference",
|
|
2256
|
+
value: Reference.encode(message).finish()
|
|
2257
|
+
};
|
|
2258
|
+
}
|
|
2259
|
+
};
|