@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,1174 @@
|
|
|
1
|
+
//@ts-nocheck
|
|
2
|
+
import { LaunchStage } from "./launch_stage";
|
|
3
|
+
import { Duration, DurationAmino, DurationSDKType } from "../protobuf/duration";
|
|
4
|
+
import { LabelDescriptor, LabelDescriptorAmino, LabelDescriptorSDKType } from "./label";
|
|
5
|
+
import { BinaryReader, BinaryWriter } from "../../binary";
|
|
6
|
+
/**
|
|
7
|
+
* The kind of measurement. It describes how the data is reported.
|
|
8
|
+
* For information on setting the start time and end time based on
|
|
9
|
+
* the MetricKind, see [TimeInterval][google.monitoring.v3.TimeInterval].
|
|
10
|
+
*/
|
|
11
|
+
export enum MetricDescriptor_MetricKind {
|
|
12
|
+
/** METRIC_KIND_UNSPECIFIED - Do not use this default value. */
|
|
13
|
+
METRIC_KIND_UNSPECIFIED = 0,
|
|
14
|
+
/** GAUGE - An instantaneous measurement of a value. */
|
|
15
|
+
GAUGE = 1,
|
|
16
|
+
/** DELTA - The change in a value during a time interval. */
|
|
17
|
+
DELTA = 2,
|
|
18
|
+
/**
|
|
19
|
+
* CUMULATIVE - A value accumulated over a time interval. Cumulative
|
|
20
|
+
* measurements in a time series should have the same start time
|
|
21
|
+
* and increasing end times, until an event resets the cumulative
|
|
22
|
+
* value to zero and sets a new start time for the following
|
|
23
|
+
* points.
|
|
24
|
+
*/
|
|
25
|
+
CUMULATIVE = 3,
|
|
26
|
+
UNRECOGNIZED = -1,
|
|
27
|
+
}
|
|
28
|
+
export const MetricDescriptor_MetricKindSDKType = MetricDescriptor_MetricKind;
|
|
29
|
+
export const MetricDescriptor_MetricKindAmino = MetricDescriptor_MetricKind;
|
|
30
|
+
export function metricDescriptor_MetricKindFromJSON(object: any): MetricDescriptor_MetricKind {
|
|
31
|
+
switch (object) {
|
|
32
|
+
case 0:
|
|
33
|
+
case "METRIC_KIND_UNSPECIFIED":
|
|
34
|
+
return MetricDescriptor_MetricKind.METRIC_KIND_UNSPECIFIED;
|
|
35
|
+
case 1:
|
|
36
|
+
case "GAUGE":
|
|
37
|
+
return MetricDescriptor_MetricKind.GAUGE;
|
|
38
|
+
case 2:
|
|
39
|
+
case "DELTA":
|
|
40
|
+
return MetricDescriptor_MetricKind.DELTA;
|
|
41
|
+
case 3:
|
|
42
|
+
case "CUMULATIVE":
|
|
43
|
+
return MetricDescriptor_MetricKind.CUMULATIVE;
|
|
44
|
+
case -1:
|
|
45
|
+
case "UNRECOGNIZED":
|
|
46
|
+
default:
|
|
47
|
+
return MetricDescriptor_MetricKind.UNRECOGNIZED;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
export function metricDescriptor_MetricKindToJSON(object: MetricDescriptor_MetricKind): string {
|
|
51
|
+
switch (object) {
|
|
52
|
+
case MetricDescriptor_MetricKind.METRIC_KIND_UNSPECIFIED:
|
|
53
|
+
return "METRIC_KIND_UNSPECIFIED";
|
|
54
|
+
case MetricDescriptor_MetricKind.GAUGE:
|
|
55
|
+
return "GAUGE";
|
|
56
|
+
case MetricDescriptor_MetricKind.DELTA:
|
|
57
|
+
return "DELTA";
|
|
58
|
+
case MetricDescriptor_MetricKind.CUMULATIVE:
|
|
59
|
+
return "CUMULATIVE";
|
|
60
|
+
case MetricDescriptor_MetricKind.UNRECOGNIZED:
|
|
61
|
+
default:
|
|
62
|
+
return "UNRECOGNIZED";
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
/** The value type of a metric. */
|
|
66
|
+
export enum MetricDescriptor_ValueType {
|
|
67
|
+
/** VALUE_TYPE_UNSPECIFIED - Do not use this default value. */
|
|
68
|
+
VALUE_TYPE_UNSPECIFIED = 0,
|
|
69
|
+
/**
|
|
70
|
+
* BOOL - The value is a boolean.
|
|
71
|
+
* This value type can be used only if the metric kind is `GAUGE`.
|
|
72
|
+
*/
|
|
73
|
+
BOOL = 1,
|
|
74
|
+
/** INT64 - The value is a signed 64-bit integer. */
|
|
75
|
+
INT64 = 2,
|
|
76
|
+
/** DOUBLE - The value is a double precision floating point number. */
|
|
77
|
+
DOUBLE = 3,
|
|
78
|
+
/**
|
|
79
|
+
* STRING - The value is a text string.
|
|
80
|
+
* This value type can be used only if the metric kind is `GAUGE`.
|
|
81
|
+
*/
|
|
82
|
+
STRING = 4,
|
|
83
|
+
/** DISTRIBUTION - The value is a [`Distribution`][google.api.Distribution]. */
|
|
84
|
+
DISTRIBUTION = 5,
|
|
85
|
+
/** MONEY - The value is money. */
|
|
86
|
+
MONEY = 6,
|
|
87
|
+
UNRECOGNIZED = -1,
|
|
88
|
+
}
|
|
89
|
+
export const MetricDescriptor_ValueTypeSDKType = MetricDescriptor_ValueType;
|
|
90
|
+
export const MetricDescriptor_ValueTypeAmino = MetricDescriptor_ValueType;
|
|
91
|
+
export function metricDescriptor_ValueTypeFromJSON(object: any): MetricDescriptor_ValueType {
|
|
92
|
+
switch (object) {
|
|
93
|
+
case 0:
|
|
94
|
+
case "VALUE_TYPE_UNSPECIFIED":
|
|
95
|
+
return MetricDescriptor_ValueType.VALUE_TYPE_UNSPECIFIED;
|
|
96
|
+
case 1:
|
|
97
|
+
case "BOOL":
|
|
98
|
+
return MetricDescriptor_ValueType.BOOL;
|
|
99
|
+
case 2:
|
|
100
|
+
case "INT64":
|
|
101
|
+
return MetricDescriptor_ValueType.INT64;
|
|
102
|
+
case 3:
|
|
103
|
+
case "DOUBLE":
|
|
104
|
+
return MetricDescriptor_ValueType.DOUBLE;
|
|
105
|
+
case 4:
|
|
106
|
+
case "STRING":
|
|
107
|
+
return MetricDescriptor_ValueType.STRING;
|
|
108
|
+
case 5:
|
|
109
|
+
case "DISTRIBUTION":
|
|
110
|
+
return MetricDescriptor_ValueType.DISTRIBUTION;
|
|
111
|
+
case 6:
|
|
112
|
+
case "MONEY":
|
|
113
|
+
return MetricDescriptor_ValueType.MONEY;
|
|
114
|
+
case -1:
|
|
115
|
+
case "UNRECOGNIZED":
|
|
116
|
+
default:
|
|
117
|
+
return MetricDescriptor_ValueType.UNRECOGNIZED;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
export function metricDescriptor_ValueTypeToJSON(object: MetricDescriptor_ValueType): string {
|
|
121
|
+
switch (object) {
|
|
122
|
+
case MetricDescriptor_ValueType.VALUE_TYPE_UNSPECIFIED:
|
|
123
|
+
return "VALUE_TYPE_UNSPECIFIED";
|
|
124
|
+
case MetricDescriptor_ValueType.BOOL:
|
|
125
|
+
return "BOOL";
|
|
126
|
+
case MetricDescriptor_ValueType.INT64:
|
|
127
|
+
return "INT64";
|
|
128
|
+
case MetricDescriptor_ValueType.DOUBLE:
|
|
129
|
+
return "DOUBLE";
|
|
130
|
+
case MetricDescriptor_ValueType.STRING:
|
|
131
|
+
return "STRING";
|
|
132
|
+
case MetricDescriptor_ValueType.DISTRIBUTION:
|
|
133
|
+
return "DISTRIBUTION";
|
|
134
|
+
case MetricDescriptor_ValueType.MONEY:
|
|
135
|
+
return "MONEY";
|
|
136
|
+
case MetricDescriptor_ValueType.UNRECOGNIZED:
|
|
137
|
+
default:
|
|
138
|
+
return "UNRECOGNIZED";
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
/** The resource hierarchy level of the timeseries data of a metric. */
|
|
142
|
+
export enum MetricDescriptor_MetricDescriptorMetadata_TimeSeriesResourceHierarchyLevel {
|
|
143
|
+
/** TIME_SERIES_RESOURCE_HIERARCHY_LEVEL_UNSPECIFIED - Do not use this default value. */
|
|
144
|
+
TIME_SERIES_RESOURCE_HIERARCHY_LEVEL_UNSPECIFIED = 0,
|
|
145
|
+
/** PROJECT - Scopes a metric to a project. */
|
|
146
|
+
PROJECT = 1,
|
|
147
|
+
/** ORGANIZATION - Scopes a metric to an organization. */
|
|
148
|
+
ORGANIZATION = 2,
|
|
149
|
+
/** FOLDER - Scopes a metric to a folder. */
|
|
150
|
+
FOLDER = 3,
|
|
151
|
+
UNRECOGNIZED = -1,
|
|
152
|
+
}
|
|
153
|
+
export const MetricDescriptor_MetricDescriptorMetadata_TimeSeriesResourceHierarchyLevelSDKType = MetricDescriptor_MetricDescriptorMetadata_TimeSeriesResourceHierarchyLevel;
|
|
154
|
+
export const MetricDescriptor_MetricDescriptorMetadata_TimeSeriesResourceHierarchyLevelAmino = MetricDescriptor_MetricDescriptorMetadata_TimeSeriesResourceHierarchyLevel;
|
|
155
|
+
export function metricDescriptor_MetricDescriptorMetadata_TimeSeriesResourceHierarchyLevelFromJSON(object: any): MetricDescriptor_MetricDescriptorMetadata_TimeSeriesResourceHierarchyLevel {
|
|
156
|
+
switch (object) {
|
|
157
|
+
case 0:
|
|
158
|
+
case "TIME_SERIES_RESOURCE_HIERARCHY_LEVEL_UNSPECIFIED":
|
|
159
|
+
return MetricDescriptor_MetricDescriptorMetadata_TimeSeriesResourceHierarchyLevel.TIME_SERIES_RESOURCE_HIERARCHY_LEVEL_UNSPECIFIED;
|
|
160
|
+
case 1:
|
|
161
|
+
case "PROJECT":
|
|
162
|
+
return MetricDescriptor_MetricDescriptorMetadata_TimeSeriesResourceHierarchyLevel.PROJECT;
|
|
163
|
+
case 2:
|
|
164
|
+
case "ORGANIZATION":
|
|
165
|
+
return MetricDescriptor_MetricDescriptorMetadata_TimeSeriesResourceHierarchyLevel.ORGANIZATION;
|
|
166
|
+
case 3:
|
|
167
|
+
case "FOLDER":
|
|
168
|
+
return MetricDescriptor_MetricDescriptorMetadata_TimeSeriesResourceHierarchyLevel.FOLDER;
|
|
169
|
+
case -1:
|
|
170
|
+
case "UNRECOGNIZED":
|
|
171
|
+
default:
|
|
172
|
+
return MetricDescriptor_MetricDescriptorMetadata_TimeSeriesResourceHierarchyLevel.UNRECOGNIZED;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
export function metricDescriptor_MetricDescriptorMetadata_TimeSeriesResourceHierarchyLevelToJSON(object: MetricDescriptor_MetricDescriptorMetadata_TimeSeriesResourceHierarchyLevel): string {
|
|
176
|
+
switch (object) {
|
|
177
|
+
case MetricDescriptor_MetricDescriptorMetadata_TimeSeriesResourceHierarchyLevel.TIME_SERIES_RESOURCE_HIERARCHY_LEVEL_UNSPECIFIED:
|
|
178
|
+
return "TIME_SERIES_RESOURCE_HIERARCHY_LEVEL_UNSPECIFIED";
|
|
179
|
+
case MetricDescriptor_MetricDescriptorMetadata_TimeSeriesResourceHierarchyLevel.PROJECT:
|
|
180
|
+
return "PROJECT";
|
|
181
|
+
case MetricDescriptor_MetricDescriptorMetadata_TimeSeriesResourceHierarchyLevel.ORGANIZATION:
|
|
182
|
+
return "ORGANIZATION";
|
|
183
|
+
case MetricDescriptor_MetricDescriptorMetadata_TimeSeriesResourceHierarchyLevel.FOLDER:
|
|
184
|
+
return "FOLDER";
|
|
185
|
+
case MetricDescriptor_MetricDescriptorMetadata_TimeSeriesResourceHierarchyLevel.UNRECOGNIZED:
|
|
186
|
+
default:
|
|
187
|
+
return "UNRECOGNIZED";
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
/**
|
|
191
|
+
* Defines a metric type and its schema. Once a metric descriptor is created,
|
|
192
|
+
* deleting or altering it stops data collection and makes the metric type's
|
|
193
|
+
* existing data unusable.
|
|
194
|
+
*/
|
|
195
|
+
export interface MetricDescriptor {
|
|
196
|
+
/** The resource name of the metric descriptor. */
|
|
197
|
+
name: string;
|
|
198
|
+
/**
|
|
199
|
+
* The metric type, including its DNS name prefix. The type is not
|
|
200
|
+
* URL-encoded. All user-defined metric types have the DNS name
|
|
201
|
+
* `custom.googleapis.com` or `external.googleapis.com`. Metric types should
|
|
202
|
+
* use a natural hierarchical grouping. For example:
|
|
203
|
+
*
|
|
204
|
+
* "custom.googleapis.com/invoice/paid/amount"
|
|
205
|
+
* "external.googleapis.com/prometheus/up"
|
|
206
|
+
* "appengine.googleapis.com/http/server/response_latencies"
|
|
207
|
+
*/
|
|
208
|
+
type: string;
|
|
209
|
+
/**
|
|
210
|
+
* The set of labels that can be used to describe a specific
|
|
211
|
+
* instance of this metric type. For example, the
|
|
212
|
+
* `appengine.googleapis.com/http/server/response_latencies` metric
|
|
213
|
+
* type has a label for the HTTP response code, `response_code`, so
|
|
214
|
+
* you can look at latencies for successful responses or just
|
|
215
|
+
* for responses that failed.
|
|
216
|
+
*/
|
|
217
|
+
labels: LabelDescriptor[];
|
|
218
|
+
/**
|
|
219
|
+
* Whether the metric records instantaneous values, changes to a value, etc.
|
|
220
|
+
* Some combinations of `metric_kind` and `value_type` might not be supported.
|
|
221
|
+
*/
|
|
222
|
+
metricKind: MetricDescriptor_MetricKind;
|
|
223
|
+
/**
|
|
224
|
+
* Whether the measurement is an integer, a floating-point number, etc.
|
|
225
|
+
* Some combinations of `metric_kind` and `value_type` might not be supported.
|
|
226
|
+
*/
|
|
227
|
+
valueType: MetricDescriptor_ValueType;
|
|
228
|
+
/**
|
|
229
|
+
* The units in which the metric value is reported. It is only applicable
|
|
230
|
+
* if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit`
|
|
231
|
+
* defines the representation of the stored metric values.
|
|
232
|
+
*
|
|
233
|
+
* Different systems might scale the values to be more easily displayed (so a
|
|
234
|
+
* value of `0.02kBy` _might_ be displayed as `20By`, and a value of
|
|
235
|
+
* `3523kBy` _might_ be displayed as `3.5MBy`). However, if the `unit` is
|
|
236
|
+
* `kBy`, then the value of the metric is always in thousands of bytes, no
|
|
237
|
+
* matter how it might be displayed.
|
|
238
|
+
*
|
|
239
|
+
* If you want a custom metric to record the exact number of CPU-seconds used
|
|
240
|
+
* by a job, you can create an `INT64 CUMULATIVE` metric whose `unit` is
|
|
241
|
+
* `s{CPU}` (or equivalently `1s{CPU}` or just `s`). If the job uses 12,005
|
|
242
|
+
* CPU-seconds, then the value is written as `12005`.
|
|
243
|
+
*
|
|
244
|
+
* Alternatively, if you want a custom metric to record data in a more
|
|
245
|
+
* granular way, you can create a `DOUBLE CUMULATIVE` metric whose `unit` is
|
|
246
|
+
* `ks{CPU}`, and then write the value `12.005` (which is `12005/1000`),
|
|
247
|
+
* or use `Kis{CPU}` and write `11.723` (which is `12005/1024`).
|
|
248
|
+
*
|
|
249
|
+
* The supported units are a subset of [The Unified Code for Units of
|
|
250
|
+
* Measure](https://unitsofmeasure.org/ucum.html) standard:
|
|
251
|
+
*
|
|
252
|
+
* **Basic units (UNIT)**
|
|
253
|
+
*
|
|
254
|
+
* * `bit` bit
|
|
255
|
+
* * `By` byte
|
|
256
|
+
* * `s` second
|
|
257
|
+
* * `min` minute
|
|
258
|
+
* * `h` hour
|
|
259
|
+
* * `d` day
|
|
260
|
+
* * `1` dimensionless
|
|
261
|
+
*
|
|
262
|
+
* **Prefixes (PREFIX)**
|
|
263
|
+
*
|
|
264
|
+
* * `k` kilo (10^3)
|
|
265
|
+
* * `M` mega (10^6)
|
|
266
|
+
* * `G` giga (10^9)
|
|
267
|
+
* * `T` tera (10^12)
|
|
268
|
+
* * `P` peta (10^15)
|
|
269
|
+
* * `E` exa (10^18)
|
|
270
|
+
* * `Z` zetta (10^21)
|
|
271
|
+
* * `Y` yotta (10^24)
|
|
272
|
+
*
|
|
273
|
+
* * `m` milli (10^-3)
|
|
274
|
+
* * `u` micro (10^-6)
|
|
275
|
+
* * `n` nano (10^-9)
|
|
276
|
+
* * `p` pico (10^-12)
|
|
277
|
+
* * `f` femto (10^-15)
|
|
278
|
+
* * `a` atto (10^-18)
|
|
279
|
+
* * `z` zepto (10^-21)
|
|
280
|
+
* * `y` yocto (10^-24)
|
|
281
|
+
*
|
|
282
|
+
* * `Ki` kibi (2^10)
|
|
283
|
+
* * `Mi` mebi (2^20)
|
|
284
|
+
* * `Gi` gibi (2^30)
|
|
285
|
+
* * `Ti` tebi (2^40)
|
|
286
|
+
* * `Pi` pebi (2^50)
|
|
287
|
+
*
|
|
288
|
+
* **Grammar**
|
|
289
|
+
*
|
|
290
|
+
* The grammar also includes these connectors:
|
|
291
|
+
*
|
|
292
|
+
* * `/` division or ratio (as an infix operator). For examples,
|
|
293
|
+
* `kBy/{email}` or `MiBy/10ms` (although you should almost never
|
|
294
|
+
* have `/s` in a metric `unit`; rates should always be computed at
|
|
295
|
+
* query time from the underlying cumulative or delta value).
|
|
296
|
+
* * `.` multiplication or composition (as an infix operator). For
|
|
297
|
+
* examples, `GBy.d` or `k{watt}.h`.
|
|
298
|
+
*
|
|
299
|
+
* The grammar for a unit is as follows:
|
|
300
|
+
*
|
|
301
|
+
* Expression = Component { "." Component } { "/" Component } ;
|
|
302
|
+
*
|
|
303
|
+
* Component = ( [ PREFIX ] UNIT | "%" ) [ Annotation ]
|
|
304
|
+
* | Annotation
|
|
305
|
+
* | "1"
|
|
306
|
+
* ;
|
|
307
|
+
*
|
|
308
|
+
* Annotation = "{" NAME "}" ;
|
|
309
|
+
*
|
|
310
|
+
* Notes:
|
|
311
|
+
*
|
|
312
|
+
* * `Annotation` is just a comment if it follows a `UNIT`. If the annotation
|
|
313
|
+
* is used alone, then the unit is equivalent to `1`. For examples,
|
|
314
|
+
* `{request}/s == 1/s`, `By{transmitted}/s == By/s`.
|
|
315
|
+
* * `NAME` is a sequence of non-blank printable ASCII characters not
|
|
316
|
+
* containing `{` or `}`.
|
|
317
|
+
* * `1` represents a unitary [dimensionless
|
|
318
|
+
* unit](https://en.wikipedia.org/wiki/Dimensionless_quantity) of 1, such
|
|
319
|
+
* as in `1/s`. It is typically used when none of the basic units are
|
|
320
|
+
* appropriate. For example, "new users per day" can be represented as
|
|
321
|
+
* `1/d` or `{new-users}/d` (and a metric value `5` would mean "5 new
|
|
322
|
+
* users). Alternatively, "thousands of page views per day" would be
|
|
323
|
+
* represented as `1000/d` or `k1/d` or `k{page_views}/d` (and a metric
|
|
324
|
+
* value of `5.3` would mean "5300 page views per day").
|
|
325
|
+
* * `%` represents dimensionless value of 1/100, and annotates values giving
|
|
326
|
+
* a percentage (so the metric values are typically in the range of 0..100,
|
|
327
|
+
* and a metric value `3` means "3 percent").
|
|
328
|
+
* * `10^2.%` indicates a metric contains a ratio, typically in the range
|
|
329
|
+
* 0..1, that will be multiplied by 100 and displayed as a percentage
|
|
330
|
+
* (so a metric value `0.03` means "3 percent").
|
|
331
|
+
*/
|
|
332
|
+
unit: string;
|
|
333
|
+
/** A detailed description of the metric, which can be used in documentation. */
|
|
334
|
+
description: string;
|
|
335
|
+
/**
|
|
336
|
+
* A concise name for the metric, which can be displayed in user interfaces.
|
|
337
|
+
* Use sentence case without an ending period, for example "Request count".
|
|
338
|
+
* This field is optional but it is recommended to be set for any metrics
|
|
339
|
+
* associated with user-visible concepts, such as Quota.
|
|
340
|
+
*/
|
|
341
|
+
displayName: string;
|
|
342
|
+
/** Optional. Metadata which can be used to guide usage of the metric. */
|
|
343
|
+
metadata?: MetricDescriptor_MetricDescriptorMetadata;
|
|
344
|
+
/** Optional. The launch stage of the metric definition. */
|
|
345
|
+
launchStage: LaunchStage;
|
|
346
|
+
/**
|
|
347
|
+
* Read-only. If present, then a [time
|
|
348
|
+
* series][google.monitoring.v3.TimeSeries], which is identified partially by
|
|
349
|
+
* a metric type and a
|
|
350
|
+
* [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor], that
|
|
351
|
+
* is associated with this metric type can only be associated with one of the
|
|
352
|
+
* monitored resource types listed here.
|
|
353
|
+
*/
|
|
354
|
+
monitoredResourceTypes: string[];
|
|
355
|
+
}
|
|
356
|
+
export interface MetricDescriptorProtoMsg {
|
|
357
|
+
typeUrl: "/google.api.MetricDescriptor";
|
|
358
|
+
value: Uint8Array;
|
|
359
|
+
}
|
|
360
|
+
/**
|
|
361
|
+
* Defines a metric type and its schema. Once a metric descriptor is created,
|
|
362
|
+
* deleting or altering it stops data collection and makes the metric type's
|
|
363
|
+
* existing data unusable.
|
|
364
|
+
* @name MetricDescriptorAmino
|
|
365
|
+
* @package google.api
|
|
366
|
+
* @see proto type: google.api.MetricDescriptor
|
|
367
|
+
*/
|
|
368
|
+
export interface MetricDescriptorAmino {
|
|
369
|
+
/**
|
|
370
|
+
* The resource name of the metric descriptor.
|
|
371
|
+
*/
|
|
372
|
+
name?: string;
|
|
373
|
+
/**
|
|
374
|
+
* The metric type, including its DNS name prefix. The type is not
|
|
375
|
+
* URL-encoded. All user-defined metric types have the DNS name
|
|
376
|
+
* `custom.googleapis.com` or `external.googleapis.com`. Metric types should
|
|
377
|
+
* use a natural hierarchical grouping. For example:
|
|
378
|
+
*
|
|
379
|
+
* "custom.googleapis.com/invoice/paid/amount"
|
|
380
|
+
* "external.googleapis.com/prometheus/up"
|
|
381
|
+
* "appengine.googleapis.com/http/server/response_latencies"
|
|
382
|
+
*/
|
|
383
|
+
type?: string;
|
|
384
|
+
/**
|
|
385
|
+
* The set of labels that can be used to describe a specific
|
|
386
|
+
* instance of this metric type. For example, the
|
|
387
|
+
* `appengine.googleapis.com/http/server/response_latencies` metric
|
|
388
|
+
* type has a label for the HTTP response code, `response_code`, so
|
|
389
|
+
* you can look at latencies for successful responses or just
|
|
390
|
+
* for responses that failed.
|
|
391
|
+
*/
|
|
392
|
+
labels?: LabelDescriptorAmino[];
|
|
393
|
+
/**
|
|
394
|
+
* Whether the metric records instantaneous values, changes to a value, etc.
|
|
395
|
+
* Some combinations of `metric_kind` and `value_type` might not be supported.
|
|
396
|
+
*/
|
|
397
|
+
metric_kind?: MetricDescriptor_MetricKind;
|
|
398
|
+
/**
|
|
399
|
+
* Whether the measurement is an integer, a floating-point number, etc.
|
|
400
|
+
* Some combinations of `metric_kind` and `value_type` might not be supported.
|
|
401
|
+
*/
|
|
402
|
+
value_type?: MetricDescriptor_ValueType;
|
|
403
|
+
/**
|
|
404
|
+
* The units in which the metric value is reported. It is only applicable
|
|
405
|
+
* if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit`
|
|
406
|
+
* defines the representation of the stored metric values.
|
|
407
|
+
*
|
|
408
|
+
* Different systems might scale the values to be more easily displayed (so a
|
|
409
|
+
* value of `0.02kBy` _might_ be displayed as `20By`, and a value of
|
|
410
|
+
* `3523kBy` _might_ be displayed as `3.5MBy`). However, if the `unit` is
|
|
411
|
+
* `kBy`, then the value of the metric is always in thousands of bytes, no
|
|
412
|
+
* matter how it might be displayed.
|
|
413
|
+
*
|
|
414
|
+
* If you want a custom metric to record the exact number of CPU-seconds used
|
|
415
|
+
* by a job, you can create an `INT64 CUMULATIVE` metric whose `unit` is
|
|
416
|
+
* `s{CPU}` (or equivalently `1s{CPU}` or just `s`). If the job uses 12,005
|
|
417
|
+
* CPU-seconds, then the value is written as `12005`.
|
|
418
|
+
*
|
|
419
|
+
* Alternatively, if you want a custom metric to record data in a more
|
|
420
|
+
* granular way, you can create a `DOUBLE CUMULATIVE` metric whose `unit` is
|
|
421
|
+
* `ks{CPU}`, and then write the value `12.005` (which is `12005/1000`),
|
|
422
|
+
* or use `Kis{CPU}` and write `11.723` (which is `12005/1024`).
|
|
423
|
+
*
|
|
424
|
+
* The supported units are a subset of [The Unified Code for Units of
|
|
425
|
+
* Measure](https://unitsofmeasure.org/ucum.html) standard:
|
|
426
|
+
*
|
|
427
|
+
* **Basic units (UNIT)**
|
|
428
|
+
*
|
|
429
|
+
* * `bit` bit
|
|
430
|
+
* * `By` byte
|
|
431
|
+
* * `s` second
|
|
432
|
+
* * `min` minute
|
|
433
|
+
* * `h` hour
|
|
434
|
+
* * `d` day
|
|
435
|
+
* * `1` dimensionless
|
|
436
|
+
*
|
|
437
|
+
* **Prefixes (PREFIX)**
|
|
438
|
+
*
|
|
439
|
+
* * `k` kilo (10^3)
|
|
440
|
+
* * `M` mega (10^6)
|
|
441
|
+
* * `G` giga (10^9)
|
|
442
|
+
* * `T` tera (10^12)
|
|
443
|
+
* * `P` peta (10^15)
|
|
444
|
+
* * `E` exa (10^18)
|
|
445
|
+
* * `Z` zetta (10^21)
|
|
446
|
+
* * `Y` yotta (10^24)
|
|
447
|
+
*
|
|
448
|
+
* * `m` milli (10^-3)
|
|
449
|
+
* * `u` micro (10^-6)
|
|
450
|
+
* * `n` nano (10^-9)
|
|
451
|
+
* * `p` pico (10^-12)
|
|
452
|
+
* * `f` femto (10^-15)
|
|
453
|
+
* * `a` atto (10^-18)
|
|
454
|
+
* * `z` zepto (10^-21)
|
|
455
|
+
* * `y` yocto (10^-24)
|
|
456
|
+
*
|
|
457
|
+
* * `Ki` kibi (2^10)
|
|
458
|
+
* * `Mi` mebi (2^20)
|
|
459
|
+
* * `Gi` gibi (2^30)
|
|
460
|
+
* * `Ti` tebi (2^40)
|
|
461
|
+
* * `Pi` pebi (2^50)
|
|
462
|
+
*
|
|
463
|
+
* **Grammar**
|
|
464
|
+
*
|
|
465
|
+
* The grammar also includes these connectors:
|
|
466
|
+
*
|
|
467
|
+
* * `/` division or ratio (as an infix operator). For examples,
|
|
468
|
+
* `kBy/{email}` or `MiBy/10ms` (although you should almost never
|
|
469
|
+
* have `/s` in a metric `unit`; rates should always be computed at
|
|
470
|
+
* query time from the underlying cumulative or delta value).
|
|
471
|
+
* * `.` multiplication or composition (as an infix operator). For
|
|
472
|
+
* examples, `GBy.d` or `k{watt}.h`.
|
|
473
|
+
*
|
|
474
|
+
* The grammar for a unit is as follows:
|
|
475
|
+
*
|
|
476
|
+
* Expression = Component { "." Component } { "/" Component } ;
|
|
477
|
+
*
|
|
478
|
+
* Component = ( [ PREFIX ] UNIT | "%" ) [ Annotation ]
|
|
479
|
+
* | Annotation
|
|
480
|
+
* | "1"
|
|
481
|
+
* ;
|
|
482
|
+
*
|
|
483
|
+
* Annotation = "{" NAME "}" ;
|
|
484
|
+
*
|
|
485
|
+
* Notes:
|
|
486
|
+
*
|
|
487
|
+
* * `Annotation` is just a comment if it follows a `UNIT`. If the annotation
|
|
488
|
+
* is used alone, then the unit is equivalent to `1`. For examples,
|
|
489
|
+
* `{request}/s == 1/s`, `By{transmitted}/s == By/s`.
|
|
490
|
+
* * `NAME` is a sequence of non-blank printable ASCII characters not
|
|
491
|
+
* containing `{` or `}`.
|
|
492
|
+
* * `1` represents a unitary [dimensionless
|
|
493
|
+
* unit](https://en.wikipedia.org/wiki/Dimensionless_quantity) of 1, such
|
|
494
|
+
* as in `1/s`. It is typically used when none of the basic units are
|
|
495
|
+
* appropriate. For example, "new users per day" can be represented as
|
|
496
|
+
* `1/d` or `{new-users}/d` (and a metric value `5` would mean "5 new
|
|
497
|
+
* users). Alternatively, "thousands of page views per day" would be
|
|
498
|
+
* represented as `1000/d` or `k1/d` or `k{page_views}/d` (and a metric
|
|
499
|
+
* value of `5.3` would mean "5300 page views per day").
|
|
500
|
+
* * `%` represents dimensionless value of 1/100, and annotates values giving
|
|
501
|
+
* a percentage (so the metric values are typically in the range of 0..100,
|
|
502
|
+
* and a metric value `3` means "3 percent").
|
|
503
|
+
* * `10^2.%` indicates a metric contains a ratio, typically in the range
|
|
504
|
+
* 0..1, that will be multiplied by 100 and displayed as a percentage
|
|
505
|
+
* (so a metric value `0.03` means "3 percent").
|
|
506
|
+
*/
|
|
507
|
+
unit?: string;
|
|
508
|
+
/**
|
|
509
|
+
* A detailed description of the metric, which can be used in documentation.
|
|
510
|
+
*/
|
|
511
|
+
description?: string;
|
|
512
|
+
/**
|
|
513
|
+
* A concise name for the metric, which can be displayed in user interfaces.
|
|
514
|
+
* Use sentence case without an ending period, for example "Request count".
|
|
515
|
+
* This field is optional but it is recommended to be set for any metrics
|
|
516
|
+
* associated with user-visible concepts, such as Quota.
|
|
517
|
+
*/
|
|
518
|
+
display_name?: string;
|
|
519
|
+
/**
|
|
520
|
+
* Optional. Metadata which can be used to guide usage of the metric.
|
|
521
|
+
*/
|
|
522
|
+
metadata?: MetricDescriptor_MetricDescriptorMetadataAmino;
|
|
523
|
+
/**
|
|
524
|
+
* Optional. The launch stage of the metric definition.
|
|
525
|
+
*/
|
|
526
|
+
launch_stage?: LaunchStage;
|
|
527
|
+
/**
|
|
528
|
+
* Read-only. If present, then a [time
|
|
529
|
+
* series][google.monitoring.v3.TimeSeries], which is identified partially by
|
|
530
|
+
* a metric type and a
|
|
531
|
+
* [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor], that
|
|
532
|
+
* is associated with this metric type can only be associated with one of the
|
|
533
|
+
* monitored resource types listed here.
|
|
534
|
+
*/
|
|
535
|
+
monitored_resource_types?: string[];
|
|
536
|
+
}
|
|
537
|
+
export interface MetricDescriptorAminoMsg {
|
|
538
|
+
type: "/google.api.MetricDescriptor";
|
|
539
|
+
value: MetricDescriptorAmino;
|
|
540
|
+
}
|
|
541
|
+
/**
|
|
542
|
+
* Defines a metric type and its schema. Once a metric descriptor is created,
|
|
543
|
+
* deleting or altering it stops data collection and makes the metric type's
|
|
544
|
+
* existing data unusable.
|
|
545
|
+
*/
|
|
546
|
+
export interface MetricDescriptorSDKType {
|
|
547
|
+
name: string;
|
|
548
|
+
type: string;
|
|
549
|
+
labels: LabelDescriptorSDKType[];
|
|
550
|
+
metric_kind: MetricDescriptor_MetricKind;
|
|
551
|
+
value_type: MetricDescriptor_ValueType;
|
|
552
|
+
unit: string;
|
|
553
|
+
description: string;
|
|
554
|
+
display_name: string;
|
|
555
|
+
metadata?: MetricDescriptor_MetricDescriptorMetadataSDKType;
|
|
556
|
+
launch_stage: LaunchStage;
|
|
557
|
+
monitored_resource_types: string[];
|
|
558
|
+
}
|
|
559
|
+
/** Additional annotations that can be used to guide the usage of a metric. */
|
|
560
|
+
export interface MetricDescriptor_MetricDescriptorMetadata {
|
|
561
|
+
/**
|
|
562
|
+
* Deprecated. Must use the
|
|
563
|
+
* [MetricDescriptor.launch_stage][google.api.MetricDescriptor.launch_stage]
|
|
564
|
+
* instead.
|
|
565
|
+
*/
|
|
566
|
+
/** @deprecated */
|
|
567
|
+
launchStage: LaunchStage;
|
|
568
|
+
/**
|
|
569
|
+
* The sampling period of metric data points. For metrics which are written
|
|
570
|
+
* periodically, consecutive data points are stored at this time interval,
|
|
571
|
+
* excluding data loss due to errors. Metrics with a higher granularity have
|
|
572
|
+
* a smaller sampling period.
|
|
573
|
+
*/
|
|
574
|
+
samplePeriod?: Duration;
|
|
575
|
+
/**
|
|
576
|
+
* The delay of data points caused by ingestion. Data points older than this
|
|
577
|
+
* age are guaranteed to be ingested and available to be read, excluding
|
|
578
|
+
* data loss due to errors.
|
|
579
|
+
*/
|
|
580
|
+
ingestDelay?: Duration;
|
|
581
|
+
timeSeriesResourceHierarchyLevel: MetricDescriptor_MetricDescriptorMetadata_TimeSeriesResourceHierarchyLevel[];
|
|
582
|
+
}
|
|
583
|
+
export interface MetricDescriptor_MetricDescriptorMetadataProtoMsg {
|
|
584
|
+
typeUrl: "/google.api.MetricDescriptorMetadata";
|
|
585
|
+
value: Uint8Array;
|
|
586
|
+
}
|
|
587
|
+
/**
|
|
588
|
+
* Additional annotations that can be used to guide the usage of a metric.
|
|
589
|
+
* @name MetricDescriptor_MetricDescriptorMetadataAmino
|
|
590
|
+
* @package google.api
|
|
591
|
+
* @see proto type: google.api.MetricDescriptor_MetricDescriptorMetadata
|
|
592
|
+
*/
|
|
593
|
+
export interface MetricDescriptor_MetricDescriptorMetadataAmino {
|
|
594
|
+
/**
|
|
595
|
+
* Deprecated. Must use the
|
|
596
|
+
* [MetricDescriptor.launch_stage][google.api.MetricDescriptor.launch_stage]
|
|
597
|
+
* instead.
|
|
598
|
+
* @deprecated
|
|
599
|
+
*/
|
|
600
|
+
launch_stage?: LaunchStage;
|
|
601
|
+
/**
|
|
602
|
+
* The sampling period of metric data points. For metrics which are written
|
|
603
|
+
* periodically, consecutive data points are stored at this time interval,
|
|
604
|
+
* excluding data loss due to errors. Metrics with a higher granularity have
|
|
605
|
+
* a smaller sampling period.
|
|
606
|
+
*/
|
|
607
|
+
sample_period?: DurationAmino;
|
|
608
|
+
/**
|
|
609
|
+
* The delay of data points caused by ingestion. Data points older than this
|
|
610
|
+
* age are guaranteed to be ingested and available to be read, excluding
|
|
611
|
+
* data loss due to errors.
|
|
612
|
+
*/
|
|
613
|
+
ingest_delay?: DurationAmino;
|
|
614
|
+
time_series_resource_hierarchy_level?: MetricDescriptor_MetricDescriptorMetadata_TimeSeriesResourceHierarchyLevel[];
|
|
615
|
+
}
|
|
616
|
+
export interface MetricDescriptor_MetricDescriptorMetadataAminoMsg {
|
|
617
|
+
type: "/google.api.MetricDescriptorMetadata";
|
|
618
|
+
value: MetricDescriptor_MetricDescriptorMetadataAmino;
|
|
619
|
+
}
|
|
620
|
+
/** Additional annotations that can be used to guide the usage of a metric. */
|
|
621
|
+
export interface MetricDescriptor_MetricDescriptorMetadataSDKType {
|
|
622
|
+
/** @deprecated */
|
|
623
|
+
launch_stage: LaunchStage;
|
|
624
|
+
sample_period?: DurationSDKType;
|
|
625
|
+
ingest_delay?: DurationSDKType;
|
|
626
|
+
time_series_resource_hierarchy_level: MetricDescriptor_MetricDescriptorMetadata_TimeSeriesResourceHierarchyLevel[];
|
|
627
|
+
}
|
|
628
|
+
export interface Metric_LabelsEntry {
|
|
629
|
+
key: string;
|
|
630
|
+
value: string;
|
|
631
|
+
}
|
|
632
|
+
export interface Metric_LabelsEntryProtoMsg {
|
|
633
|
+
typeUrl: string;
|
|
634
|
+
value: Uint8Array;
|
|
635
|
+
}
|
|
636
|
+
/**
|
|
637
|
+
* @name Metric_LabelsEntryAmino
|
|
638
|
+
* @package google.api
|
|
639
|
+
* @see proto type: google.api.Metric_LabelsEntry
|
|
640
|
+
*/
|
|
641
|
+
export interface Metric_LabelsEntryAmino {
|
|
642
|
+
key?: string;
|
|
643
|
+
value?: string;
|
|
644
|
+
}
|
|
645
|
+
export interface Metric_LabelsEntryAminoMsg {
|
|
646
|
+
type: string;
|
|
647
|
+
value: Metric_LabelsEntryAmino;
|
|
648
|
+
}
|
|
649
|
+
export interface Metric_LabelsEntrySDKType {
|
|
650
|
+
key: string;
|
|
651
|
+
value: string;
|
|
652
|
+
}
|
|
653
|
+
/**
|
|
654
|
+
* A specific metric, identified by specifying values for all of the
|
|
655
|
+
* labels of a [`MetricDescriptor`][google.api.MetricDescriptor].
|
|
656
|
+
*/
|
|
657
|
+
export interface Metric {
|
|
658
|
+
/**
|
|
659
|
+
* An existing metric type, see
|
|
660
|
+
* [google.api.MetricDescriptor][google.api.MetricDescriptor]. For example,
|
|
661
|
+
* `custom.googleapis.com/invoice/paid/amount`.
|
|
662
|
+
*/
|
|
663
|
+
type: string;
|
|
664
|
+
/**
|
|
665
|
+
* The set of label values that uniquely identify this metric. All
|
|
666
|
+
* labels listed in the `MetricDescriptor` must be assigned values.
|
|
667
|
+
*/
|
|
668
|
+
labels: {
|
|
669
|
+
[key: string]: string;
|
|
670
|
+
};
|
|
671
|
+
}
|
|
672
|
+
export interface MetricProtoMsg {
|
|
673
|
+
typeUrl: "/google.api.Metric";
|
|
674
|
+
value: Uint8Array;
|
|
675
|
+
}
|
|
676
|
+
/**
|
|
677
|
+
* A specific metric, identified by specifying values for all of the
|
|
678
|
+
* labels of a [`MetricDescriptor`][google.api.MetricDescriptor].
|
|
679
|
+
* @name MetricAmino
|
|
680
|
+
* @package google.api
|
|
681
|
+
* @see proto type: google.api.Metric
|
|
682
|
+
*/
|
|
683
|
+
export interface MetricAmino {
|
|
684
|
+
/**
|
|
685
|
+
* An existing metric type, see
|
|
686
|
+
* [google.api.MetricDescriptor][google.api.MetricDescriptor]. For example,
|
|
687
|
+
* `custom.googleapis.com/invoice/paid/amount`.
|
|
688
|
+
*/
|
|
689
|
+
type?: string;
|
|
690
|
+
/**
|
|
691
|
+
* The set of label values that uniquely identify this metric. All
|
|
692
|
+
* labels listed in the `MetricDescriptor` must be assigned values.
|
|
693
|
+
*/
|
|
694
|
+
labels?: {
|
|
695
|
+
[key: string]: string;
|
|
696
|
+
};
|
|
697
|
+
}
|
|
698
|
+
export interface MetricAminoMsg {
|
|
699
|
+
type: "/google.api.Metric";
|
|
700
|
+
value: MetricAmino;
|
|
701
|
+
}
|
|
702
|
+
/**
|
|
703
|
+
* A specific metric, identified by specifying values for all of the
|
|
704
|
+
* labels of a [`MetricDescriptor`][google.api.MetricDescriptor].
|
|
705
|
+
*/
|
|
706
|
+
export interface MetricSDKType {
|
|
707
|
+
type: string;
|
|
708
|
+
labels: {
|
|
709
|
+
[key: string]: string;
|
|
710
|
+
};
|
|
711
|
+
}
|
|
712
|
+
function createBaseMetricDescriptor(): MetricDescriptor {
|
|
713
|
+
return {
|
|
714
|
+
name: "",
|
|
715
|
+
type: "",
|
|
716
|
+
labels: [],
|
|
717
|
+
metricKind: 0,
|
|
718
|
+
valueType: 0,
|
|
719
|
+
unit: "",
|
|
720
|
+
description: "",
|
|
721
|
+
displayName: "",
|
|
722
|
+
metadata: undefined,
|
|
723
|
+
launchStage: 0,
|
|
724
|
+
monitoredResourceTypes: []
|
|
725
|
+
};
|
|
726
|
+
}
|
|
727
|
+
export const MetricDescriptor = {
|
|
728
|
+
typeUrl: "/google.api.MetricDescriptor",
|
|
729
|
+
encode(message: MetricDescriptor, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
730
|
+
if (message.name !== "") {
|
|
731
|
+
writer.uint32(10).string(message.name);
|
|
732
|
+
}
|
|
733
|
+
if (message.type !== "") {
|
|
734
|
+
writer.uint32(66).string(message.type);
|
|
735
|
+
}
|
|
736
|
+
for (const v of message.labels) {
|
|
737
|
+
LabelDescriptor.encode(v!, writer.uint32(18).fork()).ldelim();
|
|
738
|
+
}
|
|
739
|
+
if (message.metricKind !== 0) {
|
|
740
|
+
writer.uint32(24).int32(message.metricKind);
|
|
741
|
+
}
|
|
742
|
+
if (message.valueType !== 0) {
|
|
743
|
+
writer.uint32(32).int32(message.valueType);
|
|
744
|
+
}
|
|
745
|
+
if (message.unit !== "") {
|
|
746
|
+
writer.uint32(42).string(message.unit);
|
|
747
|
+
}
|
|
748
|
+
if (message.description !== "") {
|
|
749
|
+
writer.uint32(50).string(message.description);
|
|
750
|
+
}
|
|
751
|
+
if (message.displayName !== "") {
|
|
752
|
+
writer.uint32(58).string(message.displayName);
|
|
753
|
+
}
|
|
754
|
+
if (message.metadata !== undefined) {
|
|
755
|
+
MetricDescriptor_MetricDescriptorMetadata.encode(message.metadata, writer.uint32(82).fork()).ldelim();
|
|
756
|
+
}
|
|
757
|
+
if (message.launchStage !== 0) {
|
|
758
|
+
writer.uint32(96).int32(message.launchStage);
|
|
759
|
+
}
|
|
760
|
+
for (const v of message.monitoredResourceTypes) {
|
|
761
|
+
writer.uint32(106).string(v!);
|
|
762
|
+
}
|
|
763
|
+
return writer;
|
|
764
|
+
},
|
|
765
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MetricDescriptor {
|
|
766
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
767
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
768
|
+
const message = createBaseMetricDescriptor();
|
|
769
|
+
while (reader.pos < end) {
|
|
770
|
+
const tag = reader.uint32();
|
|
771
|
+
switch (tag >>> 3) {
|
|
772
|
+
case 1:
|
|
773
|
+
message.name = reader.string();
|
|
774
|
+
break;
|
|
775
|
+
case 8:
|
|
776
|
+
message.type = reader.string();
|
|
777
|
+
break;
|
|
778
|
+
case 2:
|
|
779
|
+
message.labels.push(LabelDescriptor.decode(reader, reader.uint32()));
|
|
780
|
+
break;
|
|
781
|
+
case 3:
|
|
782
|
+
message.metricKind = reader.int32() as any;
|
|
783
|
+
break;
|
|
784
|
+
case 4:
|
|
785
|
+
message.valueType = reader.int32() as any;
|
|
786
|
+
break;
|
|
787
|
+
case 5:
|
|
788
|
+
message.unit = reader.string();
|
|
789
|
+
break;
|
|
790
|
+
case 6:
|
|
791
|
+
message.description = reader.string();
|
|
792
|
+
break;
|
|
793
|
+
case 7:
|
|
794
|
+
message.displayName = reader.string();
|
|
795
|
+
break;
|
|
796
|
+
case 10:
|
|
797
|
+
message.metadata = MetricDescriptor_MetricDescriptorMetadata.decode(reader, reader.uint32());
|
|
798
|
+
break;
|
|
799
|
+
case 12:
|
|
800
|
+
message.launchStage = reader.int32() as any;
|
|
801
|
+
break;
|
|
802
|
+
case 13:
|
|
803
|
+
message.monitoredResourceTypes.push(reader.string());
|
|
804
|
+
break;
|
|
805
|
+
default:
|
|
806
|
+
reader.skipType(tag & 7);
|
|
807
|
+
break;
|
|
808
|
+
}
|
|
809
|
+
}
|
|
810
|
+
return message;
|
|
811
|
+
},
|
|
812
|
+
fromPartial(object: Partial<MetricDescriptor>): MetricDescriptor {
|
|
813
|
+
const message = createBaseMetricDescriptor();
|
|
814
|
+
message.name = object.name ?? "";
|
|
815
|
+
message.type = object.type ?? "";
|
|
816
|
+
message.labels = object.labels?.map(e => LabelDescriptor.fromPartial(e)) || [];
|
|
817
|
+
message.metricKind = object.metricKind ?? 0;
|
|
818
|
+
message.valueType = object.valueType ?? 0;
|
|
819
|
+
message.unit = object.unit ?? "";
|
|
820
|
+
message.description = object.description ?? "";
|
|
821
|
+
message.displayName = object.displayName ?? "";
|
|
822
|
+
message.metadata = object.metadata !== undefined && object.metadata !== null ? MetricDescriptor_MetricDescriptorMetadata.fromPartial(object.metadata) : undefined;
|
|
823
|
+
message.launchStage = object.launchStage ?? 0;
|
|
824
|
+
message.monitoredResourceTypes = object.monitoredResourceTypes?.map(e => e) || [];
|
|
825
|
+
return message;
|
|
826
|
+
},
|
|
827
|
+
fromAmino(object: MetricDescriptorAmino): MetricDescriptor {
|
|
828
|
+
const message = createBaseMetricDescriptor();
|
|
829
|
+
if (object.name !== undefined && object.name !== null) {
|
|
830
|
+
message.name = object.name;
|
|
831
|
+
}
|
|
832
|
+
if (object.type !== undefined && object.type !== null) {
|
|
833
|
+
message.type = object.type;
|
|
834
|
+
}
|
|
835
|
+
message.labels = object.labels?.map(e => LabelDescriptor.fromAmino(e)) || [];
|
|
836
|
+
if (object.metric_kind !== undefined && object.metric_kind !== null) {
|
|
837
|
+
message.metricKind = object.metric_kind;
|
|
838
|
+
}
|
|
839
|
+
if (object.value_type !== undefined && object.value_type !== null) {
|
|
840
|
+
message.valueType = object.value_type;
|
|
841
|
+
}
|
|
842
|
+
if (object.unit !== undefined && object.unit !== null) {
|
|
843
|
+
message.unit = object.unit;
|
|
844
|
+
}
|
|
845
|
+
if (object.description !== undefined && object.description !== null) {
|
|
846
|
+
message.description = object.description;
|
|
847
|
+
}
|
|
848
|
+
if (object.display_name !== undefined && object.display_name !== null) {
|
|
849
|
+
message.displayName = object.display_name;
|
|
850
|
+
}
|
|
851
|
+
if (object.metadata !== undefined && object.metadata !== null) {
|
|
852
|
+
message.metadata = MetricDescriptor_MetricDescriptorMetadata.fromAmino(object.metadata);
|
|
853
|
+
}
|
|
854
|
+
if (object.launch_stage !== undefined && object.launch_stage !== null) {
|
|
855
|
+
message.launchStage = object.launch_stage;
|
|
856
|
+
}
|
|
857
|
+
message.monitoredResourceTypes = object.monitored_resource_types?.map(e => e) || [];
|
|
858
|
+
return message;
|
|
859
|
+
},
|
|
860
|
+
toAmino(message: MetricDescriptor): MetricDescriptorAmino {
|
|
861
|
+
const obj: any = {};
|
|
862
|
+
obj.name = message.name === "" ? undefined : message.name;
|
|
863
|
+
obj.type = message.type === "" ? undefined : message.type;
|
|
864
|
+
if (message.labels) {
|
|
865
|
+
obj.labels = message.labels.map(e => e ? LabelDescriptor.toAmino(e) : undefined);
|
|
866
|
+
} else {
|
|
867
|
+
obj.labels = message.labels;
|
|
868
|
+
}
|
|
869
|
+
obj.metric_kind = message.metricKind === 0 ? undefined : message.metricKind;
|
|
870
|
+
obj.value_type = message.valueType === 0 ? undefined : message.valueType;
|
|
871
|
+
obj.unit = message.unit === "" ? undefined : message.unit;
|
|
872
|
+
obj.description = message.description === "" ? undefined : message.description;
|
|
873
|
+
obj.display_name = message.displayName === "" ? undefined : message.displayName;
|
|
874
|
+
obj.metadata = message.metadata ? MetricDescriptor_MetricDescriptorMetadata.toAmino(message.metadata) : undefined;
|
|
875
|
+
obj.launch_stage = message.launchStage === 0 ? undefined : message.launchStage;
|
|
876
|
+
if (message.monitoredResourceTypes) {
|
|
877
|
+
obj.monitored_resource_types = message.monitoredResourceTypes.map(e => e);
|
|
878
|
+
} else {
|
|
879
|
+
obj.monitored_resource_types = message.monitoredResourceTypes;
|
|
880
|
+
}
|
|
881
|
+
return obj;
|
|
882
|
+
},
|
|
883
|
+
fromAminoMsg(object: MetricDescriptorAminoMsg): MetricDescriptor {
|
|
884
|
+
return MetricDescriptor.fromAmino(object.value);
|
|
885
|
+
},
|
|
886
|
+
fromProtoMsg(message: MetricDescriptorProtoMsg): MetricDescriptor {
|
|
887
|
+
return MetricDescriptor.decode(message.value);
|
|
888
|
+
},
|
|
889
|
+
toProto(message: MetricDescriptor): Uint8Array {
|
|
890
|
+
return MetricDescriptor.encode(message).finish();
|
|
891
|
+
},
|
|
892
|
+
toProtoMsg(message: MetricDescriptor): MetricDescriptorProtoMsg {
|
|
893
|
+
return {
|
|
894
|
+
typeUrl: "/google.api.MetricDescriptor",
|
|
895
|
+
value: MetricDescriptor.encode(message).finish()
|
|
896
|
+
};
|
|
897
|
+
}
|
|
898
|
+
};
|
|
899
|
+
function createBaseMetricDescriptor_MetricDescriptorMetadata(): MetricDescriptor_MetricDescriptorMetadata {
|
|
900
|
+
return {
|
|
901
|
+
launchStage: 0,
|
|
902
|
+
samplePeriod: undefined,
|
|
903
|
+
ingestDelay: undefined,
|
|
904
|
+
timeSeriesResourceHierarchyLevel: []
|
|
905
|
+
};
|
|
906
|
+
}
|
|
907
|
+
export const MetricDescriptor_MetricDescriptorMetadata = {
|
|
908
|
+
typeUrl: "/google.api.MetricDescriptorMetadata",
|
|
909
|
+
encode(message: MetricDescriptor_MetricDescriptorMetadata, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
910
|
+
if (message.launchStage !== 0) {
|
|
911
|
+
writer.uint32(8).int32(message.launchStage);
|
|
912
|
+
}
|
|
913
|
+
if (message.samplePeriod !== undefined) {
|
|
914
|
+
Duration.encode(message.samplePeriod, writer.uint32(18).fork()).ldelim();
|
|
915
|
+
}
|
|
916
|
+
if (message.ingestDelay !== undefined) {
|
|
917
|
+
Duration.encode(message.ingestDelay, writer.uint32(26).fork()).ldelim();
|
|
918
|
+
}
|
|
919
|
+
writer.uint32(34).fork();
|
|
920
|
+
for (const v of message.timeSeriesResourceHierarchyLevel) {
|
|
921
|
+
writer.int32(v);
|
|
922
|
+
}
|
|
923
|
+
writer.ldelim();
|
|
924
|
+
return writer;
|
|
925
|
+
},
|
|
926
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MetricDescriptor_MetricDescriptorMetadata {
|
|
927
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
928
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
929
|
+
const message = createBaseMetricDescriptor_MetricDescriptorMetadata();
|
|
930
|
+
while (reader.pos < end) {
|
|
931
|
+
const tag = reader.uint32();
|
|
932
|
+
switch (tag >>> 3) {
|
|
933
|
+
case 1:
|
|
934
|
+
message.launchStage = reader.int32() as any;
|
|
935
|
+
break;
|
|
936
|
+
case 2:
|
|
937
|
+
message.samplePeriod = Duration.decode(reader, reader.uint32());
|
|
938
|
+
break;
|
|
939
|
+
case 3:
|
|
940
|
+
message.ingestDelay = Duration.decode(reader, reader.uint32());
|
|
941
|
+
break;
|
|
942
|
+
case 4:
|
|
943
|
+
if ((tag & 7) === 2) {
|
|
944
|
+
const end2 = reader.uint32() + reader.pos;
|
|
945
|
+
while (reader.pos < end2) {
|
|
946
|
+
message.timeSeriesResourceHierarchyLevel.push(reader.int32() as any);
|
|
947
|
+
}
|
|
948
|
+
} else {
|
|
949
|
+
message.timeSeriesResourceHierarchyLevel.push(reader.int32() as any);
|
|
950
|
+
}
|
|
951
|
+
break;
|
|
952
|
+
default:
|
|
953
|
+
reader.skipType(tag & 7);
|
|
954
|
+
break;
|
|
955
|
+
}
|
|
956
|
+
}
|
|
957
|
+
return message;
|
|
958
|
+
},
|
|
959
|
+
fromPartial(object: Partial<MetricDescriptor_MetricDescriptorMetadata>): MetricDescriptor_MetricDescriptorMetadata {
|
|
960
|
+
const message = createBaseMetricDescriptor_MetricDescriptorMetadata();
|
|
961
|
+
message.launchStage = object.launchStage ?? 0;
|
|
962
|
+
message.samplePeriod = object.samplePeriod !== undefined && object.samplePeriod !== null ? Duration.fromPartial(object.samplePeriod) : undefined;
|
|
963
|
+
message.ingestDelay = object.ingestDelay !== undefined && object.ingestDelay !== null ? Duration.fromPartial(object.ingestDelay) : undefined;
|
|
964
|
+
message.timeSeriesResourceHierarchyLevel = object.timeSeriesResourceHierarchyLevel?.map(e => e) || [];
|
|
965
|
+
return message;
|
|
966
|
+
},
|
|
967
|
+
fromAmino(object: MetricDescriptor_MetricDescriptorMetadataAmino): MetricDescriptor_MetricDescriptorMetadata {
|
|
968
|
+
const message = createBaseMetricDescriptor_MetricDescriptorMetadata();
|
|
969
|
+
if (object.launch_stage !== undefined && object.launch_stage !== null) {
|
|
970
|
+
message.launchStage = object.launch_stage;
|
|
971
|
+
}
|
|
972
|
+
if (object.sample_period !== undefined && object.sample_period !== null) {
|
|
973
|
+
message.samplePeriod = Duration.fromAmino(object.sample_period);
|
|
974
|
+
}
|
|
975
|
+
if (object.ingest_delay !== undefined && object.ingest_delay !== null) {
|
|
976
|
+
message.ingestDelay = Duration.fromAmino(object.ingest_delay);
|
|
977
|
+
}
|
|
978
|
+
message.timeSeriesResourceHierarchyLevel = object.time_series_resource_hierarchy_level?.map(e => e) || [];
|
|
979
|
+
return message;
|
|
980
|
+
},
|
|
981
|
+
toAmino(message: MetricDescriptor_MetricDescriptorMetadata): MetricDescriptor_MetricDescriptorMetadataAmino {
|
|
982
|
+
const obj: any = {};
|
|
983
|
+
obj.launch_stage = message.launchStage === 0 ? undefined : message.launchStage;
|
|
984
|
+
obj.sample_period = message.samplePeriod ? Duration.toAmino(message.samplePeriod) : undefined;
|
|
985
|
+
obj.ingest_delay = message.ingestDelay ? Duration.toAmino(message.ingestDelay) : undefined;
|
|
986
|
+
if (message.timeSeriesResourceHierarchyLevel) {
|
|
987
|
+
obj.time_series_resource_hierarchy_level = message.timeSeriesResourceHierarchyLevel.map(e => e);
|
|
988
|
+
} else {
|
|
989
|
+
obj.time_series_resource_hierarchy_level = message.timeSeriesResourceHierarchyLevel;
|
|
990
|
+
}
|
|
991
|
+
return obj;
|
|
992
|
+
},
|
|
993
|
+
fromAminoMsg(object: MetricDescriptor_MetricDescriptorMetadataAminoMsg): MetricDescriptor_MetricDescriptorMetadata {
|
|
994
|
+
return MetricDescriptor_MetricDescriptorMetadata.fromAmino(object.value);
|
|
995
|
+
},
|
|
996
|
+
fromProtoMsg(message: MetricDescriptor_MetricDescriptorMetadataProtoMsg): MetricDescriptor_MetricDescriptorMetadata {
|
|
997
|
+
return MetricDescriptor_MetricDescriptorMetadata.decode(message.value);
|
|
998
|
+
},
|
|
999
|
+
toProto(message: MetricDescriptor_MetricDescriptorMetadata): Uint8Array {
|
|
1000
|
+
return MetricDescriptor_MetricDescriptorMetadata.encode(message).finish();
|
|
1001
|
+
},
|
|
1002
|
+
toProtoMsg(message: MetricDescriptor_MetricDescriptorMetadata): MetricDescriptor_MetricDescriptorMetadataProtoMsg {
|
|
1003
|
+
return {
|
|
1004
|
+
typeUrl: "/google.api.MetricDescriptorMetadata",
|
|
1005
|
+
value: MetricDescriptor_MetricDescriptorMetadata.encode(message).finish()
|
|
1006
|
+
};
|
|
1007
|
+
}
|
|
1008
|
+
};
|
|
1009
|
+
function createBaseMetric_LabelsEntry(): Metric_LabelsEntry {
|
|
1010
|
+
return {
|
|
1011
|
+
key: "",
|
|
1012
|
+
value: ""
|
|
1013
|
+
};
|
|
1014
|
+
}
|
|
1015
|
+
export const Metric_LabelsEntry = {
|
|
1016
|
+
encode(message: Metric_LabelsEntry, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1017
|
+
if (message.key !== "") {
|
|
1018
|
+
writer.uint32(10).string(message.key);
|
|
1019
|
+
}
|
|
1020
|
+
if (message.value !== "") {
|
|
1021
|
+
writer.uint32(18).string(message.value);
|
|
1022
|
+
}
|
|
1023
|
+
return writer;
|
|
1024
|
+
},
|
|
1025
|
+
decode(input: BinaryReader | Uint8Array, length?: number): Metric_LabelsEntry {
|
|
1026
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1027
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1028
|
+
const message = createBaseMetric_LabelsEntry();
|
|
1029
|
+
while (reader.pos < end) {
|
|
1030
|
+
const tag = reader.uint32();
|
|
1031
|
+
switch (tag >>> 3) {
|
|
1032
|
+
case 1:
|
|
1033
|
+
message.key = reader.string();
|
|
1034
|
+
break;
|
|
1035
|
+
case 2:
|
|
1036
|
+
message.value = reader.string();
|
|
1037
|
+
break;
|
|
1038
|
+
default:
|
|
1039
|
+
reader.skipType(tag & 7);
|
|
1040
|
+
break;
|
|
1041
|
+
}
|
|
1042
|
+
}
|
|
1043
|
+
return message;
|
|
1044
|
+
},
|
|
1045
|
+
fromPartial(object: Partial<Metric_LabelsEntry>): Metric_LabelsEntry {
|
|
1046
|
+
const message = createBaseMetric_LabelsEntry();
|
|
1047
|
+
message.key = object.key ?? "";
|
|
1048
|
+
message.value = object.value ?? "";
|
|
1049
|
+
return message;
|
|
1050
|
+
},
|
|
1051
|
+
fromAmino(object: Metric_LabelsEntryAmino): Metric_LabelsEntry {
|
|
1052
|
+
const message = createBaseMetric_LabelsEntry();
|
|
1053
|
+
if (object.key !== undefined && object.key !== null) {
|
|
1054
|
+
message.key = object.key;
|
|
1055
|
+
}
|
|
1056
|
+
if (object.value !== undefined && object.value !== null) {
|
|
1057
|
+
message.value = object.value;
|
|
1058
|
+
}
|
|
1059
|
+
return message;
|
|
1060
|
+
},
|
|
1061
|
+
toAmino(message: Metric_LabelsEntry): Metric_LabelsEntryAmino {
|
|
1062
|
+
const obj: any = {};
|
|
1063
|
+
obj.key = message.key === "" ? undefined : message.key;
|
|
1064
|
+
obj.value = message.value === "" ? undefined : message.value;
|
|
1065
|
+
return obj;
|
|
1066
|
+
},
|
|
1067
|
+
fromAminoMsg(object: Metric_LabelsEntryAminoMsg): Metric_LabelsEntry {
|
|
1068
|
+
return Metric_LabelsEntry.fromAmino(object.value);
|
|
1069
|
+
},
|
|
1070
|
+
fromProtoMsg(message: Metric_LabelsEntryProtoMsg): Metric_LabelsEntry {
|
|
1071
|
+
return Metric_LabelsEntry.decode(message.value);
|
|
1072
|
+
},
|
|
1073
|
+
toProto(message: Metric_LabelsEntry): Uint8Array {
|
|
1074
|
+
return Metric_LabelsEntry.encode(message).finish();
|
|
1075
|
+
}
|
|
1076
|
+
};
|
|
1077
|
+
function createBaseMetric(): Metric {
|
|
1078
|
+
return {
|
|
1079
|
+
type: "",
|
|
1080
|
+
labels: {}
|
|
1081
|
+
};
|
|
1082
|
+
}
|
|
1083
|
+
export const Metric = {
|
|
1084
|
+
typeUrl: "/google.api.Metric",
|
|
1085
|
+
encode(message: Metric, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1086
|
+
if (message.type !== "") {
|
|
1087
|
+
writer.uint32(26).string(message.type);
|
|
1088
|
+
}
|
|
1089
|
+
Object.entries(message.labels).forEach(([key, value]) => {
|
|
1090
|
+
Metric_LabelsEntry.encode({
|
|
1091
|
+
key: key as any,
|
|
1092
|
+
value
|
|
1093
|
+
}, writer.uint32(18).fork()).ldelim();
|
|
1094
|
+
});
|
|
1095
|
+
return writer;
|
|
1096
|
+
},
|
|
1097
|
+
decode(input: BinaryReader | Uint8Array, length?: number): Metric {
|
|
1098
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1099
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1100
|
+
const message = createBaseMetric();
|
|
1101
|
+
while (reader.pos < end) {
|
|
1102
|
+
const tag = reader.uint32();
|
|
1103
|
+
switch (tag >>> 3) {
|
|
1104
|
+
case 3:
|
|
1105
|
+
message.type = reader.string();
|
|
1106
|
+
break;
|
|
1107
|
+
case 2:
|
|
1108
|
+
const entry2 = Metric_LabelsEntry.decode(reader, reader.uint32());
|
|
1109
|
+
if (entry2.value !== undefined) {
|
|
1110
|
+
message.labels[entry2.key] = entry2.value;
|
|
1111
|
+
}
|
|
1112
|
+
break;
|
|
1113
|
+
default:
|
|
1114
|
+
reader.skipType(tag & 7);
|
|
1115
|
+
break;
|
|
1116
|
+
}
|
|
1117
|
+
}
|
|
1118
|
+
return message;
|
|
1119
|
+
},
|
|
1120
|
+
fromPartial(object: Partial<Metric>): Metric {
|
|
1121
|
+
const message = createBaseMetric();
|
|
1122
|
+
message.type = object.type ?? "";
|
|
1123
|
+
message.labels = Object.entries(object.labels ?? {}).reduce<{
|
|
1124
|
+
[key: string]: string;
|
|
1125
|
+
}>((acc, [key, value]) => {
|
|
1126
|
+
if (value !== undefined) {
|
|
1127
|
+
acc[key] = String(value);
|
|
1128
|
+
}
|
|
1129
|
+
return acc;
|
|
1130
|
+
}, {});
|
|
1131
|
+
return message;
|
|
1132
|
+
},
|
|
1133
|
+
fromAmino(object: MetricAmino): Metric {
|
|
1134
|
+
const message = createBaseMetric();
|
|
1135
|
+
if (object.type !== undefined && object.type !== null) {
|
|
1136
|
+
message.type = object.type;
|
|
1137
|
+
}
|
|
1138
|
+
message.labels = Object.entries(object.labels ?? {}).reduce<{
|
|
1139
|
+
[key: string]: string;
|
|
1140
|
+
}>((acc, [key, value]) => {
|
|
1141
|
+
if (value !== undefined) {
|
|
1142
|
+
acc[key] = String(value);
|
|
1143
|
+
}
|
|
1144
|
+
return acc;
|
|
1145
|
+
}, {});
|
|
1146
|
+
return message;
|
|
1147
|
+
},
|
|
1148
|
+
toAmino(message: Metric): MetricAmino {
|
|
1149
|
+
const obj: any = {};
|
|
1150
|
+
obj.type = message.type === "" ? undefined : message.type;
|
|
1151
|
+
obj.labels = {};
|
|
1152
|
+
if (message.labels) {
|
|
1153
|
+
Object.entries(message.labels).forEach(([k, v]) => {
|
|
1154
|
+
obj.labels[k] = v;
|
|
1155
|
+
});
|
|
1156
|
+
}
|
|
1157
|
+
return obj;
|
|
1158
|
+
},
|
|
1159
|
+
fromAminoMsg(object: MetricAminoMsg): Metric {
|
|
1160
|
+
return Metric.fromAmino(object.value);
|
|
1161
|
+
},
|
|
1162
|
+
fromProtoMsg(message: MetricProtoMsg): Metric {
|
|
1163
|
+
return Metric.decode(message.value);
|
|
1164
|
+
},
|
|
1165
|
+
toProto(message: Metric): Uint8Array {
|
|
1166
|
+
return Metric.encode(message).finish();
|
|
1167
|
+
},
|
|
1168
|
+
toProtoMsg(message: Metric): MetricProtoMsg {
|
|
1169
|
+
return {
|
|
1170
|
+
typeUrl: "/google.api.Metric",
|
|
1171
|
+
value: Metric.encode(message).finish()
|
|
1172
|
+
};
|
|
1173
|
+
}
|
|
1174
|
+
};
|