@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,2069 @@
|
|
|
1
|
+
//@ts-nocheck
|
|
2
|
+
import { Timestamp } from "../../../protobuf/timestamp";
|
|
3
|
+
import { Int64Value, Int64ValueAmino, Int64ValueSDKType } from "../../../protobuf/wrappers";
|
|
4
|
+
import { BinaryReader, BinaryWriter } from "../../../../binary";
|
|
5
|
+
import { toTimestamp, fromTimestamp } from "../../../../helpers";
|
|
6
|
+
/** Enumerations of quota safety checks. */
|
|
7
|
+
export enum QuotaSafetyCheck {
|
|
8
|
+
/** QUOTA_SAFETY_CHECK_UNSPECIFIED - Unspecified quota safety check. */
|
|
9
|
+
QUOTA_SAFETY_CHECK_UNSPECIFIED = 0,
|
|
10
|
+
/**
|
|
11
|
+
* QUOTA_DECREASE_BELOW_USAGE - Validates that a quota mutation would not cause the consumer's effective
|
|
12
|
+
* limit to be lower than the consumer's quota usage.
|
|
13
|
+
*/
|
|
14
|
+
QUOTA_DECREASE_BELOW_USAGE = 1,
|
|
15
|
+
/**
|
|
16
|
+
* QUOTA_DECREASE_PERCENTAGE_TOO_HIGH - Validates that a quota mutation would not cause the consumer's effective
|
|
17
|
+
* limit to decrease by more than 10 percent.
|
|
18
|
+
*/
|
|
19
|
+
QUOTA_DECREASE_PERCENTAGE_TOO_HIGH = 2,
|
|
20
|
+
UNRECOGNIZED = -1,
|
|
21
|
+
}
|
|
22
|
+
export const QuotaSafetyCheckSDKType = QuotaSafetyCheck;
|
|
23
|
+
export const QuotaSafetyCheckAmino = QuotaSafetyCheck;
|
|
24
|
+
export function quotaSafetyCheckFromJSON(object: any): QuotaSafetyCheck {
|
|
25
|
+
switch (object) {
|
|
26
|
+
case 0:
|
|
27
|
+
case "QUOTA_SAFETY_CHECK_UNSPECIFIED":
|
|
28
|
+
return QuotaSafetyCheck.QUOTA_SAFETY_CHECK_UNSPECIFIED;
|
|
29
|
+
case 1:
|
|
30
|
+
case "QUOTA_DECREASE_BELOW_USAGE":
|
|
31
|
+
return QuotaSafetyCheck.QUOTA_DECREASE_BELOW_USAGE;
|
|
32
|
+
case 2:
|
|
33
|
+
case "QUOTA_DECREASE_PERCENTAGE_TOO_HIGH":
|
|
34
|
+
return QuotaSafetyCheck.QUOTA_DECREASE_PERCENTAGE_TOO_HIGH;
|
|
35
|
+
case -1:
|
|
36
|
+
case "UNRECOGNIZED":
|
|
37
|
+
default:
|
|
38
|
+
return QuotaSafetyCheck.UNRECOGNIZED;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
export function quotaSafetyCheckToJSON(object: QuotaSafetyCheck): string {
|
|
42
|
+
switch (object) {
|
|
43
|
+
case QuotaSafetyCheck.QUOTA_SAFETY_CHECK_UNSPECIFIED:
|
|
44
|
+
return "QUOTA_SAFETY_CHECK_UNSPECIFIED";
|
|
45
|
+
case QuotaSafetyCheck.QUOTA_DECREASE_BELOW_USAGE:
|
|
46
|
+
return "QUOTA_DECREASE_BELOW_USAGE";
|
|
47
|
+
case QuotaSafetyCheck.QUOTA_DECREASE_PERCENTAGE_TOO_HIGH:
|
|
48
|
+
return "QUOTA_DECREASE_PERCENTAGE_TOO_HIGH";
|
|
49
|
+
case QuotaSafetyCheck.UNRECOGNIZED:
|
|
50
|
+
default:
|
|
51
|
+
return "UNRECOGNIZED";
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
/** The enumeration of the types of a cloud resource container. */
|
|
55
|
+
export enum QuotaInfo_ContainerType {
|
|
56
|
+
/** CONTAINER_TYPE_UNSPECIFIED - Unspecified container type. */
|
|
57
|
+
CONTAINER_TYPE_UNSPECIFIED = 0,
|
|
58
|
+
/** PROJECT - consumer project */
|
|
59
|
+
PROJECT = 1,
|
|
60
|
+
/** FOLDER - folder */
|
|
61
|
+
FOLDER = 2,
|
|
62
|
+
/** ORGANIZATION - organization */
|
|
63
|
+
ORGANIZATION = 3,
|
|
64
|
+
UNRECOGNIZED = -1,
|
|
65
|
+
}
|
|
66
|
+
export const QuotaInfo_ContainerTypeSDKType = QuotaInfo_ContainerType;
|
|
67
|
+
export const QuotaInfo_ContainerTypeAmino = QuotaInfo_ContainerType;
|
|
68
|
+
export function quotaInfo_ContainerTypeFromJSON(object: any): QuotaInfo_ContainerType {
|
|
69
|
+
switch (object) {
|
|
70
|
+
case 0:
|
|
71
|
+
case "CONTAINER_TYPE_UNSPECIFIED":
|
|
72
|
+
return QuotaInfo_ContainerType.CONTAINER_TYPE_UNSPECIFIED;
|
|
73
|
+
case 1:
|
|
74
|
+
case "PROJECT":
|
|
75
|
+
return QuotaInfo_ContainerType.PROJECT;
|
|
76
|
+
case 2:
|
|
77
|
+
case "FOLDER":
|
|
78
|
+
return QuotaInfo_ContainerType.FOLDER;
|
|
79
|
+
case 3:
|
|
80
|
+
case "ORGANIZATION":
|
|
81
|
+
return QuotaInfo_ContainerType.ORGANIZATION;
|
|
82
|
+
case -1:
|
|
83
|
+
case "UNRECOGNIZED":
|
|
84
|
+
default:
|
|
85
|
+
return QuotaInfo_ContainerType.UNRECOGNIZED;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
export function quotaInfo_ContainerTypeToJSON(object: QuotaInfo_ContainerType): string {
|
|
89
|
+
switch (object) {
|
|
90
|
+
case QuotaInfo_ContainerType.CONTAINER_TYPE_UNSPECIFIED:
|
|
91
|
+
return "CONTAINER_TYPE_UNSPECIFIED";
|
|
92
|
+
case QuotaInfo_ContainerType.PROJECT:
|
|
93
|
+
return "PROJECT";
|
|
94
|
+
case QuotaInfo_ContainerType.FOLDER:
|
|
95
|
+
return "FOLDER";
|
|
96
|
+
case QuotaInfo_ContainerType.ORGANIZATION:
|
|
97
|
+
return "ORGANIZATION";
|
|
98
|
+
case QuotaInfo_ContainerType.UNRECOGNIZED:
|
|
99
|
+
default:
|
|
100
|
+
return "UNRECOGNIZED";
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* The enumeration of reasons when it is ineligible to request increase
|
|
105
|
+
* adjustment.
|
|
106
|
+
*/
|
|
107
|
+
export enum QuotaIncreaseEligibility_IneligibilityReason {
|
|
108
|
+
/** INELIGIBILITY_REASON_UNSPECIFIED - Default value when is_eligible is true. */
|
|
109
|
+
INELIGIBILITY_REASON_UNSPECIFIED = 0,
|
|
110
|
+
/** NO_VALID_BILLING_ACCOUNT - The container is not linked with a valid billing account. */
|
|
111
|
+
NO_VALID_BILLING_ACCOUNT = 1,
|
|
112
|
+
/** NOT_SUPPORTED - Quota increase is not supported for the quota. */
|
|
113
|
+
NOT_SUPPORTED = 3,
|
|
114
|
+
/** NOT_ENOUGH_USAGE_HISTORY - There is not enough usage history to determine the eligibility. */
|
|
115
|
+
NOT_ENOUGH_USAGE_HISTORY = 4,
|
|
116
|
+
/** OTHER - Other reasons. */
|
|
117
|
+
OTHER = 2,
|
|
118
|
+
UNRECOGNIZED = -1,
|
|
119
|
+
}
|
|
120
|
+
export const QuotaIncreaseEligibility_IneligibilityReasonSDKType = QuotaIncreaseEligibility_IneligibilityReason;
|
|
121
|
+
export const QuotaIncreaseEligibility_IneligibilityReasonAmino = QuotaIncreaseEligibility_IneligibilityReason;
|
|
122
|
+
export function quotaIncreaseEligibility_IneligibilityReasonFromJSON(object: any): QuotaIncreaseEligibility_IneligibilityReason {
|
|
123
|
+
switch (object) {
|
|
124
|
+
case 0:
|
|
125
|
+
case "INELIGIBILITY_REASON_UNSPECIFIED":
|
|
126
|
+
return QuotaIncreaseEligibility_IneligibilityReason.INELIGIBILITY_REASON_UNSPECIFIED;
|
|
127
|
+
case 1:
|
|
128
|
+
case "NO_VALID_BILLING_ACCOUNT":
|
|
129
|
+
return QuotaIncreaseEligibility_IneligibilityReason.NO_VALID_BILLING_ACCOUNT;
|
|
130
|
+
case 3:
|
|
131
|
+
case "NOT_SUPPORTED":
|
|
132
|
+
return QuotaIncreaseEligibility_IneligibilityReason.NOT_SUPPORTED;
|
|
133
|
+
case 4:
|
|
134
|
+
case "NOT_ENOUGH_USAGE_HISTORY":
|
|
135
|
+
return QuotaIncreaseEligibility_IneligibilityReason.NOT_ENOUGH_USAGE_HISTORY;
|
|
136
|
+
case 2:
|
|
137
|
+
case "OTHER":
|
|
138
|
+
return QuotaIncreaseEligibility_IneligibilityReason.OTHER;
|
|
139
|
+
case -1:
|
|
140
|
+
case "UNRECOGNIZED":
|
|
141
|
+
default:
|
|
142
|
+
return QuotaIncreaseEligibility_IneligibilityReason.UNRECOGNIZED;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
export function quotaIncreaseEligibility_IneligibilityReasonToJSON(object: QuotaIncreaseEligibility_IneligibilityReason): string {
|
|
146
|
+
switch (object) {
|
|
147
|
+
case QuotaIncreaseEligibility_IneligibilityReason.INELIGIBILITY_REASON_UNSPECIFIED:
|
|
148
|
+
return "INELIGIBILITY_REASON_UNSPECIFIED";
|
|
149
|
+
case QuotaIncreaseEligibility_IneligibilityReason.NO_VALID_BILLING_ACCOUNT:
|
|
150
|
+
return "NO_VALID_BILLING_ACCOUNT";
|
|
151
|
+
case QuotaIncreaseEligibility_IneligibilityReason.NOT_SUPPORTED:
|
|
152
|
+
return "NOT_SUPPORTED";
|
|
153
|
+
case QuotaIncreaseEligibility_IneligibilityReason.NOT_ENOUGH_USAGE_HISTORY:
|
|
154
|
+
return "NOT_ENOUGH_USAGE_HISTORY";
|
|
155
|
+
case QuotaIncreaseEligibility_IneligibilityReason.OTHER:
|
|
156
|
+
return "OTHER";
|
|
157
|
+
case QuotaIncreaseEligibility_IneligibilityReason.UNRECOGNIZED:
|
|
158
|
+
default:
|
|
159
|
+
return "UNRECOGNIZED";
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
/** The enumeration of the origins of quota preference requests. */
|
|
163
|
+
export enum QuotaConfig_Origin {
|
|
164
|
+
/** ORIGIN_UNSPECIFIED - The unspecified value. */
|
|
165
|
+
ORIGIN_UNSPECIFIED = 0,
|
|
166
|
+
/** CLOUD_CONSOLE - Created through Cloud Console. */
|
|
167
|
+
CLOUD_CONSOLE = 1,
|
|
168
|
+
/** AUTO_ADJUSTER - Generated by automatic quota adjustment. */
|
|
169
|
+
AUTO_ADJUSTER = 2,
|
|
170
|
+
UNRECOGNIZED = -1,
|
|
171
|
+
}
|
|
172
|
+
export const QuotaConfig_OriginSDKType = QuotaConfig_Origin;
|
|
173
|
+
export const QuotaConfig_OriginAmino = QuotaConfig_Origin;
|
|
174
|
+
export function quotaConfig_OriginFromJSON(object: any): QuotaConfig_Origin {
|
|
175
|
+
switch (object) {
|
|
176
|
+
case 0:
|
|
177
|
+
case "ORIGIN_UNSPECIFIED":
|
|
178
|
+
return QuotaConfig_Origin.ORIGIN_UNSPECIFIED;
|
|
179
|
+
case 1:
|
|
180
|
+
case "CLOUD_CONSOLE":
|
|
181
|
+
return QuotaConfig_Origin.CLOUD_CONSOLE;
|
|
182
|
+
case 2:
|
|
183
|
+
case "AUTO_ADJUSTER":
|
|
184
|
+
return QuotaConfig_Origin.AUTO_ADJUSTER;
|
|
185
|
+
case -1:
|
|
186
|
+
case "UNRECOGNIZED":
|
|
187
|
+
default:
|
|
188
|
+
return QuotaConfig_Origin.UNRECOGNIZED;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
export function quotaConfig_OriginToJSON(object: QuotaConfig_Origin): string {
|
|
192
|
+
switch (object) {
|
|
193
|
+
case QuotaConfig_Origin.ORIGIN_UNSPECIFIED:
|
|
194
|
+
return "ORIGIN_UNSPECIFIED";
|
|
195
|
+
case QuotaConfig_Origin.CLOUD_CONSOLE:
|
|
196
|
+
return "CLOUD_CONSOLE";
|
|
197
|
+
case QuotaConfig_Origin.AUTO_ADJUSTER:
|
|
198
|
+
return "AUTO_ADJUSTER";
|
|
199
|
+
case QuotaConfig_Origin.UNRECOGNIZED:
|
|
200
|
+
default:
|
|
201
|
+
return "UNRECOGNIZED";
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
/**
|
|
205
|
+
* QuotaInfo represents information about a particular quota for a given
|
|
206
|
+
* project, folder or organization.
|
|
207
|
+
*/
|
|
208
|
+
export interface QuotaInfo {
|
|
209
|
+
/**
|
|
210
|
+
* Resource name of this QuotaInfo.
|
|
211
|
+
* The ID component following "locations/" must be "global".
|
|
212
|
+
* For example,
|
|
213
|
+
* `projects/123/locations/global/services/compute.googleapis.com/quotaInfos/CpusPerProjectPerRegion`
|
|
214
|
+
*/
|
|
215
|
+
name: string;
|
|
216
|
+
/**
|
|
217
|
+
* The id of the quota, which is unquie within the service.
|
|
218
|
+
* For example, `CpusPerProjectPerRegion`
|
|
219
|
+
*/
|
|
220
|
+
quotaId: string;
|
|
221
|
+
/**
|
|
222
|
+
* The metric of the quota. It specifies the resources consumption the quota
|
|
223
|
+
* is defined for.
|
|
224
|
+
* For example, `compute.googleapis.com/cpus`
|
|
225
|
+
*/
|
|
226
|
+
metric: string;
|
|
227
|
+
/**
|
|
228
|
+
* The name of the service in which the quota is defined.
|
|
229
|
+
* For example, `compute.googleapis.com`
|
|
230
|
+
*/
|
|
231
|
+
service: string;
|
|
232
|
+
/**
|
|
233
|
+
* Whether this is a precise quota. A precise quota is tracked with absolute
|
|
234
|
+
* precision. In contrast, an imprecise quota is not tracked with precision.
|
|
235
|
+
*/
|
|
236
|
+
isPrecise: boolean;
|
|
237
|
+
/**
|
|
238
|
+
* The reset time interval for the quota. Refresh interval applies to rate
|
|
239
|
+
* quota only.
|
|
240
|
+
* For example, "minute" for per minute, "day" for per day, or "10 seconds"
|
|
241
|
+
* for every 10 seconds.
|
|
242
|
+
*/
|
|
243
|
+
refreshInterval: string;
|
|
244
|
+
/** The container type of the QuotaInfo. */
|
|
245
|
+
containerType: QuotaInfo_ContainerType;
|
|
246
|
+
/** The dimensions the quota is defined on. */
|
|
247
|
+
dimensions: string[];
|
|
248
|
+
/** The display name of the quota metric */
|
|
249
|
+
metricDisplayName: string;
|
|
250
|
+
/** The display name of the quota. */
|
|
251
|
+
quotaDisplayName: string;
|
|
252
|
+
/** The unit in which the metric value is reported, e.g., "MByte". */
|
|
253
|
+
metricUnit: string;
|
|
254
|
+
/** Whether it is eligible to request a higher quota value for this quota. */
|
|
255
|
+
quotaIncreaseEligibility?: QuotaIncreaseEligibility;
|
|
256
|
+
/** Whether the quota value is fixed or adjustable */
|
|
257
|
+
isFixed: boolean;
|
|
258
|
+
/**
|
|
259
|
+
* The collection of dimensions info ordered by their dimensions from more
|
|
260
|
+
* specific ones to less specific ones.
|
|
261
|
+
*/
|
|
262
|
+
dimensionsInfos: DimensionsInfo[];
|
|
263
|
+
/**
|
|
264
|
+
* Whether the quota is a concurrent quota. Concurrent quotas are enforced
|
|
265
|
+
* on the total number of concurrent operations in flight at any given time.
|
|
266
|
+
*/
|
|
267
|
+
isConcurrent: boolean;
|
|
268
|
+
/**
|
|
269
|
+
* URI to the page where users can request more quota for the cloud
|
|
270
|
+
* service—for example,
|
|
271
|
+
* https://console.cloud.google.com/iam-admin/quotas.
|
|
272
|
+
*/
|
|
273
|
+
serviceRequestQuotaUri: string;
|
|
274
|
+
}
|
|
275
|
+
export interface QuotaInfoProtoMsg {
|
|
276
|
+
typeUrl: "/google.api.cloudquotas.v1beta.QuotaInfo";
|
|
277
|
+
value: Uint8Array;
|
|
278
|
+
}
|
|
279
|
+
/**
|
|
280
|
+
* QuotaInfo represents information about a particular quota for a given
|
|
281
|
+
* project, folder or organization.
|
|
282
|
+
* @name QuotaInfoAmino
|
|
283
|
+
* @package google.api.cloudquotas.v1beta
|
|
284
|
+
* @see proto type: google.api.cloudquotas.v1beta.QuotaInfo
|
|
285
|
+
*/
|
|
286
|
+
export interface QuotaInfoAmino {
|
|
287
|
+
/**
|
|
288
|
+
* Resource name of this QuotaInfo.
|
|
289
|
+
* The ID component following "locations/" must be "global".
|
|
290
|
+
* For example,
|
|
291
|
+
* `projects/123/locations/global/services/compute.googleapis.com/quotaInfos/CpusPerProjectPerRegion`
|
|
292
|
+
*/
|
|
293
|
+
name?: string;
|
|
294
|
+
/**
|
|
295
|
+
* The id of the quota, which is unquie within the service.
|
|
296
|
+
* For example, `CpusPerProjectPerRegion`
|
|
297
|
+
*/
|
|
298
|
+
quota_id?: string;
|
|
299
|
+
/**
|
|
300
|
+
* The metric of the quota. It specifies the resources consumption the quota
|
|
301
|
+
* is defined for.
|
|
302
|
+
* For example, `compute.googleapis.com/cpus`
|
|
303
|
+
*/
|
|
304
|
+
metric?: string;
|
|
305
|
+
/**
|
|
306
|
+
* The name of the service in which the quota is defined.
|
|
307
|
+
* For example, `compute.googleapis.com`
|
|
308
|
+
*/
|
|
309
|
+
service?: string;
|
|
310
|
+
/**
|
|
311
|
+
* Whether this is a precise quota. A precise quota is tracked with absolute
|
|
312
|
+
* precision. In contrast, an imprecise quota is not tracked with precision.
|
|
313
|
+
*/
|
|
314
|
+
is_precise?: boolean;
|
|
315
|
+
/**
|
|
316
|
+
* The reset time interval for the quota. Refresh interval applies to rate
|
|
317
|
+
* quota only.
|
|
318
|
+
* For example, "minute" for per minute, "day" for per day, or "10 seconds"
|
|
319
|
+
* for every 10 seconds.
|
|
320
|
+
*/
|
|
321
|
+
refresh_interval?: string;
|
|
322
|
+
/**
|
|
323
|
+
* The container type of the QuotaInfo.
|
|
324
|
+
*/
|
|
325
|
+
container_type?: QuotaInfo_ContainerType;
|
|
326
|
+
/**
|
|
327
|
+
* The dimensions the quota is defined on.
|
|
328
|
+
*/
|
|
329
|
+
dimensions?: string[];
|
|
330
|
+
/**
|
|
331
|
+
* The display name of the quota metric
|
|
332
|
+
*/
|
|
333
|
+
metric_display_name?: string;
|
|
334
|
+
/**
|
|
335
|
+
* The display name of the quota.
|
|
336
|
+
*/
|
|
337
|
+
quota_display_name?: string;
|
|
338
|
+
/**
|
|
339
|
+
* The unit in which the metric value is reported, e.g., "MByte".
|
|
340
|
+
*/
|
|
341
|
+
metric_unit?: string;
|
|
342
|
+
/**
|
|
343
|
+
* Whether it is eligible to request a higher quota value for this quota.
|
|
344
|
+
*/
|
|
345
|
+
quota_increase_eligibility?: QuotaIncreaseEligibilityAmino;
|
|
346
|
+
/**
|
|
347
|
+
* Whether the quota value is fixed or adjustable
|
|
348
|
+
*/
|
|
349
|
+
is_fixed?: boolean;
|
|
350
|
+
/**
|
|
351
|
+
* The collection of dimensions info ordered by their dimensions from more
|
|
352
|
+
* specific ones to less specific ones.
|
|
353
|
+
*/
|
|
354
|
+
dimensions_infos?: DimensionsInfoAmino[];
|
|
355
|
+
/**
|
|
356
|
+
* Whether the quota is a concurrent quota. Concurrent quotas are enforced
|
|
357
|
+
* on the total number of concurrent operations in flight at any given time.
|
|
358
|
+
*/
|
|
359
|
+
is_concurrent?: boolean;
|
|
360
|
+
/**
|
|
361
|
+
* URI to the page where users can request more quota for the cloud
|
|
362
|
+
* service—for example,
|
|
363
|
+
* https://console.cloud.google.com/iam-admin/quotas.
|
|
364
|
+
*/
|
|
365
|
+
service_request_quota_uri?: string;
|
|
366
|
+
}
|
|
367
|
+
export interface QuotaInfoAminoMsg {
|
|
368
|
+
type: "/google.api.cloudquotas.v1beta.QuotaInfo";
|
|
369
|
+
value: QuotaInfoAmino;
|
|
370
|
+
}
|
|
371
|
+
/**
|
|
372
|
+
* QuotaInfo represents information about a particular quota for a given
|
|
373
|
+
* project, folder or organization.
|
|
374
|
+
*/
|
|
375
|
+
export interface QuotaInfoSDKType {
|
|
376
|
+
name: string;
|
|
377
|
+
quota_id: string;
|
|
378
|
+
metric: string;
|
|
379
|
+
service: string;
|
|
380
|
+
is_precise: boolean;
|
|
381
|
+
refresh_interval: string;
|
|
382
|
+
container_type: QuotaInfo_ContainerType;
|
|
383
|
+
dimensions: string[];
|
|
384
|
+
metric_display_name: string;
|
|
385
|
+
quota_display_name: string;
|
|
386
|
+
metric_unit: string;
|
|
387
|
+
quota_increase_eligibility?: QuotaIncreaseEligibilitySDKType;
|
|
388
|
+
is_fixed: boolean;
|
|
389
|
+
dimensions_infos: DimensionsInfoSDKType[];
|
|
390
|
+
is_concurrent: boolean;
|
|
391
|
+
service_request_quota_uri: string;
|
|
392
|
+
}
|
|
393
|
+
/** Eligibility information regarding requesting increase adjustment of a quota. */
|
|
394
|
+
export interface QuotaIncreaseEligibility {
|
|
395
|
+
/** Whether a higher quota value can be requested for the quota. */
|
|
396
|
+
isEligible: boolean;
|
|
397
|
+
/**
|
|
398
|
+
* The reason of why it is ineligible to request increased value of the quota.
|
|
399
|
+
* If the is_eligible field is true, it defaults to
|
|
400
|
+
* INELIGIBILITY_REASON_UNSPECIFIED.
|
|
401
|
+
*/
|
|
402
|
+
ineligibilityReason: QuotaIncreaseEligibility_IneligibilityReason;
|
|
403
|
+
}
|
|
404
|
+
export interface QuotaIncreaseEligibilityProtoMsg {
|
|
405
|
+
typeUrl: "/google.api.cloudquotas.v1beta.QuotaIncreaseEligibility";
|
|
406
|
+
value: Uint8Array;
|
|
407
|
+
}
|
|
408
|
+
/**
|
|
409
|
+
* Eligibility information regarding requesting increase adjustment of a quota.
|
|
410
|
+
* @name QuotaIncreaseEligibilityAmino
|
|
411
|
+
* @package google.api.cloudquotas.v1beta
|
|
412
|
+
* @see proto type: google.api.cloudquotas.v1beta.QuotaIncreaseEligibility
|
|
413
|
+
*/
|
|
414
|
+
export interface QuotaIncreaseEligibilityAmino {
|
|
415
|
+
/**
|
|
416
|
+
* Whether a higher quota value can be requested for the quota.
|
|
417
|
+
*/
|
|
418
|
+
is_eligible?: boolean;
|
|
419
|
+
/**
|
|
420
|
+
* The reason of why it is ineligible to request increased value of the quota.
|
|
421
|
+
* If the is_eligible field is true, it defaults to
|
|
422
|
+
* INELIGIBILITY_REASON_UNSPECIFIED.
|
|
423
|
+
*/
|
|
424
|
+
ineligibility_reason?: QuotaIncreaseEligibility_IneligibilityReason;
|
|
425
|
+
}
|
|
426
|
+
export interface QuotaIncreaseEligibilityAminoMsg {
|
|
427
|
+
type: "/google.api.cloudquotas.v1beta.QuotaIncreaseEligibility";
|
|
428
|
+
value: QuotaIncreaseEligibilityAmino;
|
|
429
|
+
}
|
|
430
|
+
/** Eligibility information regarding requesting increase adjustment of a quota. */
|
|
431
|
+
export interface QuotaIncreaseEligibilitySDKType {
|
|
432
|
+
is_eligible: boolean;
|
|
433
|
+
ineligibility_reason: QuotaIncreaseEligibility_IneligibilityReason;
|
|
434
|
+
}
|
|
435
|
+
export interface QuotaPreference_DimensionsEntry {
|
|
436
|
+
key: string;
|
|
437
|
+
value: string;
|
|
438
|
+
}
|
|
439
|
+
export interface QuotaPreference_DimensionsEntryProtoMsg {
|
|
440
|
+
typeUrl: string;
|
|
441
|
+
value: Uint8Array;
|
|
442
|
+
}
|
|
443
|
+
/**
|
|
444
|
+
* @name QuotaPreference_DimensionsEntryAmino
|
|
445
|
+
* @package google.api.cloudquotas.v1beta
|
|
446
|
+
* @see proto type: google.api.cloudquotas.v1beta.QuotaPreference_DimensionsEntry
|
|
447
|
+
*/
|
|
448
|
+
export interface QuotaPreference_DimensionsEntryAmino {
|
|
449
|
+
key?: string;
|
|
450
|
+
value?: string;
|
|
451
|
+
}
|
|
452
|
+
export interface QuotaPreference_DimensionsEntryAminoMsg {
|
|
453
|
+
type: string;
|
|
454
|
+
value: QuotaPreference_DimensionsEntryAmino;
|
|
455
|
+
}
|
|
456
|
+
export interface QuotaPreference_DimensionsEntrySDKType {
|
|
457
|
+
key: string;
|
|
458
|
+
value: string;
|
|
459
|
+
}
|
|
460
|
+
/**
|
|
461
|
+
* QuotaPreference represents the preferred quota configuration specified for
|
|
462
|
+
* a project, folder or organization. There is only one QuotaPreference
|
|
463
|
+
* resource for a quota value targeting a unique set of dimensions.
|
|
464
|
+
*/
|
|
465
|
+
export interface QuotaPreference {
|
|
466
|
+
/**
|
|
467
|
+
* Required except in the CREATE requests.
|
|
468
|
+
* The resource name of the quota preference.
|
|
469
|
+
* The path that follows `/locations` must be `/global`.
|
|
470
|
+
* For example:
|
|
471
|
+
* `projects/123/locations/global/quotaPreferences/my-config-for-us-east1`
|
|
472
|
+
*/
|
|
473
|
+
name: string;
|
|
474
|
+
/**
|
|
475
|
+
* Immutable. The dimensions that this quota preference applies to. The key of
|
|
476
|
+
* the map entry is the name of a dimension, such as `region`, `zone`,
|
|
477
|
+
* `network_id`, and the value of the map entry is the dimension value.
|
|
478
|
+
*
|
|
479
|
+
* If a dimension is missing from the map of dimensions, the quota preference
|
|
480
|
+
* applies to all the dimension values except for those that have other quota
|
|
481
|
+
* preferences configured for the specific value.
|
|
482
|
+
*
|
|
483
|
+
* Note: QuotaPreferences can only be applied across all values of `user` and
|
|
484
|
+
* `resource` dimension. Do not set values for `user` or `resource` in the
|
|
485
|
+
* dimension map.
|
|
486
|
+
*
|
|
487
|
+
* For example: `{"provider" : "Example Organization"}` where `provider` is a
|
|
488
|
+
* service-specific quota dimension and `Example Organization` is the provider
|
|
489
|
+
* name.
|
|
490
|
+
*/
|
|
491
|
+
dimensions: {
|
|
492
|
+
[key: string]: string;
|
|
493
|
+
};
|
|
494
|
+
/** Required. Preferred quota configuration. */
|
|
495
|
+
quotaConfig?: QuotaConfig;
|
|
496
|
+
/**
|
|
497
|
+
* Optional. The current etag of the quota preference. If an etag is provided
|
|
498
|
+
* on update and does not match the current server's etag of the quota
|
|
499
|
+
* preference, the request will be blocked and an ABORTED error will be
|
|
500
|
+
* returned. See https://google.aip.dev/134#etags for more details on etags.
|
|
501
|
+
*/
|
|
502
|
+
etag: string;
|
|
503
|
+
/** Output only. Create time stamp */
|
|
504
|
+
createTime?: Date;
|
|
505
|
+
/** Output only. Update time stamp */
|
|
506
|
+
updateTime?: Date;
|
|
507
|
+
/** Required. The name of the service to which the quota preference is applied. */
|
|
508
|
+
service: string;
|
|
509
|
+
/**
|
|
510
|
+
* Required. The id of the quota to which the quota preference is applied. A
|
|
511
|
+
* quota name is unique in the service. For example, `CpusPerProjectPerRegion`
|
|
512
|
+
*/
|
|
513
|
+
quotaId: string;
|
|
514
|
+
/**
|
|
515
|
+
* Output only. Is the quota preference pending Google Cloud approval and
|
|
516
|
+
* fulfillment.
|
|
517
|
+
*/
|
|
518
|
+
reconciling: boolean;
|
|
519
|
+
/** The reason / justification for this quota preference. */
|
|
520
|
+
justification: string;
|
|
521
|
+
/**
|
|
522
|
+
* Input only. An email address that can be used to contact the user, in case
|
|
523
|
+
* Google Cloud needs more information to make a decision before additional
|
|
524
|
+
* quota can be granted.
|
|
525
|
+
*
|
|
526
|
+
* When requesting a quota increase, the email address is required.
|
|
527
|
+
* When requesting a quota decrease, the email address is optional.
|
|
528
|
+
* For example, the email address is optional when the
|
|
529
|
+
* `QuotaConfig.preferred_value` is smaller than the
|
|
530
|
+
* `QuotaDetails.reset_value`.
|
|
531
|
+
*/
|
|
532
|
+
contactEmail: string;
|
|
533
|
+
}
|
|
534
|
+
export interface QuotaPreferenceProtoMsg {
|
|
535
|
+
typeUrl: "/google.api.cloudquotas.v1beta.QuotaPreference";
|
|
536
|
+
value: Uint8Array;
|
|
537
|
+
}
|
|
538
|
+
/**
|
|
539
|
+
* QuotaPreference represents the preferred quota configuration specified for
|
|
540
|
+
* a project, folder or organization. There is only one QuotaPreference
|
|
541
|
+
* resource for a quota value targeting a unique set of dimensions.
|
|
542
|
+
* @name QuotaPreferenceAmino
|
|
543
|
+
* @package google.api.cloudquotas.v1beta
|
|
544
|
+
* @see proto type: google.api.cloudquotas.v1beta.QuotaPreference
|
|
545
|
+
*/
|
|
546
|
+
export interface QuotaPreferenceAmino {
|
|
547
|
+
/**
|
|
548
|
+
* Required except in the CREATE requests.
|
|
549
|
+
* The resource name of the quota preference.
|
|
550
|
+
* The path that follows `/locations` must be `/global`.
|
|
551
|
+
* For example:
|
|
552
|
+
* `projects/123/locations/global/quotaPreferences/my-config-for-us-east1`
|
|
553
|
+
*/
|
|
554
|
+
name?: string;
|
|
555
|
+
/**
|
|
556
|
+
* Immutable. The dimensions that this quota preference applies to. The key of
|
|
557
|
+
* the map entry is the name of a dimension, such as `region`, `zone`,
|
|
558
|
+
* `network_id`, and the value of the map entry is the dimension value.
|
|
559
|
+
*
|
|
560
|
+
* If a dimension is missing from the map of dimensions, the quota preference
|
|
561
|
+
* applies to all the dimension values except for those that have other quota
|
|
562
|
+
* preferences configured for the specific value.
|
|
563
|
+
*
|
|
564
|
+
* Note: QuotaPreferences can only be applied across all values of `user` and
|
|
565
|
+
* `resource` dimension. Do not set values for `user` or `resource` in the
|
|
566
|
+
* dimension map.
|
|
567
|
+
*
|
|
568
|
+
* For example: `{"provider" : "Example Organization"}` where `provider` is a
|
|
569
|
+
* service-specific quota dimension and `Example Organization` is the provider
|
|
570
|
+
* name.
|
|
571
|
+
*/
|
|
572
|
+
dimensions?: {
|
|
573
|
+
[key: string]: string;
|
|
574
|
+
};
|
|
575
|
+
/**
|
|
576
|
+
* Required. Preferred quota configuration.
|
|
577
|
+
*/
|
|
578
|
+
quota_config?: QuotaConfigAmino;
|
|
579
|
+
/**
|
|
580
|
+
* Optional. The current etag of the quota preference. If an etag is provided
|
|
581
|
+
* on update and does not match the current server's etag of the quota
|
|
582
|
+
* preference, the request will be blocked and an ABORTED error will be
|
|
583
|
+
* returned. See https://google.aip.dev/134#etags for more details on etags.
|
|
584
|
+
*/
|
|
585
|
+
etag?: string;
|
|
586
|
+
/**
|
|
587
|
+
* Output only. Create time stamp
|
|
588
|
+
*/
|
|
589
|
+
create_time?: string;
|
|
590
|
+
/**
|
|
591
|
+
* Output only. Update time stamp
|
|
592
|
+
*/
|
|
593
|
+
update_time?: string;
|
|
594
|
+
/**
|
|
595
|
+
* Required. The name of the service to which the quota preference is applied.
|
|
596
|
+
*/
|
|
597
|
+
service?: string;
|
|
598
|
+
/**
|
|
599
|
+
* Required. The id of the quota to which the quota preference is applied. A
|
|
600
|
+
* quota name is unique in the service. For example, `CpusPerProjectPerRegion`
|
|
601
|
+
*/
|
|
602
|
+
quota_id?: string;
|
|
603
|
+
/**
|
|
604
|
+
* Output only. Is the quota preference pending Google Cloud approval and
|
|
605
|
+
* fulfillment.
|
|
606
|
+
*/
|
|
607
|
+
reconciling?: boolean;
|
|
608
|
+
/**
|
|
609
|
+
* The reason / justification for this quota preference.
|
|
610
|
+
*/
|
|
611
|
+
justification?: string;
|
|
612
|
+
/**
|
|
613
|
+
* Input only. An email address that can be used to contact the user, in case
|
|
614
|
+
* Google Cloud needs more information to make a decision before additional
|
|
615
|
+
* quota can be granted.
|
|
616
|
+
*
|
|
617
|
+
* When requesting a quota increase, the email address is required.
|
|
618
|
+
* When requesting a quota decrease, the email address is optional.
|
|
619
|
+
* For example, the email address is optional when the
|
|
620
|
+
* `QuotaConfig.preferred_value` is smaller than the
|
|
621
|
+
* `QuotaDetails.reset_value`.
|
|
622
|
+
*/
|
|
623
|
+
contact_email?: string;
|
|
624
|
+
}
|
|
625
|
+
export interface QuotaPreferenceAminoMsg {
|
|
626
|
+
type: "/google.api.cloudquotas.v1beta.QuotaPreference";
|
|
627
|
+
value: QuotaPreferenceAmino;
|
|
628
|
+
}
|
|
629
|
+
/**
|
|
630
|
+
* QuotaPreference represents the preferred quota configuration specified for
|
|
631
|
+
* a project, folder or organization. There is only one QuotaPreference
|
|
632
|
+
* resource for a quota value targeting a unique set of dimensions.
|
|
633
|
+
*/
|
|
634
|
+
export interface QuotaPreferenceSDKType {
|
|
635
|
+
name: string;
|
|
636
|
+
dimensions: {
|
|
637
|
+
[key: string]: string;
|
|
638
|
+
};
|
|
639
|
+
quota_config?: QuotaConfigSDKType;
|
|
640
|
+
etag: string;
|
|
641
|
+
create_time?: Date;
|
|
642
|
+
update_time?: Date;
|
|
643
|
+
service: string;
|
|
644
|
+
quota_id: string;
|
|
645
|
+
reconciling: boolean;
|
|
646
|
+
justification: string;
|
|
647
|
+
contact_email: string;
|
|
648
|
+
}
|
|
649
|
+
export interface QuotaConfig_AnnotationsEntry {
|
|
650
|
+
key: string;
|
|
651
|
+
value: string;
|
|
652
|
+
}
|
|
653
|
+
export interface QuotaConfig_AnnotationsEntryProtoMsg {
|
|
654
|
+
typeUrl: string;
|
|
655
|
+
value: Uint8Array;
|
|
656
|
+
}
|
|
657
|
+
/**
|
|
658
|
+
* @name QuotaConfig_AnnotationsEntryAmino
|
|
659
|
+
* @package google.api.cloudquotas.v1beta
|
|
660
|
+
* @see proto type: google.api.cloudquotas.v1beta.QuotaConfig_AnnotationsEntry
|
|
661
|
+
*/
|
|
662
|
+
export interface QuotaConfig_AnnotationsEntryAmino {
|
|
663
|
+
key?: string;
|
|
664
|
+
value?: string;
|
|
665
|
+
}
|
|
666
|
+
export interface QuotaConfig_AnnotationsEntryAminoMsg {
|
|
667
|
+
type: string;
|
|
668
|
+
value: QuotaConfig_AnnotationsEntryAmino;
|
|
669
|
+
}
|
|
670
|
+
export interface QuotaConfig_AnnotationsEntrySDKType {
|
|
671
|
+
key: string;
|
|
672
|
+
value: string;
|
|
673
|
+
}
|
|
674
|
+
/** The preferred quota configuration. */
|
|
675
|
+
export interface QuotaConfig {
|
|
676
|
+
/**
|
|
677
|
+
* Required. The preferred value. Must be greater than or equal to -1. If set
|
|
678
|
+
* to -1, it means the value is "unlimited".
|
|
679
|
+
*/
|
|
680
|
+
preferredValue: bigint;
|
|
681
|
+
/** Output only. Optional details about the state of this quota preference. */
|
|
682
|
+
stateDetail: string;
|
|
683
|
+
/** Output only. Granted quota value. */
|
|
684
|
+
grantedValue?: Int64Value;
|
|
685
|
+
/**
|
|
686
|
+
* Output only. The trace id that the Google Cloud uses to provision the
|
|
687
|
+
* requested quota. This trace id may be used by the client to contact Cloud
|
|
688
|
+
* support to track the state of a quota preference request. The trace id is
|
|
689
|
+
* only produced for increase requests and is unique for each request. The
|
|
690
|
+
* quota decrease requests do not have a trace id.
|
|
691
|
+
*/
|
|
692
|
+
traceId: string;
|
|
693
|
+
/**
|
|
694
|
+
* Optional. The annotations map for clients to store small amounts of
|
|
695
|
+
* arbitrary data. Do not put PII or other sensitive information here. See
|
|
696
|
+
* https://google.aip.dev/128#annotations
|
|
697
|
+
*/
|
|
698
|
+
annotations: {
|
|
699
|
+
[key: string]: string;
|
|
700
|
+
};
|
|
701
|
+
/** Output only. The origin of the quota preference request. */
|
|
702
|
+
requestOrigin: QuotaConfig_Origin;
|
|
703
|
+
}
|
|
704
|
+
export interface QuotaConfigProtoMsg {
|
|
705
|
+
typeUrl: "/google.api.cloudquotas.v1beta.QuotaConfig";
|
|
706
|
+
value: Uint8Array;
|
|
707
|
+
}
|
|
708
|
+
/**
|
|
709
|
+
* The preferred quota configuration.
|
|
710
|
+
* @name QuotaConfigAmino
|
|
711
|
+
* @package google.api.cloudquotas.v1beta
|
|
712
|
+
* @see proto type: google.api.cloudquotas.v1beta.QuotaConfig
|
|
713
|
+
*/
|
|
714
|
+
export interface QuotaConfigAmino {
|
|
715
|
+
/**
|
|
716
|
+
* Required. The preferred value. Must be greater than or equal to -1. If set
|
|
717
|
+
* to -1, it means the value is "unlimited".
|
|
718
|
+
*/
|
|
719
|
+
preferred_value?: string;
|
|
720
|
+
/**
|
|
721
|
+
* Output only. Optional details about the state of this quota preference.
|
|
722
|
+
*/
|
|
723
|
+
state_detail?: string;
|
|
724
|
+
/**
|
|
725
|
+
* Output only. Granted quota value.
|
|
726
|
+
*/
|
|
727
|
+
granted_value?: Int64ValueAmino;
|
|
728
|
+
/**
|
|
729
|
+
* Output only. The trace id that the Google Cloud uses to provision the
|
|
730
|
+
* requested quota. This trace id may be used by the client to contact Cloud
|
|
731
|
+
* support to track the state of a quota preference request. The trace id is
|
|
732
|
+
* only produced for increase requests and is unique for each request. The
|
|
733
|
+
* quota decrease requests do not have a trace id.
|
|
734
|
+
*/
|
|
735
|
+
trace_id?: string;
|
|
736
|
+
/**
|
|
737
|
+
* Optional. The annotations map for clients to store small amounts of
|
|
738
|
+
* arbitrary data. Do not put PII or other sensitive information here. See
|
|
739
|
+
* https://google.aip.dev/128#annotations
|
|
740
|
+
*/
|
|
741
|
+
annotations?: {
|
|
742
|
+
[key: string]: string;
|
|
743
|
+
};
|
|
744
|
+
/**
|
|
745
|
+
* Output only. The origin of the quota preference request.
|
|
746
|
+
*/
|
|
747
|
+
request_origin?: QuotaConfig_Origin;
|
|
748
|
+
}
|
|
749
|
+
export interface QuotaConfigAminoMsg {
|
|
750
|
+
type: "/google.api.cloudquotas.v1beta.QuotaConfig";
|
|
751
|
+
value: QuotaConfigAmino;
|
|
752
|
+
}
|
|
753
|
+
/** The preferred quota configuration. */
|
|
754
|
+
export interface QuotaConfigSDKType {
|
|
755
|
+
preferred_value: bigint;
|
|
756
|
+
state_detail: string;
|
|
757
|
+
granted_value?: Int64ValueSDKType;
|
|
758
|
+
trace_id: string;
|
|
759
|
+
annotations: {
|
|
760
|
+
[key: string]: string;
|
|
761
|
+
};
|
|
762
|
+
request_origin: QuotaConfig_Origin;
|
|
763
|
+
}
|
|
764
|
+
export interface DimensionsInfo_DimensionsEntry {
|
|
765
|
+
key: string;
|
|
766
|
+
value: string;
|
|
767
|
+
}
|
|
768
|
+
export interface DimensionsInfo_DimensionsEntryProtoMsg {
|
|
769
|
+
typeUrl: string;
|
|
770
|
+
value: Uint8Array;
|
|
771
|
+
}
|
|
772
|
+
/**
|
|
773
|
+
* @name DimensionsInfo_DimensionsEntryAmino
|
|
774
|
+
* @package google.api.cloudquotas.v1beta
|
|
775
|
+
* @see proto type: google.api.cloudquotas.v1beta.DimensionsInfo_DimensionsEntry
|
|
776
|
+
*/
|
|
777
|
+
export interface DimensionsInfo_DimensionsEntryAmino {
|
|
778
|
+
key?: string;
|
|
779
|
+
value?: string;
|
|
780
|
+
}
|
|
781
|
+
export interface DimensionsInfo_DimensionsEntryAminoMsg {
|
|
782
|
+
type: string;
|
|
783
|
+
value: DimensionsInfo_DimensionsEntryAmino;
|
|
784
|
+
}
|
|
785
|
+
export interface DimensionsInfo_DimensionsEntrySDKType {
|
|
786
|
+
key: string;
|
|
787
|
+
value: string;
|
|
788
|
+
}
|
|
789
|
+
/**
|
|
790
|
+
* The detailed quota information such as effective quota value for a
|
|
791
|
+
* combination of dimensions.
|
|
792
|
+
*/
|
|
793
|
+
export interface DimensionsInfo {
|
|
794
|
+
/**
|
|
795
|
+
* The map of dimensions in key-value pairs. The key of a map entry
|
|
796
|
+
* is "region", "zone", or the name of a service-specific dimension, and the
|
|
797
|
+
* value of a map entry is the value of the dimension. If a dimension does
|
|
798
|
+
* not appear in the map of dimensions, the dimensions info applies to all
|
|
799
|
+
* the dimension values except for those that have another DimensionInfo
|
|
800
|
+
* instance configured for the specific value.
|
|
801
|
+
* For example: `{"provider" : "Example Organization"}` where `provider` is a
|
|
802
|
+
* service-specific quota dimension and `Example Organization` is the provider
|
|
803
|
+
* name.
|
|
804
|
+
*/
|
|
805
|
+
dimensions: {
|
|
806
|
+
[key: string]: string;
|
|
807
|
+
};
|
|
808
|
+
/** Quota details for the specified dimensions. */
|
|
809
|
+
details?: QuotaDetails;
|
|
810
|
+
/**
|
|
811
|
+
* The applicable regions or zones of this dimension. The field is
|
|
812
|
+
* set to ['global'] for quotas that are not per region or per zone.
|
|
813
|
+
* Otherwise, it will be set to the list of locations this dimension info is
|
|
814
|
+
* applicable to.
|
|
815
|
+
*/
|
|
816
|
+
applicableLocations: string[];
|
|
817
|
+
}
|
|
818
|
+
export interface DimensionsInfoProtoMsg {
|
|
819
|
+
typeUrl: "/google.api.cloudquotas.v1beta.DimensionsInfo";
|
|
820
|
+
value: Uint8Array;
|
|
821
|
+
}
|
|
822
|
+
/**
|
|
823
|
+
* The detailed quota information such as effective quota value for a
|
|
824
|
+
* combination of dimensions.
|
|
825
|
+
* @name DimensionsInfoAmino
|
|
826
|
+
* @package google.api.cloudquotas.v1beta
|
|
827
|
+
* @see proto type: google.api.cloudquotas.v1beta.DimensionsInfo
|
|
828
|
+
*/
|
|
829
|
+
export interface DimensionsInfoAmino {
|
|
830
|
+
/**
|
|
831
|
+
* The map of dimensions in key-value pairs. The key of a map entry
|
|
832
|
+
* is "region", "zone", or the name of a service-specific dimension, and the
|
|
833
|
+
* value of a map entry is the value of the dimension. If a dimension does
|
|
834
|
+
* not appear in the map of dimensions, the dimensions info applies to all
|
|
835
|
+
* the dimension values except for those that have another DimensionInfo
|
|
836
|
+
* instance configured for the specific value.
|
|
837
|
+
* For example: `{"provider" : "Example Organization"}` where `provider` is a
|
|
838
|
+
* service-specific quota dimension and `Example Organization` is the provider
|
|
839
|
+
* name.
|
|
840
|
+
*/
|
|
841
|
+
dimensions?: {
|
|
842
|
+
[key: string]: string;
|
|
843
|
+
};
|
|
844
|
+
/**
|
|
845
|
+
* Quota details for the specified dimensions.
|
|
846
|
+
*/
|
|
847
|
+
details?: QuotaDetailsAmino;
|
|
848
|
+
/**
|
|
849
|
+
* The applicable regions or zones of this dimension. The field is
|
|
850
|
+
* set to ['global'] for quotas that are not per region or per zone.
|
|
851
|
+
* Otherwise, it will be set to the list of locations this dimension info is
|
|
852
|
+
* applicable to.
|
|
853
|
+
*/
|
|
854
|
+
applicable_locations?: string[];
|
|
855
|
+
}
|
|
856
|
+
export interface DimensionsInfoAminoMsg {
|
|
857
|
+
type: "/google.api.cloudquotas.v1beta.DimensionsInfo";
|
|
858
|
+
value: DimensionsInfoAmino;
|
|
859
|
+
}
|
|
860
|
+
/**
|
|
861
|
+
* The detailed quota information such as effective quota value for a
|
|
862
|
+
* combination of dimensions.
|
|
863
|
+
*/
|
|
864
|
+
export interface DimensionsInfoSDKType {
|
|
865
|
+
dimensions: {
|
|
866
|
+
[key: string]: string;
|
|
867
|
+
};
|
|
868
|
+
details?: QuotaDetailsSDKType;
|
|
869
|
+
applicable_locations: string[];
|
|
870
|
+
}
|
|
871
|
+
/** The quota details for a map of dimensions. */
|
|
872
|
+
export interface QuotaDetails {
|
|
873
|
+
/** The value currently in effect and being enforced. */
|
|
874
|
+
value: bigint;
|
|
875
|
+
/**
|
|
876
|
+
* Rollout information of this quota.
|
|
877
|
+
* This field is present only if the effective limit will change due to the
|
|
878
|
+
* ongoing rollout of the service config.
|
|
879
|
+
*/
|
|
880
|
+
rolloutInfo?: RolloutInfo;
|
|
881
|
+
}
|
|
882
|
+
export interface QuotaDetailsProtoMsg {
|
|
883
|
+
typeUrl: "/google.api.cloudquotas.v1beta.QuotaDetails";
|
|
884
|
+
value: Uint8Array;
|
|
885
|
+
}
|
|
886
|
+
/**
|
|
887
|
+
* The quota details for a map of dimensions.
|
|
888
|
+
* @name QuotaDetailsAmino
|
|
889
|
+
* @package google.api.cloudquotas.v1beta
|
|
890
|
+
* @see proto type: google.api.cloudquotas.v1beta.QuotaDetails
|
|
891
|
+
*/
|
|
892
|
+
export interface QuotaDetailsAmino {
|
|
893
|
+
/**
|
|
894
|
+
* The value currently in effect and being enforced.
|
|
895
|
+
*/
|
|
896
|
+
value?: string;
|
|
897
|
+
/**
|
|
898
|
+
* Rollout information of this quota.
|
|
899
|
+
* This field is present only if the effective limit will change due to the
|
|
900
|
+
* ongoing rollout of the service config.
|
|
901
|
+
*/
|
|
902
|
+
rollout_info?: RolloutInfoAmino;
|
|
903
|
+
}
|
|
904
|
+
export interface QuotaDetailsAminoMsg {
|
|
905
|
+
type: "/google.api.cloudquotas.v1beta.QuotaDetails";
|
|
906
|
+
value: QuotaDetailsAmino;
|
|
907
|
+
}
|
|
908
|
+
/** The quota details for a map of dimensions. */
|
|
909
|
+
export interface QuotaDetailsSDKType {
|
|
910
|
+
value: bigint;
|
|
911
|
+
rollout_info?: RolloutInfoSDKType;
|
|
912
|
+
}
|
|
913
|
+
/** [Output only] Rollout information of a quota. */
|
|
914
|
+
export interface RolloutInfo {
|
|
915
|
+
/** Whether there is an ongoing rollout for a quota or not. */
|
|
916
|
+
ongoingRollout: boolean;
|
|
917
|
+
}
|
|
918
|
+
export interface RolloutInfoProtoMsg {
|
|
919
|
+
typeUrl: "/google.api.cloudquotas.v1beta.RolloutInfo";
|
|
920
|
+
value: Uint8Array;
|
|
921
|
+
}
|
|
922
|
+
/**
|
|
923
|
+
* [Output only] Rollout information of a quota.
|
|
924
|
+
* @name RolloutInfoAmino
|
|
925
|
+
* @package google.api.cloudquotas.v1beta
|
|
926
|
+
* @see proto type: google.api.cloudquotas.v1beta.RolloutInfo
|
|
927
|
+
*/
|
|
928
|
+
export interface RolloutInfoAmino {
|
|
929
|
+
/**
|
|
930
|
+
* Whether there is an ongoing rollout for a quota or not.
|
|
931
|
+
*/
|
|
932
|
+
ongoing_rollout?: boolean;
|
|
933
|
+
}
|
|
934
|
+
export interface RolloutInfoAminoMsg {
|
|
935
|
+
type: "/google.api.cloudquotas.v1beta.RolloutInfo";
|
|
936
|
+
value: RolloutInfoAmino;
|
|
937
|
+
}
|
|
938
|
+
/** [Output only] Rollout information of a quota. */
|
|
939
|
+
export interface RolloutInfoSDKType {
|
|
940
|
+
ongoing_rollout: boolean;
|
|
941
|
+
}
|
|
942
|
+
function createBaseQuotaInfo(): QuotaInfo {
|
|
943
|
+
return {
|
|
944
|
+
name: "",
|
|
945
|
+
quotaId: "",
|
|
946
|
+
metric: "",
|
|
947
|
+
service: "",
|
|
948
|
+
isPrecise: false,
|
|
949
|
+
refreshInterval: "",
|
|
950
|
+
containerType: 0,
|
|
951
|
+
dimensions: [],
|
|
952
|
+
metricDisplayName: "",
|
|
953
|
+
quotaDisplayName: "",
|
|
954
|
+
metricUnit: "",
|
|
955
|
+
quotaIncreaseEligibility: undefined,
|
|
956
|
+
isFixed: false,
|
|
957
|
+
dimensionsInfos: [],
|
|
958
|
+
isConcurrent: false,
|
|
959
|
+
serviceRequestQuotaUri: ""
|
|
960
|
+
};
|
|
961
|
+
}
|
|
962
|
+
export const QuotaInfo = {
|
|
963
|
+
typeUrl: "/google.api.cloudquotas.v1beta.QuotaInfo",
|
|
964
|
+
encode(message: QuotaInfo, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
965
|
+
if (message.name !== "") {
|
|
966
|
+
writer.uint32(10).string(message.name);
|
|
967
|
+
}
|
|
968
|
+
if (message.quotaId !== "") {
|
|
969
|
+
writer.uint32(18).string(message.quotaId);
|
|
970
|
+
}
|
|
971
|
+
if (message.metric !== "") {
|
|
972
|
+
writer.uint32(26).string(message.metric);
|
|
973
|
+
}
|
|
974
|
+
if (message.service !== "") {
|
|
975
|
+
writer.uint32(34).string(message.service);
|
|
976
|
+
}
|
|
977
|
+
if (message.isPrecise === true) {
|
|
978
|
+
writer.uint32(40).bool(message.isPrecise);
|
|
979
|
+
}
|
|
980
|
+
if (message.refreshInterval !== "") {
|
|
981
|
+
writer.uint32(50).string(message.refreshInterval);
|
|
982
|
+
}
|
|
983
|
+
if (message.containerType !== 0) {
|
|
984
|
+
writer.uint32(56).int32(message.containerType);
|
|
985
|
+
}
|
|
986
|
+
for (const v of message.dimensions) {
|
|
987
|
+
writer.uint32(66).string(v!);
|
|
988
|
+
}
|
|
989
|
+
if (message.metricDisplayName !== "") {
|
|
990
|
+
writer.uint32(74).string(message.metricDisplayName);
|
|
991
|
+
}
|
|
992
|
+
if (message.quotaDisplayName !== "") {
|
|
993
|
+
writer.uint32(82).string(message.quotaDisplayName);
|
|
994
|
+
}
|
|
995
|
+
if (message.metricUnit !== "") {
|
|
996
|
+
writer.uint32(90).string(message.metricUnit);
|
|
997
|
+
}
|
|
998
|
+
if (message.quotaIncreaseEligibility !== undefined) {
|
|
999
|
+
QuotaIncreaseEligibility.encode(message.quotaIncreaseEligibility, writer.uint32(98).fork()).ldelim();
|
|
1000
|
+
}
|
|
1001
|
+
if (message.isFixed === true) {
|
|
1002
|
+
writer.uint32(104).bool(message.isFixed);
|
|
1003
|
+
}
|
|
1004
|
+
for (const v of message.dimensionsInfos) {
|
|
1005
|
+
DimensionsInfo.encode(v!, writer.uint32(114).fork()).ldelim();
|
|
1006
|
+
}
|
|
1007
|
+
if (message.isConcurrent === true) {
|
|
1008
|
+
writer.uint32(120).bool(message.isConcurrent);
|
|
1009
|
+
}
|
|
1010
|
+
if (message.serviceRequestQuotaUri !== "") {
|
|
1011
|
+
writer.uint32(138).string(message.serviceRequestQuotaUri);
|
|
1012
|
+
}
|
|
1013
|
+
return writer;
|
|
1014
|
+
},
|
|
1015
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QuotaInfo {
|
|
1016
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1017
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1018
|
+
const message = createBaseQuotaInfo();
|
|
1019
|
+
while (reader.pos < end) {
|
|
1020
|
+
const tag = reader.uint32();
|
|
1021
|
+
switch (tag >>> 3) {
|
|
1022
|
+
case 1:
|
|
1023
|
+
message.name = reader.string();
|
|
1024
|
+
break;
|
|
1025
|
+
case 2:
|
|
1026
|
+
message.quotaId = reader.string();
|
|
1027
|
+
break;
|
|
1028
|
+
case 3:
|
|
1029
|
+
message.metric = reader.string();
|
|
1030
|
+
break;
|
|
1031
|
+
case 4:
|
|
1032
|
+
message.service = reader.string();
|
|
1033
|
+
break;
|
|
1034
|
+
case 5:
|
|
1035
|
+
message.isPrecise = reader.bool();
|
|
1036
|
+
break;
|
|
1037
|
+
case 6:
|
|
1038
|
+
message.refreshInterval = reader.string();
|
|
1039
|
+
break;
|
|
1040
|
+
case 7:
|
|
1041
|
+
message.containerType = reader.int32() as any;
|
|
1042
|
+
break;
|
|
1043
|
+
case 8:
|
|
1044
|
+
message.dimensions.push(reader.string());
|
|
1045
|
+
break;
|
|
1046
|
+
case 9:
|
|
1047
|
+
message.metricDisplayName = reader.string();
|
|
1048
|
+
break;
|
|
1049
|
+
case 10:
|
|
1050
|
+
message.quotaDisplayName = reader.string();
|
|
1051
|
+
break;
|
|
1052
|
+
case 11:
|
|
1053
|
+
message.metricUnit = reader.string();
|
|
1054
|
+
break;
|
|
1055
|
+
case 12:
|
|
1056
|
+
message.quotaIncreaseEligibility = QuotaIncreaseEligibility.decode(reader, reader.uint32());
|
|
1057
|
+
break;
|
|
1058
|
+
case 13:
|
|
1059
|
+
message.isFixed = reader.bool();
|
|
1060
|
+
break;
|
|
1061
|
+
case 14:
|
|
1062
|
+
message.dimensionsInfos.push(DimensionsInfo.decode(reader, reader.uint32()));
|
|
1063
|
+
break;
|
|
1064
|
+
case 15:
|
|
1065
|
+
message.isConcurrent = reader.bool();
|
|
1066
|
+
break;
|
|
1067
|
+
case 17:
|
|
1068
|
+
message.serviceRequestQuotaUri = reader.string();
|
|
1069
|
+
break;
|
|
1070
|
+
default:
|
|
1071
|
+
reader.skipType(tag & 7);
|
|
1072
|
+
break;
|
|
1073
|
+
}
|
|
1074
|
+
}
|
|
1075
|
+
return message;
|
|
1076
|
+
},
|
|
1077
|
+
fromPartial(object: Partial<QuotaInfo>): QuotaInfo {
|
|
1078
|
+
const message = createBaseQuotaInfo();
|
|
1079
|
+
message.name = object.name ?? "";
|
|
1080
|
+
message.quotaId = object.quotaId ?? "";
|
|
1081
|
+
message.metric = object.metric ?? "";
|
|
1082
|
+
message.service = object.service ?? "";
|
|
1083
|
+
message.isPrecise = object.isPrecise ?? false;
|
|
1084
|
+
message.refreshInterval = object.refreshInterval ?? "";
|
|
1085
|
+
message.containerType = object.containerType ?? 0;
|
|
1086
|
+
message.dimensions = object.dimensions?.map(e => e) || [];
|
|
1087
|
+
message.metricDisplayName = object.metricDisplayName ?? "";
|
|
1088
|
+
message.quotaDisplayName = object.quotaDisplayName ?? "";
|
|
1089
|
+
message.metricUnit = object.metricUnit ?? "";
|
|
1090
|
+
message.quotaIncreaseEligibility = object.quotaIncreaseEligibility !== undefined && object.quotaIncreaseEligibility !== null ? QuotaIncreaseEligibility.fromPartial(object.quotaIncreaseEligibility) : undefined;
|
|
1091
|
+
message.isFixed = object.isFixed ?? false;
|
|
1092
|
+
message.dimensionsInfos = object.dimensionsInfos?.map(e => DimensionsInfo.fromPartial(e)) || [];
|
|
1093
|
+
message.isConcurrent = object.isConcurrent ?? false;
|
|
1094
|
+
message.serviceRequestQuotaUri = object.serviceRequestQuotaUri ?? "";
|
|
1095
|
+
return message;
|
|
1096
|
+
},
|
|
1097
|
+
fromAmino(object: QuotaInfoAmino): QuotaInfo {
|
|
1098
|
+
const message = createBaseQuotaInfo();
|
|
1099
|
+
if (object.name !== undefined && object.name !== null) {
|
|
1100
|
+
message.name = object.name;
|
|
1101
|
+
}
|
|
1102
|
+
if (object.quota_id !== undefined && object.quota_id !== null) {
|
|
1103
|
+
message.quotaId = object.quota_id;
|
|
1104
|
+
}
|
|
1105
|
+
if (object.metric !== undefined && object.metric !== null) {
|
|
1106
|
+
message.metric = object.metric;
|
|
1107
|
+
}
|
|
1108
|
+
if (object.service !== undefined && object.service !== null) {
|
|
1109
|
+
message.service = object.service;
|
|
1110
|
+
}
|
|
1111
|
+
if (object.is_precise !== undefined && object.is_precise !== null) {
|
|
1112
|
+
message.isPrecise = object.is_precise;
|
|
1113
|
+
}
|
|
1114
|
+
if (object.refresh_interval !== undefined && object.refresh_interval !== null) {
|
|
1115
|
+
message.refreshInterval = object.refresh_interval;
|
|
1116
|
+
}
|
|
1117
|
+
if (object.container_type !== undefined && object.container_type !== null) {
|
|
1118
|
+
message.containerType = object.container_type;
|
|
1119
|
+
}
|
|
1120
|
+
message.dimensions = object.dimensions?.map(e => e) || [];
|
|
1121
|
+
if (object.metric_display_name !== undefined && object.metric_display_name !== null) {
|
|
1122
|
+
message.metricDisplayName = object.metric_display_name;
|
|
1123
|
+
}
|
|
1124
|
+
if (object.quota_display_name !== undefined && object.quota_display_name !== null) {
|
|
1125
|
+
message.quotaDisplayName = object.quota_display_name;
|
|
1126
|
+
}
|
|
1127
|
+
if (object.metric_unit !== undefined && object.metric_unit !== null) {
|
|
1128
|
+
message.metricUnit = object.metric_unit;
|
|
1129
|
+
}
|
|
1130
|
+
if (object.quota_increase_eligibility !== undefined && object.quota_increase_eligibility !== null) {
|
|
1131
|
+
message.quotaIncreaseEligibility = QuotaIncreaseEligibility.fromAmino(object.quota_increase_eligibility);
|
|
1132
|
+
}
|
|
1133
|
+
if (object.is_fixed !== undefined && object.is_fixed !== null) {
|
|
1134
|
+
message.isFixed = object.is_fixed;
|
|
1135
|
+
}
|
|
1136
|
+
message.dimensionsInfos = object.dimensions_infos?.map(e => DimensionsInfo.fromAmino(e)) || [];
|
|
1137
|
+
if (object.is_concurrent !== undefined && object.is_concurrent !== null) {
|
|
1138
|
+
message.isConcurrent = object.is_concurrent;
|
|
1139
|
+
}
|
|
1140
|
+
if (object.service_request_quota_uri !== undefined && object.service_request_quota_uri !== null) {
|
|
1141
|
+
message.serviceRequestQuotaUri = object.service_request_quota_uri;
|
|
1142
|
+
}
|
|
1143
|
+
return message;
|
|
1144
|
+
},
|
|
1145
|
+
toAmino(message: QuotaInfo): QuotaInfoAmino {
|
|
1146
|
+
const obj: any = {};
|
|
1147
|
+
obj.name = message.name === "" ? undefined : message.name;
|
|
1148
|
+
obj.quota_id = message.quotaId === "" ? undefined : message.quotaId;
|
|
1149
|
+
obj.metric = message.metric === "" ? undefined : message.metric;
|
|
1150
|
+
obj.service = message.service === "" ? undefined : message.service;
|
|
1151
|
+
obj.is_precise = message.isPrecise === false ? undefined : message.isPrecise;
|
|
1152
|
+
obj.refresh_interval = message.refreshInterval === "" ? undefined : message.refreshInterval;
|
|
1153
|
+
obj.container_type = message.containerType === 0 ? undefined : message.containerType;
|
|
1154
|
+
if (message.dimensions) {
|
|
1155
|
+
obj.dimensions = message.dimensions.map(e => e);
|
|
1156
|
+
} else {
|
|
1157
|
+
obj.dimensions = message.dimensions;
|
|
1158
|
+
}
|
|
1159
|
+
obj.metric_display_name = message.metricDisplayName === "" ? undefined : message.metricDisplayName;
|
|
1160
|
+
obj.quota_display_name = message.quotaDisplayName === "" ? undefined : message.quotaDisplayName;
|
|
1161
|
+
obj.metric_unit = message.metricUnit === "" ? undefined : message.metricUnit;
|
|
1162
|
+
obj.quota_increase_eligibility = message.quotaIncreaseEligibility ? QuotaIncreaseEligibility.toAmino(message.quotaIncreaseEligibility) : undefined;
|
|
1163
|
+
obj.is_fixed = message.isFixed === false ? undefined : message.isFixed;
|
|
1164
|
+
if (message.dimensionsInfos) {
|
|
1165
|
+
obj.dimensions_infos = message.dimensionsInfos.map(e => e ? DimensionsInfo.toAmino(e) : undefined);
|
|
1166
|
+
} else {
|
|
1167
|
+
obj.dimensions_infos = message.dimensionsInfos;
|
|
1168
|
+
}
|
|
1169
|
+
obj.is_concurrent = message.isConcurrent === false ? undefined : message.isConcurrent;
|
|
1170
|
+
obj.service_request_quota_uri = message.serviceRequestQuotaUri === "" ? undefined : message.serviceRequestQuotaUri;
|
|
1171
|
+
return obj;
|
|
1172
|
+
},
|
|
1173
|
+
fromAminoMsg(object: QuotaInfoAminoMsg): QuotaInfo {
|
|
1174
|
+
return QuotaInfo.fromAmino(object.value);
|
|
1175
|
+
},
|
|
1176
|
+
fromProtoMsg(message: QuotaInfoProtoMsg): QuotaInfo {
|
|
1177
|
+
return QuotaInfo.decode(message.value);
|
|
1178
|
+
},
|
|
1179
|
+
toProto(message: QuotaInfo): Uint8Array {
|
|
1180
|
+
return QuotaInfo.encode(message).finish();
|
|
1181
|
+
},
|
|
1182
|
+
toProtoMsg(message: QuotaInfo): QuotaInfoProtoMsg {
|
|
1183
|
+
return {
|
|
1184
|
+
typeUrl: "/google.api.cloudquotas.v1beta.QuotaInfo",
|
|
1185
|
+
value: QuotaInfo.encode(message).finish()
|
|
1186
|
+
};
|
|
1187
|
+
}
|
|
1188
|
+
};
|
|
1189
|
+
function createBaseQuotaIncreaseEligibility(): QuotaIncreaseEligibility {
|
|
1190
|
+
return {
|
|
1191
|
+
isEligible: false,
|
|
1192
|
+
ineligibilityReason: 0
|
|
1193
|
+
};
|
|
1194
|
+
}
|
|
1195
|
+
export const QuotaIncreaseEligibility = {
|
|
1196
|
+
typeUrl: "/google.api.cloudquotas.v1beta.QuotaIncreaseEligibility",
|
|
1197
|
+
encode(message: QuotaIncreaseEligibility, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1198
|
+
if (message.isEligible === true) {
|
|
1199
|
+
writer.uint32(8).bool(message.isEligible);
|
|
1200
|
+
}
|
|
1201
|
+
if (message.ineligibilityReason !== 0) {
|
|
1202
|
+
writer.uint32(16).int32(message.ineligibilityReason);
|
|
1203
|
+
}
|
|
1204
|
+
return writer;
|
|
1205
|
+
},
|
|
1206
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QuotaIncreaseEligibility {
|
|
1207
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1208
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1209
|
+
const message = createBaseQuotaIncreaseEligibility();
|
|
1210
|
+
while (reader.pos < end) {
|
|
1211
|
+
const tag = reader.uint32();
|
|
1212
|
+
switch (tag >>> 3) {
|
|
1213
|
+
case 1:
|
|
1214
|
+
message.isEligible = reader.bool();
|
|
1215
|
+
break;
|
|
1216
|
+
case 2:
|
|
1217
|
+
message.ineligibilityReason = reader.int32() as any;
|
|
1218
|
+
break;
|
|
1219
|
+
default:
|
|
1220
|
+
reader.skipType(tag & 7);
|
|
1221
|
+
break;
|
|
1222
|
+
}
|
|
1223
|
+
}
|
|
1224
|
+
return message;
|
|
1225
|
+
},
|
|
1226
|
+
fromPartial(object: Partial<QuotaIncreaseEligibility>): QuotaIncreaseEligibility {
|
|
1227
|
+
const message = createBaseQuotaIncreaseEligibility();
|
|
1228
|
+
message.isEligible = object.isEligible ?? false;
|
|
1229
|
+
message.ineligibilityReason = object.ineligibilityReason ?? 0;
|
|
1230
|
+
return message;
|
|
1231
|
+
},
|
|
1232
|
+
fromAmino(object: QuotaIncreaseEligibilityAmino): QuotaIncreaseEligibility {
|
|
1233
|
+
const message = createBaseQuotaIncreaseEligibility();
|
|
1234
|
+
if (object.is_eligible !== undefined && object.is_eligible !== null) {
|
|
1235
|
+
message.isEligible = object.is_eligible;
|
|
1236
|
+
}
|
|
1237
|
+
if (object.ineligibility_reason !== undefined && object.ineligibility_reason !== null) {
|
|
1238
|
+
message.ineligibilityReason = object.ineligibility_reason;
|
|
1239
|
+
}
|
|
1240
|
+
return message;
|
|
1241
|
+
},
|
|
1242
|
+
toAmino(message: QuotaIncreaseEligibility): QuotaIncreaseEligibilityAmino {
|
|
1243
|
+
const obj: any = {};
|
|
1244
|
+
obj.is_eligible = message.isEligible === false ? undefined : message.isEligible;
|
|
1245
|
+
obj.ineligibility_reason = message.ineligibilityReason === 0 ? undefined : message.ineligibilityReason;
|
|
1246
|
+
return obj;
|
|
1247
|
+
},
|
|
1248
|
+
fromAminoMsg(object: QuotaIncreaseEligibilityAminoMsg): QuotaIncreaseEligibility {
|
|
1249
|
+
return QuotaIncreaseEligibility.fromAmino(object.value);
|
|
1250
|
+
},
|
|
1251
|
+
fromProtoMsg(message: QuotaIncreaseEligibilityProtoMsg): QuotaIncreaseEligibility {
|
|
1252
|
+
return QuotaIncreaseEligibility.decode(message.value);
|
|
1253
|
+
},
|
|
1254
|
+
toProto(message: QuotaIncreaseEligibility): Uint8Array {
|
|
1255
|
+
return QuotaIncreaseEligibility.encode(message).finish();
|
|
1256
|
+
},
|
|
1257
|
+
toProtoMsg(message: QuotaIncreaseEligibility): QuotaIncreaseEligibilityProtoMsg {
|
|
1258
|
+
return {
|
|
1259
|
+
typeUrl: "/google.api.cloudquotas.v1beta.QuotaIncreaseEligibility",
|
|
1260
|
+
value: QuotaIncreaseEligibility.encode(message).finish()
|
|
1261
|
+
};
|
|
1262
|
+
}
|
|
1263
|
+
};
|
|
1264
|
+
function createBaseQuotaPreference_DimensionsEntry(): QuotaPreference_DimensionsEntry {
|
|
1265
|
+
return {
|
|
1266
|
+
key: "",
|
|
1267
|
+
value: ""
|
|
1268
|
+
};
|
|
1269
|
+
}
|
|
1270
|
+
export const QuotaPreference_DimensionsEntry = {
|
|
1271
|
+
encode(message: QuotaPreference_DimensionsEntry, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1272
|
+
if (message.key !== "") {
|
|
1273
|
+
writer.uint32(10).string(message.key);
|
|
1274
|
+
}
|
|
1275
|
+
if (message.value !== "") {
|
|
1276
|
+
writer.uint32(18).string(message.value);
|
|
1277
|
+
}
|
|
1278
|
+
return writer;
|
|
1279
|
+
},
|
|
1280
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QuotaPreference_DimensionsEntry {
|
|
1281
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1282
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1283
|
+
const message = createBaseQuotaPreference_DimensionsEntry();
|
|
1284
|
+
while (reader.pos < end) {
|
|
1285
|
+
const tag = reader.uint32();
|
|
1286
|
+
switch (tag >>> 3) {
|
|
1287
|
+
case 1:
|
|
1288
|
+
message.key = reader.string();
|
|
1289
|
+
break;
|
|
1290
|
+
case 2:
|
|
1291
|
+
message.value = reader.string();
|
|
1292
|
+
break;
|
|
1293
|
+
default:
|
|
1294
|
+
reader.skipType(tag & 7);
|
|
1295
|
+
break;
|
|
1296
|
+
}
|
|
1297
|
+
}
|
|
1298
|
+
return message;
|
|
1299
|
+
},
|
|
1300
|
+
fromPartial(object: Partial<QuotaPreference_DimensionsEntry>): QuotaPreference_DimensionsEntry {
|
|
1301
|
+
const message = createBaseQuotaPreference_DimensionsEntry();
|
|
1302
|
+
message.key = object.key ?? "";
|
|
1303
|
+
message.value = object.value ?? "";
|
|
1304
|
+
return message;
|
|
1305
|
+
},
|
|
1306
|
+
fromAmino(object: QuotaPreference_DimensionsEntryAmino): QuotaPreference_DimensionsEntry {
|
|
1307
|
+
const message = createBaseQuotaPreference_DimensionsEntry();
|
|
1308
|
+
if (object.key !== undefined && object.key !== null) {
|
|
1309
|
+
message.key = object.key;
|
|
1310
|
+
}
|
|
1311
|
+
if (object.value !== undefined && object.value !== null) {
|
|
1312
|
+
message.value = object.value;
|
|
1313
|
+
}
|
|
1314
|
+
return message;
|
|
1315
|
+
},
|
|
1316
|
+
toAmino(message: QuotaPreference_DimensionsEntry): QuotaPreference_DimensionsEntryAmino {
|
|
1317
|
+
const obj: any = {};
|
|
1318
|
+
obj.key = message.key === "" ? undefined : message.key;
|
|
1319
|
+
obj.value = message.value === "" ? undefined : message.value;
|
|
1320
|
+
return obj;
|
|
1321
|
+
},
|
|
1322
|
+
fromAminoMsg(object: QuotaPreference_DimensionsEntryAminoMsg): QuotaPreference_DimensionsEntry {
|
|
1323
|
+
return QuotaPreference_DimensionsEntry.fromAmino(object.value);
|
|
1324
|
+
},
|
|
1325
|
+
fromProtoMsg(message: QuotaPreference_DimensionsEntryProtoMsg): QuotaPreference_DimensionsEntry {
|
|
1326
|
+
return QuotaPreference_DimensionsEntry.decode(message.value);
|
|
1327
|
+
},
|
|
1328
|
+
toProto(message: QuotaPreference_DimensionsEntry): Uint8Array {
|
|
1329
|
+
return QuotaPreference_DimensionsEntry.encode(message).finish();
|
|
1330
|
+
}
|
|
1331
|
+
};
|
|
1332
|
+
function createBaseQuotaPreference(): QuotaPreference {
|
|
1333
|
+
return {
|
|
1334
|
+
name: "",
|
|
1335
|
+
dimensions: {},
|
|
1336
|
+
quotaConfig: undefined,
|
|
1337
|
+
etag: "",
|
|
1338
|
+
createTime: undefined,
|
|
1339
|
+
updateTime: undefined,
|
|
1340
|
+
service: "",
|
|
1341
|
+
quotaId: "",
|
|
1342
|
+
reconciling: false,
|
|
1343
|
+
justification: "",
|
|
1344
|
+
contactEmail: ""
|
|
1345
|
+
};
|
|
1346
|
+
}
|
|
1347
|
+
export const QuotaPreference = {
|
|
1348
|
+
typeUrl: "/google.api.cloudquotas.v1beta.QuotaPreference",
|
|
1349
|
+
encode(message: QuotaPreference, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1350
|
+
if (message.name !== "") {
|
|
1351
|
+
writer.uint32(10).string(message.name);
|
|
1352
|
+
}
|
|
1353
|
+
Object.entries(message.dimensions).forEach(([key, value]) => {
|
|
1354
|
+
QuotaPreference_DimensionsEntry.encode({
|
|
1355
|
+
key: key as any,
|
|
1356
|
+
value
|
|
1357
|
+
}, writer.uint32(18).fork()).ldelim();
|
|
1358
|
+
});
|
|
1359
|
+
if (message.quotaConfig !== undefined) {
|
|
1360
|
+
QuotaConfig.encode(message.quotaConfig, writer.uint32(26).fork()).ldelim();
|
|
1361
|
+
}
|
|
1362
|
+
if (message.etag !== "") {
|
|
1363
|
+
writer.uint32(34).string(message.etag);
|
|
1364
|
+
}
|
|
1365
|
+
if (message.createTime !== undefined) {
|
|
1366
|
+
Timestamp.encode(toTimestamp(message.createTime), writer.uint32(42).fork()).ldelim();
|
|
1367
|
+
}
|
|
1368
|
+
if (message.updateTime !== undefined) {
|
|
1369
|
+
Timestamp.encode(toTimestamp(message.updateTime), writer.uint32(50).fork()).ldelim();
|
|
1370
|
+
}
|
|
1371
|
+
if (message.service !== "") {
|
|
1372
|
+
writer.uint32(58).string(message.service);
|
|
1373
|
+
}
|
|
1374
|
+
if (message.quotaId !== "") {
|
|
1375
|
+
writer.uint32(66).string(message.quotaId);
|
|
1376
|
+
}
|
|
1377
|
+
if (message.reconciling === true) {
|
|
1378
|
+
writer.uint32(80).bool(message.reconciling);
|
|
1379
|
+
}
|
|
1380
|
+
if (message.justification !== "") {
|
|
1381
|
+
writer.uint32(90).string(message.justification);
|
|
1382
|
+
}
|
|
1383
|
+
if (message.contactEmail !== "") {
|
|
1384
|
+
writer.uint32(98).string(message.contactEmail);
|
|
1385
|
+
}
|
|
1386
|
+
return writer;
|
|
1387
|
+
},
|
|
1388
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QuotaPreference {
|
|
1389
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1390
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1391
|
+
const message = createBaseQuotaPreference();
|
|
1392
|
+
while (reader.pos < end) {
|
|
1393
|
+
const tag = reader.uint32();
|
|
1394
|
+
switch (tag >>> 3) {
|
|
1395
|
+
case 1:
|
|
1396
|
+
message.name = reader.string();
|
|
1397
|
+
break;
|
|
1398
|
+
case 2:
|
|
1399
|
+
const entry2 = QuotaPreference_DimensionsEntry.decode(reader, reader.uint32());
|
|
1400
|
+
if (entry2.value !== undefined) {
|
|
1401
|
+
message.dimensions[entry2.key] = entry2.value;
|
|
1402
|
+
}
|
|
1403
|
+
break;
|
|
1404
|
+
case 3:
|
|
1405
|
+
message.quotaConfig = QuotaConfig.decode(reader, reader.uint32());
|
|
1406
|
+
break;
|
|
1407
|
+
case 4:
|
|
1408
|
+
message.etag = reader.string();
|
|
1409
|
+
break;
|
|
1410
|
+
case 5:
|
|
1411
|
+
message.createTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
1412
|
+
break;
|
|
1413
|
+
case 6:
|
|
1414
|
+
message.updateTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
1415
|
+
break;
|
|
1416
|
+
case 7:
|
|
1417
|
+
message.service = reader.string();
|
|
1418
|
+
break;
|
|
1419
|
+
case 8:
|
|
1420
|
+
message.quotaId = reader.string();
|
|
1421
|
+
break;
|
|
1422
|
+
case 10:
|
|
1423
|
+
message.reconciling = reader.bool();
|
|
1424
|
+
break;
|
|
1425
|
+
case 11:
|
|
1426
|
+
message.justification = reader.string();
|
|
1427
|
+
break;
|
|
1428
|
+
case 12:
|
|
1429
|
+
message.contactEmail = reader.string();
|
|
1430
|
+
break;
|
|
1431
|
+
default:
|
|
1432
|
+
reader.skipType(tag & 7);
|
|
1433
|
+
break;
|
|
1434
|
+
}
|
|
1435
|
+
}
|
|
1436
|
+
return message;
|
|
1437
|
+
},
|
|
1438
|
+
fromPartial(object: Partial<QuotaPreference>): QuotaPreference {
|
|
1439
|
+
const message = createBaseQuotaPreference();
|
|
1440
|
+
message.name = object.name ?? "";
|
|
1441
|
+
message.dimensions = Object.entries(object.dimensions ?? {}).reduce<{
|
|
1442
|
+
[key: string]: string;
|
|
1443
|
+
}>((acc, [key, value]) => {
|
|
1444
|
+
if (value !== undefined) {
|
|
1445
|
+
acc[key] = String(value);
|
|
1446
|
+
}
|
|
1447
|
+
return acc;
|
|
1448
|
+
}, {});
|
|
1449
|
+
message.quotaConfig = object.quotaConfig !== undefined && object.quotaConfig !== null ? QuotaConfig.fromPartial(object.quotaConfig) : undefined;
|
|
1450
|
+
message.etag = object.etag ?? "";
|
|
1451
|
+
message.createTime = object.createTime ?? undefined;
|
|
1452
|
+
message.updateTime = object.updateTime ?? undefined;
|
|
1453
|
+
message.service = object.service ?? "";
|
|
1454
|
+
message.quotaId = object.quotaId ?? "";
|
|
1455
|
+
message.reconciling = object.reconciling ?? false;
|
|
1456
|
+
message.justification = object.justification ?? "";
|
|
1457
|
+
message.contactEmail = object.contactEmail ?? "";
|
|
1458
|
+
return message;
|
|
1459
|
+
},
|
|
1460
|
+
fromAmino(object: QuotaPreferenceAmino): QuotaPreference {
|
|
1461
|
+
const message = createBaseQuotaPreference();
|
|
1462
|
+
if (object.name !== undefined && object.name !== null) {
|
|
1463
|
+
message.name = object.name;
|
|
1464
|
+
}
|
|
1465
|
+
message.dimensions = Object.entries(object.dimensions ?? {}).reduce<{
|
|
1466
|
+
[key: string]: string;
|
|
1467
|
+
}>((acc, [key, value]) => {
|
|
1468
|
+
if (value !== undefined) {
|
|
1469
|
+
acc[key] = String(value);
|
|
1470
|
+
}
|
|
1471
|
+
return acc;
|
|
1472
|
+
}, {});
|
|
1473
|
+
if (object.quota_config !== undefined && object.quota_config !== null) {
|
|
1474
|
+
message.quotaConfig = QuotaConfig.fromAmino(object.quota_config);
|
|
1475
|
+
}
|
|
1476
|
+
if (object.etag !== undefined && object.etag !== null) {
|
|
1477
|
+
message.etag = object.etag;
|
|
1478
|
+
}
|
|
1479
|
+
if (object.create_time !== undefined && object.create_time !== null) {
|
|
1480
|
+
message.createTime = fromTimestamp(Timestamp.fromAmino(object.create_time));
|
|
1481
|
+
}
|
|
1482
|
+
if (object.update_time !== undefined && object.update_time !== null) {
|
|
1483
|
+
message.updateTime = fromTimestamp(Timestamp.fromAmino(object.update_time));
|
|
1484
|
+
}
|
|
1485
|
+
if (object.service !== undefined && object.service !== null) {
|
|
1486
|
+
message.service = object.service;
|
|
1487
|
+
}
|
|
1488
|
+
if (object.quota_id !== undefined && object.quota_id !== null) {
|
|
1489
|
+
message.quotaId = object.quota_id;
|
|
1490
|
+
}
|
|
1491
|
+
if (object.reconciling !== undefined && object.reconciling !== null) {
|
|
1492
|
+
message.reconciling = object.reconciling;
|
|
1493
|
+
}
|
|
1494
|
+
if (object.justification !== undefined && object.justification !== null) {
|
|
1495
|
+
message.justification = object.justification;
|
|
1496
|
+
}
|
|
1497
|
+
if (object.contact_email !== undefined && object.contact_email !== null) {
|
|
1498
|
+
message.contactEmail = object.contact_email;
|
|
1499
|
+
}
|
|
1500
|
+
return message;
|
|
1501
|
+
},
|
|
1502
|
+
toAmino(message: QuotaPreference): QuotaPreferenceAmino {
|
|
1503
|
+
const obj: any = {};
|
|
1504
|
+
obj.name = message.name === "" ? undefined : message.name;
|
|
1505
|
+
obj.dimensions = {};
|
|
1506
|
+
if (message.dimensions) {
|
|
1507
|
+
Object.entries(message.dimensions).forEach(([k, v]) => {
|
|
1508
|
+
obj.dimensions[k] = v;
|
|
1509
|
+
});
|
|
1510
|
+
}
|
|
1511
|
+
obj.quota_config = message.quotaConfig ? QuotaConfig.toAmino(message.quotaConfig) : undefined;
|
|
1512
|
+
obj.etag = message.etag === "" ? undefined : message.etag;
|
|
1513
|
+
obj.create_time = message.createTime ? Timestamp.toAmino(toTimestamp(message.createTime)) : undefined;
|
|
1514
|
+
obj.update_time = message.updateTime ? Timestamp.toAmino(toTimestamp(message.updateTime)) : undefined;
|
|
1515
|
+
obj.service = message.service === "" ? undefined : message.service;
|
|
1516
|
+
obj.quota_id = message.quotaId === "" ? undefined : message.quotaId;
|
|
1517
|
+
obj.reconciling = message.reconciling === false ? undefined : message.reconciling;
|
|
1518
|
+
obj.justification = message.justification === "" ? undefined : message.justification;
|
|
1519
|
+
obj.contact_email = message.contactEmail === "" ? undefined : message.contactEmail;
|
|
1520
|
+
return obj;
|
|
1521
|
+
},
|
|
1522
|
+
fromAminoMsg(object: QuotaPreferenceAminoMsg): QuotaPreference {
|
|
1523
|
+
return QuotaPreference.fromAmino(object.value);
|
|
1524
|
+
},
|
|
1525
|
+
fromProtoMsg(message: QuotaPreferenceProtoMsg): QuotaPreference {
|
|
1526
|
+
return QuotaPreference.decode(message.value);
|
|
1527
|
+
},
|
|
1528
|
+
toProto(message: QuotaPreference): Uint8Array {
|
|
1529
|
+
return QuotaPreference.encode(message).finish();
|
|
1530
|
+
},
|
|
1531
|
+
toProtoMsg(message: QuotaPreference): QuotaPreferenceProtoMsg {
|
|
1532
|
+
return {
|
|
1533
|
+
typeUrl: "/google.api.cloudquotas.v1beta.QuotaPreference",
|
|
1534
|
+
value: QuotaPreference.encode(message).finish()
|
|
1535
|
+
};
|
|
1536
|
+
}
|
|
1537
|
+
};
|
|
1538
|
+
function createBaseQuotaConfig_AnnotationsEntry(): QuotaConfig_AnnotationsEntry {
|
|
1539
|
+
return {
|
|
1540
|
+
key: "",
|
|
1541
|
+
value: ""
|
|
1542
|
+
};
|
|
1543
|
+
}
|
|
1544
|
+
export const QuotaConfig_AnnotationsEntry = {
|
|
1545
|
+
encode(message: QuotaConfig_AnnotationsEntry, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1546
|
+
if (message.key !== "") {
|
|
1547
|
+
writer.uint32(10).string(message.key);
|
|
1548
|
+
}
|
|
1549
|
+
if (message.value !== "") {
|
|
1550
|
+
writer.uint32(18).string(message.value);
|
|
1551
|
+
}
|
|
1552
|
+
return writer;
|
|
1553
|
+
},
|
|
1554
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QuotaConfig_AnnotationsEntry {
|
|
1555
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1556
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1557
|
+
const message = createBaseQuotaConfig_AnnotationsEntry();
|
|
1558
|
+
while (reader.pos < end) {
|
|
1559
|
+
const tag = reader.uint32();
|
|
1560
|
+
switch (tag >>> 3) {
|
|
1561
|
+
case 1:
|
|
1562
|
+
message.key = reader.string();
|
|
1563
|
+
break;
|
|
1564
|
+
case 2:
|
|
1565
|
+
message.value = reader.string();
|
|
1566
|
+
break;
|
|
1567
|
+
default:
|
|
1568
|
+
reader.skipType(tag & 7);
|
|
1569
|
+
break;
|
|
1570
|
+
}
|
|
1571
|
+
}
|
|
1572
|
+
return message;
|
|
1573
|
+
},
|
|
1574
|
+
fromPartial(object: Partial<QuotaConfig_AnnotationsEntry>): QuotaConfig_AnnotationsEntry {
|
|
1575
|
+
const message = createBaseQuotaConfig_AnnotationsEntry();
|
|
1576
|
+
message.key = object.key ?? "";
|
|
1577
|
+
message.value = object.value ?? "";
|
|
1578
|
+
return message;
|
|
1579
|
+
},
|
|
1580
|
+
fromAmino(object: QuotaConfig_AnnotationsEntryAmino): QuotaConfig_AnnotationsEntry {
|
|
1581
|
+
const message = createBaseQuotaConfig_AnnotationsEntry();
|
|
1582
|
+
if (object.key !== undefined && object.key !== null) {
|
|
1583
|
+
message.key = object.key;
|
|
1584
|
+
}
|
|
1585
|
+
if (object.value !== undefined && object.value !== null) {
|
|
1586
|
+
message.value = object.value;
|
|
1587
|
+
}
|
|
1588
|
+
return message;
|
|
1589
|
+
},
|
|
1590
|
+
toAmino(message: QuotaConfig_AnnotationsEntry): QuotaConfig_AnnotationsEntryAmino {
|
|
1591
|
+
const obj: any = {};
|
|
1592
|
+
obj.key = message.key === "" ? undefined : message.key;
|
|
1593
|
+
obj.value = message.value === "" ? undefined : message.value;
|
|
1594
|
+
return obj;
|
|
1595
|
+
},
|
|
1596
|
+
fromAminoMsg(object: QuotaConfig_AnnotationsEntryAminoMsg): QuotaConfig_AnnotationsEntry {
|
|
1597
|
+
return QuotaConfig_AnnotationsEntry.fromAmino(object.value);
|
|
1598
|
+
},
|
|
1599
|
+
fromProtoMsg(message: QuotaConfig_AnnotationsEntryProtoMsg): QuotaConfig_AnnotationsEntry {
|
|
1600
|
+
return QuotaConfig_AnnotationsEntry.decode(message.value);
|
|
1601
|
+
},
|
|
1602
|
+
toProto(message: QuotaConfig_AnnotationsEntry): Uint8Array {
|
|
1603
|
+
return QuotaConfig_AnnotationsEntry.encode(message).finish();
|
|
1604
|
+
}
|
|
1605
|
+
};
|
|
1606
|
+
function createBaseQuotaConfig(): QuotaConfig {
|
|
1607
|
+
return {
|
|
1608
|
+
preferredValue: BigInt(0),
|
|
1609
|
+
stateDetail: "",
|
|
1610
|
+
grantedValue: undefined,
|
|
1611
|
+
traceId: "",
|
|
1612
|
+
annotations: {},
|
|
1613
|
+
requestOrigin: 0
|
|
1614
|
+
};
|
|
1615
|
+
}
|
|
1616
|
+
export const QuotaConfig = {
|
|
1617
|
+
typeUrl: "/google.api.cloudquotas.v1beta.QuotaConfig",
|
|
1618
|
+
encode(message: QuotaConfig, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1619
|
+
if (message.preferredValue !== BigInt(0)) {
|
|
1620
|
+
writer.uint32(8).int64(message.preferredValue);
|
|
1621
|
+
}
|
|
1622
|
+
if (message.stateDetail !== "") {
|
|
1623
|
+
writer.uint32(18).string(message.stateDetail);
|
|
1624
|
+
}
|
|
1625
|
+
if (message.grantedValue !== undefined) {
|
|
1626
|
+
Int64Value.encode(message.grantedValue, writer.uint32(26).fork()).ldelim();
|
|
1627
|
+
}
|
|
1628
|
+
if (message.traceId !== "") {
|
|
1629
|
+
writer.uint32(34).string(message.traceId);
|
|
1630
|
+
}
|
|
1631
|
+
Object.entries(message.annotations).forEach(([key, value]) => {
|
|
1632
|
+
QuotaConfig_AnnotationsEntry.encode({
|
|
1633
|
+
key: key as any,
|
|
1634
|
+
value
|
|
1635
|
+
}, writer.uint32(42).fork()).ldelim();
|
|
1636
|
+
});
|
|
1637
|
+
if (message.requestOrigin !== 0) {
|
|
1638
|
+
writer.uint32(48).int32(message.requestOrigin);
|
|
1639
|
+
}
|
|
1640
|
+
return writer;
|
|
1641
|
+
},
|
|
1642
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QuotaConfig {
|
|
1643
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1644
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1645
|
+
const message = createBaseQuotaConfig();
|
|
1646
|
+
while (reader.pos < end) {
|
|
1647
|
+
const tag = reader.uint32();
|
|
1648
|
+
switch (tag >>> 3) {
|
|
1649
|
+
case 1:
|
|
1650
|
+
message.preferredValue = reader.int64();
|
|
1651
|
+
break;
|
|
1652
|
+
case 2:
|
|
1653
|
+
message.stateDetail = reader.string();
|
|
1654
|
+
break;
|
|
1655
|
+
case 3:
|
|
1656
|
+
message.grantedValue = Int64Value.decode(reader, reader.uint32());
|
|
1657
|
+
break;
|
|
1658
|
+
case 4:
|
|
1659
|
+
message.traceId = reader.string();
|
|
1660
|
+
break;
|
|
1661
|
+
case 5:
|
|
1662
|
+
const entry5 = QuotaConfig_AnnotationsEntry.decode(reader, reader.uint32());
|
|
1663
|
+
if (entry5.value !== undefined) {
|
|
1664
|
+
message.annotations[entry5.key] = entry5.value;
|
|
1665
|
+
}
|
|
1666
|
+
break;
|
|
1667
|
+
case 6:
|
|
1668
|
+
message.requestOrigin = reader.int32() as any;
|
|
1669
|
+
break;
|
|
1670
|
+
default:
|
|
1671
|
+
reader.skipType(tag & 7);
|
|
1672
|
+
break;
|
|
1673
|
+
}
|
|
1674
|
+
}
|
|
1675
|
+
return message;
|
|
1676
|
+
},
|
|
1677
|
+
fromPartial(object: Partial<QuotaConfig>): QuotaConfig {
|
|
1678
|
+
const message = createBaseQuotaConfig();
|
|
1679
|
+
message.preferredValue = object.preferredValue !== undefined && object.preferredValue !== null ? BigInt(object.preferredValue.toString()) : BigInt(0);
|
|
1680
|
+
message.stateDetail = object.stateDetail ?? "";
|
|
1681
|
+
message.grantedValue = object.grantedValue !== undefined && object.grantedValue !== null ? Int64Value.fromPartial(object.grantedValue) : undefined;
|
|
1682
|
+
message.traceId = object.traceId ?? "";
|
|
1683
|
+
message.annotations = Object.entries(object.annotations ?? {}).reduce<{
|
|
1684
|
+
[key: string]: string;
|
|
1685
|
+
}>((acc, [key, value]) => {
|
|
1686
|
+
if (value !== undefined) {
|
|
1687
|
+
acc[key] = String(value);
|
|
1688
|
+
}
|
|
1689
|
+
return acc;
|
|
1690
|
+
}, {});
|
|
1691
|
+
message.requestOrigin = object.requestOrigin ?? 0;
|
|
1692
|
+
return message;
|
|
1693
|
+
},
|
|
1694
|
+
fromAmino(object: QuotaConfigAmino): QuotaConfig {
|
|
1695
|
+
const message = createBaseQuotaConfig();
|
|
1696
|
+
if (object.preferred_value !== undefined && object.preferred_value !== null) {
|
|
1697
|
+
message.preferredValue = BigInt(object.preferred_value);
|
|
1698
|
+
}
|
|
1699
|
+
if (object.state_detail !== undefined && object.state_detail !== null) {
|
|
1700
|
+
message.stateDetail = object.state_detail;
|
|
1701
|
+
}
|
|
1702
|
+
if (object.granted_value !== undefined && object.granted_value !== null) {
|
|
1703
|
+
message.grantedValue = Int64Value.fromAmino(object.granted_value);
|
|
1704
|
+
}
|
|
1705
|
+
if (object.trace_id !== undefined && object.trace_id !== null) {
|
|
1706
|
+
message.traceId = object.trace_id;
|
|
1707
|
+
}
|
|
1708
|
+
message.annotations = Object.entries(object.annotations ?? {}).reduce<{
|
|
1709
|
+
[key: string]: string;
|
|
1710
|
+
}>((acc, [key, value]) => {
|
|
1711
|
+
if (value !== undefined) {
|
|
1712
|
+
acc[key] = String(value);
|
|
1713
|
+
}
|
|
1714
|
+
return acc;
|
|
1715
|
+
}, {});
|
|
1716
|
+
if (object.request_origin !== undefined && object.request_origin !== null) {
|
|
1717
|
+
message.requestOrigin = object.request_origin;
|
|
1718
|
+
}
|
|
1719
|
+
return message;
|
|
1720
|
+
},
|
|
1721
|
+
toAmino(message: QuotaConfig): QuotaConfigAmino {
|
|
1722
|
+
const obj: any = {};
|
|
1723
|
+
obj.preferred_value = message.preferredValue !== BigInt(0) ? message.preferredValue?.toString() : undefined;
|
|
1724
|
+
obj.state_detail = message.stateDetail === "" ? undefined : message.stateDetail;
|
|
1725
|
+
obj.granted_value = message.grantedValue ? Int64Value.toAmino(message.grantedValue) : undefined;
|
|
1726
|
+
obj.trace_id = message.traceId === "" ? undefined : message.traceId;
|
|
1727
|
+
obj.annotations = {};
|
|
1728
|
+
if (message.annotations) {
|
|
1729
|
+
Object.entries(message.annotations).forEach(([k, v]) => {
|
|
1730
|
+
obj.annotations[k] = v;
|
|
1731
|
+
});
|
|
1732
|
+
}
|
|
1733
|
+
obj.request_origin = message.requestOrigin === 0 ? undefined : message.requestOrigin;
|
|
1734
|
+
return obj;
|
|
1735
|
+
},
|
|
1736
|
+
fromAminoMsg(object: QuotaConfigAminoMsg): QuotaConfig {
|
|
1737
|
+
return QuotaConfig.fromAmino(object.value);
|
|
1738
|
+
},
|
|
1739
|
+
fromProtoMsg(message: QuotaConfigProtoMsg): QuotaConfig {
|
|
1740
|
+
return QuotaConfig.decode(message.value);
|
|
1741
|
+
},
|
|
1742
|
+
toProto(message: QuotaConfig): Uint8Array {
|
|
1743
|
+
return QuotaConfig.encode(message).finish();
|
|
1744
|
+
},
|
|
1745
|
+
toProtoMsg(message: QuotaConfig): QuotaConfigProtoMsg {
|
|
1746
|
+
return {
|
|
1747
|
+
typeUrl: "/google.api.cloudquotas.v1beta.QuotaConfig",
|
|
1748
|
+
value: QuotaConfig.encode(message).finish()
|
|
1749
|
+
};
|
|
1750
|
+
}
|
|
1751
|
+
};
|
|
1752
|
+
function createBaseDimensionsInfo_DimensionsEntry(): DimensionsInfo_DimensionsEntry {
|
|
1753
|
+
return {
|
|
1754
|
+
key: "",
|
|
1755
|
+
value: ""
|
|
1756
|
+
};
|
|
1757
|
+
}
|
|
1758
|
+
export const DimensionsInfo_DimensionsEntry = {
|
|
1759
|
+
encode(message: DimensionsInfo_DimensionsEntry, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1760
|
+
if (message.key !== "") {
|
|
1761
|
+
writer.uint32(10).string(message.key);
|
|
1762
|
+
}
|
|
1763
|
+
if (message.value !== "") {
|
|
1764
|
+
writer.uint32(18).string(message.value);
|
|
1765
|
+
}
|
|
1766
|
+
return writer;
|
|
1767
|
+
},
|
|
1768
|
+
decode(input: BinaryReader | Uint8Array, length?: number): DimensionsInfo_DimensionsEntry {
|
|
1769
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1770
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1771
|
+
const message = createBaseDimensionsInfo_DimensionsEntry();
|
|
1772
|
+
while (reader.pos < end) {
|
|
1773
|
+
const tag = reader.uint32();
|
|
1774
|
+
switch (tag >>> 3) {
|
|
1775
|
+
case 1:
|
|
1776
|
+
message.key = reader.string();
|
|
1777
|
+
break;
|
|
1778
|
+
case 2:
|
|
1779
|
+
message.value = reader.string();
|
|
1780
|
+
break;
|
|
1781
|
+
default:
|
|
1782
|
+
reader.skipType(tag & 7);
|
|
1783
|
+
break;
|
|
1784
|
+
}
|
|
1785
|
+
}
|
|
1786
|
+
return message;
|
|
1787
|
+
},
|
|
1788
|
+
fromPartial(object: Partial<DimensionsInfo_DimensionsEntry>): DimensionsInfo_DimensionsEntry {
|
|
1789
|
+
const message = createBaseDimensionsInfo_DimensionsEntry();
|
|
1790
|
+
message.key = object.key ?? "";
|
|
1791
|
+
message.value = object.value ?? "";
|
|
1792
|
+
return message;
|
|
1793
|
+
},
|
|
1794
|
+
fromAmino(object: DimensionsInfo_DimensionsEntryAmino): DimensionsInfo_DimensionsEntry {
|
|
1795
|
+
const message = createBaseDimensionsInfo_DimensionsEntry();
|
|
1796
|
+
if (object.key !== undefined && object.key !== null) {
|
|
1797
|
+
message.key = object.key;
|
|
1798
|
+
}
|
|
1799
|
+
if (object.value !== undefined && object.value !== null) {
|
|
1800
|
+
message.value = object.value;
|
|
1801
|
+
}
|
|
1802
|
+
return message;
|
|
1803
|
+
},
|
|
1804
|
+
toAmino(message: DimensionsInfo_DimensionsEntry): DimensionsInfo_DimensionsEntryAmino {
|
|
1805
|
+
const obj: any = {};
|
|
1806
|
+
obj.key = message.key === "" ? undefined : message.key;
|
|
1807
|
+
obj.value = message.value === "" ? undefined : message.value;
|
|
1808
|
+
return obj;
|
|
1809
|
+
},
|
|
1810
|
+
fromAminoMsg(object: DimensionsInfo_DimensionsEntryAminoMsg): DimensionsInfo_DimensionsEntry {
|
|
1811
|
+
return DimensionsInfo_DimensionsEntry.fromAmino(object.value);
|
|
1812
|
+
},
|
|
1813
|
+
fromProtoMsg(message: DimensionsInfo_DimensionsEntryProtoMsg): DimensionsInfo_DimensionsEntry {
|
|
1814
|
+
return DimensionsInfo_DimensionsEntry.decode(message.value);
|
|
1815
|
+
},
|
|
1816
|
+
toProto(message: DimensionsInfo_DimensionsEntry): Uint8Array {
|
|
1817
|
+
return DimensionsInfo_DimensionsEntry.encode(message).finish();
|
|
1818
|
+
}
|
|
1819
|
+
};
|
|
1820
|
+
function createBaseDimensionsInfo(): DimensionsInfo {
|
|
1821
|
+
return {
|
|
1822
|
+
dimensions: {},
|
|
1823
|
+
details: undefined,
|
|
1824
|
+
applicableLocations: []
|
|
1825
|
+
};
|
|
1826
|
+
}
|
|
1827
|
+
export const DimensionsInfo = {
|
|
1828
|
+
typeUrl: "/google.api.cloudquotas.v1beta.DimensionsInfo",
|
|
1829
|
+
encode(message: DimensionsInfo, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1830
|
+
Object.entries(message.dimensions).forEach(([key, value]) => {
|
|
1831
|
+
DimensionsInfo_DimensionsEntry.encode({
|
|
1832
|
+
key: key as any,
|
|
1833
|
+
value
|
|
1834
|
+
}, writer.uint32(10).fork()).ldelim();
|
|
1835
|
+
});
|
|
1836
|
+
if (message.details !== undefined) {
|
|
1837
|
+
QuotaDetails.encode(message.details, writer.uint32(18).fork()).ldelim();
|
|
1838
|
+
}
|
|
1839
|
+
for (const v of message.applicableLocations) {
|
|
1840
|
+
writer.uint32(26).string(v!);
|
|
1841
|
+
}
|
|
1842
|
+
return writer;
|
|
1843
|
+
},
|
|
1844
|
+
decode(input: BinaryReader | Uint8Array, length?: number): DimensionsInfo {
|
|
1845
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1846
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1847
|
+
const message = createBaseDimensionsInfo();
|
|
1848
|
+
while (reader.pos < end) {
|
|
1849
|
+
const tag = reader.uint32();
|
|
1850
|
+
switch (tag >>> 3) {
|
|
1851
|
+
case 1:
|
|
1852
|
+
const entry1 = DimensionsInfo_DimensionsEntry.decode(reader, reader.uint32());
|
|
1853
|
+
if (entry1.value !== undefined) {
|
|
1854
|
+
message.dimensions[entry1.key] = entry1.value;
|
|
1855
|
+
}
|
|
1856
|
+
break;
|
|
1857
|
+
case 2:
|
|
1858
|
+
message.details = QuotaDetails.decode(reader, reader.uint32());
|
|
1859
|
+
break;
|
|
1860
|
+
case 3:
|
|
1861
|
+
message.applicableLocations.push(reader.string());
|
|
1862
|
+
break;
|
|
1863
|
+
default:
|
|
1864
|
+
reader.skipType(tag & 7);
|
|
1865
|
+
break;
|
|
1866
|
+
}
|
|
1867
|
+
}
|
|
1868
|
+
return message;
|
|
1869
|
+
},
|
|
1870
|
+
fromPartial(object: Partial<DimensionsInfo>): DimensionsInfo {
|
|
1871
|
+
const message = createBaseDimensionsInfo();
|
|
1872
|
+
message.dimensions = Object.entries(object.dimensions ?? {}).reduce<{
|
|
1873
|
+
[key: string]: string;
|
|
1874
|
+
}>((acc, [key, value]) => {
|
|
1875
|
+
if (value !== undefined) {
|
|
1876
|
+
acc[key] = String(value);
|
|
1877
|
+
}
|
|
1878
|
+
return acc;
|
|
1879
|
+
}, {});
|
|
1880
|
+
message.details = object.details !== undefined && object.details !== null ? QuotaDetails.fromPartial(object.details) : undefined;
|
|
1881
|
+
message.applicableLocations = object.applicableLocations?.map(e => e) || [];
|
|
1882
|
+
return message;
|
|
1883
|
+
},
|
|
1884
|
+
fromAmino(object: DimensionsInfoAmino): DimensionsInfo {
|
|
1885
|
+
const message = createBaseDimensionsInfo();
|
|
1886
|
+
message.dimensions = Object.entries(object.dimensions ?? {}).reduce<{
|
|
1887
|
+
[key: string]: string;
|
|
1888
|
+
}>((acc, [key, value]) => {
|
|
1889
|
+
if (value !== undefined) {
|
|
1890
|
+
acc[key] = String(value);
|
|
1891
|
+
}
|
|
1892
|
+
return acc;
|
|
1893
|
+
}, {});
|
|
1894
|
+
if (object.details !== undefined && object.details !== null) {
|
|
1895
|
+
message.details = QuotaDetails.fromAmino(object.details);
|
|
1896
|
+
}
|
|
1897
|
+
message.applicableLocations = object.applicable_locations?.map(e => e) || [];
|
|
1898
|
+
return message;
|
|
1899
|
+
},
|
|
1900
|
+
toAmino(message: DimensionsInfo): DimensionsInfoAmino {
|
|
1901
|
+
const obj: any = {};
|
|
1902
|
+
obj.dimensions = {};
|
|
1903
|
+
if (message.dimensions) {
|
|
1904
|
+
Object.entries(message.dimensions).forEach(([k, v]) => {
|
|
1905
|
+
obj.dimensions[k] = v;
|
|
1906
|
+
});
|
|
1907
|
+
}
|
|
1908
|
+
obj.details = message.details ? QuotaDetails.toAmino(message.details) : undefined;
|
|
1909
|
+
if (message.applicableLocations) {
|
|
1910
|
+
obj.applicable_locations = message.applicableLocations.map(e => e);
|
|
1911
|
+
} else {
|
|
1912
|
+
obj.applicable_locations = message.applicableLocations;
|
|
1913
|
+
}
|
|
1914
|
+
return obj;
|
|
1915
|
+
},
|
|
1916
|
+
fromAminoMsg(object: DimensionsInfoAminoMsg): DimensionsInfo {
|
|
1917
|
+
return DimensionsInfo.fromAmino(object.value);
|
|
1918
|
+
},
|
|
1919
|
+
fromProtoMsg(message: DimensionsInfoProtoMsg): DimensionsInfo {
|
|
1920
|
+
return DimensionsInfo.decode(message.value);
|
|
1921
|
+
},
|
|
1922
|
+
toProto(message: DimensionsInfo): Uint8Array {
|
|
1923
|
+
return DimensionsInfo.encode(message).finish();
|
|
1924
|
+
},
|
|
1925
|
+
toProtoMsg(message: DimensionsInfo): DimensionsInfoProtoMsg {
|
|
1926
|
+
return {
|
|
1927
|
+
typeUrl: "/google.api.cloudquotas.v1beta.DimensionsInfo",
|
|
1928
|
+
value: DimensionsInfo.encode(message).finish()
|
|
1929
|
+
};
|
|
1930
|
+
}
|
|
1931
|
+
};
|
|
1932
|
+
function createBaseQuotaDetails(): QuotaDetails {
|
|
1933
|
+
return {
|
|
1934
|
+
value: BigInt(0),
|
|
1935
|
+
rolloutInfo: undefined
|
|
1936
|
+
};
|
|
1937
|
+
}
|
|
1938
|
+
export const QuotaDetails = {
|
|
1939
|
+
typeUrl: "/google.api.cloudquotas.v1beta.QuotaDetails",
|
|
1940
|
+
encode(message: QuotaDetails, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1941
|
+
if (message.value !== BigInt(0)) {
|
|
1942
|
+
writer.uint32(8).int64(message.value);
|
|
1943
|
+
}
|
|
1944
|
+
if (message.rolloutInfo !== undefined) {
|
|
1945
|
+
RolloutInfo.encode(message.rolloutInfo, writer.uint32(26).fork()).ldelim();
|
|
1946
|
+
}
|
|
1947
|
+
return writer;
|
|
1948
|
+
},
|
|
1949
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QuotaDetails {
|
|
1950
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1951
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1952
|
+
const message = createBaseQuotaDetails();
|
|
1953
|
+
while (reader.pos < end) {
|
|
1954
|
+
const tag = reader.uint32();
|
|
1955
|
+
switch (tag >>> 3) {
|
|
1956
|
+
case 1:
|
|
1957
|
+
message.value = reader.int64();
|
|
1958
|
+
break;
|
|
1959
|
+
case 3:
|
|
1960
|
+
message.rolloutInfo = RolloutInfo.decode(reader, reader.uint32());
|
|
1961
|
+
break;
|
|
1962
|
+
default:
|
|
1963
|
+
reader.skipType(tag & 7);
|
|
1964
|
+
break;
|
|
1965
|
+
}
|
|
1966
|
+
}
|
|
1967
|
+
return message;
|
|
1968
|
+
},
|
|
1969
|
+
fromPartial(object: Partial<QuotaDetails>): QuotaDetails {
|
|
1970
|
+
const message = createBaseQuotaDetails();
|
|
1971
|
+
message.value = object.value !== undefined && object.value !== null ? BigInt(object.value.toString()) : BigInt(0);
|
|
1972
|
+
message.rolloutInfo = object.rolloutInfo !== undefined && object.rolloutInfo !== null ? RolloutInfo.fromPartial(object.rolloutInfo) : undefined;
|
|
1973
|
+
return message;
|
|
1974
|
+
},
|
|
1975
|
+
fromAmino(object: QuotaDetailsAmino): QuotaDetails {
|
|
1976
|
+
const message = createBaseQuotaDetails();
|
|
1977
|
+
if (object.value !== undefined && object.value !== null) {
|
|
1978
|
+
message.value = BigInt(object.value);
|
|
1979
|
+
}
|
|
1980
|
+
if (object.rollout_info !== undefined && object.rollout_info !== null) {
|
|
1981
|
+
message.rolloutInfo = RolloutInfo.fromAmino(object.rollout_info);
|
|
1982
|
+
}
|
|
1983
|
+
return message;
|
|
1984
|
+
},
|
|
1985
|
+
toAmino(message: QuotaDetails): QuotaDetailsAmino {
|
|
1986
|
+
const obj: any = {};
|
|
1987
|
+
obj.value = message.value !== BigInt(0) ? message.value?.toString() : undefined;
|
|
1988
|
+
obj.rollout_info = message.rolloutInfo ? RolloutInfo.toAmino(message.rolloutInfo) : undefined;
|
|
1989
|
+
return obj;
|
|
1990
|
+
},
|
|
1991
|
+
fromAminoMsg(object: QuotaDetailsAminoMsg): QuotaDetails {
|
|
1992
|
+
return QuotaDetails.fromAmino(object.value);
|
|
1993
|
+
},
|
|
1994
|
+
fromProtoMsg(message: QuotaDetailsProtoMsg): QuotaDetails {
|
|
1995
|
+
return QuotaDetails.decode(message.value);
|
|
1996
|
+
},
|
|
1997
|
+
toProto(message: QuotaDetails): Uint8Array {
|
|
1998
|
+
return QuotaDetails.encode(message).finish();
|
|
1999
|
+
},
|
|
2000
|
+
toProtoMsg(message: QuotaDetails): QuotaDetailsProtoMsg {
|
|
2001
|
+
return {
|
|
2002
|
+
typeUrl: "/google.api.cloudquotas.v1beta.QuotaDetails",
|
|
2003
|
+
value: QuotaDetails.encode(message).finish()
|
|
2004
|
+
};
|
|
2005
|
+
}
|
|
2006
|
+
};
|
|
2007
|
+
function createBaseRolloutInfo(): RolloutInfo {
|
|
2008
|
+
return {
|
|
2009
|
+
ongoingRollout: false
|
|
2010
|
+
};
|
|
2011
|
+
}
|
|
2012
|
+
export const RolloutInfo = {
|
|
2013
|
+
typeUrl: "/google.api.cloudquotas.v1beta.RolloutInfo",
|
|
2014
|
+
encode(message: RolloutInfo, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
2015
|
+
if (message.ongoingRollout === true) {
|
|
2016
|
+
writer.uint32(8).bool(message.ongoingRollout);
|
|
2017
|
+
}
|
|
2018
|
+
return writer;
|
|
2019
|
+
},
|
|
2020
|
+
decode(input: BinaryReader | Uint8Array, length?: number): RolloutInfo {
|
|
2021
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2022
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2023
|
+
const message = createBaseRolloutInfo();
|
|
2024
|
+
while (reader.pos < end) {
|
|
2025
|
+
const tag = reader.uint32();
|
|
2026
|
+
switch (tag >>> 3) {
|
|
2027
|
+
case 1:
|
|
2028
|
+
message.ongoingRollout = reader.bool();
|
|
2029
|
+
break;
|
|
2030
|
+
default:
|
|
2031
|
+
reader.skipType(tag & 7);
|
|
2032
|
+
break;
|
|
2033
|
+
}
|
|
2034
|
+
}
|
|
2035
|
+
return message;
|
|
2036
|
+
},
|
|
2037
|
+
fromPartial(object: Partial<RolloutInfo>): RolloutInfo {
|
|
2038
|
+
const message = createBaseRolloutInfo();
|
|
2039
|
+
message.ongoingRollout = object.ongoingRollout ?? false;
|
|
2040
|
+
return message;
|
|
2041
|
+
},
|
|
2042
|
+
fromAmino(object: RolloutInfoAmino): RolloutInfo {
|
|
2043
|
+
const message = createBaseRolloutInfo();
|
|
2044
|
+
if (object.ongoing_rollout !== undefined && object.ongoing_rollout !== null) {
|
|
2045
|
+
message.ongoingRollout = object.ongoing_rollout;
|
|
2046
|
+
}
|
|
2047
|
+
return message;
|
|
2048
|
+
},
|
|
2049
|
+
toAmino(message: RolloutInfo): RolloutInfoAmino {
|
|
2050
|
+
const obj: any = {};
|
|
2051
|
+
obj.ongoing_rollout = message.ongoingRollout === false ? undefined : message.ongoingRollout;
|
|
2052
|
+
return obj;
|
|
2053
|
+
},
|
|
2054
|
+
fromAminoMsg(object: RolloutInfoAminoMsg): RolloutInfo {
|
|
2055
|
+
return RolloutInfo.fromAmino(object.value);
|
|
2056
|
+
},
|
|
2057
|
+
fromProtoMsg(message: RolloutInfoProtoMsg): RolloutInfo {
|
|
2058
|
+
return RolloutInfo.decode(message.value);
|
|
2059
|
+
},
|
|
2060
|
+
toProto(message: RolloutInfo): Uint8Array {
|
|
2061
|
+
return RolloutInfo.encode(message).finish();
|
|
2062
|
+
},
|
|
2063
|
+
toProtoMsg(message: RolloutInfo): RolloutInfoProtoMsg {
|
|
2064
|
+
return {
|
|
2065
|
+
typeUrl: "/google.api.cloudquotas.v1beta.RolloutInfo",
|
|
2066
|
+
value: RolloutInfo.encode(message).finish()
|
|
2067
|
+
};
|
|
2068
|
+
}
|
|
2069
|
+
};
|