@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,1362 @@
1
+ //@ts-nocheck
2
+ import { BinaryReader, BinaryWriter } from "../../binary";
3
+ /**
4
+ * Defines the HTTP configuration for an API service. It contains a list of
5
+ * [HttpRule][google.api.HttpRule], each specifying the mapping of an RPC method
6
+ * to one or more HTTP REST API methods.
7
+ */
8
+ export interface Http {
9
+ /**
10
+ * A list of HTTP configuration rules that apply to individual API methods.
11
+ *
12
+ * **NOTE:** All service configuration rules follow "last one wins" order.
13
+ */
14
+ rules: HttpRule[];
15
+ /**
16
+ * When set to true, URL path parameters will be fully URI-decoded except in
17
+ * cases of single segment matches in reserved expansion, where "%2F" will be
18
+ * left encoded.
19
+ *
20
+ * The default behavior is to not decode RFC 6570 reserved characters in multi
21
+ * segment matches.
22
+ */
23
+ fullyDecodeReservedExpansion: boolean;
24
+ }
25
+ export interface HttpProtoMsg {
26
+ typeUrl: "/google.api.Http";
27
+ value: Uint8Array;
28
+ }
29
+ /**
30
+ * Defines the HTTP configuration for an API service. It contains a list of
31
+ * [HttpRule][google.api.HttpRule], each specifying the mapping of an RPC method
32
+ * to one or more HTTP REST API methods.
33
+ * @name HttpAmino
34
+ * @package google.api
35
+ * @see proto type: google.api.Http
36
+ */
37
+ export interface HttpAmino {
38
+ /**
39
+ * A list of HTTP configuration rules that apply to individual API methods.
40
+ *
41
+ * **NOTE:** All service configuration rules follow "last one wins" order.
42
+ */
43
+ rules?: HttpRuleAmino[];
44
+ /**
45
+ * When set to true, URL path parameters will be fully URI-decoded except in
46
+ * cases of single segment matches in reserved expansion, where "%2F" will be
47
+ * left encoded.
48
+ *
49
+ * The default behavior is to not decode RFC 6570 reserved characters in multi
50
+ * segment matches.
51
+ */
52
+ fully_decode_reserved_expansion?: boolean;
53
+ }
54
+ export interface HttpAminoMsg {
55
+ type: "/google.api.Http";
56
+ value: HttpAmino;
57
+ }
58
+ /**
59
+ * Defines the HTTP configuration for an API service. It contains a list of
60
+ * [HttpRule][google.api.HttpRule], each specifying the mapping of an RPC method
61
+ * to one or more HTTP REST API methods.
62
+ */
63
+ export interface HttpSDKType {
64
+ rules: HttpRuleSDKType[];
65
+ fully_decode_reserved_expansion: boolean;
66
+ }
67
+ /**
68
+ * gRPC Transcoding
69
+ *
70
+ * gRPC Transcoding is a feature for mapping between a gRPC method and one or
71
+ * more HTTP REST endpoints. It allows developers to build a single API service
72
+ * that supports both gRPC APIs and REST APIs. Many systems, including [Google
73
+ * APIs](https://github.com/googleapis/googleapis),
74
+ * [Cloud Endpoints](https://cloud.google.com/endpoints), [gRPC
75
+ * Gateway](https://github.com/grpc-ecosystem/grpc-gateway),
76
+ * and [Envoy](https://github.com/envoyproxy/envoy) proxy support this feature
77
+ * and use it for large scale production services.
78
+ *
79
+ * `HttpRule` defines the schema of the gRPC/REST mapping. The mapping specifies
80
+ * how different portions of the gRPC request message are mapped to the URL
81
+ * path, URL query parameters, and HTTP request body. It also controls how the
82
+ * gRPC response message is mapped to the HTTP response body. `HttpRule` is
83
+ * typically specified as an `google.api.http` annotation on the gRPC method.
84
+ *
85
+ * Each mapping specifies a URL path template and an HTTP method. The path
86
+ * template may refer to one or more fields in the gRPC request message, as long
87
+ * as each field is a non-repeated field with a primitive (non-message) type.
88
+ * The path template controls how fields of the request message are mapped to
89
+ * the URL path.
90
+ *
91
+ * Example:
92
+ *
93
+ * service Messaging {
94
+ * rpc GetMessage(GetMessageRequest) returns (Message) {
95
+ * option (google.api.http) = {
96
+ * get: "/v1/{name=messages/*}"
97
+ * };
98
+ * }
99
+ * }
100
+ * message GetMessageRequest {
101
+ * string name = 1; // Mapped to URL path.
102
+ * }
103
+ * message Message {
104
+ * string text = 1; // The resource content.
105
+ * }
106
+ *
107
+ * This enables an HTTP REST to gRPC mapping as below:
108
+ *
109
+ * - HTTP: `GET /v1/messages/123456`
110
+ * - gRPC: `GetMessage(name: "messages/123456")`
111
+ *
112
+ * Any fields in the request message which are not bound by the path template
113
+ * automatically become HTTP query parameters if there is no HTTP request body.
114
+ * For example:
115
+ *
116
+ * service Messaging {
117
+ * rpc GetMessage(GetMessageRequest) returns (Message) {
118
+ * option (google.api.http) = {
119
+ * get:"/v1/messages/{message_id}"
120
+ * };
121
+ * }
122
+ * }
123
+ * message GetMessageRequest {
124
+ * message SubMessage {
125
+ * string subfield = 1;
126
+ * }
127
+ * string message_id = 1; // Mapped to URL path.
128
+ * int64 revision = 2; // Mapped to URL query parameter `revision`.
129
+ * SubMessage sub = 3; // Mapped to URL query parameter `sub.subfield`.
130
+ * }
131
+ *
132
+ * This enables a HTTP JSON to RPC mapping as below:
133
+ *
134
+ * - HTTP: `GET /v1/messages/123456?revision=2&sub.subfield=foo`
135
+ * - gRPC: `GetMessage(message_id: "123456" revision: 2 sub:
136
+ * SubMessage(subfield: "foo"))`
137
+ *
138
+ * Note that fields which are mapped to URL query parameters must have a
139
+ * primitive type or a repeated primitive type or a non-repeated message type.
140
+ * In the case of a repeated type, the parameter can be repeated in the URL
141
+ * as `...?param=A&param=B`. In the case of a message type, each field of the
142
+ * message is mapped to a separate parameter, such as
143
+ * `...?foo.a=A&foo.b=B&foo.c=C`.
144
+ *
145
+ * For HTTP methods that allow a request body, the `body` field
146
+ * specifies the mapping. Consider a REST update method on the
147
+ * message resource collection:
148
+ *
149
+ * service Messaging {
150
+ * rpc UpdateMessage(UpdateMessageRequest) returns (Message) {
151
+ * option (google.api.http) = {
152
+ * patch: "/v1/messages/{message_id}"
153
+ * body: "message"
154
+ * };
155
+ * }
156
+ * }
157
+ * message UpdateMessageRequest {
158
+ * string message_id = 1; // mapped to the URL
159
+ * Message message = 2; // mapped to the body
160
+ * }
161
+ *
162
+ * The following HTTP JSON to RPC mapping is enabled, where the
163
+ * representation of the JSON in the request body is determined by
164
+ * protos JSON encoding:
165
+ *
166
+ * - HTTP: `PATCH /v1/messages/123456 { "text": "Hi!" }`
167
+ * - gRPC: `UpdateMessage(message_id: "123456" message { text: "Hi!" })`
168
+ *
169
+ * The special name `*` can be used in the body mapping to define that
170
+ * every field not bound by the path template should be mapped to the
171
+ * request body. This enables the following alternative definition of
172
+ * the update method:
173
+ *
174
+ * service Messaging {
175
+ * rpc UpdateMessage(Message) returns (Message) {
176
+ * option (google.api.http) = {
177
+ * patch: "/v1/messages/{message_id}"
178
+ * body: "*"
179
+ * };
180
+ * }
181
+ * }
182
+ * message Message {
183
+ * string message_id = 1;
184
+ * string text = 2;
185
+ * }
186
+ *
187
+ *
188
+ * The following HTTP JSON to RPC mapping is enabled:
189
+ *
190
+ * - HTTP: `PATCH /v1/messages/123456 { "text": "Hi!" }`
191
+ * - gRPC: `UpdateMessage(message_id: "123456" text: "Hi!")`
192
+ *
193
+ * Note that when using `*` in the body mapping, it is not possible to
194
+ * have HTTP parameters, as all fields not bound by the path end in
195
+ * the body. This makes this option more rarely used in practice when
196
+ * defining REST APIs. The common usage of `*` is in custom methods
197
+ * which don't use the URL at all for transferring data.
198
+ *
199
+ * It is possible to define multiple HTTP methods for one RPC by using
200
+ * the `additional_bindings` option. Example:
201
+ *
202
+ * service Messaging {
203
+ * rpc GetMessage(GetMessageRequest) returns (Message) {
204
+ * option (google.api.http) = {
205
+ * get: "/v1/messages/{message_id}"
206
+ * additional_bindings {
207
+ * get: "/v1/users/{user_id}/messages/{message_id}"
208
+ * }
209
+ * };
210
+ * }
211
+ * }
212
+ * message GetMessageRequest {
213
+ * string message_id = 1;
214
+ * string user_id = 2;
215
+ * }
216
+ *
217
+ * This enables the following two alternative HTTP JSON to RPC mappings:
218
+ *
219
+ * - HTTP: `GET /v1/messages/123456`
220
+ * - gRPC: `GetMessage(message_id: "123456")`
221
+ *
222
+ * - HTTP: `GET /v1/users/me/messages/123456`
223
+ * - gRPC: `GetMessage(user_id: "me" message_id: "123456")`
224
+ *
225
+ * Rules for HTTP mapping
226
+ *
227
+ * 1. Leaf request fields (recursive expansion nested messages in the request
228
+ * message) are classified into three categories:
229
+ * - Fields referred by the path template. They are passed via the URL path.
230
+ * - Fields referred by the [HttpRule.body][google.api.HttpRule.body]. They
231
+ * are passed via the HTTP
232
+ * request body.
233
+ * - All other fields are passed via the URL query parameters, and the
234
+ * parameter name is the field path in the request message. A repeated
235
+ * field can be represented as multiple query parameters under the same
236
+ * name.
237
+ * 2. If [HttpRule.body][google.api.HttpRule.body] is "*", there is no URL
238
+ * query parameter, all fields
239
+ * are passed via URL path and HTTP request body.
240
+ * 3. If [HttpRule.body][google.api.HttpRule.body] is omitted, there is no HTTP
241
+ * request body, all
242
+ * fields are passed via URL path and URL query parameters.
243
+ *
244
+ * Path template syntax
245
+ *
246
+ * Template = "/" Segments [ Verb ] ;
247
+ * Segments = Segment { "/" Segment } ;
248
+ * Segment = "*" | "**" | LITERAL | Variable ;
249
+ * Variable = "{" FieldPath [ "=" Segments ] "}" ;
250
+ * FieldPath = IDENT { "." IDENT } ;
251
+ * Verb = ":" LITERAL ;
252
+ *
253
+ * The syntax `*` matches a single URL path segment. The syntax `**` matches
254
+ * zero or more URL path segments, which must be the last part of the URL path
255
+ * except the `Verb`.
256
+ *
257
+ * The syntax `Variable` matches part of the URL path as specified by its
258
+ * template. A variable template must not contain other variables. If a variable
259
+ * matches a single path segment, its template may be omitted, e.g. `{var}`
260
+ * is equivalent to `{var=*}`.
261
+ *
262
+ * The syntax `LITERAL` matches literal text in the URL path. If the `LITERAL`
263
+ * contains any reserved character, such characters should be percent-encoded
264
+ * before the matching.
265
+ *
266
+ * If a variable contains exactly one path segment, such as `"{var}"` or
267
+ * `"{var=*}"`, when such a variable is expanded into a URL path on the client
268
+ * side, all characters except `[-_.~0-9a-zA-Z]` are percent-encoded. The
269
+ * server side does the reverse decoding. Such variables show up in the
270
+ * [Discovery
271
+ * Document](https://developers.google.com/discovery/v1/reference/apis) as
272
+ * `{var}`.
273
+ *
274
+ * If a variable contains multiple path segments, such as `"{var=foo/*}"`
275
+ * or `"{var=**}"`, when such a variable is expanded into a URL path on the
276
+ * client side, all characters except `[-_.~/0-9a-zA-Z]` are percent-encoded.
277
+ * The server side does the reverse decoding, except "%2F" and "%2f" are left
278
+ * unchanged. Such variables show up in the
279
+ * [Discovery
280
+ * Document](https://developers.google.com/discovery/v1/reference/apis) as
281
+ * `{+var}`.
282
+ *
283
+ * Using gRPC API Service Configuration
284
+ *
285
+ * gRPC API Service Configuration (service config) is a configuration language
286
+ * for configuring a gRPC service to become a user-facing product. The
287
+ * service config is simply the YAML representation of the `google.api.Service`
288
+ * proto message.
289
+ *
290
+ * As an alternative to annotating your proto file, you can configure gRPC
291
+ * transcoding in your service config YAML files. You do this by specifying a
292
+ * `HttpRule` that maps the gRPC method to a REST endpoint, achieving the same
293
+ * effect as the proto annotation. This can be particularly useful if you
294
+ * have a proto that is reused in multiple services. Note that any transcoding
295
+ * specified in the service config will override any matching transcoding
296
+ * configuration in the proto.
297
+ *
298
+ * The following example selects a gRPC method and applies an `HttpRule` to it:
299
+ *
300
+ * http:
301
+ * rules:
302
+ * - selector: example.v1.Messaging.GetMessage
303
+ * get: /v1/messages/{message_id}/{sub.subfield}
304
+ *
305
+ * Special notes
306
+ *
307
+ * When gRPC Transcoding is used to map a gRPC to JSON REST endpoints, the
308
+ * proto to JSON conversion must follow the [proto3
309
+ * specification](https://developers.google.com/protocol-buffers/docs/proto3#json).
310
+ *
311
+ * While the single segment variable follows the semantics of
312
+ * [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.2 Simple String
313
+ * Expansion, the multi segment variable **does not** follow RFC 6570 Section
314
+ * 3.2.3 Reserved Expansion. The reason is that the Reserved Expansion
315
+ * does not expand special characters like `?` and `#`, which would lead
316
+ * to invalid URLs. As the result, gRPC Transcoding uses a custom encoding
317
+ * for multi segment variables.
318
+ *
319
+ * The path variables **must not** refer to any repeated or mapped field,
320
+ * because client libraries are not capable of handling such variable expansion.
321
+ *
322
+ * The path variables **must not** capture the leading "/" character. The reason
323
+ * is that the most common use case "{var}" does not capture the leading "/"
324
+ * character. For consistency, all path variables must share the same behavior.
325
+ *
326
+ * Repeated message fields must not be mapped to URL query parameters, because
327
+ * no client library can support such complicated mapping.
328
+ *
329
+ * If an API needs to use a JSON array for request or response body, it can map
330
+ * the request or response body to a repeated field. However, some gRPC
331
+ * Transcoding implementations may not support this feature.
332
+ */
333
+ export interface HttpRule {
334
+ /**
335
+ * Selects a method to which this rule applies.
336
+ *
337
+ * Refer to [selector][google.api.DocumentationRule.selector] for syntax
338
+ * details.
339
+ */
340
+ selector: string;
341
+ /**
342
+ * Maps to HTTP GET. Used for listing and getting information about
343
+ * resources.
344
+ */
345
+ get?: string;
346
+ /** Maps to HTTP PUT. Used for replacing a resource. */
347
+ put?: string;
348
+ /** Maps to HTTP POST. Used for creating a resource or performing an action. */
349
+ post?: string;
350
+ /** Maps to HTTP DELETE. Used for deleting a resource. */
351
+ delete?: string;
352
+ /** Maps to HTTP PATCH. Used for updating a resource. */
353
+ patch?: string;
354
+ /**
355
+ * The custom pattern is used for specifying an HTTP method that is not
356
+ * included in the `pattern` field, such as HEAD, or "*" to leave the
357
+ * HTTP method unspecified for this rule. The wild-card rule is useful
358
+ * for services that provide content to Web (HTML) clients.
359
+ */
360
+ custom?: CustomHttpPattern;
361
+ /**
362
+ * The name of the request field whose value is mapped to the HTTP request
363
+ * body, or `*` for mapping all request fields not captured by the path
364
+ * pattern to the HTTP body, or omitted for not having any HTTP request body.
365
+ *
366
+ * NOTE: the referred field must be present at the top-level of the request
367
+ * message type.
368
+ */
369
+ body: string;
370
+ /**
371
+ * Optional. The name of the response field whose value is mapped to the HTTP
372
+ * response body. When omitted, the entire response message will be used
373
+ * as the HTTP response body.
374
+ *
375
+ * NOTE: The referred field must be present at the top-level of the response
376
+ * message type.
377
+ */
378
+ responseBody: string;
379
+ /**
380
+ * Additional HTTP bindings for the selector. Nested bindings must
381
+ * not contain an `additional_bindings` field themselves (that is,
382
+ * the nesting may only be one level deep).
383
+ */
384
+ additionalBindings: HttpRule[];
385
+ }
386
+ export interface HttpRuleProtoMsg {
387
+ typeUrl: "/google.api.HttpRule";
388
+ value: Uint8Array;
389
+ }
390
+ /**
391
+ * gRPC Transcoding
392
+ *
393
+ * gRPC Transcoding is a feature for mapping between a gRPC method and one or
394
+ * more HTTP REST endpoints. It allows developers to build a single API service
395
+ * that supports both gRPC APIs and REST APIs. Many systems, including [Google
396
+ * APIs](https://github.com/googleapis/googleapis),
397
+ * [Cloud Endpoints](https://cloud.google.com/endpoints), [gRPC
398
+ * Gateway](https://github.com/grpc-ecosystem/grpc-gateway),
399
+ * and [Envoy](https://github.com/envoyproxy/envoy) proxy support this feature
400
+ * and use it for large scale production services.
401
+ *
402
+ * `HttpRule` defines the schema of the gRPC/REST mapping. The mapping specifies
403
+ * how different portions of the gRPC request message are mapped to the URL
404
+ * path, URL query parameters, and HTTP request body. It also controls how the
405
+ * gRPC response message is mapped to the HTTP response body. `HttpRule` is
406
+ * typically specified as an `google.api.http` annotation on the gRPC method.
407
+ *
408
+ * Each mapping specifies a URL path template and an HTTP method. The path
409
+ * template may refer to one or more fields in the gRPC request message, as long
410
+ * as each field is a non-repeated field with a primitive (non-message) type.
411
+ * The path template controls how fields of the request message are mapped to
412
+ * the URL path.
413
+ *
414
+ * Example:
415
+ *
416
+ * service Messaging {
417
+ * rpc GetMessage(GetMessageRequest) returns (Message) {
418
+ * option (google.api.http) = {
419
+ * get: "/v1/{name=messages/*}"
420
+ * };
421
+ * }
422
+ * }
423
+ * message GetMessageRequest {
424
+ * string name = 1; // Mapped to URL path.
425
+ * }
426
+ * message Message {
427
+ * string text = 1; // The resource content.
428
+ * }
429
+ *
430
+ * This enables an HTTP REST to gRPC mapping as below:
431
+ *
432
+ * - HTTP: `GET /v1/messages/123456`
433
+ * - gRPC: `GetMessage(name: "messages/123456")`
434
+ *
435
+ * Any fields in the request message which are not bound by the path template
436
+ * automatically become HTTP query parameters if there is no HTTP request body.
437
+ * For example:
438
+ *
439
+ * service Messaging {
440
+ * rpc GetMessage(GetMessageRequest) returns (Message) {
441
+ * option (google.api.http) = {
442
+ * get:"/v1/messages/{message_id}"
443
+ * };
444
+ * }
445
+ * }
446
+ * message GetMessageRequest {
447
+ * message SubMessage {
448
+ * string subfield = 1;
449
+ * }
450
+ * string message_id = 1; // Mapped to URL path.
451
+ * int64 revision = 2; // Mapped to URL query parameter `revision`.
452
+ * SubMessage sub = 3; // Mapped to URL query parameter `sub.subfield`.
453
+ * }
454
+ *
455
+ * This enables a HTTP JSON to RPC mapping as below:
456
+ *
457
+ * - HTTP: `GET /v1/messages/123456?revision=2&sub.subfield=foo`
458
+ * - gRPC: `GetMessage(message_id: "123456" revision: 2 sub:
459
+ * SubMessage(subfield: "foo"))`
460
+ *
461
+ * Note that fields which are mapped to URL query parameters must have a
462
+ * primitive type or a repeated primitive type or a non-repeated message type.
463
+ * In the case of a repeated type, the parameter can be repeated in the URL
464
+ * as `...?param=A&param=B`. In the case of a message type, each field of the
465
+ * message is mapped to a separate parameter, such as
466
+ * `...?foo.a=A&foo.b=B&foo.c=C`.
467
+ *
468
+ * For HTTP methods that allow a request body, the `body` field
469
+ * specifies the mapping. Consider a REST update method on the
470
+ * message resource collection:
471
+ *
472
+ * service Messaging {
473
+ * rpc UpdateMessage(UpdateMessageRequest) returns (Message) {
474
+ * option (google.api.http) = {
475
+ * patch: "/v1/messages/{message_id}"
476
+ * body: "message"
477
+ * };
478
+ * }
479
+ * }
480
+ * message UpdateMessageRequest {
481
+ * string message_id = 1; // mapped to the URL
482
+ * Message message = 2; // mapped to the body
483
+ * }
484
+ *
485
+ * The following HTTP JSON to RPC mapping is enabled, where the
486
+ * representation of the JSON in the request body is determined by
487
+ * protos JSON encoding:
488
+ *
489
+ * - HTTP: `PATCH /v1/messages/123456 { "text": "Hi!" }`
490
+ * - gRPC: `UpdateMessage(message_id: "123456" message { text: "Hi!" })`
491
+ *
492
+ * The special name `*` can be used in the body mapping to define that
493
+ * every field not bound by the path template should be mapped to the
494
+ * request body. This enables the following alternative definition of
495
+ * the update method:
496
+ *
497
+ * service Messaging {
498
+ * rpc UpdateMessage(Message) returns (Message) {
499
+ * option (google.api.http) = {
500
+ * patch: "/v1/messages/{message_id}"
501
+ * body: "*"
502
+ * };
503
+ * }
504
+ * }
505
+ * message Message {
506
+ * string message_id = 1;
507
+ * string text = 2;
508
+ * }
509
+ *
510
+ *
511
+ * The following HTTP JSON to RPC mapping is enabled:
512
+ *
513
+ * - HTTP: `PATCH /v1/messages/123456 { "text": "Hi!" }`
514
+ * - gRPC: `UpdateMessage(message_id: "123456" text: "Hi!")`
515
+ *
516
+ * Note that when using `*` in the body mapping, it is not possible to
517
+ * have HTTP parameters, as all fields not bound by the path end in
518
+ * the body. This makes this option more rarely used in practice when
519
+ * defining REST APIs. The common usage of `*` is in custom methods
520
+ * which don't use the URL at all for transferring data.
521
+ *
522
+ * It is possible to define multiple HTTP methods for one RPC by using
523
+ * the `additional_bindings` option. Example:
524
+ *
525
+ * service Messaging {
526
+ * rpc GetMessage(GetMessageRequest) returns (Message) {
527
+ * option (google.api.http) = {
528
+ * get: "/v1/messages/{message_id}"
529
+ * additional_bindings {
530
+ * get: "/v1/users/{user_id}/messages/{message_id}"
531
+ * }
532
+ * };
533
+ * }
534
+ * }
535
+ * message GetMessageRequest {
536
+ * string message_id = 1;
537
+ * string user_id = 2;
538
+ * }
539
+ *
540
+ * This enables the following two alternative HTTP JSON to RPC mappings:
541
+ *
542
+ * - HTTP: `GET /v1/messages/123456`
543
+ * - gRPC: `GetMessage(message_id: "123456")`
544
+ *
545
+ * - HTTP: `GET /v1/users/me/messages/123456`
546
+ * - gRPC: `GetMessage(user_id: "me" message_id: "123456")`
547
+ *
548
+ * Rules for HTTP mapping
549
+ *
550
+ * 1. Leaf request fields (recursive expansion nested messages in the request
551
+ * message) are classified into three categories:
552
+ * - Fields referred by the path template. They are passed via the URL path.
553
+ * - Fields referred by the [HttpRule.body][google.api.HttpRule.body]. They
554
+ * are passed via the HTTP
555
+ * request body.
556
+ * - All other fields are passed via the URL query parameters, and the
557
+ * parameter name is the field path in the request message. A repeated
558
+ * field can be represented as multiple query parameters under the same
559
+ * name.
560
+ * 2. If [HttpRule.body][google.api.HttpRule.body] is "*", there is no URL
561
+ * query parameter, all fields
562
+ * are passed via URL path and HTTP request body.
563
+ * 3. If [HttpRule.body][google.api.HttpRule.body] is omitted, there is no HTTP
564
+ * request body, all
565
+ * fields are passed via URL path and URL query parameters.
566
+ *
567
+ * Path template syntax
568
+ *
569
+ * Template = "/" Segments [ Verb ] ;
570
+ * Segments = Segment { "/" Segment } ;
571
+ * Segment = "*" | "**" | LITERAL | Variable ;
572
+ * Variable = "{" FieldPath [ "=" Segments ] "}" ;
573
+ * FieldPath = IDENT { "." IDENT } ;
574
+ * Verb = ":" LITERAL ;
575
+ *
576
+ * The syntax `*` matches a single URL path segment. The syntax `**` matches
577
+ * zero or more URL path segments, which must be the last part of the URL path
578
+ * except the `Verb`.
579
+ *
580
+ * The syntax `Variable` matches part of the URL path as specified by its
581
+ * template. A variable template must not contain other variables. If a variable
582
+ * matches a single path segment, its template may be omitted, e.g. `{var}`
583
+ * is equivalent to `{var=*}`.
584
+ *
585
+ * The syntax `LITERAL` matches literal text in the URL path. If the `LITERAL`
586
+ * contains any reserved character, such characters should be percent-encoded
587
+ * before the matching.
588
+ *
589
+ * If a variable contains exactly one path segment, such as `"{var}"` or
590
+ * `"{var=*}"`, when such a variable is expanded into a URL path on the client
591
+ * side, all characters except `[-_.~0-9a-zA-Z]` are percent-encoded. The
592
+ * server side does the reverse decoding. Such variables show up in the
593
+ * [Discovery
594
+ * Document](https://developers.google.com/discovery/v1/reference/apis) as
595
+ * `{var}`.
596
+ *
597
+ * If a variable contains multiple path segments, such as `"{var=foo/*}"`
598
+ * or `"{var=**}"`, when such a variable is expanded into a URL path on the
599
+ * client side, all characters except `[-_.~/0-9a-zA-Z]` are percent-encoded.
600
+ * The server side does the reverse decoding, except "%2F" and "%2f" are left
601
+ * unchanged. Such variables show up in the
602
+ * [Discovery
603
+ * Document](https://developers.google.com/discovery/v1/reference/apis) as
604
+ * `{+var}`.
605
+ *
606
+ * Using gRPC API Service Configuration
607
+ *
608
+ * gRPC API Service Configuration (service config) is a configuration language
609
+ * for configuring a gRPC service to become a user-facing product. The
610
+ * service config is simply the YAML representation of the `google.api.Service`
611
+ * proto message.
612
+ *
613
+ * As an alternative to annotating your proto file, you can configure gRPC
614
+ * transcoding in your service config YAML files. You do this by specifying a
615
+ * `HttpRule` that maps the gRPC method to a REST endpoint, achieving the same
616
+ * effect as the proto annotation. This can be particularly useful if you
617
+ * have a proto that is reused in multiple services. Note that any transcoding
618
+ * specified in the service config will override any matching transcoding
619
+ * configuration in the proto.
620
+ *
621
+ * The following example selects a gRPC method and applies an `HttpRule` to it:
622
+ *
623
+ * http:
624
+ * rules:
625
+ * - selector: example.v1.Messaging.GetMessage
626
+ * get: /v1/messages/{message_id}/{sub.subfield}
627
+ *
628
+ * Special notes
629
+ *
630
+ * When gRPC Transcoding is used to map a gRPC to JSON REST endpoints, the
631
+ * proto to JSON conversion must follow the [proto3
632
+ * specification](https://developers.google.com/protocol-buffers/docs/proto3#json).
633
+ *
634
+ * While the single segment variable follows the semantics of
635
+ * [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.2 Simple String
636
+ * Expansion, the multi segment variable **does not** follow RFC 6570 Section
637
+ * 3.2.3 Reserved Expansion. The reason is that the Reserved Expansion
638
+ * does not expand special characters like `?` and `#`, which would lead
639
+ * to invalid URLs. As the result, gRPC Transcoding uses a custom encoding
640
+ * for multi segment variables.
641
+ *
642
+ * The path variables **must not** refer to any repeated or mapped field,
643
+ * because client libraries are not capable of handling such variable expansion.
644
+ *
645
+ * The path variables **must not** capture the leading "/" character. The reason
646
+ * is that the most common use case "{var}" does not capture the leading "/"
647
+ * character. For consistency, all path variables must share the same behavior.
648
+ *
649
+ * Repeated message fields must not be mapped to URL query parameters, because
650
+ * no client library can support such complicated mapping.
651
+ *
652
+ * If an API needs to use a JSON array for request or response body, it can map
653
+ * the request or response body to a repeated field. However, some gRPC
654
+ * Transcoding implementations may not support this feature.
655
+ * @name HttpRuleAmino
656
+ * @package google.api
657
+ * @see proto type: google.api.HttpRule
658
+ */
659
+ export interface HttpRuleAmino {
660
+ /**
661
+ * Selects a method to which this rule applies.
662
+ *
663
+ * Refer to [selector][google.api.DocumentationRule.selector] for syntax
664
+ * details.
665
+ */
666
+ selector?: string;
667
+ /**
668
+ * Maps to HTTP GET. Used for listing and getting information about
669
+ * resources.
670
+ */
671
+ get?: string;
672
+ /**
673
+ * Maps to HTTP PUT. Used for replacing a resource.
674
+ */
675
+ put?: string;
676
+ /**
677
+ * Maps to HTTP POST. Used for creating a resource or performing an action.
678
+ */
679
+ post?: string;
680
+ /**
681
+ * Maps to HTTP DELETE. Used for deleting a resource.
682
+ */
683
+ delete?: string;
684
+ /**
685
+ * Maps to HTTP PATCH. Used for updating a resource.
686
+ */
687
+ patch?: string;
688
+ /**
689
+ * The custom pattern is used for specifying an HTTP method that is not
690
+ * included in the `pattern` field, such as HEAD, or "*" to leave the
691
+ * HTTP method unspecified for this rule. The wild-card rule is useful
692
+ * for services that provide content to Web (HTML) clients.
693
+ */
694
+ custom?: CustomHttpPatternAmino;
695
+ /**
696
+ * The name of the request field whose value is mapped to the HTTP request
697
+ * body, or `*` for mapping all request fields not captured by the path
698
+ * pattern to the HTTP body, or omitted for not having any HTTP request body.
699
+ *
700
+ * NOTE: the referred field must be present at the top-level of the request
701
+ * message type.
702
+ */
703
+ body?: string;
704
+ /**
705
+ * Optional. The name of the response field whose value is mapped to the HTTP
706
+ * response body. When omitted, the entire response message will be used
707
+ * as the HTTP response body.
708
+ *
709
+ * NOTE: The referred field must be present at the top-level of the response
710
+ * message type.
711
+ */
712
+ response_body?: string;
713
+ /**
714
+ * Additional HTTP bindings for the selector. Nested bindings must
715
+ * not contain an `additional_bindings` field themselves (that is,
716
+ * the nesting may only be one level deep).
717
+ */
718
+ additional_bindings?: HttpRuleAmino[];
719
+ }
720
+ export interface HttpRuleAminoMsg {
721
+ type: "/google.api.HttpRule";
722
+ value: HttpRuleAmino;
723
+ }
724
+ /**
725
+ * gRPC Transcoding
726
+ *
727
+ * gRPC Transcoding is a feature for mapping between a gRPC method and one or
728
+ * more HTTP REST endpoints. It allows developers to build a single API service
729
+ * that supports both gRPC APIs and REST APIs. Many systems, including [Google
730
+ * APIs](https://github.com/googleapis/googleapis),
731
+ * [Cloud Endpoints](https://cloud.google.com/endpoints), [gRPC
732
+ * Gateway](https://github.com/grpc-ecosystem/grpc-gateway),
733
+ * and [Envoy](https://github.com/envoyproxy/envoy) proxy support this feature
734
+ * and use it for large scale production services.
735
+ *
736
+ * `HttpRule` defines the schema of the gRPC/REST mapping. The mapping specifies
737
+ * how different portions of the gRPC request message are mapped to the URL
738
+ * path, URL query parameters, and HTTP request body. It also controls how the
739
+ * gRPC response message is mapped to the HTTP response body. `HttpRule` is
740
+ * typically specified as an `google.api.http` annotation on the gRPC method.
741
+ *
742
+ * Each mapping specifies a URL path template and an HTTP method. The path
743
+ * template may refer to one or more fields in the gRPC request message, as long
744
+ * as each field is a non-repeated field with a primitive (non-message) type.
745
+ * The path template controls how fields of the request message are mapped to
746
+ * the URL path.
747
+ *
748
+ * Example:
749
+ *
750
+ * service Messaging {
751
+ * rpc GetMessage(GetMessageRequest) returns (Message) {
752
+ * option (google.api.http) = {
753
+ * get: "/v1/{name=messages/*}"
754
+ * };
755
+ * }
756
+ * }
757
+ * message GetMessageRequest {
758
+ * string name = 1; // Mapped to URL path.
759
+ * }
760
+ * message Message {
761
+ * string text = 1; // The resource content.
762
+ * }
763
+ *
764
+ * This enables an HTTP REST to gRPC mapping as below:
765
+ *
766
+ * - HTTP: `GET /v1/messages/123456`
767
+ * - gRPC: `GetMessage(name: "messages/123456")`
768
+ *
769
+ * Any fields in the request message which are not bound by the path template
770
+ * automatically become HTTP query parameters if there is no HTTP request body.
771
+ * For example:
772
+ *
773
+ * service Messaging {
774
+ * rpc GetMessage(GetMessageRequest) returns (Message) {
775
+ * option (google.api.http) = {
776
+ * get:"/v1/messages/{message_id}"
777
+ * };
778
+ * }
779
+ * }
780
+ * message GetMessageRequest {
781
+ * message SubMessage {
782
+ * string subfield = 1;
783
+ * }
784
+ * string message_id = 1; // Mapped to URL path.
785
+ * int64 revision = 2; // Mapped to URL query parameter `revision`.
786
+ * SubMessage sub = 3; // Mapped to URL query parameter `sub.subfield`.
787
+ * }
788
+ *
789
+ * This enables a HTTP JSON to RPC mapping as below:
790
+ *
791
+ * - HTTP: `GET /v1/messages/123456?revision=2&sub.subfield=foo`
792
+ * - gRPC: `GetMessage(message_id: "123456" revision: 2 sub:
793
+ * SubMessage(subfield: "foo"))`
794
+ *
795
+ * Note that fields which are mapped to URL query parameters must have a
796
+ * primitive type or a repeated primitive type or a non-repeated message type.
797
+ * In the case of a repeated type, the parameter can be repeated in the URL
798
+ * as `...?param=A&param=B`. In the case of a message type, each field of the
799
+ * message is mapped to a separate parameter, such as
800
+ * `...?foo.a=A&foo.b=B&foo.c=C`.
801
+ *
802
+ * For HTTP methods that allow a request body, the `body` field
803
+ * specifies the mapping. Consider a REST update method on the
804
+ * message resource collection:
805
+ *
806
+ * service Messaging {
807
+ * rpc UpdateMessage(UpdateMessageRequest) returns (Message) {
808
+ * option (google.api.http) = {
809
+ * patch: "/v1/messages/{message_id}"
810
+ * body: "message"
811
+ * };
812
+ * }
813
+ * }
814
+ * message UpdateMessageRequest {
815
+ * string message_id = 1; // mapped to the URL
816
+ * Message message = 2; // mapped to the body
817
+ * }
818
+ *
819
+ * The following HTTP JSON to RPC mapping is enabled, where the
820
+ * representation of the JSON in the request body is determined by
821
+ * protos JSON encoding:
822
+ *
823
+ * - HTTP: `PATCH /v1/messages/123456 { "text": "Hi!" }`
824
+ * - gRPC: `UpdateMessage(message_id: "123456" message { text: "Hi!" })`
825
+ *
826
+ * The special name `*` can be used in the body mapping to define that
827
+ * every field not bound by the path template should be mapped to the
828
+ * request body. This enables the following alternative definition of
829
+ * the update method:
830
+ *
831
+ * service Messaging {
832
+ * rpc UpdateMessage(Message) returns (Message) {
833
+ * option (google.api.http) = {
834
+ * patch: "/v1/messages/{message_id}"
835
+ * body: "*"
836
+ * };
837
+ * }
838
+ * }
839
+ * message Message {
840
+ * string message_id = 1;
841
+ * string text = 2;
842
+ * }
843
+ *
844
+ *
845
+ * The following HTTP JSON to RPC mapping is enabled:
846
+ *
847
+ * - HTTP: `PATCH /v1/messages/123456 { "text": "Hi!" }`
848
+ * - gRPC: `UpdateMessage(message_id: "123456" text: "Hi!")`
849
+ *
850
+ * Note that when using `*` in the body mapping, it is not possible to
851
+ * have HTTP parameters, as all fields not bound by the path end in
852
+ * the body. This makes this option more rarely used in practice when
853
+ * defining REST APIs. The common usage of `*` is in custom methods
854
+ * which don't use the URL at all for transferring data.
855
+ *
856
+ * It is possible to define multiple HTTP methods for one RPC by using
857
+ * the `additional_bindings` option. Example:
858
+ *
859
+ * service Messaging {
860
+ * rpc GetMessage(GetMessageRequest) returns (Message) {
861
+ * option (google.api.http) = {
862
+ * get: "/v1/messages/{message_id}"
863
+ * additional_bindings {
864
+ * get: "/v1/users/{user_id}/messages/{message_id}"
865
+ * }
866
+ * };
867
+ * }
868
+ * }
869
+ * message GetMessageRequest {
870
+ * string message_id = 1;
871
+ * string user_id = 2;
872
+ * }
873
+ *
874
+ * This enables the following two alternative HTTP JSON to RPC mappings:
875
+ *
876
+ * - HTTP: `GET /v1/messages/123456`
877
+ * - gRPC: `GetMessage(message_id: "123456")`
878
+ *
879
+ * - HTTP: `GET /v1/users/me/messages/123456`
880
+ * - gRPC: `GetMessage(user_id: "me" message_id: "123456")`
881
+ *
882
+ * Rules for HTTP mapping
883
+ *
884
+ * 1. Leaf request fields (recursive expansion nested messages in the request
885
+ * message) are classified into three categories:
886
+ * - Fields referred by the path template. They are passed via the URL path.
887
+ * - Fields referred by the [HttpRule.body][google.api.HttpRule.body]. They
888
+ * are passed via the HTTP
889
+ * request body.
890
+ * - All other fields are passed via the URL query parameters, and the
891
+ * parameter name is the field path in the request message. A repeated
892
+ * field can be represented as multiple query parameters under the same
893
+ * name.
894
+ * 2. If [HttpRule.body][google.api.HttpRule.body] is "*", there is no URL
895
+ * query parameter, all fields
896
+ * are passed via URL path and HTTP request body.
897
+ * 3. If [HttpRule.body][google.api.HttpRule.body] is omitted, there is no HTTP
898
+ * request body, all
899
+ * fields are passed via URL path and URL query parameters.
900
+ *
901
+ * Path template syntax
902
+ *
903
+ * Template = "/" Segments [ Verb ] ;
904
+ * Segments = Segment { "/" Segment } ;
905
+ * Segment = "*" | "**" | LITERAL | Variable ;
906
+ * Variable = "{" FieldPath [ "=" Segments ] "}" ;
907
+ * FieldPath = IDENT { "." IDENT } ;
908
+ * Verb = ":" LITERAL ;
909
+ *
910
+ * The syntax `*` matches a single URL path segment. The syntax `**` matches
911
+ * zero or more URL path segments, which must be the last part of the URL path
912
+ * except the `Verb`.
913
+ *
914
+ * The syntax `Variable` matches part of the URL path as specified by its
915
+ * template. A variable template must not contain other variables. If a variable
916
+ * matches a single path segment, its template may be omitted, e.g. `{var}`
917
+ * is equivalent to `{var=*}`.
918
+ *
919
+ * The syntax `LITERAL` matches literal text in the URL path. If the `LITERAL`
920
+ * contains any reserved character, such characters should be percent-encoded
921
+ * before the matching.
922
+ *
923
+ * If a variable contains exactly one path segment, such as `"{var}"` or
924
+ * `"{var=*}"`, when such a variable is expanded into a URL path on the client
925
+ * side, all characters except `[-_.~0-9a-zA-Z]` are percent-encoded. The
926
+ * server side does the reverse decoding. Such variables show up in the
927
+ * [Discovery
928
+ * Document](https://developers.google.com/discovery/v1/reference/apis) as
929
+ * `{var}`.
930
+ *
931
+ * If a variable contains multiple path segments, such as `"{var=foo/*}"`
932
+ * or `"{var=**}"`, when such a variable is expanded into a URL path on the
933
+ * client side, all characters except `[-_.~/0-9a-zA-Z]` are percent-encoded.
934
+ * The server side does the reverse decoding, except "%2F" and "%2f" are left
935
+ * unchanged. Such variables show up in the
936
+ * [Discovery
937
+ * Document](https://developers.google.com/discovery/v1/reference/apis) as
938
+ * `{+var}`.
939
+ *
940
+ * Using gRPC API Service Configuration
941
+ *
942
+ * gRPC API Service Configuration (service config) is a configuration language
943
+ * for configuring a gRPC service to become a user-facing product. The
944
+ * service config is simply the YAML representation of the `google.api.Service`
945
+ * proto message.
946
+ *
947
+ * As an alternative to annotating your proto file, you can configure gRPC
948
+ * transcoding in your service config YAML files. You do this by specifying a
949
+ * `HttpRule` that maps the gRPC method to a REST endpoint, achieving the same
950
+ * effect as the proto annotation. This can be particularly useful if you
951
+ * have a proto that is reused in multiple services. Note that any transcoding
952
+ * specified in the service config will override any matching transcoding
953
+ * configuration in the proto.
954
+ *
955
+ * The following example selects a gRPC method and applies an `HttpRule` to it:
956
+ *
957
+ * http:
958
+ * rules:
959
+ * - selector: example.v1.Messaging.GetMessage
960
+ * get: /v1/messages/{message_id}/{sub.subfield}
961
+ *
962
+ * Special notes
963
+ *
964
+ * When gRPC Transcoding is used to map a gRPC to JSON REST endpoints, the
965
+ * proto to JSON conversion must follow the [proto3
966
+ * specification](https://developers.google.com/protocol-buffers/docs/proto3#json).
967
+ *
968
+ * While the single segment variable follows the semantics of
969
+ * [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.2 Simple String
970
+ * Expansion, the multi segment variable **does not** follow RFC 6570 Section
971
+ * 3.2.3 Reserved Expansion. The reason is that the Reserved Expansion
972
+ * does not expand special characters like `?` and `#`, which would lead
973
+ * to invalid URLs. As the result, gRPC Transcoding uses a custom encoding
974
+ * for multi segment variables.
975
+ *
976
+ * The path variables **must not** refer to any repeated or mapped field,
977
+ * because client libraries are not capable of handling such variable expansion.
978
+ *
979
+ * The path variables **must not** capture the leading "/" character. The reason
980
+ * is that the most common use case "{var}" does not capture the leading "/"
981
+ * character. For consistency, all path variables must share the same behavior.
982
+ *
983
+ * Repeated message fields must not be mapped to URL query parameters, because
984
+ * no client library can support such complicated mapping.
985
+ *
986
+ * If an API needs to use a JSON array for request or response body, it can map
987
+ * the request or response body to a repeated field. However, some gRPC
988
+ * Transcoding implementations may not support this feature.
989
+ */
990
+ export interface HttpRuleSDKType {
991
+ selector: string;
992
+ get?: string;
993
+ put?: string;
994
+ post?: string;
995
+ delete?: string;
996
+ patch?: string;
997
+ custom?: CustomHttpPatternSDKType;
998
+ body: string;
999
+ response_body: string;
1000
+ additional_bindings: HttpRuleSDKType[];
1001
+ }
1002
+ /** A custom pattern is used for defining custom HTTP verb. */
1003
+ export interface CustomHttpPattern {
1004
+ /** The name of this custom HTTP verb. */
1005
+ kind: string;
1006
+ /** The path matched by this custom verb. */
1007
+ path: string;
1008
+ }
1009
+ export interface CustomHttpPatternProtoMsg {
1010
+ typeUrl: "/google.api.CustomHttpPattern";
1011
+ value: Uint8Array;
1012
+ }
1013
+ /**
1014
+ * A custom pattern is used for defining custom HTTP verb.
1015
+ * @name CustomHttpPatternAmino
1016
+ * @package google.api
1017
+ * @see proto type: google.api.CustomHttpPattern
1018
+ */
1019
+ export interface CustomHttpPatternAmino {
1020
+ /**
1021
+ * The name of this custom HTTP verb.
1022
+ */
1023
+ kind?: string;
1024
+ /**
1025
+ * The path matched by this custom verb.
1026
+ */
1027
+ path?: string;
1028
+ }
1029
+ export interface CustomHttpPatternAminoMsg {
1030
+ type: "/google.api.CustomHttpPattern";
1031
+ value: CustomHttpPatternAmino;
1032
+ }
1033
+ /** A custom pattern is used for defining custom HTTP verb. */
1034
+ export interface CustomHttpPatternSDKType {
1035
+ kind: string;
1036
+ path: string;
1037
+ }
1038
+ function createBaseHttp(): Http {
1039
+ return {
1040
+ rules: [],
1041
+ fullyDecodeReservedExpansion: false
1042
+ };
1043
+ }
1044
+ export const Http = {
1045
+ typeUrl: "/google.api.Http",
1046
+ encode(message: Http, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1047
+ for (const v of message.rules) {
1048
+ HttpRule.encode(v!, writer.uint32(10).fork()).ldelim();
1049
+ }
1050
+ if (message.fullyDecodeReservedExpansion === true) {
1051
+ writer.uint32(16).bool(message.fullyDecodeReservedExpansion);
1052
+ }
1053
+ return writer;
1054
+ },
1055
+ decode(input: BinaryReader | Uint8Array, length?: number): Http {
1056
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1057
+ let end = length === undefined ? reader.len : reader.pos + length;
1058
+ const message = createBaseHttp();
1059
+ while (reader.pos < end) {
1060
+ const tag = reader.uint32();
1061
+ switch (tag >>> 3) {
1062
+ case 1:
1063
+ message.rules.push(HttpRule.decode(reader, reader.uint32()));
1064
+ break;
1065
+ case 2:
1066
+ message.fullyDecodeReservedExpansion = reader.bool();
1067
+ break;
1068
+ default:
1069
+ reader.skipType(tag & 7);
1070
+ break;
1071
+ }
1072
+ }
1073
+ return message;
1074
+ },
1075
+ fromPartial(object: Partial<Http>): Http {
1076
+ const message = createBaseHttp();
1077
+ message.rules = object.rules?.map(e => HttpRule.fromPartial(e)) || [];
1078
+ message.fullyDecodeReservedExpansion = object.fullyDecodeReservedExpansion ?? false;
1079
+ return message;
1080
+ },
1081
+ fromAmino(object: HttpAmino): Http {
1082
+ const message = createBaseHttp();
1083
+ message.rules = object.rules?.map(e => HttpRule.fromAmino(e)) || [];
1084
+ if (object.fully_decode_reserved_expansion !== undefined && object.fully_decode_reserved_expansion !== null) {
1085
+ message.fullyDecodeReservedExpansion = object.fully_decode_reserved_expansion;
1086
+ }
1087
+ return message;
1088
+ },
1089
+ toAmino(message: Http): HttpAmino {
1090
+ const obj: any = {};
1091
+ if (message.rules) {
1092
+ obj.rules = message.rules.map(e => e ? HttpRule.toAmino(e) : undefined);
1093
+ } else {
1094
+ obj.rules = message.rules;
1095
+ }
1096
+ obj.fully_decode_reserved_expansion = message.fullyDecodeReservedExpansion === false ? undefined : message.fullyDecodeReservedExpansion;
1097
+ return obj;
1098
+ },
1099
+ fromAminoMsg(object: HttpAminoMsg): Http {
1100
+ return Http.fromAmino(object.value);
1101
+ },
1102
+ fromProtoMsg(message: HttpProtoMsg): Http {
1103
+ return Http.decode(message.value);
1104
+ },
1105
+ toProto(message: Http): Uint8Array {
1106
+ return Http.encode(message).finish();
1107
+ },
1108
+ toProtoMsg(message: Http): HttpProtoMsg {
1109
+ return {
1110
+ typeUrl: "/google.api.Http",
1111
+ value: Http.encode(message).finish()
1112
+ };
1113
+ }
1114
+ };
1115
+ function createBaseHttpRule(): HttpRule {
1116
+ return {
1117
+ selector: "",
1118
+ get: undefined,
1119
+ put: undefined,
1120
+ post: undefined,
1121
+ delete: undefined,
1122
+ patch: undefined,
1123
+ custom: undefined,
1124
+ body: "",
1125
+ responseBody: "",
1126
+ additionalBindings: []
1127
+ };
1128
+ }
1129
+ export const HttpRule = {
1130
+ typeUrl: "/google.api.HttpRule",
1131
+ encode(message: HttpRule, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1132
+ if (message.selector !== "") {
1133
+ writer.uint32(10).string(message.selector);
1134
+ }
1135
+ if (message.get !== undefined) {
1136
+ writer.uint32(18).string(message.get);
1137
+ }
1138
+ if (message.put !== undefined) {
1139
+ writer.uint32(26).string(message.put);
1140
+ }
1141
+ if (message.post !== undefined) {
1142
+ writer.uint32(34).string(message.post);
1143
+ }
1144
+ if (message.delete !== undefined) {
1145
+ writer.uint32(42).string(message.delete);
1146
+ }
1147
+ if (message.patch !== undefined) {
1148
+ writer.uint32(50).string(message.patch);
1149
+ }
1150
+ if (message.custom !== undefined) {
1151
+ CustomHttpPattern.encode(message.custom, writer.uint32(66).fork()).ldelim();
1152
+ }
1153
+ if (message.body !== "") {
1154
+ writer.uint32(58).string(message.body);
1155
+ }
1156
+ if (message.responseBody !== "") {
1157
+ writer.uint32(98).string(message.responseBody);
1158
+ }
1159
+ for (const v of message.additionalBindings) {
1160
+ HttpRule.encode(v!, writer.uint32(90).fork()).ldelim();
1161
+ }
1162
+ return writer;
1163
+ },
1164
+ decode(input: BinaryReader | Uint8Array, length?: number): HttpRule {
1165
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1166
+ let end = length === undefined ? reader.len : reader.pos + length;
1167
+ const message = createBaseHttpRule();
1168
+ while (reader.pos < end) {
1169
+ const tag = reader.uint32();
1170
+ switch (tag >>> 3) {
1171
+ case 1:
1172
+ message.selector = reader.string();
1173
+ break;
1174
+ case 2:
1175
+ message.get = reader.string();
1176
+ break;
1177
+ case 3:
1178
+ message.put = reader.string();
1179
+ break;
1180
+ case 4:
1181
+ message.post = reader.string();
1182
+ break;
1183
+ case 5:
1184
+ message.delete = reader.string();
1185
+ break;
1186
+ case 6:
1187
+ message.patch = reader.string();
1188
+ break;
1189
+ case 8:
1190
+ message.custom = CustomHttpPattern.decode(reader, reader.uint32());
1191
+ break;
1192
+ case 7:
1193
+ message.body = reader.string();
1194
+ break;
1195
+ case 12:
1196
+ message.responseBody = reader.string();
1197
+ break;
1198
+ case 11:
1199
+ message.additionalBindings.push(HttpRule.decode(reader, reader.uint32()));
1200
+ break;
1201
+ default:
1202
+ reader.skipType(tag & 7);
1203
+ break;
1204
+ }
1205
+ }
1206
+ return message;
1207
+ },
1208
+ fromPartial(object: Partial<HttpRule>): HttpRule {
1209
+ const message = createBaseHttpRule();
1210
+ message.selector = object.selector ?? "";
1211
+ message.get = object.get ?? undefined;
1212
+ message.put = object.put ?? undefined;
1213
+ message.post = object.post ?? undefined;
1214
+ message.delete = object.delete ?? undefined;
1215
+ message.patch = object.patch ?? undefined;
1216
+ message.custom = object.custom !== undefined && object.custom !== null ? CustomHttpPattern.fromPartial(object.custom) : undefined;
1217
+ message.body = object.body ?? "";
1218
+ message.responseBody = object.responseBody ?? "";
1219
+ message.additionalBindings = object.additionalBindings?.map(e => HttpRule.fromPartial(e)) || [];
1220
+ return message;
1221
+ },
1222
+ fromAmino(object: HttpRuleAmino): HttpRule {
1223
+ const message = createBaseHttpRule();
1224
+ if (object.selector !== undefined && object.selector !== null) {
1225
+ message.selector = object.selector;
1226
+ }
1227
+ if (object.get !== undefined && object.get !== null) {
1228
+ message.get = object.get;
1229
+ }
1230
+ if (object.put !== undefined && object.put !== null) {
1231
+ message.put = object.put;
1232
+ }
1233
+ if (object.post !== undefined && object.post !== null) {
1234
+ message.post = object.post;
1235
+ }
1236
+ if (object.delete !== undefined && object.delete !== null) {
1237
+ message.delete = object.delete;
1238
+ }
1239
+ if (object.patch !== undefined && object.patch !== null) {
1240
+ message.patch = object.patch;
1241
+ }
1242
+ if (object.custom !== undefined && object.custom !== null) {
1243
+ message.custom = CustomHttpPattern.fromAmino(object.custom);
1244
+ }
1245
+ if (object.body !== undefined && object.body !== null) {
1246
+ message.body = object.body;
1247
+ }
1248
+ if (object.response_body !== undefined && object.response_body !== null) {
1249
+ message.responseBody = object.response_body;
1250
+ }
1251
+ message.additionalBindings = object.additional_bindings?.map(e => HttpRule.fromAmino(e)) || [];
1252
+ return message;
1253
+ },
1254
+ toAmino(message: HttpRule): HttpRuleAmino {
1255
+ const obj: any = {};
1256
+ obj.selector = message.selector === "" ? undefined : message.selector;
1257
+ obj.get = message.get === null ? undefined : message.get;
1258
+ obj.put = message.put === null ? undefined : message.put;
1259
+ obj.post = message.post === null ? undefined : message.post;
1260
+ obj.delete = message.delete === null ? undefined : message.delete;
1261
+ obj.patch = message.patch === null ? undefined : message.patch;
1262
+ obj.custom = message.custom ? CustomHttpPattern.toAmino(message.custom) : undefined;
1263
+ obj.body = message.body === "" ? undefined : message.body;
1264
+ obj.response_body = message.responseBody === "" ? undefined : message.responseBody;
1265
+ if (message.additionalBindings) {
1266
+ obj.additional_bindings = message.additionalBindings.map(e => e ? HttpRule.toAmino(e) : undefined);
1267
+ } else {
1268
+ obj.additional_bindings = message.additionalBindings;
1269
+ }
1270
+ return obj;
1271
+ },
1272
+ fromAminoMsg(object: HttpRuleAminoMsg): HttpRule {
1273
+ return HttpRule.fromAmino(object.value);
1274
+ },
1275
+ fromProtoMsg(message: HttpRuleProtoMsg): HttpRule {
1276
+ return HttpRule.decode(message.value);
1277
+ },
1278
+ toProto(message: HttpRule): Uint8Array {
1279
+ return HttpRule.encode(message).finish();
1280
+ },
1281
+ toProtoMsg(message: HttpRule): HttpRuleProtoMsg {
1282
+ return {
1283
+ typeUrl: "/google.api.HttpRule",
1284
+ value: HttpRule.encode(message).finish()
1285
+ };
1286
+ }
1287
+ };
1288
+ function createBaseCustomHttpPattern(): CustomHttpPattern {
1289
+ return {
1290
+ kind: "",
1291
+ path: ""
1292
+ };
1293
+ }
1294
+ export const CustomHttpPattern = {
1295
+ typeUrl: "/google.api.CustomHttpPattern",
1296
+ encode(message: CustomHttpPattern, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1297
+ if (message.kind !== "") {
1298
+ writer.uint32(10).string(message.kind);
1299
+ }
1300
+ if (message.path !== "") {
1301
+ writer.uint32(18).string(message.path);
1302
+ }
1303
+ return writer;
1304
+ },
1305
+ decode(input: BinaryReader | Uint8Array, length?: number): CustomHttpPattern {
1306
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1307
+ let end = length === undefined ? reader.len : reader.pos + length;
1308
+ const message = createBaseCustomHttpPattern();
1309
+ while (reader.pos < end) {
1310
+ const tag = reader.uint32();
1311
+ switch (tag >>> 3) {
1312
+ case 1:
1313
+ message.kind = reader.string();
1314
+ break;
1315
+ case 2:
1316
+ message.path = reader.string();
1317
+ break;
1318
+ default:
1319
+ reader.skipType(tag & 7);
1320
+ break;
1321
+ }
1322
+ }
1323
+ return message;
1324
+ },
1325
+ fromPartial(object: Partial<CustomHttpPattern>): CustomHttpPattern {
1326
+ const message = createBaseCustomHttpPattern();
1327
+ message.kind = object.kind ?? "";
1328
+ message.path = object.path ?? "";
1329
+ return message;
1330
+ },
1331
+ fromAmino(object: CustomHttpPatternAmino): CustomHttpPattern {
1332
+ const message = createBaseCustomHttpPattern();
1333
+ if (object.kind !== undefined && object.kind !== null) {
1334
+ message.kind = object.kind;
1335
+ }
1336
+ if (object.path !== undefined && object.path !== null) {
1337
+ message.path = object.path;
1338
+ }
1339
+ return message;
1340
+ },
1341
+ toAmino(message: CustomHttpPattern): CustomHttpPatternAmino {
1342
+ const obj: any = {};
1343
+ obj.kind = message.kind === "" ? undefined : message.kind;
1344
+ obj.path = message.path === "" ? undefined : message.path;
1345
+ return obj;
1346
+ },
1347
+ fromAminoMsg(object: CustomHttpPatternAminoMsg): CustomHttpPattern {
1348
+ return CustomHttpPattern.fromAmino(object.value);
1349
+ },
1350
+ fromProtoMsg(message: CustomHttpPatternProtoMsg): CustomHttpPattern {
1351
+ return CustomHttpPattern.decode(message.value);
1352
+ },
1353
+ toProto(message: CustomHttpPattern): Uint8Array {
1354
+ return CustomHttpPattern.encode(message).finish();
1355
+ },
1356
+ toProtoMsg(message: CustomHttpPattern): CustomHttpPatternProtoMsg {
1357
+ return {
1358
+ typeUrl: "/google.api.CustomHttpPattern",
1359
+ value: CustomHttpPattern.encode(message).finish()
1360
+ };
1361
+ }
1362
+ };