@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,2517 @@
1
+ //@ts-nocheck
2
+ import { Struct, StructAmino, StructSDKType } from "../../protobuf/struct";
3
+ import { Timestamp } from "../../protobuf/timestamp";
4
+ import { Duration, DurationAmino, DurationSDKType } from "../../protobuf/duration";
5
+ import { Any, AnyAmino, AnySDKType } from "../../protobuf/any";
6
+ import { BinaryReader, BinaryWriter } from "../../../binary";
7
+ import { toTimestamp, fromTimestamp } from "../../../helpers";
8
+ /**
9
+ * This message defines the standard attribute vocabulary for Google APIs.
10
+ *
11
+ * An attribute is a piece of metadata that describes an activity on a network
12
+ * service. For example, the size of an HTTP request, or the status code of
13
+ * an HTTP response.
14
+ *
15
+ * Each attribute has a type and a name, which is logically defined as
16
+ * a proto message field in `AttributeContext`. The field type becomes the
17
+ * attribute type, and the field path becomes the attribute name. For example,
18
+ * the attribute `source.ip` maps to field `AttributeContext.source.ip`.
19
+ *
20
+ * This message definition is guaranteed not to have any wire breaking change.
21
+ * So you can use it directly for passing attributes across different systems.
22
+ *
23
+ * NOTE: Different system may generate different subset of attributes. Please
24
+ * verify the system specification before relying on an attribute generated
25
+ * a system.
26
+ */
27
+ export interface AttributeContext {
28
+ /**
29
+ * The origin of a network activity. In a multi hop network activity,
30
+ * the origin represents the sender of the first hop. For the first hop,
31
+ * the `source` and the `origin` must have the same content.
32
+ */
33
+ origin?: AttributeContext_Peer;
34
+ /**
35
+ * The source of a network activity, such as starting a TCP connection.
36
+ * In a multi hop network activity, the source represents the sender of the
37
+ * last hop.
38
+ */
39
+ source?: AttributeContext_Peer;
40
+ /**
41
+ * The destination of a network activity, such as accepting a TCP connection.
42
+ * In a multi hop network activity, the destination represents the receiver of
43
+ * the last hop.
44
+ */
45
+ destination?: AttributeContext_Peer;
46
+ /** Represents a network request, such as an HTTP request. */
47
+ request?: AttributeContext_Request;
48
+ /** Represents a network response, such as an HTTP response. */
49
+ response?: AttributeContext_Response;
50
+ /**
51
+ * Represents a target resource that is involved with a network activity.
52
+ * If multiple resources are involved with an activity, this must be the
53
+ * primary one.
54
+ */
55
+ resource?: AttributeContext_Resource;
56
+ /** Represents an API operation that is involved to a network activity. */
57
+ api?: AttributeContext_Api;
58
+ /** Supports extensions for advanced use cases, such as logs and metrics. */
59
+ extensions: Any[];
60
+ }
61
+ export interface AttributeContextProtoMsg {
62
+ typeUrl: "/google.rpc.context.AttributeContext";
63
+ value: Uint8Array;
64
+ }
65
+ /**
66
+ * This message defines the standard attribute vocabulary for Google APIs.
67
+ *
68
+ * An attribute is a piece of metadata that describes an activity on a network
69
+ * service. For example, the size of an HTTP request, or the status code of
70
+ * an HTTP response.
71
+ *
72
+ * Each attribute has a type and a name, which is logically defined as
73
+ * a proto message field in `AttributeContext`. The field type becomes the
74
+ * attribute type, and the field path becomes the attribute name. For example,
75
+ * the attribute `source.ip` maps to field `AttributeContext.source.ip`.
76
+ *
77
+ * This message definition is guaranteed not to have any wire breaking change.
78
+ * So you can use it directly for passing attributes across different systems.
79
+ *
80
+ * NOTE: Different system may generate different subset of attributes. Please
81
+ * verify the system specification before relying on an attribute generated
82
+ * a system.
83
+ * @name AttributeContextAmino
84
+ * @package google.rpc.context
85
+ * @see proto type: google.rpc.context.AttributeContext
86
+ */
87
+ export interface AttributeContextAmino {
88
+ /**
89
+ * The origin of a network activity. In a multi hop network activity,
90
+ * the origin represents the sender of the first hop. For the first hop,
91
+ * the `source` and the `origin` must have the same content.
92
+ */
93
+ origin?: AttributeContext_PeerAmino;
94
+ /**
95
+ * The source of a network activity, such as starting a TCP connection.
96
+ * In a multi hop network activity, the source represents the sender of the
97
+ * last hop.
98
+ */
99
+ source?: AttributeContext_PeerAmino;
100
+ /**
101
+ * The destination of a network activity, such as accepting a TCP connection.
102
+ * In a multi hop network activity, the destination represents the receiver of
103
+ * the last hop.
104
+ */
105
+ destination?: AttributeContext_PeerAmino;
106
+ /**
107
+ * Represents a network request, such as an HTTP request.
108
+ */
109
+ request?: AttributeContext_RequestAmino;
110
+ /**
111
+ * Represents a network response, such as an HTTP response.
112
+ */
113
+ response?: AttributeContext_ResponseAmino;
114
+ /**
115
+ * Represents a target resource that is involved with a network activity.
116
+ * If multiple resources are involved with an activity, this must be the
117
+ * primary one.
118
+ */
119
+ resource?: AttributeContext_ResourceAmino;
120
+ /**
121
+ * Represents an API operation that is involved to a network activity.
122
+ */
123
+ api?: AttributeContext_ApiAmino;
124
+ /**
125
+ * Supports extensions for advanced use cases, such as logs and metrics.
126
+ */
127
+ extensions?: AnyAmino[];
128
+ }
129
+ export interface AttributeContextAminoMsg {
130
+ type: "/google.rpc.context.AttributeContext";
131
+ value: AttributeContextAmino;
132
+ }
133
+ /**
134
+ * This message defines the standard attribute vocabulary for Google APIs.
135
+ *
136
+ * An attribute is a piece of metadata that describes an activity on a network
137
+ * service. For example, the size of an HTTP request, or the status code of
138
+ * an HTTP response.
139
+ *
140
+ * Each attribute has a type and a name, which is logically defined as
141
+ * a proto message field in `AttributeContext`. The field type becomes the
142
+ * attribute type, and the field path becomes the attribute name. For example,
143
+ * the attribute `source.ip` maps to field `AttributeContext.source.ip`.
144
+ *
145
+ * This message definition is guaranteed not to have any wire breaking change.
146
+ * So you can use it directly for passing attributes across different systems.
147
+ *
148
+ * NOTE: Different system may generate different subset of attributes. Please
149
+ * verify the system specification before relying on an attribute generated
150
+ * a system.
151
+ */
152
+ export interface AttributeContextSDKType {
153
+ origin?: AttributeContext_PeerSDKType;
154
+ source?: AttributeContext_PeerSDKType;
155
+ destination?: AttributeContext_PeerSDKType;
156
+ request?: AttributeContext_RequestSDKType;
157
+ response?: AttributeContext_ResponseSDKType;
158
+ resource?: AttributeContext_ResourceSDKType;
159
+ api?: AttributeContext_ApiSDKType;
160
+ extensions: AnySDKType[];
161
+ }
162
+ export interface AttributeContext_Peer_LabelsEntry {
163
+ key: string;
164
+ value: string;
165
+ }
166
+ export interface AttributeContext_Peer_LabelsEntryProtoMsg {
167
+ typeUrl: string;
168
+ value: Uint8Array;
169
+ }
170
+ /**
171
+ * @name AttributeContext_Peer_LabelsEntryAmino
172
+ * @package google.rpc.context
173
+ * @see proto type: google.rpc.context.AttributeContext_Peer_LabelsEntry
174
+ */
175
+ export interface AttributeContext_Peer_LabelsEntryAmino {
176
+ key?: string;
177
+ value?: string;
178
+ }
179
+ export interface AttributeContext_Peer_LabelsEntryAminoMsg {
180
+ type: string;
181
+ value: AttributeContext_Peer_LabelsEntryAmino;
182
+ }
183
+ export interface AttributeContext_Peer_LabelsEntrySDKType {
184
+ key: string;
185
+ value: string;
186
+ }
187
+ /**
188
+ * This message defines attributes for a node that handles a network request.
189
+ * The node can be either a service or an application that sends, forwards,
190
+ * or receives the request. Service peers should fill in
191
+ * `principal` and `labels` as appropriate.
192
+ */
193
+ export interface AttributeContext_Peer {
194
+ /** The IP address of the peer. */
195
+ ip: string;
196
+ /** The network port of the peer. */
197
+ port: bigint;
198
+ /** The labels associated with the peer. */
199
+ labels: {
200
+ [key: string]: string;
201
+ };
202
+ /**
203
+ * The identity of this peer. Similar to `Request.auth.principal`, but
204
+ * relative to the peer instead of the request. For example, the
205
+ * identity associated with a load balancer that forwarded the request.
206
+ */
207
+ principal: string;
208
+ /**
209
+ * The CLDR country/region code associated with the above IP address.
210
+ * If the IP address is private, the `region_code` should reflect the
211
+ * physical location where this peer is running.
212
+ */
213
+ regionCode: string;
214
+ }
215
+ export interface AttributeContext_PeerProtoMsg {
216
+ typeUrl: "/google.rpc.context.Peer";
217
+ value: Uint8Array;
218
+ }
219
+ /**
220
+ * This message defines attributes for a node that handles a network request.
221
+ * The node can be either a service or an application that sends, forwards,
222
+ * or receives the request. Service peers should fill in
223
+ * `principal` and `labels` as appropriate.
224
+ * @name AttributeContext_PeerAmino
225
+ * @package google.rpc.context
226
+ * @see proto type: google.rpc.context.AttributeContext_Peer
227
+ */
228
+ export interface AttributeContext_PeerAmino {
229
+ /**
230
+ * The IP address of the peer.
231
+ */
232
+ ip?: string;
233
+ /**
234
+ * The network port of the peer.
235
+ */
236
+ port?: string;
237
+ /**
238
+ * The labels associated with the peer.
239
+ */
240
+ labels?: {
241
+ [key: string]: string;
242
+ };
243
+ /**
244
+ * The identity of this peer. Similar to `Request.auth.principal`, but
245
+ * relative to the peer instead of the request. For example, the
246
+ * identity associated with a load balancer that forwarded the request.
247
+ */
248
+ principal?: string;
249
+ /**
250
+ * The CLDR country/region code associated with the above IP address.
251
+ * If the IP address is private, the `region_code` should reflect the
252
+ * physical location where this peer is running.
253
+ */
254
+ region_code?: string;
255
+ }
256
+ export interface AttributeContext_PeerAminoMsg {
257
+ type: "/google.rpc.context.Peer";
258
+ value: AttributeContext_PeerAmino;
259
+ }
260
+ /**
261
+ * This message defines attributes for a node that handles a network request.
262
+ * The node can be either a service or an application that sends, forwards,
263
+ * or receives the request. Service peers should fill in
264
+ * `principal` and `labels` as appropriate.
265
+ */
266
+ export interface AttributeContext_PeerSDKType {
267
+ ip: string;
268
+ port: bigint;
269
+ labels: {
270
+ [key: string]: string;
271
+ };
272
+ principal: string;
273
+ region_code: string;
274
+ }
275
+ /**
276
+ * This message defines attributes associated with API operations, such as
277
+ * a network API request. The terminology is based on the conventions used
278
+ * by Google APIs, Istio, and OpenAPI.
279
+ */
280
+ export interface AttributeContext_Api {
281
+ /**
282
+ * The API service name. It is a logical identifier for a networked API,
283
+ * such as "pubsub.googleapis.com". The naming syntax depends on the
284
+ * API management system being used for handling the request.
285
+ */
286
+ service: string;
287
+ /**
288
+ * The API operation name. For gRPC requests, it is the fully qualified API
289
+ * method name, such as "google.pubsub.v1.Publisher.Publish". For OpenAPI
290
+ * requests, it is the `operationId`, such as "getPet".
291
+ */
292
+ operation: string;
293
+ /**
294
+ * The API protocol used for sending the request, such as "http", "https",
295
+ * "grpc", or "internal".
296
+ */
297
+ protocol: string;
298
+ /**
299
+ * The API version associated with the API operation above, such as "v1" or
300
+ * "v1alpha1".
301
+ */
302
+ version: string;
303
+ }
304
+ export interface AttributeContext_ApiProtoMsg {
305
+ typeUrl: "/google.rpc.context.Api";
306
+ value: Uint8Array;
307
+ }
308
+ /**
309
+ * This message defines attributes associated with API operations, such as
310
+ * a network API request. The terminology is based on the conventions used
311
+ * by Google APIs, Istio, and OpenAPI.
312
+ * @name AttributeContext_ApiAmino
313
+ * @package google.rpc.context
314
+ * @see proto type: google.rpc.context.AttributeContext_Api
315
+ */
316
+ export interface AttributeContext_ApiAmino {
317
+ /**
318
+ * The API service name. It is a logical identifier for a networked API,
319
+ * such as "pubsub.googleapis.com". The naming syntax depends on the
320
+ * API management system being used for handling the request.
321
+ */
322
+ service?: string;
323
+ /**
324
+ * The API operation name. For gRPC requests, it is the fully qualified API
325
+ * method name, such as "google.pubsub.v1.Publisher.Publish". For OpenAPI
326
+ * requests, it is the `operationId`, such as "getPet".
327
+ */
328
+ operation?: string;
329
+ /**
330
+ * The API protocol used for sending the request, such as "http", "https",
331
+ * "grpc", or "internal".
332
+ */
333
+ protocol?: string;
334
+ /**
335
+ * The API version associated with the API operation above, such as "v1" or
336
+ * "v1alpha1".
337
+ */
338
+ version?: string;
339
+ }
340
+ export interface AttributeContext_ApiAminoMsg {
341
+ type: "/google.rpc.context.Api";
342
+ value: AttributeContext_ApiAmino;
343
+ }
344
+ /**
345
+ * This message defines attributes associated with API operations, such as
346
+ * a network API request. The terminology is based on the conventions used
347
+ * by Google APIs, Istio, and OpenAPI.
348
+ */
349
+ export interface AttributeContext_ApiSDKType {
350
+ service: string;
351
+ operation: string;
352
+ protocol: string;
353
+ version: string;
354
+ }
355
+ /**
356
+ * This message defines request authentication attributes. Terminology is
357
+ * based on the JSON Web Token (JWT) standard, but the terms also
358
+ * correlate to concepts in other standards.
359
+ */
360
+ export interface AttributeContext_Auth {
361
+ /**
362
+ * The authenticated principal. Reflects the issuer (`iss`) and subject
363
+ * (`sub`) claims within a JWT. The issuer and subject should be `/`
364
+ * delimited, with `/` percent-encoded within the subject fragment. For
365
+ * Google accounts, the principal format is:
366
+ * "https://accounts.google.com/{id}"
367
+ */
368
+ principal: string;
369
+ /**
370
+ * The intended audience(s) for this authentication information. Reflects
371
+ * the audience (`aud`) claim within a JWT. The audience
372
+ * value(s) depends on the `issuer`, but typically include one or more of
373
+ * the following pieces of information:
374
+ *
375
+ * * The services intended to receive the credential. For example,
376
+ * ["https://pubsub.googleapis.com/", "https://storage.googleapis.com/"].
377
+ * * A set of service-based scopes. For example,
378
+ * ["https://www.googleapis.com/auth/cloud-platform"].
379
+ * * The client id of an app, such as the Firebase project id for JWTs
380
+ * from Firebase Auth.
381
+ *
382
+ * Consult the documentation for the credential issuer to determine the
383
+ * information provided.
384
+ */
385
+ audiences: string[];
386
+ /**
387
+ * The authorized presenter of the credential. Reflects the optional
388
+ * Authorized Presenter (`azp`) claim within a JWT or the
389
+ * OAuth client id. For example, a Google Cloud Platform client id looks
390
+ * as follows: "123456789012.apps.googleusercontent.com".
391
+ */
392
+ presenter: string;
393
+ /**
394
+ * Structured claims presented with the credential. JWTs include
395
+ * `{key: value}` pairs for standard and private claims. The following
396
+ * is a subset of the standard required and optional claims that would
397
+ * typically be presented for a Google-based JWT:
398
+ *
399
+ * {'iss': 'accounts.google.com',
400
+ * 'sub': '113289723416554971153',
401
+ * 'aud': ['123456789012', 'pubsub.googleapis.com'],
402
+ * 'azp': '123456789012.apps.googleusercontent.com',
403
+ * 'email': 'jsmith@example.com',
404
+ * 'iat': 1353601026,
405
+ * 'exp': 1353604926}
406
+ *
407
+ * SAML assertions are similarly specified, but with an identity provider
408
+ * dependent structure.
409
+ */
410
+ claims?: Struct;
411
+ /**
412
+ * A list of access level resource names that allow resources to be
413
+ * accessed by authenticated requester. It is part of Secure GCP processing
414
+ * for the incoming request. An access level string has the format:
415
+ * "//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}"
416
+ *
417
+ * Example:
418
+ * "//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL"
419
+ */
420
+ accessLevels: string[];
421
+ }
422
+ export interface AttributeContext_AuthProtoMsg {
423
+ typeUrl: "/google.rpc.context.Auth";
424
+ value: Uint8Array;
425
+ }
426
+ /**
427
+ * This message defines request authentication attributes. Terminology is
428
+ * based on the JSON Web Token (JWT) standard, but the terms also
429
+ * correlate to concepts in other standards.
430
+ * @name AttributeContext_AuthAmino
431
+ * @package google.rpc.context
432
+ * @see proto type: google.rpc.context.AttributeContext_Auth
433
+ */
434
+ export interface AttributeContext_AuthAmino {
435
+ /**
436
+ * The authenticated principal. Reflects the issuer (`iss`) and subject
437
+ * (`sub`) claims within a JWT. The issuer and subject should be `/`
438
+ * delimited, with `/` percent-encoded within the subject fragment. For
439
+ * Google accounts, the principal format is:
440
+ * "https://accounts.google.com/{id}"
441
+ */
442
+ principal?: string;
443
+ /**
444
+ * The intended audience(s) for this authentication information. Reflects
445
+ * the audience (`aud`) claim within a JWT. The audience
446
+ * value(s) depends on the `issuer`, but typically include one or more of
447
+ * the following pieces of information:
448
+ *
449
+ * * The services intended to receive the credential. For example,
450
+ * ["https://pubsub.googleapis.com/", "https://storage.googleapis.com/"].
451
+ * * A set of service-based scopes. For example,
452
+ * ["https://www.googleapis.com/auth/cloud-platform"].
453
+ * * The client id of an app, such as the Firebase project id for JWTs
454
+ * from Firebase Auth.
455
+ *
456
+ * Consult the documentation for the credential issuer to determine the
457
+ * information provided.
458
+ */
459
+ audiences?: string[];
460
+ /**
461
+ * The authorized presenter of the credential. Reflects the optional
462
+ * Authorized Presenter (`azp`) claim within a JWT or the
463
+ * OAuth client id. For example, a Google Cloud Platform client id looks
464
+ * as follows: "123456789012.apps.googleusercontent.com".
465
+ */
466
+ presenter?: string;
467
+ /**
468
+ * Structured claims presented with the credential. JWTs include
469
+ * `{key: value}` pairs for standard and private claims. The following
470
+ * is a subset of the standard required and optional claims that would
471
+ * typically be presented for a Google-based JWT:
472
+ *
473
+ * {'iss': 'accounts.google.com',
474
+ * 'sub': '113289723416554971153',
475
+ * 'aud': ['123456789012', 'pubsub.googleapis.com'],
476
+ * 'azp': '123456789012.apps.googleusercontent.com',
477
+ * 'email': 'jsmith@example.com',
478
+ * 'iat': 1353601026,
479
+ * 'exp': 1353604926}
480
+ *
481
+ * SAML assertions are similarly specified, but with an identity provider
482
+ * dependent structure.
483
+ */
484
+ claims?: StructAmino;
485
+ /**
486
+ * A list of access level resource names that allow resources to be
487
+ * accessed by authenticated requester. It is part of Secure GCP processing
488
+ * for the incoming request. An access level string has the format:
489
+ * "//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}"
490
+ *
491
+ * Example:
492
+ * "//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL"
493
+ */
494
+ access_levels?: string[];
495
+ }
496
+ export interface AttributeContext_AuthAminoMsg {
497
+ type: "/google.rpc.context.Auth";
498
+ value: AttributeContext_AuthAmino;
499
+ }
500
+ /**
501
+ * This message defines request authentication attributes. Terminology is
502
+ * based on the JSON Web Token (JWT) standard, but the terms also
503
+ * correlate to concepts in other standards.
504
+ */
505
+ export interface AttributeContext_AuthSDKType {
506
+ principal: string;
507
+ audiences: string[];
508
+ presenter: string;
509
+ claims?: StructSDKType;
510
+ access_levels: string[];
511
+ }
512
+ export interface AttributeContext_Request_HeadersEntry {
513
+ key: string;
514
+ value: string;
515
+ }
516
+ export interface AttributeContext_Request_HeadersEntryProtoMsg {
517
+ typeUrl: string;
518
+ value: Uint8Array;
519
+ }
520
+ /**
521
+ * @name AttributeContext_Request_HeadersEntryAmino
522
+ * @package google.rpc.context
523
+ * @see proto type: google.rpc.context.AttributeContext_Request_HeadersEntry
524
+ */
525
+ export interface AttributeContext_Request_HeadersEntryAmino {
526
+ key?: string;
527
+ value?: string;
528
+ }
529
+ export interface AttributeContext_Request_HeadersEntryAminoMsg {
530
+ type: string;
531
+ value: AttributeContext_Request_HeadersEntryAmino;
532
+ }
533
+ export interface AttributeContext_Request_HeadersEntrySDKType {
534
+ key: string;
535
+ value: string;
536
+ }
537
+ /**
538
+ * This message defines attributes for an HTTP request. If the actual
539
+ * request is not an HTTP request, the runtime system should try to map
540
+ * the actual request to an equivalent HTTP request.
541
+ */
542
+ export interface AttributeContext_Request {
543
+ /**
544
+ * The unique ID for a request, which can be propagated to downstream
545
+ * systems. The ID should have low probability of collision
546
+ * within a single day for a specific service.
547
+ */
548
+ id: string;
549
+ /** The HTTP request method, such as `GET`, `POST`. */
550
+ method: string;
551
+ /**
552
+ * The HTTP request headers. If multiple headers share the same key, they
553
+ * must be merged according to the HTTP spec. All header keys must be
554
+ * lowercased, because HTTP header keys are case-insensitive.
555
+ */
556
+ headers: {
557
+ [key: string]: string;
558
+ };
559
+ /** The HTTP URL path, excluding the query parameters. */
560
+ path: string;
561
+ /** The HTTP request `Host` header value. */
562
+ host: string;
563
+ /** The HTTP URL scheme, such as `http` and `https`. */
564
+ scheme: string;
565
+ /**
566
+ * The HTTP URL query in the format of `name1=value1&name2=value2`, as it
567
+ * appears in the first line of the HTTP request. No decoding is performed.
568
+ */
569
+ query: string;
570
+ /**
571
+ * The timestamp when the `destination` service receives the last byte of
572
+ * the request.
573
+ */
574
+ time?: Date;
575
+ /** The HTTP request size in bytes. If unknown, it must be -1. */
576
+ size: bigint;
577
+ /**
578
+ * The network protocol used with the request, such as "http/1.1",
579
+ * "spdy/3", "h2", "h2c", "webrtc", "tcp", "udp", "quic". See
580
+ * https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids
581
+ * for details.
582
+ */
583
+ protocol: string;
584
+ /**
585
+ * A special parameter for request reason. It is used by security systems
586
+ * to associate auditing information with a request.
587
+ */
588
+ reason: string;
589
+ /**
590
+ * The request authentication. May be absent for unauthenticated requests.
591
+ * Derived from the HTTP request `Authorization` header or equivalent.
592
+ */
593
+ auth?: AttributeContext_Auth;
594
+ }
595
+ export interface AttributeContext_RequestProtoMsg {
596
+ typeUrl: "/google.rpc.context.Request";
597
+ value: Uint8Array;
598
+ }
599
+ /**
600
+ * This message defines attributes for an HTTP request. If the actual
601
+ * request is not an HTTP request, the runtime system should try to map
602
+ * the actual request to an equivalent HTTP request.
603
+ * @name AttributeContext_RequestAmino
604
+ * @package google.rpc.context
605
+ * @see proto type: google.rpc.context.AttributeContext_Request
606
+ */
607
+ export interface AttributeContext_RequestAmino {
608
+ /**
609
+ * The unique ID for a request, which can be propagated to downstream
610
+ * systems. The ID should have low probability of collision
611
+ * within a single day for a specific service.
612
+ */
613
+ id?: string;
614
+ /**
615
+ * The HTTP request method, such as `GET`, `POST`.
616
+ */
617
+ method?: string;
618
+ /**
619
+ * The HTTP request headers. If multiple headers share the same key, they
620
+ * must be merged according to the HTTP spec. All header keys must be
621
+ * lowercased, because HTTP header keys are case-insensitive.
622
+ */
623
+ headers?: {
624
+ [key: string]: string;
625
+ };
626
+ /**
627
+ * The HTTP URL path, excluding the query parameters.
628
+ */
629
+ path?: string;
630
+ /**
631
+ * The HTTP request `Host` header value.
632
+ */
633
+ host?: string;
634
+ /**
635
+ * The HTTP URL scheme, such as `http` and `https`.
636
+ */
637
+ scheme?: string;
638
+ /**
639
+ * The HTTP URL query in the format of `name1=value1&name2=value2`, as it
640
+ * appears in the first line of the HTTP request. No decoding is performed.
641
+ */
642
+ query?: string;
643
+ /**
644
+ * The timestamp when the `destination` service receives the last byte of
645
+ * the request.
646
+ */
647
+ time?: string;
648
+ /**
649
+ * The HTTP request size in bytes. If unknown, it must be -1.
650
+ */
651
+ size?: string;
652
+ /**
653
+ * The network protocol used with the request, such as "http/1.1",
654
+ * "spdy/3", "h2", "h2c", "webrtc", "tcp", "udp", "quic". See
655
+ * https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids
656
+ * for details.
657
+ */
658
+ protocol?: string;
659
+ /**
660
+ * A special parameter for request reason. It is used by security systems
661
+ * to associate auditing information with a request.
662
+ */
663
+ reason?: string;
664
+ /**
665
+ * The request authentication. May be absent for unauthenticated requests.
666
+ * Derived from the HTTP request `Authorization` header or equivalent.
667
+ */
668
+ auth?: AttributeContext_AuthAmino;
669
+ }
670
+ export interface AttributeContext_RequestAminoMsg {
671
+ type: "/google.rpc.context.Request";
672
+ value: AttributeContext_RequestAmino;
673
+ }
674
+ /**
675
+ * This message defines attributes for an HTTP request. If the actual
676
+ * request is not an HTTP request, the runtime system should try to map
677
+ * the actual request to an equivalent HTTP request.
678
+ */
679
+ export interface AttributeContext_RequestSDKType {
680
+ id: string;
681
+ method: string;
682
+ headers: {
683
+ [key: string]: string;
684
+ };
685
+ path: string;
686
+ host: string;
687
+ scheme: string;
688
+ query: string;
689
+ time?: Date;
690
+ size: bigint;
691
+ protocol: string;
692
+ reason: string;
693
+ auth?: AttributeContext_AuthSDKType;
694
+ }
695
+ export interface AttributeContext_Response_HeadersEntry {
696
+ key: string;
697
+ value: string;
698
+ }
699
+ export interface AttributeContext_Response_HeadersEntryProtoMsg {
700
+ typeUrl: string;
701
+ value: Uint8Array;
702
+ }
703
+ /**
704
+ * @name AttributeContext_Response_HeadersEntryAmino
705
+ * @package google.rpc.context
706
+ * @see proto type: google.rpc.context.AttributeContext_Response_HeadersEntry
707
+ */
708
+ export interface AttributeContext_Response_HeadersEntryAmino {
709
+ key?: string;
710
+ value?: string;
711
+ }
712
+ export interface AttributeContext_Response_HeadersEntryAminoMsg {
713
+ type: string;
714
+ value: AttributeContext_Response_HeadersEntryAmino;
715
+ }
716
+ export interface AttributeContext_Response_HeadersEntrySDKType {
717
+ key: string;
718
+ value: string;
719
+ }
720
+ /**
721
+ * This message defines attributes for a typical network response. It
722
+ * generally models semantics of an HTTP response.
723
+ */
724
+ export interface AttributeContext_Response {
725
+ /** The HTTP response status code, such as `200` and `404`. */
726
+ code: bigint;
727
+ /** The HTTP response size in bytes. If unknown, it must be -1. */
728
+ size: bigint;
729
+ /**
730
+ * The HTTP response headers. If multiple headers share the same key, they
731
+ * must be merged according to HTTP spec. All header keys must be
732
+ * lowercased, because HTTP header keys are case-insensitive.
733
+ */
734
+ headers: {
735
+ [key: string]: string;
736
+ };
737
+ /**
738
+ * The timestamp when the `destination` service sends the last byte of
739
+ * the response.
740
+ */
741
+ time?: Date;
742
+ /**
743
+ * The amount of time it takes the backend service to fully respond to a
744
+ * request. Measured from when the destination service starts to send the
745
+ * request to the backend until when the destination service receives the
746
+ * complete response from the backend.
747
+ */
748
+ backendLatency?: Duration;
749
+ }
750
+ export interface AttributeContext_ResponseProtoMsg {
751
+ typeUrl: "/google.rpc.context.Response";
752
+ value: Uint8Array;
753
+ }
754
+ /**
755
+ * This message defines attributes for a typical network response. It
756
+ * generally models semantics of an HTTP response.
757
+ * @name AttributeContext_ResponseAmino
758
+ * @package google.rpc.context
759
+ * @see proto type: google.rpc.context.AttributeContext_Response
760
+ */
761
+ export interface AttributeContext_ResponseAmino {
762
+ /**
763
+ * The HTTP response status code, such as `200` and `404`.
764
+ */
765
+ code?: string;
766
+ /**
767
+ * The HTTP response size in bytes. If unknown, it must be -1.
768
+ */
769
+ size?: string;
770
+ /**
771
+ * The HTTP response headers. If multiple headers share the same key, they
772
+ * must be merged according to HTTP spec. All header keys must be
773
+ * lowercased, because HTTP header keys are case-insensitive.
774
+ */
775
+ headers?: {
776
+ [key: string]: string;
777
+ };
778
+ /**
779
+ * The timestamp when the `destination` service sends the last byte of
780
+ * the response.
781
+ */
782
+ time?: string;
783
+ /**
784
+ * The amount of time it takes the backend service to fully respond to a
785
+ * request. Measured from when the destination service starts to send the
786
+ * request to the backend until when the destination service receives the
787
+ * complete response from the backend.
788
+ */
789
+ backend_latency?: DurationAmino;
790
+ }
791
+ export interface AttributeContext_ResponseAminoMsg {
792
+ type: "/google.rpc.context.Response";
793
+ value: AttributeContext_ResponseAmino;
794
+ }
795
+ /**
796
+ * This message defines attributes for a typical network response. It
797
+ * generally models semantics of an HTTP response.
798
+ */
799
+ export interface AttributeContext_ResponseSDKType {
800
+ code: bigint;
801
+ size: bigint;
802
+ headers: {
803
+ [key: string]: string;
804
+ };
805
+ time?: Date;
806
+ backend_latency?: DurationSDKType;
807
+ }
808
+ export interface AttributeContext_Resource_LabelsEntry {
809
+ key: string;
810
+ value: string;
811
+ }
812
+ export interface AttributeContext_Resource_LabelsEntryProtoMsg {
813
+ typeUrl: string;
814
+ value: Uint8Array;
815
+ }
816
+ /**
817
+ * @name AttributeContext_Resource_LabelsEntryAmino
818
+ * @package google.rpc.context
819
+ * @see proto type: google.rpc.context.AttributeContext_Resource_LabelsEntry
820
+ */
821
+ export interface AttributeContext_Resource_LabelsEntryAmino {
822
+ key?: string;
823
+ value?: string;
824
+ }
825
+ export interface AttributeContext_Resource_LabelsEntryAminoMsg {
826
+ type: string;
827
+ value: AttributeContext_Resource_LabelsEntryAmino;
828
+ }
829
+ export interface AttributeContext_Resource_LabelsEntrySDKType {
830
+ key: string;
831
+ value: string;
832
+ }
833
+ export interface AttributeContext_Resource_AnnotationsEntry {
834
+ key: string;
835
+ value: string;
836
+ }
837
+ export interface AttributeContext_Resource_AnnotationsEntryProtoMsg {
838
+ typeUrl: string;
839
+ value: Uint8Array;
840
+ }
841
+ /**
842
+ * @name AttributeContext_Resource_AnnotationsEntryAmino
843
+ * @package google.rpc.context
844
+ * @see proto type: google.rpc.context.AttributeContext_Resource_AnnotationsEntry
845
+ */
846
+ export interface AttributeContext_Resource_AnnotationsEntryAmino {
847
+ key?: string;
848
+ value?: string;
849
+ }
850
+ export interface AttributeContext_Resource_AnnotationsEntryAminoMsg {
851
+ type: string;
852
+ value: AttributeContext_Resource_AnnotationsEntryAmino;
853
+ }
854
+ export interface AttributeContext_Resource_AnnotationsEntrySDKType {
855
+ key: string;
856
+ value: string;
857
+ }
858
+ /**
859
+ * This message defines core attributes for a resource. A resource is an
860
+ * addressable (named) entity provided by the destination service. For
861
+ * example, a file stored on a network storage service.
862
+ */
863
+ export interface AttributeContext_Resource {
864
+ /**
865
+ * The name of the service that this resource belongs to, such as
866
+ * `pubsub.googleapis.com`. The service may be different from the DNS
867
+ * hostname that actually serves the request.
868
+ */
869
+ service: string;
870
+ /**
871
+ * The stable identifier (name) of a resource on the `service`. A resource
872
+ * can be logically identified as "//{resource.service}/{resource.name}".
873
+ * The differences between a resource name and a URI are:
874
+ *
875
+ * * Resource name is a logical identifier, independent of network
876
+ * protocol and API version. For example,
877
+ * `//pubsub.googleapis.com/projects/123/topics/news-feed`.
878
+ * * URI often includes protocol and version information, so it can
879
+ * be used directly by applications. For example,
880
+ * `https://pubsub.googleapis.com/v1/projects/123/topics/news-feed`.
881
+ *
882
+ * See https://cloud.google.com/apis/design/resource_names for details.
883
+ */
884
+ name: string;
885
+ /**
886
+ * The type of the resource. The syntax is platform-specific because
887
+ * different platforms define their resources differently.
888
+ *
889
+ * For Google APIs, the type format must be "{service}/{kind}", such as
890
+ * "pubsub.googleapis.com/Topic".
891
+ */
892
+ type: string;
893
+ /**
894
+ * The labels or tags on the resource, such as AWS resource tags and
895
+ * Kubernetes resource labels.
896
+ */
897
+ labels: {
898
+ [key: string]: string;
899
+ };
900
+ /**
901
+ * The unique identifier of the resource. UID is unique in the time
902
+ * and space for this resource within the scope of the service. It is
903
+ * typically generated by the server on successful creation of a resource
904
+ * and must not be changed. UID is used to uniquely identify resources
905
+ * with resource name reuses. This should be a UUID4.
906
+ */
907
+ uid: string;
908
+ /**
909
+ * Annotations is an unstructured key-value map stored with a resource that
910
+ * may be set by external tools to store and retrieve arbitrary metadata.
911
+ * They are not queryable and should be preserved when modifying objects.
912
+ *
913
+ * More info:
914
+ * https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
915
+ */
916
+ annotations: {
917
+ [key: string]: string;
918
+ };
919
+ /** Mutable. The display name set by clients. Must be <= 63 characters. */
920
+ displayName: string;
921
+ /**
922
+ * Output only. The timestamp when the resource was created. This may
923
+ * be either the time creation was initiated or when it was completed.
924
+ */
925
+ createTime?: Date;
926
+ /**
927
+ * Output only. The timestamp when the resource was last updated. Any
928
+ * change to the resource made by users must refresh this value.
929
+ * Changes to a resource made by the service should refresh this value.
930
+ */
931
+ updateTime?: Date;
932
+ /**
933
+ * Output only. The timestamp when the resource was deleted.
934
+ * If the resource is not deleted, this must be empty.
935
+ */
936
+ deleteTime?: Date;
937
+ /**
938
+ * Output only. An opaque value that uniquely identifies a version or
939
+ * generation of a resource. It can be used to confirm that the client
940
+ * and server agree on the ordering of a resource being written.
941
+ */
942
+ etag: string;
943
+ /**
944
+ * Immutable. The location of the resource. The location encoding is
945
+ * specific to the service provider, and new encoding may be introduced
946
+ * as the service evolves.
947
+ *
948
+ * For Google Cloud products, the encoding is what is used by Google Cloud
949
+ * APIs, such as `us-east1`, `aws-us-east-1`, and `azure-eastus2`. The
950
+ * semantics of `location` is identical to the
951
+ * `cloud.googleapis.com/location` label used by some Google Cloud APIs.
952
+ */
953
+ location: string;
954
+ }
955
+ export interface AttributeContext_ResourceProtoMsg {
956
+ typeUrl: "/google.rpc.context.Resource";
957
+ value: Uint8Array;
958
+ }
959
+ /**
960
+ * This message defines core attributes for a resource. A resource is an
961
+ * addressable (named) entity provided by the destination service. For
962
+ * example, a file stored on a network storage service.
963
+ * @name AttributeContext_ResourceAmino
964
+ * @package google.rpc.context
965
+ * @see proto type: google.rpc.context.AttributeContext_Resource
966
+ */
967
+ export interface AttributeContext_ResourceAmino {
968
+ /**
969
+ * The name of the service that this resource belongs to, such as
970
+ * `pubsub.googleapis.com`. The service may be different from the DNS
971
+ * hostname that actually serves the request.
972
+ */
973
+ service?: string;
974
+ /**
975
+ * The stable identifier (name) of a resource on the `service`. A resource
976
+ * can be logically identified as "//{resource.service}/{resource.name}".
977
+ * The differences between a resource name and a URI are:
978
+ *
979
+ * * Resource name is a logical identifier, independent of network
980
+ * protocol and API version. For example,
981
+ * `//pubsub.googleapis.com/projects/123/topics/news-feed`.
982
+ * * URI often includes protocol and version information, so it can
983
+ * be used directly by applications. For example,
984
+ * `https://pubsub.googleapis.com/v1/projects/123/topics/news-feed`.
985
+ *
986
+ * See https://cloud.google.com/apis/design/resource_names for details.
987
+ */
988
+ name?: string;
989
+ /**
990
+ * The type of the resource. The syntax is platform-specific because
991
+ * different platforms define their resources differently.
992
+ *
993
+ * For Google APIs, the type format must be "{service}/{kind}", such as
994
+ * "pubsub.googleapis.com/Topic".
995
+ */
996
+ type?: string;
997
+ /**
998
+ * The labels or tags on the resource, such as AWS resource tags and
999
+ * Kubernetes resource labels.
1000
+ */
1001
+ labels?: {
1002
+ [key: string]: string;
1003
+ };
1004
+ /**
1005
+ * The unique identifier of the resource. UID is unique in the time
1006
+ * and space for this resource within the scope of the service. It is
1007
+ * typically generated by the server on successful creation of a resource
1008
+ * and must not be changed. UID is used to uniquely identify resources
1009
+ * with resource name reuses. This should be a UUID4.
1010
+ */
1011
+ uid?: string;
1012
+ /**
1013
+ * Annotations is an unstructured key-value map stored with a resource that
1014
+ * may be set by external tools to store and retrieve arbitrary metadata.
1015
+ * They are not queryable and should be preserved when modifying objects.
1016
+ *
1017
+ * More info:
1018
+ * https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
1019
+ */
1020
+ annotations?: {
1021
+ [key: string]: string;
1022
+ };
1023
+ /**
1024
+ * Mutable. The display name set by clients. Must be <= 63 characters.
1025
+ */
1026
+ display_name?: string;
1027
+ /**
1028
+ * Output only. The timestamp when the resource was created. This may
1029
+ * be either the time creation was initiated or when it was completed.
1030
+ */
1031
+ create_time?: string;
1032
+ /**
1033
+ * Output only. The timestamp when the resource was last updated. Any
1034
+ * change to the resource made by users must refresh this value.
1035
+ * Changes to a resource made by the service should refresh this value.
1036
+ */
1037
+ update_time?: string;
1038
+ /**
1039
+ * Output only. The timestamp when the resource was deleted.
1040
+ * If the resource is not deleted, this must be empty.
1041
+ */
1042
+ delete_time?: string;
1043
+ /**
1044
+ * Output only. An opaque value that uniquely identifies a version or
1045
+ * generation of a resource. It can be used to confirm that the client
1046
+ * and server agree on the ordering of a resource being written.
1047
+ */
1048
+ etag?: string;
1049
+ /**
1050
+ * Immutable. The location of the resource. The location encoding is
1051
+ * specific to the service provider, and new encoding may be introduced
1052
+ * as the service evolves.
1053
+ *
1054
+ * For Google Cloud products, the encoding is what is used by Google Cloud
1055
+ * APIs, such as `us-east1`, `aws-us-east-1`, and `azure-eastus2`. The
1056
+ * semantics of `location` is identical to the
1057
+ * `cloud.googleapis.com/location` label used by some Google Cloud APIs.
1058
+ */
1059
+ location?: string;
1060
+ }
1061
+ export interface AttributeContext_ResourceAminoMsg {
1062
+ type: "/google.rpc.context.Resource";
1063
+ value: AttributeContext_ResourceAmino;
1064
+ }
1065
+ /**
1066
+ * This message defines core attributes for a resource. A resource is an
1067
+ * addressable (named) entity provided by the destination service. For
1068
+ * example, a file stored on a network storage service.
1069
+ */
1070
+ export interface AttributeContext_ResourceSDKType {
1071
+ service: string;
1072
+ name: string;
1073
+ type: string;
1074
+ labels: {
1075
+ [key: string]: string;
1076
+ };
1077
+ uid: string;
1078
+ annotations: {
1079
+ [key: string]: string;
1080
+ };
1081
+ display_name: string;
1082
+ create_time?: Date;
1083
+ update_time?: Date;
1084
+ delete_time?: Date;
1085
+ etag: string;
1086
+ location: string;
1087
+ }
1088
+ function createBaseAttributeContext(): AttributeContext {
1089
+ return {
1090
+ origin: undefined,
1091
+ source: undefined,
1092
+ destination: undefined,
1093
+ request: undefined,
1094
+ response: undefined,
1095
+ resource: undefined,
1096
+ api: undefined,
1097
+ extensions: []
1098
+ };
1099
+ }
1100
+ export const AttributeContext = {
1101
+ typeUrl: "/google.rpc.context.AttributeContext",
1102
+ encode(message: AttributeContext, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1103
+ if (message.origin !== undefined) {
1104
+ AttributeContext_Peer.encode(message.origin, writer.uint32(58).fork()).ldelim();
1105
+ }
1106
+ if (message.source !== undefined) {
1107
+ AttributeContext_Peer.encode(message.source, writer.uint32(10).fork()).ldelim();
1108
+ }
1109
+ if (message.destination !== undefined) {
1110
+ AttributeContext_Peer.encode(message.destination, writer.uint32(18).fork()).ldelim();
1111
+ }
1112
+ if (message.request !== undefined) {
1113
+ AttributeContext_Request.encode(message.request, writer.uint32(26).fork()).ldelim();
1114
+ }
1115
+ if (message.response !== undefined) {
1116
+ AttributeContext_Response.encode(message.response, writer.uint32(34).fork()).ldelim();
1117
+ }
1118
+ if (message.resource !== undefined) {
1119
+ AttributeContext_Resource.encode(message.resource, writer.uint32(42).fork()).ldelim();
1120
+ }
1121
+ if (message.api !== undefined) {
1122
+ AttributeContext_Api.encode(message.api, writer.uint32(50).fork()).ldelim();
1123
+ }
1124
+ for (const v of message.extensions) {
1125
+ Any.encode(v!, writer.uint32(66).fork()).ldelim();
1126
+ }
1127
+ return writer;
1128
+ },
1129
+ decode(input: BinaryReader | Uint8Array, length?: number): AttributeContext {
1130
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1131
+ let end = length === undefined ? reader.len : reader.pos + length;
1132
+ const message = createBaseAttributeContext();
1133
+ while (reader.pos < end) {
1134
+ const tag = reader.uint32();
1135
+ switch (tag >>> 3) {
1136
+ case 7:
1137
+ message.origin = AttributeContext_Peer.decode(reader, reader.uint32());
1138
+ break;
1139
+ case 1:
1140
+ message.source = AttributeContext_Peer.decode(reader, reader.uint32());
1141
+ break;
1142
+ case 2:
1143
+ message.destination = AttributeContext_Peer.decode(reader, reader.uint32());
1144
+ break;
1145
+ case 3:
1146
+ message.request = AttributeContext_Request.decode(reader, reader.uint32());
1147
+ break;
1148
+ case 4:
1149
+ message.response = AttributeContext_Response.decode(reader, reader.uint32());
1150
+ break;
1151
+ case 5:
1152
+ message.resource = AttributeContext_Resource.decode(reader, reader.uint32());
1153
+ break;
1154
+ case 6:
1155
+ message.api = AttributeContext_Api.decode(reader, reader.uint32());
1156
+ break;
1157
+ case 8:
1158
+ message.extensions.push(Any.decode(reader, reader.uint32()));
1159
+ break;
1160
+ default:
1161
+ reader.skipType(tag & 7);
1162
+ break;
1163
+ }
1164
+ }
1165
+ return message;
1166
+ },
1167
+ fromPartial(object: Partial<AttributeContext>): AttributeContext {
1168
+ const message = createBaseAttributeContext();
1169
+ message.origin = object.origin !== undefined && object.origin !== null ? AttributeContext_Peer.fromPartial(object.origin) : undefined;
1170
+ message.source = object.source !== undefined && object.source !== null ? AttributeContext_Peer.fromPartial(object.source) : undefined;
1171
+ message.destination = object.destination !== undefined && object.destination !== null ? AttributeContext_Peer.fromPartial(object.destination) : undefined;
1172
+ message.request = object.request !== undefined && object.request !== null ? AttributeContext_Request.fromPartial(object.request) : undefined;
1173
+ message.response = object.response !== undefined && object.response !== null ? AttributeContext_Response.fromPartial(object.response) : undefined;
1174
+ message.resource = object.resource !== undefined && object.resource !== null ? AttributeContext_Resource.fromPartial(object.resource) : undefined;
1175
+ message.api = object.api !== undefined && object.api !== null ? AttributeContext_Api.fromPartial(object.api) : undefined;
1176
+ message.extensions = object.extensions?.map(e => Any.fromPartial(e)) || [];
1177
+ return message;
1178
+ },
1179
+ fromAmino(object: AttributeContextAmino): AttributeContext {
1180
+ const message = createBaseAttributeContext();
1181
+ if (object.origin !== undefined && object.origin !== null) {
1182
+ message.origin = AttributeContext_Peer.fromAmino(object.origin);
1183
+ }
1184
+ if (object.source !== undefined && object.source !== null) {
1185
+ message.source = AttributeContext_Peer.fromAmino(object.source);
1186
+ }
1187
+ if (object.destination !== undefined && object.destination !== null) {
1188
+ message.destination = AttributeContext_Peer.fromAmino(object.destination);
1189
+ }
1190
+ if (object.request !== undefined && object.request !== null) {
1191
+ message.request = AttributeContext_Request.fromAmino(object.request);
1192
+ }
1193
+ if (object.response !== undefined && object.response !== null) {
1194
+ message.response = AttributeContext_Response.fromAmino(object.response);
1195
+ }
1196
+ if (object.resource !== undefined && object.resource !== null) {
1197
+ message.resource = AttributeContext_Resource.fromAmino(object.resource);
1198
+ }
1199
+ if (object.api !== undefined && object.api !== null) {
1200
+ message.api = AttributeContext_Api.fromAmino(object.api);
1201
+ }
1202
+ message.extensions = object.extensions?.map(e => Any.fromAmino(e)) || [];
1203
+ return message;
1204
+ },
1205
+ toAmino(message: AttributeContext): AttributeContextAmino {
1206
+ const obj: any = {};
1207
+ obj.origin = message.origin ? AttributeContext_Peer.toAmino(message.origin) : undefined;
1208
+ obj.source = message.source ? AttributeContext_Peer.toAmino(message.source) : undefined;
1209
+ obj.destination = message.destination ? AttributeContext_Peer.toAmino(message.destination) : undefined;
1210
+ obj.request = message.request ? AttributeContext_Request.toAmino(message.request) : undefined;
1211
+ obj.response = message.response ? AttributeContext_Response.toAmino(message.response) : undefined;
1212
+ obj.resource = message.resource ? AttributeContext_Resource.toAmino(message.resource) : undefined;
1213
+ obj.api = message.api ? AttributeContext_Api.toAmino(message.api) : undefined;
1214
+ if (message.extensions) {
1215
+ obj.extensions = message.extensions.map(e => e ? Any.toAmino(e) : undefined);
1216
+ } else {
1217
+ obj.extensions = message.extensions;
1218
+ }
1219
+ return obj;
1220
+ },
1221
+ fromAminoMsg(object: AttributeContextAminoMsg): AttributeContext {
1222
+ return AttributeContext.fromAmino(object.value);
1223
+ },
1224
+ fromProtoMsg(message: AttributeContextProtoMsg): AttributeContext {
1225
+ return AttributeContext.decode(message.value);
1226
+ },
1227
+ toProto(message: AttributeContext): Uint8Array {
1228
+ return AttributeContext.encode(message).finish();
1229
+ },
1230
+ toProtoMsg(message: AttributeContext): AttributeContextProtoMsg {
1231
+ return {
1232
+ typeUrl: "/google.rpc.context.AttributeContext",
1233
+ value: AttributeContext.encode(message).finish()
1234
+ };
1235
+ }
1236
+ };
1237
+ function createBaseAttributeContext_Peer_LabelsEntry(): AttributeContext_Peer_LabelsEntry {
1238
+ return {
1239
+ key: "",
1240
+ value: ""
1241
+ };
1242
+ }
1243
+ export const AttributeContext_Peer_LabelsEntry = {
1244
+ encode(message: AttributeContext_Peer_LabelsEntry, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1245
+ if (message.key !== "") {
1246
+ writer.uint32(10).string(message.key);
1247
+ }
1248
+ if (message.value !== "") {
1249
+ writer.uint32(18).string(message.value);
1250
+ }
1251
+ return writer;
1252
+ },
1253
+ decode(input: BinaryReader | Uint8Array, length?: number): AttributeContext_Peer_LabelsEntry {
1254
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1255
+ let end = length === undefined ? reader.len : reader.pos + length;
1256
+ const message = createBaseAttributeContext_Peer_LabelsEntry();
1257
+ while (reader.pos < end) {
1258
+ const tag = reader.uint32();
1259
+ switch (tag >>> 3) {
1260
+ case 1:
1261
+ message.key = reader.string();
1262
+ break;
1263
+ case 2:
1264
+ message.value = reader.string();
1265
+ break;
1266
+ default:
1267
+ reader.skipType(tag & 7);
1268
+ break;
1269
+ }
1270
+ }
1271
+ return message;
1272
+ },
1273
+ fromPartial(object: Partial<AttributeContext_Peer_LabelsEntry>): AttributeContext_Peer_LabelsEntry {
1274
+ const message = createBaseAttributeContext_Peer_LabelsEntry();
1275
+ message.key = object.key ?? "";
1276
+ message.value = object.value ?? "";
1277
+ return message;
1278
+ },
1279
+ fromAmino(object: AttributeContext_Peer_LabelsEntryAmino): AttributeContext_Peer_LabelsEntry {
1280
+ const message = createBaseAttributeContext_Peer_LabelsEntry();
1281
+ if (object.key !== undefined && object.key !== null) {
1282
+ message.key = object.key;
1283
+ }
1284
+ if (object.value !== undefined && object.value !== null) {
1285
+ message.value = object.value;
1286
+ }
1287
+ return message;
1288
+ },
1289
+ toAmino(message: AttributeContext_Peer_LabelsEntry): AttributeContext_Peer_LabelsEntryAmino {
1290
+ const obj: any = {};
1291
+ obj.key = message.key === "" ? undefined : message.key;
1292
+ obj.value = message.value === "" ? undefined : message.value;
1293
+ return obj;
1294
+ },
1295
+ fromAminoMsg(object: AttributeContext_Peer_LabelsEntryAminoMsg): AttributeContext_Peer_LabelsEntry {
1296
+ return AttributeContext_Peer_LabelsEntry.fromAmino(object.value);
1297
+ },
1298
+ fromProtoMsg(message: AttributeContext_Peer_LabelsEntryProtoMsg): AttributeContext_Peer_LabelsEntry {
1299
+ return AttributeContext_Peer_LabelsEntry.decode(message.value);
1300
+ },
1301
+ toProto(message: AttributeContext_Peer_LabelsEntry): Uint8Array {
1302
+ return AttributeContext_Peer_LabelsEntry.encode(message).finish();
1303
+ }
1304
+ };
1305
+ function createBaseAttributeContext_Peer(): AttributeContext_Peer {
1306
+ return {
1307
+ ip: "",
1308
+ port: BigInt(0),
1309
+ labels: {},
1310
+ principal: "",
1311
+ regionCode: ""
1312
+ };
1313
+ }
1314
+ export const AttributeContext_Peer = {
1315
+ typeUrl: "/google.rpc.context.Peer",
1316
+ encode(message: AttributeContext_Peer, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1317
+ if (message.ip !== "") {
1318
+ writer.uint32(10).string(message.ip);
1319
+ }
1320
+ if (message.port !== BigInt(0)) {
1321
+ writer.uint32(16).int64(message.port);
1322
+ }
1323
+ Object.entries(message.labels).forEach(([key, value]) => {
1324
+ AttributeContext_Peer_LabelsEntry.encode({
1325
+ key: key as any,
1326
+ value
1327
+ }, writer.uint32(50).fork()).ldelim();
1328
+ });
1329
+ if (message.principal !== "") {
1330
+ writer.uint32(58).string(message.principal);
1331
+ }
1332
+ if (message.regionCode !== "") {
1333
+ writer.uint32(66).string(message.regionCode);
1334
+ }
1335
+ return writer;
1336
+ },
1337
+ decode(input: BinaryReader | Uint8Array, length?: number): AttributeContext_Peer {
1338
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1339
+ let end = length === undefined ? reader.len : reader.pos + length;
1340
+ const message = createBaseAttributeContext_Peer();
1341
+ while (reader.pos < end) {
1342
+ const tag = reader.uint32();
1343
+ switch (tag >>> 3) {
1344
+ case 1:
1345
+ message.ip = reader.string();
1346
+ break;
1347
+ case 2:
1348
+ message.port = reader.int64();
1349
+ break;
1350
+ case 6:
1351
+ const entry6 = AttributeContext_Peer_LabelsEntry.decode(reader, reader.uint32());
1352
+ if (entry6.value !== undefined) {
1353
+ message.labels[entry6.key] = entry6.value;
1354
+ }
1355
+ break;
1356
+ case 7:
1357
+ message.principal = reader.string();
1358
+ break;
1359
+ case 8:
1360
+ message.regionCode = reader.string();
1361
+ break;
1362
+ default:
1363
+ reader.skipType(tag & 7);
1364
+ break;
1365
+ }
1366
+ }
1367
+ return message;
1368
+ },
1369
+ fromPartial(object: Partial<AttributeContext_Peer>): AttributeContext_Peer {
1370
+ const message = createBaseAttributeContext_Peer();
1371
+ message.ip = object.ip ?? "";
1372
+ message.port = object.port !== undefined && object.port !== null ? BigInt(object.port.toString()) : BigInt(0);
1373
+ message.labels = Object.entries(object.labels ?? {}).reduce<{
1374
+ [key: string]: string;
1375
+ }>((acc, [key, value]) => {
1376
+ if (value !== undefined) {
1377
+ acc[key] = String(value);
1378
+ }
1379
+ return acc;
1380
+ }, {});
1381
+ message.principal = object.principal ?? "";
1382
+ message.regionCode = object.regionCode ?? "";
1383
+ return message;
1384
+ },
1385
+ fromAmino(object: AttributeContext_PeerAmino): AttributeContext_Peer {
1386
+ const message = createBaseAttributeContext_Peer();
1387
+ if (object.ip !== undefined && object.ip !== null) {
1388
+ message.ip = object.ip;
1389
+ }
1390
+ if (object.port !== undefined && object.port !== null) {
1391
+ message.port = BigInt(object.port);
1392
+ }
1393
+ message.labels = Object.entries(object.labels ?? {}).reduce<{
1394
+ [key: string]: string;
1395
+ }>((acc, [key, value]) => {
1396
+ if (value !== undefined) {
1397
+ acc[key] = String(value);
1398
+ }
1399
+ return acc;
1400
+ }, {});
1401
+ if (object.principal !== undefined && object.principal !== null) {
1402
+ message.principal = object.principal;
1403
+ }
1404
+ if (object.region_code !== undefined && object.region_code !== null) {
1405
+ message.regionCode = object.region_code;
1406
+ }
1407
+ return message;
1408
+ },
1409
+ toAmino(message: AttributeContext_Peer): AttributeContext_PeerAmino {
1410
+ const obj: any = {};
1411
+ obj.ip = message.ip === "" ? undefined : message.ip;
1412
+ obj.port = message.port !== BigInt(0) ? message.port?.toString() : undefined;
1413
+ obj.labels = {};
1414
+ if (message.labels) {
1415
+ Object.entries(message.labels).forEach(([k, v]) => {
1416
+ obj.labels[k] = v;
1417
+ });
1418
+ }
1419
+ obj.principal = message.principal === "" ? undefined : message.principal;
1420
+ obj.region_code = message.regionCode === "" ? undefined : message.regionCode;
1421
+ return obj;
1422
+ },
1423
+ fromAminoMsg(object: AttributeContext_PeerAminoMsg): AttributeContext_Peer {
1424
+ return AttributeContext_Peer.fromAmino(object.value);
1425
+ },
1426
+ fromProtoMsg(message: AttributeContext_PeerProtoMsg): AttributeContext_Peer {
1427
+ return AttributeContext_Peer.decode(message.value);
1428
+ },
1429
+ toProto(message: AttributeContext_Peer): Uint8Array {
1430
+ return AttributeContext_Peer.encode(message).finish();
1431
+ },
1432
+ toProtoMsg(message: AttributeContext_Peer): AttributeContext_PeerProtoMsg {
1433
+ return {
1434
+ typeUrl: "/google.rpc.context.Peer",
1435
+ value: AttributeContext_Peer.encode(message).finish()
1436
+ };
1437
+ }
1438
+ };
1439
+ function createBaseAttributeContext_Api(): AttributeContext_Api {
1440
+ return {
1441
+ service: "",
1442
+ operation: "",
1443
+ protocol: "",
1444
+ version: ""
1445
+ };
1446
+ }
1447
+ export const AttributeContext_Api = {
1448
+ typeUrl: "/google.rpc.context.Api",
1449
+ encode(message: AttributeContext_Api, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1450
+ if (message.service !== "") {
1451
+ writer.uint32(10).string(message.service);
1452
+ }
1453
+ if (message.operation !== "") {
1454
+ writer.uint32(18).string(message.operation);
1455
+ }
1456
+ if (message.protocol !== "") {
1457
+ writer.uint32(26).string(message.protocol);
1458
+ }
1459
+ if (message.version !== "") {
1460
+ writer.uint32(34).string(message.version);
1461
+ }
1462
+ return writer;
1463
+ },
1464
+ decode(input: BinaryReader | Uint8Array, length?: number): AttributeContext_Api {
1465
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1466
+ let end = length === undefined ? reader.len : reader.pos + length;
1467
+ const message = createBaseAttributeContext_Api();
1468
+ while (reader.pos < end) {
1469
+ const tag = reader.uint32();
1470
+ switch (tag >>> 3) {
1471
+ case 1:
1472
+ message.service = reader.string();
1473
+ break;
1474
+ case 2:
1475
+ message.operation = reader.string();
1476
+ break;
1477
+ case 3:
1478
+ message.protocol = reader.string();
1479
+ break;
1480
+ case 4:
1481
+ message.version = reader.string();
1482
+ break;
1483
+ default:
1484
+ reader.skipType(tag & 7);
1485
+ break;
1486
+ }
1487
+ }
1488
+ return message;
1489
+ },
1490
+ fromPartial(object: Partial<AttributeContext_Api>): AttributeContext_Api {
1491
+ const message = createBaseAttributeContext_Api();
1492
+ message.service = object.service ?? "";
1493
+ message.operation = object.operation ?? "";
1494
+ message.protocol = object.protocol ?? "";
1495
+ message.version = object.version ?? "";
1496
+ return message;
1497
+ },
1498
+ fromAmino(object: AttributeContext_ApiAmino): AttributeContext_Api {
1499
+ const message = createBaseAttributeContext_Api();
1500
+ if (object.service !== undefined && object.service !== null) {
1501
+ message.service = object.service;
1502
+ }
1503
+ if (object.operation !== undefined && object.operation !== null) {
1504
+ message.operation = object.operation;
1505
+ }
1506
+ if (object.protocol !== undefined && object.protocol !== null) {
1507
+ message.protocol = object.protocol;
1508
+ }
1509
+ if (object.version !== undefined && object.version !== null) {
1510
+ message.version = object.version;
1511
+ }
1512
+ return message;
1513
+ },
1514
+ toAmino(message: AttributeContext_Api): AttributeContext_ApiAmino {
1515
+ const obj: any = {};
1516
+ obj.service = message.service === "" ? undefined : message.service;
1517
+ obj.operation = message.operation === "" ? undefined : message.operation;
1518
+ obj.protocol = message.protocol === "" ? undefined : message.protocol;
1519
+ obj.version = message.version === "" ? undefined : message.version;
1520
+ return obj;
1521
+ },
1522
+ fromAminoMsg(object: AttributeContext_ApiAminoMsg): AttributeContext_Api {
1523
+ return AttributeContext_Api.fromAmino(object.value);
1524
+ },
1525
+ fromProtoMsg(message: AttributeContext_ApiProtoMsg): AttributeContext_Api {
1526
+ return AttributeContext_Api.decode(message.value);
1527
+ },
1528
+ toProto(message: AttributeContext_Api): Uint8Array {
1529
+ return AttributeContext_Api.encode(message).finish();
1530
+ },
1531
+ toProtoMsg(message: AttributeContext_Api): AttributeContext_ApiProtoMsg {
1532
+ return {
1533
+ typeUrl: "/google.rpc.context.Api",
1534
+ value: AttributeContext_Api.encode(message).finish()
1535
+ };
1536
+ }
1537
+ };
1538
+ function createBaseAttributeContext_Auth(): AttributeContext_Auth {
1539
+ return {
1540
+ principal: "",
1541
+ audiences: [],
1542
+ presenter: "",
1543
+ claims: undefined,
1544
+ accessLevels: []
1545
+ };
1546
+ }
1547
+ export const AttributeContext_Auth = {
1548
+ typeUrl: "/google.rpc.context.Auth",
1549
+ encode(message: AttributeContext_Auth, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1550
+ if (message.principal !== "") {
1551
+ writer.uint32(10).string(message.principal);
1552
+ }
1553
+ for (const v of message.audiences) {
1554
+ writer.uint32(18).string(v!);
1555
+ }
1556
+ if (message.presenter !== "") {
1557
+ writer.uint32(26).string(message.presenter);
1558
+ }
1559
+ if (message.claims !== undefined) {
1560
+ Struct.encode(message.claims, writer.uint32(34).fork()).ldelim();
1561
+ }
1562
+ for (const v of message.accessLevels) {
1563
+ writer.uint32(42).string(v!);
1564
+ }
1565
+ return writer;
1566
+ },
1567
+ decode(input: BinaryReader | Uint8Array, length?: number): AttributeContext_Auth {
1568
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1569
+ let end = length === undefined ? reader.len : reader.pos + length;
1570
+ const message = createBaseAttributeContext_Auth();
1571
+ while (reader.pos < end) {
1572
+ const tag = reader.uint32();
1573
+ switch (tag >>> 3) {
1574
+ case 1:
1575
+ message.principal = reader.string();
1576
+ break;
1577
+ case 2:
1578
+ message.audiences.push(reader.string());
1579
+ break;
1580
+ case 3:
1581
+ message.presenter = reader.string();
1582
+ break;
1583
+ case 4:
1584
+ message.claims = Struct.decode(reader, reader.uint32());
1585
+ break;
1586
+ case 5:
1587
+ message.accessLevels.push(reader.string());
1588
+ break;
1589
+ default:
1590
+ reader.skipType(tag & 7);
1591
+ break;
1592
+ }
1593
+ }
1594
+ return message;
1595
+ },
1596
+ fromPartial(object: Partial<AttributeContext_Auth>): AttributeContext_Auth {
1597
+ const message = createBaseAttributeContext_Auth();
1598
+ message.principal = object.principal ?? "";
1599
+ message.audiences = object.audiences?.map(e => e) || [];
1600
+ message.presenter = object.presenter ?? "";
1601
+ message.claims = object.claims !== undefined && object.claims !== null ? Struct.fromPartial(object.claims) : undefined;
1602
+ message.accessLevels = object.accessLevels?.map(e => e) || [];
1603
+ return message;
1604
+ },
1605
+ fromAmino(object: AttributeContext_AuthAmino): AttributeContext_Auth {
1606
+ const message = createBaseAttributeContext_Auth();
1607
+ if (object.principal !== undefined && object.principal !== null) {
1608
+ message.principal = object.principal;
1609
+ }
1610
+ message.audiences = object.audiences?.map(e => e) || [];
1611
+ if (object.presenter !== undefined && object.presenter !== null) {
1612
+ message.presenter = object.presenter;
1613
+ }
1614
+ if (object.claims !== undefined && object.claims !== null) {
1615
+ message.claims = Struct.fromAmino(object.claims);
1616
+ }
1617
+ message.accessLevels = object.access_levels?.map(e => e) || [];
1618
+ return message;
1619
+ },
1620
+ toAmino(message: AttributeContext_Auth): AttributeContext_AuthAmino {
1621
+ const obj: any = {};
1622
+ obj.principal = message.principal === "" ? undefined : message.principal;
1623
+ if (message.audiences) {
1624
+ obj.audiences = message.audiences.map(e => e);
1625
+ } else {
1626
+ obj.audiences = message.audiences;
1627
+ }
1628
+ obj.presenter = message.presenter === "" ? undefined : message.presenter;
1629
+ obj.claims = message.claims ? Struct.toAmino(message.claims) : undefined;
1630
+ if (message.accessLevels) {
1631
+ obj.access_levels = message.accessLevels.map(e => e);
1632
+ } else {
1633
+ obj.access_levels = message.accessLevels;
1634
+ }
1635
+ return obj;
1636
+ },
1637
+ fromAminoMsg(object: AttributeContext_AuthAminoMsg): AttributeContext_Auth {
1638
+ return AttributeContext_Auth.fromAmino(object.value);
1639
+ },
1640
+ fromProtoMsg(message: AttributeContext_AuthProtoMsg): AttributeContext_Auth {
1641
+ return AttributeContext_Auth.decode(message.value);
1642
+ },
1643
+ toProto(message: AttributeContext_Auth): Uint8Array {
1644
+ return AttributeContext_Auth.encode(message).finish();
1645
+ },
1646
+ toProtoMsg(message: AttributeContext_Auth): AttributeContext_AuthProtoMsg {
1647
+ return {
1648
+ typeUrl: "/google.rpc.context.Auth",
1649
+ value: AttributeContext_Auth.encode(message).finish()
1650
+ };
1651
+ }
1652
+ };
1653
+ function createBaseAttributeContext_Request_HeadersEntry(): AttributeContext_Request_HeadersEntry {
1654
+ return {
1655
+ key: "",
1656
+ value: ""
1657
+ };
1658
+ }
1659
+ export const AttributeContext_Request_HeadersEntry = {
1660
+ encode(message: AttributeContext_Request_HeadersEntry, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1661
+ if (message.key !== "") {
1662
+ writer.uint32(10).string(message.key);
1663
+ }
1664
+ if (message.value !== "") {
1665
+ writer.uint32(18).string(message.value);
1666
+ }
1667
+ return writer;
1668
+ },
1669
+ decode(input: BinaryReader | Uint8Array, length?: number): AttributeContext_Request_HeadersEntry {
1670
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1671
+ let end = length === undefined ? reader.len : reader.pos + length;
1672
+ const message = createBaseAttributeContext_Request_HeadersEntry();
1673
+ while (reader.pos < end) {
1674
+ const tag = reader.uint32();
1675
+ switch (tag >>> 3) {
1676
+ case 1:
1677
+ message.key = reader.string();
1678
+ break;
1679
+ case 2:
1680
+ message.value = reader.string();
1681
+ break;
1682
+ default:
1683
+ reader.skipType(tag & 7);
1684
+ break;
1685
+ }
1686
+ }
1687
+ return message;
1688
+ },
1689
+ fromPartial(object: Partial<AttributeContext_Request_HeadersEntry>): AttributeContext_Request_HeadersEntry {
1690
+ const message = createBaseAttributeContext_Request_HeadersEntry();
1691
+ message.key = object.key ?? "";
1692
+ message.value = object.value ?? "";
1693
+ return message;
1694
+ },
1695
+ fromAmino(object: AttributeContext_Request_HeadersEntryAmino): AttributeContext_Request_HeadersEntry {
1696
+ const message = createBaseAttributeContext_Request_HeadersEntry();
1697
+ if (object.key !== undefined && object.key !== null) {
1698
+ message.key = object.key;
1699
+ }
1700
+ if (object.value !== undefined && object.value !== null) {
1701
+ message.value = object.value;
1702
+ }
1703
+ return message;
1704
+ },
1705
+ toAmino(message: AttributeContext_Request_HeadersEntry): AttributeContext_Request_HeadersEntryAmino {
1706
+ const obj: any = {};
1707
+ obj.key = message.key === "" ? undefined : message.key;
1708
+ obj.value = message.value === "" ? undefined : message.value;
1709
+ return obj;
1710
+ },
1711
+ fromAminoMsg(object: AttributeContext_Request_HeadersEntryAminoMsg): AttributeContext_Request_HeadersEntry {
1712
+ return AttributeContext_Request_HeadersEntry.fromAmino(object.value);
1713
+ },
1714
+ fromProtoMsg(message: AttributeContext_Request_HeadersEntryProtoMsg): AttributeContext_Request_HeadersEntry {
1715
+ return AttributeContext_Request_HeadersEntry.decode(message.value);
1716
+ },
1717
+ toProto(message: AttributeContext_Request_HeadersEntry): Uint8Array {
1718
+ return AttributeContext_Request_HeadersEntry.encode(message).finish();
1719
+ }
1720
+ };
1721
+ function createBaseAttributeContext_Request(): AttributeContext_Request {
1722
+ return {
1723
+ id: "",
1724
+ method: "",
1725
+ headers: {},
1726
+ path: "",
1727
+ host: "",
1728
+ scheme: "",
1729
+ query: "",
1730
+ time: undefined,
1731
+ size: BigInt(0),
1732
+ protocol: "",
1733
+ reason: "",
1734
+ auth: undefined
1735
+ };
1736
+ }
1737
+ export const AttributeContext_Request = {
1738
+ typeUrl: "/google.rpc.context.Request",
1739
+ encode(message: AttributeContext_Request, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1740
+ if (message.id !== "") {
1741
+ writer.uint32(10).string(message.id);
1742
+ }
1743
+ if (message.method !== "") {
1744
+ writer.uint32(18).string(message.method);
1745
+ }
1746
+ Object.entries(message.headers).forEach(([key, value]) => {
1747
+ AttributeContext_Request_HeadersEntry.encode({
1748
+ key: key as any,
1749
+ value
1750
+ }, writer.uint32(26).fork()).ldelim();
1751
+ });
1752
+ if (message.path !== "") {
1753
+ writer.uint32(34).string(message.path);
1754
+ }
1755
+ if (message.host !== "") {
1756
+ writer.uint32(42).string(message.host);
1757
+ }
1758
+ if (message.scheme !== "") {
1759
+ writer.uint32(50).string(message.scheme);
1760
+ }
1761
+ if (message.query !== "") {
1762
+ writer.uint32(58).string(message.query);
1763
+ }
1764
+ if (message.time !== undefined) {
1765
+ Timestamp.encode(toTimestamp(message.time), writer.uint32(74).fork()).ldelim();
1766
+ }
1767
+ if (message.size !== BigInt(0)) {
1768
+ writer.uint32(80).int64(message.size);
1769
+ }
1770
+ if (message.protocol !== "") {
1771
+ writer.uint32(90).string(message.protocol);
1772
+ }
1773
+ if (message.reason !== "") {
1774
+ writer.uint32(98).string(message.reason);
1775
+ }
1776
+ if (message.auth !== undefined) {
1777
+ AttributeContext_Auth.encode(message.auth, writer.uint32(106).fork()).ldelim();
1778
+ }
1779
+ return writer;
1780
+ },
1781
+ decode(input: BinaryReader | Uint8Array, length?: number): AttributeContext_Request {
1782
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1783
+ let end = length === undefined ? reader.len : reader.pos + length;
1784
+ const message = createBaseAttributeContext_Request();
1785
+ while (reader.pos < end) {
1786
+ const tag = reader.uint32();
1787
+ switch (tag >>> 3) {
1788
+ case 1:
1789
+ message.id = reader.string();
1790
+ break;
1791
+ case 2:
1792
+ message.method = reader.string();
1793
+ break;
1794
+ case 3:
1795
+ const entry3 = AttributeContext_Request_HeadersEntry.decode(reader, reader.uint32());
1796
+ if (entry3.value !== undefined) {
1797
+ message.headers[entry3.key] = entry3.value;
1798
+ }
1799
+ break;
1800
+ case 4:
1801
+ message.path = reader.string();
1802
+ break;
1803
+ case 5:
1804
+ message.host = reader.string();
1805
+ break;
1806
+ case 6:
1807
+ message.scheme = reader.string();
1808
+ break;
1809
+ case 7:
1810
+ message.query = reader.string();
1811
+ break;
1812
+ case 9:
1813
+ message.time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
1814
+ break;
1815
+ case 10:
1816
+ message.size = reader.int64();
1817
+ break;
1818
+ case 11:
1819
+ message.protocol = reader.string();
1820
+ break;
1821
+ case 12:
1822
+ message.reason = reader.string();
1823
+ break;
1824
+ case 13:
1825
+ message.auth = AttributeContext_Auth.decode(reader, reader.uint32());
1826
+ break;
1827
+ default:
1828
+ reader.skipType(tag & 7);
1829
+ break;
1830
+ }
1831
+ }
1832
+ return message;
1833
+ },
1834
+ fromPartial(object: Partial<AttributeContext_Request>): AttributeContext_Request {
1835
+ const message = createBaseAttributeContext_Request();
1836
+ message.id = object.id ?? "";
1837
+ message.method = object.method ?? "";
1838
+ message.headers = Object.entries(object.headers ?? {}).reduce<{
1839
+ [key: string]: string;
1840
+ }>((acc, [key, value]) => {
1841
+ if (value !== undefined) {
1842
+ acc[key] = String(value);
1843
+ }
1844
+ return acc;
1845
+ }, {});
1846
+ message.path = object.path ?? "";
1847
+ message.host = object.host ?? "";
1848
+ message.scheme = object.scheme ?? "";
1849
+ message.query = object.query ?? "";
1850
+ message.time = object.time ?? undefined;
1851
+ message.size = object.size !== undefined && object.size !== null ? BigInt(object.size.toString()) : BigInt(0);
1852
+ message.protocol = object.protocol ?? "";
1853
+ message.reason = object.reason ?? "";
1854
+ message.auth = object.auth !== undefined && object.auth !== null ? AttributeContext_Auth.fromPartial(object.auth) : undefined;
1855
+ return message;
1856
+ },
1857
+ fromAmino(object: AttributeContext_RequestAmino): AttributeContext_Request {
1858
+ const message = createBaseAttributeContext_Request();
1859
+ if (object.id !== undefined && object.id !== null) {
1860
+ message.id = object.id;
1861
+ }
1862
+ if (object.method !== undefined && object.method !== null) {
1863
+ message.method = object.method;
1864
+ }
1865
+ message.headers = Object.entries(object.headers ?? {}).reduce<{
1866
+ [key: string]: string;
1867
+ }>((acc, [key, value]) => {
1868
+ if (value !== undefined) {
1869
+ acc[key] = String(value);
1870
+ }
1871
+ return acc;
1872
+ }, {});
1873
+ if (object.path !== undefined && object.path !== null) {
1874
+ message.path = object.path;
1875
+ }
1876
+ if (object.host !== undefined && object.host !== null) {
1877
+ message.host = object.host;
1878
+ }
1879
+ if (object.scheme !== undefined && object.scheme !== null) {
1880
+ message.scheme = object.scheme;
1881
+ }
1882
+ if (object.query !== undefined && object.query !== null) {
1883
+ message.query = object.query;
1884
+ }
1885
+ if (object.time !== undefined && object.time !== null) {
1886
+ message.time = fromTimestamp(Timestamp.fromAmino(object.time));
1887
+ }
1888
+ if (object.size !== undefined && object.size !== null) {
1889
+ message.size = BigInt(object.size);
1890
+ }
1891
+ if (object.protocol !== undefined && object.protocol !== null) {
1892
+ message.protocol = object.protocol;
1893
+ }
1894
+ if (object.reason !== undefined && object.reason !== null) {
1895
+ message.reason = object.reason;
1896
+ }
1897
+ if (object.auth !== undefined && object.auth !== null) {
1898
+ message.auth = AttributeContext_Auth.fromAmino(object.auth);
1899
+ }
1900
+ return message;
1901
+ },
1902
+ toAmino(message: AttributeContext_Request): AttributeContext_RequestAmino {
1903
+ const obj: any = {};
1904
+ obj.id = message.id === "" ? undefined : message.id;
1905
+ obj.method = message.method === "" ? undefined : message.method;
1906
+ obj.headers = {};
1907
+ if (message.headers) {
1908
+ Object.entries(message.headers).forEach(([k, v]) => {
1909
+ obj.headers[k] = v;
1910
+ });
1911
+ }
1912
+ obj.path = message.path === "" ? undefined : message.path;
1913
+ obj.host = message.host === "" ? undefined : message.host;
1914
+ obj.scheme = message.scheme === "" ? undefined : message.scheme;
1915
+ obj.query = message.query === "" ? undefined : message.query;
1916
+ obj.time = message.time ? Timestamp.toAmino(toTimestamp(message.time)) : undefined;
1917
+ obj.size = message.size !== BigInt(0) ? message.size?.toString() : undefined;
1918
+ obj.protocol = message.protocol === "" ? undefined : message.protocol;
1919
+ obj.reason = message.reason === "" ? undefined : message.reason;
1920
+ obj.auth = message.auth ? AttributeContext_Auth.toAmino(message.auth) : undefined;
1921
+ return obj;
1922
+ },
1923
+ fromAminoMsg(object: AttributeContext_RequestAminoMsg): AttributeContext_Request {
1924
+ return AttributeContext_Request.fromAmino(object.value);
1925
+ },
1926
+ fromProtoMsg(message: AttributeContext_RequestProtoMsg): AttributeContext_Request {
1927
+ return AttributeContext_Request.decode(message.value);
1928
+ },
1929
+ toProto(message: AttributeContext_Request): Uint8Array {
1930
+ return AttributeContext_Request.encode(message).finish();
1931
+ },
1932
+ toProtoMsg(message: AttributeContext_Request): AttributeContext_RequestProtoMsg {
1933
+ return {
1934
+ typeUrl: "/google.rpc.context.Request",
1935
+ value: AttributeContext_Request.encode(message).finish()
1936
+ };
1937
+ }
1938
+ };
1939
+ function createBaseAttributeContext_Response_HeadersEntry(): AttributeContext_Response_HeadersEntry {
1940
+ return {
1941
+ key: "",
1942
+ value: ""
1943
+ };
1944
+ }
1945
+ export const AttributeContext_Response_HeadersEntry = {
1946
+ encode(message: AttributeContext_Response_HeadersEntry, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1947
+ if (message.key !== "") {
1948
+ writer.uint32(10).string(message.key);
1949
+ }
1950
+ if (message.value !== "") {
1951
+ writer.uint32(18).string(message.value);
1952
+ }
1953
+ return writer;
1954
+ },
1955
+ decode(input: BinaryReader | Uint8Array, length?: number): AttributeContext_Response_HeadersEntry {
1956
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1957
+ let end = length === undefined ? reader.len : reader.pos + length;
1958
+ const message = createBaseAttributeContext_Response_HeadersEntry();
1959
+ while (reader.pos < end) {
1960
+ const tag = reader.uint32();
1961
+ switch (tag >>> 3) {
1962
+ case 1:
1963
+ message.key = reader.string();
1964
+ break;
1965
+ case 2:
1966
+ message.value = reader.string();
1967
+ break;
1968
+ default:
1969
+ reader.skipType(tag & 7);
1970
+ break;
1971
+ }
1972
+ }
1973
+ return message;
1974
+ },
1975
+ fromPartial(object: Partial<AttributeContext_Response_HeadersEntry>): AttributeContext_Response_HeadersEntry {
1976
+ const message = createBaseAttributeContext_Response_HeadersEntry();
1977
+ message.key = object.key ?? "";
1978
+ message.value = object.value ?? "";
1979
+ return message;
1980
+ },
1981
+ fromAmino(object: AttributeContext_Response_HeadersEntryAmino): AttributeContext_Response_HeadersEntry {
1982
+ const message = createBaseAttributeContext_Response_HeadersEntry();
1983
+ if (object.key !== undefined && object.key !== null) {
1984
+ message.key = object.key;
1985
+ }
1986
+ if (object.value !== undefined && object.value !== null) {
1987
+ message.value = object.value;
1988
+ }
1989
+ return message;
1990
+ },
1991
+ toAmino(message: AttributeContext_Response_HeadersEntry): AttributeContext_Response_HeadersEntryAmino {
1992
+ const obj: any = {};
1993
+ obj.key = message.key === "" ? undefined : message.key;
1994
+ obj.value = message.value === "" ? undefined : message.value;
1995
+ return obj;
1996
+ },
1997
+ fromAminoMsg(object: AttributeContext_Response_HeadersEntryAminoMsg): AttributeContext_Response_HeadersEntry {
1998
+ return AttributeContext_Response_HeadersEntry.fromAmino(object.value);
1999
+ },
2000
+ fromProtoMsg(message: AttributeContext_Response_HeadersEntryProtoMsg): AttributeContext_Response_HeadersEntry {
2001
+ return AttributeContext_Response_HeadersEntry.decode(message.value);
2002
+ },
2003
+ toProto(message: AttributeContext_Response_HeadersEntry): Uint8Array {
2004
+ return AttributeContext_Response_HeadersEntry.encode(message).finish();
2005
+ }
2006
+ };
2007
+ function createBaseAttributeContext_Response(): AttributeContext_Response {
2008
+ return {
2009
+ code: BigInt(0),
2010
+ size: BigInt(0),
2011
+ headers: {},
2012
+ time: undefined,
2013
+ backendLatency: undefined
2014
+ };
2015
+ }
2016
+ export const AttributeContext_Response = {
2017
+ typeUrl: "/google.rpc.context.Response",
2018
+ encode(message: AttributeContext_Response, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
2019
+ if (message.code !== BigInt(0)) {
2020
+ writer.uint32(8).int64(message.code);
2021
+ }
2022
+ if (message.size !== BigInt(0)) {
2023
+ writer.uint32(16).int64(message.size);
2024
+ }
2025
+ Object.entries(message.headers).forEach(([key, value]) => {
2026
+ AttributeContext_Response_HeadersEntry.encode({
2027
+ key: key as any,
2028
+ value
2029
+ }, writer.uint32(26).fork()).ldelim();
2030
+ });
2031
+ if (message.time !== undefined) {
2032
+ Timestamp.encode(toTimestamp(message.time), writer.uint32(34).fork()).ldelim();
2033
+ }
2034
+ if (message.backendLatency !== undefined) {
2035
+ Duration.encode(message.backendLatency, writer.uint32(42).fork()).ldelim();
2036
+ }
2037
+ return writer;
2038
+ },
2039
+ decode(input: BinaryReader | Uint8Array, length?: number): AttributeContext_Response {
2040
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2041
+ let end = length === undefined ? reader.len : reader.pos + length;
2042
+ const message = createBaseAttributeContext_Response();
2043
+ while (reader.pos < end) {
2044
+ const tag = reader.uint32();
2045
+ switch (tag >>> 3) {
2046
+ case 1:
2047
+ message.code = reader.int64();
2048
+ break;
2049
+ case 2:
2050
+ message.size = reader.int64();
2051
+ break;
2052
+ case 3:
2053
+ const entry3 = AttributeContext_Response_HeadersEntry.decode(reader, reader.uint32());
2054
+ if (entry3.value !== undefined) {
2055
+ message.headers[entry3.key] = entry3.value;
2056
+ }
2057
+ break;
2058
+ case 4:
2059
+ message.time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
2060
+ break;
2061
+ case 5:
2062
+ message.backendLatency = Duration.decode(reader, reader.uint32());
2063
+ break;
2064
+ default:
2065
+ reader.skipType(tag & 7);
2066
+ break;
2067
+ }
2068
+ }
2069
+ return message;
2070
+ },
2071
+ fromPartial(object: Partial<AttributeContext_Response>): AttributeContext_Response {
2072
+ const message = createBaseAttributeContext_Response();
2073
+ message.code = object.code !== undefined && object.code !== null ? BigInt(object.code.toString()) : BigInt(0);
2074
+ message.size = object.size !== undefined && object.size !== null ? BigInt(object.size.toString()) : BigInt(0);
2075
+ message.headers = Object.entries(object.headers ?? {}).reduce<{
2076
+ [key: string]: string;
2077
+ }>((acc, [key, value]) => {
2078
+ if (value !== undefined) {
2079
+ acc[key] = String(value);
2080
+ }
2081
+ return acc;
2082
+ }, {});
2083
+ message.time = object.time ?? undefined;
2084
+ message.backendLatency = object.backendLatency !== undefined && object.backendLatency !== null ? Duration.fromPartial(object.backendLatency) : undefined;
2085
+ return message;
2086
+ },
2087
+ fromAmino(object: AttributeContext_ResponseAmino): AttributeContext_Response {
2088
+ const message = createBaseAttributeContext_Response();
2089
+ if (object.code !== undefined && object.code !== null) {
2090
+ message.code = BigInt(object.code);
2091
+ }
2092
+ if (object.size !== undefined && object.size !== null) {
2093
+ message.size = BigInt(object.size);
2094
+ }
2095
+ message.headers = Object.entries(object.headers ?? {}).reduce<{
2096
+ [key: string]: string;
2097
+ }>((acc, [key, value]) => {
2098
+ if (value !== undefined) {
2099
+ acc[key] = String(value);
2100
+ }
2101
+ return acc;
2102
+ }, {});
2103
+ if (object.time !== undefined && object.time !== null) {
2104
+ message.time = fromTimestamp(Timestamp.fromAmino(object.time));
2105
+ }
2106
+ if (object.backend_latency !== undefined && object.backend_latency !== null) {
2107
+ message.backendLatency = Duration.fromAmino(object.backend_latency);
2108
+ }
2109
+ return message;
2110
+ },
2111
+ toAmino(message: AttributeContext_Response): AttributeContext_ResponseAmino {
2112
+ const obj: any = {};
2113
+ obj.code = message.code !== BigInt(0) ? message.code?.toString() : undefined;
2114
+ obj.size = message.size !== BigInt(0) ? message.size?.toString() : undefined;
2115
+ obj.headers = {};
2116
+ if (message.headers) {
2117
+ Object.entries(message.headers).forEach(([k, v]) => {
2118
+ obj.headers[k] = v;
2119
+ });
2120
+ }
2121
+ obj.time = message.time ? Timestamp.toAmino(toTimestamp(message.time)) : undefined;
2122
+ obj.backend_latency = message.backendLatency ? Duration.toAmino(message.backendLatency) : undefined;
2123
+ return obj;
2124
+ },
2125
+ fromAminoMsg(object: AttributeContext_ResponseAminoMsg): AttributeContext_Response {
2126
+ return AttributeContext_Response.fromAmino(object.value);
2127
+ },
2128
+ fromProtoMsg(message: AttributeContext_ResponseProtoMsg): AttributeContext_Response {
2129
+ return AttributeContext_Response.decode(message.value);
2130
+ },
2131
+ toProto(message: AttributeContext_Response): Uint8Array {
2132
+ return AttributeContext_Response.encode(message).finish();
2133
+ },
2134
+ toProtoMsg(message: AttributeContext_Response): AttributeContext_ResponseProtoMsg {
2135
+ return {
2136
+ typeUrl: "/google.rpc.context.Response",
2137
+ value: AttributeContext_Response.encode(message).finish()
2138
+ };
2139
+ }
2140
+ };
2141
+ function createBaseAttributeContext_Resource_LabelsEntry(): AttributeContext_Resource_LabelsEntry {
2142
+ return {
2143
+ key: "",
2144
+ value: ""
2145
+ };
2146
+ }
2147
+ export const AttributeContext_Resource_LabelsEntry = {
2148
+ encode(message: AttributeContext_Resource_LabelsEntry, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
2149
+ if (message.key !== "") {
2150
+ writer.uint32(10).string(message.key);
2151
+ }
2152
+ if (message.value !== "") {
2153
+ writer.uint32(18).string(message.value);
2154
+ }
2155
+ return writer;
2156
+ },
2157
+ decode(input: BinaryReader | Uint8Array, length?: number): AttributeContext_Resource_LabelsEntry {
2158
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2159
+ let end = length === undefined ? reader.len : reader.pos + length;
2160
+ const message = createBaseAttributeContext_Resource_LabelsEntry();
2161
+ while (reader.pos < end) {
2162
+ const tag = reader.uint32();
2163
+ switch (tag >>> 3) {
2164
+ case 1:
2165
+ message.key = reader.string();
2166
+ break;
2167
+ case 2:
2168
+ message.value = reader.string();
2169
+ break;
2170
+ default:
2171
+ reader.skipType(tag & 7);
2172
+ break;
2173
+ }
2174
+ }
2175
+ return message;
2176
+ },
2177
+ fromPartial(object: Partial<AttributeContext_Resource_LabelsEntry>): AttributeContext_Resource_LabelsEntry {
2178
+ const message = createBaseAttributeContext_Resource_LabelsEntry();
2179
+ message.key = object.key ?? "";
2180
+ message.value = object.value ?? "";
2181
+ return message;
2182
+ },
2183
+ fromAmino(object: AttributeContext_Resource_LabelsEntryAmino): AttributeContext_Resource_LabelsEntry {
2184
+ const message = createBaseAttributeContext_Resource_LabelsEntry();
2185
+ if (object.key !== undefined && object.key !== null) {
2186
+ message.key = object.key;
2187
+ }
2188
+ if (object.value !== undefined && object.value !== null) {
2189
+ message.value = object.value;
2190
+ }
2191
+ return message;
2192
+ },
2193
+ toAmino(message: AttributeContext_Resource_LabelsEntry): AttributeContext_Resource_LabelsEntryAmino {
2194
+ const obj: any = {};
2195
+ obj.key = message.key === "" ? undefined : message.key;
2196
+ obj.value = message.value === "" ? undefined : message.value;
2197
+ return obj;
2198
+ },
2199
+ fromAminoMsg(object: AttributeContext_Resource_LabelsEntryAminoMsg): AttributeContext_Resource_LabelsEntry {
2200
+ return AttributeContext_Resource_LabelsEntry.fromAmino(object.value);
2201
+ },
2202
+ fromProtoMsg(message: AttributeContext_Resource_LabelsEntryProtoMsg): AttributeContext_Resource_LabelsEntry {
2203
+ return AttributeContext_Resource_LabelsEntry.decode(message.value);
2204
+ },
2205
+ toProto(message: AttributeContext_Resource_LabelsEntry): Uint8Array {
2206
+ return AttributeContext_Resource_LabelsEntry.encode(message).finish();
2207
+ }
2208
+ };
2209
+ function createBaseAttributeContext_Resource_AnnotationsEntry(): AttributeContext_Resource_AnnotationsEntry {
2210
+ return {
2211
+ key: "",
2212
+ value: ""
2213
+ };
2214
+ }
2215
+ export const AttributeContext_Resource_AnnotationsEntry = {
2216
+ encode(message: AttributeContext_Resource_AnnotationsEntry, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
2217
+ if (message.key !== "") {
2218
+ writer.uint32(10).string(message.key);
2219
+ }
2220
+ if (message.value !== "") {
2221
+ writer.uint32(18).string(message.value);
2222
+ }
2223
+ return writer;
2224
+ },
2225
+ decode(input: BinaryReader | Uint8Array, length?: number): AttributeContext_Resource_AnnotationsEntry {
2226
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2227
+ let end = length === undefined ? reader.len : reader.pos + length;
2228
+ const message = createBaseAttributeContext_Resource_AnnotationsEntry();
2229
+ while (reader.pos < end) {
2230
+ const tag = reader.uint32();
2231
+ switch (tag >>> 3) {
2232
+ case 1:
2233
+ message.key = reader.string();
2234
+ break;
2235
+ case 2:
2236
+ message.value = reader.string();
2237
+ break;
2238
+ default:
2239
+ reader.skipType(tag & 7);
2240
+ break;
2241
+ }
2242
+ }
2243
+ return message;
2244
+ },
2245
+ fromPartial(object: Partial<AttributeContext_Resource_AnnotationsEntry>): AttributeContext_Resource_AnnotationsEntry {
2246
+ const message = createBaseAttributeContext_Resource_AnnotationsEntry();
2247
+ message.key = object.key ?? "";
2248
+ message.value = object.value ?? "";
2249
+ return message;
2250
+ },
2251
+ fromAmino(object: AttributeContext_Resource_AnnotationsEntryAmino): AttributeContext_Resource_AnnotationsEntry {
2252
+ const message = createBaseAttributeContext_Resource_AnnotationsEntry();
2253
+ if (object.key !== undefined && object.key !== null) {
2254
+ message.key = object.key;
2255
+ }
2256
+ if (object.value !== undefined && object.value !== null) {
2257
+ message.value = object.value;
2258
+ }
2259
+ return message;
2260
+ },
2261
+ toAmino(message: AttributeContext_Resource_AnnotationsEntry): AttributeContext_Resource_AnnotationsEntryAmino {
2262
+ const obj: any = {};
2263
+ obj.key = message.key === "" ? undefined : message.key;
2264
+ obj.value = message.value === "" ? undefined : message.value;
2265
+ return obj;
2266
+ },
2267
+ fromAminoMsg(object: AttributeContext_Resource_AnnotationsEntryAminoMsg): AttributeContext_Resource_AnnotationsEntry {
2268
+ return AttributeContext_Resource_AnnotationsEntry.fromAmino(object.value);
2269
+ },
2270
+ fromProtoMsg(message: AttributeContext_Resource_AnnotationsEntryProtoMsg): AttributeContext_Resource_AnnotationsEntry {
2271
+ return AttributeContext_Resource_AnnotationsEntry.decode(message.value);
2272
+ },
2273
+ toProto(message: AttributeContext_Resource_AnnotationsEntry): Uint8Array {
2274
+ return AttributeContext_Resource_AnnotationsEntry.encode(message).finish();
2275
+ }
2276
+ };
2277
+ function createBaseAttributeContext_Resource(): AttributeContext_Resource {
2278
+ return {
2279
+ service: "",
2280
+ name: "",
2281
+ type: "",
2282
+ labels: {},
2283
+ uid: "",
2284
+ annotations: {},
2285
+ displayName: "",
2286
+ createTime: undefined,
2287
+ updateTime: undefined,
2288
+ deleteTime: undefined,
2289
+ etag: "",
2290
+ location: ""
2291
+ };
2292
+ }
2293
+ export const AttributeContext_Resource = {
2294
+ typeUrl: "/google.rpc.context.Resource",
2295
+ encode(message: AttributeContext_Resource, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
2296
+ if (message.service !== "") {
2297
+ writer.uint32(10).string(message.service);
2298
+ }
2299
+ if (message.name !== "") {
2300
+ writer.uint32(18).string(message.name);
2301
+ }
2302
+ if (message.type !== "") {
2303
+ writer.uint32(26).string(message.type);
2304
+ }
2305
+ Object.entries(message.labels).forEach(([key, value]) => {
2306
+ AttributeContext_Resource_LabelsEntry.encode({
2307
+ key: key as any,
2308
+ value
2309
+ }, writer.uint32(34).fork()).ldelim();
2310
+ });
2311
+ if (message.uid !== "") {
2312
+ writer.uint32(42).string(message.uid);
2313
+ }
2314
+ Object.entries(message.annotations).forEach(([key, value]) => {
2315
+ AttributeContext_Resource_AnnotationsEntry.encode({
2316
+ key: key as any,
2317
+ value
2318
+ }, writer.uint32(50).fork()).ldelim();
2319
+ });
2320
+ if (message.displayName !== "") {
2321
+ writer.uint32(58).string(message.displayName);
2322
+ }
2323
+ if (message.createTime !== undefined) {
2324
+ Timestamp.encode(toTimestamp(message.createTime), writer.uint32(66).fork()).ldelim();
2325
+ }
2326
+ if (message.updateTime !== undefined) {
2327
+ Timestamp.encode(toTimestamp(message.updateTime), writer.uint32(74).fork()).ldelim();
2328
+ }
2329
+ if (message.deleteTime !== undefined) {
2330
+ Timestamp.encode(toTimestamp(message.deleteTime), writer.uint32(82).fork()).ldelim();
2331
+ }
2332
+ if (message.etag !== "") {
2333
+ writer.uint32(90).string(message.etag);
2334
+ }
2335
+ if (message.location !== "") {
2336
+ writer.uint32(98).string(message.location);
2337
+ }
2338
+ return writer;
2339
+ },
2340
+ decode(input: BinaryReader | Uint8Array, length?: number): AttributeContext_Resource {
2341
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2342
+ let end = length === undefined ? reader.len : reader.pos + length;
2343
+ const message = createBaseAttributeContext_Resource();
2344
+ while (reader.pos < end) {
2345
+ const tag = reader.uint32();
2346
+ switch (tag >>> 3) {
2347
+ case 1:
2348
+ message.service = reader.string();
2349
+ break;
2350
+ case 2:
2351
+ message.name = reader.string();
2352
+ break;
2353
+ case 3:
2354
+ message.type = reader.string();
2355
+ break;
2356
+ case 4:
2357
+ const entry4 = AttributeContext_Resource_LabelsEntry.decode(reader, reader.uint32());
2358
+ if (entry4.value !== undefined) {
2359
+ message.labels[entry4.key] = entry4.value;
2360
+ }
2361
+ break;
2362
+ case 5:
2363
+ message.uid = reader.string();
2364
+ break;
2365
+ case 6:
2366
+ const entry6 = AttributeContext_Resource_AnnotationsEntry.decode(reader, reader.uint32());
2367
+ if (entry6.value !== undefined) {
2368
+ message.annotations[entry6.key] = entry6.value;
2369
+ }
2370
+ break;
2371
+ case 7:
2372
+ message.displayName = reader.string();
2373
+ break;
2374
+ case 8:
2375
+ message.createTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
2376
+ break;
2377
+ case 9:
2378
+ message.updateTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
2379
+ break;
2380
+ case 10:
2381
+ message.deleteTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
2382
+ break;
2383
+ case 11:
2384
+ message.etag = reader.string();
2385
+ break;
2386
+ case 12:
2387
+ message.location = reader.string();
2388
+ break;
2389
+ default:
2390
+ reader.skipType(tag & 7);
2391
+ break;
2392
+ }
2393
+ }
2394
+ return message;
2395
+ },
2396
+ fromPartial(object: Partial<AttributeContext_Resource>): AttributeContext_Resource {
2397
+ const message = createBaseAttributeContext_Resource();
2398
+ message.service = object.service ?? "";
2399
+ message.name = object.name ?? "";
2400
+ message.type = object.type ?? "";
2401
+ message.labels = Object.entries(object.labels ?? {}).reduce<{
2402
+ [key: string]: string;
2403
+ }>((acc, [key, value]) => {
2404
+ if (value !== undefined) {
2405
+ acc[key] = String(value);
2406
+ }
2407
+ return acc;
2408
+ }, {});
2409
+ message.uid = object.uid ?? "";
2410
+ message.annotations = Object.entries(object.annotations ?? {}).reduce<{
2411
+ [key: string]: string;
2412
+ }>((acc, [key, value]) => {
2413
+ if (value !== undefined) {
2414
+ acc[key] = String(value);
2415
+ }
2416
+ return acc;
2417
+ }, {});
2418
+ message.displayName = object.displayName ?? "";
2419
+ message.createTime = object.createTime ?? undefined;
2420
+ message.updateTime = object.updateTime ?? undefined;
2421
+ message.deleteTime = object.deleteTime ?? undefined;
2422
+ message.etag = object.etag ?? "";
2423
+ message.location = object.location ?? "";
2424
+ return message;
2425
+ },
2426
+ fromAmino(object: AttributeContext_ResourceAmino): AttributeContext_Resource {
2427
+ const message = createBaseAttributeContext_Resource();
2428
+ if (object.service !== undefined && object.service !== null) {
2429
+ message.service = object.service;
2430
+ }
2431
+ if (object.name !== undefined && object.name !== null) {
2432
+ message.name = object.name;
2433
+ }
2434
+ if (object.type !== undefined && object.type !== null) {
2435
+ message.type = object.type;
2436
+ }
2437
+ message.labels = Object.entries(object.labels ?? {}).reduce<{
2438
+ [key: string]: string;
2439
+ }>((acc, [key, value]) => {
2440
+ if (value !== undefined) {
2441
+ acc[key] = String(value);
2442
+ }
2443
+ return acc;
2444
+ }, {});
2445
+ if (object.uid !== undefined && object.uid !== null) {
2446
+ message.uid = object.uid;
2447
+ }
2448
+ message.annotations = Object.entries(object.annotations ?? {}).reduce<{
2449
+ [key: string]: string;
2450
+ }>((acc, [key, value]) => {
2451
+ if (value !== undefined) {
2452
+ acc[key] = String(value);
2453
+ }
2454
+ return acc;
2455
+ }, {});
2456
+ if (object.display_name !== undefined && object.display_name !== null) {
2457
+ message.displayName = object.display_name;
2458
+ }
2459
+ if (object.create_time !== undefined && object.create_time !== null) {
2460
+ message.createTime = fromTimestamp(Timestamp.fromAmino(object.create_time));
2461
+ }
2462
+ if (object.update_time !== undefined && object.update_time !== null) {
2463
+ message.updateTime = fromTimestamp(Timestamp.fromAmino(object.update_time));
2464
+ }
2465
+ if (object.delete_time !== undefined && object.delete_time !== null) {
2466
+ message.deleteTime = fromTimestamp(Timestamp.fromAmino(object.delete_time));
2467
+ }
2468
+ if (object.etag !== undefined && object.etag !== null) {
2469
+ message.etag = object.etag;
2470
+ }
2471
+ if (object.location !== undefined && object.location !== null) {
2472
+ message.location = object.location;
2473
+ }
2474
+ return message;
2475
+ },
2476
+ toAmino(message: AttributeContext_Resource): AttributeContext_ResourceAmino {
2477
+ const obj: any = {};
2478
+ obj.service = message.service === "" ? undefined : message.service;
2479
+ obj.name = message.name === "" ? undefined : message.name;
2480
+ obj.type = message.type === "" ? undefined : message.type;
2481
+ obj.labels = {};
2482
+ if (message.labels) {
2483
+ Object.entries(message.labels).forEach(([k, v]) => {
2484
+ obj.labels[k] = v;
2485
+ });
2486
+ }
2487
+ obj.uid = message.uid === "" ? undefined : message.uid;
2488
+ obj.annotations = {};
2489
+ if (message.annotations) {
2490
+ Object.entries(message.annotations).forEach(([k, v]) => {
2491
+ obj.annotations[k] = v;
2492
+ });
2493
+ }
2494
+ obj.display_name = message.displayName === "" ? undefined : message.displayName;
2495
+ obj.create_time = message.createTime ? Timestamp.toAmino(toTimestamp(message.createTime)) : undefined;
2496
+ obj.update_time = message.updateTime ? Timestamp.toAmino(toTimestamp(message.updateTime)) : undefined;
2497
+ obj.delete_time = message.deleteTime ? Timestamp.toAmino(toTimestamp(message.deleteTime)) : undefined;
2498
+ obj.etag = message.etag === "" ? undefined : message.etag;
2499
+ obj.location = message.location === "" ? undefined : message.location;
2500
+ return obj;
2501
+ },
2502
+ fromAminoMsg(object: AttributeContext_ResourceAminoMsg): AttributeContext_Resource {
2503
+ return AttributeContext_Resource.fromAmino(object.value);
2504
+ },
2505
+ fromProtoMsg(message: AttributeContext_ResourceProtoMsg): AttributeContext_Resource {
2506
+ return AttributeContext_Resource.decode(message.value);
2507
+ },
2508
+ toProto(message: AttributeContext_Resource): Uint8Array {
2509
+ return AttributeContext_Resource.encode(message).finish();
2510
+ },
2511
+ toProtoMsg(message: AttributeContext_Resource): AttributeContext_ResourceProtoMsg {
2512
+ return {
2513
+ typeUrl: "/google.rpc.context.Resource",
2514
+ value: AttributeContext_Resource.encode(message).finish()
2515
+ };
2516
+ }
2517
+ };