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