@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,1040 @@
|
|
|
1
|
+
//@ts-nocheck
|
|
2
|
+
import { BinaryReader, BinaryWriter } from "../../binary";
|
|
3
|
+
/**
|
|
4
|
+
* Quota configuration helps to achieve fairness and budgeting in service
|
|
5
|
+
* usage.
|
|
6
|
+
*
|
|
7
|
+
* The metric based quota configuration works this way:
|
|
8
|
+
* - The service configuration defines a set of metrics.
|
|
9
|
+
* - For API calls, the quota.metric_rules maps methods to metrics with
|
|
10
|
+
* corresponding costs.
|
|
11
|
+
* - The quota.limits defines limits on the metrics, which will be used for
|
|
12
|
+
* quota checks at runtime.
|
|
13
|
+
*
|
|
14
|
+
* An example quota configuration in yaml format:
|
|
15
|
+
*
|
|
16
|
+
* quota:
|
|
17
|
+
* limits:
|
|
18
|
+
*
|
|
19
|
+
* - name: apiWriteQpsPerProject
|
|
20
|
+
* metric: library.googleapis.com/write_calls
|
|
21
|
+
* unit: "1/min/{project}" # rate limit for consumer projects
|
|
22
|
+
* values:
|
|
23
|
+
* STANDARD: 10000
|
|
24
|
+
*
|
|
25
|
+
*
|
|
26
|
+
* (The metric rules bind all methods to the read_calls metric,
|
|
27
|
+
* except for the UpdateBook and DeleteBook methods. These two methods
|
|
28
|
+
* are mapped to the write_calls metric, with the UpdateBook method
|
|
29
|
+
* consuming at twice rate as the DeleteBook method.)
|
|
30
|
+
* metric_rules:
|
|
31
|
+
* - selector: "*"
|
|
32
|
+
* metric_costs:
|
|
33
|
+
* library.googleapis.com/read_calls: 1
|
|
34
|
+
* - selector: google.example.library.v1.LibraryService.UpdateBook
|
|
35
|
+
* metric_costs:
|
|
36
|
+
* library.googleapis.com/write_calls: 2
|
|
37
|
+
* - selector: google.example.library.v1.LibraryService.DeleteBook
|
|
38
|
+
* metric_costs:
|
|
39
|
+
* library.googleapis.com/write_calls: 1
|
|
40
|
+
*
|
|
41
|
+
* Corresponding Metric definition:
|
|
42
|
+
*
|
|
43
|
+
* metrics:
|
|
44
|
+
* - name: library.googleapis.com/read_calls
|
|
45
|
+
* display_name: Read requests
|
|
46
|
+
* metric_kind: DELTA
|
|
47
|
+
* value_type: INT64
|
|
48
|
+
*
|
|
49
|
+
* - name: library.googleapis.com/write_calls
|
|
50
|
+
* display_name: Write requests
|
|
51
|
+
* metric_kind: DELTA
|
|
52
|
+
* value_type: INT64
|
|
53
|
+
*/
|
|
54
|
+
export interface Quota {
|
|
55
|
+
/** List of QuotaLimit definitions for the service. */
|
|
56
|
+
limits: QuotaLimit[];
|
|
57
|
+
/**
|
|
58
|
+
* List of MetricRule definitions, each one mapping a selected method to one
|
|
59
|
+
* or more metrics.
|
|
60
|
+
*/
|
|
61
|
+
metricRules: MetricRule[];
|
|
62
|
+
}
|
|
63
|
+
export interface QuotaProtoMsg {
|
|
64
|
+
typeUrl: "/google.api.Quota";
|
|
65
|
+
value: Uint8Array;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Quota configuration helps to achieve fairness and budgeting in service
|
|
69
|
+
* usage.
|
|
70
|
+
*
|
|
71
|
+
* The metric based quota configuration works this way:
|
|
72
|
+
* - The service configuration defines a set of metrics.
|
|
73
|
+
* - For API calls, the quota.metric_rules maps methods to metrics with
|
|
74
|
+
* corresponding costs.
|
|
75
|
+
* - The quota.limits defines limits on the metrics, which will be used for
|
|
76
|
+
* quota checks at runtime.
|
|
77
|
+
*
|
|
78
|
+
* An example quota configuration in yaml format:
|
|
79
|
+
*
|
|
80
|
+
* quota:
|
|
81
|
+
* limits:
|
|
82
|
+
*
|
|
83
|
+
* - name: apiWriteQpsPerProject
|
|
84
|
+
* metric: library.googleapis.com/write_calls
|
|
85
|
+
* unit: "1/min/{project}" # rate limit for consumer projects
|
|
86
|
+
* values:
|
|
87
|
+
* STANDARD: 10000
|
|
88
|
+
*
|
|
89
|
+
*
|
|
90
|
+
* (The metric rules bind all methods to the read_calls metric,
|
|
91
|
+
* except for the UpdateBook and DeleteBook methods. These two methods
|
|
92
|
+
* are mapped to the write_calls metric, with the UpdateBook method
|
|
93
|
+
* consuming at twice rate as the DeleteBook method.)
|
|
94
|
+
* metric_rules:
|
|
95
|
+
* - selector: "*"
|
|
96
|
+
* metric_costs:
|
|
97
|
+
* library.googleapis.com/read_calls: 1
|
|
98
|
+
* - selector: google.example.library.v1.LibraryService.UpdateBook
|
|
99
|
+
* metric_costs:
|
|
100
|
+
* library.googleapis.com/write_calls: 2
|
|
101
|
+
* - selector: google.example.library.v1.LibraryService.DeleteBook
|
|
102
|
+
* metric_costs:
|
|
103
|
+
* library.googleapis.com/write_calls: 1
|
|
104
|
+
*
|
|
105
|
+
* Corresponding Metric definition:
|
|
106
|
+
*
|
|
107
|
+
* metrics:
|
|
108
|
+
* - name: library.googleapis.com/read_calls
|
|
109
|
+
* display_name: Read requests
|
|
110
|
+
* metric_kind: DELTA
|
|
111
|
+
* value_type: INT64
|
|
112
|
+
*
|
|
113
|
+
* - name: library.googleapis.com/write_calls
|
|
114
|
+
* display_name: Write requests
|
|
115
|
+
* metric_kind: DELTA
|
|
116
|
+
* value_type: INT64
|
|
117
|
+
* @name QuotaAmino
|
|
118
|
+
* @package google.api
|
|
119
|
+
* @see proto type: google.api.Quota
|
|
120
|
+
*/
|
|
121
|
+
export interface QuotaAmino {
|
|
122
|
+
/**
|
|
123
|
+
* List of QuotaLimit definitions for the service.
|
|
124
|
+
*/
|
|
125
|
+
limits?: QuotaLimitAmino[];
|
|
126
|
+
/**
|
|
127
|
+
* List of MetricRule definitions, each one mapping a selected method to one
|
|
128
|
+
* or more metrics.
|
|
129
|
+
*/
|
|
130
|
+
metric_rules?: MetricRuleAmino[];
|
|
131
|
+
}
|
|
132
|
+
export interface QuotaAminoMsg {
|
|
133
|
+
type: "/google.api.Quota";
|
|
134
|
+
value: QuotaAmino;
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* Quota configuration helps to achieve fairness and budgeting in service
|
|
138
|
+
* usage.
|
|
139
|
+
*
|
|
140
|
+
* The metric based quota configuration works this way:
|
|
141
|
+
* - The service configuration defines a set of metrics.
|
|
142
|
+
* - For API calls, the quota.metric_rules maps methods to metrics with
|
|
143
|
+
* corresponding costs.
|
|
144
|
+
* - The quota.limits defines limits on the metrics, which will be used for
|
|
145
|
+
* quota checks at runtime.
|
|
146
|
+
*
|
|
147
|
+
* An example quota configuration in yaml format:
|
|
148
|
+
*
|
|
149
|
+
* quota:
|
|
150
|
+
* limits:
|
|
151
|
+
*
|
|
152
|
+
* - name: apiWriteQpsPerProject
|
|
153
|
+
* metric: library.googleapis.com/write_calls
|
|
154
|
+
* unit: "1/min/{project}" # rate limit for consumer projects
|
|
155
|
+
* values:
|
|
156
|
+
* STANDARD: 10000
|
|
157
|
+
*
|
|
158
|
+
*
|
|
159
|
+
* (The metric rules bind all methods to the read_calls metric,
|
|
160
|
+
* except for the UpdateBook and DeleteBook methods. These two methods
|
|
161
|
+
* are mapped to the write_calls metric, with the UpdateBook method
|
|
162
|
+
* consuming at twice rate as the DeleteBook method.)
|
|
163
|
+
* metric_rules:
|
|
164
|
+
* - selector: "*"
|
|
165
|
+
* metric_costs:
|
|
166
|
+
* library.googleapis.com/read_calls: 1
|
|
167
|
+
* - selector: google.example.library.v1.LibraryService.UpdateBook
|
|
168
|
+
* metric_costs:
|
|
169
|
+
* library.googleapis.com/write_calls: 2
|
|
170
|
+
* - selector: google.example.library.v1.LibraryService.DeleteBook
|
|
171
|
+
* metric_costs:
|
|
172
|
+
* library.googleapis.com/write_calls: 1
|
|
173
|
+
*
|
|
174
|
+
* Corresponding Metric definition:
|
|
175
|
+
*
|
|
176
|
+
* metrics:
|
|
177
|
+
* - name: library.googleapis.com/read_calls
|
|
178
|
+
* display_name: Read requests
|
|
179
|
+
* metric_kind: DELTA
|
|
180
|
+
* value_type: INT64
|
|
181
|
+
*
|
|
182
|
+
* - name: library.googleapis.com/write_calls
|
|
183
|
+
* display_name: Write requests
|
|
184
|
+
* metric_kind: DELTA
|
|
185
|
+
* value_type: INT64
|
|
186
|
+
*/
|
|
187
|
+
export interface QuotaSDKType {
|
|
188
|
+
limits: QuotaLimitSDKType[];
|
|
189
|
+
metric_rules: MetricRuleSDKType[];
|
|
190
|
+
}
|
|
191
|
+
export interface MetricRule_MetricCostsEntry {
|
|
192
|
+
key: string;
|
|
193
|
+
value: bigint;
|
|
194
|
+
}
|
|
195
|
+
export interface MetricRule_MetricCostsEntryProtoMsg {
|
|
196
|
+
typeUrl: string;
|
|
197
|
+
value: Uint8Array;
|
|
198
|
+
}
|
|
199
|
+
/**
|
|
200
|
+
* @name MetricRule_MetricCostsEntryAmino
|
|
201
|
+
* @package google.api
|
|
202
|
+
* @see proto type: google.api.MetricRule_MetricCostsEntry
|
|
203
|
+
*/
|
|
204
|
+
export interface MetricRule_MetricCostsEntryAmino {
|
|
205
|
+
key?: string;
|
|
206
|
+
value?: string;
|
|
207
|
+
}
|
|
208
|
+
export interface MetricRule_MetricCostsEntryAminoMsg {
|
|
209
|
+
type: string;
|
|
210
|
+
value: MetricRule_MetricCostsEntryAmino;
|
|
211
|
+
}
|
|
212
|
+
export interface MetricRule_MetricCostsEntrySDKType {
|
|
213
|
+
key: string;
|
|
214
|
+
value: bigint;
|
|
215
|
+
}
|
|
216
|
+
/**
|
|
217
|
+
* Bind API methods to metrics. Binding a method to a metric causes that
|
|
218
|
+
* metric's configured quota behaviors to apply to the method call.
|
|
219
|
+
*/
|
|
220
|
+
export interface MetricRule {
|
|
221
|
+
/**
|
|
222
|
+
* Selects the methods to which this rule applies.
|
|
223
|
+
*
|
|
224
|
+
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
|
|
225
|
+
* details.
|
|
226
|
+
*/
|
|
227
|
+
selector: string;
|
|
228
|
+
/**
|
|
229
|
+
* Metrics to update when the selected methods are called, and the associated
|
|
230
|
+
* cost applied to each metric.
|
|
231
|
+
*
|
|
232
|
+
* The key of the map is the metric name, and the values are the amount
|
|
233
|
+
* increased for the metric against which the quota limits are defined.
|
|
234
|
+
* The value must not be negative.
|
|
235
|
+
*/
|
|
236
|
+
metricCosts: {
|
|
237
|
+
[key: string]: bigint;
|
|
238
|
+
};
|
|
239
|
+
}
|
|
240
|
+
export interface MetricRuleProtoMsg {
|
|
241
|
+
typeUrl: "/google.api.MetricRule";
|
|
242
|
+
value: Uint8Array;
|
|
243
|
+
}
|
|
244
|
+
/**
|
|
245
|
+
* Bind API methods to metrics. Binding a method to a metric causes that
|
|
246
|
+
* metric's configured quota behaviors to apply to the method call.
|
|
247
|
+
* @name MetricRuleAmino
|
|
248
|
+
* @package google.api
|
|
249
|
+
* @see proto type: google.api.MetricRule
|
|
250
|
+
*/
|
|
251
|
+
export interface MetricRuleAmino {
|
|
252
|
+
/**
|
|
253
|
+
* Selects the methods to which this rule applies.
|
|
254
|
+
*
|
|
255
|
+
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
|
|
256
|
+
* details.
|
|
257
|
+
*/
|
|
258
|
+
selector?: string;
|
|
259
|
+
/**
|
|
260
|
+
* Metrics to update when the selected methods are called, and the associated
|
|
261
|
+
* cost applied to each metric.
|
|
262
|
+
*
|
|
263
|
+
* The key of the map is the metric name, and the values are the amount
|
|
264
|
+
* increased for the metric against which the quota limits are defined.
|
|
265
|
+
* The value must not be negative.
|
|
266
|
+
*/
|
|
267
|
+
metric_costs?: {
|
|
268
|
+
[key: string]: string;
|
|
269
|
+
};
|
|
270
|
+
}
|
|
271
|
+
export interface MetricRuleAminoMsg {
|
|
272
|
+
type: "/google.api.MetricRule";
|
|
273
|
+
value: MetricRuleAmino;
|
|
274
|
+
}
|
|
275
|
+
/**
|
|
276
|
+
* Bind API methods to metrics. Binding a method to a metric causes that
|
|
277
|
+
* metric's configured quota behaviors to apply to the method call.
|
|
278
|
+
*/
|
|
279
|
+
export interface MetricRuleSDKType {
|
|
280
|
+
selector: string;
|
|
281
|
+
metric_costs: {
|
|
282
|
+
[key: string]: bigint;
|
|
283
|
+
};
|
|
284
|
+
}
|
|
285
|
+
export interface QuotaLimit_ValuesEntry {
|
|
286
|
+
key: string;
|
|
287
|
+
value: bigint;
|
|
288
|
+
}
|
|
289
|
+
export interface QuotaLimit_ValuesEntryProtoMsg {
|
|
290
|
+
typeUrl: string;
|
|
291
|
+
value: Uint8Array;
|
|
292
|
+
}
|
|
293
|
+
/**
|
|
294
|
+
* @name QuotaLimit_ValuesEntryAmino
|
|
295
|
+
* @package google.api
|
|
296
|
+
* @see proto type: google.api.QuotaLimit_ValuesEntry
|
|
297
|
+
*/
|
|
298
|
+
export interface QuotaLimit_ValuesEntryAmino {
|
|
299
|
+
key?: string;
|
|
300
|
+
value?: string;
|
|
301
|
+
}
|
|
302
|
+
export interface QuotaLimit_ValuesEntryAminoMsg {
|
|
303
|
+
type: string;
|
|
304
|
+
value: QuotaLimit_ValuesEntryAmino;
|
|
305
|
+
}
|
|
306
|
+
export interface QuotaLimit_ValuesEntrySDKType {
|
|
307
|
+
key: string;
|
|
308
|
+
value: bigint;
|
|
309
|
+
}
|
|
310
|
+
/**
|
|
311
|
+
* `QuotaLimit` defines a specific limit that applies over a specified duration
|
|
312
|
+
* for a limit type. There can be at most one limit for a duration and limit
|
|
313
|
+
* type combination defined within a `QuotaGroup`.
|
|
314
|
+
*/
|
|
315
|
+
export interface QuotaLimit {
|
|
316
|
+
/**
|
|
317
|
+
* Name of the quota limit.
|
|
318
|
+
*
|
|
319
|
+
* The name must be provided, and it must be unique within the service. The
|
|
320
|
+
* name can only include alphanumeric characters as well as '-'.
|
|
321
|
+
*
|
|
322
|
+
* The maximum length of the limit name is 64 characters.
|
|
323
|
+
*/
|
|
324
|
+
name: string;
|
|
325
|
+
/**
|
|
326
|
+
* Optional. User-visible, extended description for this quota limit.
|
|
327
|
+
* Should be used only when more context is needed to understand this limit
|
|
328
|
+
* than provided by the limit's display name (see: `display_name`).
|
|
329
|
+
*/
|
|
330
|
+
description: string;
|
|
331
|
+
/**
|
|
332
|
+
* Default number of tokens that can be consumed during the specified
|
|
333
|
+
* duration. This is the number of tokens assigned when a client
|
|
334
|
+
* application developer activates the service for his/her project.
|
|
335
|
+
*
|
|
336
|
+
* Specifying a value of 0 will block all requests. This can be used if you
|
|
337
|
+
* are provisioning quota to selected consumers and blocking others.
|
|
338
|
+
* Similarly, a value of -1 will indicate an unlimited quota. No other
|
|
339
|
+
* negative values are allowed.
|
|
340
|
+
*
|
|
341
|
+
* Used by group-based quotas only.
|
|
342
|
+
*/
|
|
343
|
+
defaultLimit: bigint;
|
|
344
|
+
/**
|
|
345
|
+
* Maximum number of tokens that can be consumed during the specified
|
|
346
|
+
* duration. Client application developers can override the default limit up
|
|
347
|
+
* to this maximum. If specified, this value cannot be set to a value less
|
|
348
|
+
* than the default limit. If not specified, it is set to the default limit.
|
|
349
|
+
*
|
|
350
|
+
* To allow clients to apply overrides with no upper bound, set this to -1,
|
|
351
|
+
* indicating unlimited maximum quota.
|
|
352
|
+
*
|
|
353
|
+
* Used by group-based quotas only.
|
|
354
|
+
*/
|
|
355
|
+
maxLimit: bigint;
|
|
356
|
+
/**
|
|
357
|
+
* Free tier value displayed in the Developers Console for this limit.
|
|
358
|
+
* The free tier is the number of tokens that will be subtracted from the
|
|
359
|
+
* billed amount when billing is enabled.
|
|
360
|
+
* This field can only be set on a limit with duration "1d", in a billable
|
|
361
|
+
* group; it is invalid on any other limit. If this field is not set, it
|
|
362
|
+
* defaults to 0, indicating that there is no free tier for this service.
|
|
363
|
+
*
|
|
364
|
+
* Used by group-based quotas only.
|
|
365
|
+
*/
|
|
366
|
+
freeTier: bigint;
|
|
367
|
+
/**
|
|
368
|
+
* Duration of this limit in textual notation. Must be "100s" or "1d".
|
|
369
|
+
*
|
|
370
|
+
* Used by group-based quotas only.
|
|
371
|
+
*/
|
|
372
|
+
duration: string;
|
|
373
|
+
/**
|
|
374
|
+
* The name of the metric this quota limit applies to. The quota limits with
|
|
375
|
+
* the same metric will be checked together during runtime. The metric must be
|
|
376
|
+
* defined within the service config.
|
|
377
|
+
*/
|
|
378
|
+
metric: string;
|
|
379
|
+
/**
|
|
380
|
+
* Specify the unit of the quota limit. It uses the same syntax as
|
|
381
|
+
* [MetricDescriptor.unit][google.api.MetricDescriptor.unit]. The supported
|
|
382
|
+
* unit kinds are determined by the quota backend system.
|
|
383
|
+
*
|
|
384
|
+
* Here are some examples:
|
|
385
|
+
* * "1/min/{project}" for quota per minute per project.
|
|
386
|
+
*
|
|
387
|
+
* Note: the order of unit components is insignificant.
|
|
388
|
+
* The "1" at the beginning is required to follow the metric unit syntax.
|
|
389
|
+
*/
|
|
390
|
+
unit: string;
|
|
391
|
+
/**
|
|
392
|
+
* Tiered limit values. You must specify this as a key:value pair, with an
|
|
393
|
+
* integer value that is the maximum number of requests allowed for the
|
|
394
|
+
* specified unit. Currently only STANDARD is supported.
|
|
395
|
+
*/
|
|
396
|
+
values: {
|
|
397
|
+
[key: string]: bigint;
|
|
398
|
+
};
|
|
399
|
+
/**
|
|
400
|
+
* User-visible display name for this limit.
|
|
401
|
+
* Optional. If not set, the UI will provide a default display name based on
|
|
402
|
+
* the quota configuration. This field can be used to override the default
|
|
403
|
+
* display name generated from the configuration.
|
|
404
|
+
*/
|
|
405
|
+
displayName: string;
|
|
406
|
+
}
|
|
407
|
+
export interface QuotaLimitProtoMsg {
|
|
408
|
+
typeUrl: "/google.api.QuotaLimit";
|
|
409
|
+
value: Uint8Array;
|
|
410
|
+
}
|
|
411
|
+
/**
|
|
412
|
+
* `QuotaLimit` defines a specific limit that applies over a specified duration
|
|
413
|
+
* for a limit type. There can be at most one limit for a duration and limit
|
|
414
|
+
* type combination defined within a `QuotaGroup`.
|
|
415
|
+
* @name QuotaLimitAmino
|
|
416
|
+
* @package google.api
|
|
417
|
+
* @see proto type: google.api.QuotaLimit
|
|
418
|
+
*/
|
|
419
|
+
export interface QuotaLimitAmino {
|
|
420
|
+
/**
|
|
421
|
+
* Name of the quota limit.
|
|
422
|
+
*
|
|
423
|
+
* The name must be provided, and it must be unique within the service. The
|
|
424
|
+
* name can only include alphanumeric characters as well as '-'.
|
|
425
|
+
*
|
|
426
|
+
* The maximum length of the limit name is 64 characters.
|
|
427
|
+
*/
|
|
428
|
+
name?: string;
|
|
429
|
+
/**
|
|
430
|
+
* Optional. User-visible, extended description for this quota limit.
|
|
431
|
+
* Should be used only when more context is needed to understand this limit
|
|
432
|
+
* than provided by the limit's display name (see: `display_name`).
|
|
433
|
+
*/
|
|
434
|
+
description?: string;
|
|
435
|
+
/**
|
|
436
|
+
* Default number of tokens that can be consumed during the specified
|
|
437
|
+
* duration. This is the number of tokens assigned when a client
|
|
438
|
+
* application developer activates the service for his/her project.
|
|
439
|
+
*
|
|
440
|
+
* Specifying a value of 0 will block all requests. This can be used if you
|
|
441
|
+
* are provisioning quota to selected consumers and blocking others.
|
|
442
|
+
* Similarly, a value of -1 will indicate an unlimited quota. No other
|
|
443
|
+
* negative values are allowed.
|
|
444
|
+
*
|
|
445
|
+
* Used by group-based quotas only.
|
|
446
|
+
*/
|
|
447
|
+
default_limit?: string;
|
|
448
|
+
/**
|
|
449
|
+
* Maximum number of tokens that can be consumed during the specified
|
|
450
|
+
* duration. Client application developers can override the default limit up
|
|
451
|
+
* to this maximum. If specified, this value cannot be set to a value less
|
|
452
|
+
* than the default limit. If not specified, it is set to the default limit.
|
|
453
|
+
*
|
|
454
|
+
* To allow clients to apply overrides with no upper bound, set this to -1,
|
|
455
|
+
* indicating unlimited maximum quota.
|
|
456
|
+
*
|
|
457
|
+
* Used by group-based quotas only.
|
|
458
|
+
*/
|
|
459
|
+
max_limit?: string;
|
|
460
|
+
/**
|
|
461
|
+
* Free tier value displayed in the Developers Console for this limit.
|
|
462
|
+
* The free tier is the number of tokens that will be subtracted from the
|
|
463
|
+
* billed amount when billing is enabled.
|
|
464
|
+
* This field can only be set on a limit with duration "1d", in a billable
|
|
465
|
+
* group; it is invalid on any other limit. If this field is not set, it
|
|
466
|
+
* defaults to 0, indicating that there is no free tier for this service.
|
|
467
|
+
*
|
|
468
|
+
* Used by group-based quotas only.
|
|
469
|
+
*/
|
|
470
|
+
free_tier?: string;
|
|
471
|
+
/**
|
|
472
|
+
* Duration of this limit in textual notation. Must be "100s" or "1d".
|
|
473
|
+
*
|
|
474
|
+
* Used by group-based quotas only.
|
|
475
|
+
*/
|
|
476
|
+
duration?: string;
|
|
477
|
+
/**
|
|
478
|
+
* The name of the metric this quota limit applies to. The quota limits with
|
|
479
|
+
* the same metric will be checked together during runtime. The metric must be
|
|
480
|
+
* defined within the service config.
|
|
481
|
+
*/
|
|
482
|
+
metric?: string;
|
|
483
|
+
/**
|
|
484
|
+
* Specify the unit of the quota limit. It uses the same syntax as
|
|
485
|
+
* [MetricDescriptor.unit][google.api.MetricDescriptor.unit]. The supported
|
|
486
|
+
* unit kinds are determined by the quota backend system.
|
|
487
|
+
*
|
|
488
|
+
* Here are some examples:
|
|
489
|
+
* * "1/min/{project}" for quota per minute per project.
|
|
490
|
+
*
|
|
491
|
+
* Note: the order of unit components is insignificant.
|
|
492
|
+
* The "1" at the beginning is required to follow the metric unit syntax.
|
|
493
|
+
*/
|
|
494
|
+
unit?: string;
|
|
495
|
+
/**
|
|
496
|
+
* Tiered limit values. You must specify this as a key:value pair, with an
|
|
497
|
+
* integer value that is the maximum number of requests allowed for the
|
|
498
|
+
* specified unit. Currently only STANDARD is supported.
|
|
499
|
+
*/
|
|
500
|
+
values?: {
|
|
501
|
+
[key: string]: string;
|
|
502
|
+
};
|
|
503
|
+
/**
|
|
504
|
+
* User-visible display name for this limit.
|
|
505
|
+
* Optional. If not set, the UI will provide a default display name based on
|
|
506
|
+
* the quota configuration. This field can be used to override the default
|
|
507
|
+
* display name generated from the configuration.
|
|
508
|
+
*/
|
|
509
|
+
display_name?: string;
|
|
510
|
+
}
|
|
511
|
+
export interface QuotaLimitAminoMsg {
|
|
512
|
+
type: "/google.api.QuotaLimit";
|
|
513
|
+
value: QuotaLimitAmino;
|
|
514
|
+
}
|
|
515
|
+
/**
|
|
516
|
+
* `QuotaLimit` defines a specific limit that applies over a specified duration
|
|
517
|
+
* for a limit type. There can be at most one limit for a duration and limit
|
|
518
|
+
* type combination defined within a `QuotaGroup`.
|
|
519
|
+
*/
|
|
520
|
+
export interface QuotaLimitSDKType {
|
|
521
|
+
name: string;
|
|
522
|
+
description: string;
|
|
523
|
+
default_limit: bigint;
|
|
524
|
+
max_limit: bigint;
|
|
525
|
+
free_tier: bigint;
|
|
526
|
+
duration: string;
|
|
527
|
+
metric: string;
|
|
528
|
+
unit: string;
|
|
529
|
+
values: {
|
|
530
|
+
[key: string]: bigint;
|
|
531
|
+
};
|
|
532
|
+
display_name: string;
|
|
533
|
+
}
|
|
534
|
+
function createBaseQuota(): Quota {
|
|
535
|
+
return {
|
|
536
|
+
limits: [],
|
|
537
|
+
metricRules: []
|
|
538
|
+
};
|
|
539
|
+
}
|
|
540
|
+
export const Quota = {
|
|
541
|
+
typeUrl: "/google.api.Quota",
|
|
542
|
+
encode(message: Quota, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
543
|
+
for (const v of message.limits) {
|
|
544
|
+
QuotaLimit.encode(v!, writer.uint32(26).fork()).ldelim();
|
|
545
|
+
}
|
|
546
|
+
for (const v of message.metricRules) {
|
|
547
|
+
MetricRule.encode(v!, writer.uint32(34).fork()).ldelim();
|
|
548
|
+
}
|
|
549
|
+
return writer;
|
|
550
|
+
},
|
|
551
|
+
decode(input: BinaryReader | Uint8Array, length?: number): Quota {
|
|
552
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
553
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
554
|
+
const message = createBaseQuota();
|
|
555
|
+
while (reader.pos < end) {
|
|
556
|
+
const tag = reader.uint32();
|
|
557
|
+
switch (tag >>> 3) {
|
|
558
|
+
case 3:
|
|
559
|
+
message.limits.push(QuotaLimit.decode(reader, reader.uint32()));
|
|
560
|
+
break;
|
|
561
|
+
case 4:
|
|
562
|
+
message.metricRules.push(MetricRule.decode(reader, reader.uint32()));
|
|
563
|
+
break;
|
|
564
|
+
default:
|
|
565
|
+
reader.skipType(tag & 7);
|
|
566
|
+
break;
|
|
567
|
+
}
|
|
568
|
+
}
|
|
569
|
+
return message;
|
|
570
|
+
},
|
|
571
|
+
fromPartial(object: Partial<Quota>): Quota {
|
|
572
|
+
const message = createBaseQuota();
|
|
573
|
+
message.limits = object.limits?.map(e => QuotaLimit.fromPartial(e)) || [];
|
|
574
|
+
message.metricRules = object.metricRules?.map(e => MetricRule.fromPartial(e)) || [];
|
|
575
|
+
return message;
|
|
576
|
+
},
|
|
577
|
+
fromAmino(object: QuotaAmino): Quota {
|
|
578
|
+
const message = createBaseQuota();
|
|
579
|
+
message.limits = object.limits?.map(e => QuotaLimit.fromAmino(e)) || [];
|
|
580
|
+
message.metricRules = object.metric_rules?.map(e => MetricRule.fromAmino(e)) || [];
|
|
581
|
+
return message;
|
|
582
|
+
},
|
|
583
|
+
toAmino(message: Quota): QuotaAmino {
|
|
584
|
+
const obj: any = {};
|
|
585
|
+
if (message.limits) {
|
|
586
|
+
obj.limits = message.limits.map(e => e ? QuotaLimit.toAmino(e) : undefined);
|
|
587
|
+
} else {
|
|
588
|
+
obj.limits = message.limits;
|
|
589
|
+
}
|
|
590
|
+
if (message.metricRules) {
|
|
591
|
+
obj.metric_rules = message.metricRules.map(e => e ? MetricRule.toAmino(e) : undefined);
|
|
592
|
+
} else {
|
|
593
|
+
obj.metric_rules = message.metricRules;
|
|
594
|
+
}
|
|
595
|
+
return obj;
|
|
596
|
+
},
|
|
597
|
+
fromAminoMsg(object: QuotaAminoMsg): Quota {
|
|
598
|
+
return Quota.fromAmino(object.value);
|
|
599
|
+
},
|
|
600
|
+
fromProtoMsg(message: QuotaProtoMsg): Quota {
|
|
601
|
+
return Quota.decode(message.value);
|
|
602
|
+
},
|
|
603
|
+
toProto(message: Quota): Uint8Array {
|
|
604
|
+
return Quota.encode(message).finish();
|
|
605
|
+
},
|
|
606
|
+
toProtoMsg(message: Quota): QuotaProtoMsg {
|
|
607
|
+
return {
|
|
608
|
+
typeUrl: "/google.api.Quota",
|
|
609
|
+
value: Quota.encode(message).finish()
|
|
610
|
+
};
|
|
611
|
+
}
|
|
612
|
+
};
|
|
613
|
+
function createBaseMetricRule_MetricCostsEntry(): MetricRule_MetricCostsEntry {
|
|
614
|
+
return {
|
|
615
|
+
key: "",
|
|
616
|
+
value: BigInt(0)
|
|
617
|
+
};
|
|
618
|
+
}
|
|
619
|
+
export const MetricRule_MetricCostsEntry = {
|
|
620
|
+
encode(message: MetricRule_MetricCostsEntry, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
621
|
+
if (message.key !== "") {
|
|
622
|
+
writer.uint32(10).string(message.key);
|
|
623
|
+
}
|
|
624
|
+
if (message.value !== BigInt(0)) {
|
|
625
|
+
writer.uint32(16).int64(message.value);
|
|
626
|
+
}
|
|
627
|
+
return writer;
|
|
628
|
+
},
|
|
629
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MetricRule_MetricCostsEntry {
|
|
630
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
631
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
632
|
+
const message = createBaseMetricRule_MetricCostsEntry();
|
|
633
|
+
while (reader.pos < end) {
|
|
634
|
+
const tag = reader.uint32();
|
|
635
|
+
switch (tag >>> 3) {
|
|
636
|
+
case 1:
|
|
637
|
+
message.key = reader.string();
|
|
638
|
+
break;
|
|
639
|
+
case 2:
|
|
640
|
+
message.value = reader.int64();
|
|
641
|
+
break;
|
|
642
|
+
default:
|
|
643
|
+
reader.skipType(tag & 7);
|
|
644
|
+
break;
|
|
645
|
+
}
|
|
646
|
+
}
|
|
647
|
+
return message;
|
|
648
|
+
},
|
|
649
|
+
fromPartial(object: Partial<MetricRule_MetricCostsEntry>): MetricRule_MetricCostsEntry {
|
|
650
|
+
const message = createBaseMetricRule_MetricCostsEntry();
|
|
651
|
+
message.key = object.key ?? "";
|
|
652
|
+
message.value = object.value !== undefined && object.value !== null ? BigInt(object.value.toString()) : BigInt(0);
|
|
653
|
+
return message;
|
|
654
|
+
},
|
|
655
|
+
fromAmino(object: MetricRule_MetricCostsEntryAmino): MetricRule_MetricCostsEntry {
|
|
656
|
+
const message = createBaseMetricRule_MetricCostsEntry();
|
|
657
|
+
if (object.key !== undefined && object.key !== null) {
|
|
658
|
+
message.key = object.key;
|
|
659
|
+
}
|
|
660
|
+
if (object.value !== undefined && object.value !== null) {
|
|
661
|
+
message.value = BigInt(object.value);
|
|
662
|
+
}
|
|
663
|
+
return message;
|
|
664
|
+
},
|
|
665
|
+
toAmino(message: MetricRule_MetricCostsEntry): MetricRule_MetricCostsEntryAmino {
|
|
666
|
+
const obj: any = {};
|
|
667
|
+
obj.key = message.key === "" ? undefined : message.key;
|
|
668
|
+
obj.value = message.value !== BigInt(0) ? message.value?.toString() : undefined;
|
|
669
|
+
return obj;
|
|
670
|
+
},
|
|
671
|
+
fromAminoMsg(object: MetricRule_MetricCostsEntryAminoMsg): MetricRule_MetricCostsEntry {
|
|
672
|
+
return MetricRule_MetricCostsEntry.fromAmino(object.value);
|
|
673
|
+
},
|
|
674
|
+
fromProtoMsg(message: MetricRule_MetricCostsEntryProtoMsg): MetricRule_MetricCostsEntry {
|
|
675
|
+
return MetricRule_MetricCostsEntry.decode(message.value);
|
|
676
|
+
},
|
|
677
|
+
toProto(message: MetricRule_MetricCostsEntry): Uint8Array {
|
|
678
|
+
return MetricRule_MetricCostsEntry.encode(message).finish();
|
|
679
|
+
}
|
|
680
|
+
};
|
|
681
|
+
function createBaseMetricRule(): MetricRule {
|
|
682
|
+
return {
|
|
683
|
+
selector: "",
|
|
684
|
+
metricCosts: {}
|
|
685
|
+
};
|
|
686
|
+
}
|
|
687
|
+
export const MetricRule = {
|
|
688
|
+
typeUrl: "/google.api.MetricRule",
|
|
689
|
+
encode(message: MetricRule, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
690
|
+
if (message.selector !== "") {
|
|
691
|
+
writer.uint32(10).string(message.selector);
|
|
692
|
+
}
|
|
693
|
+
Object.entries(message.metricCosts).forEach(([key, value]) => {
|
|
694
|
+
MetricRule_MetricCostsEntry.encode({
|
|
695
|
+
key: key as any,
|
|
696
|
+
value
|
|
697
|
+
}, writer.uint32(16).fork()).ldelim();
|
|
698
|
+
});
|
|
699
|
+
return writer;
|
|
700
|
+
},
|
|
701
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MetricRule {
|
|
702
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
703
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
704
|
+
const message = createBaseMetricRule();
|
|
705
|
+
while (reader.pos < end) {
|
|
706
|
+
const tag = reader.uint32();
|
|
707
|
+
switch (tag >>> 3) {
|
|
708
|
+
case 1:
|
|
709
|
+
message.selector = reader.string();
|
|
710
|
+
break;
|
|
711
|
+
case 2:
|
|
712
|
+
const entry2 = MetricRule_MetricCostsEntry.decode(reader, reader.uint32());
|
|
713
|
+
if (entry2.value !== undefined) {
|
|
714
|
+
message.metricCosts[entry2.key] = entry2.value;
|
|
715
|
+
}
|
|
716
|
+
break;
|
|
717
|
+
default:
|
|
718
|
+
reader.skipType(tag & 7);
|
|
719
|
+
break;
|
|
720
|
+
}
|
|
721
|
+
}
|
|
722
|
+
return message;
|
|
723
|
+
},
|
|
724
|
+
fromPartial(object: Partial<MetricRule>): MetricRule {
|
|
725
|
+
const message = createBaseMetricRule();
|
|
726
|
+
message.selector = object.selector ?? "";
|
|
727
|
+
message.metricCosts = Object.entries(object.metricCosts ?? {}).reduce<{
|
|
728
|
+
[key: string]: bigint;
|
|
729
|
+
}>((acc, [key, value]) => {
|
|
730
|
+
if (value !== undefined) {
|
|
731
|
+
acc[key] = BigInt(value.toString());
|
|
732
|
+
}
|
|
733
|
+
return acc;
|
|
734
|
+
}, {});
|
|
735
|
+
return message;
|
|
736
|
+
},
|
|
737
|
+
fromAmino(object: MetricRuleAmino): MetricRule {
|
|
738
|
+
const message = createBaseMetricRule();
|
|
739
|
+
if (object.selector !== undefined && object.selector !== null) {
|
|
740
|
+
message.selector = object.selector;
|
|
741
|
+
}
|
|
742
|
+
message.metricCosts = Object.entries(object.metric_costs ?? {}).reduce<{
|
|
743
|
+
[key: string]: bigint;
|
|
744
|
+
}>((acc, [key, value]) => {
|
|
745
|
+
if (value !== undefined) {
|
|
746
|
+
acc[key] = BigInt(value.toString());
|
|
747
|
+
}
|
|
748
|
+
return acc;
|
|
749
|
+
}, {});
|
|
750
|
+
return message;
|
|
751
|
+
},
|
|
752
|
+
toAmino(message: MetricRule): MetricRuleAmino {
|
|
753
|
+
const obj: any = {};
|
|
754
|
+
obj.selector = message.selector === "" ? undefined : message.selector;
|
|
755
|
+
obj.metric_costs = {};
|
|
756
|
+
if (message.metricCosts) {
|
|
757
|
+
Object.entries(message.metricCosts).forEach(([k, v]) => {
|
|
758
|
+
obj.metric_costs[k] = v.toString();
|
|
759
|
+
});
|
|
760
|
+
}
|
|
761
|
+
return obj;
|
|
762
|
+
},
|
|
763
|
+
fromAminoMsg(object: MetricRuleAminoMsg): MetricRule {
|
|
764
|
+
return MetricRule.fromAmino(object.value);
|
|
765
|
+
},
|
|
766
|
+
fromProtoMsg(message: MetricRuleProtoMsg): MetricRule {
|
|
767
|
+
return MetricRule.decode(message.value);
|
|
768
|
+
},
|
|
769
|
+
toProto(message: MetricRule): Uint8Array {
|
|
770
|
+
return MetricRule.encode(message).finish();
|
|
771
|
+
},
|
|
772
|
+
toProtoMsg(message: MetricRule): MetricRuleProtoMsg {
|
|
773
|
+
return {
|
|
774
|
+
typeUrl: "/google.api.MetricRule",
|
|
775
|
+
value: MetricRule.encode(message).finish()
|
|
776
|
+
};
|
|
777
|
+
}
|
|
778
|
+
};
|
|
779
|
+
function createBaseQuotaLimit_ValuesEntry(): QuotaLimit_ValuesEntry {
|
|
780
|
+
return {
|
|
781
|
+
key: "",
|
|
782
|
+
value: BigInt(0)
|
|
783
|
+
};
|
|
784
|
+
}
|
|
785
|
+
export const QuotaLimit_ValuesEntry = {
|
|
786
|
+
encode(message: QuotaLimit_ValuesEntry, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
787
|
+
if (message.key !== "") {
|
|
788
|
+
writer.uint32(10).string(message.key);
|
|
789
|
+
}
|
|
790
|
+
if (message.value !== BigInt(0)) {
|
|
791
|
+
writer.uint32(16).int64(message.value);
|
|
792
|
+
}
|
|
793
|
+
return writer;
|
|
794
|
+
},
|
|
795
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QuotaLimit_ValuesEntry {
|
|
796
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
797
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
798
|
+
const message = createBaseQuotaLimit_ValuesEntry();
|
|
799
|
+
while (reader.pos < end) {
|
|
800
|
+
const tag = reader.uint32();
|
|
801
|
+
switch (tag >>> 3) {
|
|
802
|
+
case 1:
|
|
803
|
+
message.key = reader.string();
|
|
804
|
+
break;
|
|
805
|
+
case 2:
|
|
806
|
+
message.value = reader.int64();
|
|
807
|
+
break;
|
|
808
|
+
default:
|
|
809
|
+
reader.skipType(tag & 7);
|
|
810
|
+
break;
|
|
811
|
+
}
|
|
812
|
+
}
|
|
813
|
+
return message;
|
|
814
|
+
},
|
|
815
|
+
fromPartial(object: Partial<QuotaLimit_ValuesEntry>): QuotaLimit_ValuesEntry {
|
|
816
|
+
const message = createBaseQuotaLimit_ValuesEntry();
|
|
817
|
+
message.key = object.key ?? "";
|
|
818
|
+
message.value = object.value !== undefined && object.value !== null ? BigInt(object.value.toString()) : BigInt(0);
|
|
819
|
+
return message;
|
|
820
|
+
},
|
|
821
|
+
fromAmino(object: QuotaLimit_ValuesEntryAmino): QuotaLimit_ValuesEntry {
|
|
822
|
+
const message = createBaseQuotaLimit_ValuesEntry();
|
|
823
|
+
if (object.key !== undefined && object.key !== null) {
|
|
824
|
+
message.key = object.key;
|
|
825
|
+
}
|
|
826
|
+
if (object.value !== undefined && object.value !== null) {
|
|
827
|
+
message.value = BigInt(object.value);
|
|
828
|
+
}
|
|
829
|
+
return message;
|
|
830
|
+
},
|
|
831
|
+
toAmino(message: QuotaLimit_ValuesEntry): QuotaLimit_ValuesEntryAmino {
|
|
832
|
+
const obj: any = {};
|
|
833
|
+
obj.key = message.key === "" ? undefined : message.key;
|
|
834
|
+
obj.value = message.value !== BigInt(0) ? message.value?.toString() : undefined;
|
|
835
|
+
return obj;
|
|
836
|
+
},
|
|
837
|
+
fromAminoMsg(object: QuotaLimit_ValuesEntryAminoMsg): QuotaLimit_ValuesEntry {
|
|
838
|
+
return QuotaLimit_ValuesEntry.fromAmino(object.value);
|
|
839
|
+
},
|
|
840
|
+
fromProtoMsg(message: QuotaLimit_ValuesEntryProtoMsg): QuotaLimit_ValuesEntry {
|
|
841
|
+
return QuotaLimit_ValuesEntry.decode(message.value);
|
|
842
|
+
},
|
|
843
|
+
toProto(message: QuotaLimit_ValuesEntry): Uint8Array {
|
|
844
|
+
return QuotaLimit_ValuesEntry.encode(message).finish();
|
|
845
|
+
}
|
|
846
|
+
};
|
|
847
|
+
function createBaseQuotaLimit(): QuotaLimit {
|
|
848
|
+
return {
|
|
849
|
+
name: "",
|
|
850
|
+
description: "",
|
|
851
|
+
defaultLimit: BigInt(0),
|
|
852
|
+
maxLimit: BigInt(0),
|
|
853
|
+
freeTier: BigInt(0),
|
|
854
|
+
duration: "",
|
|
855
|
+
metric: "",
|
|
856
|
+
unit: "",
|
|
857
|
+
values: {},
|
|
858
|
+
displayName: ""
|
|
859
|
+
};
|
|
860
|
+
}
|
|
861
|
+
export const QuotaLimit = {
|
|
862
|
+
typeUrl: "/google.api.QuotaLimit",
|
|
863
|
+
encode(message: QuotaLimit, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
864
|
+
if (message.name !== "") {
|
|
865
|
+
writer.uint32(50).string(message.name);
|
|
866
|
+
}
|
|
867
|
+
if (message.description !== "") {
|
|
868
|
+
writer.uint32(18).string(message.description);
|
|
869
|
+
}
|
|
870
|
+
if (message.defaultLimit !== BigInt(0)) {
|
|
871
|
+
writer.uint32(24).int64(message.defaultLimit);
|
|
872
|
+
}
|
|
873
|
+
if (message.maxLimit !== BigInt(0)) {
|
|
874
|
+
writer.uint32(32).int64(message.maxLimit);
|
|
875
|
+
}
|
|
876
|
+
if (message.freeTier !== BigInt(0)) {
|
|
877
|
+
writer.uint32(56).int64(message.freeTier);
|
|
878
|
+
}
|
|
879
|
+
if (message.duration !== "") {
|
|
880
|
+
writer.uint32(42).string(message.duration);
|
|
881
|
+
}
|
|
882
|
+
if (message.metric !== "") {
|
|
883
|
+
writer.uint32(66).string(message.metric);
|
|
884
|
+
}
|
|
885
|
+
if (message.unit !== "") {
|
|
886
|
+
writer.uint32(74).string(message.unit);
|
|
887
|
+
}
|
|
888
|
+
Object.entries(message.values).forEach(([key, value]) => {
|
|
889
|
+
QuotaLimit_ValuesEntry.encode({
|
|
890
|
+
key: key as any,
|
|
891
|
+
value
|
|
892
|
+
}, writer.uint32(80).fork()).ldelim();
|
|
893
|
+
});
|
|
894
|
+
if (message.displayName !== "") {
|
|
895
|
+
writer.uint32(98).string(message.displayName);
|
|
896
|
+
}
|
|
897
|
+
return writer;
|
|
898
|
+
},
|
|
899
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QuotaLimit {
|
|
900
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
901
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
902
|
+
const message = createBaseQuotaLimit();
|
|
903
|
+
while (reader.pos < end) {
|
|
904
|
+
const tag = reader.uint32();
|
|
905
|
+
switch (tag >>> 3) {
|
|
906
|
+
case 6:
|
|
907
|
+
message.name = reader.string();
|
|
908
|
+
break;
|
|
909
|
+
case 2:
|
|
910
|
+
message.description = reader.string();
|
|
911
|
+
break;
|
|
912
|
+
case 3:
|
|
913
|
+
message.defaultLimit = reader.int64();
|
|
914
|
+
break;
|
|
915
|
+
case 4:
|
|
916
|
+
message.maxLimit = reader.int64();
|
|
917
|
+
break;
|
|
918
|
+
case 7:
|
|
919
|
+
message.freeTier = reader.int64();
|
|
920
|
+
break;
|
|
921
|
+
case 5:
|
|
922
|
+
message.duration = reader.string();
|
|
923
|
+
break;
|
|
924
|
+
case 8:
|
|
925
|
+
message.metric = reader.string();
|
|
926
|
+
break;
|
|
927
|
+
case 9:
|
|
928
|
+
message.unit = reader.string();
|
|
929
|
+
break;
|
|
930
|
+
case 10:
|
|
931
|
+
const entry10 = QuotaLimit_ValuesEntry.decode(reader, reader.uint32());
|
|
932
|
+
if (entry10.value !== undefined) {
|
|
933
|
+
message.values[entry10.key] = entry10.value;
|
|
934
|
+
}
|
|
935
|
+
break;
|
|
936
|
+
case 12:
|
|
937
|
+
message.displayName = reader.string();
|
|
938
|
+
break;
|
|
939
|
+
default:
|
|
940
|
+
reader.skipType(tag & 7);
|
|
941
|
+
break;
|
|
942
|
+
}
|
|
943
|
+
}
|
|
944
|
+
return message;
|
|
945
|
+
},
|
|
946
|
+
fromPartial(object: Partial<QuotaLimit>): QuotaLimit {
|
|
947
|
+
const message = createBaseQuotaLimit();
|
|
948
|
+
message.name = object.name ?? "";
|
|
949
|
+
message.description = object.description ?? "";
|
|
950
|
+
message.defaultLimit = object.defaultLimit !== undefined && object.defaultLimit !== null ? BigInt(object.defaultLimit.toString()) : BigInt(0);
|
|
951
|
+
message.maxLimit = object.maxLimit !== undefined && object.maxLimit !== null ? BigInt(object.maxLimit.toString()) : BigInt(0);
|
|
952
|
+
message.freeTier = object.freeTier !== undefined && object.freeTier !== null ? BigInt(object.freeTier.toString()) : BigInt(0);
|
|
953
|
+
message.duration = object.duration ?? "";
|
|
954
|
+
message.metric = object.metric ?? "";
|
|
955
|
+
message.unit = object.unit ?? "";
|
|
956
|
+
message.values = Object.entries(object.values ?? {}).reduce<{
|
|
957
|
+
[key: string]: bigint;
|
|
958
|
+
}>((acc, [key, value]) => {
|
|
959
|
+
if (value !== undefined) {
|
|
960
|
+
acc[key] = BigInt(value.toString());
|
|
961
|
+
}
|
|
962
|
+
return acc;
|
|
963
|
+
}, {});
|
|
964
|
+
message.displayName = object.displayName ?? "";
|
|
965
|
+
return message;
|
|
966
|
+
},
|
|
967
|
+
fromAmino(object: QuotaLimitAmino): QuotaLimit {
|
|
968
|
+
const message = createBaseQuotaLimit();
|
|
969
|
+
if (object.name !== undefined && object.name !== null) {
|
|
970
|
+
message.name = object.name;
|
|
971
|
+
}
|
|
972
|
+
if (object.description !== undefined && object.description !== null) {
|
|
973
|
+
message.description = object.description;
|
|
974
|
+
}
|
|
975
|
+
if (object.default_limit !== undefined && object.default_limit !== null) {
|
|
976
|
+
message.defaultLimit = BigInt(object.default_limit);
|
|
977
|
+
}
|
|
978
|
+
if (object.max_limit !== undefined && object.max_limit !== null) {
|
|
979
|
+
message.maxLimit = BigInt(object.max_limit);
|
|
980
|
+
}
|
|
981
|
+
if (object.free_tier !== undefined && object.free_tier !== null) {
|
|
982
|
+
message.freeTier = BigInt(object.free_tier);
|
|
983
|
+
}
|
|
984
|
+
if (object.duration !== undefined && object.duration !== null) {
|
|
985
|
+
message.duration = object.duration;
|
|
986
|
+
}
|
|
987
|
+
if (object.metric !== undefined && object.metric !== null) {
|
|
988
|
+
message.metric = object.metric;
|
|
989
|
+
}
|
|
990
|
+
if (object.unit !== undefined && object.unit !== null) {
|
|
991
|
+
message.unit = object.unit;
|
|
992
|
+
}
|
|
993
|
+
message.values = Object.entries(object.values ?? {}).reduce<{
|
|
994
|
+
[key: string]: bigint;
|
|
995
|
+
}>((acc, [key, value]) => {
|
|
996
|
+
if (value !== undefined) {
|
|
997
|
+
acc[key] = BigInt(value.toString());
|
|
998
|
+
}
|
|
999
|
+
return acc;
|
|
1000
|
+
}, {});
|
|
1001
|
+
if (object.display_name !== undefined && object.display_name !== null) {
|
|
1002
|
+
message.displayName = object.display_name;
|
|
1003
|
+
}
|
|
1004
|
+
return message;
|
|
1005
|
+
},
|
|
1006
|
+
toAmino(message: QuotaLimit): QuotaLimitAmino {
|
|
1007
|
+
const obj: any = {};
|
|
1008
|
+
obj.name = message.name === "" ? undefined : message.name;
|
|
1009
|
+
obj.description = message.description === "" ? undefined : message.description;
|
|
1010
|
+
obj.default_limit = message.defaultLimit !== BigInt(0) ? message.defaultLimit?.toString() : undefined;
|
|
1011
|
+
obj.max_limit = message.maxLimit !== BigInt(0) ? message.maxLimit?.toString() : undefined;
|
|
1012
|
+
obj.free_tier = message.freeTier !== BigInt(0) ? message.freeTier?.toString() : undefined;
|
|
1013
|
+
obj.duration = message.duration === "" ? undefined : message.duration;
|
|
1014
|
+
obj.metric = message.metric === "" ? undefined : message.metric;
|
|
1015
|
+
obj.unit = message.unit === "" ? undefined : message.unit;
|
|
1016
|
+
obj.values = {};
|
|
1017
|
+
if (message.values) {
|
|
1018
|
+
Object.entries(message.values).forEach(([k, v]) => {
|
|
1019
|
+
obj.values[k] = v.toString();
|
|
1020
|
+
});
|
|
1021
|
+
}
|
|
1022
|
+
obj.display_name = message.displayName === "" ? undefined : message.displayName;
|
|
1023
|
+
return obj;
|
|
1024
|
+
},
|
|
1025
|
+
fromAminoMsg(object: QuotaLimitAminoMsg): QuotaLimit {
|
|
1026
|
+
return QuotaLimit.fromAmino(object.value);
|
|
1027
|
+
},
|
|
1028
|
+
fromProtoMsg(message: QuotaLimitProtoMsg): QuotaLimit {
|
|
1029
|
+
return QuotaLimit.decode(message.value);
|
|
1030
|
+
},
|
|
1031
|
+
toProto(message: QuotaLimit): Uint8Array {
|
|
1032
|
+
return QuotaLimit.encode(message).finish();
|
|
1033
|
+
},
|
|
1034
|
+
toProtoMsg(message: QuotaLimit): QuotaLimitProtoMsg {
|
|
1035
|
+
return {
|
|
1036
|
+
typeUrl: "/google.api.QuotaLimit",
|
|
1037
|
+
value: QuotaLimit.encode(message).finish()
|
|
1038
|
+
};
|
|
1039
|
+
}
|
|
1040
|
+
};
|