@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,2467 @@
1
+ //@ts-nocheck
2
+ import { Duration, DurationAmino, DurationSDKType } from "../protobuf/duration";
3
+ import { BinaryReader, BinaryWriter } from "../../binary";
4
+ export interface ErrorInfo_MetadataEntry {
5
+ key: string;
6
+ value: string;
7
+ }
8
+ export interface ErrorInfo_MetadataEntryProtoMsg {
9
+ typeUrl: string;
10
+ value: Uint8Array;
11
+ }
12
+ /**
13
+ * @name ErrorInfo_MetadataEntryAmino
14
+ * @package google.rpc
15
+ * @see proto type: google.rpc.ErrorInfo_MetadataEntry
16
+ */
17
+ export interface ErrorInfo_MetadataEntryAmino {
18
+ key?: string;
19
+ value?: string;
20
+ }
21
+ export interface ErrorInfo_MetadataEntryAminoMsg {
22
+ type: string;
23
+ value: ErrorInfo_MetadataEntryAmino;
24
+ }
25
+ export interface ErrorInfo_MetadataEntrySDKType {
26
+ key: string;
27
+ value: string;
28
+ }
29
+ /**
30
+ * Describes the cause of the error with structured details.
31
+ *
32
+ * Example of an error when contacting the "pubsub.googleapis.com" API when it
33
+ * is not enabled:
34
+ *
35
+ * { "reason": "API_DISABLED"
36
+ * "domain": "googleapis.com"
37
+ * "metadata": {
38
+ * "resource": "projects/123",
39
+ * "service": "pubsub.googleapis.com"
40
+ * }
41
+ * }
42
+ *
43
+ * This response indicates that the pubsub.googleapis.com API is not enabled.
44
+ *
45
+ * Example of an error that is returned when attempting to create a Spanner
46
+ * instance in a region that is out of stock:
47
+ *
48
+ * { "reason": "STOCKOUT"
49
+ * "domain": "spanner.googleapis.com",
50
+ * "metadata": {
51
+ * "availableRegions": "us-central1,us-east2"
52
+ * }
53
+ * }
54
+ */
55
+ export interface ErrorInfo {
56
+ /**
57
+ * The reason of the error. This is a constant value that identifies the
58
+ * proximate cause of the error. Error reasons are unique within a particular
59
+ * domain of errors. This should be at most 63 characters and match a
60
+ * regular expression of `[A-Z][A-Z0-9_]+[A-Z0-9]`, which represents
61
+ * UPPER_SNAKE_CASE.
62
+ */
63
+ reason: string;
64
+ /**
65
+ * The logical grouping to which the "reason" belongs. The error domain
66
+ * is typically the registered service name of the tool or product that
67
+ * generates the error. Example: "pubsub.googleapis.com". If the error is
68
+ * generated by some common infrastructure, the error domain must be a
69
+ * globally unique value that identifies the infrastructure. For Google API
70
+ * infrastructure, the error domain is "googleapis.com".
71
+ */
72
+ domain: string;
73
+ /**
74
+ * Additional structured details about this error.
75
+ *
76
+ * Keys must match a regular expression of `[a-z][a-zA-Z0-9-_]+` but should
77
+ * ideally be lowerCamelCase. Also, they must be limited to 64 characters in
78
+ * length. When identifying the current value of an exceeded limit, the units
79
+ * should be contained in the key, not the value. For example, rather than
80
+ * `{"instanceLimit": "100/request"}`, should be returned as,
81
+ * `{"instanceLimitPerRequest": "100"}`, if the client exceeds the number of
82
+ * instances that can be created in a single (batch) request.
83
+ */
84
+ metadata: {
85
+ [key: string]: string;
86
+ };
87
+ }
88
+ export interface ErrorInfoProtoMsg {
89
+ typeUrl: "/google.rpc.ErrorInfo";
90
+ value: Uint8Array;
91
+ }
92
+ /**
93
+ * Describes the cause of the error with structured details.
94
+ *
95
+ * Example of an error when contacting the "pubsub.googleapis.com" API when it
96
+ * is not enabled:
97
+ *
98
+ * { "reason": "API_DISABLED"
99
+ * "domain": "googleapis.com"
100
+ * "metadata": {
101
+ * "resource": "projects/123",
102
+ * "service": "pubsub.googleapis.com"
103
+ * }
104
+ * }
105
+ *
106
+ * This response indicates that the pubsub.googleapis.com API is not enabled.
107
+ *
108
+ * Example of an error that is returned when attempting to create a Spanner
109
+ * instance in a region that is out of stock:
110
+ *
111
+ * { "reason": "STOCKOUT"
112
+ * "domain": "spanner.googleapis.com",
113
+ * "metadata": {
114
+ * "availableRegions": "us-central1,us-east2"
115
+ * }
116
+ * }
117
+ * @name ErrorInfoAmino
118
+ * @package google.rpc
119
+ * @see proto type: google.rpc.ErrorInfo
120
+ */
121
+ export interface ErrorInfoAmino {
122
+ /**
123
+ * The reason of the error. This is a constant value that identifies the
124
+ * proximate cause of the error. Error reasons are unique within a particular
125
+ * domain of errors. This should be at most 63 characters and match a
126
+ * regular expression of `[A-Z][A-Z0-9_]+[A-Z0-9]`, which represents
127
+ * UPPER_SNAKE_CASE.
128
+ */
129
+ reason?: string;
130
+ /**
131
+ * The logical grouping to which the "reason" belongs. The error domain
132
+ * is typically the registered service name of the tool or product that
133
+ * generates the error. Example: "pubsub.googleapis.com". If the error is
134
+ * generated by some common infrastructure, the error domain must be a
135
+ * globally unique value that identifies the infrastructure. For Google API
136
+ * infrastructure, the error domain is "googleapis.com".
137
+ */
138
+ domain?: string;
139
+ /**
140
+ * Additional structured details about this error.
141
+ *
142
+ * Keys must match a regular expression of `[a-z][a-zA-Z0-9-_]+` but should
143
+ * ideally be lowerCamelCase. Also, they must be limited to 64 characters in
144
+ * length. When identifying the current value of an exceeded limit, the units
145
+ * should be contained in the key, not the value. For example, rather than
146
+ * `{"instanceLimit": "100/request"}`, should be returned as,
147
+ * `{"instanceLimitPerRequest": "100"}`, if the client exceeds the number of
148
+ * instances that can be created in a single (batch) request.
149
+ */
150
+ metadata?: {
151
+ [key: string]: string;
152
+ };
153
+ }
154
+ export interface ErrorInfoAminoMsg {
155
+ type: "/google.rpc.ErrorInfo";
156
+ value: ErrorInfoAmino;
157
+ }
158
+ /**
159
+ * Describes the cause of the error with structured details.
160
+ *
161
+ * Example of an error when contacting the "pubsub.googleapis.com" API when it
162
+ * is not enabled:
163
+ *
164
+ * { "reason": "API_DISABLED"
165
+ * "domain": "googleapis.com"
166
+ * "metadata": {
167
+ * "resource": "projects/123",
168
+ * "service": "pubsub.googleapis.com"
169
+ * }
170
+ * }
171
+ *
172
+ * This response indicates that the pubsub.googleapis.com API is not enabled.
173
+ *
174
+ * Example of an error that is returned when attempting to create a Spanner
175
+ * instance in a region that is out of stock:
176
+ *
177
+ * { "reason": "STOCKOUT"
178
+ * "domain": "spanner.googleapis.com",
179
+ * "metadata": {
180
+ * "availableRegions": "us-central1,us-east2"
181
+ * }
182
+ * }
183
+ */
184
+ export interface ErrorInfoSDKType {
185
+ reason: string;
186
+ domain: string;
187
+ metadata: {
188
+ [key: string]: string;
189
+ };
190
+ }
191
+ /**
192
+ * Describes when the clients can retry a failed request. Clients could ignore
193
+ * the recommendation here or retry when this information is missing from error
194
+ * responses.
195
+ *
196
+ * It's always recommended that clients should use exponential backoff when
197
+ * retrying.
198
+ *
199
+ * Clients should wait until `retry_delay` amount of time has passed since
200
+ * receiving the error response before retrying. If retrying requests also
201
+ * fail, clients should use an exponential backoff scheme to gradually increase
202
+ * the delay between retries based on `retry_delay`, until either a maximum
203
+ * number of retries have been reached or a maximum retry delay cap has been
204
+ * reached.
205
+ */
206
+ export interface RetryInfo {
207
+ /** Clients should wait at least this long between retrying the same request. */
208
+ retryDelay?: Duration;
209
+ }
210
+ export interface RetryInfoProtoMsg {
211
+ typeUrl: "/google.rpc.RetryInfo";
212
+ value: Uint8Array;
213
+ }
214
+ /**
215
+ * Describes when the clients can retry a failed request. Clients could ignore
216
+ * the recommendation here or retry when this information is missing from error
217
+ * responses.
218
+ *
219
+ * It's always recommended that clients should use exponential backoff when
220
+ * retrying.
221
+ *
222
+ * Clients should wait until `retry_delay` amount of time has passed since
223
+ * receiving the error response before retrying. If retrying requests also
224
+ * fail, clients should use an exponential backoff scheme to gradually increase
225
+ * the delay between retries based on `retry_delay`, until either a maximum
226
+ * number of retries have been reached or a maximum retry delay cap has been
227
+ * reached.
228
+ * @name RetryInfoAmino
229
+ * @package google.rpc
230
+ * @see proto type: google.rpc.RetryInfo
231
+ */
232
+ export interface RetryInfoAmino {
233
+ /**
234
+ * Clients should wait at least this long between retrying the same request.
235
+ */
236
+ retry_delay?: DurationAmino;
237
+ }
238
+ export interface RetryInfoAminoMsg {
239
+ type: "/google.rpc.RetryInfo";
240
+ value: RetryInfoAmino;
241
+ }
242
+ /**
243
+ * Describes when the clients can retry a failed request. Clients could ignore
244
+ * the recommendation here or retry when this information is missing from error
245
+ * responses.
246
+ *
247
+ * It's always recommended that clients should use exponential backoff when
248
+ * retrying.
249
+ *
250
+ * Clients should wait until `retry_delay` amount of time has passed since
251
+ * receiving the error response before retrying. If retrying requests also
252
+ * fail, clients should use an exponential backoff scheme to gradually increase
253
+ * the delay between retries based on `retry_delay`, until either a maximum
254
+ * number of retries have been reached or a maximum retry delay cap has been
255
+ * reached.
256
+ */
257
+ export interface RetryInfoSDKType {
258
+ retry_delay?: DurationSDKType;
259
+ }
260
+ /** Describes additional debugging info. */
261
+ export interface DebugInfo {
262
+ /** The stack trace entries indicating where the error occurred. */
263
+ stackEntries: string[];
264
+ /** Additional debugging information provided by the server. */
265
+ detail: string;
266
+ }
267
+ export interface DebugInfoProtoMsg {
268
+ typeUrl: "/google.rpc.DebugInfo";
269
+ value: Uint8Array;
270
+ }
271
+ /**
272
+ * Describes additional debugging info.
273
+ * @name DebugInfoAmino
274
+ * @package google.rpc
275
+ * @see proto type: google.rpc.DebugInfo
276
+ */
277
+ export interface DebugInfoAmino {
278
+ /**
279
+ * The stack trace entries indicating where the error occurred.
280
+ */
281
+ stack_entries?: string[];
282
+ /**
283
+ * Additional debugging information provided by the server.
284
+ */
285
+ detail?: string;
286
+ }
287
+ export interface DebugInfoAminoMsg {
288
+ type: "/google.rpc.DebugInfo";
289
+ value: DebugInfoAmino;
290
+ }
291
+ /** Describes additional debugging info. */
292
+ export interface DebugInfoSDKType {
293
+ stack_entries: string[];
294
+ detail: string;
295
+ }
296
+ /**
297
+ * Describes how a quota check failed.
298
+ *
299
+ * For example if a daily limit was exceeded for the calling project,
300
+ * a service could respond with a QuotaFailure detail containing the project
301
+ * id and the description of the quota limit that was exceeded. If the
302
+ * calling project hasn't enabled the service in the developer console, then
303
+ * a service could respond with the project id and set `service_disabled`
304
+ * to true.
305
+ *
306
+ * Also see RetryInfo and Help types for other details about handling a
307
+ * quota failure.
308
+ */
309
+ export interface QuotaFailure {
310
+ /** Describes all quota violations. */
311
+ violations: QuotaFailure_Violation[];
312
+ }
313
+ export interface QuotaFailureProtoMsg {
314
+ typeUrl: "/google.rpc.QuotaFailure";
315
+ value: Uint8Array;
316
+ }
317
+ /**
318
+ * Describes how a quota check failed.
319
+ *
320
+ * For example if a daily limit was exceeded for the calling project,
321
+ * a service could respond with a QuotaFailure detail containing the project
322
+ * id and the description of the quota limit that was exceeded. If the
323
+ * calling project hasn't enabled the service in the developer console, then
324
+ * a service could respond with the project id and set `service_disabled`
325
+ * to true.
326
+ *
327
+ * Also see RetryInfo and Help types for other details about handling a
328
+ * quota failure.
329
+ * @name QuotaFailureAmino
330
+ * @package google.rpc
331
+ * @see proto type: google.rpc.QuotaFailure
332
+ */
333
+ export interface QuotaFailureAmino {
334
+ /**
335
+ * Describes all quota violations.
336
+ */
337
+ violations?: QuotaFailure_ViolationAmino[];
338
+ }
339
+ export interface QuotaFailureAminoMsg {
340
+ type: "/google.rpc.QuotaFailure";
341
+ value: QuotaFailureAmino;
342
+ }
343
+ /**
344
+ * Describes how a quota check failed.
345
+ *
346
+ * For example if a daily limit was exceeded for the calling project,
347
+ * a service could respond with a QuotaFailure detail containing the project
348
+ * id and the description of the quota limit that was exceeded. If the
349
+ * calling project hasn't enabled the service in the developer console, then
350
+ * a service could respond with the project id and set `service_disabled`
351
+ * to true.
352
+ *
353
+ * Also see RetryInfo and Help types for other details about handling a
354
+ * quota failure.
355
+ */
356
+ export interface QuotaFailureSDKType {
357
+ violations: QuotaFailure_ViolationSDKType[];
358
+ }
359
+ export interface QuotaFailure_Violation_QuotaDimensionsEntry {
360
+ key: string;
361
+ value: string;
362
+ }
363
+ export interface QuotaFailure_Violation_QuotaDimensionsEntryProtoMsg {
364
+ typeUrl: string;
365
+ value: Uint8Array;
366
+ }
367
+ /**
368
+ * @name QuotaFailure_Violation_QuotaDimensionsEntryAmino
369
+ * @package google.rpc
370
+ * @see proto type: google.rpc.QuotaFailure_Violation_QuotaDimensionsEntry
371
+ */
372
+ export interface QuotaFailure_Violation_QuotaDimensionsEntryAmino {
373
+ key?: string;
374
+ value?: string;
375
+ }
376
+ export interface QuotaFailure_Violation_QuotaDimensionsEntryAminoMsg {
377
+ type: string;
378
+ value: QuotaFailure_Violation_QuotaDimensionsEntryAmino;
379
+ }
380
+ export interface QuotaFailure_Violation_QuotaDimensionsEntrySDKType {
381
+ key: string;
382
+ value: string;
383
+ }
384
+ /**
385
+ * A message type used to describe a single quota violation. For example, a
386
+ * daily quota or a custom quota that was exceeded.
387
+ */
388
+ export interface QuotaFailure_Violation {
389
+ /**
390
+ * The subject on which the quota check failed.
391
+ * For example, "clientip:<ip address of client>" or "project:<Google
392
+ * developer project id>".
393
+ */
394
+ subject: string;
395
+ /**
396
+ * A description of how the quota check failed. Clients can use this
397
+ * description to find more about the quota configuration in the service's
398
+ * public documentation, or find the relevant quota limit to adjust through
399
+ * developer console.
400
+ *
401
+ * For example: "Service disabled" or "Daily Limit for read operations
402
+ * exceeded".
403
+ */
404
+ description: string;
405
+ /**
406
+ * The API Service from which the `QuotaFailure.Violation` orginates. In
407
+ * some cases, Quota issues originate from an API Service other than the one
408
+ * that was called. In other words, a dependency of the called API Service
409
+ * could be the cause of the `QuotaFailure`, and this field would have the
410
+ * dependency API service name.
411
+ *
412
+ * For example, if the called API is Kubernetes Engine API
413
+ * (container.googleapis.com), and a quota violation occurs in the
414
+ * Kubernetes Engine API itself, this field would be
415
+ * "container.googleapis.com". On the other hand, if the quota violation
416
+ * occurs when the Kubernetes Engine API creates VMs in the Compute Engine
417
+ * API (compute.googleapis.com), this field would be
418
+ * "compute.googleapis.com".
419
+ */
420
+ apiService: string;
421
+ /**
422
+ * The metric of the violated quota. A quota metric is a named counter to
423
+ * measure usage, such as API requests or CPUs. When an activity occurs in a
424
+ * service, such as Virtual Machine allocation, one or more quota metrics
425
+ * may be affected.
426
+ *
427
+ * For example, "compute.googleapis.com/cpus_per_vm_family",
428
+ * "storage.googleapis.com/internet_egress_bandwidth".
429
+ */
430
+ quotaMetric: string;
431
+ /**
432
+ * The id of the violated quota. Also know as "limit name", this is the
433
+ * unique identifier of a quota in the context of an API service.
434
+ *
435
+ * For example, "CPUS-PER-VM-FAMILY-per-project-region".
436
+ */
437
+ quotaId: string;
438
+ /**
439
+ * The dimensions of the violated quota. Every non-global quota is enforced
440
+ * on a set of dimensions. While quota metric defines what to count, the
441
+ * dimensions specify for what aspects the counter should be increased.
442
+ *
443
+ * For example, the quota "CPUs per region per VM family" enforces a limit
444
+ * on the metric "compute.googleapis.com/cpus_per_vm_family" on dimensions
445
+ * "region" and "vm_family". And if the violation occurred in region
446
+ * "us-central1" and for VM family "n1", the quota_dimensions would be,
447
+ *
448
+ * {
449
+ * "region": "us-central1",
450
+ * "vm_family": "n1",
451
+ * }
452
+ *
453
+ * When a quota is enforced globally, the quota_dimensions would always be
454
+ * empty.
455
+ */
456
+ quotaDimensions: {
457
+ [key: string]: string;
458
+ };
459
+ /**
460
+ * The enforced quota value at the time of the `QuotaFailure`.
461
+ *
462
+ * For example, if the enforced quota value at the time of the
463
+ * `QuotaFailure` on the number of CPUs is "10", then the value of this
464
+ * field would reflect this quantity.
465
+ */
466
+ quotaValue: bigint;
467
+ /**
468
+ * The new quota value being rolled out at the time of the violation. At the
469
+ * completion of the rollout, this value will be enforced in place of
470
+ * quota_value. If no rollout is in progress at the time of the violation,
471
+ * this field is not set.
472
+ *
473
+ * For example, if at the time of the violation a rollout is in progress
474
+ * changing the number of CPUs quota from 10 to 20, 20 would be the value of
475
+ * this field.
476
+ */
477
+ futureQuotaValue?: bigint;
478
+ }
479
+ export interface QuotaFailure_ViolationProtoMsg {
480
+ typeUrl: "/google.rpc.Violation";
481
+ value: Uint8Array;
482
+ }
483
+ /**
484
+ * A message type used to describe a single quota violation. For example, a
485
+ * daily quota or a custom quota that was exceeded.
486
+ * @name QuotaFailure_ViolationAmino
487
+ * @package google.rpc
488
+ * @see proto type: google.rpc.QuotaFailure_Violation
489
+ */
490
+ export interface QuotaFailure_ViolationAmino {
491
+ /**
492
+ * The subject on which the quota check failed.
493
+ * For example, "clientip:<ip address of client>" or "project:<Google
494
+ * developer project id>".
495
+ */
496
+ subject?: string;
497
+ /**
498
+ * A description of how the quota check failed. Clients can use this
499
+ * description to find more about the quota configuration in the service's
500
+ * public documentation, or find the relevant quota limit to adjust through
501
+ * developer console.
502
+ *
503
+ * For example: "Service disabled" or "Daily Limit for read operations
504
+ * exceeded".
505
+ */
506
+ description?: string;
507
+ /**
508
+ * The API Service from which the `QuotaFailure.Violation` orginates. In
509
+ * some cases, Quota issues originate from an API Service other than the one
510
+ * that was called. In other words, a dependency of the called API Service
511
+ * could be the cause of the `QuotaFailure`, and this field would have the
512
+ * dependency API service name.
513
+ *
514
+ * For example, if the called API is Kubernetes Engine API
515
+ * (container.googleapis.com), and a quota violation occurs in the
516
+ * Kubernetes Engine API itself, this field would be
517
+ * "container.googleapis.com". On the other hand, if the quota violation
518
+ * occurs when the Kubernetes Engine API creates VMs in the Compute Engine
519
+ * API (compute.googleapis.com), this field would be
520
+ * "compute.googleapis.com".
521
+ */
522
+ api_service?: string;
523
+ /**
524
+ * The metric of the violated quota. A quota metric is a named counter to
525
+ * measure usage, such as API requests or CPUs. When an activity occurs in a
526
+ * service, such as Virtual Machine allocation, one or more quota metrics
527
+ * may be affected.
528
+ *
529
+ * For example, "compute.googleapis.com/cpus_per_vm_family",
530
+ * "storage.googleapis.com/internet_egress_bandwidth".
531
+ */
532
+ quota_metric?: string;
533
+ /**
534
+ * The id of the violated quota. Also know as "limit name", this is the
535
+ * unique identifier of a quota in the context of an API service.
536
+ *
537
+ * For example, "CPUS-PER-VM-FAMILY-per-project-region".
538
+ */
539
+ quota_id?: string;
540
+ /**
541
+ * The dimensions of the violated quota. Every non-global quota is enforced
542
+ * on a set of dimensions. While quota metric defines what to count, the
543
+ * dimensions specify for what aspects the counter should be increased.
544
+ *
545
+ * For example, the quota "CPUs per region per VM family" enforces a limit
546
+ * on the metric "compute.googleapis.com/cpus_per_vm_family" on dimensions
547
+ * "region" and "vm_family". And if the violation occurred in region
548
+ * "us-central1" and for VM family "n1", the quota_dimensions would be,
549
+ *
550
+ * {
551
+ * "region": "us-central1",
552
+ * "vm_family": "n1",
553
+ * }
554
+ *
555
+ * When a quota is enforced globally, the quota_dimensions would always be
556
+ * empty.
557
+ */
558
+ quota_dimensions?: {
559
+ [key: string]: string;
560
+ };
561
+ /**
562
+ * The enforced quota value at the time of the `QuotaFailure`.
563
+ *
564
+ * For example, if the enforced quota value at the time of the
565
+ * `QuotaFailure` on the number of CPUs is "10", then the value of this
566
+ * field would reflect this quantity.
567
+ */
568
+ quota_value?: string;
569
+ /**
570
+ * The new quota value being rolled out at the time of the violation. At the
571
+ * completion of the rollout, this value will be enforced in place of
572
+ * quota_value. If no rollout is in progress at the time of the violation,
573
+ * this field is not set.
574
+ *
575
+ * For example, if at the time of the violation a rollout is in progress
576
+ * changing the number of CPUs quota from 10 to 20, 20 would be the value of
577
+ * this field.
578
+ */
579
+ future_quota_value?: string;
580
+ }
581
+ export interface QuotaFailure_ViolationAminoMsg {
582
+ type: "/google.rpc.Violation";
583
+ value: QuotaFailure_ViolationAmino;
584
+ }
585
+ /**
586
+ * A message type used to describe a single quota violation. For example, a
587
+ * daily quota or a custom quota that was exceeded.
588
+ */
589
+ export interface QuotaFailure_ViolationSDKType {
590
+ subject: string;
591
+ description: string;
592
+ api_service: string;
593
+ quota_metric: string;
594
+ quota_id: string;
595
+ quota_dimensions: {
596
+ [key: string]: string;
597
+ };
598
+ quota_value: bigint;
599
+ future_quota_value?: bigint;
600
+ }
601
+ /**
602
+ * Describes what preconditions have failed.
603
+ *
604
+ * For example, if an RPC failed because it required the Terms of Service to be
605
+ * acknowledged, it could list the terms of service violation in the
606
+ * PreconditionFailure message.
607
+ */
608
+ export interface PreconditionFailure {
609
+ /** Describes all precondition violations. */
610
+ violations: PreconditionFailure_Violation[];
611
+ }
612
+ export interface PreconditionFailureProtoMsg {
613
+ typeUrl: "/google.rpc.PreconditionFailure";
614
+ value: Uint8Array;
615
+ }
616
+ /**
617
+ * Describes what preconditions have failed.
618
+ *
619
+ * For example, if an RPC failed because it required the Terms of Service to be
620
+ * acknowledged, it could list the terms of service violation in the
621
+ * PreconditionFailure message.
622
+ * @name PreconditionFailureAmino
623
+ * @package google.rpc
624
+ * @see proto type: google.rpc.PreconditionFailure
625
+ */
626
+ export interface PreconditionFailureAmino {
627
+ /**
628
+ * Describes all precondition violations.
629
+ */
630
+ violations?: PreconditionFailure_ViolationAmino[];
631
+ }
632
+ export interface PreconditionFailureAminoMsg {
633
+ type: "/google.rpc.PreconditionFailure";
634
+ value: PreconditionFailureAmino;
635
+ }
636
+ /**
637
+ * Describes what preconditions have failed.
638
+ *
639
+ * For example, if an RPC failed because it required the Terms of Service to be
640
+ * acknowledged, it could list the terms of service violation in the
641
+ * PreconditionFailure message.
642
+ */
643
+ export interface PreconditionFailureSDKType {
644
+ violations: PreconditionFailure_ViolationSDKType[];
645
+ }
646
+ /** A message type used to describe a single precondition failure. */
647
+ export interface PreconditionFailure_Violation {
648
+ /**
649
+ * The type of PreconditionFailure. We recommend using a service-specific
650
+ * enum type to define the supported precondition violation subjects. For
651
+ * example, "TOS" for "Terms of Service violation".
652
+ */
653
+ type: string;
654
+ /**
655
+ * The subject, relative to the type, that failed.
656
+ * For example, "google.com/cloud" relative to the "TOS" type would indicate
657
+ * which terms of service is being referenced.
658
+ */
659
+ subject: string;
660
+ /**
661
+ * A description of how the precondition failed. Developers can use this
662
+ * description to understand how to fix the failure.
663
+ *
664
+ * For example: "Terms of service not accepted".
665
+ */
666
+ description: string;
667
+ }
668
+ export interface PreconditionFailure_ViolationProtoMsg {
669
+ typeUrl: "/google.rpc.Violation";
670
+ value: Uint8Array;
671
+ }
672
+ /**
673
+ * A message type used to describe a single precondition failure.
674
+ * @name PreconditionFailure_ViolationAmino
675
+ * @package google.rpc
676
+ * @see proto type: google.rpc.PreconditionFailure_Violation
677
+ */
678
+ export interface PreconditionFailure_ViolationAmino {
679
+ /**
680
+ * The type of PreconditionFailure. We recommend using a service-specific
681
+ * enum type to define the supported precondition violation subjects. For
682
+ * example, "TOS" for "Terms of Service violation".
683
+ */
684
+ type?: string;
685
+ /**
686
+ * The subject, relative to the type, that failed.
687
+ * For example, "google.com/cloud" relative to the "TOS" type would indicate
688
+ * which terms of service is being referenced.
689
+ */
690
+ subject?: string;
691
+ /**
692
+ * A description of how the precondition failed. Developers can use this
693
+ * description to understand how to fix the failure.
694
+ *
695
+ * For example: "Terms of service not accepted".
696
+ */
697
+ description?: string;
698
+ }
699
+ export interface PreconditionFailure_ViolationAminoMsg {
700
+ type: "/google.rpc.Violation";
701
+ value: PreconditionFailure_ViolationAmino;
702
+ }
703
+ /** A message type used to describe a single precondition failure. */
704
+ export interface PreconditionFailure_ViolationSDKType {
705
+ type: string;
706
+ subject: string;
707
+ description: string;
708
+ }
709
+ /**
710
+ * Describes violations in a client request. This error type focuses on the
711
+ * syntactic aspects of the request.
712
+ */
713
+ export interface BadRequest {
714
+ /** Describes all violations in a client request. */
715
+ fieldViolations: BadRequest_FieldViolation[];
716
+ }
717
+ export interface BadRequestProtoMsg {
718
+ typeUrl: "/google.rpc.BadRequest";
719
+ value: Uint8Array;
720
+ }
721
+ /**
722
+ * Describes violations in a client request. This error type focuses on the
723
+ * syntactic aspects of the request.
724
+ * @name BadRequestAmino
725
+ * @package google.rpc
726
+ * @see proto type: google.rpc.BadRequest
727
+ */
728
+ export interface BadRequestAmino {
729
+ /**
730
+ * Describes all violations in a client request.
731
+ */
732
+ field_violations?: BadRequest_FieldViolationAmino[];
733
+ }
734
+ export interface BadRequestAminoMsg {
735
+ type: "/google.rpc.BadRequest";
736
+ value: BadRequestAmino;
737
+ }
738
+ /**
739
+ * Describes violations in a client request. This error type focuses on the
740
+ * syntactic aspects of the request.
741
+ */
742
+ export interface BadRequestSDKType {
743
+ field_violations: BadRequest_FieldViolationSDKType[];
744
+ }
745
+ /** A message type used to describe a single bad request field. */
746
+ export interface BadRequest_FieldViolation {
747
+ /**
748
+ * A path that leads to a field in the request body. The value will be a
749
+ * sequence of dot-separated identifiers that identify a protocol buffer
750
+ * field.
751
+ *
752
+ * Consider the following:
753
+ *
754
+ * message CreateContactRequest {
755
+ * message EmailAddress {
756
+ * enum Type {
757
+ * TYPE_UNSPECIFIED = 0;
758
+ * HOME = 1;
759
+ * WORK = 2;
760
+ * }
761
+ *
762
+ * optional string email = 1;
763
+ * repeated EmailType type = 2;
764
+ * }
765
+ *
766
+ * string full_name = 1;
767
+ * repeated EmailAddress email_addresses = 2;
768
+ * }
769
+ *
770
+ * In this example, in proto `field` could take one of the following values:
771
+ *
772
+ * * `full_name` for a violation in the `full_name` value
773
+ * * `email_addresses[1].email` for a violation in the `email` field of the
774
+ * first `email_addresses` message
775
+ * * `email_addresses[3].type[2]` for a violation in the second `type`
776
+ * value in the third `email_addresses` message.
777
+ *
778
+ * In JSON, the same values are represented as:
779
+ *
780
+ * * `fullName` for a violation in the `fullName` value
781
+ * * `emailAddresses[1].email` for a violation in the `email` field of the
782
+ * first `emailAddresses` message
783
+ * * `emailAddresses[3].type[2]` for a violation in the second `type`
784
+ * value in the third `emailAddresses` message.
785
+ */
786
+ field: string;
787
+ /** A description of why the request element is bad. */
788
+ description: string;
789
+ /**
790
+ * The reason of the field-level error. This is a constant value that
791
+ * identifies the proximate cause of the field-level error. It should
792
+ * uniquely identify the type of the FieldViolation within the scope of the
793
+ * google.rpc.ErrorInfo.domain. This should be at most 63
794
+ * characters and match a regular expression of `[A-Z][A-Z0-9_]+[A-Z0-9]`,
795
+ * which represents UPPER_SNAKE_CASE.
796
+ */
797
+ reason: string;
798
+ /**
799
+ * Provides a localized error message for field-level errors that is safe to
800
+ * return to the API consumer.
801
+ */
802
+ localizedMessage?: LocalizedMessage;
803
+ }
804
+ export interface BadRequest_FieldViolationProtoMsg {
805
+ typeUrl: "/google.rpc.FieldViolation";
806
+ value: Uint8Array;
807
+ }
808
+ /**
809
+ * A message type used to describe a single bad request field.
810
+ * @name BadRequest_FieldViolationAmino
811
+ * @package google.rpc
812
+ * @see proto type: google.rpc.BadRequest_FieldViolation
813
+ */
814
+ export interface BadRequest_FieldViolationAmino {
815
+ /**
816
+ * A path that leads to a field in the request body. The value will be a
817
+ * sequence of dot-separated identifiers that identify a protocol buffer
818
+ * field.
819
+ *
820
+ * Consider the following:
821
+ *
822
+ * message CreateContactRequest {
823
+ * message EmailAddress {
824
+ * enum Type {
825
+ * TYPE_UNSPECIFIED = 0;
826
+ * HOME = 1;
827
+ * WORK = 2;
828
+ * }
829
+ *
830
+ * optional string email = 1;
831
+ * repeated EmailType type = 2;
832
+ * }
833
+ *
834
+ * string full_name = 1;
835
+ * repeated EmailAddress email_addresses = 2;
836
+ * }
837
+ *
838
+ * In this example, in proto `field` could take one of the following values:
839
+ *
840
+ * * `full_name` for a violation in the `full_name` value
841
+ * * `email_addresses[1].email` for a violation in the `email` field of the
842
+ * first `email_addresses` message
843
+ * * `email_addresses[3].type[2]` for a violation in the second `type`
844
+ * value in the third `email_addresses` message.
845
+ *
846
+ * In JSON, the same values are represented as:
847
+ *
848
+ * * `fullName` for a violation in the `fullName` value
849
+ * * `emailAddresses[1].email` for a violation in the `email` field of the
850
+ * first `emailAddresses` message
851
+ * * `emailAddresses[3].type[2]` for a violation in the second `type`
852
+ * value in the third `emailAddresses` message.
853
+ */
854
+ field?: string;
855
+ /**
856
+ * A description of why the request element is bad.
857
+ */
858
+ description?: string;
859
+ /**
860
+ * The reason of the field-level error. This is a constant value that
861
+ * identifies the proximate cause of the field-level error. It should
862
+ * uniquely identify the type of the FieldViolation within the scope of the
863
+ * google.rpc.ErrorInfo.domain. This should be at most 63
864
+ * characters and match a regular expression of `[A-Z][A-Z0-9_]+[A-Z0-9]`,
865
+ * which represents UPPER_SNAKE_CASE.
866
+ */
867
+ reason?: string;
868
+ /**
869
+ * Provides a localized error message for field-level errors that is safe to
870
+ * return to the API consumer.
871
+ */
872
+ localized_message?: LocalizedMessageAmino;
873
+ }
874
+ export interface BadRequest_FieldViolationAminoMsg {
875
+ type: "/google.rpc.FieldViolation";
876
+ value: BadRequest_FieldViolationAmino;
877
+ }
878
+ /** A message type used to describe a single bad request field. */
879
+ export interface BadRequest_FieldViolationSDKType {
880
+ field: string;
881
+ description: string;
882
+ reason: string;
883
+ localized_message?: LocalizedMessageSDKType;
884
+ }
885
+ /**
886
+ * Contains metadata about the request that clients can attach when filing a bug
887
+ * or providing other forms of feedback.
888
+ */
889
+ export interface RequestInfo {
890
+ /**
891
+ * An opaque string that should only be interpreted by the service generating
892
+ * it. For example, it can be used to identify requests in the service's logs.
893
+ */
894
+ requestId: string;
895
+ /**
896
+ * Any data that was used to serve this request. For example, an encrypted
897
+ * stack trace that can be sent back to the service provider for debugging.
898
+ */
899
+ servingData: string;
900
+ }
901
+ export interface RequestInfoProtoMsg {
902
+ typeUrl: "/google.rpc.RequestInfo";
903
+ value: Uint8Array;
904
+ }
905
+ /**
906
+ * Contains metadata about the request that clients can attach when filing a bug
907
+ * or providing other forms of feedback.
908
+ * @name RequestInfoAmino
909
+ * @package google.rpc
910
+ * @see proto type: google.rpc.RequestInfo
911
+ */
912
+ export interface RequestInfoAmino {
913
+ /**
914
+ * An opaque string that should only be interpreted by the service generating
915
+ * it. For example, it can be used to identify requests in the service's logs.
916
+ */
917
+ request_id?: string;
918
+ /**
919
+ * Any data that was used to serve this request. For example, an encrypted
920
+ * stack trace that can be sent back to the service provider for debugging.
921
+ */
922
+ serving_data?: string;
923
+ }
924
+ export interface RequestInfoAminoMsg {
925
+ type: "/google.rpc.RequestInfo";
926
+ value: RequestInfoAmino;
927
+ }
928
+ /**
929
+ * Contains metadata about the request that clients can attach when filing a bug
930
+ * or providing other forms of feedback.
931
+ */
932
+ export interface RequestInfoSDKType {
933
+ request_id: string;
934
+ serving_data: string;
935
+ }
936
+ /** Describes the resource that is being accessed. */
937
+ export interface ResourceInfo {
938
+ /**
939
+ * A name for the type of resource being accessed, e.g. "sql table",
940
+ * "cloud storage bucket", "file", "Google calendar"; or the type URL
941
+ * of the resource: e.g. "type.googleapis.com/google.pubsub.v1.Topic".
942
+ */
943
+ resourceType: string;
944
+ /**
945
+ * The name of the resource being accessed. For example, a shared calendar
946
+ * name: "example.com_4fghdhgsrgh@group.calendar.google.com", if the current
947
+ * error is
948
+ * [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED].
949
+ */
950
+ resourceName: string;
951
+ /**
952
+ * The owner of the resource (optional).
953
+ * For example, "user:<owner email>" or "project:<Google developer project
954
+ * id>".
955
+ */
956
+ owner: string;
957
+ /**
958
+ * Describes what error is encountered when accessing this resource.
959
+ * For example, updating a cloud project may require the `writer` permission
960
+ * on the developer console project.
961
+ */
962
+ description: string;
963
+ }
964
+ export interface ResourceInfoProtoMsg {
965
+ typeUrl: "/google.rpc.ResourceInfo";
966
+ value: Uint8Array;
967
+ }
968
+ /**
969
+ * Describes the resource that is being accessed.
970
+ * @name ResourceInfoAmino
971
+ * @package google.rpc
972
+ * @see proto type: google.rpc.ResourceInfo
973
+ */
974
+ export interface ResourceInfoAmino {
975
+ /**
976
+ * A name for the type of resource being accessed, e.g. "sql table",
977
+ * "cloud storage bucket", "file", "Google calendar"; or the type URL
978
+ * of the resource: e.g. "type.googleapis.com/google.pubsub.v1.Topic".
979
+ */
980
+ resource_type?: string;
981
+ /**
982
+ * The name of the resource being accessed. For example, a shared calendar
983
+ * name: "example.com_4fghdhgsrgh@group.calendar.google.com", if the current
984
+ * error is
985
+ * [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED].
986
+ */
987
+ resource_name?: string;
988
+ /**
989
+ * The owner of the resource (optional).
990
+ * For example, "user:<owner email>" or "project:<Google developer project
991
+ * id>".
992
+ */
993
+ owner?: string;
994
+ /**
995
+ * Describes what error is encountered when accessing this resource.
996
+ * For example, updating a cloud project may require the `writer` permission
997
+ * on the developer console project.
998
+ */
999
+ description?: string;
1000
+ }
1001
+ export interface ResourceInfoAminoMsg {
1002
+ type: "/google.rpc.ResourceInfo";
1003
+ value: ResourceInfoAmino;
1004
+ }
1005
+ /** Describes the resource that is being accessed. */
1006
+ export interface ResourceInfoSDKType {
1007
+ resource_type: string;
1008
+ resource_name: string;
1009
+ owner: string;
1010
+ description: string;
1011
+ }
1012
+ /**
1013
+ * Provides links to documentation or for performing an out of band action.
1014
+ *
1015
+ * For example, if a quota check failed with an error indicating the calling
1016
+ * project hasn't enabled the accessed service, this can contain a URL pointing
1017
+ * directly to the right place in the developer console to flip the bit.
1018
+ */
1019
+ export interface Help {
1020
+ /** URL(s) pointing to additional information on handling the current error. */
1021
+ links: Help_Link[];
1022
+ }
1023
+ export interface HelpProtoMsg {
1024
+ typeUrl: "/google.rpc.Help";
1025
+ value: Uint8Array;
1026
+ }
1027
+ /**
1028
+ * Provides links to documentation or for performing an out of band action.
1029
+ *
1030
+ * For example, if a quota check failed with an error indicating the calling
1031
+ * project hasn't enabled the accessed service, this can contain a URL pointing
1032
+ * directly to the right place in the developer console to flip the bit.
1033
+ * @name HelpAmino
1034
+ * @package google.rpc
1035
+ * @see proto type: google.rpc.Help
1036
+ */
1037
+ export interface HelpAmino {
1038
+ /**
1039
+ * URL(s) pointing to additional information on handling the current error.
1040
+ */
1041
+ links?: Help_LinkAmino[];
1042
+ }
1043
+ export interface HelpAminoMsg {
1044
+ type: "/google.rpc.Help";
1045
+ value: HelpAmino;
1046
+ }
1047
+ /**
1048
+ * Provides links to documentation or for performing an out of band action.
1049
+ *
1050
+ * For example, if a quota check failed with an error indicating the calling
1051
+ * project hasn't enabled the accessed service, this can contain a URL pointing
1052
+ * directly to the right place in the developer console to flip the bit.
1053
+ */
1054
+ export interface HelpSDKType {
1055
+ links: Help_LinkSDKType[];
1056
+ }
1057
+ /** Describes a URL link. */
1058
+ export interface Help_Link {
1059
+ /** Describes what the link offers. */
1060
+ description: string;
1061
+ /** The URL of the link. */
1062
+ url: string;
1063
+ }
1064
+ export interface Help_LinkProtoMsg {
1065
+ typeUrl: "/google.rpc.Link";
1066
+ value: Uint8Array;
1067
+ }
1068
+ /**
1069
+ * Describes a URL link.
1070
+ * @name Help_LinkAmino
1071
+ * @package google.rpc
1072
+ * @see proto type: google.rpc.Help_Link
1073
+ */
1074
+ export interface Help_LinkAmino {
1075
+ /**
1076
+ * Describes what the link offers.
1077
+ */
1078
+ description?: string;
1079
+ /**
1080
+ * The URL of the link.
1081
+ */
1082
+ url?: string;
1083
+ }
1084
+ export interface Help_LinkAminoMsg {
1085
+ type: "/google.rpc.Link";
1086
+ value: Help_LinkAmino;
1087
+ }
1088
+ /** Describes a URL link. */
1089
+ export interface Help_LinkSDKType {
1090
+ description: string;
1091
+ url: string;
1092
+ }
1093
+ /**
1094
+ * Provides a localized error message that is safe to return to the user
1095
+ * which can be attached to an RPC error.
1096
+ */
1097
+ export interface LocalizedMessage {
1098
+ /**
1099
+ * The locale used following the specification defined at
1100
+ * https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
1101
+ * Examples are: "en-US", "fr-CH", "es-MX"
1102
+ */
1103
+ locale: string;
1104
+ /** The localized error message in the above locale. */
1105
+ message: string;
1106
+ }
1107
+ export interface LocalizedMessageProtoMsg {
1108
+ typeUrl: "/google.rpc.LocalizedMessage";
1109
+ value: Uint8Array;
1110
+ }
1111
+ /**
1112
+ * Provides a localized error message that is safe to return to the user
1113
+ * which can be attached to an RPC error.
1114
+ * @name LocalizedMessageAmino
1115
+ * @package google.rpc
1116
+ * @see proto type: google.rpc.LocalizedMessage
1117
+ */
1118
+ export interface LocalizedMessageAmino {
1119
+ /**
1120
+ * The locale used following the specification defined at
1121
+ * https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
1122
+ * Examples are: "en-US", "fr-CH", "es-MX"
1123
+ */
1124
+ locale?: string;
1125
+ /**
1126
+ * The localized error message in the above locale.
1127
+ */
1128
+ message?: string;
1129
+ }
1130
+ export interface LocalizedMessageAminoMsg {
1131
+ type: "/google.rpc.LocalizedMessage";
1132
+ value: LocalizedMessageAmino;
1133
+ }
1134
+ /**
1135
+ * Provides a localized error message that is safe to return to the user
1136
+ * which can be attached to an RPC error.
1137
+ */
1138
+ export interface LocalizedMessageSDKType {
1139
+ locale: string;
1140
+ message: string;
1141
+ }
1142
+ function createBaseErrorInfo_MetadataEntry(): ErrorInfo_MetadataEntry {
1143
+ return {
1144
+ key: "",
1145
+ value: ""
1146
+ };
1147
+ }
1148
+ export const ErrorInfo_MetadataEntry = {
1149
+ encode(message: ErrorInfo_MetadataEntry, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1150
+ if (message.key !== "") {
1151
+ writer.uint32(10).string(message.key);
1152
+ }
1153
+ if (message.value !== "") {
1154
+ writer.uint32(18).string(message.value);
1155
+ }
1156
+ return writer;
1157
+ },
1158
+ decode(input: BinaryReader | Uint8Array, length?: number): ErrorInfo_MetadataEntry {
1159
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1160
+ let end = length === undefined ? reader.len : reader.pos + length;
1161
+ const message = createBaseErrorInfo_MetadataEntry();
1162
+ while (reader.pos < end) {
1163
+ const tag = reader.uint32();
1164
+ switch (tag >>> 3) {
1165
+ case 1:
1166
+ message.key = reader.string();
1167
+ break;
1168
+ case 2:
1169
+ message.value = reader.string();
1170
+ break;
1171
+ default:
1172
+ reader.skipType(tag & 7);
1173
+ break;
1174
+ }
1175
+ }
1176
+ return message;
1177
+ },
1178
+ fromPartial(object: Partial<ErrorInfo_MetadataEntry>): ErrorInfo_MetadataEntry {
1179
+ const message = createBaseErrorInfo_MetadataEntry();
1180
+ message.key = object.key ?? "";
1181
+ message.value = object.value ?? "";
1182
+ return message;
1183
+ },
1184
+ fromAmino(object: ErrorInfo_MetadataEntryAmino): ErrorInfo_MetadataEntry {
1185
+ const message = createBaseErrorInfo_MetadataEntry();
1186
+ if (object.key !== undefined && object.key !== null) {
1187
+ message.key = object.key;
1188
+ }
1189
+ if (object.value !== undefined && object.value !== null) {
1190
+ message.value = object.value;
1191
+ }
1192
+ return message;
1193
+ },
1194
+ toAmino(message: ErrorInfo_MetadataEntry): ErrorInfo_MetadataEntryAmino {
1195
+ const obj: any = {};
1196
+ obj.key = message.key === "" ? undefined : message.key;
1197
+ obj.value = message.value === "" ? undefined : message.value;
1198
+ return obj;
1199
+ },
1200
+ fromAminoMsg(object: ErrorInfo_MetadataEntryAminoMsg): ErrorInfo_MetadataEntry {
1201
+ return ErrorInfo_MetadataEntry.fromAmino(object.value);
1202
+ },
1203
+ fromProtoMsg(message: ErrorInfo_MetadataEntryProtoMsg): ErrorInfo_MetadataEntry {
1204
+ return ErrorInfo_MetadataEntry.decode(message.value);
1205
+ },
1206
+ toProto(message: ErrorInfo_MetadataEntry): Uint8Array {
1207
+ return ErrorInfo_MetadataEntry.encode(message).finish();
1208
+ }
1209
+ };
1210
+ function createBaseErrorInfo(): ErrorInfo {
1211
+ return {
1212
+ reason: "",
1213
+ domain: "",
1214
+ metadata: {}
1215
+ };
1216
+ }
1217
+ export const ErrorInfo = {
1218
+ typeUrl: "/google.rpc.ErrorInfo",
1219
+ encode(message: ErrorInfo, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1220
+ if (message.reason !== "") {
1221
+ writer.uint32(10).string(message.reason);
1222
+ }
1223
+ if (message.domain !== "") {
1224
+ writer.uint32(18).string(message.domain);
1225
+ }
1226
+ Object.entries(message.metadata).forEach(([key, value]) => {
1227
+ ErrorInfo_MetadataEntry.encode({
1228
+ key: key as any,
1229
+ value
1230
+ }, writer.uint32(26).fork()).ldelim();
1231
+ });
1232
+ return writer;
1233
+ },
1234
+ decode(input: BinaryReader | Uint8Array, length?: number): ErrorInfo {
1235
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1236
+ let end = length === undefined ? reader.len : reader.pos + length;
1237
+ const message = createBaseErrorInfo();
1238
+ while (reader.pos < end) {
1239
+ const tag = reader.uint32();
1240
+ switch (tag >>> 3) {
1241
+ case 1:
1242
+ message.reason = reader.string();
1243
+ break;
1244
+ case 2:
1245
+ message.domain = reader.string();
1246
+ break;
1247
+ case 3:
1248
+ const entry3 = ErrorInfo_MetadataEntry.decode(reader, reader.uint32());
1249
+ if (entry3.value !== undefined) {
1250
+ message.metadata[entry3.key] = entry3.value;
1251
+ }
1252
+ break;
1253
+ default:
1254
+ reader.skipType(tag & 7);
1255
+ break;
1256
+ }
1257
+ }
1258
+ return message;
1259
+ },
1260
+ fromPartial(object: Partial<ErrorInfo>): ErrorInfo {
1261
+ const message = createBaseErrorInfo();
1262
+ message.reason = object.reason ?? "";
1263
+ message.domain = object.domain ?? "";
1264
+ message.metadata = Object.entries(object.metadata ?? {}).reduce<{
1265
+ [key: string]: string;
1266
+ }>((acc, [key, value]) => {
1267
+ if (value !== undefined) {
1268
+ acc[key] = String(value);
1269
+ }
1270
+ return acc;
1271
+ }, {});
1272
+ return message;
1273
+ },
1274
+ fromAmino(object: ErrorInfoAmino): ErrorInfo {
1275
+ const message = createBaseErrorInfo();
1276
+ if (object.reason !== undefined && object.reason !== null) {
1277
+ message.reason = object.reason;
1278
+ }
1279
+ if (object.domain !== undefined && object.domain !== null) {
1280
+ message.domain = object.domain;
1281
+ }
1282
+ message.metadata = Object.entries(object.metadata ?? {}).reduce<{
1283
+ [key: string]: string;
1284
+ }>((acc, [key, value]) => {
1285
+ if (value !== undefined) {
1286
+ acc[key] = String(value);
1287
+ }
1288
+ return acc;
1289
+ }, {});
1290
+ return message;
1291
+ },
1292
+ toAmino(message: ErrorInfo): ErrorInfoAmino {
1293
+ const obj: any = {};
1294
+ obj.reason = message.reason === "" ? undefined : message.reason;
1295
+ obj.domain = message.domain === "" ? undefined : message.domain;
1296
+ obj.metadata = {};
1297
+ if (message.metadata) {
1298
+ Object.entries(message.metadata).forEach(([k, v]) => {
1299
+ obj.metadata[k] = v;
1300
+ });
1301
+ }
1302
+ return obj;
1303
+ },
1304
+ fromAminoMsg(object: ErrorInfoAminoMsg): ErrorInfo {
1305
+ return ErrorInfo.fromAmino(object.value);
1306
+ },
1307
+ fromProtoMsg(message: ErrorInfoProtoMsg): ErrorInfo {
1308
+ return ErrorInfo.decode(message.value);
1309
+ },
1310
+ toProto(message: ErrorInfo): Uint8Array {
1311
+ return ErrorInfo.encode(message).finish();
1312
+ },
1313
+ toProtoMsg(message: ErrorInfo): ErrorInfoProtoMsg {
1314
+ return {
1315
+ typeUrl: "/google.rpc.ErrorInfo",
1316
+ value: ErrorInfo.encode(message).finish()
1317
+ };
1318
+ }
1319
+ };
1320
+ function createBaseRetryInfo(): RetryInfo {
1321
+ return {
1322
+ retryDelay: undefined
1323
+ };
1324
+ }
1325
+ export const RetryInfo = {
1326
+ typeUrl: "/google.rpc.RetryInfo",
1327
+ encode(message: RetryInfo, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1328
+ if (message.retryDelay !== undefined) {
1329
+ Duration.encode(message.retryDelay, writer.uint32(10).fork()).ldelim();
1330
+ }
1331
+ return writer;
1332
+ },
1333
+ decode(input: BinaryReader | Uint8Array, length?: number): RetryInfo {
1334
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1335
+ let end = length === undefined ? reader.len : reader.pos + length;
1336
+ const message = createBaseRetryInfo();
1337
+ while (reader.pos < end) {
1338
+ const tag = reader.uint32();
1339
+ switch (tag >>> 3) {
1340
+ case 1:
1341
+ message.retryDelay = Duration.decode(reader, reader.uint32());
1342
+ break;
1343
+ default:
1344
+ reader.skipType(tag & 7);
1345
+ break;
1346
+ }
1347
+ }
1348
+ return message;
1349
+ },
1350
+ fromPartial(object: Partial<RetryInfo>): RetryInfo {
1351
+ const message = createBaseRetryInfo();
1352
+ message.retryDelay = object.retryDelay !== undefined && object.retryDelay !== null ? Duration.fromPartial(object.retryDelay) : undefined;
1353
+ return message;
1354
+ },
1355
+ fromAmino(object: RetryInfoAmino): RetryInfo {
1356
+ const message = createBaseRetryInfo();
1357
+ if (object.retry_delay !== undefined && object.retry_delay !== null) {
1358
+ message.retryDelay = Duration.fromAmino(object.retry_delay);
1359
+ }
1360
+ return message;
1361
+ },
1362
+ toAmino(message: RetryInfo): RetryInfoAmino {
1363
+ const obj: any = {};
1364
+ obj.retry_delay = message.retryDelay ? Duration.toAmino(message.retryDelay) : undefined;
1365
+ return obj;
1366
+ },
1367
+ fromAminoMsg(object: RetryInfoAminoMsg): RetryInfo {
1368
+ return RetryInfo.fromAmino(object.value);
1369
+ },
1370
+ fromProtoMsg(message: RetryInfoProtoMsg): RetryInfo {
1371
+ return RetryInfo.decode(message.value);
1372
+ },
1373
+ toProto(message: RetryInfo): Uint8Array {
1374
+ return RetryInfo.encode(message).finish();
1375
+ },
1376
+ toProtoMsg(message: RetryInfo): RetryInfoProtoMsg {
1377
+ return {
1378
+ typeUrl: "/google.rpc.RetryInfo",
1379
+ value: RetryInfo.encode(message).finish()
1380
+ };
1381
+ }
1382
+ };
1383
+ function createBaseDebugInfo(): DebugInfo {
1384
+ return {
1385
+ stackEntries: [],
1386
+ detail: ""
1387
+ };
1388
+ }
1389
+ export const DebugInfo = {
1390
+ typeUrl: "/google.rpc.DebugInfo",
1391
+ encode(message: DebugInfo, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1392
+ for (const v of message.stackEntries) {
1393
+ writer.uint32(10).string(v!);
1394
+ }
1395
+ if (message.detail !== "") {
1396
+ writer.uint32(18).string(message.detail);
1397
+ }
1398
+ return writer;
1399
+ },
1400
+ decode(input: BinaryReader | Uint8Array, length?: number): DebugInfo {
1401
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1402
+ let end = length === undefined ? reader.len : reader.pos + length;
1403
+ const message = createBaseDebugInfo();
1404
+ while (reader.pos < end) {
1405
+ const tag = reader.uint32();
1406
+ switch (tag >>> 3) {
1407
+ case 1:
1408
+ message.stackEntries.push(reader.string());
1409
+ break;
1410
+ case 2:
1411
+ message.detail = reader.string();
1412
+ break;
1413
+ default:
1414
+ reader.skipType(tag & 7);
1415
+ break;
1416
+ }
1417
+ }
1418
+ return message;
1419
+ },
1420
+ fromPartial(object: Partial<DebugInfo>): DebugInfo {
1421
+ const message = createBaseDebugInfo();
1422
+ message.stackEntries = object.stackEntries?.map(e => e) || [];
1423
+ message.detail = object.detail ?? "";
1424
+ return message;
1425
+ },
1426
+ fromAmino(object: DebugInfoAmino): DebugInfo {
1427
+ const message = createBaseDebugInfo();
1428
+ message.stackEntries = object.stack_entries?.map(e => e) || [];
1429
+ if (object.detail !== undefined && object.detail !== null) {
1430
+ message.detail = object.detail;
1431
+ }
1432
+ return message;
1433
+ },
1434
+ toAmino(message: DebugInfo): DebugInfoAmino {
1435
+ const obj: any = {};
1436
+ if (message.stackEntries) {
1437
+ obj.stack_entries = message.stackEntries.map(e => e);
1438
+ } else {
1439
+ obj.stack_entries = message.stackEntries;
1440
+ }
1441
+ obj.detail = message.detail === "" ? undefined : message.detail;
1442
+ return obj;
1443
+ },
1444
+ fromAminoMsg(object: DebugInfoAminoMsg): DebugInfo {
1445
+ return DebugInfo.fromAmino(object.value);
1446
+ },
1447
+ fromProtoMsg(message: DebugInfoProtoMsg): DebugInfo {
1448
+ return DebugInfo.decode(message.value);
1449
+ },
1450
+ toProto(message: DebugInfo): Uint8Array {
1451
+ return DebugInfo.encode(message).finish();
1452
+ },
1453
+ toProtoMsg(message: DebugInfo): DebugInfoProtoMsg {
1454
+ return {
1455
+ typeUrl: "/google.rpc.DebugInfo",
1456
+ value: DebugInfo.encode(message).finish()
1457
+ };
1458
+ }
1459
+ };
1460
+ function createBaseQuotaFailure(): QuotaFailure {
1461
+ return {
1462
+ violations: []
1463
+ };
1464
+ }
1465
+ export const QuotaFailure = {
1466
+ typeUrl: "/google.rpc.QuotaFailure",
1467
+ encode(message: QuotaFailure, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1468
+ for (const v of message.violations) {
1469
+ QuotaFailure_Violation.encode(v!, writer.uint32(10).fork()).ldelim();
1470
+ }
1471
+ return writer;
1472
+ },
1473
+ decode(input: BinaryReader | Uint8Array, length?: number): QuotaFailure {
1474
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1475
+ let end = length === undefined ? reader.len : reader.pos + length;
1476
+ const message = createBaseQuotaFailure();
1477
+ while (reader.pos < end) {
1478
+ const tag = reader.uint32();
1479
+ switch (tag >>> 3) {
1480
+ case 1:
1481
+ message.violations.push(QuotaFailure_Violation.decode(reader, reader.uint32()));
1482
+ break;
1483
+ default:
1484
+ reader.skipType(tag & 7);
1485
+ break;
1486
+ }
1487
+ }
1488
+ return message;
1489
+ },
1490
+ fromPartial(object: Partial<QuotaFailure>): QuotaFailure {
1491
+ const message = createBaseQuotaFailure();
1492
+ message.violations = object.violations?.map(e => QuotaFailure_Violation.fromPartial(e)) || [];
1493
+ return message;
1494
+ },
1495
+ fromAmino(object: QuotaFailureAmino): QuotaFailure {
1496
+ const message = createBaseQuotaFailure();
1497
+ message.violations = object.violations?.map(e => QuotaFailure_Violation.fromAmino(e)) || [];
1498
+ return message;
1499
+ },
1500
+ toAmino(message: QuotaFailure): QuotaFailureAmino {
1501
+ const obj: any = {};
1502
+ if (message.violations) {
1503
+ obj.violations = message.violations.map(e => e ? QuotaFailure_Violation.toAmino(e) : undefined);
1504
+ } else {
1505
+ obj.violations = message.violations;
1506
+ }
1507
+ return obj;
1508
+ },
1509
+ fromAminoMsg(object: QuotaFailureAminoMsg): QuotaFailure {
1510
+ return QuotaFailure.fromAmino(object.value);
1511
+ },
1512
+ fromProtoMsg(message: QuotaFailureProtoMsg): QuotaFailure {
1513
+ return QuotaFailure.decode(message.value);
1514
+ },
1515
+ toProto(message: QuotaFailure): Uint8Array {
1516
+ return QuotaFailure.encode(message).finish();
1517
+ },
1518
+ toProtoMsg(message: QuotaFailure): QuotaFailureProtoMsg {
1519
+ return {
1520
+ typeUrl: "/google.rpc.QuotaFailure",
1521
+ value: QuotaFailure.encode(message).finish()
1522
+ };
1523
+ }
1524
+ };
1525
+ function createBaseQuotaFailure_Violation_QuotaDimensionsEntry(): QuotaFailure_Violation_QuotaDimensionsEntry {
1526
+ return {
1527
+ key: "",
1528
+ value: ""
1529
+ };
1530
+ }
1531
+ export const QuotaFailure_Violation_QuotaDimensionsEntry = {
1532
+ encode(message: QuotaFailure_Violation_QuotaDimensionsEntry, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1533
+ if (message.key !== "") {
1534
+ writer.uint32(10).string(message.key);
1535
+ }
1536
+ if (message.value !== "") {
1537
+ writer.uint32(18).string(message.value);
1538
+ }
1539
+ return writer;
1540
+ },
1541
+ decode(input: BinaryReader | Uint8Array, length?: number): QuotaFailure_Violation_QuotaDimensionsEntry {
1542
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1543
+ let end = length === undefined ? reader.len : reader.pos + length;
1544
+ const message = createBaseQuotaFailure_Violation_QuotaDimensionsEntry();
1545
+ while (reader.pos < end) {
1546
+ const tag = reader.uint32();
1547
+ switch (tag >>> 3) {
1548
+ case 1:
1549
+ message.key = reader.string();
1550
+ break;
1551
+ case 2:
1552
+ message.value = reader.string();
1553
+ break;
1554
+ default:
1555
+ reader.skipType(tag & 7);
1556
+ break;
1557
+ }
1558
+ }
1559
+ return message;
1560
+ },
1561
+ fromPartial(object: Partial<QuotaFailure_Violation_QuotaDimensionsEntry>): QuotaFailure_Violation_QuotaDimensionsEntry {
1562
+ const message = createBaseQuotaFailure_Violation_QuotaDimensionsEntry();
1563
+ message.key = object.key ?? "";
1564
+ message.value = object.value ?? "";
1565
+ return message;
1566
+ },
1567
+ fromAmino(object: QuotaFailure_Violation_QuotaDimensionsEntryAmino): QuotaFailure_Violation_QuotaDimensionsEntry {
1568
+ const message = createBaseQuotaFailure_Violation_QuotaDimensionsEntry();
1569
+ if (object.key !== undefined && object.key !== null) {
1570
+ message.key = object.key;
1571
+ }
1572
+ if (object.value !== undefined && object.value !== null) {
1573
+ message.value = object.value;
1574
+ }
1575
+ return message;
1576
+ },
1577
+ toAmino(message: QuotaFailure_Violation_QuotaDimensionsEntry): QuotaFailure_Violation_QuotaDimensionsEntryAmino {
1578
+ const obj: any = {};
1579
+ obj.key = message.key === "" ? undefined : message.key;
1580
+ obj.value = message.value === "" ? undefined : message.value;
1581
+ return obj;
1582
+ },
1583
+ fromAminoMsg(object: QuotaFailure_Violation_QuotaDimensionsEntryAminoMsg): QuotaFailure_Violation_QuotaDimensionsEntry {
1584
+ return QuotaFailure_Violation_QuotaDimensionsEntry.fromAmino(object.value);
1585
+ },
1586
+ fromProtoMsg(message: QuotaFailure_Violation_QuotaDimensionsEntryProtoMsg): QuotaFailure_Violation_QuotaDimensionsEntry {
1587
+ return QuotaFailure_Violation_QuotaDimensionsEntry.decode(message.value);
1588
+ },
1589
+ toProto(message: QuotaFailure_Violation_QuotaDimensionsEntry): Uint8Array {
1590
+ return QuotaFailure_Violation_QuotaDimensionsEntry.encode(message).finish();
1591
+ }
1592
+ };
1593
+ function createBaseQuotaFailure_Violation(): QuotaFailure_Violation {
1594
+ return {
1595
+ subject: "",
1596
+ description: "",
1597
+ apiService: "",
1598
+ quotaMetric: "",
1599
+ quotaId: "",
1600
+ quotaDimensions: {},
1601
+ quotaValue: BigInt(0),
1602
+ futureQuotaValue: undefined
1603
+ };
1604
+ }
1605
+ export const QuotaFailure_Violation = {
1606
+ typeUrl: "/google.rpc.Violation",
1607
+ encode(message: QuotaFailure_Violation, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1608
+ if (message.subject !== "") {
1609
+ writer.uint32(10).string(message.subject);
1610
+ }
1611
+ if (message.description !== "") {
1612
+ writer.uint32(18).string(message.description);
1613
+ }
1614
+ if (message.apiService !== "") {
1615
+ writer.uint32(26).string(message.apiService);
1616
+ }
1617
+ if (message.quotaMetric !== "") {
1618
+ writer.uint32(34).string(message.quotaMetric);
1619
+ }
1620
+ if (message.quotaId !== "") {
1621
+ writer.uint32(42).string(message.quotaId);
1622
+ }
1623
+ Object.entries(message.quotaDimensions).forEach(([key, value]) => {
1624
+ QuotaFailure_Violation_QuotaDimensionsEntry.encode({
1625
+ key: key as any,
1626
+ value
1627
+ }, writer.uint32(50).fork()).ldelim();
1628
+ });
1629
+ if (message.quotaValue !== BigInt(0)) {
1630
+ writer.uint32(56).int64(message.quotaValue);
1631
+ }
1632
+ if (message.futureQuotaValue !== undefined) {
1633
+ writer.uint32(64).int64(message.futureQuotaValue);
1634
+ }
1635
+ return writer;
1636
+ },
1637
+ decode(input: BinaryReader | Uint8Array, length?: number): QuotaFailure_Violation {
1638
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1639
+ let end = length === undefined ? reader.len : reader.pos + length;
1640
+ const message = createBaseQuotaFailure_Violation();
1641
+ while (reader.pos < end) {
1642
+ const tag = reader.uint32();
1643
+ switch (tag >>> 3) {
1644
+ case 1:
1645
+ message.subject = reader.string();
1646
+ break;
1647
+ case 2:
1648
+ message.description = reader.string();
1649
+ break;
1650
+ case 3:
1651
+ message.apiService = reader.string();
1652
+ break;
1653
+ case 4:
1654
+ message.quotaMetric = reader.string();
1655
+ break;
1656
+ case 5:
1657
+ message.quotaId = reader.string();
1658
+ break;
1659
+ case 6:
1660
+ const entry6 = QuotaFailure_Violation_QuotaDimensionsEntry.decode(reader, reader.uint32());
1661
+ if (entry6.value !== undefined) {
1662
+ message.quotaDimensions[entry6.key] = entry6.value;
1663
+ }
1664
+ break;
1665
+ case 7:
1666
+ message.quotaValue = reader.int64();
1667
+ break;
1668
+ case 8:
1669
+ message.futureQuotaValue = reader.int64();
1670
+ break;
1671
+ default:
1672
+ reader.skipType(tag & 7);
1673
+ break;
1674
+ }
1675
+ }
1676
+ return message;
1677
+ },
1678
+ fromPartial(object: Partial<QuotaFailure_Violation>): QuotaFailure_Violation {
1679
+ const message = createBaseQuotaFailure_Violation();
1680
+ message.subject = object.subject ?? "";
1681
+ message.description = object.description ?? "";
1682
+ message.apiService = object.apiService ?? "";
1683
+ message.quotaMetric = object.quotaMetric ?? "";
1684
+ message.quotaId = object.quotaId ?? "";
1685
+ message.quotaDimensions = Object.entries(object.quotaDimensions ?? {}).reduce<{
1686
+ [key: string]: string;
1687
+ }>((acc, [key, value]) => {
1688
+ if (value !== undefined) {
1689
+ acc[key] = String(value);
1690
+ }
1691
+ return acc;
1692
+ }, {});
1693
+ message.quotaValue = object.quotaValue !== undefined && object.quotaValue !== null ? BigInt(object.quotaValue.toString()) : BigInt(0);
1694
+ message.futureQuotaValue = object.futureQuotaValue !== undefined && object.futureQuotaValue !== null ? BigInt(object.futureQuotaValue.toString()) : undefined;
1695
+ return message;
1696
+ },
1697
+ fromAmino(object: QuotaFailure_ViolationAmino): QuotaFailure_Violation {
1698
+ const message = createBaseQuotaFailure_Violation();
1699
+ if (object.subject !== undefined && object.subject !== null) {
1700
+ message.subject = object.subject;
1701
+ }
1702
+ if (object.description !== undefined && object.description !== null) {
1703
+ message.description = object.description;
1704
+ }
1705
+ if (object.api_service !== undefined && object.api_service !== null) {
1706
+ message.apiService = object.api_service;
1707
+ }
1708
+ if (object.quota_metric !== undefined && object.quota_metric !== null) {
1709
+ message.quotaMetric = object.quota_metric;
1710
+ }
1711
+ if (object.quota_id !== undefined && object.quota_id !== null) {
1712
+ message.quotaId = object.quota_id;
1713
+ }
1714
+ message.quotaDimensions = Object.entries(object.quota_dimensions ?? {}).reduce<{
1715
+ [key: string]: string;
1716
+ }>((acc, [key, value]) => {
1717
+ if (value !== undefined) {
1718
+ acc[key] = String(value);
1719
+ }
1720
+ return acc;
1721
+ }, {});
1722
+ if (object.quota_value !== undefined && object.quota_value !== null) {
1723
+ message.quotaValue = BigInt(object.quota_value);
1724
+ }
1725
+ if (object.future_quota_value !== undefined && object.future_quota_value !== null) {
1726
+ message.futureQuotaValue = BigInt(object.future_quota_value);
1727
+ }
1728
+ return message;
1729
+ },
1730
+ toAmino(message: QuotaFailure_Violation): QuotaFailure_ViolationAmino {
1731
+ const obj: any = {};
1732
+ obj.subject = message.subject === "" ? undefined : message.subject;
1733
+ obj.description = message.description === "" ? undefined : message.description;
1734
+ obj.api_service = message.apiService === "" ? undefined : message.apiService;
1735
+ obj.quota_metric = message.quotaMetric === "" ? undefined : message.quotaMetric;
1736
+ obj.quota_id = message.quotaId === "" ? undefined : message.quotaId;
1737
+ obj.quota_dimensions = {};
1738
+ if (message.quotaDimensions) {
1739
+ Object.entries(message.quotaDimensions).forEach(([k, v]) => {
1740
+ obj.quota_dimensions[k] = v;
1741
+ });
1742
+ }
1743
+ obj.quota_value = message.quotaValue !== BigInt(0) ? message.quotaValue?.toString() : undefined;
1744
+ obj.future_quota_value = message.futureQuotaValue !== BigInt(0) ? message.futureQuotaValue?.toString() : undefined;
1745
+ return obj;
1746
+ },
1747
+ fromAminoMsg(object: QuotaFailure_ViolationAminoMsg): QuotaFailure_Violation {
1748
+ return QuotaFailure_Violation.fromAmino(object.value);
1749
+ },
1750
+ fromProtoMsg(message: QuotaFailure_ViolationProtoMsg): QuotaFailure_Violation {
1751
+ return QuotaFailure_Violation.decode(message.value);
1752
+ },
1753
+ toProto(message: QuotaFailure_Violation): Uint8Array {
1754
+ return QuotaFailure_Violation.encode(message).finish();
1755
+ },
1756
+ toProtoMsg(message: QuotaFailure_Violation): QuotaFailure_ViolationProtoMsg {
1757
+ return {
1758
+ typeUrl: "/google.rpc.Violation",
1759
+ value: QuotaFailure_Violation.encode(message).finish()
1760
+ };
1761
+ }
1762
+ };
1763
+ function createBasePreconditionFailure(): PreconditionFailure {
1764
+ return {
1765
+ violations: []
1766
+ };
1767
+ }
1768
+ export const PreconditionFailure = {
1769
+ typeUrl: "/google.rpc.PreconditionFailure",
1770
+ encode(message: PreconditionFailure, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1771
+ for (const v of message.violations) {
1772
+ PreconditionFailure_Violation.encode(v!, writer.uint32(10).fork()).ldelim();
1773
+ }
1774
+ return writer;
1775
+ },
1776
+ decode(input: BinaryReader | Uint8Array, length?: number): PreconditionFailure {
1777
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1778
+ let end = length === undefined ? reader.len : reader.pos + length;
1779
+ const message = createBasePreconditionFailure();
1780
+ while (reader.pos < end) {
1781
+ const tag = reader.uint32();
1782
+ switch (tag >>> 3) {
1783
+ case 1:
1784
+ message.violations.push(PreconditionFailure_Violation.decode(reader, reader.uint32()));
1785
+ break;
1786
+ default:
1787
+ reader.skipType(tag & 7);
1788
+ break;
1789
+ }
1790
+ }
1791
+ return message;
1792
+ },
1793
+ fromPartial(object: Partial<PreconditionFailure>): PreconditionFailure {
1794
+ const message = createBasePreconditionFailure();
1795
+ message.violations = object.violations?.map(e => PreconditionFailure_Violation.fromPartial(e)) || [];
1796
+ return message;
1797
+ },
1798
+ fromAmino(object: PreconditionFailureAmino): PreconditionFailure {
1799
+ const message = createBasePreconditionFailure();
1800
+ message.violations = object.violations?.map(e => PreconditionFailure_Violation.fromAmino(e)) || [];
1801
+ return message;
1802
+ },
1803
+ toAmino(message: PreconditionFailure): PreconditionFailureAmino {
1804
+ const obj: any = {};
1805
+ if (message.violations) {
1806
+ obj.violations = message.violations.map(e => e ? PreconditionFailure_Violation.toAmino(e) : undefined);
1807
+ } else {
1808
+ obj.violations = message.violations;
1809
+ }
1810
+ return obj;
1811
+ },
1812
+ fromAminoMsg(object: PreconditionFailureAminoMsg): PreconditionFailure {
1813
+ return PreconditionFailure.fromAmino(object.value);
1814
+ },
1815
+ fromProtoMsg(message: PreconditionFailureProtoMsg): PreconditionFailure {
1816
+ return PreconditionFailure.decode(message.value);
1817
+ },
1818
+ toProto(message: PreconditionFailure): Uint8Array {
1819
+ return PreconditionFailure.encode(message).finish();
1820
+ },
1821
+ toProtoMsg(message: PreconditionFailure): PreconditionFailureProtoMsg {
1822
+ return {
1823
+ typeUrl: "/google.rpc.PreconditionFailure",
1824
+ value: PreconditionFailure.encode(message).finish()
1825
+ };
1826
+ }
1827
+ };
1828
+ function createBasePreconditionFailure_Violation(): PreconditionFailure_Violation {
1829
+ return {
1830
+ type: "",
1831
+ subject: "",
1832
+ description: ""
1833
+ };
1834
+ }
1835
+ export const PreconditionFailure_Violation = {
1836
+ typeUrl: "/google.rpc.Violation",
1837
+ encode(message: PreconditionFailure_Violation, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1838
+ if (message.type !== "") {
1839
+ writer.uint32(10).string(message.type);
1840
+ }
1841
+ if (message.subject !== "") {
1842
+ writer.uint32(18).string(message.subject);
1843
+ }
1844
+ if (message.description !== "") {
1845
+ writer.uint32(26).string(message.description);
1846
+ }
1847
+ return writer;
1848
+ },
1849
+ decode(input: BinaryReader | Uint8Array, length?: number): PreconditionFailure_Violation {
1850
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1851
+ let end = length === undefined ? reader.len : reader.pos + length;
1852
+ const message = createBasePreconditionFailure_Violation();
1853
+ while (reader.pos < end) {
1854
+ const tag = reader.uint32();
1855
+ switch (tag >>> 3) {
1856
+ case 1:
1857
+ message.type = reader.string();
1858
+ break;
1859
+ case 2:
1860
+ message.subject = reader.string();
1861
+ break;
1862
+ case 3:
1863
+ message.description = reader.string();
1864
+ break;
1865
+ default:
1866
+ reader.skipType(tag & 7);
1867
+ break;
1868
+ }
1869
+ }
1870
+ return message;
1871
+ },
1872
+ fromPartial(object: Partial<PreconditionFailure_Violation>): PreconditionFailure_Violation {
1873
+ const message = createBasePreconditionFailure_Violation();
1874
+ message.type = object.type ?? "";
1875
+ message.subject = object.subject ?? "";
1876
+ message.description = object.description ?? "";
1877
+ return message;
1878
+ },
1879
+ fromAmino(object: PreconditionFailure_ViolationAmino): PreconditionFailure_Violation {
1880
+ const message = createBasePreconditionFailure_Violation();
1881
+ if (object.type !== undefined && object.type !== null) {
1882
+ message.type = object.type;
1883
+ }
1884
+ if (object.subject !== undefined && object.subject !== null) {
1885
+ message.subject = object.subject;
1886
+ }
1887
+ if (object.description !== undefined && object.description !== null) {
1888
+ message.description = object.description;
1889
+ }
1890
+ return message;
1891
+ },
1892
+ toAmino(message: PreconditionFailure_Violation): PreconditionFailure_ViolationAmino {
1893
+ const obj: any = {};
1894
+ obj.type = message.type === "" ? undefined : message.type;
1895
+ obj.subject = message.subject === "" ? undefined : message.subject;
1896
+ obj.description = message.description === "" ? undefined : message.description;
1897
+ return obj;
1898
+ },
1899
+ fromAminoMsg(object: PreconditionFailure_ViolationAminoMsg): PreconditionFailure_Violation {
1900
+ return PreconditionFailure_Violation.fromAmino(object.value);
1901
+ },
1902
+ fromProtoMsg(message: PreconditionFailure_ViolationProtoMsg): PreconditionFailure_Violation {
1903
+ return PreconditionFailure_Violation.decode(message.value);
1904
+ },
1905
+ toProto(message: PreconditionFailure_Violation): Uint8Array {
1906
+ return PreconditionFailure_Violation.encode(message).finish();
1907
+ },
1908
+ toProtoMsg(message: PreconditionFailure_Violation): PreconditionFailure_ViolationProtoMsg {
1909
+ return {
1910
+ typeUrl: "/google.rpc.Violation",
1911
+ value: PreconditionFailure_Violation.encode(message).finish()
1912
+ };
1913
+ }
1914
+ };
1915
+ function createBaseBadRequest(): BadRequest {
1916
+ return {
1917
+ fieldViolations: []
1918
+ };
1919
+ }
1920
+ export const BadRequest = {
1921
+ typeUrl: "/google.rpc.BadRequest",
1922
+ encode(message: BadRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1923
+ for (const v of message.fieldViolations) {
1924
+ BadRequest_FieldViolation.encode(v!, writer.uint32(10).fork()).ldelim();
1925
+ }
1926
+ return writer;
1927
+ },
1928
+ decode(input: BinaryReader | Uint8Array, length?: number): BadRequest {
1929
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1930
+ let end = length === undefined ? reader.len : reader.pos + length;
1931
+ const message = createBaseBadRequest();
1932
+ while (reader.pos < end) {
1933
+ const tag = reader.uint32();
1934
+ switch (tag >>> 3) {
1935
+ case 1:
1936
+ message.fieldViolations.push(BadRequest_FieldViolation.decode(reader, reader.uint32()));
1937
+ break;
1938
+ default:
1939
+ reader.skipType(tag & 7);
1940
+ break;
1941
+ }
1942
+ }
1943
+ return message;
1944
+ },
1945
+ fromPartial(object: Partial<BadRequest>): BadRequest {
1946
+ const message = createBaseBadRequest();
1947
+ message.fieldViolations = object.fieldViolations?.map(e => BadRequest_FieldViolation.fromPartial(e)) || [];
1948
+ return message;
1949
+ },
1950
+ fromAmino(object: BadRequestAmino): BadRequest {
1951
+ const message = createBaseBadRequest();
1952
+ message.fieldViolations = object.field_violations?.map(e => BadRequest_FieldViolation.fromAmino(e)) || [];
1953
+ return message;
1954
+ },
1955
+ toAmino(message: BadRequest): BadRequestAmino {
1956
+ const obj: any = {};
1957
+ if (message.fieldViolations) {
1958
+ obj.field_violations = message.fieldViolations.map(e => e ? BadRequest_FieldViolation.toAmino(e) : undefined);
1959
+ } else {
1960
+ obj.field_violations = message.fieldViolations;
1961
+ }
1962
+ return obj;
1963
+ },
1964
+ fromAminoMsg(object: BadRequestAminoMsg): BadRequest {
1965
+ return BadRequest.fromAmino(object.value);
1966
+ },
1967
+ fromProtoMsg(message: BadRequestProtoMsg): BadRequest {
1968
+ return BadRequest.decode(message.value);
1969
+ },
1970
+ toProto(message: BadRequest): Uint8Array {
1971
+ return BadRequest.encode(message).finish();
1972
+ },
1973
+ toProtoMsg(message: BadRequest): BadRequestProtoMsg {
1974
+ return {
1975
+ typeUrl: "/google.rpc.BadRequest",
1976
+ value: BadRequest.encode(message).finish()
1977
+ };
1978
+ }
1979
+ };
1980
+ function createBaseBadRequest_FieldViolation(): BadRequest_FieldViolation {
1981
+ return {
1982
+ field: "",
1983
+ description: "",
1984
+ reason: "",
1985
+ localizedMessage: undefined
1986
+ };
1987
+ }
1988
+ export const BadRequest_FieldViolation = {
1989
+ typeUrl: "/google.rpc.FieldViolation",
1990
+ encode(message: BadRequest_FieldViolation, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1991
+ if (message.field !== "") {
1992
+ writer.uint32(10).string(message.field);
1993
+ }
1994
+ if (message.description !== "") {
1995
+ writer.uint32(18).string(message.description);
1996
+ }
1997
+ if (message.reason !== "") {
1998
+ writer.uint32(26).string(message.reason);
1999
+ }
2000
+ if (message.localizedMessage !== undefined) {
2001
+ LocalizedMessage.encode(message.localizedMessage, writer.uint32(34).fork()).ldelim();
2002
+ }
2003
+ return writer;
2004
+ },
2005
+ decode(input: BinaryReader | Uint8Array, length?: number): BadRequest_FieldViolation {
2006
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2007
+ let end = length === undefined ? reader.len : reader.pos + length;
2008
+ const message = createBaseBadRequest_FieldViolation();
2009
+ while (reader.pos < end) {
2010
+ const tag = reader.uint32();
2011
+ switch (tag >>> 3) {
2012
+ case 1:
2013
+ message.field = reader.string();
2014
+ break;
2015
+ case 2:
2016
+ message.description = reader.string();
2017
+ break;
2018
+ case 3:
2019
+ message.reason = reader.string();
2020
+ break;
2021
+ case 4:
2022
+ message.localizedMessage = LocalizedMessage.decode(reader, reader.uint32());
2023
+ break;
2024
+ default:
2025
+ reader.skipType(tag & 7);
2026
+ break;
2027
+ }
2028
+ }
2029
+ return message;
2030
+ },
2031
+ fromPartial(object: Partial<BadRequest_FieldViolation>): BadRequest_FieldViolation {
2032
+ const message = createBaseBadRequest_FieldViolation();
2033
+ message.field = object.field ?? "";
2034
+ message.description = object.description ?? "";
2035
+ message.reason = object.reason ?? "";
2036
+ message.localizedMessage = object.localizedMessage !== undefined && object.localizedMessage !== null ? LocalizedMessage.fromPartial(object.localizedMessage) : undefined;
2037
+ return message;
2038
+ },
2039
+ fromAmino(object: BadRequest_FieldViolationAmino): BadRequest_FieldViolation {
2040
+ const message = createBaseBadRequest_FieldViolation();
2041
+ if (object.field !== undefined && object.field !== null) {
2042
+ message.field = object.field;
2043
+ }
2044
+ if (object.description !== undefined && object.description !== null) {
2045
+ message.description = object.description;
2046
+ }
2047
+ if (object.reason !== undefined && object.reason !== null) {
2048
+ message.reason = object.reason;
2049
+ }
2050
+ if (object.localized_message !== undefined && object.localized_message !== null) {
2051
+ message.localizedMessage = LocalizedMessage.fromAmino(object.localized_message);
2052
+ }
2053
+ return message;
2054
+ },
2055
+ toAmino(message: BadRequest_FieldViolation): BadRequest_FieldViolationAmino {
2056
+ const obj: any = {};
2057
+ obj.field = message.field === "" ? undefined : message.field;
2058
+ obj.description = message.description === "" ? undefined : message.description;
2059
+ obj.reason = message.reason === "" ? undefined : message.reason;
2060
+ obj.localized_message = message.localizedMessage ? LocalizedMessage.toAmino(message.localizedMessage) : undefined;
2061
+ return obj;
2062
+ },
2063
+ fromAminoMsg(object: BadRequest_FieldViolationAminoMsg): BadRequest_FieldViolation {
2064
+ return BadRequest_FieldViolation.fromAmino(object.value);
2065
+ },
2066
+ fromProtoMsg(message: BadRequest_FieldViolationProtoMsg): BadRequest_FieldViolation {
2067
+ return BadRequest_FieldViolation.decode(message.value);
2068
+ },
2069
+ toProto(message: BadRequest_FieldViolation): Uint8Array {
2070
+ return BadRequest_FieldViolation.encode(message).finish();
2071
+ },
2072
+ toProtoMsg(message: BadRequest_FieldViolation): BadRequest_FieldViolationProtoMsg {
2073
+ return {
2074
+ typeUrl: "/google.rpc.FieldViolation",
2075
+ value: BadRequest_FieldViolation.encode(message).finish()
2076
+ };
2077
+ }
2078
+ };
2079
+ function createBaseRequestInfo(): RequestInfo {
2080
+ return {
2081
+ requestId: "",
2082
+ servingData: ""
2083
+ };
2084
+ }
2085
+ export const RequestInfo = {
2086
+ typeUrl: "/google.rpc.RequestInfo",
2087
+ encode(message: RequestInfo, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
2088
+ if (message.requestId !== "") {
2089
+ writer.uint32(10).string(message.requestId);
2090
+ }
2091
+ if (message.servingData !== "") {
2092
+ writer.uint32(18).string(message.servingData);
2093
+ }
2094
+ return writer;
2095
+ },
2096
+ decode(input: BinaryReader | Uint8Array, length?: number): RequestInfo {
2097
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2098
+ let end = length === undefined ? reader.len : reader.pos + length;
2099
+ const message = createBaseRequestInfo();
2100
+ while (reader.pos < end) {
2101
+ const tag = reader.uint32();
2102
+ switch (tag >>> 3) {
2103
+ case 1:
2104
+ message.requestId = reader.string();
2105
+ break;
2106
+ case 2:
2107
+ message.servingData = reader.string();
2108
+ break;
2109
+ default:
2110
+ reader.skipType(tag & 7);
2111
+ break;
2112
+ }
2113
+ }
2114
+ return message;
2115
+ },
2116
+ fromPartial(object: Partial<RequestInfo>): RequestInfo {
2117
+ const message = createBaseRequestInfo();
2118
+ message.requestId = object.requestId ?? "";
2119
+ message.servingData = object.servingData ?? "";
2120
+ return message;
2121
+ },
2122
+ fromAmino(object: RequestInfoAmino): RequestInfo {
2123
+ const message = createBaseRequestInfo();
2124
+ if (object.request_id !== undefined && object.request_id !== null) {
2125
+ message.requestId = object.request_id;
2126
+ }
2127
+ if (object.serving_data !== undefined && object.serving_data !== null) {
2128
+ message.servingData = object.serving_data;
2129
+ }
2130
+ return message;
2131
+ },
2132
+ toAmino(message: RequestInfo): RequestInfoAmino {
2133
+ const obj: any = {};
2134
+ obj.request_id = message.requestId === "" ? undefined : message.requestId;
2135
+ obj.serving_data = message.servingData === "" ? undefined : message.servingData;
2136
+ return obj;
2137
+ },
2138
+ fromAminoMsg(object: RequestInfoAminoMsg): RequestInfo {
2139
+ return RequestInfo.fromAmino(object.value);
2140
+ },
2141
+ fromProtoMsg(message: RequestInfoProtoMsg): RequestInfo {
2142
+ return RequestInfo.decode(message.value);
2143
+ },
2144
+ toProto(message: RequestInfo): Uint8Array {
2145
+ return RequestInfo.encode(message).finish();
2146
+ },
2147
+ toProtoMsg(message: RequestInfo): RequestInfoProtoMsg {
2148
+ return {
2149
+ typeUrl: "/google.rpc.RequestInfo",
2150
+ value: RequestInfo.encode(message).finish()
2151
+ };
2152
+ }
2153
+ };
2154
+ function createBaseResourceInfo(): ResourceInfo {
2155
+ return {
2156
+ resourceType: "",
2157
+ resourceName: "",
2158
+ owner: "",
2159
+ description: ""
2160
+ };
2161
+ }
2162
+ export const ResourceInfo = {
2163
+ typeUrl: "/google.rpc.ResourceInfo",
2164
+ encode(message: ResourceInfo, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
2165
+ if (message.resourceType !== "") {
2166
+ writer.uint32(10).string(message.resourceType);
2167
+ }
2168
+ if (message.resourceName !== "") {
2169
+ writer.uint32(18).string(message.resourceName);
2170
+ }
2171
+ if (message.owner !== "") {
2172
+ writer.uint32(26).string(message.owner);
2173
+ }
2174
+ if (message.description !== "") {
2175
+ writer.uint32(34).string(message.description);
2176
+ }
2177
+ return writer;
2178
+ },
2179
+ decode(input: BinaryReader | Uint8Array, length?: number): ResourceInfo {
2180
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2181
+ let end = length === undefined ? reader.len : reader.pos + length;
2182
+ const message = createBaseResourceInfo();
2183
+ while (reader.pos < end) {
2184
+ const tag = reader.uint32();
2185
+ switch (tag >>> 3) {
2186
+ case 1:
2187
+ message.resourceType = reader.string();
2188
+ break;
2189
+ case 2:
2190
+ message.resourceName = reader.string();
2191
+ break;
2192
+ case 3:
2193
+ message.owner = reader.string();
2194
+ break;
2195
+ case 4:
2196
+ message.description = reader.string();
2197
+ break;
2198
+ default:
2199
+ reader.skipType(tag & 7);
2200
+ break;
2201
+ }
2202
+ }
2203
+ return message;
2204
+ },
2205
+ fromPartial(object: Partial<ResourceInfo>): ResourceInfo {
2206
+ const message = createBaseResourceInfo();
2207
+ message.resourceType = object.resourceType ?? "";
2208
+ message.resourceName = object.resourceName ?? "";
2209
+ message.owner = object.owner ?? "";
2210
+ message.description = object.description ?? "";
2211
+ return message;
2212
+ },
2213
+ fromAmino(object: ResourceInfoAmino): ResourceInfo {
2214
+ const message = createBaseResourceInfo();
2215
+ if (object.resource_type !== undefined && object.resource_type !== null) {
2216
+ message.resourceType = object.resource_type;
2217
+ }
2218
+ if (object.resource_name !== undefined && object.resource_name !== null) {
2219
+ message.resourceName = object.resource_name;
2220
+ }
2221
+ if (object.owner !== undefined && object.owner !== null) {
2222
+ message.owner = object.owner;
2223
+ }
2224
+ if (object.description !== undefined && object.description !== null) {
2225
+ message.description = object.description;
2226
+ }
2227
+ return message;
2228
+ },
2229
+ toAmino(message: ResourceInfo): ResourceInfoAmino {
2230
+ const obj: any = {};
2231
+ obj.resource_type = message.resourceType === "" ? undefined : message.resourceType;
2232
+ obj.resource_name = message.resourceName === "" ? undefined : message.resourceName;
2233
+ obj.owner = message.owner === "" ? undefined : message.owner;
2234
+ obj.description = message.description === "" ? undefined : message.description;
2235
+ return obj;
2236
+ },
2237
+ fromAminoMsg(object: ResourceInfoAminoMsg): ResourceInfo {
2238
+ return ResourceInfo.fromAmino(object.value);
2239
+ },
2240
+ fromProtoMsg(message: ResourceInfoProtoMsg): ResourceInfo {
2241
+ return ResourceInfo.decode(message.value);
2242
+ },
2243
+ toProto(message: ResourceInfo): Uint8Array {
2244
+ return ResourceInfo.encode(message).finish();
2245
+ },
2246
+ toProtoMsg(message: ResourceInfo): ResourceInfoProtoMsg {
2247
+ return {
2248
+ typeUrl: "/google.rpc.ResourceInfo",
2249
+ value: ResourceInfo.encode(message).finish()
2250
+ };
2251
+ }
2252
+ };
2253
+ function createBaseHelp(): Help {
2254
+ return {
2255
+ links: []
2256
+ };
2257
+ }
2258
+ export const Help = {
2259
+ typeUrl: "/google.rpc.Help",
2260
+ encode(message: Help, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
2261
+ for (const v of message.links) {
2262
+ Help_Link.encode(v!, writer.uint32(10).fork()).ldelim();
2263
+ }
2264
+ return writer;
2265
+ },
2266
+ decode(input: BinaryReader | Uint8Array, length?: number): Help {
2267
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2268
+ let end = length === undefined ? reader.len : reader.pos + length;
2269
+ const message = createBaseHelp();
2270
+ while (reader.pos < end) {
2271
+ const tag = reader.uint32();
2272
+ switch (tag >>> 3) {
2273
+ case 1:
2274
+ message.links.push(Help_Link.decode(reader, reader.uint32()));
2275
+ break;
2276
+ default:
2277
+ reader.skipType(tag & 7);
2278
+ break;
2279
+ }
2280
+ }
2281
+ return message;
2282
+ },
2283
+ fromPartial(object: Partial<Help>): Help {
2284
+ const message = createBaseHelp();
2285
+ message.links = object.links?.map(e => Help_Link.fromPartial(e)) || [];
2286
+ return message;
2287
+ },
2288
+ fromAmino(object: HelpAmino): Help {
2289
+ const message = createBaseHelp();
2290
+ message.links = object.links?.map(e => Help_Link.fromAmino(e)) || [];
2291
+ return message;
2292
+ },
2293
+ toAmino(message: Help): HelpAmino {
2294
+ const obj: any = {};
2295
+ if (message.links) {
2296
+ obj.links = message.links.map(e => e ? Help_Link.toAmino(e) : undefined);
2297
+ } else {
2298
+ obj.links = message.links;
2299
+ }
2300
+ return obj;
2301
+ },
2302
+ fromAminoMsg(object: HelpAminoMsg): Help {
2303
+ return Help.fromAmino(object.value);
2304
+ },
2305
+ fromProtoMsg(message: HelpProtoMsg): Help {
2306
+ return Help.decode(message.value);
2307
+ },
2308
+ toProto(message: Help): Uint8Array {
2309
+ return Help.encode(message).finish();
2310
+ },
2311
+ toProtoMsg(message: Help): HelpProtoMsg {
2312
+ return {
2313
+ typeUrl: "/google.rpc.Help",
2314
+ value: Help.encode(message).finish()
2315
+ };
2316
+ }
2317
+ };
2318
+ function createBaseHelp_Link(): Help_Link {
2319
+ return {
2320
+ description: "",
2321
+ url: ""
2322
+ };
2323
+ }
2324
+ export const Help_Link = {
2325
+ typeUrl: "/google.rpc.Link",
2326
+ encode(message: Help_Link, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
2327
+ if (message.description !== "") {
2328
+ writer.uint32(10).string(message.description);
2329
+ }
2330
+ if (message.url !== "") {
2331
+ writer.uint32(18).string(message.url);
2332
+ }
2333
+ return writer;
2334
+ },
2335
+ decode(input: BinaryReader | Uint8Array, length?: number): Help_Link {
2336
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2337
+ let end = length === undefined ? reader.len : reader.pos + length;
2338
+ const message = createBaseHelp_Link();
2339
+ while (reader.pos < end) {
2340
+ const tag = reader.uint32();
2341
+ switch (tag >>> 3) {
2342
+ case 1:
2343
+ message.description = reader.string();
2344
+ break;
2345
+ case 2:
2346
+ message.url = reader.string();
2347
+ break;
2348
+ default:
2349
+ reader.skipType(tag & 7);
2350
+ break;
2351
+ }
2352
+ }
2353
+ return message;
2354
+ },
2355
+ fromPartial(object: Partial<Help_Link>): Help_Link {
2356
+ const message = createBaseHelp_Link();
2357
+ message.description = object.description ?? "";
2358
+ message.url = object.url ?? "";
2359
+ return message;
2360
+ },
2361
+ fromAmino(object: Help_LinkAmino): Help_Link {
2362
+ const message = createBaseHelp_Link();
2363
+ if (object.description !== undefined && object.description !== null) {
2364
+ message.description = object.description;
2365
+ }
2366
+ if (object.url !== undefined && object.url !== null) {
2367
+ message.url = object.url;
2368
+ }
2369
+ return message;
2370
+ },
2371
+ toAmino(message: Help_Link): Help_LinkAmino {
2372
+ const obj: any = {};
2373
+ obj.description = message.description === "" ? undefined : message.description;
2374
+ obj.url = message.url === "" ? undefined : message.url;
2375
+ return obj;
2376
+ },
2377
+ fromAminoMsg(object: Help_LinkAminoMsg): Help_Link {
2378
+ return Help_Link.fromAmino(object.value);
2379
+ },
2380
+ fromProtoMsg(message: Help_LinkProtoMsg): Help_Link {
2381
+ return Help_Link.decode(message.value);
2382
+ },
2383
+ toProto(message: Help_Link): Uint8Array {
2384
+ return Help_Link.encode(message).finish();
2385
+ },
2386
+ toProtoMsg(message: Help_Link): Help_LinkProtoMsg {
2387
+ return {
2388
+ typeUrl: "/google.rpc.Link",
2389
+ value: Help_Link.encode(message).finish()
2390
+ };
2391
+ }
2392
+ };
2393
+ function createBaseLocalizedMessage(): LocalizedMessage {
2394
+ return {
2395
+ locale: "",
2396
+ message: ""
2397
+ };
2398
+ }
2399
+ export const LocalizedMessage = {
2400
+ typeUrl: "/google.rpc.LocalizedMessage",
2401
+ encode(message: LocalizedMessage, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
2402
+ if (message.locale !== "") {
2403
+ writer.uint32(10).string(message.locale);
2404
+ }
2405
+ if (message.message !== "") {
2406
+ writer.uint32(18).string(message.message);
2407
+ }
2408
+ return writer;
2409
+ },
2410
+ decode(input: BinaryReader | Uint8Array, length?: number): LocalizedMessage {
2411
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2412
+ let end = length === undefined ? reader.len : reader.pos + length;
2413
+ const message = createBaseLocalizedMessage();
2414
+ while (reader.pos < end) {
2415
+ const tag = reader.uint32();
2416
+ switch (tag >>> 3) {
2417
+ case 1:
2418
+ message.locale = reader.string();
2419
+ break;
2420
+ case 2:
2421
+ message.message = reader.string();
2422
+ break;
2423
+ default:
2424
+ reader.skipType(tag & 7);
2425
+ break;
2426
+ }
2427
+ }
2428
+ return message;
2429
+ },
2430
+ fromPartial(object: Partial<LocalizedMessage>): LocalizedMessage {
2431
+ const message = createBaseLocalizedMessage();
2432
+ message.locale = object.locale ?? "";
2433
+ message.message = object.message ?? "";
2434
+ return message;
2435
+ },
2436
+ fromAmino(object: LocalizedMessageAmino): LocalizedMessage {
2437
+ const message = createBaseLocalizedMessage();
2438
+ if (object.locale !== undefined && object.locale !== null) {
2439
+ message.locale = object.locale;
2440
+ }
2441
+ if (object.message !== undefined && object.message !== null) {
2442
+ message.message = object.message;
2443
+ }
2444
+ return message;
2445
+ },
2446
+ toAmino(message: LocalizedMessage): LocalizedMessageAmino {
2447
+ const obj: any = {};
2448
+ obj.locale = message.locale === "" ? undefined : message.locale;
2449
+ obj.message = message.message === "" ? undefined : message.message;
2450
+ return obj;
2451
+ },
2452
+ fromAminoMsg(object: LocalizedMessageAminoMsg): LocalizedMessage {
2453
+ return LocalizedMessage.fromAmino(object.value);
2454
+ },
2455
+ fromProtoMsg(message: LocalizedMessageProtoMsg): LocalizedMessage {
2456
+ return LocalizedMessage.decode(message.value);
2457
+ },
2458
+ toProto(message: LocalizedMessage): Uint8Array {
2459
+ return LocalizedMessage.encode(message).finish();
2460
+ },
2461
+ toProtoMsg(message: LocalizedMessage): LocalizedMessageProtoMsg {
2462
+ return {
2463
+ typeUrl: "/google.rpc.LocalizedMessage",
2464
+ value: LocalizedMessage.encode(message).finish()
2465
+ };
2466
+ }
2467
+ };