@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,2972 @@
|
|
|
1
|
+
//@ts-nocheck
|
|
2
|
+
import { Api, ApiAmino, ApiSDKType } from "../../../protobuf/api";
|
|
3
|
+
import { Documentation, DocumentationAmino, DocumentationSDKType } from "../../documentation";
|
|
4
|
+
import { Quota, QuotaAmino, QuotaSDKType } from "../../quota";
|
|
5
|
+
import { Authentication, AuthenticationAmino, AuthenticationSDKType } from "../../auth";
|
|
6
|
+
import { Usage, UsageAmino, UsageSDKType } from "../../usage";
|
|
7
|
+
import { Endpoint, EndpointAmino, EndpointSDKType } from "../../endpoint";
|
|
8
|
+
import { MonitoredResourceDescriptor, MonitoredResourceDescriptorAmino, MonitoredResourceDescriptorSDKType } from "../../monitored_resource";
|
|
9
|
+
import { Monitoring, MonitoringAmino, MonitoringSDKType } from "../../monitoring";
|
|
10
|
+
import { BinaryReader, BinaryWriter } from "../../../../binary";
|
|
11
|
+
/** Whether or not a service has been enabled for use by a consumer. */
|
|
12
|
+
export enum State {
|
|
13
|
+
/**
|
|
14
|
+
* STATE_UNSPECIFIED - The default value, which indicates that the enabled state of the service
|
|
15
|
+
* is unspecified or not meaningful. Currently, all consumers other than
|
|
16
|
+
* projects (such as folders and organizations) are always in this state.
|
|
17
|
+
*/
|
|
18
|
+
STATE_UNSPECIFIED = 0,
|
|
19
|
+
/**
|
|
20
|
+
* DISABLED - The service cannot be used by this consumer. It has either been explicitly
|
|
21
|
+
* disabled, or has never been enabled.
|
|
22
|
+
*/
|
|
23
|
+
DISABLED = 1,
|
|
24
|
+
/** ENABLED - The service has been explicitly enabled for use by this consumer. */
|
|
25
|
+
ENABLED = 2,
|
|
26
|
+
UNRECOGNIZED = -1,
|
|
27
|
+
}
|
|
28
|
+
export const StateSDKType = State;
|
|
29
|
+
export const StateAmino = State;
|
|
30
|
+
export function stateFromJSON(object: any): State {
|
|
31
|
+
switch (object) {
|
|
32
|
+
case 0:
|
|
33
|
+
case "STATE_UNSPECIFIED":
|
|
34
|
+
return State.STATE_UNSPECIFIED;
|
|
35
|
+
case 1:
|
|
36
|
+
case "DISABLED":
|
|
37
|
+
return State.DISABLED;
|
|
38
|
+
case 2:
|
|
39
|
+
case "ENABLED":
|
|
40
|
+
return State.ENABLED;
|
|
41
|
+
case -1:
|
|
42
|
+
case "UNRECOGNIZED":
|
|
43
|
+
default:
|
|
44
|
+
return State.UNRECOGNIZED;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
export function stateToJSON(object: State): string {
|
|
48
|
+
switch (object) {
|
|
49
|
+
case State.STATE_UNSPECIFIED:
|
|
50
|
+
return "STATE_UNSPECIFIED";
|
|
51
|
+
case State.DISABLED:
|
|
52
|
+
return "DISABLED";
|
|
53
|
+
case State.ENABLED:
|
|
54
|
+
return "ENABLED";
|
|
55
|
+
case State.UNRECOGNIZED:
|
|
56
|
+
default:
|
|
57
|
+
return "UNRECOGNIZED";
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Selected view of quota. Can be used to request more detailed quota
|
|
62
|
+
* information when retrieving quota metrics and limits.
|
|
63
|
+
*/
|
|
64
|
+
export enum QuotaView {
|
|
65
|
+
/**
|
|
66
|
+
* QUOTA_VIEW_UNSPECIFIED - No quota view specified. Requests that do not specify a quota view will
|
|
67
|
+
* typically default to the BASIC view.
|
|
68
|
+
*/
|
|
69
|
+
QUOTA_VIEW_UNSPECIFIED = 0,
|
|
70
|
+
/** BASIC - Only buckets with overrides are shown in the response. */
|
|
71
|
+
BASIC = 1,
|
|
72
|
+
/**
|
|
73
|
+
* FULL - Include per-location buckets even if they do not have overrides.
|
|
74
|
+
* When the view is FULL, and a limit has regional or zonal quota, the limit
|
|
75
|
+
* will include buckets for all regions or zones that could support
|
|
76
|
+
* overrides, even if none are currently present. In some cases this will
|
|
77
|
+
* cause the response to become very large; callers that do not need this
|
|
78
|
+
* extra information should use the BASIC view instead.
|
|
79
|
+
*/
|
|
80
|
+
FULL = 2,
|
|
81
|
+
UNRECOGNIZED = -1,
|
|
82
|
+
}
|
|
83
|
+
export const QuotaViewSDKType = QuotaView;
|
|
84
|
+
export const QuotaViewAmino = QuotaView;
|
|
85
|
+
export function quotaViewFromJSON(object: any): QuotaView {
|
|
86
|
+
switch (object) {
|
|
87
|
+
case 0:
|
|
88
|
+
case "QUOTA_VIEW_UNSPECIFIED":
|
|
89
|
+
return QuotaView.QUOTA_VIEW_UNSPECIFIED;
|
|
90
|
+
case 1:
|
|
91
|
+
case "BASIC":
|
|
92
|
+
return QuotaView.BASIC;
|
|
93
|
+
case 2:
|
|
94
|
+
case "FULL":
|
|
95
|
+
return QuotaView.FULL;
|
|
96
|
+
case -1:
|
|
97
|
+
case "UNRECOGNIZED":
|
|
98
|
+
default:
|
|
99
|
+
return QuotaView.UNRECOGNIZED;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
export function quotaViewToJSON(object: QuotaView): string {
|
|
103
|
+
switch (object) {
|
|
104
|
+
case QuotaView.QUOTA_VIEW_UNSPECIFIED:
|
|
105
|
+
return "QUOTA_VIEW_UNSPECIFIED";
|
|
106
|
+
case QuotaView.BASIC:
|
|
107
|
+
return "BASIC";
|
|
108
|
+
case QuotaView.FULL:
|
|
109
|
+
return "FULL";
|
|
110
|
+
case QuotaView.UNRECOGNIZED:
|
|
111
|
+
default:
|
|
112
|
+
return "UNRECOGNIZED";
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
/** Enumerations of quota safety checks. */
|
|
116
|
+
export enum QuotaSafetyCheck {
|
|
117
|
+
/** QUOTA_SAFETY_CHECK_UNSPECIFIED - Unspecified quota safety check. */
|
|
118
|
+
QUOTA_SAFETY_CHECK_UNSPECIFIED = 0,
|
|
119
|
+
/**
|
|
120
|
+
* LIMIT_DECREASE_BELOW_USAGE - Validates that a quota mutation would not cause the consumer's effective
|
|
121
|
+
* limit to be lower than the consumer's quota usage.
|
|
122
|
+
*/
|
|
123
|
+
LIMIT_DECREASE_BELOW_USAGE = 1,
|
|
124
|
+
/**
|
|
125
|
+
* LIMIT_DECREASE_PERCENTAGE_TOO_HIGH - Validates that a quota mutation would not cause the consumer's effective
|
|
126
|
+
* limit to decrease by more than 10 percent.
|
|
127
|
+
*/
|
|
128
|
+
LIMIT_DECREASE_PERCENTAGE_TOO_HIGH = 2,
|
|
129
|
+
UNRECOGNIZED = -1,
|
|
130
|
+
}
|
|
131
|
+
export const QuotaSafetyCheckSDKType = QuotaSafetyCheck;
|
|
132
|
+
export const QuotaSafetyCheckAmino = QuotaSafetyCheck;
|
|
133
|
+
export function quotaSafetyCheckFromJSON(object: any): QuotaSafetyCheck {
|
|
134
|
+
switch (object) {
|
|
135
|
+
case 0:
|
|
136
|
+
case "QUOTA_SAFETY_CHECK_UNSPECIFIED":
|
|
137
|
+
return QuotaSafetyCheck.QUOTA_SAFETY_CHECK_UNSPECIFIED;
|
|
138
|
+
case 1:
|
|
139
|
+
case "LIMIT_DECREASE_BELOW_USAGE":
|
|
140
|
+
return QuotaSafetyCheck.LIMIT_DECREASE_BELOW_USAGE;
|
|
141
|
+
case 2:
|
|
142
|
+
case "LIMIT_DECREASE_PERCENTAGE_TOO_HIGH":
|
|
143
|
+
return QuotaSafetyCheck.LIMIT_DECREASE_PERCENTAGE_TOO_HIGH;
|
|
144
|
+
case -1:
|
|
145
|
+
case "UNRECOGNIZED":
|
|
146
|
+
default:
|
|
147
|
+
return QuotaSafetyCheck.UNRECOGNIZED;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
export function quotaSafetyCheckToJSON(object: QuotaSafetyCheck): string {
|
|
151
|
+
switch (object) {
|
|
152
|
+
case QuotaSafetyCheck.QUOTA_SAFETY_CHECK_UNSPECIFIED:
|
|
153
|
+
return "QUOTA_SAFETY_CHECK_UNSPECIFIED";
|
|
154
|
+
case QuotaSafetyCheck.LIMIT_DECREASE_BELOW_USAGE:
|
|
155
|
+
return "LIMIT_DECREASE_BELOW_USAGE";
|
|
156
|
+
case QuotaSafetyCheck.LIMIT_DECREASE_PERCENTAGE_TOO_HIGH:
|
|
157
|
+
return "LIMIT_DECREASE_PERCENTAGE_TOO_HIGH";
|
|
158
|
+
case QuotaSafetyCheck.UNRECOGNIZED:
|
|
159
|
+
default:
|
|
160
|
+
return "UNRECOGNIZED";
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
/** A service that is available for use by the consumer. */
|
|
164
|
+
export interface Service {
|
|
165
|
+
/**
|
|
166
|
+
* The resource name of the consumer and service.
|
|
167
|
+
*
|
|
168
|
+
* A valid name would be:
|
|
169
|
+
* - `projects/123/services/serviceusage.googleapis.com`
|
|
170
|
+
*/
|
|
171
|
+
name: string;
|
|
172
|
+
/**
|
|
173
|
+
* The resource name of the consumer.
|
|
174
|
+
*
|
|
175
|
+
* A valid name would be:
|
|
176
|
+
* - `projects/123`
|
|
177
|
+
*/
|
|
178
|
+
parent: string;
|
|
179
|
+
/**
|
|
180
|
+
* The service configuration of the available service.
|
|
181
|
+
* Some fields may be filtered out of the configuration in responses to
|
|
182
|
+
* the `ListServices` method. These fields are present only in responses to
|
|
183
|
+
* the `GetService` method.
|
|
184
|
+
*/
|
|
185
|
+
config?: ServiceConfig;
|
|
186
|
+
/** Whether or not the service has been enabled for use by the consumer. */
|
|
187
|
+
state: State;
|
|
188
|
+
}
|
|
189
|
+
export interface ServiceProtoMsg {
|
|
190
|
+
typeUrl: "/google.api.serviceusage.v1beta1.Service";
|
|
191
|
+
value: Uint8Array;
|
|
192
|
+
}
|
|
193
|
+
/**
|
|
194
|
+
* A service that is available for use by the consumer.
|
|
195
|
+
* @name ServiceAmino
|
|
196
|
+
* @package google.api.serviceusage.v1beta1
|
|
197
|
+
* @see proto type: google.api.serviceusage.v1beta1.Service
|
|
198
|
+
*/
|
|
199
|
+
export interface ServiceAmino {
|
|
200
|
+
/**
|
|
201
|
+
* The resource name of the consumer and service.
|
|
202
|
+
*
|
|
203
|
+
* A valid name would be:
|
|
204
|
+
* - `projects/123/services/serviceusage.googleapis.com`
|
|
205
|
+
*/
|
|
206
|
+
name?: string;
|
|
207
|
+
/**
|
|
208
|
+
* The resource name of the consumer.
|
|
209
|
+
*
|
|
210
|
+
* A valid name would be:
|
|
211
|
+
* - `projects/123`
|
|
212
|
+
*/
|
|
213
|
+
parent?: string;
|
|
214
|
+
/**
|
|
215
|
+
* The service configuration of the available service.
|
|
216
|
+
* Some fields may be filtered out of the configuration in responses to
|
|
217
|
+
* the `ListServices` method. These fields are present only in responses to
|
|
218
|
+
* the `GetService` method.
|
|
219
|
+
*/
|
|
220
|
+
config?: ServiceConfigAmino;
|
|
221
|
+
/**
|
|
222
|
+
* Whether or not the service has been enabled for use by the consumer.
|
|
223
|
+
*/
|
|
224
|
+
state?: State;
|
|
225
|
+
}
|
|
226
|
+
export interface ServiceAminoMsg {
|
|
227
|
+
type: "/google.api.serviceusage.v1beta1.Service";
|
|
228
|
+
value: ServiceAmino;
|
|
229
|
+
}
|
|
230
|
+
/** A service that is available for use by the consumer. */
|
|
231
|
+
export interface ServiceSDKType {
|
|
232
|
+
name: string;
|
|
233
|
+
parent: string;
|
|
234
|
+
config?: ServiceConfigSDKType;
|
|
235
|
+
state: State;
|
|
236
|
+
}
|
|
237
|
+
/** The configuration of the service. */
|
|
238
|
+
export interface ServiceConfig {
|
|
239
|
+
/**
|
|
240
|
+
* The DNS address at which this service is available.
|
|
241
|
+
*
|
|
242
|
+
* An example DNS address would be:
|
|
243
|
+
* `calendar.googleapis.com`.
|
|
244
|
+
*/
|
|
245
|
+
name: string;
|
|
246
|
+
/** The product title for this service. */
|
|
247
|
+
title: string;
|
|
248
|
+
/**
|
|
249
|
+
* A list of API interfaces exported by this service. Contains only the names,
|
|
250
|
+
* versions, and method names of the interfaces.
|
|
251
|
+
*/
|
|
252
|
+
apis: Api[];
|
|
253
|
+
/**
|
|
254
|
+
* Additional API documentation. Contains only the summary and the
|
|
255
|
+
* documentation URL.
|
|
256
|
+
*/
|
|
257
|
+
documentation?: Documentation;
|
|
258
|
+
/** Quota configuration. */
|
|
259
|
+
quota?: Quota;
|
|
260
|
+
/** Auth configuration. Contains only the OAuth rules. */
|
|
261
|
+
authentication?: Authentication;
|
|
262
|
+
/** Configuration controlling usage of this service. */
|
|
263
|
+
usage?: Usage;
|
|
264
|
+
/**
|
|
265
|
+
* Configuration for network endpoints. Contains only the names and aliases
|
|
266
|
+
* of the endpoints.
|
|
267
|
+
*/
|
|
268
|
+
endpoints: Endpoint[];
|
|
269
|
+
/**
|
|
270
|
+
* Defines the monitored resources used by this service. This is required
|
|
271
|
+
* by the [Service.monitoring][google.api.Service.monitoring] and
|
|
272
|
+
* [Service.logging][google.api.Service.logging] configurations.
|
|
273
|
+
*/
|
|
274
|
+
monitoredResources: MonitoredResourceDescriptor[];
|
|
275
|
+
/**
|
|
276
|
+
* Monitoring configuration.
|
|
277
|
+
* This should not include the 'producer_destinations' field.
|
|
278
|
+
*/
|
|
279
|
+
monitoring?: Monitoring;
|
|
280
|
+
}
|
|
281
|
+
export interface ServiceConfigProtoMsg {
|
|
282
|
+
typeUrl: "/google.api.serviceusage.v1beta1.ServiceConfig";
|
|
283
|
+
value: Uint8Array;
|
|
284
|
+
}
|
|
285
|
+
/**
|
|
286
|
+
* The configuration of the service.
|
|
287
|
+
* @name ServiceConfigAmino
|
|
288
|
+
* @package google.api.serviceusage.v1beta1
|
|
289
|
+
* @see proto type: google.api.serviceusage.v1beta1.ServiceConfig
|
|
290
|
+
*/
|
|
291
|
+
export interface ServiceConfigAmino {
|
|
292
|
+
/**
|
|
293
|
+
* The DNS address at which this service is available.
|
|
294
|
+
*
|
|
295
|
+
* An example DNS address would be:
|
|
296
|
+
* `calendar.googleapis.com`.
|
|
297
|
+
*/
|
|
298
|
+
name?: string;
|
|
299
|
+
/**
|
|
300
|
+
* The product title for this service.
|
|
301
|
+
*/
|
|
302
|
+
title?: string;
|
|
303
|
+
/**
|
|
304
|
+
* A list of API interfaces exported by this service. Contains only the names,
|
|
305
|
+
* versions, and method names of the interfaces.
|
|
306
|
+
*/
|
|
307
|
+
apis?: ApiAmino[];
|
|
308
|
+
/**
|
|
309
|
+
* Additional API documentation. Contains only the summary and the
|
|
310
|
+
* documentation URL.
|
|
311
|
+
*/
|
|
312
|
+
documentation?: DocumentationAmino;
|
|
313
|
+
/**
|
|
314
|
+
* Quota configuration.
|
|
315
|
+
*/
|
|
316
|
+
quota?: QuotaAmino;
|
|
317
|
+
/**
|
|
318
|
+
* Auth configuration. Contains only the OAuth rules.
|
|
319
|
+
*/
|
|
320
|
+
authentication?: AuthenticationAmino;
|
|
321
|
+
/**
|
|
322
|
+
* Configuration controlling usage of this service.
|
|
323
|
+
*/
|
|
324
|
+
usage?: UsageAmino;
|
|
325
|
+
/**
|
|
326
|
+
* Configuration for network endpoints. Contains only the names and aliases
|
|
327
|
+
* of the endpoints.
|
|
328
|
+
*/
|
|
329
|
+
endpoints?: EndpointAmino[];
|
|
330
|
+
/**
|
|
331
|
+
* Defines the monitored resources used by this service. This is required
|
|
332
|
+
* by the [Service.monitoring][google.api.Service.monitoring] and
|
|
333
|
+
* [Service.logging][google.api.Service.logging] configurations.
|
|
334
|
+
*/
|
|
335
|
+
monitored_resources?: MonitoredResourceDescriptorAmino[];
|
|
336
|
+
/**
|
|
337
|
+
* Monitoring configuration.
|
|
338
|
+
* This should not include the 'producer_destinations' field.
|
|
339
|
+
*/
|
|
340
|
+
monitoring?: MonitoringAmino;
|
|
341
|
+
}
|
|
342
|
+
export interface ServiceConfigAminoMsg {
|
|
343
|
+
type: "/google.api.serviceusage.v1beta1.ServiceConfig";
|
|
344
|
+
value: ServiceConfigAmino;
|
|
345
|
+
}
|
|
346
|
+
/** The configuration of the service. */
|
|
347
|
+
export interface ServiceConfigSDKType {
|
|
348
|
+
name: string;
|
|
349
|
+
title: string;
|
|
350
|
+
apis: ApiSDKType[];
|
|
351
|
+
documentation?: DocumentationSDKType;
|
|
352
|
+
quota?: QuotaSDKType;
|
|
353
|
+
authentication?: AuthenticationSDKType;
|
|
354
|
+
usage?: UsageSDKType;
|
|
355
|
+
endpoints: EndpointSDKType[];
|
|
356
|
+
monitored_resources: MonitoredResourceDescriptorSDKType[];
|
|
357
|
+
monitoring?: MonitoringSDKType;
|
|
358
|
+
}
|
|
359
|
+
/** The operation metadata returned for the batchend services operation. */
|
|
360
|
+
export interface OperationMetadata {
|
|
361
|
+
/**
|
|
362
|
+
* The full name of the resources that this operation is directly
|
|
363
|
+
* associated with.
|
|
364
|
+
*/
|
|
365
|
+
resourceNames: string[];
|
|
366
|
+
}
|
|
367
|
+
export interface OperationMetadataProtoMsg {
|
|
368
|
+
typeUrl: "/google.api.serviceusage.v1beta1.OperationMetadata";
|
|
369
|
+
value: Uint8Array;
|
|
370
|
+
}
|
|
371
|
+
/**
|
|
372
|
+
* The operation metadata returned for the batchend services operation.
|
|
373
|
+
* @name OperationMetadataAmino
|
|
374
|
+
* @package google.api.serviceusage.v1beta1
|
|
375
|
+
* @see proto type: google.api.serviceusage.v1beta1.OperationMetadata
|
|
376
|
+
*/
|
|
377
|
+
export interface OperationMetadataAmino {
|
|
378
|
+
/**
|
|
379
|
+
* The full name of the resources that this operation is directly
|
|
380
|
+
* associated with.
|
|
381
|
+
*/
|
|
382
|
+
resource_names?: string[];
|
|
383
|
+
}
|
|
384
|
+
export interface OperationMetadataAminoMsg {
|
|
385
|
+
type: "/google.api.serviceusage.v1beta1.OperationMetadata";
|
|
386
|
+
value: OperationMetadataAmino;
|
|
387
|
+
}
|
|
388
|
+
/** The operation metadata returned for the batchend services operation. */
|
|
389
|
+
export interface OperationMetadataSDKType {
|
|
390
|
+
resource_names: string[];
|
|
391
|
+
}
|
|
392
|
+
/** Consumer quota settings for a quota metric. */
|
|
393
|
+
export interface ConsumerQuotaMetric {
|
|
394
|
+
/**
|
|
395
|
+
* The resource name of the quota settings on this metric for this consumer.
|
|
396
|
+
*
|
|
397
|
+
* An example name would be:
|
|
398
|
+
* `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus`
|
|
399
|
+
*
|
|
400
|
+
* The resource name is intended to be opaque and should not be parsed for
|
|
401
|
+
* its component strings, since its representation could change in the future.
|
|
402
|
+
*/
|
|
403
|
+
name: string;
|
|
404
|
+
/**
|
|
405
|
+
* The name of the metric.
|
|
406
|
+
*
|
|
407
|
+
* An example name would be:
|
|
408
|
+
* `compute.googleapis.com/cpus`
|
|
409
|
+
*/
|
|
410
|
+
metric: string;
|
|
411
|
+
/**
|
|
412
|
+
* The display name of the metric.
|
|
413
|
+
*
|
|
414
|
+
* An example name would be:
|
|
415
|
+
* `CPUs`
|
|
416
|
+
*/
|
|
417
|
+
displayName: string;
|
|
418
|
+
/** The consumer quota for each quota limit defined on the metric. */
|
|
419
|
+
consumerQuotaLimits: ConsumerQuotaLimit[];
|
|
420
|
+
/**
|
|
421
|
+
* The quota limits targeting the descendant containers of the
|
|
422
|
+
* consumer in request.
|
|
423
|
+
*
|
|
424
|
+
* If the consumer in request is of type `organizations`
|
|
425
|
+
* or `folders`, the field will list per-project limits in the metric; if the
|
|
426
|
+
* consumer in request is of type `project`, the field will be empty.
|
|
427
|
+
*
|
|
428
|
+
* The `quota_buckets` field of each descendant consumer quota limit will not
|
|
429
|
+
* be populated.
|
|
430
|
+
*/
|
|
431
|
+
descendantConsumerQuotaLimits: ConsumerQuotaLimit[];
|
|
432
|
+
/** The units in which the metric value is reported. */
|
|
433
|
+
unit: string;
|
|
434
|
+
}
|
|
435
|
+
export interface ConsumerQuotaMetricProtoMsg {
|
|
436
|
+
typeUrl: "/google.api.serviceusage.v1beta1.ConsumerQuotaMetric";
|
|
437
|
+
value: Uint8Array;
|
|
438
|
+
}
|
|
439
|
+
/**
|
|
440
|
+
* Consumer quota settings for a quota metric.
|
|
441
|
+
* @name ConsumerQuotaMetricAmino
|
|
442
|
+
* @package google.api.serviceusage.v1beta1
|
|
443
|
+
* @see proto type: google.api.serviceusage.v1beta1.ConsumerQuotaMetric
|
|
444
|
+
*/
|
|
445
|
+
export interface ConsumerQuotaMetricAmino {
|
|
446
|
+
/**
|
|
447
|
+
* The resource name of the quota settings on this metric for this consumer.
|
|
448
|
+
*
|
|
449
|
+
* An example name would be:
|
|
450
|
+
* `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus`
|
|
451
|
+
*
|
|
452
|
+
* The resource name is intended to be opaque and should not be parsed for
|
|
453
|
+
* its component strings, since its representation could change in the future.
|
|
454
|
+
*/
|
|
455
|
+
name?: string;
|
|
456
|
+
/**
|
|
457
|
+
* The name of the metric.
|
|
458
|
+
*
|
|
459
|
+
* An example name would be:
|
|
460
|
+
* `compute.googleapis.com/cpus`
|
|
461
|
+
*/
|
|
462
|
+
metric?: string;
|
|
463
|
+
/**
|
|
464
|
+
* The display name of the metric.
|
|
465
|
+
*
|
|
466
|
+
* An example name would be:
|
|
467
|
+
* `CPUs`
|
|
468
|
+
*/
|
|
469
|
+
display_name?: string;
|
|
470
|
+
/**
|
|
471
|
+
* The consumer quota for each quota limit defined on the metric.
|
|
472
|
+
*/
|
|
473
|
+
consumer_quota_limits?: ConsumerQuotaLimitAmino[];
|
|
474
|
+
/**
|
|
475
|
+
* The quota limits targeting the descendant containers of the
|
|
476
|
+
* consumer in request.
|
|
477
|
+
*
|
|
478
|
+
* If the consumer in request is of type `organizations`
|
|
479
|
+
* or `folders`, the field will list per-project limits in the metric; if the
|
|
480
|
+
* consumer in request is of type `project`, the field will be empty.
|
|
481
|
+
*
|
|
482
|
+
* The `quota_buckets` field of each descendant consumer quota limit will not
|
|
483
|
+
* be populated.
|
|
484
|
+
*/
|
|
485
|
+
descendant_consumer_quota_limits?: ConsumerQuotaLimitAmino[];
|
|
486
|
+
/**
|
|
487
|
+
* The units in which the metric value is reported.
|
|
488
|
+
*/
|
|
489
|
+
unit?: string;
|
|
490
|
+
}
|
|
491
|
+
export interface ConsumerQuotaMetricAminoMsg {
|
|
492
|
+
type: "/google.api.serviceusage.v1beta1.ConsumerQuotaMetric";
|
|
493
|
+
value: ConsumerQuotaMetricAmino;
|
|
494
|
+
}
|
|
495
|
+
/** Consumer quota settings for a quota metric. */
|
|
496
|
+
export interface ConsumerQuotaMetricSDKType {
|
|
497
|
+
name: string;
|
|
498
|
+
metric: string;
|
|
499
|
+
display_name: string;
|
|
500
|
+
consumer_quota_limits: ConsumerQuotaLimitSDKType[];
|
|
501
|
+
descendant_consumer_quota_limits: ConsumerQuotaLimitSDKType[];
|
|
502
|
+
unit: string;
|
|
503
|
+
}
|
|
504
|
+
/** Consumer quota settings for a quota limit. */
|
|
505
|
+
export interface ConsumerQuotaLimit {
|
|
506
|
+
/**
|
|
507
|
+
* The resource name of the quota limit.
|
|
508
|
+
*
|
|
509
|
+
* An example name would be:
|
|
510
|
+
* `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion`
|
|
511
|
+
*
|
|
512
|
+
* The resource name is intended to be opaque and should not be parsed for
|
|
513
|
+
* its component strings, since its representation could change in the future.
|
|
514
|
+
*/
|
|
515
|
+
name: string;
|
|
516
|
+
/**
|
|
517
|
+
* The name of the parent metric of this limit.
|
|
518
|
+
*
|
|
519
|
+
* An example name would be:
|
|
520
|
+
* `compute.googleapis.com/cpus`
|
|
521
|
+
*/
|
|
522
|
+
metric: string;
|
|
523
|
+
/**
|
|
524
|
+
* The limit unit.
|
|
525
|
+
*
|
|
526
|
+
* An example unit would be
|
|
527
|
+
* `1/{project}/{region}`
|
|
528
|
+
* Note that `{project}` and `{region}` are not placeholders in this example;
|
|
529
|
+
* the literal characters `{` and `}` occur in the string.
|
|
530
|
+
*/
|
|
531
|
+
unit: string;
|
|
532
|
+
/** Whether this limit is precise or imprecise. */
|
|
533
|
+
isPrecise: boolean;
|
|
534
|
+
/** Whether admin overrides are allowed on this limit */
|
|
535
|
+
allowsAdminOverrides: boolean;
|
|
536
|
+
/**
|
|
537
|
+
* Summary of the enforced quota buckets, organized by quota dimension,
|
|
538
|
+
* ordered from least specific to most specific (for example, the global
|
|
539
|
+
* default bucket, with no quota dimensions, will always appear first).
|
|
540
|
+
*/
|
|
541
|
+
quotaBuckets: QuotaBucket[];
|
|
542
|
+
/**
|
|
543
|
+
* List of all supported locations.
|
|
544
|
+
* This field is present only if the limit has a {region} or {zone} dimension.
|
|
545
|
+
*/
|
|
546
|
+
supportedLocations: string[];
|
|
547
|
+
}
|
|
548
|
+
export interface ConsumerQuotaLimitProtoMsg {
|
|
549
|
+
typeUrl: "/google.api.serviceusage.v1beta1.ConsumerQuotaLimit";
|
|
550
|
+
value: Uint8Array;
|
|
551
|
+
}
|
|
552
|
+
/**
|
|
553
|
+
* Consumer quota settings for a quota limit.
|
|
554
|
+
* @name ConsumerQuotaLimitAmino
|
|
555
|
+
* @package google.api.serviceusage.v1beta1
|
|
556
|
+
* @see proto type: google.api.serviceusage.v1beta1.ConsumerQuotaLimit
|
|
557
|
+
*/
|
|
558
|
+
export interface ConsumerQuotaLimitAmino {
|
|
559
|
+
/**
|
|
560
|
+
* The resource name of the quota limit.
|
|
561
|
+
*
|
|
562
|
+
* An example name would be:
|
|
563
|
+
* `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion`
|
|
564
|
+
*
|
|
565
|
+
* The resource name is intended to be opaque and should not be parsed for
|
|
566
|
+
* its component strings, since its representation could change in the future.
|
|
567
|
+
*/
|
|
568
|
+
name?: string;
|
|
569
|
+
/**
|
|
570
|
+
* The name of the parent metric of this limit.
|
|
571
|
+
*
|
|
572
|
+
* An example name would be:
|
|
573
|
+
* `compute.googleapis.com/cpus`
|
|
574
|
+
*/
|
|
575
|
+
metric?: string;
|
|
576
|
+
/**
|
|
577
|
+
* The limit unit.
|
|
578
|
+
*
|
|
579
|
+
* An example unit would be
|
|
580
|
+
* `1/{project}/{region}`
|
|
581
|
+
* Note that `{project}` and `{region}` are not placeholders in this example;
|
|
582
|
+
* the literal characters `{` and `}` occur in the string.
|
|
583
|
+
*/
|
|
584
|
+
unit?: string;
|
|
585
|
+
/**
|
|
586
|
+
* Whether this limit is precise or imprecise.
|
|
587
|
+
*/
|
|
588
|
+
is_precise?: boolean;
|
|
589
|
+
/**
|
|
590
|
+
* Whether admin overrides are allowed on this limit
|
|
591
|
+
*/
|
|
592
|
+
allows_admin_overrides?: boolean;
|
|
593
|
+
/**
|
|
594
|
+
* Summary of the enforced quota buckets, organized by quota dimension,
|
|
595
|
+
* ordered from least specific to most specific (for example, the global
|
|
596
|
+
* default bucket, with no quota dimensions, will always appear first).
|
|
597
|
+
*/
|
|
598
|
+
quota_buckets?: QuotaBucketAmino[];
|
|
599
|
+
/**
|
|
600
|
+
* List of all supported locations.
|
|
601
|
+
* This field is present only if the limit has a {region} or {zone} dimension.
|
|
602
|
+
*/
|
|
603
|
+
supported_locations?: string[];
|
|
604
|
+
}
|
|
605
|
+
export interface ConsumerQuotaLimitAminoMsg {
|
|
606
|
+
type: "/google.api.serviceusage.v1beta1.ConsumerQuotaLimit";
|
|
607
|
+
value: ConsumerQuotaLimitAmino;
|
|
608
|
+
}
|
|
609
|
+
/** Consumer quota settings for a quota limit. */
|
|
610
|
+
export interface ConsumerQuotaLimitSDKType {
|
|
611
|
+
name: string;
|
|
612
|
+
metric: string;
|
|
613
|
+
unit: string;
|
|
614
|
+
is_precise: boolean;
|
|
615
|
+
allows_admin_overrides: boolean;
|
|
616
|
+
quota_buckets: QuotaBucketSDKType[];
|
|
617
|
+
supported_locations: string[];
|
|
618
|
+
}
|
|
619
|
+
export interface QuotaBucket_DimensionsEntry {
|
|
620
|
+
key: string;
|
|
621
|
+
value: string;
|
|
622
|
+
}
|
|
623
|
+
export interface QuotaBucket_DimensionsEntryProtoMsg {
|
|
624
|
+
typeUrl: string;
|
|
625
|
+
value: Uint8Array;
|
|
626
|
+
}
|
|
627
|
+
/**
|
|
628
|
+
* @name QuotaBucket_DimensionsEntryAmino
|
|
629
|
+
* @package google.api.serviceusage.v1beta1
|
|
630
|
+
* @see proto type: google.api.serviceusage.v1beta1.QuotaBucket_DimensionsEntry
|
|
631
|
+
*/
|
|
632
|
+
export interface QuotaBucket_DimensionsEntryAmino {
|
|
633
|
+
key?: string;
|
|
634
|
+
value?: string;
|
|
635
|
+
}
|
|
636
|
+
export interface QuotaBucket_DimensionsEntryAminoMsg {
|
|
637
|
+
type: string;
|
|
638
|
+
value: QuotaBucket_DimensionsEntryAmino;
|
|
639
|
+
}
|
|
640
|
+
export interface QuotaBucket_DimensionsEntrySDKType {
|
|
641
|
+
key: string;
|
|
642
|
+
value: string;
|
|
643
|
+
}
|
|
644
|
+
/** A quota bucket is a quota provisioning unit for a specific set of dimensions. */
|
|
645
|
+
export interface QuotaBucket {
|
|
646
|
+
/**
|
|
647
|
+
* The effective limit of this quota bucket. Equal to default_limit if there
|
|
648
|
+
* are no overrides.
|
|
649
|
+
*/
|
|
650
|
+
effectiveLimit: bigint;
|
|
651
|
+
/**
|
|
652
|
+
* The default limit of this quota bucket, as specified by the service
|
|
653
|
+
* configuration.
|
|
654
|
+
*/
|
|
655
|
+
defaultLimit: bigint;
|
|
656
|
+
/** Producer override on this quota bucket. */
|
|
657
|
+
producerOverride?: QuotaOverride;
|
|
658
|
+
/** Consumer override on this quota bucket. */
|
|
659
|
+
consumerOverride?: QuotaOverride;
|
|
660
|
+
/** Admin override on this quota bucket. */
|
|
661
|
+
adminOverride?: QuotaOverride;
|
|
662
|
+
/** Producer policy inherited from the closet ancestor of the current consumer. */
|
|
663
|
+
producerQuotaPolicy?: ProducerQuotaPolicy;
|
|
664
|
+
/**
|
|
665
|
+
* The dimensions of this quota bucket.
|
|
666
|
+
*
|
|
667
|
+
* If this map is empty, this is the global bucket, which is the default quota
|
|
668
|
+
* value applied to all requests that do not have a more specific override.
|
|
669
|
+
*
|
|
670
|
+
* If this map is nonempty, the default limit, effective limit, and quota
|
|
671
|
+
* overrides apply only to requests that have the dimensions given in the map.
|
|
672
|
+
*
|
|
673
|
+
* For example, if the map has key `region` and value `us-east-1`, then the
|
|
674
|
+
* specified effective limit is only effective in that region, and the
|
|
675
|
+
* specified overrides apply only in that region.
|
|
676
|
+
*/
|
|
677
|
+
dimensions: {
|
|
678
|
+
[key: string]: string;
|
|
679
|
+
};
|
|
680
|
+
}
|
|
681
|
+
export interface QuotaBucketProtoMsg {
|
|
682
|
+
typeUrl: "/google.api.serviceusage.v1beta1.QuotaBucket";
|
|
683
|
+
value: Uint8Array;
|
|
684
|
+
}
|
|
685
|
+
/**
|
|
686
|
+
* A quota bucket is a quota provisioning unit for a specific set of dimensions.
|
|
687
|
+
* @name QuotaBucketAmino
|
|
688
|
+
* @package google.api.serviceusage.v1beta1
|
|
689
|
+
* @see proto type: google.api.serviceusage.v1beta1.QuotaBucket
|
|
690
|
+
*/
|
|
691
|
+
export interface QuotaBucketAmino {
|
|
692
|
+
/**
|
|
693
|
+
* The effective limit of this quota bucket. Equal to default_limit if there
|
|
694
|
+
* are no overrides.
|
|
695
|
+
*/
|
|
696
|
+
effective_limit?: string;
|
|
697
|
+
/**
|
|
698
|
+
* The default limit of this quota bucket, as specified by the service
|
|
699
|
+
* configuration.
|
|
700
|
+
*/
|
|
701
|
+
default_limit?: string;
|
|
702
|
+
/**
|
|
703
|
+
* Producer override on this quota bucket.
|
|
704
|
+
*/
|
|
705
|
+
producer_override?: QuotaOverrideAmino;
|
|
706
|
+
/**
|
|
707
|
+
* Consumer override on this quota bucket.
|
|
708
|
+
*/
|
|
709
|
+
consumer_override?: QuotaOverrideAmino;
|
|
710
|
+
/**
|
|
711
|
+
* Admin override on this quota bucket.
|
|
712
|
+
*/
|
|
713
|
+
admin_override?: QuotaOverrideAmino;
|
|
714
|
+
/**
|
|
715
|
+
* Producer policy inherited from the closet ancestor of the current consumer.
|
|
716
|
+
*/
|
|
717
|
+
producer_quota_policy?: ProducerQuotaPolicyAmino;
|
|
718
|
+
/**
|
|
719
|
+
* The dimensions of this quota bucket.
|
|
720
|
+
*
|
|
721
|
+
* If this map is empty, this is the global bucket, which is the default quota
|
|
722
|
+
* value applied to all requests that do not have a more specific override.
|
|
723
|
+
*
|
|
724
|
+
* If this map is nonempty, the default limit, effective limit, and quota
|
|
725
|
+
* overrides apply only to requests that have the dimensions given in the map.
|
|
726
|
+
*
|
|
727
|
+
* For example, if the map has key `region` and value `us-east-1`, then the
|
|
728
|
+
* specified effective limit is only effective in that region, and the
|
|
729
|
+
* specified overrides apply only in that region.
|
|
730
|
+
*/
|
|
731
|
+
dimensions?: {
|
|
732
|
+
[key: string]: string;
|
|
733
|
+
};
|
|
734
|
+
}
|
|
735
|
+
export interface QuotaBucketAminoMsg {
|
|
736
|
+
type: "/google.api.serviceusage.v1beta1.QuotaBucket";
|
|
737
|
+
value: QuotaBucketAmino;
|
|
738
|
+
}
|
|
739
|
+
/** A quota bucket is a quota provisioning unit for a specific set of dimensions. */
|
|
740
|
+
export interface QuotaBucketSDKType {
|
|
741
|
+
effective_limit: bigint;
|
|
742
|
+
default_limit: bigint;
|
|
743
|
+
producer_override?: QuotaOverrideSDKType;
|
|
744
|
+
consumer_override?: QuotaOverrideSDKType;
|
|
745
|
+
admin_override?: QuotaOverrideSDKType;
|
|
746
|
+
producer_quota_policy?: ProducerQuotaPolicySDKType;
|
|
747
|
+
dimensions: {
|
|
748
|
+
[key: string]: string;
|
|
749
|
+
};
|
|
750
|
+
}
|
|
751
|
+
export interface QuotaOverride_DimensionsEntry {
|
|
752
|
+
key: string;
|
|
753
|
+
value: string;
|
|
754
|
+
}
|
|
755
|
+
export interface QuotaOverride_DimensionsEntryProtoMsg {
|
|
756
|
+
typeUrl: string;
|
|
757
|
+
value: Uint8Array;
|
|
758
|
+
}
|
|
759
|
+
/**
|
|
760
|
+
* @name QuotaOverride_DimensionsEntryAmino
|
|
761
|
+
* @package google.api.serviceusage.v1beta1
|
|
762
|
+
* @see proto type: google.api.serviceusage.v1beta1.QuotaOverride_DimensionsEntry
|
|
763
|
+
*/
|
|
764
|
+
export interface QuotaOverride_DimensionsEntryAmino {
|
|
765
|
+
key?: string;
|
|
766
|
+
value?: string;
|
|
767
|
+
}
|
|
768
|
+
export interface QuotaOverride_DimensionsEntryAminoMsg {
|
|
769
|
+
type: string;
|
|
770
|
+
value: QuotaOverride_DimensionsEntryAmino;
|
|
771
|
+
}
|
|
772
|
+
export interface QuotaOverride_DimensionsEntrySDKType {
|
|
773
|
+
key: string;
|
|
774
|
+
value: string;
|
|
775
|
+
}
|
|
776
|
+
/** A quota override */
|
|
777
|
+
export interface QuotaOverride {
|
|
778
|
+
/**
|
|
779
|
+
* The resource name of the override.
|
|
780
|
+
* This name is generated by the server when the override is created.
|
|
781
|
+
*
|
|
782
|
+
* Example names would be:
|
|
783
|
+
* `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/adminOverrides/4a3f2c1d`
|
|
784
|
+
* `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/consumerOverrides/4a3f2c1d`
|
|
785
|
+
*
|
|
786
|
+
* The resource name is intended to be opaque and should not be parsed for
|
|
787
|
+
* its component strings, since its representation could change in the future.
|
|
788
|
+
*/
|
|
789
|
+
name: string;
|
|
790
|
+
/**
|
|
791
|
+
* The overriding quota limit value.
|
|
792
|
+
* Can be any nonnegative integer, or -1 (unlimited quota).
|
|
793
|
+
*/
|
|
794
|
+
overrideValue: bigint;
|
|
795
|
+
/**
|
|
796
|
+
* If this map is nonempty, then this override applies only to specific values
|
|
797
|
+
* for dimensions defined in the limit unit.
|
|
798
|
+
*
|
|
799
|
+
* For example, an override on a limit with the unit `1/{project}/{region}`
|
|
800
|
+
* could contain an entry with the key `region` and the value `us-east-1`;
|
|
801
|
+
* the override is only applied to quota consumed in that region.
|
|
802
|
+
*
|
|
803
|
+
* This map has the following restrictions:
|
|
804
|
+
*
|
|
805
|
+
* * Keys that are not defined in the limit's unit are not valid keys.
|
|
806
|
+
* Any string appearing in `{brackets}` in the unit (besides `{project}`
|
|
807
|
+
* or
|
|
808
|
+
* `{user}`) is a defined key.
|
|
809
|
+
* * `project` is not a valid key; the project is already specified in
|
|
810
|
+
* the parent resource name.
|
|
811
|
+
* * `user` is not a valid key; the API does not support quota overrides
|
|
812
|
+
* that apply only to a specific user.
|
|
813
|
+
* * If `region` appears as a key, its value must be a valid Cloud region.
|
|
814
|
+
* * If `zone` appears as a key, its value must be a valid Cloud zone.
|
|
815
|
+
* * If any valid key other than `region` or `zone` appears in the map, then
|
|
816
|
+
* all valid keys other than `region` or `zone` must also appear in the
|
|
817
|
+
* map.
|
|
818
|
+
*/
|
|
819
|
+
dimensions: {
|
|
820
|
+
[key: string]: string;
|
|
821
|
+
};
|
|
822
|
+
/**
|
|
823
|
+
* The name of the metric to which this override applies.
|
|
824
|
+
*
|
|
825
|
+
* An example name would be:
|
|
826
|
+
* `compute.googleapis.com/cpus`
|
|
827
|
+
*/
|
|
828
|
+
metric: string;
|
|
829
|
+
/**
|
|
830
|
+
* The limit unit of the limit to which this override applies.
|
|
831
|
+
*
|
|
832
|
+
* An example unit would be:
|
|
833
|
+
* `1/{project}/{region}`
|
|
834
|
+
* Note that `{project}` and `{region}` are not placeholders in this example;
|
|
835
|
+
* the literal characters `{` and `}` occur in the string.
|
|
836
|
+
*/
|
|
837
|
+
unit: string;
|
|
838
|
+
/**
|
|
839
|
+
* The resource name of the ancestor that requested the override. For example:
|
|
840
|
+
* `organizations/12345` or `folders/67890`.
|
|
841
|
+
* Used by admin overrides only.
|
|
842
|
+
*/
|
|
843
|
+
adminOverrideAncestor: string;
|
|
844
|
+
}
|
|
845
|
+
export interface QuotaOverrideProtoMsg {
|
|
846
|
+
typeUrl: "/google.api.serviceusage.v1beta1.QuotaOverride";
|
|
847
|
+
value: Uint8Array;
|
|
848
|
+
}
|
|
849
|
+
/**
|
|
850
|
+
* A quota override
|
|
851
|
+
* @name QuotaOverrideAmino
|
|
852
|
+
* @package google.api.serviceusage.v1beta1
|
|
853
|
+
* @see proto type: google.api.serviceusage.v1beta1.QuotaOverride
|
|
854
|
+
*/
|
|
855
|
+
export interface QuotaOverrideAmino {
|
|
856
|
+
/**
|
|
857
|
+
* The resource name of the override.
|
|
858
|
+
* This name is generated by the server when the override is created.
|
|
859
|
+
*
|
|
860
|
+
* Example names would be:
|
|
861
|
+
* `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/adminOverrides/4a3f2c1d`
|
|
862
|
+
* `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/consumerOverrides/4a3f2c1d`
|
|
863
|
+
*
|
|
864
|
+
* The resource name is intended to be opaque and should not be parsed for
|
|
865
|
+
* its component strings, since its representation could change in the future.
|
|
866
|
+
*/
|
|
867
|
+
name?: string;
|
|
868
|
+
/**
|
|
869
|
+
* The overriding quota limit value.
|
|
870
|
+
* Can be any nonnegative integer, or -1 (unlimited quota).
|
|
871
|
+
*/
|
|
872
|
+
override_value?: string;
|
|
873
|
+
/**
|
|
874
|
+
* If this map is nonempty, then this override applies only to specific values
|
|
875
|
+
* for dimensions defined in the limit unit.
|
|
876
|
+
*
|
|
877
|
+
* For example, an override on a limit with the unit `1/{project}/{region}`
|
|
878
|
+
* could contain an entry with the key `region` and the value `us-east-1`;
|
|
879
|
+
* the override is only applied to quota consumed in that region.
|
|
880
|
+
*
|
|
881
|
+
* This map has the following restrictions:
|
|
882
|
+
*
|
|
883
|
+
* * Keys that are not defined in the limit's unit are not valid keys.
|
|
884
|
+
* Any string appearing in `{brackets}` in the unit (besides `{project}`
|
|
885
|
+
* or
|
|
886
|
+
* `{user}`) is a defined key.
|
|
887
|
+
* * `project` is not a valid key; the project is already specified in
|
|
888
|
+
* the parent resource name.
|
|
889
|
+
* * `user` is not a valid key; the API does not support quota overrides
|
|
890
|
+
* that apply only to a specific user.
|
|
891
|
+
* * If `region` appears as a key, its value must be a valid Cloud region.
|
|
892
|
+
* * If `zone` appears as a key, its value must be a valid Cloud zone.
|
|
893
|
+
* * If any valid key other than `region` or `zone` appears in the map, then
|
|
894
|
+
* all valid keys other than `region` or `zone` must also appear in the
|
|
895
|
+
* map.
|
|
896
|
+
*/
|
|
897
|
+
dimensions?: {
|
|
898
|
+
[key: string]: string;
|
|
899
|
+
};
|
|
900
|
+
/**
|
|
901
|
+
* The name of the metric to which this override applies.
|
|
902
|
+
*
|
|
903
|
+
* An example name would be:
|
|
904
|
+
* `compute.googleapis.com/cpus`
|
|
905
|
+
*/
|
|
906
|
+
metric?: string;
|
|
907
|
+
/**
|
|
908
|
+
* The limit unit of the limit to which this override applies.
|
|
909
|
+
*
|
|
910
|
+
* An example unit would be:
|
|
911
|
+
* `1/{project}/{region}`
|
|
912
|
+
* Note that `{project}` and `{region}` are not placeholders in this example;
|
|
913
|
+
* the literal characters `{` and `}` occur in the string.
|
|
914
|
+
*/
|
|
915
|
+
unit?: string;
|
|
916
|
+
/**
|
|
917
|
+
* The resource name of the ancestor that requested the override. For example:
|
|
918
|
+
* `organizations/12345` or `folders/67890`.
|
|
919
|
+
* Used by admin overrides only.
|
|
920
|
+
*/
|
|
921
|
+
admin_override_ancestor?: string;
|
|
922
|
+
}
|
|
923
|
+
export interface QuotaOverrideAminoMsg {
|
|
924
|
+
type: "/google.api.serviceusage.v1beta1.QuotaOverride";
|
|
925
|
+
value: QuotaOverrideAmino;
|
|
926
|
+
}
|
|
927
|
+
/** A quota override */
|
|
928
|
+
export interface QuotaOverrideSDKType {
|
|
929
|
+
name: string;
|
|
930
|
+
override_value: bigint;
|
|
931
|
+
dimensions: {
|
|
932
|
+
[key: string]: string;
|
|
933
|
+
};
|
|
934
|
+
metric: string;
|
|
935
|
+
unit: string;
|
|
936
|
+
admin_override_ancestor: string;
|
|
937
|
+
}
|
|
938
|
+
/** Import data embedded in the request message */
|
|
939
|
+
export interface OverrideInlineSource {
|
|
940
|
+
/**
|
|
941
|
+
* The overrides to create.
|
|
942
|
+
* Each override must have a value for 'metric' and 'unit', to specify
|
|
943
|
+
* which metric and which limit the override should be applied to.
|
|
944
|
+
* The 'name' field of the override does not need to be set; it is ignored.
|
|
945
|
+
*/
|
|
946
|
+
overrides: QuotaOverride[];
|
|
947
|
+
}
|
|
948
|
+
export interface OverrideInlineSourceProtoMsg {
|
|
949
|
+
typeUrl: "/google.api.serviceusage.v1beta1.OverrideInlineSource";
|
|
950
|
+
value: Uint8Array;
|
|
951
|
+
}
|
|
952
|
+
/**
|
|
953
|
+
* Import data embedded in the request message
|
|
954
|
+
* @name OverrideInlineSourceAmino
|
|
955
|
+
* @package google.api.serviceusage.v1beta1
|
|
956
|
+
* @see proto type: google.api.serviceusage.v1beta1.OverrideInlineSource
|
|
957
|
+
*/
|
|
958
|
+
export interface OverrideInlineSourceAmino {
|
|
959
|
+
/**
|
|
960
|
+
* The overrides to create.
|
|
961
|
+
* Each override must have a value for 'metric' and 'unit', to specify
|
|
962
|
+
* which metric and which limit the override should be applied to.
|
|
963
|
+
* The 'name' field of the override does not need to be set; it is ignored.
|
|
964
|
+
*/
|
|
965
|
+
overrides?: QuotaOverrideAmino[];
|
|
966
|
+
}
|
|
967
|
+
export interface OverrideInlineSourceAminoMsg {
|
|
968
|
+
type: "/google.api.serviceusage.v1beta1.OverrideInlineSource";
|
|
969
|
+
value: OverrideInlineSourceAmino;
|
|
970
|
+
}
|
|
971
|
+
/** Import data embedded in the request message */
|
|
972
|
+
export interface OverrideInlineSourceSDKType {
|
|
973
|
+
overrides: QuotaOverrideSDKType[];
|
|
974
|
+
}
|
|
975
|
+
export interface ProducerQuotaPolicy_DimensionsEntry {
|
|
976
|
+
key: string;
|
|
977
|
+
value: string;
|
|
978
|
+
}
|
|
979
|
+
export interface ProducerQuotaPolicy_DimensionsEntryProtoMsg {
|
|
980
|
+
typeUrl: string;
|
|
981
|
+
value: Uint8Array;
|
|
982
|
+
}
|
|
983
|
+
/**
|
|
984
|
+
* @name ProducerQuotaPolicy_DimensionsEntryAmino
|
|
985
|
+
* @package google.api.serviceusage.v1beta1
|
|
986
|
+
* @see proto type: google.api.serviceusage.v1beta1.ProducerQuotaPolicy_DimensionsEntry
|
|
987
|
+
*/
|
|
988
|
+
export interface ProducerQuotaPolicy_DimensionsEntryAmino {
|
|
989
|
+
key?: string;
|
|
990
|
+
value?: string;
|
|
991
|
+
}
|
|
992
|
+
export interface ProducerQuotaPolicy_DimensionsEntryAminoMsg {
|
|
993
|
+
type: string;
|
|
994
|
+
value: ProducerQuotaPolicy_DimensionsEntryAmino;
|
|
995
|
+
}
|
|
996
|
+
export interface ProducerQuotaPolicy_DimensionsEntrySDKType {
|
|
997
|
+
key: string;
|
|
998
|
+
value: string;
|
|
999
|
+
}
|
|
1000
|
+
/** Quota policy created by service producer. */
|
|
1001
|
+
export interface ProducerQuotaPolicy {
|
|
1002
|
+
/**
|
|
1003
|
+
* The resource name of the policy.
|
|
1004
|
+
* This name is generated by the server when the policy is created.
|
|
1005
|
+
*
|
|
1006
|
+
* Example names would be:
|
|
1007
|
+
* `organizations/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/producerQuotaPolicies/4a3f2c1d`
|
|
1008
|
+
*/
|
|
1009
|
+
name: string;
|
|
1010
|
+
/**
|
|
1011
|
+
* The quota policy value.
|
|
1012
|
+
* Can be any nonnegative integer, or -1 (unlimited quota).
|
|
1013
|
+
*/
|
|
1014
|
+
policyValue: bigint;
|
|
1015
|
+
/**
|
|
1016
|
+
* If this map is nonempty, then this policy applies only to specific values
|
|
1017
|
+
* for dimensions defined in the limit unit.
|
|
1018
|
+
*
|
|
1019
|
+
* For example, a policy on a limit with the unit `1/{project}/{region}`
|
|
1020
|
+
* could contain an entry with the key `region` and the value `us-east-1`;
|
|
1021
|
+
* the policy is only applied to quota consumed in that region.
|
|
1022
|
+
*
|
|
1023
|
+
* This map has the following restrictions:
|
|
1024
|
+
*
|
|
1025
|
+
* * Keys that are not defined in the limit's unit are not valid keys.
|
|
1026
|
+
* Any string appearing in {brackets} in the unit (besides {project} or
|
|
1027
|
+
* {user}) is a defined key.
|
|
1028
|
+
* * `project` is not a valid key; the project is already specified in
|
|
1029
|
+
* the parent resource name.
|
|
1030
|
+
* * `user` is not a valid key; the API does not support quota policies
|
|
1031
|
+
* that apply only to a specific user.
|
|
1032
|
+
* * If `region` appears as a key, its value must be a valid Cloud region.
|
|
1033
|
+
* * If `zone` appears as a key, its value must be a valid Cloud zone.
|
|
1034
|
+
* * If any valid key other than `region` or `zone` appears in the map, then
|
|
1035
|
+
* all valid keys other than `region` or `zone` must also appear in the
|
|
1036
|
+
* map.
|
|
1037
|
+
*/
|
|
1038
|
+
dimensions: {
|
|
1039
|
+
[key: string]: string;
|
|
1040
|
+
};
|
|
1041
|
+
/**
|
|
1042
|
+
* The name of the metric to which this policy applies.
|
|
1043
|
+
*
|
|
1044
|
+
* An example name would be:
|
|
1045
|
+
* `compute.googleapis.com/cpus`
|
|
1046
|
+
*/
|
|
1047
|
+
metric: string;
|
|
1048
|
+
/**
|
|
1049
|
+
* The limit unit of the limit to which this policy applies.
|
|
1050
|
+
*
|
|
1051
|
+
* An example unit would be:
|
|
1052
|
+
* `1/{project}/{region}`
|
|
1053
|
+
* Note that `{project}` and `{region}` are not placeholders in this example;
|
|
1054
|
+
* the literal characters `{` and `}` occur in the string.
|
|
1055
|
+
*/
|
|
1056
|
+
unit: string;
|
|
1057
|
+
/**
|
|
1058
|
+
* The cloud resource container at which the quota policy is created. The
|
|
1059
|
+
* format is `{container_type}/{container_number}`
|
|
1060
|
+
*/
|
|
1061
|
+
container: string;
|
|
1062
|
+
}
|
|
1063
|
+
export interface ProducerQuotaPolicyProtoMsg {
|
|
1064
|
+
typeUrl: "/google.api.serviceusage.v1beta1.ProducerQuotaPolicy";
|
|
1065
|
+
value: Uint8Array;
|
|
1066
|
+
}
|
|
1067
|
+
/**
|
|
1068
|
+
* Quota policy created by service producer.
|
|
1069
|
+
* @name ProducerQuotaPolicyAmino
|
|
1070
|
+
* @package google.api.serviceusage.v1beta1
|
|
1071
|
+
* @see proto type: google.api.serviceusage.v1beta1.ProducerQuotaPolicy
|
|
1072
|
+
*/
|
|
1073
|
+
export interface ProducerQuotaPolicyAmino {
|
|
1074
|
+
/**
|
|
1075
|
+
* The resource name of the policy.
|
|
1076
|
+
* This name is generated by the server when the policy is created.
|
|
1077
|
+
*
|
|
1078
|
+
* Example names would be:
|
|
1079
|
+
* `organizations/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/producerQuotaPolicies/4a3f2c1d`
|
|
1080
|
+
*/
|
|
1081
|
+
name?: string;
|
|
1082
|
+
/**
|
|
1083
|
+
* The quota policy value.
|
|
1084
|
+
* Can be any nonnegative integer, or -1 (unlimited quota).
|
|
1085
|
+
*/
|
|
1086
|
+
policy_value?: string;
|
|
1087
|
+
/**
|
|
1088
|
+
* If this map is nonempty, then this policy applies only to specific values
|
|
1089
|
+
* for dimensions defined in the limit unit.
|
|
1090
|
+
*
|
|
1091
|
+
* For example, a policy on a limit with the unit `1/{project}/{region}`
|
|
1092
|
+
* could contain an entry with the key `region` and the value `us-east-1`;
|
|
1093
|
+
* the policy is only applied to quota consumed in that region.
|
|
1094
|
+
*
|
|
1095
|
+
* This map has the following restrictions:
|
|
1096
|
+
*
|
|
1097
|
+
* * Keys that are not defined in the limit's unit are not valid keys.
|
|
1098
|
+
* Any string appearing in {brackets} in the unit (besides {project} or
|
|
1099
|
+
* {user}) is a defined key.
|
|
1100
|
+
* * `project` is not a valid key; the project is already specified in
|
|
1101
|
+
* the parent resource name.
|
|
1102
|
+
* * `user` is not a valid key; the API does not support quota policies
|
|
1103
|
+
* that apply only to a specific user.
|
|
1104
|
+
* * If `region` appears as a key, its value must be a valid Cloud region.
|
|
1105
|
+
* * If `zone` appears as a key, its value must be a valid Cloud zone.
|
|
1106
|
+
* * If any valid key other than `region` or `zone` appears in the map, then
|
|
1107
|
+
* all valid keys other than `region` or `zone` must also appear in the
|
|
1108
|
+
* map.
|
|
1109
|
+
*/
|
|
1110
|
+
dimensions?: {
|
|
1111
|
+
[key: string]: string;
|
|
1112
|
+
};
|
|
1113
|
+
/**
|
|
1114
|
+
* The name of the metric to which this policy applies.
|
|
1115
|
+
*
|
|
1116
|
+
* An example name would be:
|
|
1117
|
+
* `compute.googleapis.com/cpus`
|
|
1118
|
+
*/
|
|
1119
|
+
metric?: string;
|
|
1120
|
+
/**
|
|
1121
|
+
* The limit unit of the limit to which this policy applies.
|
|
1122
|
+
*
|
|
1123
|
+
* An example unit would be:
|
|
1124
|
+
* `1/{project}/{region}`
|
|
1125
|
+
* Note that `{project}` and `{region}` are not placeholders in this example;
|
|
1126
|
+
* the literal characters `{` and `}` occur in the string.
|
|
1127
|
+
*/
|
|
1128
|
+
unit?: string;
|
|
1129
|
+
/**
|
|
1130
|
+
* The cloud resource container at which the quota policy is created. The
|
|
1131
|
+
* format is `{container_type}/{container_number}`
|
|
1132
|
+
*/
|
|
1133
|
+
container?: string;
|
|
1134
|
+
}
|
|
1135
|
+
export interface ProducerQuotaPolicyAminoMsg {
|
|
1136
|
+
type: "/google.api.serviceusage.v1beta1.ProducerQuotaPolicy";
|
|
1137
|
+
value: ProducerQuotaPolicyAmino;
|
|
1138
|
+
}
|
|
1139
|
+
/** Quota policy created by service producer. */
|
|
1140
|
+
export interface ProducerQuotaPolicySDKType {
|
|
1141
|
+
name: string;
|
|
1142
|
+
policy_value: bigint;
|
|
1143
|
+
dimensions: {
|
|
1144
|
+
[key: string]: string;
|
|
1145
|
+
};
|
|
1146
|
+
metric: string;
|
|
1147
|
+
unit: string;
|
|
1148
|
+
container: string;
|
|
1149
|
+
}
|
|
1150
|
+
export interface AdminQuotaPolicy_DimensionsEntry {
|
|
1151
|
+
key: string;
|
|
1152
|
+
value: string;
|
|
1153
|
+
}
|
|
1154
|
+
export interface AdminQuotaPolicy_DimensionsEntryProtoMsg {
|
|
1155
|
+
typeUrl: string;
|
|
1156
|
+
value: Uint8Array;
|
|
1157
|
+
}
|
|
1158
|
+
/**
|
|
1159
|
+
* @name AdminQuotaPolicy_DimensionsEntryAmino
|
|
1160
|
+
* @package google.api.serviceusage.v1beta1
|
|
1161
|
+
* @see proto type: google.api.serviceusage.v1beta1.AdminQuotaPolicy_DimensionsEntry
|
|
1162
|
+
*/
|
|
1163
|
+
export interface AdminQuotaPolicy_DimensionsEntryAmino {
|
|
1164
|
+
key?: string;
|
|
1165
|
+
value?: string;
|
|
1166
|
+
}
|
|
1167
|
+
export interface AdminQuotaPolicy_DimensionsEntryAminoMsg {
|
|
1168
|
+
type: string;
|
|
1169
|
+
value: AdminQuotaPolicy_DimensionsEntryAmino;
|
|
1170
|
+
}
|
|
1171
|
+
export interface AdminQuotaPolicy_DimensionsEntrySDKType {
|
|
1172
|
+
key: string;
|
|
1173
|
+
value: string;
|
|
1174
|
+
}
|
|
1175
|
+
/** Quota policy created by quota administrator. */
|
|
1176
|
+
export interface AdminQuotaPolicy {
|
|
1177
|
+
/**
|
|
1178
|
+
* The resource name of the policy.
|
|
1179
|
+
* This name is generated by the server when the policy is created.
|
|
1180
|
+
*
|
|
1181
|
+
* Example names would be:
|
|
1182
|
+
* `organizations/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/adminQuotaPolicies/4a3f2c1d`
|
|
1183
|
+
*/
|
|
1184
|
+
name: string;
|
|
1185
|
+
/**
|
|
1186
|
+
* The quota policy value.
|
|
1187
|
+
* Can be any nonnegative integer, or -1 (unlimited quota).
|
|
1188
|
+
*/
|
|
1189
|
+
policyValue: bigint;
|
|
1190
|
+
/**
|
|
1191
|
+
* If this map is nonempty, then this policy applies only to specific values
|
|
1192
|
+
* for dimensions defined in the limit unit.
|
|
1193
|
+
*
|
|
1194
|
+
* For example, a policy on a limit with the unit `1/{project}/{region}`
|
|
1195
|
+
* could contain an entry with the key `region` and the value `us-east-1`;
|
|
1196
|
+
* the policy is only applied to quota consumed in that region.
|
|
1197
|
+
*
|
|
1198
|
+
* This map has the following restrictions:
|
|
1199
|
+
*
|
|
1200
|
+
* * If `region` appears as a key, its value must be a valid Cloud region.
|
|
1201
|
+
* * If `zone` appears as a key, its value must be a valid Cloud zone.
|
|
1202
|
+
* * Keys other than `region` or `zone` are not valid.
|
|
1203
|
+
*/
|
|
1204
|
+
dimensions: {
|
|
1205
|
+
[key: string]: string;
|
|
1206
|
+
};
|
|
1207
|
+
/**
|
|
1208
|
+
* The name of the metric to which this policy applies.
|
|
1209
|
+
*
|
|
1210
|
+
* An example name would be:
|
|
1211
|
+
* `compute.googleapis.com/cpus`
|
|
1212
|
+
*/
|
|
1213
|
+
metric: string;
|
|
1214
|
+
/**
|
|
1215
|
+
* The limit unit of the limit to which this policy applies.
|
|
1216
|
+
*
|
|
1217
|
+
* An example unit would be:
|
|
1218
|
+
* `1/{project}/{region}`
|
|
1219
|
+
* Note that `{project}` and `{region}` are not placeholders in this example;
|
|
1220
|
+
* the literal characters `{` and `}` occur in the string.
|
|
1221
|
+
*/
|
|
1222
|
+
unit: string;
|
|
1223
|
+
/**
|
|
1224
|
+
* The cloud resource container at which the quota policy is created. The
|
|
1225
|
+
* format is `{container_type}/{container_number}`
|
|
1226
|
+
*/
|
|
1227
|
+
container: string;
|
|
1228
|
+
}
|
|
1229
|
+
export interface AdminQuotaPolicyProtoMsg {
|
|
1230
|
+
typeUrl: "/google.api.serviceusage.v1beta1.AdminQuotaPolicy";
|
|
1231
|
+
value: Uint8Array;
|
|
1232
|
+
}
|
|
1233
|
+
/**
|
|
1234
|
+
* Quota policy created by quota administrator.
|
|
1235
|
+
* @name AdminQuotaPolicyAmino
|
|
1236
|
+
* @package google.api.serviceusage.v1beta1
|
|
1237
|
+
* @see proto type: google.api.serviceusage.v1beta1.AdminQuotaPolicy
|
|
1238
|
+
*/
|
|
1239
|
+
export interface AdminQuotaPolicyAmino {
|
|
1240
|
+
/**
|
|
1241
|
+
* The resource name of the policy.
|
|
1242
|
+
* This name is generated by the server when the policy is created.
|
|
1243
|
+
*
|
|
1244
|
+
* Example names would be:
|
|
1245
|
+
* `organizations/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/adminQuotaPolicies/4a3f2c1d`
|
|
1246
|
+
*/
|
|
1247
|
+
name?: string;
|
|
1248
|
+
/**
|
|
1249
|
+
* The quota policy value.
|
|
1250
|
+
* Can be any nonnegative integer, or -1 (unlimited quota).
|
|
1251
|
+
*/
|
|
1252
|
+
policy_value?: string;
|
|
1253
|
+
/**
|
|
1254
|
+
* If this map is nonempty, then this policy applies only to specific values
|
|
1255
|
+
* for dimensions defined in the limit unit.
|
|
1256
|
+
*
|
|
1257
|
+
* For example, a policy on a limit with the unit `1/{project}/{region}`
|
|
1258
|
+
* could contain an entry with the key `region` and the value `us-east-1`;
|
|
1259
|
+
* the policy is only applied to quota consumed in that region.
|
|
1260
|
+
*
|
|
1261
|
+
* This map has the following restrictions:
|
|
1262
|
+
*
|
|
1263
|
+
* * If `region` appears as a key, its value must be a valid Cloud region.
|
|
1264
|
+
* * If `zone` appears as a key, its value must be a valid Cloud zone.
|
|
1265
|
+
* * Keys other than `region` or `zone` are not valid.
|
|
1266
|
+
*/
|
|
1267
|
+
dimensions?: {
|
|
1268
|
+
[key: string]: string;
|
|
1269
|
+
};
|
|
1270
|
+
/**
|
|
1271
|
+
* The name of the metric to which this policy applies.
|
|
1272
|
+
*
|
|
1273
|
+
* An example name would be:
|
|
1274
|
+
* `compute.googleapis.com/cpus`
|
|
1275
|
+
*/
|
|
1276
|
+
metric?: string;
|
|
1277
|
+
/**
|
|
1278
|
+
* The limit unit of the limit to which this policy applies.
|
|
1279
|
+
*
|
|
1280
|
+
* An example unit would be:
|
|
1281
|
+
* `1/{project}/{region}`
|
|
1282
|
+
* Note that `{project}` and `{region}` are not placeholders in this example;
|
|
1283
|
+
* the literal characters `{` and `}` occur in the string.
|
|
1284
|
+
*/
|
|
1285
|
+
unit?: string;
|
|
1286
|
+
/**
|
|
1287
|
+
* The cloud resource container at which the quota policy is created. The
|
|
1288
|
+
* format is `{container_type}/{container_number}`
|
|
1289
|
+
*/
|
|
1290
|
+
container?: string;
|
|
1291
|
+
}
|
|
1292
|
+
export interface AdminQuotaPolicyAminoMsg {
|
|
1293
|
+
type: "/google.api.serviceusage.v1beta1.AdminQuotaPolicy";
|
|
1294
|
+
value: AdminQuotaPolicyAmino;
|
|
1295
|
+
}
|
|
1296
|
+
/** Quota policy created by quota administrator. */
|
|
1297
|
+
export interface AdminQuotaPolicySDKType {
|
|
1298
|
+
name: string;
|
|
1299
|
+
policy_value: bigint;
|
|
1300
|
+
dimensions: {
|
|
1301
|
+
[key: string]: string;
|
|
1302
|
+
};
|
|
1303
|
+
metric: string;
|
|
1304
|
+
unit: string;
|
|
1305
|
+
container: string;
|
|
1306
|
+
}
|
|
1307
|
+
/**
|
|
1308
|
+
* Service identity for a service. This is the identity that service producer
|
|
1309
|
+
* should use to access consumer resources.
|
|
1310
|
+
*/
|
|
1311
|
+
export interface ServiceIdentity {
|
|
1312
|
+
/**
|
|
1313
|
+
* The email address of the service account that a service producer would use
|
|
1314
|
+
* to access consumer resources.
|
|
1315
|
+
*/
|
|
1316
|
+
email: string;
|
|
1317
|
+
/**
|
|
1318
|
+
* The unique and stable id of the service account.
|
|
1319
|
+
* https://cloud.google.com/iam/reference/rest/v1/projects.serviceAccounts#ServiceAccount
|
|
1320
|
+
*/
|
|
1321
|
+
uniqueId: string;
|
|
1322
|
+
}
|
|
1323
|
+
export interface ServiceIdentityProtoMsg {
|
|
1324
|
+
typeUrl: "/google.api.serviceusage.v1beta1.ServiceIdentity";
|
|
1325
|
+
value: Uint8Array;
|
|
1326
|
+
}
|
|
1327
|
+
/**
|
|
1328
|
+
* Service identity for a service. This is the identity that service producer
|
|
1329
|
+
* should use to access consumer resources.
|
|
1330
|
+
* @name ServiceIdentityAmino
|
|
1331
|
+
* @package google.api.serviceusage.v1beta1
|
|
1332
|
+
* @see proto type: google.api.serviceusage.v1beta1.ServiceIdentity
|
|
1333
|
+
*/
|
|
1334
|
+
export interface ServiceIdentityAmino {
|
|
1335
|
+
/**
|
|
1336
|
+
* The email address of the service account that a service producer would use
|
|
1337
|
+
* to access consumer resources.
|
|
1338
|
+
*/
|
|
1339
|
+
email?: string;
|
|
1340
|
+
/**
|
|
1341
|
+
* The unique and stable id of the service account.
|
|
1342
|
+
* https://cloud.google.com/iam/reference/rest/v1/projects.serviceAccounts#ServiceAccount
|
|
1343
|
+
*/
|
|
1344
|
+
unique_id?: string;
|
|
1345
|
+
}
|
|
1346
|
+
export interface ServiceIdentityAminoMsg {
|
|
1347
|
+
type: "/google.api.serviceusage.v1beta1.ServiceIdentity";
|
|
1348
|
+
value: ServiceIdentityAmino;
|
|
1349
|
+
}
|
|
1350
|
+
/**
|
|
1351
|
+
* Service identity for a service. This is the identity that service producer
|
|
1352
|
+
* should use to access consumer resources.
|
|
1353
|
+
*/
|
|
1354
|
+
export interface ServiceIdentitySDKType {
|
|
1355
|
+
email: string;
|
|
1356
|
+
unique_id: string;
|
|
1357
|
+
}
|
|
1358
|
+
function createBaseService(): Service {
|
|
1359
|
+
return {
|
|
1360
|
+
name: "",
|
|
1361
|
+
parent: "",
|
|
1362
|
+
config: undefined,
|
|
1363
|
+
state: 0
|
|
1364
|
+
};
|
|
1365
|
+
}
|
|
1366
|
+
export const Service = {
|
|
1367
|
+
typeUrl: "/google.api.serviceusage.v1beta1.Service",
|
|
1368
|
+
encode(message: Service, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1369
|
+
if (message.name !== "") {
|
|
1370
|
+
writer.uint32(10).string(message.name);
|
|
1371
|
+
}
|
|
1372
|
+
if (message.parent !== "") {
|
|
1373
|
+
writer.uint32(42).string(message.parent);
|
|
1374
|
+
}
|
|
1375
|
+
if (message.config !== undefined) {
|
|
1376
|
+
ServiceConfig.encode(message.config, writer.uint32(18).fork()).ldelim();
|
|
1377
|
+
}
|
|
1378
|
+
if (message.state !== 0) {
|
|
1379
|
+
writer.uint32(32).int32(message.state);
|
|
1380
|
+
}
|
|
1381
|
+
return writer;
|
|
1382
|
+
},
|
|
1383
|
+
decode(input: BinaryReader | Uint8Array, length?: number): Service {
|
|
1384
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1385
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1386
|
+
const message = createBaseService();
|
|
1387
|
+
while (reader.pos < end) {
|
|
1388
|
+
const tag = reader.uint32();
|
|
1389
|
+
switch (tag >>> 3) {
|
|
1390
|
+
case 1:
|
|
1391
|
+
message.name = reader.string();
|
|
1392
|
+
break;
|
|
1393
|
+
case 5:
|
|
1394
|
+
message.parent = reader.string();
|
|
1395
|
+
break;
|
|
1396
|
+
case 2:
|
|
1397
|
+
message.config = ServiceConfig.decode(reader, reader.uint32());
|
|
1398
|
+
break;
|
|
1399
|
+
case 4:
|
|
1400
|
+
message.state = reader.int32() as any;
|
|
1401
|
+
break;
|
|
1402
|
+
default:
|
|
1403
|
+
reader.skipType(tag & 7);
|
|
1404
|
+
break;
|
|
1405
|
+
}
|
|
1406
|
+
}
|
|
1407
|
+
return message;
|
|
1408
|
+
},
|
|
1409
|
+
fromPartial(object: Partial<Service>): Service {
|
|
1410
|
+
const message = createBaseService();
|
|
1411
|
+
message.name = object.name ?? "";
|
|
1412
|
+
message.parent = object.parent ?? "";
|
|
1413
|
+
message.config = object.config !== undefined && object.config !== null ? ServiceConfig.fromPartial(object.config) : undefined;
|
|
1414
|
+
message.state = object.state ?? 0;
|
|
1415
|
+
return message;
|
|
1416
|
+
},
|
|
1417
|
+
fromAmino(object: ServiceAmino): Service {
|
|
1418
|
+
const message = createBaseService();
|
|
1419
|
+
if (object.name !== undefined && object.name !== null) {
|
|
1420
|
+
message.name = object.name;
|
|
1421
|
+
}
|
|
1422
|
+
if (object.parent !== undefined && object.parent !== null) {
|
|
1423
|
+
message.parent = object.parent;
|
|
1424
|
+
}
|
|
1425
|
+
if (object.config !== undefined && object.config !== null) {
|
|
1426
|
+
message.config = ServiceConfig.fromAmino(object.config);
|
|
1427
|
+
}
|
|
1428
|
+
if (object.state !== undefined && object.state !== null) {
|
|
1429
|
+
message.state = object.state;
|
|
1430
|
+
}
|
|
1431
|
+
return message;
|
|
1432
|
+
},
|
|
1433
|
+
toAmino(message: Service): ServiceAmino {
|
|
1434
|
+
const obj: any = {};
|
|
1435
|
+
obj.name = message.name === "" ? undefined : message.name;
|
|
1436
|
+
obj.parent = message.parent === "" ? undefined : message.parent;
|
|
1437
|
+
obj.config = message.config ? ServiceConfig.toAmino(message.config) : undefined;
|
|
1438
|
+
obj.state = message.state === 0 ? undefined : message.state;
|
|
1439
|
+
return obj;
|
|
1440
|
+
},
|
|
1441
|
+
fromAminoMsg(object: ServiceAminoMsg): Service {
|
|
1442
|
+
return Service.fromAmino(object.value);
|
|
1443
|
+
},
|
|
1444
|
+
fromProtoMsg(message: ServiceProtoMsg): Service {
|
|
1445
|
+
return Service.decode(message.value);
|
|
1446
|
+
},
|
|
1447
|
+
toProto(message: Service): Uint8Array {
|
|
1448
|
+
return Service.encode(message).finish();
|
|
1449
|
+
},
|
|
1450
|
+
toProtoMsg(message: Service): ServiceProtoMsg {
|
|
1451
|
+
return {
|
|
1452
|
+
typeUrl: "/google.api.serviceusage.v1beta1.Service",
|
|
1453
|
+
value: Service.encode(message).finish()
|
|
1454
|
+
};
|
|
1455
|
+
}
|
|
1456
|
+
};
|
|
1457
|
+
function createBaseServiceConfig(): ServiceConfig {
|
|
1458
|
+
return {
|
|
1459
|
+
name: "",
|
|
1460
|
+
title: "",
|
|
1461
|
+
apis: [],
|
|
1462
|
+
documentation: undefined,
|
|
1463
|
+
quota: undefined,
|
|
1464
|
+
authentication: undefined,
|
|
1465
|
+
usage: undefined,
|
|
1466
|
+
endpoints: [],
|
|
1467
|
+
monitoredResources: [],
|
|
1468
|
+
monitoring: undefined
|
|
1469
|
+
};
|
|
1470
|
+
}
|
|
1471
|
+
export const ServiceConfig = {
|
|
1472
|
+
typeUrl: "/google.api.serviceusage.v1beta1.ServiceConfig",
|
|
1473
|
+
encode(message: ServiceConfig, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1474
|
+
if (message.name !== "") {
|
|
1475
|
+
writer.uint32(10).string(message.name);
|
|
1476
|
+
}
|
|
1477
|
+
if (message.title !== "") {
|
|
1478
|
+
writer.uint32(18).string(message.title);
|
|
1479
|
+
}
|
|
1480
|
+
for (const v of message.apis) {
|
|
1481
|
+
Api.encode(v!, writer.uint32(26).fork()).ldelim();
|
|
1482
|
+
}
|
|
1483
|
+
if (message.documentation !== undefined) {
|
|
1484
|
+
Documentation.encode(message.documentation, writer.uint32(50).fork()).ldelim();
|
|
1485
|
+
}
|
|
1486
|
+
if (message.quota !== undefined) {
|
|
1487
|
+
Quota.encode(message.quota, writer.uint32(82).fork()).ldelim();
|
|
1488
|
+
}
|
|
1489
|
+
if (message.authentication !== undefined) {
|
|
1490
|
+
Authentication.encode(message.authentication, writer.uint32(90).fork()).ldelim();
|
|
1491
|
+
}
|
|
1492
|
+
if (message.usage !== undefined) {
|
|
1493
|
+
Usage.encode(message.usage, writer.uint32(122).fork()).ldelim();
|
|
1494
|
+
}
|
|
1495
|
+
for (const v of message.endpoints) {
|
|
1496
|
+
Endpoint.encode(v!, writer.uint32(146).fork()).ldelim();
|
|
1497
|
+
}
|
|
1498
|
+
for (const v of message.monitoredResources) {
|
|
1499
|
+
MonitoredResourceDescriptor.encode(v!, writer.uint32(202).fork()).ldelim();
|
|
1500
|
+
}
|
|
1501
|
+
if (message.monitoring !== undefined) {
|
|
1502
|
+
Monitoring.encode(message.monitoring, writer.uint32(226).fork()).ldelim();
|
|
1503
|
+
}
|
|
1504
|
+
return writer;
|
|
1505
|
+
},
|
|
1506
|
+
decode(input: BinaryReader | Uint8Array, length?: number): ServiceConfig {
|
|
1507
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1508
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1509
|
+
const message = createBaseServiceConfig();
|
|
1510
|
+
while (reader.pos < end) {
|
|
1511
|
+
const tag = reader.uint32();
|
|
1512
|
+
switch (tag >>> 3) {
|
|
1513
|
+
case 1:
|
|
1514
|
+
message.name = reader.string();
|
|
1515
|
+
break;
|
|
1516
|
+
case 2:
|
|
1517
|
+
message.title = reader.string();
|
|
1518
|
+
break;
|
|
1519
|
+
case 3:
|
|
1520
|
+
message.apis.push(Api.decode(reader, reader.uint32()));
|
|
1521
|
+
break;
|
|
1522
|
+
case 6:
|
|
1523
|
+
message.documentation = Documentation.decode(reader, reader.uint32());
|
|
1524
|
+
break;
|
|
1525
|
+
case 10:
|
|
1526
|
+
message.quota = Quota.decode(reader, reader.uint32());
|
|
1527
|
+
break;
|
|
1528
|
+
case 11:
|
|
1529
|
+
message.authentication = Authentication.decode(reader, reader.uint32());
|
|
1530
|
+
break;
|
|
1531
|
+
case 15:
|
|
1532
|
+
message.usage = Usage.decode(reader, reader.uint32());
|
|
1533
|
+
break;
|
|
1534
|
+
case 18:
|
|
1535
|
+
message.endpoints.push(Endpoint.decode(reader, reader.uint32()));
|
|
1536
|
+
break;
|
|
1537
|
+
case 25:
|
|
1538
|
+
message.monitoredResources.push(MonitoredResourceDescriptor.decode(reader, reader.uint32()));
|
|
1539
|
+
break;
|
|
1540
|
+
case 28:
|
|
1541
|
+
message.monitoring = Monitoring.decode(reader, reader.uint32());
|
|
1542
|
+
break;
|
|
1543
|
+
default:
|
|
1544
|
+
reader.skipType(tag & 7);
|
|
1545
|
+
break;
|
|
1546
|
+
}
|
|
1547
|
+
}
|
|
1548
|
+
return message;
|
|
1549
|
+
},
|
|
1550
|
+
fromPartial(object: Partial<ServiceConfig>): ServiceConfig {
|
|
1551
|
+
const message = createBaseServiceConfig();
|
|
1552
|
+
message.name = object.name ?? "";
|
|
1553
|
+
message.title = object.title ?? "";
|
|
1554
|
+
message.apis = object.apis?.map(e => Api.fromPartial(e)) || [];
|
|
1555
|
+
message.documentation = object.documentation !== undefined && object.documentation !== null ? Documentation.fromPartial(object.documentation) : undefined;
|
|
1556
|
+
message.quota = object.quota !== undefined && object.quota !== null ? Quota.fromPartial(object.quota) : undefined;
|
|
1557
|
+
message.authentication = object.authentication !== undefined && object.authentication !== null ? Authentication.fromPartial(object.authentication) : undefined;
|
|
1558
|
+
message.usage = object.usage !== undefined && object.usage !== null ? Usage.fromPartial(object.usage) : undefined;
|
|
1559
|
+
message.endpoints = object.endpoints?.map(e => Endpoint.fromPartial(e)) || [];
|
|
1560
|
+
message.monitoredResources = object.monitoredResources?.map(e => MonitoredResourceDescriptor.fromPartial(e)) || [];
|
|
1561
|
+
message.monitoring = object.monitoring !== undefined && object.monitoring !== null ? Monitoring.fromPartial(object.monitoring) : undefined;
|
|
1562
|
+
return message;
|
|
1563
|
+
},
|
|
1564
|
+
fromAmino(object: ServiceConfigAmino): ServiceConfig {
|
|
1565
|
+
const message = createBaseServiceConfig();
|
|
1566
|
+
if (object.name !== undefined && object.name !== null) {
|
|
1567
|
+
message.name = object.name;
|
|
1568
|
+
}
|
|
1569
|
+
if (object.title !== undefined && object.title !== null) {
|
|
1570
|
+
message.title = object.title;
|
|
1571
|
+
}
|
|
1572
|
+
message.apis = object.apis?.map(e => Api.fromAmino(e)) || [];
|
|
1573
|
+
if (object.documentation !== undefined && object.documentation !== null) {
|
|
1574
|
+
message.documentation = Documentation.fromAmino(object.documentation);
|
|
1575
|
+
}
|
|
1576
|
+
if (object.quota !== undefined && object.quota !== null) {
|
|
1577
|
+
message.quota = Quota.fromAmino(object.quota);
|
|
1578
|
+
}
|
|
1579
|
+
if (object.authentication !== undefined && object.authentication !== null) {
|
|
1580
|
+
message.authentication = Authentication.fromAmino(object.authentication);
|
|
1581
|
+
}
|
|
1582
|
+
if (object.usage !== undefined && object.usage !== null) {
|
|
1583
|
+
message.usage = Usage.fromAmino(object.usage);
|
|
1584
|
+
}
|
|
1585
|
+
message.endpoints = object.endpoints?.map(e => Endpoint.fromAmino(e)) || [];
|
|
1586
|
+
message.monitoredResources = object.monitored_resources?.map(e => MonitoredResourceDescriptor.fromAmino(e)) || [];
|
|
1587
|
+
if (object.monitoring !== undefined && object.monitoring !== null) {
|
|
1588
|
+
message.monitoring = Monitoring.fromAmino(object.monitoring);
|
|
1589
|
+
}
|
|
1590
|
+
return message;
|
|
1591
|
+
},
|
|
1592
|
+
toAmino(message: ServiceConfig): ServiceConfigAmino {
|
|
1593
|
+
const obj: any = {};
|
|
1594
|
+
obj.name = message.name === "" ? undefined : message.name;
|
|
1595
|
+
obj.title = message.title === "" ? undefined : message.title;
|
|
1596
|
+
if (message.apis) {
|
|
1597
|
+
obj.apis = message.apis.map(e => e ? Api.toAmino(e) : undefined);
|
|
1598
|
+
} else {
|
|
1599
|
+
obj.apis = message.apis;
|
|
1600
|
+
}
|
|
1601
|
+
obj.documentation = message.documentation ? Documentation.toAmino(message.documentation) : undefined;
|
|
1602
|
+
obj.quota = message.quota ? Quota.toAmino(message.quota) : undefined;
|
|
1603
|
+
obj.authentication = message.authentication ? Authentication.toAmino(message.authentication) : undefined;
|
|
1604
|
+
obj.usage = message.usage ? Usage.toAmino(message.usage) : undefined;
|
|
1605
|
+
if (message.endpoints) {
|
|
1606
|
+
obj.endpoints = message.endpoints.map(e => e ? Endpoint.toAmino(e) : undefined);
|
|
1607
|
+
} else {
|
|
1608
|
+
obj.endpoints = message.endpoints;
|
|
1609
|
+
}
|
|
1610
|
+
if (message.monitoredResources) {
|
|
1611
|
+
obj.monitored_resources = message.monitoredResources.map(e => e ? MonitoredResourceDescriptor.toAmino(e) : undefined);
|
|
1612
|
+
} else {
|
|
1613
|
+
obj.monitored_resources = message.monitoredResources;
|
|
1614
|
+
}
|
|
1615
|
+
obj.monitoring = message.monitoring ? Monitoring.toAmino(message.monitoring) : undefined;
|
|
1616
|
+
return obj;
|
|
1617
|
+
},
|
|
1618
|
+
fromAminoMsg(object: ServiceConfigAminoMsg): ServiceConfig {
|
|
1619
|
+
return ServiceConfig.fromAmino(object.value);
|
|
1620
|
+
},
|
|
1621
|
+
fromProtoMsg(message: ServiceConfigProtoMsg): ServiceConfig {
|
|
1622
|
+
return ServiceConfig.decode(message.value);
|
|
1623
|
+
},
|
|
1624
|
+
toProto(message: ServiceConfig): Uint8Array {
|
|
1625
|
+
return ServiceConfig.encode(message).finish();
|
|
1626
|
+
},
|
|
1627
|
+
toProtoMsg(message: ServiceConfig): ServiceConfigProtoMsg {
|
|
1628
|
+
return {
|
|
1629
|
+
typeUrl: "/google.api.serviceusage.v1beta1.ServiceConfig",
|
|
1630
|
+
value: ServiceConfig.encode(message).finish()
|
|
1631
|
+
};
|
|
1632
|
+
}
|
|
1633
|
+
};
|
|
1634
|
+
function createBaseOperationMetadata(): OperationMetadata {
|
|
1635
|
+
return {
|
|
1636
|
+
resourceNames: []
|
|
1637
|
+
};
|
|
1638
|
+
}
|
|
1639
|
+
export const OperationMetadata = {
|
|
1640
|
+
typeUrl: "/google.api.serviceusage.v1beta1.OperationMetadata",
|
|
1641
|
+
encode(message: OperationMetadata, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1642
|
+
for (const v of message.resourceNames) {
|
|
1643
|
+
writer.uint32(18).string(v!);
|
|
1644
|
+
}
|
|
1645
|
+
return writer;
|
|
1646
|
+
},
|
|
1647
|
+
decode(input: BinaryReader | Uint8Array, length?: number): OperationMetadata {
|
|
1648
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1649
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1650
|
+
const message = createBaseOperationMetadata();
|
|
1651
|
+
while (reader.pos < end) {
|
|
1652
|
+
const tag = reader.uint32();
|
|
1653
|
+
switch (tag >>> 3) {
|
|
1654
|
+
case 2:
|
|
1655
|
+
message.resourceNames.push(reader.string());
|
|
1656
|
+
break;
|
|
1657
|
+
default:
|
|
1658
|
+
reader.skipType(tag & 7);
|
|
1659
|
+
break;
|
|
1660
|
+
}
|
|
1661
|
+
}
|
|
1662
|
+
return message;
|
|
1663
|
+
},
|
|
1664
|
+
fromPartial(object: Partial<OperationMetadata>): OperationMetadata {
|
|
1665
|
+
const message = createBaseOperationMetadata();
|
|
1666
|
+
message.resourceNames = object.resourceNames?.map(e => e) || [];
|
|
1667
|
+
return message;
|
|
1668
|
+
},
|
|
1669
|
+
fromAmino(object: OperationMetadataAmino): OperationMetadata {
|
|
1670
|
+
const message = createBaseOperationMetadata();
|
|
1671
|
+
message.resourceNames = object.resource_names?.map(e => e) || [];
|
|
1672
|
+
return message;
|
|
1673
|
+
},
|
|
1674
|
+
toAmino(message: OperationMetadata): OperationMetadataAmino {
|
|
1675
|
+
const obj: any = {};
|
|
1676
|
+
if (message.resourceNames) {
|
|
1677
|
+
obj.resource_names = message.resourceNames.map(e => e);
|
|
1678
|
+
} else {
|
|
1679
|
+
obj.resource_names = message.resourceNames;
|
|
1680
|
+
}
|
|
1681
|
+
return obj;
|
|
1682
|
+
},
|
|
1683
|
+
fromAminoMsg(object: OperationMetadataAminoMsg): OperationMetadata {
|
|
1684
|
+
return OperationMetadata.fromAmino(object.value);
|
|
1685
|
+
},
|
|
1686
|
+
fromProtoMsg(message: OperationMetadataProtoMsg): OperationMetadata {
|
|
1687
|
+
return OperationMetadata.decode(message.value);
|
|
1688
|
+
},
|
|
1689
|
+
toProto(message: OperationMetadata): Uint8Array {
|
|
1690
|
+
return OperationMetadata.encode(message).finish();
|
|
1691
|
+
},
|
|
1692
|
+
toProtoMsg(message: OperationMetadata): OperationMetadataProtoMsg {
|
|
1693
|
+
return {
|
|
1694
|
+
typeUrl: "/google.api.serviceusage.v1beta1.OperationMetadata",
|
|
1695
|
+
value: OperationMetadata.encode(message).finish()
|
|
1696
|
+
};
|
|
1697
|
+
}
|
|
1698
|
+
};
|
|
1699
|
+
function createBaseConsumerQuotaMetric(): ConsumerQuotaMetric {
|
|
1700
|
+
return {
|
|
1701
|
+
name: "",
|
|
1702
|
+
metric: "",
|
|
1703
|
+
displayName: "",
|
|
1704
|
+
consumerQuotaLimits: [],
|
|
1705
|
+
descendantConsumerQuotaLimits: [],
|
|
1706
|
+
unit: ""
|
|
1707
|
+
};
|
|
1708
|
+
}
|
|
1709
|
+
export const ConsumerQuotaMetric = {
|
|
1710
|
+
typeUrl: "/google.api.serviceusage.v1beta1.ConsumerQuotaMetric",
|
|
1711
|
+
encode(message: ConsumerQuotaMetric, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1712
|
+
if (message.name !== "") {
|
|
1713
|
+
writer.uint32(10).string(message.name);
|
|
1714
|
+
}
|
|
1715
|
+
if (message.metric !== "") {
|
|
1716
|
+
writer.uint32(34).string(message.metric);
|
|
1717
|
+
}
|
|
1718
|
+
if (message.displayName !== "") {
|
|
1719
|
+
writer.uint32(18).string(message.displayName);
|
|
1720
|
+
}
|
|
1721
|
+
for (const v of message.consumerQuotaLimits) {
|
|
1722
|
+
ConsumerQuotaLimit.encode(v!, writer.uint32(26).fork()).ldelim();
|
|
1723
|
+
}
|
|
1724
|
+
for (const v of message.descendantConsumerQuotaLimits) {
|
|
1725
|
+
ConsumerQuotaLimit.encode(v!, writer.uint32(50).fork()).ldelim();
|
|
1726
|
+
}
|
|
1727
|
+
if (message.unit !== "") {
|
|
1728
|
+
writer.uint32(42).string(message.unit);
|
|
1729
|
+
}
|
|
1730
|
+
return writer;
|
|
1731
|
+
},
|
|
1732
|
+
decode(input: BinaryReader | Uint8Array, length?: number): ConsumerQuotaMetric {
|
|
1733
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1734
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1735
|
+
const message = createBaseConsumerQuotaMetric();
|
|
1736
|
+
while (reader.pos < end) {
|
|
1737
|
+
const tag = reader.uint32();
|
|
1738
|
+
switch (tag >>> 3) {
|
|
1739
|
+
case 1:
|
|
1740
|
+
message.name = reader.string();
|
|
1741
|
+
break;
|
|
1742
|
+
case 4:
|
|
1743
|
+
message.metric = reader.string();
|
|
1744
|
+
break;
|
|
1745
|
+
case 2:
|
|
1746
|
+
message.displayName = reader.string();
|
|
1747
|
+
break;
|
|
1748
|
+
case 3:
|
|
1749
|
+
message.consumerQuotaLimits.push(ConsumerQuotaLimit.decode(reader, reader.uint32()));
|
|
1750
|
+
break;
|
|
1751
|
+
case 6:
|
|
1752
|
+
message.descendantConsumerQuotaLimits.push(ConsumerQuotaLimit.decode(reader, reader.uint32()));
|
|
1753
|
+
break;
|
|
1754
|
+
case 5:
|
|
1755
|
+
message.unit = reader.string();
|
|
1756
|
+
break;
|
|
1757
|
+
default:
|
|
1758
|
+
reader.skipType(tag & 7);
|
|
1759
|
+
break;
|
|
1760
|
+
}
|
|
1761
|
+
}
|
|
1762
|
+
return message;
|
|
1763
|
+
},
|
|
1764
|
+
fromPartial(object: Partial<ConsumerQuotaMetric>): ConsumerQuotaMetric {
|
|
1765
|
+
const message = createBaseConsumerQuotaMetric();
|
|
1766
|
+
message.name = object.name ?? "";
|
|
1767
|
+
message.metric = object.metric ?? "";
|
|
1768
|
+
message.displayName = object.displayName ?? "";
|
|
1769
|
+
message.consumerQuotaLimits = object.consumerQuotaLimits?.map(e => ConsumerQuotaLimit.fromPartial(e)) || [];
|
|
1770
|
+
message.descendantConsumerQuotaLimits = object.descendantConsumerQuotaLimits?.map(e => ConsumerQuotaLimit.fromPartial(e)) || [];
|
|
1771
|
+
message.unit = object.unit ?? "";
|
|
1772
|
+
return message;
|
|
1773
|
+
},
|
|
1774
|
+
fromAmino(object: ConsumerQuotaMetricAmino): ConsumerQuotaMetric {
|
|
1775
|
+
const message = createBaseConsumerQuotaMetric();
|
|
1776
|
+
if (object.name !== undefined && object.name !== null) {
|
|
1777
|
+
message.name = object.name;
|
|
1778
|
+
}
|
|
1779
|
+
if (object.metric !== undefined && object.metric !== null) {
|
|
1780
|
+
message.metric = object.metric;
|
|
1781
|
+
}
|
|
1782
|
+
if (object.display_name !== undefined && object.display_name !== null) {
|
|
1783
|
+
message.displayName = object.display_name;
|
|
1784
|
+
}
|
|
1785
|
+
message.consumerQuotaLimits = object.consumer_quota_limits?.map(e => ConsumerQuotaLimit.fromAmino(e)) || [];
|
|
1786
|
+
message.descendantConsumerQuotaLimits = object.descendant_consumer_quota_limits?.map(e => ConsumerQuotaLimit.fromAmino(e)) || [];
|
|
1787
|
+
if (object.unit !== undefined && object.unit !== null) {
|
|
1788
|
+
message.unit = object.unit;
|
|
1789
|
+
}
|
|
1790
|
+
return message;
|
|
1791
|
+
},
|
|
1792
|
+
toAmino(message: ConsumerQuotaMetric): ConsumerQuotaMetricAmino {
|
|
1793
|
+
const obj: any = {};
|
|
1794
|
+
obj.name = message.name === "" ? undefined : message.name;
|
|
1795
|
+
obj.metric = message.metric === "" ? undefined : message.metric;
|
|
1796
|
+
obj.display_name = message.displayName === "" ? undefined : message.displayName;
|
|
1797
|
+
if (message.consumerQuotaLimits) {
|
|
1798
|
+
obj.consumer_quota_limits = message.consumerQuotaLimits.map(e => e ? ConsumerQuotaLimit.toAmino(e) : undefined);
|
|
1799
|
+
} else {
|
|
1800
|
+
obj.consumer_quota_limits = message.consumerQuotaLimits;
|
|
1801
|
+
}
|
|
1802
|
+
if (message.descendantConsumerQuotaLimits) {
|
|
1803
|
+
obj.descendant_consumer_quota_limits = message.descendantConsumerQuotaLimits.map(e => e ? ConsumerQuotaLimit.toAmino(e) : undefined);
|
|
1804
|
+
} else {
|
|
1805
|
+
obj.descendant_consumer_quota_limits = message.descendantConsumerQuotaLimits;
|
|
1806
|
+
}
|
|
1807
|
+
obj.unit = message.unit === "" ? undefined : message.unit;
|
|
1808
|
+
return obj;
|
|
1809
|
+
},
|
|
1810
|
+
fromAminoMsg(object: ConsumerQuotaMetricAminoMsg): ConsumerQuotaMetric {
|
|
1811
|
+
return ConsumerQuotaMetric.fromAmino(object.value);
|
|
1812
|
+
},
|
|
1813
|
+
fromProtoMsg(message: ConsumerQuotaMetricProtoMsg): ConsumerQuotaMetric {
|
|
1814
|
+
return ConsumerQuotaMetric.decode(message.value);
|
|
1815
|
+
},
|
|
1816
|
+
toProto(message: ConsumerQuotaMetric): Uint8Array {
|
|
1817
|
+
return ConsumerQuotaMetric.encode(message).finish();
|
|
1818
|
+
},
|
|
1819
|
+
toProtoMsg(message: ConsumerQuotaMetric): ConsumerQuotaMetricProtoMsg {
|
|
1820
|
+
return {
|
|
1821
|
+
typeUrl: "/google.api.serviceusage.v1beta1.ConsumerQuotaMetric",
|
|
1822
|
+
value: ConsumerQuotaMetric.encode(message).finish()
|
|
1823
|
+
};
|
|
1824
|
+
}
|
|
1825
|
+
};
|
|
1826
|
+
function createBaseConsumerQuotaLimit(): ConsumerQuotaLimit {
|
|
1827
|
+
return {
|
|
1828
|
+
name: "",
|
|
1829
|
+
metric: "",
|
|
1830
|
+
unit: "",
|
|
1831
|
+
isPrecise: false,
|
|
1832
|
+
allowsAdminOverrides: false,
|
|
1833
|
+
quotaBuckets: [],
|
|
1834
|
+
supportedLocations: []
|
|
1835
|
+
};
|
|
1836
|
+
}
|
|
1837
|
+
export const ConsumerQuotaLimit = {
|
|
1838
|
+
typeUrl: "/google.api.serviceusage.v1beta1.ConsumerQuotaLimit",
|
|
1839
|
+
encode(message: ConsumerQuotaLimit, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1840
|
+
if (message.name !== "") {
|
|
1841
|
+
writer.uint32(10).string(message.name);
|
|
1842
|
+
}
|
|
1843
|
+
if (message.metric !== "") {
|
|
1844
|
+
writer.uint32(66).string(message.metric);
|
|
1845
|
+
}
|
|
1846
|
+
if (message.unit !== "") {
|
|
1847
|
+
writer.uint32(18).string(message.unit);
|
|
1848
|
+
}
|
|
1849
|
+
if (message.isPrecise === true) {
|
|
1850
|
+
writer.uint32(24).bool(message.isPrecise);
|
|
1851
|
+
}
|
|
1852
|
+
if (message.allowsAdminOverrides === true) {
|
|
1853
|
+
writer.uint32(56).bool(message.allowsAdminOverrides);
|
|
1854
|
+
}
|
|
1855
|
+
for (const v of message.quotaBuckets) {
|
|
1856
|
+
QuotaBucket.encode(v!, writer.uint32(74).fork()).ldelim();
|
|
1857
|
+
}
|
|
1858
|
+
for (const v of message.supportedLocations) {
|
|
1859
|
+
writer.uint32(90).string(v!);
|
|
1860
|
+
}
|
|
1861
|
+
return writer;
|
|
1862
|
+
},
|
|
1863
|
+
decode(input: BinaryReader | Uint8Array, length?: number): ConsumerQuotaLimit {
|
|
1864
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1865
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1866
|
+
const message = createBaseConsumerQuotaLimit();
|
|
1867
|
+
while (reader.pos < end) {
|
|
1868
|
+
const tag = reader.uint32();
|
|
1869
|
+
switch (tag >>> 3) {
|
|
1870
|
+
case 1:
|
|
1871
|
+
message.name = reader.string();
|
|
1872
|
+
break;
|
|
1873
|
+
case 8:
|
|
1874
|
+
message.metric = reader.string();
|
|
1875
|
+
break;
|
|
1876
|
+
case 2:
|
|
1877
|
+
message.unit = reader.string();
|
|
1878
|
+
break;
|
|
1879
|
+
case 3:
|
|
1880
|
+
message.isPrecise = reader.bool();
|
|
1881
|
+
break;
|
|
1882
|
+
case 7:
|
|
1883
|
+
message.allowsAdminOverrides = reader.bool();
|
|
1884
|
+
break;
|
|
1885
|
+
case 9:
|
|
1886
|
+
message.quotaBuckets.push(QuotaBucket.decode(reader, reader.uint32()));
|
|
1887
|
+
break;
|
|
1888
|
+
case 11:
|
|
1889
|
+
message.supportedLocations.push(reader.string());
|
|
1890
|
+
break;
|
|
1891
|
+
default:
|
|
1892
|
+
reader.skipType(tag & 7);
|
|
1893
|
+
break;
|
|
1894
|
+
}
|
|
1895
|
+
}
|
|
1896
|
+
return message;
|
|
1897
|
+
},
|
|
1898
|
+
fromPartial(object: Partial<ConsumerQuotaLimit>): ConsumerQuotaLimit {
|
|
1899
|
+
const message = createBaseConsumerQuotaLimit();
|
|
1900
|
+
message.name = object.name ?? "";
|
|
1901
|
+
message.metric = object.metric ?? "";
|
|
1902
|
+
message.unit = object.unit ?? "";
|
|
1903
|
+
message.isPrecise = object.isPrecise ?? false;
|
|
1904
|
+
message.allowsAdminOverrides = object.allowsAdminOverrides ?? false;
|
|
1905
|
+
message.quotaBuckets = object.quotaBuckets?.map(e => QuotaBucket.fromPartial(e)) || [];
|
|
1906
|
+
message.supportedLocations = object.supportedLocations?.map(e => e) || [];
|
|
1907
|
+
return message;
|
|
1908
|
+
},
|
|
1909
|
+
fromAmino(object: ConsumerQuotaLimitAmino): ConsumerQuotaLimit {
|
|
1910
|
+
const message = createBaseConsumerQuotaLimit();
|
|
1911
|
+
if (object.name !== undefined && object.name !== null) {
|
|
1912
|
+
message.name = object.name;
|
|
1913
|
+
}
|
|
1914
|
+
if (object.metric !== undefined && object.metric !== null) {
|
|
1915
|
+
message.metric = object.metric;
|
|
1916
|
+
}
|
|
1917
|
+
if (object.unit !== undefined && object.unit !== null) {
|
|
1918
|
+
message.unit = object.unit;
|
|
1919
|
+
}
|
|
1920
|
+
if (object.is_precise !== undefined && object.is_precise !== null) {
|
|
1921
|
+
message.isPrecise = object.is_precise;
|
|
1922
|
+
}
|
|
1923
|
+
if (object.allows_admin_overrides !== undefined && object.allows_admin_overrides !== null) {
|
|
1924
|
+
message.allowsAdminOverrides = object.allows_admin_overrides;
|
|
1925
|
+
}
|
|
1926
|
+
message.quotaBuckets = object.quota_buckets?.map(e => QuotaBucket.fromAmino(e)) || [];
|
|
1927
|
+
message.supportedLocations = object.supported_locations?.map(e => e) || [];
|
|
1928
|
+
return message;
|
|
1929
|
+
},
|
|
1930
|
+
toAmino(message: ConsumerQuotaLimit): ConsumerQuotaLimitAmino {
|
|
1931
|
+
const obj: any = {};
|
|
1932
|
+
obj.name = message.name === "" ? undefined : message.name;
|
|
1933
|
+
obj.metric = message.metric === "" ? undefined : message.metric;
|
|
1934
|
+
obj.unit = message.unit === "" ? undefined : message.unit;
|
|
1935
|
+
obj.is_precise = message.isPrecise === false ? undefined : message.isPrecise;
|
|
1936
|
+
obj.allows_admin_overrides = message.allowsAdminOverrides === false ? undefined : message.allowsAdminOverrides;
|
|
1937
|
+
if (message.quotaBuckets) {
|
|
1938
|
+
obj.quota_buckets = message.quotaBuckets.map(e => e ? QuotaBucket.toAmino(e) : undefined);
|
|
1939
|
+
} else {
|
|
1940
|
+
obj.quota_buckets = message.quotaBuckets;
|
|
1941
|
+
}
|
|
1942
|
+
if (message.supportedLocations) {
|
|
1943
|
+
obj.supported_locations = message.supportedLocations.map(e => e);
|
|
1944
|
+
} else {
|
|
1945
|
+
obj.supported_locations = message.supportedLocations;
|
|
1946
|
+
}
|
|
1947
|
+
return obj;
|
|
1948
|
+
},
|
|
1949
|
+
fromAminoMsg(object: ConsumerQuotaLimitAminoMsg): ConsumerQuotaLimit {
|
|
1950
|
+
return ConsumerQuotaLimit.fromAmino(object.value);
|
|
1951
|
+
},
|
|
1952
|
+
fromProtoMsg(message: ConsumerQuotaLimitProtoMsg): ConsumerQuotaLimit {
|
|
1953
|
+
return ConsumerQuotaLimit.decode(message.value);
|
|
1954
|
+
},
|
|
1955
|
+
toProto(message: ConsumerQuotaLimit): Uint8Array {
|
|
1956
|
+
return ConsumerQuotaLimit.encode(message).finish();
|
|
1957
|
+
},
|
|
1958
|
+
toProtoMsg(message: ConsumerQuotaLimit): ConsumerQuotaLimitProtoMsg {
|
|
1959
|
+
return {
|
|
1960
|
+
typeUrl: "/google.api.serviceusage.v1beta1.ConsumerQuotaLimit",
|
|
1961
|
+
value: ConsumerQuotaLimit.encode(message).finish()
|
|
1962
|
+
};
|
|
1963
|
+
}
|
|
1964
|
+
};
|
|
1965
|
+
function createBaseQuotaBucket_DimensionsEntry(): QuotaBucket_DimensionsEntry {
|
|
1966
|
+
return {
|
|
1967
|
+
key: "",
|
|
1968
|
+
value: ""
|
|
1969
|
+
};
|
|
1970
|
+
}
|
|
1971
|
+
export const QuotaBucket_DimensionsEntry = {
|
|
1972
|
+
encode(message: QuotaBucket_DimensionsEntry, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1973
|
+
if (message.key !== "") {
|
|
1974
|
+
writer.uint32(10).string(message.key);
|
|
1975
|
+
}
|
|
1976
|
+
if (message.value !== "") {
|
|
1977
|
+
writer.uint32(18).string(message.value);
|
|
1978
|
+
}
|
|
1979
|
+
return writer;
|
|
1980
|
+
},
|
|
1981
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QuotaBucket_DimensionsEntry {
|
|
1982
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1983
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1984
|
+
const message = createBaseQuotaBucket_DimensionsEntry();
|
|
1985
|
+
while (reader.pos < end) {
|
|
1986
|
+
const tag = reader.uint32();
|
|
1987
|
+
switch (tag >>> 3) {
|
|
1988
|
+
case 1:
|
|
1989
|
+
message.key = reader.string();
|
|
1990
|
+
break;
|
|
1991
|
+
case 2:
|
|
1992
|
+
message.value = reader.string();
|
|
1993
|
+
break;
|
|
1994
|
+
default:
|
|
1995
|
+
reader.skipType(tag & 7);
|
|
1996
|
+
break;
|
|
1997
|
+
}
|
|
1998
|
+
}
|
|
1999
|
+
return message;
|
|
2000
|
+
},
|
|
2001
|
+
fromPartial(object: Partial<QuotaBucket_DimensionsEntry>): QuotaBucket_DimensionsEntry {
|
|
2002
|
+
const message = createBaseQuotaBucket_DimensionsEntry();
|
|
2003
|
+
message.key = object.key ?? "";
|
|
2004
|
+
message.value = object.value ?? "";
|
|
2005
|
+
return message;
|
|
2006
|
+
},
|
|
2007
|
+
fromAmino(object: QuotaBucket_DimensionsEntryAmino): QuotaBucket_DimensionsEntry {
|
|
2008
|
+
const message = createBaseQuotaBucket_DimensionsEntry();
|
|
2009
|
+
if (object.key !== undefined && object.key !== null) {
|
|
2010
|
+
message.key = object.key;
|
|
2011
|
+
}
|
|
2012
|
+
if (object.value !== undefined && object.value !== null) {
|
|
2013
|
+
message.value = object.value;
|
|
2014
|
+
}
|
|
2015
|
+
return message;
|
|
2016
|
+
},
|
|
2017
|
+
toAmino(message: QuotaBucket_DimensionsEntry): QuotaBucket_DimensionsEntryAmino {
|
|
2018
|
+
const obj: any = {};
|
|
2019
|
+
obj.key = message.key === "" ? undefined : message.key;
|
|
2020
|
+
obj.value = message.value === "" ? undefined : message.value;
|
|
2021
|
+
return obj;
|
|
2022
|
+
},
|
|
2023
|
+
fromAminoMsg(object: QuotaBucket_DimensionsEntryAminoMsg): QuotaBucket_DimensionsEntry {
|
|
2024
|
+
return QuotaBucket_DimensionsEntry.fromAmino(object.value);
|
|
2025
|
+
},
|
|
2026
|
+
fromProtoMsg(message: QuotaBucket_DimensionsEntryProtoMsg): QuotaBucket_DimensionsEntry {
|
|
2027
|
+
return QuotaBucket_DimensionsEntry.decode(message.value);
|
|
2028
|
+
},
|
|
2029
|
+
toProto(message: QuotaBucket_DimensionsEntry): Uint8Array {
|
|
2030
|
+
return QuotaBucket_DimensionsEntry.encode(message).finish();
|
|
2031
|
+
}
|
|
2032
|
+
};
|
|
2033
|
+
function createBaseQuotaBucket(): QuotaBucket {
|
|
2034
|
+
return {
|
|
2035
|
+
effectiveLimit: BigInt(0),
|
|
2036
|
+
defaultLimit: BigInt(0),
|
|
2037
|
+
producerOverride: undefined,
|
|
2038
|
+
consumerOverride: undefined,
|
|
2039
|
+
adminOverride: undefined,
|
|
2040
|
+
producerQuotaPolicy: undefined,
|
|
2041
|
+
dimensions: {}
|
|
2042
|
+
};
|
|
2043
|
+
}
|
|
2044
|
+
export const QuotaBucket = {
|
|
2045
|
+
typeUrl: "/google.api.serviceusage.v1beta1.QuotaBucket",
|
|
2046
|
+
encode(message: QuotaBucket, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
2047
|
+
if (message.effectiveLimit !== BigInt(0)) {
|
|
2048
|
+
writer.uint32(8).int64(message.effectiveLimit);
|
|
2049
|
+
}
|
|
2050
|
+
if (message.defaultLimit !== BigInt(0)) {
|
|
2051
|
+
writer.uint32(16).int64(message.defaultLimit);
|
|
2052
|
+
}
|
|
2053
|
+
if (message.producerOverride !== undefined) {
|
|
2054
|
+
QuotaOverride.encode(message.producerOverride, writer.uint32(26).fork()).ldelim();
|
|
2055
|
+
}
|
|
2056
|
+
if (message.consumerOverride !== undefined) {
|
|
2057
|
+
QuotaOverride.encode(message.consumerOverride, writer.uint32(34).fork()).ldelim();
|
|
2058
|
+
}
|
|
2059
|
+
if (message.adminOverride !== undefined) {
|
|
2060
|
+
QuotaOverride.encode(message.adminOverride, writer.uint32(42).fork()).ldelim();
|
|
2061
|
+
}
|
|
2062
|
+
if (message.producerQuotaPolicy !== undefined) {
|
|
2063
|
+
ProducerQuotaPolicy.encode(message.producerQuotaPolicy, writer.uint32(58).fork()).ldelim();
|
|
2064
|
+
}
|
|
2065
|
+
Object.entries(message.dimensions).forEach(([key, value]) => {
|
|
2066
|
+
QuotaBucket_DimensionsEntry.encode({
|
|
2067
|
+
key: key as any,
|
|
2068
|
+
value
|
|
2069
|
+
}, writer.uint32(50).fork()).ldelim();
|
|
2070
|
+
});
|
|
2071
|
+
return writer;
|
|
2072
|
+
},
|
|
2073
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QuotaBucket {
|
|
2074
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2075
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2076
|
+
const message = createBaseQuotaBucket();
|
|
2077
|
+
while (reader.pos < end) {
|
|
2078
|
+
const tag = reader.uint32();
|
|
2079
|
+
switch (tag >>> 3) {
|
|
2080
|
+
case 1:
|
|
2081
|
+
message.effectiveLimit = reader.int64();
|
|
2082
|
+
break;
|
|
2083
|
+
case 2:
|
|
2084
|
+
message.defaultLimit = reader.int64();
|
|
2085
|
+
break;
|
|
2086
|
+
case 3:
|
|
2087
|
+
message.producerOverride = QuotaOverride.decode(reader, reader.uint32());
|
|
2088
|
+
break;
|
|
2089
|
+
case 4:
|
|
2090
|
+
message.consumerOverride = QuotaOverride.decode(reader, reader.uint32());
|
|
2091
|
+
break;
|
|
2092
|
+
case 5:
|
|
2093
|
+
message.adminOverride = QuotaOverride.decode(reader, reader.uint32());
|
|
2094
|
+
break;
|
|
2095
|
+
case 7:
|
|
2096
|
+
message.producerQuotaPolicy = ProducerQuotaPolicy.decode(reader, reader.uint32());
|
|
2097
|
+
break;
|
|
2098
|
+
case 6:
|
|
2099
|
+
const entry6 = QuotaBucket_DimensionsEntry.decode(reader, reader.uint32());
|
|
2100
|
+
if (entry6.value !== undefined) {
|
|
2101
|
+
message.dimensions[entry6.key] = entry6.value;
|
|
2102
|
+
}
|
|
2103
|
+
break;
|
|
2104
|
+
default:
|
|
2105
|
+
reader.skipType(tag & 7);
|
|
2106
|
+
break;
|
|
2107
|
+
}
|
|
2108
|
+
}
|
|
2109
|
+
return message;
|
|
2110
|
+
},
|
|
2111
|
+
fromPartial(object: Partial<QuotaBucket>): QuotaBucket {
|
|
2112
|
+
const message = createBaseQuotaBucket();
|
|
2113
|
+
message.effectiveLimit = object.effectiveLimit !== undefined && object.effectiveLimit !== null ? BigInt(object.effectiveLimit.toString()) : BigInt(0);
|
|
2114
|
+
message.defaultLimit = object.defaultLimit !== undefined && object.defaultLimit !== null ? BigInt(object.defaultLimit.toString()) : BigInt(0);
|
|
2115
|
+
message.producerOverride = object.producerOverride !== undefined && object.producerOverride !== null ? QuotaOverride.fromPartial(object.producerOverride) : undefined;
|
|
2116
|
+
message.consumerOverride = object.consumerOverride !== undefined && object.consumerOverride !== null ? QuotaOverride.fromPartial(object.consumerOverride) : undefined;
|
|
2117
|
+
message.adminOverride = object.adminOverride !== undefined && object.adminOverride !== null ? QuotaOverride.fromPartial(object.adminOverride) : undefined;
|
|
2118
|
+
message.producerQuotaPolicy = object.producerQuotaPolicy !== undefined && object.producerQuotaPolicy !== null ? ProducerQuotaPolicy.fromPartial(object.producerQuotaPolicy) : undefined;
|
|
2119
|
+
message.dimensions = Object.entries(object.dimensions ?? {}).reduce<{
|
|
2120
|
+
[key: string]: string;
|
|
2121
|
+
}>((acc, [key, value]) => {
|
|
2122
|
+
if (value !== undefined) {
|
|
2123
|
+
acc[key] = String(value);
|
|
2124
|
+
}
|
|
2125
|
+
return acc;
|
|
2126
|
+
}, {});
|
|
2127
|
+
return message;
|
|
2128
|
+
},
|
|
2129
|
+
fromAmino(object: QuotaBucketAmino): QuotaBucket {
|
|
2130
|
+
const message = createBaseQuotaBucket();
|
|
2131
|
+
if (object.effective_limit !== undefined && object.effective_limit !== null) {
|
|
2132
|
+
message.effectiveLimit = BigInt(object.effective_limit);
|
|
2133
|
+
}
|
|
2134
|
+
if (object.default_limit !== undefined && object.default_limit !== null) {
|
|
2135
|
+
message.defaultLimit = BigInt(object.default_limit);
|
|
2136
|
+
}
|
|
2137
|
+
if (object.producer_override !== undefined && object.producer_override !== null) {
|
|
2138
|
+
message.producerOverride = QuotaOverride.fromAmino(object.producer_override);
|
|
2139
|
+
}
|
|
2140
|
+
if (object.consumer_override !== undefined && object.consumer_override !== null) {
|
|
2141
|
+
message.consumerOverride = QuotaOverride.fromAmino(object.consumer_override);
|
|
2142
|
+
}
|
|
2143
|
+
if (object.admin_override !== undefined && object.admin_override !== null) {
|
|
2144
|
+
message.adminOverride = QuotaOverride.fromAmino(object.admin_override);
|
|
2145
|
+
}
|
|
2146
|
+
if (object.producer_quota_policy !== undefined && object.producer_quota_policy !== null) {
|
|
2147
|
+
message.producerQuotaPolicy = ProducerQuotaPolicy.fromAmino(object.producer_quota_policy);
|
|
2148
|
+
}
|
|
2149
|
+
message.dimensions = Object.entries(object.dimensions ?? {}).reduce<{
|
|
2150
|
+
[key: string]: string;
|
|
2151
|
+
}>((acc, [key, value]) => {
|
|
2152
|
+
if (value !== undefined) {
|
|
2153
|
+
acc[key] = String(value);
|
|
2154
|
+
}
|
|
2155
|
+
return acc;
|
|
2156
|
+
}, {});
|
|
2157
|
+
return message;
|
|
2158
|
+
},
|
|
2159
|
+
toAmino(message: QuotaBucket): QuotaBucketAmino {
|
|
2160
|
+
const obj: any = {};
|
|
2161
|
+
obj.effective_limit = message.effectiveLimit !== BigInt(0) ? message.effectiveLimit?.toString() : undefined;
|
|
2162
|
+
obj.default_limit = message.defaultLimit !== BigInt(0) ? message.defaultLimit?.toString() : undefined;
|
|
2163
|
+
obj.producer_override = message.producerOverride ? QuotaOverride.toAmino(message.producerOverride) : undefined;
|
|
2164
|
+
obj.consumer_override = message.consumerOverride ? QuotaOverride.toAmino(message.consumerOverride) : undefined;
|
|
2165
|
+
obj.admin_override = message.adminOverride ? QuotaOverride.toAmino(message.adminOverride) : undefined;
|
|
2166
|
+
obj.producer_quota_policy = message.producerQuotaPolicy ? ProducerQuotaPolicy.toAmino(message.producerQuotaPolicy) : undefined;
|
|
2167
|
+
obj.dimensions = {};
|
|
2168
|
+
if (message.dimensions) {
|
|
2169
|
+
Object.entries(message.dimensions).forEach(([k, v]) => {
|
|
2170
|
+
obj.dimensions[k] = v;
|
|
2171
|
+
});
|
|
2172
|
+
}
|
|
2173
|
+
return obj;
|
|
2174
|
+
},
|
|
2175
|
+
fromAminoMsg(object: QuotaBucketAminoMsg): QuotaBucket {
|
|
2176
|
+
return QuotaBucket.fromAmino(object.value);
|
|
2177
|
+
},
|
|
2178
|
+
fromProtoMsg(message: QuotaBucketProtoMsg): QuotaBucket {
|
|
2179
|
+
return QuotaBucket.decode(message.value);
|
|
2180
|
+
},
|
|
2181
|
+
toProto(message: QuotaBucket): Uint8Array {
|
|
2182
|
+
return QuotaBucket.encode(message).finish();
|
|
2183
|
+
},
|
|
2184
|
+
toProtoMsg(message: QuotaBucket): QuotaBucketProtoMsg {
|
|
2185
|
+
return {
|
|
2186
|
+
typeUrl: "/google.api.serviceusage.v1beta1.QuotaBucket",
|
|
2187
|
+
value: QuotaBucket.encode(message).finish()
|
|
2188
|
+
};
|
|
2189
|
+
}
|
|
2190
|
+
};
|
|
2191
|
+
function createBaseQuotaOverride_DimensionsEntry(): QuotaOverride_DimensionsEntry {
|
|
2192
|
+
return {
|
|
2193
|
+
key: "",
|
|
2194
|
+
value: ""
|
|
2195
|
+
};
|
|
2196
|
+
}
|
|
2197
|
+
export const QuotaOverride_DimensionsEntry = {
|
|
2198
|
+
encode(message: QuotaOverride_DimensionsEntry, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
2199
|
+
if (message.key !== "") {
|
|
2200
|
+
writer.uint32(10).string(message.key);
|
|
2201
|
+
}
|
|
2202
|
+
if (message.value !== "") {
|
|
2203
|
+
writer.uint32(18).string(message.value);
|
|
2204
|
+
}
|
|
2205
|
+
return writer;
|
|
2206
|
+
},
|
|
2207
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QuotaOverride_DimensionsEntry {
|
|
2208
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2209
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2210
|
+
const message = createBaseQuotaOverride_DimensionsEntry();
|
|
2211
|
+
while (reader.pos < end) {
|
|
2212
|
+
const tag = reader.uint32();
|
|
2213
|
+
switch (tag >>> 3) {
|
|
2214
|
+
case 1:
|
|
2215
|
+
message.key = reader.string();
|
|
2216
|
+
break;
|
|
2217
|
+
case 2:
|
|
2218
|
+
message.value = reader.string();
|
|
2219
|
+
break;
|
|
2220
|
+
default:
|
|
2221
|
+
reader.skipType(tag & 7);
|
|
2222
|
+
break;
|
|
2223
|
+
}
|
|
2224
|
+
}
|
|
2225
|
+
return message;
|
|
2226
|
+
},
|
|
2227
|
+
fromPartial(object: Partial<QuotaOverride_DimensionsEntry>): QuotaOverride_DimensionsEntry {
|
|
2228
|
+
const message = createBaseQuotaOverride_DimensionsEntry();
|
|
2229
|
+
message.key = object.key ?? "";
|
|
2230
|
+
message.value = object.value ?? "";
|
|
2231
|
+
return message;
|
|
2232
|
+
},
|
|
2233
|
+
fromAmino(object: QuotaOverride_DimensionsEntryAmino): QuotaOverride_DimensionsEntry {
|
|
2234
|
+
const message = createBaseQuotaOverride_DimensionsEntry();
|
|
2235
|
+
if (object.key !== undefined && object.key !== null) {
|
|
2236
|
+
message.key = object.key;
|
|
2237
|
+
}
|
|
2238
|
+
if (object.value !== undefined && object.value !== null) {
|
|
2239
|
+
message.value = object.value;
|
|
2240
|
+
}
|
|
2241
|
+
return message;
|
|
2242
|
+
},
|
|
2243
|
+
toAmino(message: QuotaOverride_DimensionsEntry): QuotaOverride_DimensionsEntryAmino {
|
|
2244
|
+
const obj: any = {};
|
|
2245
|
+
obj.key = message.key === "" ? undefined : message.key;
|
|
2246
|
+
obj.value = message.value === "" ? undefined : message.value;
|
|
2247
|
+
return obj;
|
|
2248
|
+
},
|
|
2249
|
+
fromAminoMsg(object: QuotaOverride_DimensionsEntryAminoMsg): QuotaOverride_DimensionsEntry {
|
|
2250
|
+
return QuotaOverride_DimensionsEntry.fromAmino(object.value);
|
|
2251
|
+
},
|
|
2252
|
+
fromProtoMsg(message: QuotaOverride_DimensionsEntryProtoMsg): QuotaOverride_DimensionsEntry {
|
|
2253
|
+
return QuotaOverride_DimensionsEntry.decode(message.value);
|
|
2254
|
+
},
|
|
2255
|
+
toProto(message: QuotaOverride_DimensionsEntry): Uint8Array {
|
|
2256
|
+
return QuotaOverride_DimensionsEntry.encode(message).finish();
|
|
2257
|
+
}
|
|
2258
|
+
};
|
|
2259
|
+
function createBaseQuotaOverride(): QuotaOverride {
|
|
2260
|
+
return {
|
|
2261
|
+
name: "",
|
|
2262
|
+
overrideValue: BigInt(0),
|
|
2263
|
+
dimensions: {},
|
|
2264
|
+
metric: "",
|
|
2265
|
+
unit: "",
|
|
2266
|
+
adminOverrideAncestor: ""
|
|
2267
|
+
};
|
|
2268
|
+
}
|
|
2269
|
+
export const QuotaOverride = {
|
|
2270
|
+
typeUrl: "/google.api.serviceusage.v1beta1.QuotaOverride",
|
|
2271
|
+
encode(message: QuotaOverride, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
2272
|
+
if (message.name !== "") {
|
|
2273
|
+
writer.uint32(10).string(message.name);
|
|
2274
|
+
}
|
|
2275
|
+
if (message.overrideValue !== BigInt(0)) {
|
|
2276
|
+
writer.uint32(16).int64(message.overrideValue);
|
|
2277
|
+
}
|
|
2278
|
+
Object.entries(message.dimensions).forEach(([key, value]) => {
|
|
2279
|
+
QuotaOverride_DimensionsEntry.encode({
|
|
2280
|
+
key: key as any,
|
|
2281
|
+
value
|
|
2282
|
+
}, writer.uint32(26).fork()).ldelim();
|
|
2283
|
+
});
|
|
2284
|
+
if (message.metric !== "") {
|
|
2285
|
+
writer.uint32(34).string(message.metric);
|
|
2286
|
+
}
|
|
2287
|
+
if (message.unit !== "") {
|
|
2288
|
+
writer.uint32(42).string(message.unit);
|
|
2289
|
+
}
|
|
2290
|
+
if (message.adminOverrideAncestor !== "") {
|
|
2291
|
+
writer.uint32(50).string(message.adminOverrideAncestor);
|
|
2292
|
+
}
|
|
2293
|
+
return writer;
|
|
2294
|
+
},
|
|
2295
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QuotaOverride {
|
|
2296
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2297
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2298
|
+
const message = createBaseQuotaOverride();
|
|
2299
|
+
while (reader.pos < end) {
|
|
2300
|
+
const tag = reader.uint32();
|
|
2301
|
+
switch (tag >>> 3) {
|
|
2302
|
+
case 1:
|
|
2303
|
+
message.name = reader.string();
|
|
2304
|
+
break;
|
|
2305
|
+
case 2:
|
|
2306
|
+
message.overrideValue = reader.int64();
|
|
2307
|
+
break;
|
|
2308
|
+
case 3:
|
|
2309
|
+
const entry3 = QuotaOverride_DimensionsEntry.decode(reader, reader.uint32());
|
|
2310
|
+
if (entry3.value !== undefined) {
|
|
2311
|
+
message.dimensions[entry3.key] = entry3.value;
|
|
2312
|
+
}
|
|
2313
|
+
break;
|
|
2314
|
+
case 4:
|
|
2315
|
+
message.metric = reader.string();
|
|
2316
|
+
break;
|
|
2317
|
+
case 5:
|
|
2318
|
+
message.unit = reader.string();
|
|
2319
|
+
break;
|
|
2320
|
+
case 6:
|
|
2321
|
+
message.adminOverrideAncestor = reader.string();
|
|
2322
|
+
break;
|
|
2323
|
+
default:
|
|
2324
|
+
reader.skipType(tag & 7);
|
|
2325
|
+
break;
|
|
2326
|
+
}
|
|
2327
|
+
}
|
|
2328
|
+
return message;
|
|
2329
|
+
},
|
|
2330
|
+
fromPartial(object: Partial<QuotaOverride>): QuotaOverride {
|
|
2331
|
+
const message = createBaseQuotaOverride();
|
|
2332
|
+
message.name = object.name ?? "";
|
|
2333
|
+
message.overrideValue = object.overrideValue !== undefined && object.overrideValue !== null ? BigInt(object.overrideValue.toString()) : BigInt(0);
|
|
2334
|
+
message.dimensions = Object.entries(object.dimensions ?? {}).reduce<{
|
|
2335
|
+
[key: string]: string;
|
|
2336
|
+
}>((acc, [key, value]) => {
|
|
2337
|
+
if (value !== undefined) {
|
|
2338
|
+
acc[key] = String(value);
|
|
2339
|
+
}
|
|
2340
|
+
return acc;
|
|
2341
|
+
}, {});
|
|
2342
|
+
message.metric = object.metric ?? "";
|
|
2343
|
+
message.unit = object.unit ?? "";
|
|
2344
|
+
message.adminOverrideAncestor = object.adminOverrideAncestor ?? "";
|
|
2345
|
+
return message;
|
|
2346
|
+
},
|
|
2347
|
+
fromAmino(object: QuotaOverrideAmino): QuotaOverride {
|
|
2348
|
+
const message = createBaseQuotaOverride();
|
|
2349
|
+
if (object.name !== undefined && object.name !== null) {
|
|
2350
|
+
message.name = object.name;
|
|
2351
|
+
}
|
|
2352
|
+
if (object.override_value !== undefined && object.override_value !== null) {
|
|
2353
|
+
message.overrideValue = BigInt(object.override_value);
|
|
2354
|
+
}
|
|
2355
|
+
message.dimensions = Object.entries(object.dimensions ?? {}).reduce<{
|
|
2356
|
+
[key: string]: string;
|
|
2357
|
+
}>((acc, [key, value]) => {
|
|
2358
|
+
if (value !== undefined) {
|
|
2359
|
+
acc[key] = String(value);
|
|
2360
|
+
}
|
|
2361
|
+
return acc;
|
|
2362
|
+
}, {});
|
|
2363
|
+
if (object.metric !== undefined && object.metric !== null) {
|
|
2364
|
+
message.metric = object.metric;
|
|
2365
|
+
}
|
|
2366
|
+
if (object.unit !== undefined && object.unit !== null) {
|
|
2367
|
+
message.unit = object.unit;
|
|
2368
|
+
}
|
|
2369
|
+
if (object.admin_override_ancestor !== undefined && object.admin_override_ancestor !== null) {
|
|
2370
|
+
message.adminOverrideAncestor = object.admin_override_ancestor;
|
|
2371
|
+
}
|
|
2372
|
+
return message;
|
|
2373
|
+
},
|
|
2374
|
+
toAmino(message: QuotaOverride): QuotaOverrideAmino {
|
|
2375
|
+
const obj: any = {};
|
|
2376
|
+
obj.name = message.name === "" ? undefined : message.name;
|
|
2377
|
+
obj.override_value = message.overrideValue !== BigInt(0) ? message.overrideValue?.toString() : undefined;
|
|
2378
|
+
obj.dimensions = {};
|
|
2379
|
+
if (message.dimensions) {
|
|
2380
|
+
Object.entries(message.dimensions).forEach(([k, v]) => {
|
|
2381
|
+
obj.dimensions[k] = v;
|
|
2382
|
+
});
|
|
2383
|
+
}
|
|
2384
|
+
obj.metric = message.metric === "" ? undefined : message.metric;
|
|
2385
|
+
obj.unit = message.unit === "" ? undefined : message.unit;
|
|
2386
|
+
obj.admin_override_ancestor = message.adminOverrideAncestor === "" ? undefined : message.adminOverrideAncestor;
|
|
2387
|
+
return obj;
|
|
2388
|
+
},
|
|
2389
|
+
fromAminoMsg(object: QuotaOverrideAminoMsg): QuotaOverride {
|
|
2390
|
+
return QuotaOverride.fromAmino(object.value);
|
|
2391
|
+
},
|
|
2392
|
+
fromProtoMsg(message: QuotaOverrideProtoMsg): QuotaOverride {
|
|
2393
|
+
return QuotaOverride.decode(message.value);
|
|
2394
|
+
},
|
|
2395
|
+
toProto(message: QuotaOverride): Uint8Array {
|
|
2396
|
+
return QuotaOverride.encode(message).finish();
|
|
2397
|
+
},
|
|
2398
|
+
toProtoMsg(message: QuotaOverride): QuotaOverrideProtoMsg {
|
|
2399
|
+
return {
|
|
2400
|
+
typeUrl: "/google.api.serviceusage.v1beta1.QuotaOverride",
|
|
2401
|
+
value: QuotaOverride.encode(message).finish()
|
|
2402
|
+
};
|
|
2403
|
+
}
|
|
2404
|
+
};
|
|
2405
|
+
function createBaseOverrideInlineSource(): OverrideInlineSource {
|
|
2406
|
+
return {
|
|
2407
|
+
overrides: []
|
|
2408
|
+
};
|
|
2409
|
+
}
|
|
2410
|
+
export const OverrideInlineSource = {
|
|
2411
|
+
typeUrl: "/google.api.serviceusage.v1beta1.OverrideInlineSource",
|
|
2412
|
+
encode(message: OverrideInlineSource, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
2413
|
+
for (const v of message.overrides) {
|
|
2414
|
+
QuotaOverride.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
2415
|
+
}
|
|
2416
|
+
return writer;
|
|
2417
|
+
},
|
|
2418
|
+
decode(input: BinaryReader | Uint8Array, length?: number): OverrideInlineSource {
|
|
2419
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2420
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2421
|
+
const message = createBaseOverrideInlineSource();
|
|
2422
|
+
while (reader.pos < end) {
|
|
2423
|
+
const tag = reader.uint32();
|
|
2424
|
+
switch (tag >>> 3) {
|
|
2425
|
+
case 1:
|
|
2426
|
+
message.overrides.push(QuotaOverride.decode(reader, reader.uint32()));
|
|
2427
|
+
break;
|
|
2428
|
+
default:
|
|
2429
|
+
reader.skipType(tag & 7);
|
|
2430
|
+
break;
|
|
2431
|
+
}
|
|
2432
|
+
}
|
|
2433
|
+
return message;
|
|
2434
|
+
},
|
|
2435
|
+
fromPartial(object: Partial<OverrideInlineSource>): OverrideInlineSource {
|
|
2436
|
+
const message = createBaseOverrideInlineSource();
|
|
2437
|
+
message.overrides = object.overrides?.map(e => QuotaOverride.fromPartial(e)) || [];
|
|
2438
|
+
return message;
|
|
2439
|
+
},
|
|
2440
|
+
fromAmino(object: OverrideInlineSourceAmino): OverrideInlineSource {
|
|
2441
|
+
const message = createBaseOverrideInlineSource();
|
|
2442
|
+
message.overrides = object.overrides?.map(e => QuotaOverride.fromAmino(e)) || [];
|
|
2443
|
+
return message;
|
|
2444
|
+
},
|
|
2445
|
+
toAmino(message: OverrideInlineSource): OverrideInlineSourceAmino {
|
|
2446
|
+
const obj: any = {};
|
|
2447
|
+
if (message.overrides) {
|
|
2448
|
+
obj.overrides = message.overrides.map(e => e ? QuotaOverride.toAmino(e) : undefined);
|
|
2449
|
+
} else {
|
|
2450
|
+
obj.overrides = message.overrides;
|
|
2451
|
+
}
|
|
2452
|
+
return obj;
|
|
2453
|
+
},
|
|
2454
|
+
fromAminoMsg(object: OverrideInlineSourceAminoMsg): OverrideInlineSource {
|
|
2455
|
+
return OverrideInlineSource.fromAmino(object.value);
|
|
2456
|
+
},
|
|
2457
|
+
fromProtoMsg(message: OverrideInlineSourceProtoMsg): OverrideInlineSource {
|
|
2458
|
+
return OverrideInlineSource.decode(message.value);
|
|
2459
|
+
},
|
|
2460
|
+
toProto(message: OverrideInlineSource): Uint8Array {
|
|
2461
|
+
return OverrideInlineSource.encode(message).finish();
|
|
2462
|
+
},
|
|
2463
|
+
toProtoMsg(message: OverrideInlineSource): OverrideInlineSourceProtoMsg {
|
|
2464
|
+
return {
|
|
2465
|
+
typeUrl: "/google.api.serviceusage.v1beta1.OverrideInlineSource",
|
|
2466
|
+
value: OverrideInlineSource.encode(message).finish()
|
|
2467
|
+
};
|
|
2468
|
+
}
|
|
2469
|
+
};
|
|
2470
|
+
function createBaseProducerQuotaPolicy_DimensionsEntry(): ProducerQuotaPolicy_DimensionsEntry {
|
|
2471
|
+
return {
|
|
2472
|
+
key: "",
|
|
2473
|
+
value: ""
|
|
2474
|
+
};
|
|
2475
|
+
}
|
|
2476
|
+
export const ProducerQuotaPolicy_DimensionsEntry = {
|
|
2477
|
+
encode(message: ProducerQuotaPolicy_DimensionsEntry, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
2478
|
+
if (message.key !== "") {
|
|
2479
|
+
writer.uint32(10).string(message.key);
|
|
2480
|
+
}
|
|
2481
|
+
if (message.value !== "") {
|
|
2482
|
+
writer.uint32(18).string(message.value);
|
|
2483
|
+
}
|
|
2484
|
+
return writer;
|
|
2485
|
+
},
|
|
2486
|
+
decode(input: BinaryReader | Uint8Array, length?: number): ProducerQuotaPolicy_DimensionsEntry {
|
|
2487
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2488
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2489
|
+
const message = createBaseProducerQuotaPolicy_DimensionsEntry();
|
|
2490
|
+
while (reader.pos < end) {
|
|
2491
|
+
const tag = reader.uint32();
|
|
2492
|
+
switch (tag >>> 3) {
|
|
2493
|
+
case 1:
|
|
2494
|
+
message.key = reader.string();
|
|
2495
|
+
break;
|
|
2496
|
+
case 2:
|
|
2497
|
+
message.value = reader.string();
|
|
2498
|
+
break;
|
|
2499
|
+
default:
|
|
2500
|
+
reader.skipType(tag & 7);
|
|
2501
|
+
break;
|
|
2502
|
+
}
|
|
2503
|
+
}
|
|
2504
|
+
return message;
|
|
2505
|
+
},
|
|
2506
|
+
fromPartial(object: Partial<ProducerQuotaPolicy_DimensionsEntry>): ProducerQuotaPolicy_DimensionsEntry {
|
|
2507
|
+
const message = createBaseProducerQuotaPolicy_DimensionsEntry();
|
|
2508
|
+
message.key = object.key ?? "";
|
|
2509
|
+
message.value = object.value ?? "";
|
|
2510
|
+
return message;
|
|
2511
|
+
},
|
|
2512
|
+
fromAmino(object: ProducerQuotaPolicy_DimensionsEntryAmino): ProducerQuotaPolicy_DimensionsEntry {
|
|
2513
|
+
const message = createBaseProducerQuotaPolicy_DimensionsEntry();
|
|
2514
|
+
if (object.key !== undefined && object.key !== null) {
|
|
2515
|
+
message.key = object.key;
|
|
2516
|
+
}
|
|
2517
|
+
if (object.value !== undefined && object.value !== null) {
|
|
2518
|
+
message.value = object.value;
|
|
2519
|
+
}
|
|
2520
|
+
return message;
|
|
2521
|
+
},
|
|
2522
|
+
toAmino(message: ProducerQuotaPolicy_DimensionsEntry): ProducerQuotaPolicy_DimensionsEntryAmino {
|
|
2523
|
+
const obj: any = {};
|
|
2524
|
+
obj.key = message.key === "" ? undefined : message.key;
|
|
2525
|
+
obj.value = message.value === "" ? undefined : message.value;
|
|
2526
|
+
return obj;
|
|
2527
|
+
},
|
|
2528
|
+
fromAminoMsg(object: ProducerQuotaPolicy_DimensionsEntryAminoMsg): ProducerQuotaPolicy_DimensionsEntry {
|
|
2529
|
+
return ProducerQuotaPolicy_DimensionsEntry.fromAmino(object.value);
|
|
2530
|
+
},
|
|
2531
|
+
fromProtoMsg(message: ProducerQuotaPolicy_DimensionsEntryProtoMsg): ProducerQuotaPolicy_DimensionsEntry {
|
|
2532
|
+
return ProducerQuotaPolicy_DimensionsEntry.decode(message.value);
|
|
2533
|
+
},
|
|
2534
|
+
toProto(message: ProducerQuotaPolicy_DimensionsEntry): Uint8Array {
|
|
2535
|
+
return ProducerQuotaPolicy_DimensionsEntry.encode(message).finish();
|
|
2536
|
+
}
|
|
2537
|
+
};
|
|
2538
|
+
function createBaseProducerQuotaPolicy(): ProducerQuotaPolicy {
|
|
2539
|
+
return {
|
|
2540
|
+
name: "",
|
|
2541
|
+
policyValue: BigInt(0),
|
|
2542
|
+
dimensions: {},
|
|
2543
|
+
metric: "",
|
|
2544
|
+
unit: "",
|
|
2545
|
+
container: ""
|
|
2546
|
+
};
|
|
2547
|
+
}
|
|
2548
|
+
export const ProducerQuotaPolicy = {
|
|
2549
|
+
typeUrl: "/google.api.serviceusage.v1beta1.ProducerQuotaPolicy",
|
|
2550
|
+
encode(message: ProducerQuotaPolicy, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
2551
|
+
if (message.name !== "") {
|
|
2552
|
+
writer.uint32(10).string(message.name);
|
|
2553
|
+
}
|
|
2554
|
+
if (message.policyValue !== BigInt(0)) {
|
|
2555
|
+
writer.uint32(16).int64(message.policyValue);
|
|
2556
|
+
}
|
|
2557
|
+
Object.entries(message.dimensions).forEach(([key, value]) => {
|
|
2558
|
+
ProducerQuotaPolicy_DimensionsEntry.encode({
|
|
2559
|
+
key: key as any,
|
|
2560
|
+
value
|
|
2561
|
+
}, writer.uint32(26).fork()).ldelim();
|
|
2562
|
+
});
|
|
2563
|
+
if (message.metric !== "") {
|
|
2564
|
+
writer.uint32(34).string(message.metric);
|
|
2565
|
+
}
|
|
2566
|
+
if (message.unit !== "") {
|
|
2567
|
+
writer.uint32(42).string(message.unit);
|
|
2568
|
+
}
|
|
2569
|
+
if (message.container !== "") {
|
|
2570
|
+
writer.uint32(50).string(message.container);
|
|
2571
|
+
}
|
|
2572
|
+
return writer;
|
|
2573
|
+
},
|
|
2574
|
+
decode(input: BinaryReader | Uint8Array, length?: number): ProducerQuotaPolicy {
|
|
2575
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2576
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2577
|
+
const message = createBaseProducerQuotaPolicy();
|
|
2578
|
+
while (reader.pos < end) {
|
|
2579
|
+
const tag = reader.uint32();
|
|
2580
|
+
switch (tag >>> 3) {
|
|
2581
|
+
case 1:
|
|
2582
|
+
message.name = reader.string();
|
|
2583
|
+
break;
|
|
2584
|
+
case 2:
|
|
2585
|
+
message.policyValue = reader.int64();
|
|
2586
|
+
break;
|
|
2587
|
+
case 3:
|
|
2588
|
+
const entry3 = ProducerQuotaPolicy_DimensionsEntry.decode(reader, reader.uint32());
|
|
2589
|
+
if (entry3.value !== undefined) {
|
|
2590
|
+
message.dimensions[entry3.key] = entry3.value;
|
|
2591
|
+
}
|
|
2592
|
+
break;
|
|
2593
|
+
case 4:
|
|
2594
|
+
message.metric = reader.string();
|
|
2595
|
+
break;
|
|
2596
|
+
case 5:
|
|
2597
|
+
message.unit = reader.string();
|
|
2598
|
+
break;
|
|
2599
|
+
case 6:
|
|
2600
|
+
message.container = reader.string();
|
|
2601
|
+
break;
|
|
2602
|
+
default:
|
|
2603
|
+
reader.skipType(tag & 7);
|
|
2604
|
+
break;
|
|
2605
|
+
}
|
|
2606
|
+
}
|
|
2607
|
+
return message;
|
|
2608
|
+
},
|
|
2609
|
+
fromPartial(object: Partial<ProducerQuotaPolicy>): ProducerQuotaPolicy {
|
|
2610
|
+
const message = createBaseProducerQuotaPolicy();
|
|
2611
|
+
message.name = object.name ?? "";
|
|
2612
|
+
message.policyValue = object.policyValue !== undefined && object.policyValue !== null ? BigInt(object.policyValue.toString()) : BigInt(0);
|
|
2613
|
+
message.dimensions = Object.entries(object.dimensions ?? {}).reduce<{
|
|
2614
|
+
[key: string]: string;
|
|
2615
|
+
}>((acc, [key, value]) => {
|
|
2616
|
+
if (value !== undefined) {
|
|
2617
|
+
acc[key] = String(value);
|
|
2618
|
+
}
|
|
2619
|
+
return acc;
|
|
2620
|
+
}, {});
|
|
2621
|
+
message.metric = object.metric ?? "";
|
|
2622
|
+
message.unit = object.unit ?? "";
|
|
2623
|
+
message.container = object.container ?? "";
|
|
2624
|
+
return message;
|
|
2625
|
+
},
|
|
2626
|
+
fromAmino(object: ProducerQuotaPolicyAmino): ProducerQuotaPolicy {
|
|
2627
|
+
const message = createBaseProducerQuotaPolicy();
|
|
2628
|
+
if (object.name !== undefined && object.name !== null) {
|
|
2629
|
+
message.name = object.name;
|
|
2630
|
+
}
|
|
2631
|
+
if (object.policy_value !== undefined && object.policy_value !== null) {
|
|
2632
|
+
message.policyValue = BigInt(object.policy_value);
|
|
2633
|
+
}
|
|
2634
|
+
message.dimensions = Object.entries(object.dimensions ?? {}).reduce<{
|
|
2635
|
+
[key: string]: string;
|
|
2636
|
+
}>((acc, [key, value]) => {
|
|
2637
|
+
if (value !== undefined) {
|
|
2638
|
+
acc[key] = String(value);
|
|
2639
|
+
}
|
|
2640
|
+
return acc;
|
|
2641
|
+
}, {});
|
|
2642
|
+
if (object.metric !== undefined && object.metric !== null) {
|
|
2643
|
+
message.metric = object.metric;
|
|
2644
|
+
}
|
|
2645
|
+
if (object.unit !== undefined && object.unit !== null) {
|
|
2646
|
+
message.unit = object.unit;
|
|
2647
|
+
}
|
|
2648
|
+
if (object.container !== undefined && object.container !== null) {
|
|
2649
|
+
message.container = object.container;
|
|
2650
|
+
}
|
|
2651
|
+
return message;
|
|
2652
|
+
},
|
|
2653
|
+
toAmino(message: ProducerQuotaPolicy): ProducerQuotaPolicyAmino {
|
|
2654
|
+
const obj: any = {};
|
|
2655
|
+
obj.name = message.name === "" ? undefined : message.name;
|
|
2656
|
+
obj.policy_value = message.policyValue !== BigInt(0) ? message.policyValue?.toString() : undefined;
|
|
2657
|
+
obj.dimensions = {};
|
|
2658
|
+
if (message.dimensions) {
|
|
2659
|
+
Object.entries(message.dimensions).forEach(([k, v]) => {
|
|
2660
|
+
obj.dimensions[k] = v;
|
|
2661
|
+
});
|
|
2662
|
+
}
|
|
2663
|
+
obj.metric = message.metric === "" ? undefined : message.metric;
|
|
2664
|
+
obj.unit = message.unit === "" ? undefined : message.unit;
|
|
2665
|
+
obj.container = message.container === "" ? undefined : message.container;
|
|
2666
|
+
return obj;
|
|
2667
|
+
},
|
|
2668
|
+
fromAminoMsg(object: ProducerQuotaPolicyAminoMsg): ProducerQuotaPolicy {
|
|
2669
|
+
return ProducerQuotaPolicy.fromAmino(object.value);
|
|
2670
|
+
},
|
|
2671
|
+
fromProtoMsg(message: ProducerQuotaPolicyProtoMsg): ProducerQuotaPolicy {
|
|
2672
|
+
return ProducerQuotaPolicy.decode(message.value);
|
|
2673
|
+
},
|
|
2674
|
+
toProto(message: ProducerQuotaPolicy): Uint8Array {
|
|
2675
|
+
return ProducerQuotaPolicy.encode(message).finish();
|
|
2676
|
+
},
|
|
2677
|
+
toProtoMsg(message: ProducerQuotaPolicy): ProducerQuotaPolicyProtoMsg {
|
|
2678
|
+
return {
|
|
2679
|
+
typeUrl: "/google.api.serviceusage.v1beta1.ProducerQuotaPolicy",
|
|
2680
|
+
value: ProducerQuotaPolicy.encode(message).finish()
|
|
2681
|
+
};
|
|
2682
|
+
}
|
|
2683
|
+
};
|
|
2684
|
+
function createBaseAdminQuotaPolicy_DimensionsEntry(): AdminQuotaPolicy_DimensionsEntry {
|
|
2685
|
+
return {
|
|
2686
|
+
key: "",
|
|
2687
|
+
value: ""
|
|
2688
|
+
};
|
|
2689
|
+
}
|
|
2690
|
+
export const AdminQuotaPolicy_DimensionsEntry = {
|
|
2691
|
+
encode(message: AdminQuotaPolicy_DimensionsEntry, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
2692
|
+
if (message.key !== "") {
|
|
2693
|
+
writer.uint32(10).string(message.key);
|
|
2694
|
+
}
|
|
2695
|
+
if (message.value !== "") {
|
|
2696
|
+
writer.uint32(18).string(message.value);
|
|
2697
|
+
}
|
|
2698
|
+
return writer;
|
|
2699
|
+
},
|
|
2700
|
+
decode(input: BinaryReader | Uint8Array, length?: number): AdminQuotaPolicy_DimensionsEntry {
|
|
2701
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2702
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2703
|
+
const message = createBaseAdminQuotaPolicy_DimensionsEntry();
|
|
2704
|
+
while (reader.pos < end) {
|
|
2705
|
+
const tag = reader.uint32();
|
|
2706
|
+
switch (tag >>> 3) {
|
|
2707
|
+
case 1:
|
|
2708
|
+
message.key = reader.string();
|
|
2709
|
+
break;
|
|
2710
|
+
case 2:
|
|
2711
|
+
message.value = reader.string();
|
|
2712
|
+
break;
|
|
2713
|
+
default:
|
|
2714
|
+
reader.skipType(tag & 7);
|
|
2715
|
+
break;
|
|
2716
|
+
}
|
|
2717
|
+
}
|
|
2718
|
+
return message;
|
|
2719
|
+
},
|
|
2720
|
+
fromPartial(object: Partial<AdminQuotaPolicy_DimensionsEntry>): AdminQuotaPolicy_DimensionsEntry {
|
|
2721
|
+
const message = createBaseAdminQuotaPolicy_DimensionsEntry();
|
|
2722
|
+
message.key = object.key ?? "";
|
|
2723
|
+
message.value = object.value ?? "";
|
|
2724
|
+
return message;
|
|
2725
|
+
},
|
|
2726
|
+
fromAmino(object: AdminQuotaPolicy_DimensionsEntryAmino): AdminQuotaPolicy_DimensionsEntry {
|
|
2727
|
+
const message = createBaseAdminQuotaPolicy_DimensionsEntry();
|
|
2728
|
+
if (object.key !== undefined && object.key !== null) {
|
|
2729
|
+
message.key = object.key;
|
|
2730
|
+
}
|
|
2731
|
+
if (object.value !== undefined && object.value !== null) {
|
|
2732
|
+
message.value = object.value;
|
|
2733
|
+
}
|
|
2734
|
+
return message;
|
|
2735
|
+
},
|
|
2736
|
+
toAmino(message: AdminQuotaPolicy_DimensionsEntry): AdminQuotaPolicy_DimensionsEntryAmino {
|
|
2737
|
+
const obj: any = {};
|
|
2738
|
+
obj.key = message.key === "" ? undefined : message.key;
|
|
2739
|
+
obj.value = message.value === "" ? undefined : message.value;
|
|
2740
|
+
return obj;
|
|
2741
|
+
},
|
|
2742
|
+
fromAminoMsg(object: AdminQuotaPolicy_DimensionsEntryAminoMsg): AdminQuotaPolicy_DimensionsEntry {
|
|
2743
|
+
return AdminQuotaPolicy_DimensionsEntry.fromAmino(object.value);
|
|
2744
|
+
},
|
|
2745
|
+
fromProtoMsg(message: AdminQuotaPolicy_DimensionsEntryProtoMsg): AdminQuotaPolicy_DimensionsEntry {
|
|
2746
|
+
return AdminQuotaPolicy_DimensionsEntry.decode(message.value);
|
|
2747
|
+
},
|
|
2748
|
+
toProto(message: AdminQuotaPolicy_DimensionsEntry): Uint8Array {
|
|
2749
|
+
return AdminQuotaPolicy_DimensionsEntry.encode(message).finish();
|
|
2750
|
+
}
|
|
2751
|
+
};
|
|
2752
|
+
function createBaseAdminQuotaPolicy(): AdminQuotaPolicy {
|
|
2753
|
+
return {
|
|
2754
|
+
name: "",
|
|
2755
|
+
policyValue: BigInt(0),
|
|
2756
|
+
dimensions: {},
|
|
2757
|
+
metric: "",
|
|
2758
|
+
unit: "",
|
|
2759
|
+
container: ""
|
|
2760
|
+
};
|
|
2761
|
+
}
|
|
2762
|
+
export const AdminQuotaPolicy = {
|
|
2763
|
+
typeUrl: "/google.api.serviceusage.v1beta1.AdminQuotaPolicy",
|
|
2764
|
+
encode(message: AdminQuotaPolicy, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
2765
|
+
if (message.name !== "") {
|
|
2766
|
+
writer.uint32(10).string(message.name);
|
|
2767
|
+
}
|
|
2768
|
+
if (message.policyValue !== BigInt(0)) {
|
|
2769
|
+
writer.uint32(16).int64(message.policyValue);
|
|
2770
|
+
}
|
|
2771
|
+
Object.entries(message.dimensions).forEach(([key, value]) => {
|
|
2772
|
+
AdminQuotaPolicy_DimensionsEntry.encode({
|
|
2773
|
+
key: key as any,
|
|
2774
|
+
value
|
|
2775
|
+
}, writer.uint32(26).fork()).ldelim();
|
|
2776
|
+
});
|
|
2777
|
+
if (message.metric !== "") {
|
|
2778
|
+
writer.uint32(34).string(message.metric);
|
|
2779
|
+
}
|
|
2780
|
+
if (message.unit !== "") {
|
|
2781
|
+
writer.uint32(42).string(message.unit);
|
|
2782
|
+
}
|
|
2783
|
+
if (message.container !== "") {
|
|
2784
|
+
writer.uint32(50).string(message.container);
|
|
2785
|
+
}
|
|
2786
|
+
return writer;
|
|
2787
|
+
},
|
|
2788
|
+
decode(input: BinaryReader | Uint8Array, length?: number): AdminQuotaPolicy {
|
|
2789
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2790
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2791
|
+
const message = createBaseAdminQuotaPolicy();
|
|
2792
|
+
while (reader.pos < end) {
|
|
2793
|
+
const tag = reader.uint32();
|
|
2794
|
+
switch (tag >>> 3) {
|
|
2795
|
+
case 1:
|
|
2796
|
+
message.name = reader.string();
|
|
2797
|
+
break;
|
|
2798
|
+
case 2:
|
|
2799
|
+
message.policyValue = reader.int64();
|
|
2800
|
+
break;
|
|
2801
|
+
case 3:
|
|
2802
|
+
const entry3 = AdminQuotaPolicy_DimensionsEntry.decode(reader, reader.uint32());
|
|
2803
|
+
if (entry3.value !== undefined) {
|
|
2804
|
+
message.dimensions[entry3.key] = entry3.value;
|
|
2805
|
+
}
|
|
2806
|
+
break;
|
|
2807
|
+
case 4:
|
|
2808
|
+
message.metric = reader.string();
|
|
2809
|
+
break;
|
|
2810
|
+
case 5:
|
|
2811
|
+
message.unit = reader.string();
|
|
2812
|
+
break;
|
|
2813
|
+
case 6:
|
|
2814
|
+
message.container = reader.string();
|
|
2815
|
+
break;
|
|
2816
|
+
default:
|
|
2817
|
+
reader.skipType(tag & 7);
|
|
2818
|
+
break;
|
|
2819
|
+
}
|
|
2820
|
+
}
|
|
2821
|
+
return message;
|
|
2822
|
+
},
|
|
2823
|
+
fromPartial(object: Partial<AdminQuotaPolicy>): AdminQuotaPolicy {
|
|
2824
|
+
const message = createBaseAdminQuotaPolicy();
|
|
2825
|
+
message.name = object.name ?? "";
|
|
2826
|
+
message.policyValue = object.policyValue !== undefined && object.policyValue !== null ? BigInt(object.policyValue.toString()) : BigInt(0);
|
|
2827
|
+
message.dimensions = Object.entries(object.dimensions ?? {}).reduce<{
|
|
2828
|
+
[key: string]: string;
|
|
2829
|
+
}>((acc, [key, value]) => {
|
|
2830
|
+
if (value !== undefined) {
|
|
2831
|
+
acc[key] = String(value);
|
|
2832
|
+
}
|
|
2833
|
+
return acc;
|
|
2834
|
+
}, {});
|
|
2835
|
+
message.metric = object.metric ?? "";
|
|
2836
|
+
message.unit = object.unit ?? "";
|
|
2837
|
+
message.container = object.container ?? "";
|
|
2838
|
+
return message;
|
|
2839
|
+
},
|
|
2840
|
+
fromAmino(object: AdminQuotaPolicyAmino): AdminQuotaPolicy {
|
|
2841
|
+
const message = createBaseAdminQuotaPolicy();
|
|
2842
|
+
if (object.name !== undefined && object.name !== null) {
|
|
2843
|
+
message.name = object.name;
|
|
2844
|
+
}
|
|
2845
|
+
if (object.policy_value !== undefined && object.policy_value !== null) {
|
|
2846
|
+
message.policyValue = BigInt(object.policy_value);
|
|
2847
|
+
}
|
|
2848
|
+
message.dimensions = Object.entries(object.dimensions ?? {}).reduce<{
|
|
2849
|
+
[key: string]: string;
|
|
2850
|
+
}>((acc, [key, value]) => {
|
|
2851
|
+
if (value !== undefined) {
|
|
2852
|
+
acc[key] = String(value);
|
|
2853
|
+
}
|
|
2854
|
+
return acc;
|
|
2855
|
+
}, {});
|
|
2856
|
+
if (object.metric !== undefined && object.metric !== null) {
|
|
2857
|
+
message.metric = object.metric;
|
|
2858
|
+
}
|
|
2859
|
+
if (object.unit !== undefined && object.unit !== null) {
|
|
2860
|
+
message.unit = object.unit;
|
|
2861
|
+
}
|
|
2862
|
+
if (object.container !== undefined && object.container !== null) {
|
|
2863
|
+
message.container = object.container;
|
|
2864
|
+
}
|
|
2865
|
+
return message;
|
|
2866
|
+
},
|
|
2867
|
+
toAmino(message: AdminQuotaPolicy): AdminQuotaPolicyAmino {
|
|
2868
|
+
const obj: any = {};
|
|
2869
|
+
obj.name = message.name === "" ? undefined : message.name;
|
|
2870
|
+
obj.policy_value = message.policyValue !== BigInt(0) ? message.policyValue?.toString() : undefined;
|
|
2871
|
+
obj.dimensions = {};
|
|
2872
|
+
if (message.dimensions) {
|
|
2873
|
+
Object.entries(message.dimensions).forEach(([k, v]) => {
|
|
2874
|
+
obj.dimensions[k] = v;
|
|
2875
|
+
});
|
|
2876
|
+
}
|
|
2877
|
+
obj.metric = message.metric === "" ? undefined : message.metric;
|
|
2878
|
+
obj.unit = message.unit === "" ? undefined : message.unit;
|
|
2879
|
+
obj.container = message.container === "" ? undefined : message.container;
|
|
2880
|
+
return obj;
|
|
2881
|
+
},
|
|
2882
|
+
fromAminoMsg(object: AdminQuotaPolicyAminoMsg): AdminQuotaPolicy {
|
|
2883
|
+
return AdminQuotaPolicy.fromAmino(object.value);
|
|
2884
|
+
},
|
|
2885
|
+
fromProtoMsg(message: AdminQuotaPolicyProtoMsg): AdminQuotaPolicy {
|
|
2886
|
+
return AdminQuotaPolicy.decode(message.value);
|
|
2887
|
+
},
|
|
2888
|
+
toProto(message: AdminQuotaPolicy): Uint8Array {
|
|
2889
|
+
return AdminQuotaPolicy.encode(message).finish();
|
|
2890
|
+
},
|
|
2891
|
+
toProtoMsg(message: AdminQuotaPolicy): AdminQuotaPolicyProtoMsg {
|
|
2892
|
+
return {
|
|
2893
|
+
typeUrl: "/google.api.serviceusage.v1beta1.AdminQuotaPolicy",
|
|
2894
|
+
value: AdminQuotaPolicy.encode(message).finish()
|
|
2895
|
+
};
|
|
2896
|
+
}
|
|
2897
|
+
};
|
|
2898
|
+
function createBaseServiceIdentity(): ServiceIdentity {
|
|
2899
|
+
return {
|
|
2900
|
+
email: "",
|
|
2901
|
+
uniqueId: ""
|
|
2902
|
+
};
|
|
2903
|
+
}
|
|
2904
|
+
export const ServiceIdentity = {
|
|
2905
|
+
typeUrl: "/google.api.serviceusage.v1beta1.ServiceIdentity",
|
|
2906
|
+
encode(message: ServiceIdentity, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
2907
|
+
if (message.email !== "") {
|
|
2908
|
+
writer.uint32(10).string(message.email);
|
|
2909
|
+
}
|
|
2910
|
+
if (message.uniqueId !== "") {
|
|
2911
|
+
writer.uint32(18).string(message.uniqueId);
|
|
2912
|
+
}
|
|
2913
|
+
return writer;
|
|
2914
|
+
},
|
|
2915
|
+
decode(input: BinaryReader | Uint8Array, length?: number): ServiceIdentity {
|
|
2916
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2917
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2918
|
+
const message = createBaseServiceIdentity();
|
|
2919
|
+
while (reader.pos < end) {
|
|
2920
|
+
const tag = reader.uint32();
|
|
2921
|
+
switch (tag >>> 3) {
|
|
2922
|
+
case 1:
|
|
2923
|
+
message.email = reader.string();
|
|
2924
|
+
break;
|
|
2925
|
+
case 2:
|
|
2926
|
+
message.uniqueId = reader.string();
|
|
2927
|
+
break;
|
|
2928
|
+
default:
|
|
2929
|
+
reader.skipType(tag & 7);
|
|
2930
|
+
break;
|
|
2931
|
+
}
|
|
2932
|
+
}
|
|
2933
|
+
return message;
|
|
2934
|
+
},
|
|
2935
|
+
fromPartial(object: Partial<ServiceIdentity>): ServiceIdentity {
|
|
2936
|
+
const message = createBaseServiceIdentity();
|
|
2937
|
+
message.email = object.email ?? "";
|
|
2938
|
+
message.uniqueId = object.uniqueId ?? "";
|
|
2939
|
+
return message;
|
|
2940
|
+
},
|
|
2941
|
+
fromAmino(object: ServiceIdentityAmino): ServiceIdentity {
|
|
2942
|
+
const message = createBaseServiceIdentity();
|
|
2943
|
+
if (object.email !== undefined && object.email !== null) {
|
|
2944
|
+
message.email = object.email;
|
|
2945
|
+
}
|
|
2946
|
+
if (object.unique_id !== undefined && object.unique_id !== null) {
|
|
2947
|
+
message.uniqueId = object.unique_id;
|
|
2948
|
+
}
|
|
2949
|
+
return message;
|
|
2950
|
+
},
|
|
2951
|
+
toAmino(message: ServiceIdentity): ServiceIdentityAmino {
|
|
2952
|
+
const obj: any = {};
|
|
2953
|
+
obj.email = message.email === "" ? undefined : message.email;
|
|
2954
|
+
obj.unique_id = message.uniqueId === "" ? undefined : message.uniqueId;
|
|
2955
|
+
return obj;
|
|
2956
|
+
},
|
|
2957
|
+
fromAminoMsg(object: ServiceIdentityAminoMsg): ServiceIdentity {
|
|
2958
|
+
return ServiceIdentity.fromAmino(object.value);
|
|
2959
|
+
},
|
|
2960
|
+
fromProtoMsg(message: ServiceIdentityProtoMsg): ServiceIdentity {
|
|
2961
|
+
return ServiceIdentity.decode(message.value);
|
|
2962
|
+
},
|
|
2963
|
+
toProto(message: ServiceIdentity): Uint8Array {
|
|
2964
|
+
return ServiceIdentity.encode(message).finish();
|
|
2965
|
+
},
|
|
2966
|
+
toProtoMsg(message: ServiceIdentity): ServiceIdentityProtoMsg {
|
|
2967
|
+
return {
|
|
2968
|
+
typeUrl: "/google.api.serviceusage.v1beta1.ServiceIdentity",
|
|
2969
|
+
value: ServiceIdentity.encode(message).finish()
|
|
2970
|
+
};
|
|
2971
|
+
}
|
|
2972
|
+
};
|