@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,3100 @@
1
+ //@ts-nocheck
2
+ import { LaunchStage } from "./launch_stage";
3
+ import { Duration, DurationAmino, DurationSDKType } from "../protobuf/duration";
4
+ import { BinaryReader, BinaryWriter } from "../../binary";
5
+ /**
6
+ * The organization for which the client libraries are being published.
7
+ * Affects the url where generated docs are published, etc.
8
+ */
9
+ export enum ClientLibraryOrganization {
10
+ /** CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED - Not useful. */
11
+ CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED = 0,
12
+ /** CLOUD - Google Cloud Platform Org. */
13
+ CLOUD = 1,
14
+ /** ADS - Ads (Advertising) Org. */
15
+ ADS = 2,
16
+ /** PHOTOS - Photos Org. */
17
+ PHOTOS = 3,
18
+ /** STREET_VIEW - Street View Org. */
19
+ STREET_VIEW = 4,
20
+ /** SHOPPING - Shopping Org. */
21
+ SHOPPING = 5,
22
+ /** GEO - Geo Org. */
23
+ GEO = 6,
24
+ /** GENERATIVE_AI - Generative AI - https://developers.generativeai.google */
25
+ GENERATIVE_AI = 7,
26
+ UNRECOGNIZED = -1,
27
+ }
28
+ export const ClientLibraryOrganizationSDKType = ClientLibraryOrganization;
29
+ export const ClientLibraryOrganizationAmino = ClientLibraryOrganization;
30
+ export function clientLibraryOrganizationFromJSON(object: any): ClientLibraryOrganization {
31
+ switch (object) {
32
+ case 0:
33
+ case "CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED":
34
+ return ClientLibraryOrganization.CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED;
35
+ case 1:
36
+ case "CLOUD":
37
+ return ClientLibraryOrganization.CLOUD;
38
+ case 2:
39
+ case "ADS":
40
+ return ClientLibraryOrganization.ADS;
41
+ case 3:
42
+ case "PHOTOS":
43
+ return ClientLibraryOrganization.PHOTOS;
44
+ case 4:
45
+ case "STREET_VIEW":
46
+ return ClientLibraryOrganization.STREET_VIEW;
47
+ case 5:
48
+ case "SHOPPING":
49
+ return ClientLibraryOrganization.SHOPPING;
50
+ case 6:
51
+ case "GEO":
52
+ return ClientLibraryOrganization.GEO;
53
+ case 7:
54
+ case "GENERATIVE_AI":
55
+ return ClientLibraryOrganization.GENERATIVE_AI;
56
+ case -1:
57
+ case "UNRECOGNIZED":
58
+ default:
59
+ return ClientLibraryOrganization.UNRECOGNIZED;
60
+ }
61
+ }
62
+ export function clientLibraryOrganizationToJSON(object: ClientLibraryOrganization): string {
63
+ switch (object) {
64
+ case ClientLibraryOrganization.CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED:
65
+ return "CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED";
66
+ case ClientLibraryOrganization.CLOUD:
67
+ return "CLOUD";
68
+ case ClientLibraryOrganization.ADS:
69
+ return "ADS";
70
+ case ClientLibraryOrganization.PHOTOS:
71
+ return "PHOTOS";
72
+ case ClientLibraryOrganization.STREET_VIEW:
73
+ return "STREET_VIEW";
74
+ case ClientLibraryOrganization.SHOPPING:
75
+ return "SHOPPING";
76
+ case ClientLibraryOrganization.GEO:
77
+ return "GEO";
78
+ case ClientLibraryOrganization.GENERATIVE_AI:
79
+ return "GENERATIVE_AI";
80
+ case ClientLibraryOrganization.UNRECOGNIZED:
81
+ default:
82
+ return "UNRECOGNIZED";
83
+ }
84
+ }
85
+ /** To where should client libraries be published? */
86
+ export enum ClientLibraryDestination {
87
+ /**
88
+ * CLIENT_LIBRARY_DESTINATION_UNSPECIFIED - Client libraries will neither be generated nor published to package
89
+ * managers.
90
+ */
91
+ CLIENT_LIBRARY_DESTINATION_UNSPECIFIED = 0,
92
+ /**
93
+ * GITHUB - Generate the client library in a repo under github.com/googleapis,
94
+ * but don't publish it to package managers.
95
+ */
96
+ GITHUB = 10,
97
+ /** PACKAGE_MANAGER - Publish the library to package managers like nuget.org and npmjs.com. */
98
+ PACKAGE_MANAGER = 20,
99
+ UNRECOGNIZED = -1,
100
+ }
101
+ export const ClientLibraryDestinationSDKType = ClientLibraryDestination;
102
+ export const ClientLibraryDestinationAmino = ClientLibraryDestination;
103
+ export function clientLibraryDestinationFromJSON(object: any): ClientLibraryDestination {
104
+ switch (object) {
105
+ case 0:
106
+ case "CLIENT_LIBRARY_DESTINATION_UNSPECIFIED":
107
+ return ClientLibraryDestination.CLIENT_LIBRARY_DESTINATION_UNSPECIFIED;
108
+ case 10:
109
+ case "GITHUB":
110
+ return ClientLibraryDestination.GITHUB;
111
+ case 20:
112
+ case "PACKAGE_MANAGER":
113
+ return ClientLibraryDestination.PACKAGE_MANAGER;
114
+ case -1:
115
+ case "UNRECOGNIZED":
116
+ default:
117
+ return ClientLibraryDestination.UNRECOGNIZED;
118
+ }
119
+ }
120
+ export function clientLibraryDestinationToJSON(object: ClientLibraryDestination): string {
121
+ switch (object) {
122
+ case ClientLibraryDestination.CLIENT_LIBRARY_DESTINATION_UNSPECIFIED:
123
+ return "CLIENT_LIBRARY_DESTINATION_UNSPECIFIED";
124
+ case ClientLibraryDestination.GITHUB:
125
+ return "GITHUB";
126
+ case ClientLibraryDestination.PACKAGE_MANAGER:
127
+ return "PACKAGE_MANAGER";
128
+ case ClientLibraryDestination.UNRECOGNIZED:
129
+ default:
130
+ return "UNRECOGNIZED";
131
+ }
132
+ }
133
+ /** Required information for every language. */
134
+ export interface CommonLanguageSettings {
135
+ /**
136
+ * Link to automatically generated reference documentation. Example:
137
+ * https://cloud.google.com/nodejs/docs/reference/asset/latest
138
+ */
139
+ /** @deprecated */
140
+ referenceDocsUri: string;
141
+ /** The destination where API teams want this client library to be published. */
142
+ destinations: ClientLibraryDestination[];
143
+ /** Configuration for which RPCs should be generated in the GAPIC client. */
144
+ selectiveGapicGeneration?: SelectiveGapicGeneration;
145
+ }
146
+ export interface CommonLanguageSettingsProtoMsg {
147
+ typeUrl: "/google.api.CommonLanguageSettings";
148
+ value: Uint8Array;
149
+ }
150
+ /**
151
+ * Required information for every language.
152
+ * @name CommonLanguageSettingsAmino
153
+ * @package google.api
154
+ * @see proto type: google.api.CommonLanguageSettings
155
+ */
156
+ export interface CommonLanguageSettingsAmino {
157
+ /**
158
+ * Link to automatically generated reference documentation. Example:
159
+ * https://cloud.google.com/nodejs/docs/reference/asset/latest
160
+ * @deprecated
161
+ */
162
+ reference_docs_uri?: string;
163
+ /**
164
+ * The destination where API teams want this client library to be published.
165
+ */
166
+ destinations?: ClientLibraryDestination[];
167
+ /**
168
+ * Configuration for which RPCs should be generated in the GAPIC client.
169
+ */
170
+ selective_gapic_generation?: SelectiveGapicGenerationAmino;
171
+ }
172
+ export interface CommonLanguageSettingsAminoMsg {
173
+ type: "/google.api.CommonLanguageSettings";
174
+ value: CommonLanguageSettingsAmino;
175
+ }
176
+ /** Required information for every language. */
177
+ export interface CommonLanguageSettingsSDKType {
178
+ /** @deprecated */
179
+ reference_docs_uri: string;
180
+ destinations: ClientLibraryDestination[];
181
+ selective_gapic_generation?: SelectiveGapicGenerationSDKType;
182
+ }
183
+ /** Details about how and where to publish client libraries. */
184
+ export interface ClientLibrarySettings {
185
+ /**
186
+ * Version of the API to apply these settings to. This is the full protobuf
187
+ * package for the API, ending in the version element.
188
+ * Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1".
189
+ */
190
+ version: string;
191
+ /** Launch stage of this version of the API. */
192
+ launchStage: LaunchStage;
193
+ /**
194
+ * When using transport=rest, the client request will encode enums as
195
+ * numbers rather than strings.
196
+ */
197
+ restNumericEnums: boolean;
198
+ /** Settings for legacy Java features, supported in the Service YAML. */
199
+ javaSettings?: JavaSettings;
200
+ /** Settings for C++ client libraries. */
201
+ cppSettings?: CppSettings;
202
+ /** Settings for PHP client libraries. */
203
+ phpSettings?: PhpSettings;
204
+ /** Settings for Python client libraries. */
205
+ pythonSettings?: PythonSettings;
206
+ /** Settings for Node client libraries. */
207
+ nodeSettings?: NodeSettings;
208
+ /** Settings for .NET client libraries. */
209
+ dotnetSettings?: DotnetSettings;
210
+ /** Settings for Ruby client libraries. */
211
+ rubySettings?: RubySettings;
212
+ /** Settings for Go client libraries. */
213
+ goSettings?: GoSettings;
214
+ }
215
+ export interface ClientLibrarySettingsProtoMsg {
216
+ typeUrl: "/google.api.ClientLibrarySettings";
217
+ value: Uint8Array;
218
+ }
219
+ /**
220
+ * Details about how and where to publish client libraries.
221
+ * @name ClientLibrarySettingsAmino
222
+ * @package google.api
223
+ * @see proto type: google.api.ClientLibrarySettings
224
+ */
225
+ export interface ClientLibrarySettingsAmino {
226
+ /**
227
+ * Version of the API to apply these settings to. This is the full protobuf
228
+ * package for the API, ending in the version element.
229
+ * Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1".
230
+ */
231
+ version?: string;
232
+ /**
233
+ * Launch stage of this version of the API.
234
+ */
235
+ launch_stage?: LaunchStage;
236
+ /**
237
+ * When using transport=rest, the client request will encode enums as
238
+ * numbers rather than strings.
239
+ */
240
+ rest_numeric_enums?: boolean;
241
+ /**
242
+ * Settings for legacy Java features, supported in the Service YAML.
243
+ */
244
+ java_settings?: JavaSettingsAmino;
245
+ /**
246
+ * Settings for C++ client libraries.
247
+ */
248
+ cpp_settings?: CppSettingsAmino;
249
+ /**
250
+ * Settings for PHP client libraries.
251
+ */
252
+ php_settings?: PhpSettingsAmino;
253
+ /**
254
+ * Settings for Python client libraries.
255
+ */
256
+ python_settings?: PythonSettingsAmino;
257
+ /**
258
+ * Settings for Node client libraries.
259
+ */
260
+ node_settings?: NodeSettingsAmino;
261
+ /**
262
+ * Settings for .NET client libraries.
263
+ */
264
+ dotnet_settings?: DotnetSettingsAmino;
265
+ /**
266
+ * Settings for Ruby client libraries.
267
+ */
268
+ ruby_settings?: RubySettingsAmino;
269
+ /**
270
+ * Settings for Go client libraries.
271
+ */
272
+ go_settings?: GoSettingsAmino;
273
+ }
274
+ export interface ClientLibrarySettingsAminoMsg {
275
+ type: "/google.api.ClientLibrarySettings";
276
+ value: ClientLibrarySettingsAmino;
277
+ }
278
+ /** Details about how and where to publish client libraries. */
279
+ export interface ClientLibrarySettingsSDKType {
280
+ version: string;
281
+ launch_stage: LaunchStage;
282
+ rest_numeric_enums: boolean;
283
+ java_settings?: JavaSettingsSDKType;
284
+ cpp_settings?: CppSettingsSDKType;
285
+ php_settings?: PhpSettingsSDKType;
286
+ python_settings?: PythonSettingsSDKType;
287
+ node_settings?: NodeSettingsSDKType;
288
+ dotnet_settings?: DotnetSettingsSDKType;
289
+ ruby_settings?: RubySettingsSDKType;
290
+ go_settings?: GoSettingsSDKType;
291
+ }
292
+ /**
293
+ * This message configures the settings for publishing [Google Cloud Client
294
+ * libraries](https://cloud.google.com/apis/docs/cloud-client-libraries)
295
+ * generated from the service config.
296
+ */
297
+ export interface Publishing {
298
+ /**
299
+ * A list of API method settings, e.g. the behavior for methods that use the
300
+ * long-running operation pattern.
301
+ */
302
+ methodSettings: MethodSettings[];
303
+ /**
304
+ * Link to a *public* URI where users can report issues. Example:
305
+ * https://issuetracker.google.com/issues/new?component=190865&template=1161103
306
+ */
307
+ newIssueUri: string;
308
+ /**
309
+ * Link to product home page. Example:
310
+ * https://cloud.google.com/asset-inventory/docs/overview
311
+ */
312
+ documentationUri: string;
313
+ /**
314
+ * Used as a tracking tag when collecting data about the APIs developer
315
+ * relations artifacts like docs, packages delivered to package managers,
316
+ * etc. Example: "speech".
317
+ */
318
+ apiShortName: string;
319
+ /** GitHub label to apply to issues and pull requests opened for this API. */
320
+ githubLabel: string;
321
+ /**
322
+ * GitHub teams to be added to CODEOWNERS in the directory in GitHub
323
+ * containing source code for the client libraries for this API.
324
+ */
325
+ codeownerGithubTeams: string[];
326
+ /**
327
+ * A prefix used in sample code when demarking regions to be included in
328
+ * documentation.
329
+ */
330
+ docTagPrefix: string;
331
+ /** For whom the client library is being published. */
332
+ organization: ClientLibraryOrganization;
333
+ /**
334
+ * Client library settings. If the same version string appears multiple
335
+ * times in this list, then the last one wins. Settings from earlier
336
+ * settings with the same version string are discarded.
337
+ */
338
+ librarySettings: ClientLibrarySettings[];
339
+ /**
340
+ * Optional link to proto reference documentation. Example:
341
+ * https://cloud.google.com/pubsub/lite/docs/reference/rpc
342
+ */
343
+ protoReferenceDocumentationUri: string;
344
+ /**
345
+ * Optional link to REST reference documentation. Example:
346
+ * https://cloud.google.com/pubsub/lite/docs/reference/rest
347
+ */
348
+ restReferenceDocumentationUri: string;
349
+ }
350
+ export interface PublishingProtoMsg {
351
+ typeUrl: "/google.api.Publishing";
352
+ value: Uint8Array;
353
+ }
354
+ /**
355
+ * This message configures the settings for publishing [Google Cloud Client
356
+ * libraries](https://cloud.google.com/apis/docs/cloud-client-libraries)
357
+ * generated from the service config.
358
+ * @name PublishingAmino
359
+ * @package google.api
360
+ * @see proto type: google.api.Publishing
361
+ */
362
+ export interface PublishingAmino {
363
+ /**
364
+ * A list of API method settings, e.g. the behavior for methods that use the
365
+ * long-running operation pattern.
366
+ */
367
+ method_settings?: MethodSettingsAmino[];
368
+ /**
369
+ * Link to a *public* URI where users can report issues. Example:
370
+ * https://issuetracker.google.com/issues/new?component=190865&template=1161103
371
+ */
372
+ new_issue_uri?: string;
373
+ /**
374
+ * Link to product home page. Example:
375
+ * https://cloud.google.com/asset-inventory/docs/overview
376
+ */
377
+ documentation_uri?: string;
378
+ /**
379
+ * Used as a tracking tag when collecting data about the APIs developer
380
+ * relations artifacts like docs, packages delivered to package managers,
381
+ * etc. Example: "speech".
382
+ */
383
+ api_short_name?: string;
384
+ /**
385
+ * GitHub label to apply to issues and pull requests opened for this API.
386
+ */
387
+ github_label?: string;
388
+ /**
389
+ * GitHub teams to be added to CODEOWNERS in the directory in GitHub
390
+ * containing source code for the client libraries for this API.
391
+ */
392
+ codeowner_github_teams?: string[];
393
+ /**
394
+ * A prefix used in sample code when demarking regions to be included in
395
+ * documentation.
396
+ */
397
+ doc_tag_prefix?: string;
398
+ /**
399
+ * For whom the client library is being published.
400
+ */
401
+ organization?: ClientLibraryOrganization;
402
+ /**
403
+ * Client library settings. If the same version string appears multiple
404
+ * times in this list, then the last one wins. Settings from earlier
405
+ * settings with the same version string are discarded.
406
+ */
407
+ library_settings?: ClientLibrarySettingsAmino[];
408
+ /**
409
+ * Optional link to proto reference documentation. Example:
410
+ * https://cloud.google.com/pubsub/lite/docs/reference/rpc
411
+ */
412
+ proto_reference_documentation_uri?: string;
413
+ /**
414
+ * Optional link to REST reference documentation. Example:
415
+ * https://cloud.google.com/pubsub/lite/docs/reference/rest
416
+ */
417
+ rest_reference_documentation_uri?: string;
418
+ }
419
+ export interface PublishingAminoMsg {
420
+ type: "/google.api.Publishing";
421
+ value: PublishingAmino;
422
+ }
423
+ /**
424
+ * This message configures the settings for publishing [Google Cloud Client
425
+ * libraries](https://cloud.google.com/apis/docs/cloud-client-libraries)
426
+ * generated from the service config.
427
+ */
428
+ export interface PublishingSDKType {
429
+ method_settings: MethodSettingsSDKType[];
430
+ new_issue_uri: string;
431
+ documentation_uri: string;
432
+ api_short_name: string;
433
+ github_label: string;
434
+ codeowner_github_teams: string[];
435
+ doc_tag_prefix: string;
436
+ organization: ClientLibraryOrganization;
437
+ library_settings: ClientLibrarySettingsSDKType[];
438
+ proto_reference_documentation_uri: string;
439
+ rest_reference_documentation_uri: string;
440
+ }
441
+ export interface JavaSettings_ServiceClassNamesEntry {
442
+ key: string;
443
+ value: string;
444
+ }
445
+ export interface JavaSettings_ServiceClassNamesEntryProtoMsg {
446
+ typeUrl: string;
447
+ value: Uint8Array;
448
+ }
449
+ /**
450
+ * @name JavaSettings_ServiceClassNamesEntryAmino
451
+ * @package google.api
452
+ * @see proto type: google.api.JavaSettings_ServiceClassNamesEntry
453
+ */
454
+ export interface JavaSettings_ServiceClassNamesEntryAmino {
455
+ key?: string;
456
+ value?: string;
457
+ }
458
+ export interface JavaSettings_ServiceClassNamesEntryAminoMsg {
459
+ type: string;
460
+ value: JavaSettings_ServiceClassNamesEntryAmino;
461
+ }
462
+ export interface JavaSettings_ServiceClassNamesEntrySDKType {
463
+ key: string;
464
+ value: string;
465
+ }
466
+ /** Settings for Java client libraries. */
467
+ export interface JavaSettings {
468
+ /**
469
+ * The package name to use in Java. Clobbers the java_package option
470
+ * set in the protobuf. This should be used **only** by APIs
471
+ * who have already set the language_settings.java.package_name" field
472
+ * in gapic.yaml. API teams should use the protobuf java_package option
473
+ * where possible.
474
+ *
475
+ * Example of a YAML configuration::
476
+ *
477
+ * publishing:
478
+ * java_settings:
479
+ * library_package: com.google.cloud.pubsub.v1
480
+ */
481
+ libraryPackage: string;
482
+ /**
483
+ * Configure the Java class name to use instead of the service's for its
484
+ * corresponding generated GAPIC client. Keys are fully-qualified
485
+ * service names as they appear in the protobuf (including the full
486
+ * the language_settings.java.interface_names" field in gapic.yaml. API
487
+ * teams should otherwise use the service name as it appears in the
488
+ * protobuf.
489
+ *
490
+ * Example of a YAML configuration::
491
+ *
492
+ * publishing:
493
+ * java_settings:
494
+ * service_class_names:
495
+ * - google.pubsub.v1.Publisher: TopicAdmin
496
+ * - google.pubsub.v1.Subscriber: SubscriptionAdmin
497
+ */
498
+ serviceClassNames: {
499
+ [key: string]: string;
500
+ };
501
+ /** Some settings. */
502
+ common?: CommonLanguageSettings;
503
+ }
504
+ export interface JavaSettingsProtoMsg {
505
+ typeUrl: "/google.api.JavaSettings";
506
+ value: Uint8Array;
507
+ }
508
+ /**
509
+ * Settings for Java client libraries.
510
+ * @name JavaSettingsAmino
511
+ * @package google.api
512
+ * @see proto type: google.api.JavaSettings
513
+ */
514
+ export interface JavaSettingsAmino {
515
+ /**
516
+ * The package name to use in Java. Clobbers the java_package option
517
+ * set in the protobuf. This should be used **only** by APIs
518
+ * who have already set the language_settings.java.package_name" field
519
+ * in gapic.yaml. API teams should use the protobuf java_package option
520
+ * where possible.
521
+ *
522
+ * Example of a YAML configuration::
523
+ *
524
+ * publishing:
525
+ * java_settings:
526
+ * library_package: com.google.cloud.pubsub.v1
527
+ */
528
+ library_package?: string;
529
+ /**
530
+ * Configure the Java class name to use instead of the service's for its
531
+ * corresponding generated GAPIC client. Keys are fully-qualified
532
+ * service names as they appear in the protobuf (including the full
533
+ * the language_settings.java.interface_names" field in gapic.yaml. API
534
+ * teams should otherwise use the service name as it appears in the
535
+ * protobuf.
536
+ *
537
+ * Example of a YAML configuration::
538
+ *
539
+ * publishing:
540
+ * java_settings:
541
+ * service_class_names:
542
+ * - google.pubsub.v1.Publisher: TopicAdmin
543
+ * - google.pubsub.v1.Subscriber: SubscriptionAdmin
544
+ */
545
+ service_class_names?: {
546
+ [key: string]: string;
547
+ };
548
+ /**
549
+ * Some settings.
550
+ */
551
+ common?: CommonLanguageSettingsAmino;
552
+ }
553
+ export interface JavaSettingsAminoMsg {
554
+ type: "/google.api.JavaSettings";
555
+ value: JavaSettingsAmino;
556
+ }
557
+ /** Settings for Java client libraries. */
558
+ export interface JavaSettingsSDKType {
559
+ library_package: string;
560
+ service_class_names: {
561
+ [key: string]: string;
562
+ };
563
+ common?: CommonLanguageSettingsSDKType;
564
+ }
565
+ /** Settings for C++ client libraries. */
566
+ export interface CppSettings {
567
+ /** Some settings. */
568
+ common?: CommonLanguageSettings;
569
+ }
570
+ export interface CppSettingsProtoMsg {
571
+ typeUrl: "/google.api.CppSettings";
572
+ value: Uint8Array;
573
+ }
574
+ /**
575
+ * Settings for C++ client libraries.
576
+ * @name CppSettingsAmino
577
+ * @package google.api
578
+ * @see proto type: google.api.CppSettings
579
+ */
580
+ export interface CppSettingsAmino {
581
+ /**
582
+ * Some settings.
583
+ */
584
+ common?: CommonLanguageSettingsAmino;
585
+ }
586
+ export interface CppSettingsAminoMsg {
587
+ type: "/google.api.CppSettings";
588
+ value: CppSettingsAmino;
589
+ }
590
+ /** Settings for C++ client libraries. */
591
+ export interface CppSettingsSDKType {
592
+ common?: CommonLanguageSettingsSDKType;
593
+ }
594
+ /** Settings for Php client libraries. */
595
+ export interface PhpSettings {
596
+ /** Some settings. */
597
+ common?: CommonLanguageSettings;
598
+ }
599
+ export interface PhpSettingsProtoMsg {
600
+ typeUrl: "/google.api.PhpSettings";
601
+ value: Uint8Array;
602
+ }
603
+ /**
604
+ * Settings for Php client libraries.
605
+ * @name PhpSettingsAmino
606
+ * @package google.api
607
+ * @see proto type: google.api.PhpSettings
608
+ */
609
+ export interface PhpSettingsAmino {
610
+ /**
611
+ * Some settings.
612
+ */
613
+ common?: CommonLanguageSettingsAmino;
614
+ }
615
+ export interface PhpSettingsAminoMsg {
616
+ type: "/google.api.PhpSettings";
617
+ value: PhpSettingsAmino;
618
+ }
619
+ /** Settings for Php client libraries. */
620
+ export interface PhpSettingsSDKType {
621
+ common?: CommonLanguageSettingsSDKType;
622
+ }
623
+ /** Settings for Python client libraries. */
624
+ export interface PythonSettings {
625
+ /** Some settings. */
626
+ common?: CommonLanguageSettings;
627
+ /** Experimental features to be included during client library generation. */
628
+ experimentalFeatures?: PythonSettings_ExperimentalFeatures;
629
+ }
630
+ export interface PythonSettingsProtoMsg {
631
+ typeUrl: "/google.api.PythonSettings";
632
+ value: Uint8Array;
633
+ }
634
+ /**
635
+ * Settings for Python client libraries.
636
+ * @name PythonSettingsAmino
637
+ * @package google.api
638
+ * @see proto type: google.api.PythonSettings
639
+ */
640
+ export interface PythonSettingsAmino {
641
+ /**
642
+ * Some settings.
643
+ */
644
+ common?: CommonLanguageSettingsAmino;
645
+ /**
646
+ * Experimental features to be included during client library generation.
647
+ */
648
+ experimental_features?: PythonSettings_ExperimentalFeaturesAmino;
649
+ }
650
+ export interface PythonSettingsAminoMsg {
651
+ type: "/google.api.PythonSettings";
652
+ value: PythonSettingsAmino;
653
+ }
654
+ /** Settings for Python client libraries. */
655
+ export interface PythonSettingsSDKType {
656
+ common?: CommonLanguageSettingsSDKType;
657
+ experimental_features?: PythonSettings_ExperimentalFeaturesSDKType;
658
+ }
659
+ /**
660
+ * Experimental features to be included during client library generation.
661
+ * These fields will be deprecated once the feature graduates and is enabled
662
+ * by default.
663
+ */
664
+ export interface PythonSettings_ExperimentalFeatures {
665
+ /**
666
+ * Enables generation of asynchronous REST clients if `rest` transport is
667
+ * enabled. By default, asynchronous REST clients will not be generated.
668
+ * This feature will be enabled by default 1 month after launching the
669
+ * feature in preview packages.
670
+ */
671
+ restAsyncIoEnabled: boolean;
672
+ /**
673
+ * Enables generation of protobuf code using new types that are more
674
+ * Pythonic which are included in `protobuf>=5.29.x`. This feature will be
675
+ * enabled by default 1 month after launching the feature in preview
676
+ * packages.
677
+ */
678
+ protobufPythonicTypesEnabled: boolean;
679
+ /**
680
+ * Disables generation of an unversioned Python package for this client
681
+ * library. This means that the module names will need to be versioned in
682
+ * import statements. For example `import google.cloud.library_v2` instead
683
+ * of `import google.cloud.library`.
684
+ */
685
+ unversionedPackageDisabled: boolean;
686
+ }
687
+ export interface PythonSettings_ExperimentalFeaturesProtoMsg {
688
+ typeUrl: "/google.api.ExperimentalFeatures";
689
+ value: Uint8Array;
690
+ }
691
+ /**
692
+ * Experimental features to be included during client library generation.
693
+ * These fields will be deprecated once the feature graduates and is enabled
694
+ * by default.
695
+ * @name PythonSettings_ExperimentalFeaturesAmino
696
+ * @package google.api
697
+ * @see proto type: google.api.PythonSettings_ExperimentalFeatures
698
+ */
699
+ export interface PythonSettings_ExperimentalFeaturesAmino {
700
+ /**
701
+ * Enables generation of asynchronous REST clients if `rest` transport is
702
+ * enabled. By default, asynchronous REST clients will not be generated.
703
+ * This feature will be enabled by default 1 month after launching the
704
+ * feature in preview packages.
705
+ */
706
+ rest_async_io_enabled?: boolean;
707
+ /**
708
+ * Enables generation of protobuf code using new types that are more
709
+ * Pythonic which are included in `protobuf>=5.29.x`. This feature will be
710
+ * enabled by default 1 month after launching the feature in preview
711
+ * packages.
712
+ */
713
+ protobuf_pythonic_types_enabled?: boolean;
714
+ /**
715
+ * Disables generation of an unversioned Python package for this client
716
+ * library. This means that the module names will need to be versioned in
717
+ * import statements. For example `import google.cloud.library_v2` instead
718
+ * of `import google.cloud.library`.
719
+ */
720
+ unversioned_package_disabled?: boolean;
721
+ }
722
+ export interface PythonSettings_ExperimentalFeaturesAminoMsg {
723
+ type: "/google.api.ExperimentalFeatures";
724
+ value: PythonSettings_ExperimentalFeaturesAmino;
725
+ }
726
+ /**
727
+ * Experimental features to be included during client library generation.
728
+ * These fields will be deprecated once the feature graduates and is enabled
729
+ * by default.
730
+ */
731
+ export interface PythonSettings_ExperimentalFeaturesSDKType {
732
+ rest_async_io_enabled: boolean;
733
+ protobuf_pythonic_types_enabled: boolean;
734
+ unversioned_package_disabled: boolean;
735
+ }
736
+ /** Settings for Node client libraries. */
737
+ export interface NodeSettings {
738
+ /** Some settings. */
739
+ common?: CommonLanguageSettings;
740
+ }
741
+ export interface NodeSettingsProtoMsg {
742
+ typeUrl: "/google.api.NodeSettings";
743
+ value: Uint8Array;
744
+ }
745
+ /**
746
+ * Settings for Node client libraries.
747
+ * @name NodeSettingsAmino
748
+ * @package google.api
749
+ * @see proto type: google.api.NodeSettings
750
+ */
751
+ export interface NodeSettingsAmino {
752
+ /**
753
+ * Some settings.
754
+ */
755
+ common?: CommonLanguageSettingsAmino;
756
+ }
757
+ export interface NodeSettingsAminoMsg {
758
+ type: "/google.api.NodeSettings";
759
+ value: NodeSettingsAmino;
760
+ }
761
+ /** Settings for Node client libraries. */
762
+ export interface NodeSettingsSDKType {
763
+ common?: CommonLanguageSettingsSDKType;
764
+ }
765
+ export interface DotnetSettings_RenamedServicesEntry {
766
+ key: string;
767
+ value: string;
768
+ }
769
+ export interface DotnetSettings_RenamedServicesEntryProtoMsg {
770
+ typeUrl: string;
771
+ value: Uint8Array;
772
+ }
773
+ /**
774
+ * @name DotnetSettings_RenamedServicesEntryAmino
775
+ * @package google.api
776
+ * @see proto type: google.api.DotnetSettings_RenamedServicesEntry
777
+ */
778
+ export interface DotnetSettings_RenamedServicesEntryAmino {
779
+ key?: string;
780
+ value?: string;
781
+ }
782
+ export interface DotnetSettings_RenamedServicesEntryAminoMsg {
783
+ type: string;
784
+ value: DotnetSettings_RenamedServicesEntryAmino;
785
+ }
786
+ export interface DotnetSettings_RenamedServicesEntrySDKType {
787
+ key: string;
788
+ value: string;
789
+ }
790
+ export interface DotnetSettings_RenamedResourcesEntry {
791
+ key: string;
792
+ value: string;
793
+ }
794
+ export interface DotnetSettings_RenamedResourcesEntryProtoMsg {
795
+ typeUrl: string;
796
+ value: Uint8Array;
797
+ }
798
+ /**
799
+ * @name DotnetSettings_RenamedResourcesEntryAmino
800
+ * @package google.api
801
+ * @see proto type: google.api.DotnetSettings_RenamedResourcesEntry
802
+ */
803
+ export interface DotnetSettings_RenamedResourcesEntryAmino {
804
+ key?: string;
805
+ value?: string;
806
+ }
807
+ export interface DotnetSettings_RenamedResourcesEntryAminoMsg {
808
+ type: string;
809
+ value: DotnetSettings_RenamedResourcesEntryAmino;
810
+ }
811
+ export interface DotnetSettings_RenamedResourcesEntrySDKType {
812
+ key: string;
813
+ value: string;
814
+ }
815
+ /** Settings for Dotnet client libraries. */
816
+ export interface DotnetSettings {
817
+ /** Some settings. */
818
+ common?: CommonLanguageSettings;
819
+ /**
820
+ * Map from original service names to renamed versions.
821
+ * This is used when the default generated types
822
+ * would cause a naming conflict. (Neither name is
823
+ * fully-qualified.)
824
+ * Example: Subscriber to SubscriberServiceApi.
825
+ */
826
+ renamedServices: {
827
+ [key: string]: string;
828
+ };
829
+ /**
830
+ * Map from full resource types to the effective short name
831
+ * for the resource. This is used when otherwise resource
832
+ * named from different services would cause naming collisions.
833
+ * Example entry:
834
+ * "datalabeling.googleapis.com/Dataset": "DataLabelingDataset"
835
+ */
836
+ renamedResources: {
837
+ [key: string]: string;
838
+ };
839
+ /**
840
+ * List of full resource types to ignore during generation.
841
+ * This is typically used for API-specific Location resources,
842
+ * which should be handled by the generator as if they were actually
843
+ * the common Location resources.
844
+ * Example entry: "documentai.googleapis.com/Location"
845
+ */
846
+ ignoredResources: string[];
847
+ /**
848
+ * Namespaces which must be aliased in snippets due to
849
+ * a known (but non-generator-predictable) naming collision
850
+ */
851
+ forcedNamespaceAliases: string[];
852
+ /**
853
+ * Method signatures (in the form "service.method(signature)")
854
+ * which are provided separately, so shouldn't be generated.
855
+ * Snippets *calling* these methods are still generated, however.
856
+ */
857
+ handwrittenSignatures: string[];
858
+ }
859
+ export interface DotnetSettingsProtoMsg {
860
+ typeUrl: "/google.api.DotnetSettings";
861
+ value: Uint8Array;
862
+ }
863
+ /**
864
+ * Settings for Dotnet client libraries.
865
+ * @name DotnetSettingsAmino
866
+ * @package google.api
867
+ * @see proto type: google.api.DotnetSettings
868
+ */
869
+ export interface DotnetSettingsAmino {
870
+ /**
871
+ * Some settings.
872
+ */
873
+ common?: CommonLanguageSettingsAmino;
874
+ /**
875
+ * Map from original service names to renamed versions.
876
+ * This is used when the default generated types
877
+ * would cause a naming conflict. (Neither name is
878
+ * fully-qualified.)
879
+ * Example: Subscriber to SubscriberServiceApi.
880
+ */
881
+ renamed_services?: {
882
+ [key: string]: string;
883
+ };
884
+ /**
885
+ * Map from full resource types to the effective short name
886
+ * for the resource. This is used when otherwise resource
887
+ * named from different services would cause naming collisions.
888
+ * Example entry:
889
+ * "datalabeling.googleapis.com/Dataset": "DataLabelingDataset"
890
+ */
891
+ renamed_resources?: {
892
+ [key: string]: string;
893
+ };
894
+ /**
895
+ * List of full resource types to ignore during generation.
896
+ * This is typically used for API-specific Location resources,
897
+ * which should be handled by the generator as if they were actually
898
+ * the common Location resources.
899
+ * Example entry: "documentai.googleapis.com/Location"
900
+ */
901
+ ignored_resources?: string[];
902
+ /**
903
+ * Namespaces which must be aliased in snippets due to
904
+ * a known (but non-generator-predictable) naming collision
905
+ */
906
+ forced_namespace_aliases?: string[];
907
+ /**
908
+ * Method signatures (in the form "service.method(signature)")
909
+ * which are provided separately, so shouldn't be generated.
910
+ * Snippets *calling* these methods are still generated, however.
911
+ */
912
+ handwritten_signatures?: string[];
913
+ }
914
+ export interface DotnetSettingsAminoMsg {
915
+ type: "/google.api.DotnetSettings";
916
+ value: DotnetSettingsAmino;
917
+ }
918
+ /** Settings for Dotnet client libraries. */
919
+ export interface DotnetSettingsSDKType {
920
+ common?: CommonLanguageSettingsSDKType;
921
+ renamed_services: {
922
+ [key: string]: string;
923
+ };
924
+ renamed_resources: {
925
+ [key: string]: string;
926
+ };
927
+ ignored_resources: string[];
928
+ forced_namespace_aliases: string[];
929
+ handwritten_signatures: string[];
930
+ }
931
+ /** Settings for Ruby client libraries. */
932
+ export interface RubySettings {
933
+ /** Some settings. */
934
+ common?: CommonLanguageSettings;
935
+ }
936
+ export interface RubySettingsProtoMsg {
937
+ typeUrl: "/google.api.RubySettings";
938
+ value: Uint8Array;
939
+ }
940
+ /**
941
+ * Settings for Ruby client libraries.
942
+ * @name RubySettingsAmino
943
+ * @package google.api
944
+ * @see proto type: google.api.RubySettings
945
+ */
946
+ export interface RubySettingsAmino {
947
+ /**
948
+ * Some settings.
949
+ */
950
+ common?: CommonLanguageSettingsAmino;
951
+ }
952
+ export interface RubySettingsAminoMsg {
953
+ type: "/google.api.RubySettings";
954
+ value: RubySettingsAmino;
955
+ }
956
+ /** Settings for Ruby client libraries. */
957
+ export interface RubySettingsSDKType {
958
+ common?: CommonLanguageSettingsSDKType;
959
+ }
960
+ export interface GoSettings_RenamedServicesEntry {
961
+ key: string;
962
+ value: string;
963
+ }
964
+ export interface GoSettings_RenamedServicesEntryProtoMsg {
965
+ typeUrl: string;
966
+ value: Uint8Array;
967
+ }
968
+ /**
969
+ * @name GoSettings_RenamedServicesEntryAmino
970
+ * @package google.api
971
+ * @see proto type: google.api.GoSettings_RenamedServicesEntry
972
+ */
973
+ export interface GoSettings_RenamedServicesEntryAmino {
974
+ key?: string;
975
+ value?: string;
976
+ }
977
+ export interface GoSettings_RenamedServicesEntryAminoMsg {
978
+ type: string;
979
+ value: GoSettings_RenamedServicesEntryAmino;
980
+ }
981
+ export interface GoSettings_RenamedServicesEntrySDKType {
982
+ key: string;
983
+ value: string;
984
+ }
985
+ /** Settings for Go client libraries. */
986
+ export interface GoSettings {
987
+ /** Some settings. */
988
+ common?: CommonLanguageSettings;
989
+ /**
990
+ * Map of service names to renamed services. Keys are the package relative
991
+ * service names and values are the name to be used for the service client
992
+ * and call options.
993
+ *
994
+ * publishing:
995
+ * go_settings:
996
+ * renamed_services:
997
+ * Publisher: TopicAdmin
998
+ */
999
+ renamedServices: {
1000
+ [key: string]: string;
1001
+ };
1002
+ }
1003
+ export interface GoSettingsProtoMsg {
1004
+ typeUrl: "/google.api.GoSettings";
1005
+ value: Uint8Array;
1006
+ }
1007
+ /**
1008
+ * Settings for Go client libraries.
1009
+ * @name GoSettingsAmino
1010
+ * @package google.api
1011
+ * @see proto type: google.api.GoSettings
1012
+ */
1013
+ export interface GoSettingsAmino {
1014
+ /**
1015
+ * Some settings.
1016
+ */
1017
+ common?: CommonLanguageSettingsAmino;
1018
+ /**
1019
+ * Map of service names to renamed services. Keys are the package relative
1020
+ * service names and values are the name to be used for the service client
1021
+ * and call options.
1022
+ *
1023
+ * publishing:
1024
+ * go_settings:
1025
+ * renamed_services:
1026
+ * Publisher: TopicAdmin
1027
+ */
1028
+ renamed_services?: {
1029
+ [key: string]: string;
1030
+ };
1031
+ }
1032
+ export interface GoSettingsAminoMsg {
1033
+ type: "/google.api.GoSettings";
1034
+ value: GoSettingsAmino;
1035
+ }
1036
+ /** Settings for Go client libraries. */
1037
+ export interface GoSettingsSDKType {
1038
+ common?: CommonLanguageSettingsSDKType;
1039
+ renamed_services: {
1040
+ [key: string]: string;
1041
+ };
1042
+ }
1043
+ /** Describes the generator configuration for a method. */
1044
+ export interface MethodSettings {
1045
+ /**
1046
+ * The fully qualified name of the method, for which the options below apply.
1047
+ * This is used to find the method to apply the options.
1048
+ *
1049
+ * Example:
1050
+ *
1051
+ * publishing:
1052
+ * method_settings:
1053
+ * - selector: google.storage.control.v2.StorageControl.CreateFolder
1054
+ * # method settings for CreateFolder...
1055
+ */
1056
+ selector: string;
1057
+ /**
1058
+ * Describes settings to use for long-running operations when generating
1059
+ * API methods for RPCs. Complements RPCs that use the annotations in
1060
+ * google/longrunning/operations.proto.
1061
+ *
1062
+ * Example of a YAML configuration::
1063
+ *
1064
+ * publishing:
1065
+ * method_settings:
1066
+ * - selector: google.cloud.speech.v2.Speech.BatchRecognize
1067
+ * long_running:
1068
+ * initial_poll_delay: 60s # 1 minute
1069
+ * poll_delay_multiplier: 1.5
1070
+ * max_poll_delay: 360s # 6 minutes
1071
+ * total_poll_timeout: 54000s # 90 minutes
1072
+ */
1073
+ longRunning?: MethodSettings_LongRunning;
1074
+ /**
1075
+ * List of top-level fields of the request message, that should be
1076
+ * automatically populated by the client libraries based on their
1077
+ * (google.api.field_info).format. Currently supported format: UUID4.
1078
+ *
1079
+ * Example of a YAML configuration:
1080
+ *
1081
+ * publishing:
1082
+ * method_settings:
1083
+ * - selector: google.example.v1.ExampleService.CreateExample
1084
+ * auto_populated_fields:
1085
+ * - request_id
1086
+ */
1087
+ autoPopulatedFields: string[];
1088
+ }
1089
+ export interface MethodSettingsProtoMsg {
1090
+ typeUrl: "/google.api.MethodSettings";
1091
+ value: Uint8Array;
1092
+ }
1093
+ /**
1094
+ * Describes the generator configuration for a method.
1095
+ * @name MethodSettingsAmino
1096
+ * @package google.api
1097
+ * @see proto type: google.api.MethodSettings
1098
+ */
1099
+ export interface MethodSettingsAmino {
1100
+ /**
1101
+ * The fully qualified name of the method, for which the options below apply.
1102
+ * This is used to find the method to apply the options.
1103
+ *
1104
+ * Example:
1105
+ *
1106
+ * publishing:
1107
+ * method_settings:
1108
+ * - selector: google.storage.control.v2.StorageControl.CreateFolder
1109
+ * # method settings for CreateFolder...
1110
+ */
1111
+ selector?: string;
1112
+ /**
1113
+ * Describes settings to use for long-running operations when generating
1114
+ * API methods for RPCs. Complements RPCs that use the annotations in
1115
+ * google/longrunning/operations.proto.
1116
+ *
1117
+ * Example of a YAML configuration::
1118
+ *
1119
+ * publishing:
1120
+ * method_settings:
1121
+ * - selector: google.cloud.speech.v2.Speech.BatchRecognize
1122
+ * long_running:
1123
+ * initial_poll_delay: 60s # 1 minute
1124
+ * poll_delay_multiplier: 1.5
1125
+ * max_poll_delay: 360s # 6 minutes
1126
+ * total_poll_timeout: 54000s # 90 minutes
1127
+ */
1128
+ long_running?: MethodSettings_LongRunningAmino;
1129
+ /**
1130
+ * List of top-level fields of the request message, that should be
1131
+ * automatically populated by the client libraries based on their
1132
+ * (google.api.field_info).format. Currently supported format: UUID4.
1133
+ *
1134
+ * Example of a YAML configuration:
1135
+ *
1136
+ * publishing:
1137
+ * method_settings:
1138
+ * - selector: google.example.v1.ExampleService.CreateExample
1139
+ * auto_populated_fields:
1140
+ * - request_id
1141
+ */
1142
+ auto_populated_fields?: string[];
1143
+ }
1144
+ export interface MethodSettingsAminoMsg {
1145
+ type: "/google.api.MethodSettings";
1146
+ value: MethodSettingsAmino;
1147
+ }
1148
+ /** Describes the generator configuration for a method. */
1149
+ export interface MethodSettingsSDKType {
1150
+ selector: string;
1151
+ long_running?: MethodSettings_LongRunningSDKType;
1152
+ auto_populated_fields: string[];
1153
+ }
1154
+ /**
1155
+ * Describes settings to use when generating API methods that use the
1156
+ * long-running operation pattern.
1157
+ * All default values below are from those used in the client library
1158
+ * generators (e.g.
1159
+ * [Java](https://github.com/googleapis/gapic-generator-java/blob/04c2faa191a9b5a10b92392fe8482279c4404803/src/main/java/com/google/api/generator/gapic/composer/common/RetrySettingsComposer.java)).
1160
+ */
1161
+ export interface MethodSettings_LongRunning {
1162
+ /**
1163
+ * Initial delay after which the first poll request will be made.
1164
+ * Default value: 5 seconds.
1165
+ */
1166
+ initialPollDelay?: Duration;
1167
+ /**
1168
+ * Multiplier to gradually increase delay between subsequent polls until it
1169
+ * reaches max_poll_delay.
1170
+ * Default value: 1.5.
1171
+ */
1172
+ pollDelayMultiplier: number;
1173
+ /**
1174
+ * Maximum time between two subsequent poll requests.
1175
+ * Default value: 45 seconds.
1176
+ */
1177
+ maxPollDelay?: Duration;
1178
+ /**
1179
+ * Total polling timeout.
1180
+ * Default value: 5 minutes.
1181
+ */
1182
+ totalPollTimeout?: Duration;
1183
+ }
1184
+ export interface MethodSettings_LongRunningProtoMsg {
1185
+ typeUrl: "/google.api.LongRunning";
1186
+ value: Uint8Array;
1187
+ }
1188
+ /**
1189
+ * Describes settings to use when generating API methods that use the
1190
+ * long-running operation pattern.
1191
+ * All default values below are from those used in the client library
1192
+ * generators (e.g.
1193
+ * [Java](https://github.com/googleapis/gapic-generator-java/blob/04c2faa191a9b5a10b92392fe8482279c4404803/src/main/java/com/google/api/generator/gapic/composer/common/RetrySettingsComposer.java)).
1194
+ * @name MethodSettings_LongRunningAmino
1195
+ * @package google.api
1196
+ * @see proto type: google.api.MethodSettings_LongRunning
1197
+ */
1198
+ export interface MethodSettings_LongRunningAmino {
1199
+ /**
1200
+ * Initial delay after which the first poll request will be made.
1201
+ * Default value: 5 seconds.
1202
+ */
1203
+ initial_poll_delay?: DurationAmino;
1204
+ /**
1205
+ * Multiplier to gradually increase delay between subsequent polls until it
1206
+ * reaches max_poll_delay.
1207
+ * Default value: 1.5.
1208
+ */
1209
+ poll_delay_multiplier?: number;
1210
+ /**
1211
+ * Maximum time between two subsequent poll requests.
1212
+ * Default value: 45 seconds.
1213
+ */
1214
+ max_poll_delay?: DurationAmino;
1215
+ /**
1216
+ * Total polling timeout.
1217
+ * Default value: 5 minutes.
1218
+ */
1219
+ total_poll_timeout?: DurationAmino;
1220
+ }
1221
+ export interface MethodSettings_LongRunningAminoMsg {
1222
+ type: "/google.api.LongRunning";
1223
+ value: MethodSettings_LongRunningAmino;
1224
+ }
1225
+ /**
1226
+ * Describes settings to use when generating API methods that use the
1227
+ * long-running operation pattern.
1228
+ * All default values below are from those used in the client library
1229
+ * generators (e.g.
1230
+ * [Java](https://github.com/googleapis/gapic-generator-java/blob/04c2faa191a9b5a10b92392fe8482279c4404803/src/main/java/com/google/api/generator/gapic/composer/common/RetrySettingsComposer.java)).
1231
+ */
1232
+ export interface MethodSettings_LongRunningSDKType {
1233
+ initial_poll_delay?: DurationSDKType;
1234
+ poll_delay_multiplier: number;
1235
+ max_poll_delay?: DurationSDKType;
1236
+ total_poll_timeout?: DurationSDKType;
1237
+ }
1238
+ /**
1239
+ * This message is used to configure the generation of a subset of the RPCs in
1240
+ * a service for client libraries.
1241
+ */
1242
+ export interface SelectiveGapicGeneration {
1243
+ /**
1244
+ * An allowlist of the fully qualified names of RPCs that should be included
1245
+ * on public client surfaces.
1246
+ */
1247
+ methods: string[];
1248
+ /**
1249
+ * Setting this to true indicates to the client generators that methods
1250
+ * that would be excluded from the generation should instead be generated
1251
+ * in a way that indicates these methods should not be consumed by
1252
+ * end users. How this is expressed is up to individual language
1253
+ * implementations to decide. Some examples may be: added annotations,
1254
+ * obfuscated identifiers, or other language idiomatic patterns.
1255
+ */
1256
+ generateOmittedAsInternal: boolean;
1257
+ }
1258
+ export interface SelectiveGapicGenerationProtoMsg {
1259
+ typeUrl: "/google.api.SelectiveGapicGeneration";
1260
+ value: Uint8Array;
1261
+ }
1262
+ /**
1263
+ * This message is used to configure the generation of a subset of the RPCs in
1264
+ * a service for client libraries.
1265
+ * @name SelectiveGapicGenerationAmino
1266
+ * @package google.api
1267
+ * @see proto type: google.api.SelectiveGapicGeneration
1268
+ */
1269
+ export interface SelectiveGapicGenerationAmino {
1270
+ /**
1271
+ * An allowlist of the fully qualified names of RPCs that should be included
1272
+ * on public client surfaces.
1273
+ */
1274
+ methods?: string[];
1275
+ /**
1276
+ * Setting this to true indicates to the client generators that methods
1277
+ * that would be excluded from the generation should instead be generated
1278
+ * in a way that indicates these methods should not be consumed by
1279
+ * end users. How this is expressed is up to individual language
1280
+ * implementations to decide. Some examples may be: added annotations,
1281
+ * obfuscated identifiers, or other language idiomatic patterns.
1282
+ */
1283
+ generate_omitted_as_internal?: boolean;
1284
+ }
1285
+ export interface SelectiveGapicGenerationAminoMsg {
1286
+ type: "/google.api.SelectiveGapicGeneration";
1287
+ value: SelectiveGapicGenerationAmino;
1288
+ }
1289
+ /**
1290
+ * This message is used to configure the generation of a subset of the RPCs in
1291
+ * a service for client libraries.
1292
+ */
1293
+ export interface SelectiveGapicGenerationSDKType {
1294
+ methods: string[];
1295
+ generate_omitted_as_internal: boolean;
1296
+ }
1297
+ function createBaseCommonLanguageSettings(): CommonLanguageSettings {
1298
+ return {
1299
+ referenceDocsUri: "",
1300
+ destinations: [],
1301
+ selectiveGapicGeneration: undefined
1302
+ };
1303
+ }
1304
+ export const CommonLanguageSettings = {
1305
+ typeUrl: "/google.api.CommonLanguageSettings",
1306
+ encode(message: CommonLanguageSettings, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1307
+ if (message.referenceDocsUri !== "") {
1308
+ writer.uint32(10).string(message.referenceDocsUri);
1309
+ }
1310
+ writer.uint32(18).fork();
1311
+ for (const v of message.destinations) {
1312
+ writer.int32(v);
1313
+ }
1314
+ writer.ldelim();
1315
+ if (message.selectiveGapicGeneration !== undefined) {
1316
+ SelectiveGapicGeneration.encode(message.selectiveGapicGeneration, writer.uint32(26).fork()).ldelim();
1317
+ }
1318
+ return writer;
1319
+ },
1320
+ decode(input: BinaryReader | Uint8Array, length?: number): CommonLanguageSettings {
1321
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1322
+ let end = length === undefined ? reader.len : reader.pos + length;
1323
+ const message = createBaseCommonLanguageSettings();
1324
+ while (reader.pos < end) {
1325
+ const tag = reader.uint32();
1326
+ switch (tag >>> 3) {
1327
+ case 1:
1328
+ message.referenceDocsUri = reader.string();
1329
+ break;
1330
+ case 2:
1331
+ if ((tag & 7) === 2) {
1332
+ const end2 = reader.uint32() + reader.pos;
1333
+ while (reader.pos < end2) {
1334
+ message.destinations.push(reader.int32() as any);
1335
+ }
1336
+ } else {
1337
+ message.destinations.push(reader.int32() as any);
1338
+ }
1339
+ break;
1340
+ case 3:
1341
+ message.selectiveGapicGeneration = SelectiveGapicGeneration.decode(reader, reader.uint32());
1342
+ break;
1343
+ default:
1344
+ reader.skipType(tag & 7);
1345
+ break;
1346
+ }
1347
+ }
1348
+ return message;
1349
+ },
1350
+ fromPartial(object: Partial<CommonLanguageSettings>): CommonLanguageSettings {
1351
+ const message = createBaseCommonLanguageSettings();
1352
+ message.referenceDocsUri = object.referenceDocsUri ?? "";
1353
+ message.destinations = object.destinations?.map(e => e) || [];
1354
+ message.selectiveGapicGeneration = object.selectiveGapicGeneration !== undefined && object.selectiveGapicGeneration !== null ? SelectiveGapicGeneration.fromPartial(object.selectiveGapicGeneration) : undefined;
1355
+ return message;
1356
+ },
1357
+ fromAmino(object: CommonLanguageSettingsAmino): CommonLanguageSettings {
1358
+ const message = createBaseCommonLanguageSettings();
1359
+ if (object.reference_docs_uri !== undefined && object.reference_docs_uri !== null) {
1360
+ message.referenceDocsUri = object.reference_docs_uri;
1361
+ }
1362
+ message.destinations = object.destinations?.map(e => e) || [];
1363
+ if (object.selective_gapic_generation !== undefined && object.selective_gapic_generation !== null) {
1364
+ message.selectiveGapicGeneration = SelectiveGapicGeneration.fromAmino(object.selective_gapic_generation);
1365
+ }
1366
+ return message;
1367
+ },
1368
+ toAmino(message: CommonLanguageSettings): CommonLanguageSettingsAmino {
1369
+ const obj: any = {};
1370
+ obj.reference_docs_uri = message.referenceDocsUri === "" ? undefined : message.referenceDocsUri;
1371
+ if (message.destinations) {
1372
+ obj.destinations = message.destinations.map(e => e);
1373
+ } else {
1374
+ obj.destinations = message.destinations;
1375
+ }
1376
+ obj.selective_gapic_generation = message.selectiveGapicGeneration ? SelectiveGapicGeneration.toAmino(message.selectiveGapicGeneration) : undefined;
1377
+ return obj;
1378
+ },
1379
+ fromAminoMsg(object: CommonLanguageSettingsAminoMsg): CommonLanguageSettings {
1380
+ return CommonLanguageSettings.fromAmino(object.value);
1381
+ },
1382
+ fromProtoMsg(message: CommonLanguageSettingsProtoMsg): CommonLanguageSettings {
1383
+ return CommonLanguageSettings.decode(message.value);
1384
+ },
1385
+ toProto(message: CommonLanguageSettings): Uint8Array {
1386
+ return CommonLanguageSettings.encode(message).finish();
1387
+ },
1388
+ toProtoMsg(message: CommonLanguageSettings): CommonLanguageSettingsProtoMsg {
1389
+ return {
1390
+ typeUrl: "/google.api.CommonLanguageSettings",
1391
+ value: CommonLanguageSettings.encode(message).finish()
1392
+ };
1393
+ }
1394
+ };
1395
+ function createBaseClientLibrarySettings(): ClientLibrarySettings {
1396
+ return {
1397
+ version: "",
1398
+ launchStage: 0,
1399
+ restNumericEnums: false,
1400
+ javaSettings: undefined,
1401
+ cppSettings: undefined,
1402
+ phpSettings: undefined,
1403
+ pythonSettings: undefined,
1404
+ nodeSettings: undefined,
1405
+ dotnetSettings: undefined,
1406
+ rubySettings: undefined,
1407
+ goSettings: undefined
1408
+ };
1409
+ }
1410
+ export const ClientLibrarySettings = {
1411
+ typeUrl: "/google.api.ClientLibrarySettings",
1412
+ encode(message: ClientLibrarySettings, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1413
+ if (message.version !== "") {
1414
+ writer.uint32(10).string(message.version);
1415
+ }
1416
+ if (message.launchStage !== 0) {
1417
+ writer.uint32(16).int32(message.launchStage);
1418
+ }
1419
+ if (message.restNumericEnums === true) {
1420
+ writer.uint32(24).bool(message.restNumericEnums);
1421
+ }
1422
+ if (message.javaSettings !== undefined) {
1423
+ JavaSettings.encode(message.javaSettings, writer.uint32(170).fork()).ldelim();
1424
+ }
1425
+ if (message.cppSettings !== undefined) {
1426
+ CppSettings.encode(message.cppSettings, writer.uint32(178).fork()).ldelim();
1427
+ }
1428
+ if (message.phpSettings !== undefined) {
1429
+ PhpSettings.encode(message.phpSettings, writer.uint32(186).fork()).ldelim();
1430
+ }
1431
+ if (message.pythonSettings !== undefined) {
1432
+ PythonSettings.encode(message.pythonSettings, writer.uint32(194).fork()).ldelim();
1433
+ }
1434
+ if (message.nodeSettings !== undefined) {
1435
+ NodeSettings.encode(message.nodeSettings, writer.uint32(202).fork()).ldelim();
1436
+ }
1437
+ if (message.dotnetSettings !== undefined) {
1438
+ DotnetSettings.encode(message.dotnetSettings, writer.uint32(210).fork()).ldelim();
1439
+ }
1440
+ if (message.rubySettings !== undefined) {
1441
+ RubySettings.encode(message.rubySettings, writer.uint32(218).fork()).ldelim();
1442
+ }
1443
+ if (message.goSettings !== undefined) {
1444
+ GoSettings.encode(message.goSettings, writer.uint32(226).fork()).ldelim();
1445
+ }
1446
+ return writer;
1447
+ },
1448
+ decode(input: BinaryReader | Uint8Array, length?: number): ClientLibrarySettings {
1449
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1450
+ let end = length === undefined ? reader.len : reader.pos + length;
1451
+ const message = createBaseClientLibrarySettings();
1452
+ while (reader.pos < end) {
1453
+ const tag = reader.uint32();
1454
+ switch (tag >>> 3) {
1455
+ case 1:
1456
+ message.version = reader.string();
1457
+ break;
1458
+ case 2:
1459
+ message.launchStage = reader.int32() as any;
1460
+ break;
1461
+ case 3:
1462
+ message.restNumericEnums = reader.bool();
1463
+ break;
1464
+ case 21:
1465
+ message.javaSettings = JavaSettings.decode(reader, reader.uint32());
1466
+ break;
1467
+ case 22:
1468
+ message.cppSettings = CppSettings.decode(reader, reader.uint32());
1469
+ break;
1470
+ case 23:
1471
+ message.phpSettings = PhpSettings.decode(reader, reader.uint32());
1472
+ break;
1473
+ case 24:
1474
+ message.pythonSettings = PythonSettings.decode(reader, reader.uint32());
1475
+ break;
1476
+ case 25:
1477
+ message.nodeSettings = NodeSettings.decode(reader, reader.uint32());
1478
+ break;
1479
+ case 26:
1480
+ message.dotnetSettings = DotnetSettings.decode(reader, reader.uint32());
1481
+ break;
1482
+ case 27:
1483
+ message.rubySettings = RubySettings.decode(reader, reader.uint32());
1484
+ break;
1485
+ case 28:
1486
+ message.goSettings = GoSettings.decode(reader, reader.uint32());
1487
+ break;
1488
+ default:
1489
+ reader.skipType(tag & 7);
1490
+ break;
1491
+ }
1492
+ }
1493
+ return message;
1494
+ },
1495
+ fromPartial(object: Partial<ClientLibrarySettings>): ClientLibrarySettings {
1496
+ const message = createBaseClientLibrarySettings();
1497
+ message.version = object.version ?? "";
1498
+ message.launchStage = object.launchStage ?? 0;
1499
+ message.restNumericEnums = object.restNumericEnums ?? false;
1500
+ message.javaSettings = object.javaSettings !== undefined && object.javaSettings !== null ? JavaSettings.fromPartial(object.javaSettings) : undefined;
1501
+ message.cppSettings = object.cppSettings !== undefined && object.cppSettings !== null ? CppSettings.fromPartial(object.cppSettings) : undefined;
1502
+ message.phpSettings = object.phpSettings !== undefined && object.phpSettings !== null ? PhpSettings.fromPartial(object.phpSettings) : undefined;
1503
+ message.pythonSettings = object.pythonSettings !== undefined && object.pythonSettings !== null ? PythonSettings.fromPartial(object.pythonSettings) : undefined;
1504
+ message.nodeSettings = object.nodeSettings !== undefined && object.nodeSettings !== null ? NodeSettings.fromPartial(object.nodeSettings) : undefined;
1505
+ message.dotnetSettings = object.dotnetSettings !== undefined && object.dotnetSettings !== null ? DotnetSettings.fromPartial(object.dotnetSettings) : undefined;
1506
+ message.rubySettings = object.rubySettings !== undefined && object.rubySettings !== null ? RubySettings.fromPartial(object.rubySettings) : undefined;
1507
+ message.goSettings = object.goSettings !== undefined && object.goSettings !== null ? GoSettings.fromPartial(object.goSettings) : undefined;
1508
+ return message;
1509
+ },
1510
+ fromAmino(object: ClientLibrarySettingsAmino): ClientLibrarySettings {
1511
+ const message = createBaseClientLibrarySettings();
1512
+ if (object.version !== undefined && object.version !== null) {
1513
+ message.version = object.version;
1514
+ }
1515
+ if (object.launch_stage !== undefined && object.launch_stage !== null) {
1516
+ message.launchStage = object.launch_stage;
1517
+ }
1518
+ if (object.rest_numeric_enums !== undefined && object.rest_numeric_enums !== null) {
1519
+ message.restNumericEnums = object.rest_numeric_enums;
1520
+ }
1521
+ if (object.java_settings !== undefined && object.java_settings !== null) {
1522
+ message.javaSettings = JavaSettings.fromAmino(object.java_settings);
1523
+ }
1524
+ if (object.cpp_settings !== undefined && object.cpp_settings !== null) {
1525
+ message.cppSettings = CppSettings.fromAmino(object.cpp_settings);
1526
+ }
1527
+ if (object.php_settings !== undefined && object.php_settings !== null) {
1528
+ message.phpSettings = PhpSettings.fromAmino(object.php_settings);
1529
+ }
1530
+ if (object.python_settings !== undefined && object.python_settings !== null) {
1531
+ message.pythonSettings = PythonSettings.fromAmino(object.python_settings);
1532
+ }
1533
+ if (object.node_settings !== undefined && object.node_settings !== null) {
1534
+ message.nodeSettings = NodeSettings.fromAmino(object.node_settings);
1535
+ }
1536
+ if (object.dotnet_settings !== undefined && object.dotnet_settings !== null) {
1537
+ message.dotnetSettings = DotnetSettings.fromAmino(object.dotnet_settings);
1538
+ }
1539
+ if (object.ruby_settings !== undefined && object.ruby_settings !== null) {
1540
+ message.rubySettings = RubySettings.fromAmino(object.ruby_settings);
1541
+ }
1542
+ if (object.go_settings !== undefined && object.go_settings !== null) {
1543
+ message.goSettings = GoSettings.fromAmino(object.go_settings);
1544
+ }
1545
+ return message;
1546
+ },
1547
+ toAmino(message: ClientLibrarySettings): ClientLibrarySettingsAmino {
1548
+ const obj: any = {};
1549
+ obj.version = message.version === "" ? undefined : message.version;
1550
+ obj.launch_stage = message.launchStage === 0 ? undefined : message.launchStage;
1551
+ obj.rest_numeric_enums = message.restNumericEnums === false ? undefined : message.restNumericEnums;
1552
+ obj.java_settings = message.javaSettings ? JavaSettings.toAmino(message.javaSettings) : undefined;
1553
+ obj.cpp_settings = message.cppSettings ? CppSettings.toAmino(message.cppSettings) : undefined;
1554
+ obj.php_settings = message.phpSettings ? PhpSettings.toAmino(message.phpSettings) : undefined;
1555
+ obj.python_settings = message.pythonSettings ? PythonSettings.toAmino(message.pythonSettings) : undefined;
1556
+ obj.node_settings = message.nodeSettings ? NodeSettings.toAmino(message.nodeSettings) : undefined;
1557
+ obj.dotnet_settings = message.dotnetSettings ? DotnetSettings.toAmino(message.dotnetSettings) : undefined;
1558
+ obj.ruby_settings = message.rubySettings ? RubySettings.toAmino(message.rubySettings) : undefined;
1559
+ obj.go_settings = message.goSettings ? GoSettings.toAmino(message.goSettings) : undefined;
1560
+ return obj;
1561
+ },
1562
+ fromAminoMsg(object: ClientLibrarySettingsAminoMsg): ClientLibrarySettings {
1563
+ return ClientLibrarySettings.fromAmino(object.value);
1564
+ },
1565
+ fromProtoMsg(message: ClientLibrarySettingsProtoMsg): ClientLibrarySettings {
1566
+ return ClientLibrarySettings.decode(message.value);
1567
+ },
1568
+ toProto(message: ClientLibrarySettings): Uint8Array {
1569
+ return ClientLibrarySettings.encode(message).finish();
1570
+ },
1571
+ toProtoMsg(message: ClientLibrarySettings): ClientLibrarySettingsProtoMsg {
1572
+ return {
1573
+ typeUrl: "/google.api.ClientLibrarySettings",
1574
+ value: ClientLibrarySettings.encode(message).finish()
1575
+ };
1576
+ }
1577
+ };
1578
+ function createBasePublishing(): Publishing {
1579
+ return {
1580
+ methodSettings: [],
1581
+ newIssueUri: "",
1582
+ documentationUri: "",
1583
+ apiShortName: "",
1584
+ githubLabel: "",
1585
+ codeownerGithubTeams: [],
1586
+ docTagPrefix: "",
1587
+ organization: 0,
1588
+ librarySettings: [],
1589
+ protoReferenceDocumentationUri: "",
1590
+ restReferenceDocumentationUri: ""
1591
+ };
1592
+ }
1593
+ export const Publishing = {
1594
+ typeUrl: "/google.api.Publishing",
1595
+ encode(message: Publishing, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1596
+ for (const v of message.methodSettings) {
1597
+ MethodSettings.encode(v!, writer.uint32(18).fork()).ldelim();
1598
+ }
1599
+ if (message.newIssueUri !== "") {
1600
+ writer.uint32(810).string(message.newIssueUri);
1601
+ }
1602
+ if (message.documentationUri !== "") {
1603
+ writer.uint32(818).string(message.documentationUri);
1604
+ }
1605
+ if (message.apiShortName !== "") {
1606
+ writer.uint32(826).string(message.apiShortName);
1607
+ }
1608
+ if (message.githubLabel !== "") {
1609
+ writer.uint32(834).string(message.githubLabel);
1610
+ }
1611
+ for (const v of message.codeownerGithubTeams) {
1612
+ writer.uint32(842).string(v!);
1613
+ }
1614
+ if (message.docTagPrefix !== "") {
1615
+ writer.uint32(850).string(message.docTagPrefix);
1616
+ }
1617
+ if (message.organization !== 0) {
1618
+ writer.uint32(856).int32(message.organization);
1619
+ }
1620
+ for (const v of message.librarySettings) {
1621
+ ClientLibrarySettings.encode(v!, writer.uint32(874).fork()).ldelim();
1622
+ }
1623
+ if (message.protoReferenceDocumentationUri !== "") {
1624
+ writer.uint32(882).string(message.protoReferenceDocumentationUri);
1625
+ }
1626
+ if (message.restReferenceDocumentationUri !== "") {
1627
+ writer.uint32(890).string(message.restReferenceDocumentationUri);
1628
+ }
1629
+ return writer;
1630
+ },
1631
+ decode(input: BinaryReader | Uint8Array, length?: number): Publishing {
1632
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1633
+ let end = length === undefined ? reader.len : reader.pos + length;
1634
+ const message = createBasePublishing();
1635
+ while (reader.pos < end) {
1636
+ const tag = reader.uint32();
1637
+ switch (tag >>> 3) {
1638
+ case 2:
1639
+ message.methodSettings.push(MethodSettings.decode(reader, reader.uint32()));
1640
+ break;
1641
+ case 101:
1642
+ message.newIssueUri = reader.string();
1643
+ break;
1644
+ case 102:
1645
+ message.documentationUri = reader.string();
1646
+ break;
1647
+ case 103:
1648
+ message.apiShortName = reader.string();
1649
+ break;
1650
+ case 104:
1651
+ message.githubLabel = reader.string();
1652
+ break;
1653
+ case 105:
1654
+ message.codeownerGithubTeams.push(reader.string());
1655
+ break;
1656
+ case 106:
1657
+ message.docTagPrefix = reader.string();
1658
+ break;
1659
+ case 107:
1660
+ message.organization = reader.int32() as any;
1661
+ break;
1662
+ case 109:
1663
+ message.librarySettings.push(ClientLibrarySettings.decode(reader, reader.uint32()));
1664
+ break;
1665
+ case 110:
1666
+ message.protoReferenceDocumentationUri = reader.string();
1667
+ break;
1668
+ case 111:
1669
+ message.restReferenceDocumentationUri = reader.string();
1670
+ break;
1671
+ default:
1672
+ reader.skipType(tag & 7);
1673
+ break;
1674
+ }
1675
+ }
1676
+ return message;
1677
+ },
1678
+ fromPartial(object: Partial<Publishing>): Publishing {
1679
+ const message = createBasePublishing();
1680
+ message.methodSettings = object.methodSettings?.map(e => MethodSettings.fromPartial(e)) || [];
1681
+ message.newIssueUri = object.newIssueUri ?? "";
1682
+ message.documentationUri = object.documentationUri ?? "";
1683
+ message.apiShortName = object.apiShortName ?? "";
1684
+ message.githubLabel = object.githubLabel ?? "";
1685
+ message.codeownerGithubTeams = object.codeownerGithubTeams?.map(e => e) || [];
1686
+ message.docTagPrefix = object.docTagPrefix ?? "";
1687
+ message.organization = object.organization ?? 0;
1688
+ message.librarySettings = object.librarySettings?.map(e => ClientLibrarySettings.fromPartial(e)) || [];
1689
+ message.protoReferenceDocumentationUri = object.protoReferenceDocumentationUri ?? "";
1690
+ message.restReferenceDocumentationUri = object.restReferenceDocumentationUri ?? "";
1691
+ return message;
1692
+ },
1693
+ fromAmino(object: PublishingAmino): Publishing {
1694
+ const message = createBasePublishing();
1695
+ message.methodSettings = object.method_settings?.map(e => MethodSettings.fromAmino(e)) || [];
1696
+ if (object.new_issue_uri !== undefined && object.new_issue_uri !== null) {
1697
+ message.newIssueUri = object.new_issue_uri;
1698
+ }
1699
+ if (object.documentation_uri !== undefined && object.documentation_uri !== null) {
1700
+ message.documentationUri = object.documentation_uri;
1701
+ }
1702
+ if (object.api_short_name !== undefined && object.api_short_name !== null) {
1703
+ message.apiShortName = object.api_short_name;
1704
+ }
1705
+ if (object.github_label !== undefined && object.github_label !== null) {
1706
+ message.githubLabel = object.github_label;
1707
+ }
1708
+ message.codeownerGithubTeams = object.codeowner_github_teams?.map(e => e) || [];
1709
+ if (object.doc_tag_prefix !== undefined && object.doc_tag_prefix !== null) {
1710
+ message.docTagPrefix = object.doc_tag_prefix;
1711
+ }
1712
+ if (object.organization !== undefined && object.organization !== null) {
1713
+ message.organization = object.organization;
1714
+ }
1715
+ message.librarySettings = object.library_settings?.map(e => ClientLibrarySettings.fromAmino(e)) || [];
1716
+ if (object.proto_reference_documentation_uri !== undefined && object.proto_reference_documentation_uri !== null) {
1717
+ message.protoReferenceDocumentationUri = object.proto_reference_documentation_uri;
1718
+ }
1719
+ if (object.rest_reference_documentation_uri !== undefined && object.rest_reference_documentation_uri !== null) {
1720
+ message.restReferenceDocumentationUri = object.rest_reference_documentation_uri;
1721
+ }
1722
+ return message;
1723
+ },
1724
+ toAmino(message: Publishing): PublishingAmino {
1725
+ const obj: any = {};
1726
+ if (message.methodSettings) {
1727
+ obj.method_settings = message.methodSettings.map(e => e ? MethodSettings.toAmino(e) : undefined);
1728
+ } else {
1729
+ obj.method_settings = message.methodSettings;
1730
+ }
1731
+ obj.new_issue_uri = message.newIssueUri === "" ? undefined : message.newIssueUri;
1732
+ obj.documentation_uri = message.documentationUri === "" ? undefined : message.documentationUri;
1733
+ obj.api_short_name = message.apiShortName === "" ? undefined : message.apiShortName;
1734
+ obj.github_label = message.githubLabel === "" ? undefined : message.githubLabel;
1735
+ if (message.codeownerGithubTeams) {
1736
+ obj.codeowner_github_teams = message.codeownerGithubTeams.map(e => e);
1737
+ } else {
1738
+ obj.codeowner_github_teams = message.codeownerGithubTeams;
1739
+ }
1740
+ obj.doc_tag_prefix = message.docTagPrefix === "" ? undefined : message.docTagPrefix;
1741
+ obj.organization = message.organization === 0 ? undefined : message.organization;
1742
+ if (message.librarySettings) {
1743
+ obj.library_settings = message.librarySettings.map(e => e ? ClientLibrarySettings.toAmino(e) : undefined);
1744
+ } else {
1745
+ obj.library_settings = message.librarySettings;
1746
+ }
1747
+ obj.proto_reference_documentation_uri = message.protoReferenceDocumentationUri === "" ? undefined : message.protoReferenceDocumentationUri;
1748
+ obj.rest_reference_documentation_uri = message.restReferenceDocumentationUri === "" ? undefined : message.restReferenceDocumentationUri;
1749
+ return obj;
1750
+ },
1751
+ fromAminoMsg(object: PublishingAminoMsg): Publishing {
1752
+ return Publishing.fromAmino(object.value);
1753
+ },
1754
+ fromProtoMsg(message: PublishingProtoMsg): Publishing {
1755
+ return Publishing.decode(message.value);
1756
+ },
1757
+ toProto(message: Publishing): Uint8Array {
1758
+ return Publishing.encode(message).finish();
1759
+ },
1760
+ toProtoMsg(message: Publishing): PublishingProtoMsg {
1761
+ return {
1762
+ typeUrl: "/google.api.Publishing",
1763
+ value: Publishing.encode(message).finish()
1764
+ };
1765
+ }
1766
+ };
1767
+ function createBaseJavaSettings_ServiceClassNamesEntry(): JavaSettings_ServiceClassNamesEntry {
1768
+ return {
1769
+ key: "",
1770
+ value: ""
1771
+ };
1772
+ }
1773
+ export const JavaSettings_ServiceClassNamesEntry = {
1774
+ encode(message: JavaSettings_ServiceClassNamesEntry, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1775
+ if (message.key !== "") {
1776
+ writer.uint32(10).string(message.key);
1777
+ }
1778
+ if (message.value !== "") {
1779
+ writer.uint32(18).string(message.value);
1780
+ }
1781
+ return writer;
1782
+ },
1783
+ decode(input: BinaryReader | Uint8Array, length?: number): JavaSettings_ServiceClassNamesEntry {
1784
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1785
+ let end = length === undefined ? reader.len : reader.pos + length;
1786
+ const message = createBaseJavaSettings_ServiceClassNamesEntry();
1787
+ while (reader.pos < end) {
1788
+ const tag = reader.uint32();
1789
+ switch (tag >>> 3) {
1790
+ case 1:
1791
+ message.key = reader.string();
1792
+ break;
1793
+ case 2:
1794
+ message.value = reader.string();
1795
+ break;
1796
+ default:
1797
+ reader.skipType(tag & 7);
1798
+ break;
1799
+ }
1800
+ }
1801
+ return message;
1802
+ },
1803
+ fromPartial(object: Partial<JavaSettings_ServiceClassNamesEntry>): JavaSettings_ServiceClassNamesEntry {
1804
+ const message = createBaseJavaSettings_ServiceClassNamesEntry();
1805
+ message.key = object.key ?? "";
1806
+ message.value = object.value ?? "";
1807
+ return message;
1808
+ },
1809
+ fromAmino(object: JavaSettings_ServiceClassNamesEntryAmino): JavaSettings_ServiceClassNamesEntry {
1810
+ const message = createBaseJavaSettings_ServiceClassNamesEntry();
1811
+ if (object.key !== undefined && object.key !== null) {
1812
+ message.key = object.key;
1813
+ }
1814
+ if (object.value !== undefined && object.value !== null) {
1815
+ message.value = object.value;
1816
+ }
1817
+ return message;
1818
+ },
1819
+ toAmino(message: JavaSettings_ServiceClassNamesEntry): JavaSettings_ServiceClassNamesEntryAmino {
1820
+ const obj: any = {};
1821
+ obj.key = message.key === "" ? undefined : message.key;
1822
+ obj.value = message.value === "" ? undefined : message.value;
1823
+ return obj;
1824
+ },
1825
+ fromAminoMsg(object: JavaSettings_ServiceClassNamesEntryAminoMsg): JavaSettings_ServiceClassNamesEntry {
1826
+ return JavaSettings_ServiceClassNamesEntry.fromAmino(object.value);
1827
+ },
1828
+ fromProtoMsg(message: JavaSettings_ServiceClassNamesEntryProtoMsg): JavaSettings_ServiceClassNamesEntry {
1829
+ return JavaSettings_ServiceClassNamesEntry.decode(message.value);
1830
+ },
1831
+ toProto(message: JavaSettings_ServiceClassNamesEntry): Uint8Array {
1832
+ return JavaSettings_ServiceClassNamesEntry.encode(message).finish();
1833
+ }
1834
+ };
1835
+ function createBaseJavaSettings(): JavaSettings {
1836
+ return {
1837
+ libraryPackage: "",
1838
+ serviceClassNames: {},
1839
+ common: undefined
1840
+ };
1841
+ }
1842
+ export const JavaSettings = {
1843
+ typeUrl: "/google.api.JavaSettings",
1844
+ encode(message: JavaSettings, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1845
+ if (message.libraryPackage !== "") {
1846
+ writer.uint32(10).string(message.libraryPackage);
1847
+ }
1848
+ Object.entries(message.serviceClassNames).forEach(([key, value]) => {
1849
+ JavaSettings_ServiceClassNamesEntry.encode({
1850
+ key: key as any,
1851
+ value
1852
+ }, writer.uint32(18).fork()).ldelim();
1853
+ });
1854
+ if (message.common !== undefined) {
1855
+ CommonLanguageSettings.encode(message.common, writer.uint32(26).fork()).ldelim();
1856
+ }
1857
+ return writer;
1858
+ },
1859
+ decode(input: BinaryReader | Uint8Array, length?: number): JavaSettings {
1860
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1861
+ let end = length === undefined ? reader.len : reader.pos + length;
1862
+ const message = createBaseJavaSettings();
1863
+ while (reader.pos < end) {
1864
+ const tag = reader.uint32();
1865
+ switch (tag >>> 3) {
1866
+ case 1:
1867
+ message.libraryPackage = reader.string();
1868
+ break;
1869
+ case 2:
1870
+ const entry2 = JavaSettings_ServiceClassNamesEntry.decode(reader, reader.uint32());
1871
+ if (entry2.value !== undefined) {
1872
+ message.serviceClassNames[entry2.key] = entry2.value;
1873
+ }
1874
+ break;
1875
+ case 3:
1876
+ message.common = CommonLanguageSettings.decode(reader, reader.uint32());
1877
+ break;
1878
+ default:
1879
+ reader.skipType(tag & 7);
1880
+ break;
1881
+ }
1882
+ }
1883
+ return message;
1884
+ },
1885
+ fromPartial(object: Partial<JavaSettings>): JavaSettings {
1886
+ const message = createBaseJavaSettings();
1887
+ message.libraryPackage = object.libraryPackage ?? "";
1888
+ message.serviceClassNames = Object.entries(object.serviceClassNames ?? {}).reduce<{
1889
+ [key: string]: string;
1890
+ }>((acc, [key, value]) => {
1891
+ if (value !== undefined) {
1892
+ acc[key] = String(value);
1893
+ }
1894
+ return acc;
1895
+ }, {});
1896
+ message.common = object.common !== undefined && object.common !== null ? CommonLanguageSettings.fromPartial(object.common) : undefined;
1897
+ return message;
1898
+ },
1899
+ fromAmino(object: JavaSettingsAmino): JavaSettings {
1900
+ const message = createBaseJavaSettings();
1901
+ if (object.library_package !== undefined && object.library_package !== null) {
1902
+ message.libraryPackage = object.library_package;
1903
+ }
1904
+ message.serviceClassNames = Object.entries(object.service_class_names ?? {}).reduce<{
1905
+ [key: string]: string;
1906
+ }>((acc, [key, value]) => {
1907
+ if (value !== undefined) {
1908
+ acc[key] = String(value);
1909
+ }
1910
+ return acc;
1911
+ }, {});
1912
+ if (object.common !== undefined && object.common !== null) {
1913
+ message.common = CommonLanguageSettings.fromAmino(object.common);
1914
+ }
1915
+ return message;
1916
+ },
1917
+ toAmino(message: JavaSettings): JavaSettingsAmino {
1918
+ const obj: any = {};
1919
+ obj.library_package = message.libraryPackage === "" ? undefined : message.libraryPackage;
1920
+ obj.service_class_names = {};
1921
+ if (message.serviceClassNames) {
1922
+ Object.entries(message.serviceClassNames).forEach(([k, v]) => {
1923
+ obj.service_class_names[k] = v;
1924
+ });
1925
+ }
1926
+ obj.common = message.common ? CommonLanguageSettings.toAmino(message.common) : undefined;
1927
+ return obj;
1928
+ },
1929
+ fromAminoMsg(object: JavaSettingsAminoMsg): JavaSettings {
1930
+ return JavaSettings.fromAmino(object.value);
1931
+ },
1932
+ fromProtoMsg(message: JavaSettingsProtoMsg): JavaSettings {
1933
+ return JavaSettings.decode(message.value);
1934
+ },
1935
+ toProto(message: JavaSettings): Uint8Array {
1936
+ return JavaSettings.encode(message).finish();
1937
+ },
1938
+ toProtoMsg(message: JavaSettings): JavaSettingsProtoMsg {
1939
+ return {
1940
+ typeUrl: "/google.api.JavaSettings",
1941
+ value: JavaSettings.encode(message).finish()
1942
+ };
1943
+ }
1944
+ };
1945
+ function createBaseCppSettings(): CppSettings {
1946
+ return {
1947
+ common: undefined
1948
+ };
1949
+ }
1950
+ export const CppSettings = {
1951
+ typeUrl: "/google.api.CppSettings",
1952
+ encode(message: CppSettings, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1953
+ if (message.common !== undefined) {
1954
+ CommonLanguageSettings.encode(message.common, writer.uint32(10).fork()).ldelim();
1955
+ }
1956
+ return writer;
1957
+ },
1958
+ decode(input: BinaryReader | Uint8Array, length?: number): CppSettings {
1959
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1960
+ let end = length === undefined ? reader.len : reader.pos + length;
1961
+ const message = createBaseCppSettings();
1962
+ while (reader.pos < end) {
1963
+ const tag = reader.uint32();
1964
+ switch (tag >>> 3) {
1965
+ case 1:
1966
+ message.common = CommonLanguageSettings.decode(reader, reader.uint32());
1967
+ break;
1968
+ default:
1969
+ reader.skipType(tag & 7);
1970
+ break;
1971
+ }
1972
+ }
1973
+ return message;
1974
+ },
1975
+ fromPartial(object: Partial<CppSettings>): CppSettings {
1976
+ const message = createBaseCppSettings();
1977
+ message.common = object.common !== undefined && object.common !== null ? CommonLanguageSettings.fromPartial(object.common) : undefined;
1978
+ return message;
1979
+ },
1980
+ fromAmino(object: CppSettingsAmino): CppSettings {
1981
+ const message = createBaseCppSettings();
1982
+ if (object.common !== undefined && object.common !== null) {
1983
+ message.common = CommonLanguageSettings.fromAmino(object.common);
1984
+ }
1985
+ return message;
1986
+ },
1987
+ toAmino(message: CppSettings): CppSettingsAmino {
1988
+ const obj: any = {};
1989
+ obj.common = message.common ? CommonLanguageSettings.toAmino(message.common) : undefined;
1990
+ return obj;
1991
+ },
1992
+ fromAminoMsg(object: CppSettingsAminoMsg): CppSettings {
1993
+ return CppSettings.fromAmino(object.value);
1994
+ },
1995
+ fromProtoMsg(message: CppSettingsProtoMsg): CppSettings {
1996
+ return CppSettings.decode(message.value);
1997
+ },
1998
+ toProto(message: CppSettings): Uint8Array {
1999
+ return CppSettings.encode(message).finish();
2000
+ },
2001
+ toProtoMsg(message: CppSettings): CppSettingsProtoMsg {
2002
+ return {
2003
+ typeUrl: "/google.api.CppSettings",
2004
+ value: CppSettings.encode(message).finish()
2005
+ };
2006
+ }
2007
+ };
2008
+ function createBasePhpSettings(): PhpSettings {
2009
+ return {
2010
+ common: undefined
2011
+ };
2012
+ }
2013
+ export const PhpSettings = {
2014
+ typeUrl: "/google.api.PhpSettings",
2015
+ encode(message: PhpSettings, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
2016
+ if (message.common !== undefined) {
2017
+ CommonLanguageSettings.encode(message.common, writer.uint32(10).fork()).ldelim();
2018
+ }
2019
+ return writer;
2020
+ },
2021
+ decode(input: BinaryReader | Uint8Array, length?: number): PhpSettings {
2022
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2023
+ let end = length === undefined ? reader.len : reader.pos + length;
2024
+ const message = createBasePhpSettings();
2025
+ while (reader.pos < end) {
2026
+ const tag = reader.uint32();
2027
+ switch (tag >>> 3) {
2028
+ case 1:
2029
+ message.common = CommonLanguageSettings.decode(reader, reader.uint32());
2030
+ break;
2031
+ default:
2032
+ reader.skipType(tag & 7);
2033
+ break;
2034
+ }
2035
+ }
2036
+ return message;
2037
+ },
2038
+ fromPartial(object: Partial<PhpSettings>): PhpSettings {
2039
+ const message = createBasePhpSettings();
2040
+ message.common = object.common !== undefined && object.common !== null ? CommonLanguageSettings.fromPartial(object.common) : undefined;
2041
+ return message;
2042
+ },
2043
+ fromAmino(object: PhpSettingsAmino): PhpSettings {
2044
+ const message = createBasePhpSettings();
2045
+ if (object.common !== undefined && object.common !== null) {
2046
+ message.common = CommonLanguageSettings.fromAmino(object.common);
2047
+ }
2048
+ return message;
2049
+ },
2050
+ toAmino(message: PhpSettings): PhpSettingsAmino {
2051
+ const obj: any = {};
2052
+ obj.common = message.common ? CommonLanguageSettings.toAmino(message.common) : undefined;
2053
+ return obj;
2054
+ },
2055
+ fromAminoMsg(object: PhpSettingsAminoMsg): PhpSettings {
2056
+ return PhpSettings.fromAmino(object.value);
2057
+ },
2058
+ fromProtoMsg(message: PhpSettingsProtoMsg): PhpSettings {
2059
+ return PhpSettings.decode(message.value);
2060
+ },
2061
+ toProto(message: PhpSettings): Uint8Array {
2062
+ return PhpSettings.encode(message).finish();
2063
+ },
2064
+ toProtoMsg(message: PhpSettings): PhpSettingsProtoMsg {
2065
+ return {
2066
+ typeUrl: "/google.api.PhpSettings",
2067
+ value: PhpSettings.encode(message).finish()
2068
+ };
2069
+ }
2070
+ };
2071
+ function createBasePythonSettings(): PythonSettings {
2072
+ return {
2073
+ common: undefined,
2074
+ experimentalFeatures: undefined
2075
+ };
2076
+ }
2077
+ export const PythonSettings = {
2078
+ typeUrl: "/google.api.PythonSettings",
2079
+ encode(message: PythonSettings, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
2080
+ if (message.common !== undefined) {
2081
+ CommonLanguageSettings.encode(message.common, writer.uint32(10).fork()).ldelim();
2082
+ }
2083
+ if (message.experimentalFeatures !== undefined) {
2084
+ PythonSettings_ExperimentalFeatures.encode(message.experimentalFeatures, writer.uint32(18).fork()).ldelim();
2085
+ }
2086
+ return writer;
2087
+ },
2088
+ decode(input: BinaryReader | Uint8Array, length?: number): PythonSettings {
2089
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2090
+ let end = length === undefined ? reader.len : reader.pos + length;
2091
+ const message = createBasePythonSettings();
2092
+ while (reader.pos < end) {
2093
+ const tag = reader.uint32();
2094
+ switch (tag >>> 3) {
2095
+ case 1:
2096
+ message.common = CommonLanguageSettings.decode(reader, reader.uint32());
2097
+ break;
2098
+ case 2:
2099
+ message.experimentalFeatures = PythonSettings_ExperimentalFeatures.decode(reader, reader.uint32());
2100
+ break;
2101
+ default:
2102
+ reader.skipType(tag & 7);
2103
+ break;
2104
+ }
2105
+ }
2106
+ return message;
2107
+ },
2108
+ fromPartial(object: Partial<PythonSettings>): PythonSettings {
2109
+ const message = createBasePythonSettings();
2110
+ message.common = object.common !== undefined && object.common !== null ? CommonLanguageSettings.fromPartial(object.common) : undefined;
2111
+ message.experimentalFeatures = object.experimentalFeatures !== undefined && object.experimentalFeatures !== null ? PythonSettings_ExperimentalFeatures.fromPartial(object.experimentalFeatures) : undefined;
2112
+ return message;
2113
+ },
2114
+ fromAmino(object: PythonSettingsAmino): PythonSettings {
2115
+ const message = createBasePythonSettings();
2116
+ if (object.common !== undefined && object.common !== null) {
2117
+ message.common = CommonLanguageSettings.fromAmino(object.common);
2118
+ }
2119
+ if (object.experimental_features !== undefined && object.experimental_features !== null) {
2120
+ message.experimentalFeatures = PythonSettings_ExperimentalFeatures.fromAmino(object.experimental_features);
2121
+ }
2122
+ return message;
2123
+ },
2124
+ toAmino(message: PythonSettings): PythonSettingsAmino {
2125
+ const obj: any = {};
2126
+ obj.common = message.common ? CommonLanguageSettings.toAmino(message.common) : undefined;
2127
+ obj.experimental_features = message.experimentalFeatures ? PythonSettings_ExperimentalFeatures.toAmino(message.experimentalFeatures) : undefined;
2128
+ return obj;
2129
+ },
2130
+ fromAminoMsg(object: PythonSettingsAminoMsg): PythonSettings {
2131
+ return PythonSettings.fromAmino(object.value);
2132
+ },
2133
+ fromProtoMsg(message: PythonSettingsProtoMsg): PythonSettings {
2134
+ return PythonSettings.decode(message.value);
2135
+ },
2136
+ toProto(message: PythonSettings): Uint8Array {
2137
+ return PythonSettings.encode(message).finish();
2138
+ },
2139
+ toProtoMsg(message: PythonSettings): PythonSettingsProtoMsg {
2140
+ return {
2141
+ typeUrl: "/google.api.PythonSettings",
2142
+ value: PythonSettings.encode(message).finish()
2143
+ };
2144
+ }
2145
+ };
2146
+ function createBasePythonSettings_ExperimentalFeatures(): PythonSettings_ExperimentalFeatures {
2147
+ return {
2148
+ restAsyncIoEnabled: false,
2149
+ protobufPythonicTypesEnabled: false,
2150
+ unversionedPackageDisabled: false
2151
+ };
2152
+ }
2153
+ export const PythonSettings_ExperimentalFeatures = {
2154
+ typeUrl: "/google.api.ExperimentalFeatures",
2155
+ encode(message: PythonSettings_ExperimentalFeatures, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
2156
+ if (message.restAsyncIoEnabled === true) {
2157
+ writer.uint32(8).bool(message.restAsyncIoEnabled);
2158
+ }
2159
+ if (message.protobufPythonicTypesEnabled === true) {
2160
+ writer.uint32(16).bool(message.protobufPythonicTypesEnabled);
2161
+ }
2162
+ if (message.unversionedPackageDisabled === true) {
2163
+ writer.uint32(24).bool(message.unversionedPackageDisabled);
2164
+ }
2165
+ return writer;
2166
+ },
2167
+ decode(input: BinaryReader | Uint8Array, length?: number): PythonSettings_ExperimentalFeatures {
2168
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2169
+ let end = length === undefined ? reader.len : reader.pos + length;
2170
+ const message = createBasePythonSettings_ExperimentalFeatures();
2171
+ while (reader.pos < end) {
2172
+ const tag = reader.uint32();
2173
+ switch (tag >>> 3) {
2174
+ case 1:
2175
+ message.restAsyncIoEnabled = reader.bool();
2176
+ break;
2177
+ case 2:
2178
+ message.protobufPythonicTypesEnabled = reader.bool();
2179
+ break;
2180
+ case 3:
2181
+ message.unversionedPackageDisabled = reader.bool();
2182
+ break;
2183
+ default:
2184
+ reader.skipType(tag & 7);
2185
+ break;
2186
+ }
2187
+ }
2188
+ return message;
2189
+ },
2190
+ fromPartial(object: Partial<PythonSettings_ExperimentalFeatures>): PythonSettings_ExperimentalFeatures {
2191
+ const message = createBasePythonSettings_ExperimentalFeatures();
2192
+ message.restAsyncIoEnabled = object.restAsyncIoEnabled ?? false;
2193
+ message.protobufPythonicTypesEnabled = object.protobufPythonicTypesEnabled ?? false;
2194
+ message.unversionedPackageDisabled = object.unversionedPackageDisabled ?? false;
2195
+ return message;
2196
+ },
2197
+ fromAmino(object: PythonSettings_ExperimentalFeaturesAmino): PythonSettings_ExperimentalFeatures {
2198
+ const message = createBasePythonSettings_ExperimentalFeatures();
2199
+ if (object.rest_async_io_enabled !== undefined && object.rest_async_io_enabled !== null) {
2200
+ message.restAsyncIoEnabled = object.rest_async_io_enabled;
2201
+ }
2202
+ if (object.protobuf_pythonic_types_enabled !== undefined && object.protobuf_pythonic_types_enabled !== null) {
2203
+ message.protobufPythonicTypesEnabled = object.protobuf_pythonic_types_enabled;
2204
+ }
2205
+ if (object.unversioned_package_disabled !== undefined && object.unversioned_package_disabled !== null) {
2206
+ message.unversionedPackageDisabled = object.unversioned_package_disabled;
2207
+ }
2208
+ return message;
2209
+ },
2210
+ toAmino(message: PythonSettings_ExperimentalFeatures): PythonSettings_ExperimentalFeaturesAmino {
2211
+ const obj: any = {};
2212
+ obj.rest_async_io_enabled = message.restAsyncIoEnabled === false ? undefined : message.restAsyncIoEnabled;
2213
+ obj.protobuf_pythonic_types_enabled = message.protobufPythonicTypesEnabled === false ? undefined : message.protobufPythonicTypesEnabled;
2214
+ obj.unversioned_package_disabled = message.unversionedPackageDisabled === false ? undefined : message.unversionedPackageDisabled;
2215
+ return obj;
2216
+ },
2217
+ fromAminoMsg(object: PythonSettings_ExperimentalFeaturesAminoMsg): PythonSettings_ExperimentalFeatures {
2218
+ return PythonSettings_ExperimentalFeatures.fromAmino(object.value);
2219
+ },
2220
+ fromProtoMsg(message: PythonSettings_ExperimentalFeaturesProtoMsg): PythonSettings_ExperimentalFeatures {
2221
+ return PythonSettings_ExperimentalFeatures.decode(message.value);
2222
+ },
2223
+ toProto(message: PythonSettings_ExperimentalFeatures): Uint8Array {
2224
+ return PythonSettings_ExperimentalFeatures.encode(message).finish();
2225
+ },
2226
+ toProtoMsg(message: PythonSettings_ExperimentalFeatures): PythonSettings_ExperimentalFeaturesProtoMsg {
2227
+ return {
2228
+ typeUrl: "/google.api.ExperimentalFeatures",
2229
+ value: PythonSettings_ExperimentalFeatures.encode(message).finish()
2230
+ };
2231
+ }
2232
+ };
2233
+ function createBaseNodeSettings(): NodeSettings {
2234
+ return {
2235
+ common: undefined
2236
+ };
2237
+ }
2238
+ export const NodeSettings = {
2239
+ typeUrl: "/google.api.NodeSettings",
2240
+ encode(message: NodeSettings, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
2241
+ if (message.common !== undefined) {
2242
+ CommonLanguageSettings.encode(message.common, writer.uint32(10).fork()).ldelim();
2243
+ }
2244
+ return writer;
2245
+ },
2246
+ decode(input: BinaryReader | Uint8Array, length?: number): NodeSettings {
2247
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2248
+ let end = length === undefined ? reader.len : reader.pos + length;
2249
+ const message = createBaseNodeSettings();
2250
+ while (reader.pos < end) {
2251
+ const tag = reader.uint32();
2252
+ switch (tag >>> 3) {
2253
+ case 1:
2254
+ message.common = CommonLanguageSettings.decode(reader, reader.uint32());
2255
+ break;
2256
+ default:
2257
+ reader.skipType(tag & 7);
2258
+ break;
2259
+ }
2260
+ }
2261
+ return message;
2262
+ },
2263
+ fromPartial(object: Partial<NodeSettings>): NodeSettings {
2264
+ const message = createBaseNodeSettings();
2265
+ message.common = object.common !== undefined && object.common !== null ? CommonLanguageSettings.fromPartial(object.common) : undefined;
2266
+ return message;
2267
+ },
2268
+ fromAmino(object: NodeSettingsAmino): NodeSettings {
2269
+ const message = createBaseNodeSettings();
2270
+ if (object.common !== undefined && object.common !== null) {
2271
+ message.common = CommonLanguageSettings.fromAmino(object.common);
2272
+ }
2273
+ return message;
2274
+ },
2275
+ toAmino(message: NodeSettings): NodeSettingsAmino {
2276
+ const obj: any = {};
2277
+ obj.common = message.common ? CommonLanguageSettings.toAmino(message.common) : undefined;
2278
+ return obj;
2279
+ },
2280
+ fromAminoMsg(object: NodeSettingsAminoMsg): NodeSettings {
2281
+ return NodeSettings.fromAmino(object.value);
2282
+ },
2283
+ fromProtoMsg(message: NodeSettingsProtoMsg): NodeSettings {
2284
+ return NodeSettings.decode(message.value);
2285
+ },
2286
+ toProto(message: NodeSettings): Uint8Array {
2287
+ return NodeSettings.encode(message).finish();
2288
+ },
2289
+ toProtoMsg(message: NodeSettings): NodeSettingsProtoMsg {
2290
+ return {
2291
+ typeUrl: "/google.api.NodeSettings",
2292
+ value: NodeSettings.encode(message).finish()
2293
+ };
2294
+ }
2295
+ };
2296
+ function createBaseDotnetSettings_RenamedServicesEntry(): DotnetSettings_RenamedServicesEntry {
2297
+ return {
2298
+ key: "",
2299
+ value: ""
2300
+ };
2301
+ }
2302
+ export const DotnetSettings_RenamedServicesEntry = {
2303
+ encode(message: DotnetSettings_RenamedServicesEntry, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
2304
+ if (message.key !== "") {
2305
+ writer.uint32(10).string(message.key);
2306
+ }
2307
+ if (message.value !== "") {
2308
+ writer.uint32(18).string(message.value);
2309
+ }
2310
+ return writer;
2311
+ },
2312
+ decode(input: BinaryReader | Uint8Array, length?: number): DotnetSettings_RenamedServicesEntry {
2313
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2314
+ let end = length === undefined ? reader.len : reader.pos + length;
2315
+ const message = createBaseDotnetSettings_RenamedServicesEntry();
2316
+ while (reader.pos < end) {
2317
+ const tag = reader.uint32();
2318
+ switch (tag >>> 3) {
2319
+ case 1:
2320
+ message.key = reader.string();
2321
+ break;
2322
+ case 2:
2323
+ message.value = reader.string();
2324
+ break;
2325
+ default:
2326
+ reader.skipType(tag & 7);
2327
+ break;
2328
+ }
2329
+ }
2330
+ return message;
2331
+ },
2332
+ fromPartial(object: Partial<DotnetSettings_RenamedServicesEntry>): DotnetSettings_RenamedServicesEntry {
2333
+ const message = createBaseDotnetSettings_RenamedServicesEntry();
2334
+ message.key = object.key ?? "";
2335
+ message.value = object.value ?? "";
2336
+ return message;
2337
+ },
2338
+ fromAmino(object: DotnetSettings_RenamedServicesEntryAmino): DotnetSettings_RenamedServicesEntry {
2339
+ const message = createBaseDotnetSettings_RenamedServicesEntry();
2340
+ if (object.key !== undefined && object.key !== null) {
2341
+ message.key = object.key;
2342
+ }
2343
+ if (object.value !== undefined && object.value !== null) {
2344
+ message.value = object.value;
2345
+ }
2346
+ return message;
2347
+ },
2348
+ toAmino(message: DotnetSettings_RenamedServicesEntry): DotnetSettings_RenamedServicesEntryAmino {
2349
+ const obj: any = {};
2350
+ obj.key = message.key === "" ? undefined : message.key;
2351
+ obj.value = message.value === "" ? undefined : message.value;
2352
+ return obj;
2353
+ },
2354
+ fromAminoMsg(object: DotnetSettings_RenamedServicesEntryAminoMsg): DotnetSettings_RenamedServicesEntry {
2355
+ return DotnetSettings_RenamedServicesEntry.fromAmino(object.value);
2356
+ },
2357
+ fromProtoMsg(message: DotnetSettings_RenamedServicesEntryProtoMsg): DotnetSettings_RenamedServicesEntry {
2358
+ return DotnetSettings_RenamedServicesEntry.decode(message.value);
2359
+ },
2360
+ toProto(message: DotnetSettings_RenamedServicesEntry): Uint8Array {
2361
+ return DotnetSettings_RenamedServicesEntry.encode(message).finish();
2362
+ }
2363
+ };
2364
+ function createBaseDotnetSettings_RenamedResourcesEntry(): DotnetSettings_RenamedResourcesEntry {
2365
+ return {
2366
+ key: "",
2367
+ value: ""
2368
+ };
2369
+ }
2370
+ export const DotnetSettings_RenamedResourcesEntry = {
2371
+ encode(message: DotnetSettings_RenamedResourcesEntry, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
2372
+ if (message.key !== "") {
2373
+ writer.uint32(10).string(message.key);
2374
+ }
2375
+ if (message.value !== "") {
2376
+ writer.uint32(18).string(message.value);
2377
+ }
2378
+ return writer;
2379
+ },
2380
+ decode(input: BinaryReader | Uint8Array, length?: number): DotnetSettings_RenamedResourcesEntry {
2381
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2382
+ let end = length === undefined ? reader.len : reader.pos + length;
2383
+ const message = createBaseDotnetSettings_RenamedResourcesEntry();
2384
+ while (reader.pos < end) {
2385
+ const tag = reader.uint32();
2386
+ switch (tag >>> 3) {
2387
+ case 1:
2388
+ message.key = reader.string();
2389
+ break;
2390
+ case 2:
2391
+ message.value = reader.string();
2392
+ break;
2393
+ default:
2394
+ reader.skipType(tag & 7);
2395
+ break;
2396
+ }
2397
+ }
2398
+ return message;
2399
+ },
2400
+ fromPartial(object: Partial<DotnetSettings_RenamedResourcesEntry>): DotnetSettings_RenamedResourcesEntry {
2401
+ const message = createBaseDotnetSettings_RenamedResourcesEntry();
2402
+ message.key = object.key ?? "";
2403
+ message.value = object.value ?? "";
2404
+ return message;
2405
+ },
2406
+ fromAmino(object: DotnetSettings_RenamedResourcesEntryAmino): DotnetSettings_RenamedResourcesEntry {
2407
+ const message = createBaseDotnetSettings_RenamedResourcesEntry();
2408
+ if (object.key !== undefined && object.key !== null) {
2409
+ message.key = object.key;
2410
+ }
2411
+ if (object.value !== undefined && object.value !== null) {
2412
+ message.value = object.value;
2413
+ }
2414
+ return message;
2415
+ },
2416
+ toAmino(message: DotnetSettings_RenamedResourcesEntry): DotnetSettings_RenamedResourcesEntryAmino {
2417
+ const obj: any = {};
2418
+ obj.key = message.key === "" ? undefined : message.key;
2419
+ obj.value = message.value === "" ? undefined : message.value;
2420
+ return obj;
2421
+ },
2422
+ fromAminoMsg(object: DotnetSettings_RenamedResourcesEntryAminoMsg): DotnetSettings_RenamedResourcesEntry {
2423
+ return DotnetSettings_RenamedResourcesEntry.fromAmino(object.value);
2424
+ },
2425
+ fromProtoMsg(message: DotnetSettings_RenamedResourcesEntryProtoMsg): DotnetSettings_RenamedResourcesEntry {
2426
+ return DotnetSettings_RenamedResourcesEntry.decode(message.value);
2427
+ },
2428
+ toProto(message: DotnetSettings_RenamedResourcesEntry): Uint8Array {
2429
+ return DotnetSettings_RenamedResourcesEntry.encode(message).finish();
2430
+ }
2431
+ };
2432
+ function createBaseDotnetSettings(): DotnetSettings {
2433
+ return {
2434
+ common: undefined,
2435
+ renamedServices: {},
2436
+ renamedResources: {},
2437
+ ignoredResources: [],
2438
+ forcedNamespaceAliases: [],
2439
+ handwrittenSignatures: []
2440
+ };
2441
+ }
2442
+ export const DotnetSettings = {
2443
+ typeUrl: "/google.api.DotnetSettings",
2444
+ encode(message: DotnetSettings, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
2445
+ if (message.common !== undefined) {
2446
+ CommonLanguageSettings.encode(message.common, writer.uint32(10).fork()).ldelim();
2447
+ }
2448
+ Object.entries(message.renamedServices).forEach(([key, value]) => {
2449
+ DotnetSettings_RenamedServicesEntry.encode({
2450
+ key: key as any,
2451
+ value
2452
+ }, writer.uint32(18).fork()).ldelim();
2453
+ });
2454
+ Object.entries(message.renamedResources).forEach(([key, value]) => {
2455
+ DotnetSettings_RenamedResourcesEntry.encode({
2456
+ key: key as any,
2457
+ value
2458
+ }, writer.uint32(26).fork()).ldelim();
2459
+ });
2460
+ for (const v of message.ignoredResources) {
2461
+ writer.uint32(34).string(v!);
2462
+ }
2463
+ for (const v of message.forcedNamespaceAliases) {
2464
+ writer.uint32(42).string(v!);
2465
+ }
2466
+ for (const v of message.handwrittenSignatures) {
2467
+ writer.uint32(50).string(v!);
2468
+ }
2469
+ return writer;
2470
+ },
2471
+ decode(input: BinaryReader | Uint8Array, length?: number): DotnetSettings {
2472
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2473
+ let end = length === undefined ? reader.len : reader.pos + length;
2474
+ const message = createBaseDotnetSettings();
2475
+ while (reader.pos < end) {
2476
+ const tag = reader.uint32();
2477
+ switch (tag >>> 3) {
2478
+ case 1:
2479
+ message.common = CommonLanguageSettings.decode(reader, reader.uint32());
2480
+ break;
2481
+ case 2:
2482
+ const entry2 = DotnetSettings_RenamedServicesEntry.decode(reader, reader.uint32());
2483
+ if (entry2.value !== undefined) {
2484
+ message.renamedServices[entry2.key] = entry2.value;
2485
+ }
2486
+ break;
2487
+ case 3:
2488
+ const entry3 = DotnetSettings_RenamedResourcesEntry.decode(reader, reader.uint32());
2489
+ if (entry3.value !== undefined) {
2490
+ message.renamedResources[entry3.key] = entry3.value;
2491
+ }
2492
+ break;
2493
+ case 4:
2494
+ message.ignoredResources.push(reader.string());
2495
+ break;
2496
+ case 5:
2497
+ message.forcedNamespaceAliases.push(reader.string());
2498
+ break;
2499
+ case 6:
2500
+ message.handwrittenSignatures.push(reader.string());
2501
+ break;
2502
+ default:
2503
+ reader.skipType(tag & 7);
2504
+ break;
2505
+ }
2506
+ }
2507
+ return message;
2508
+ },
2509
+ fromPartial(object: Partial<DotnetSettings>): DotnetSettings {
2510
+ const message = createBaseDotnetSettings();
2511
+ message.common = object.common !== undefined && object.common !== null ? CommonLanguageSettings.fromPartial(object.common) : undefined;
2512
+ message.renamedServices = Object.entries(object.renamedServices ?? {}).reduce<{
2513
+ [key: string]: string;
2514
+ }>((acc, [key, value]) => {
2515
+ if (value !== undefined) {
2516
+ acc[key] = String(value);
2517
+ }
2518
+ return acc;
2519
+ }, {});
2520
+ message.renamedResources = Object.entries(object.renamedResources ?? {}).reduce<{
2521
+ [key: string]: string;
2522
+ }>((acc, [key, value]) => {
2523
+ if (value !== undefined) {
2524
+ acc[key] = String(value);
2525
+ }
2526
+ return acc;
2527
+ }, {});
2528
+ message.ignoredResources = object.ignoredResources?.map(e => e) || [];
2529
+ message.forcedNamespaceAliases = object.forcedNamespaceAliases?.map(e => e) || [];
2530
+ message.handwrittenSignatures = object.handwrittenSignatures?.map(e => e) || [];
2531
+ return message;
2532
+ },
2533
+ fromAmino(object: DotnetSettingsAmino): DotnetSettings {
2534
+ const message = createBaseDotnetSettings();
2535
+ if (object.common !== undefined && object.common !== null) {
2536
+ message.common = CommonLanguageSettings.fromAmino(object.common);
2537
+ }
2538
+ message.renamedServices = Object.entries(object.renamed_services ?? {}).reduce<{
2539
+ [key: string]: string;
2540
+ }>((acc, [key, value]) => {
2541
+ if (value !== undefined) {
2542
+ acc[key] = String(value);
2543
+ }
2544
+ return acc;
2545
+ }, {});
2546
+ message.renamedResources = Object.entries(object.renamed_resources ?? {}).reduce<{
2547
+ [key: string]: string;
2548
+ }>((acc, [key, value]) => {
2549
+ if (value !== undefined) {
2550
+ acc[key] = String(value);
2551
+ }
2552
+ return acc;
2553
+ }, {});
2554
+ message.ignoredResources = object.ignored_resources?.map(e => e) || [];
2555
+ message.forcedNamespaceAliases = object.forced_namespace_aliases?.map(e => e) || [];
2556
+ message.handwrittenSignatures = object.handwritten_signatures?.map(e => e) || [];
2557
+ return message;
2558
+ },
2559
+ toAmino(message: DotnetSettings): DotnetSettingsAmino {
2560
+ const obj: any = {};
2561
+ obj.common = message.common ? CommonLanguageSettings.toAmino(message.common) : undefined;
2562
+ obj.renamed_services = {};
2563
+ if (message.renamedServices) {
2564
+ Object.entries(message.renamedServices).forEach(([k, v]) => {
2565
+ obj.renamed_services[k] = v;
2566
+ });
2567
+ }
2568
+ obj.renamed_resources = {};
2569
+ if (message.renamedResources) {
2570
+ Object.entries(message.renamedResources).forEach(([k, v]) => {
2571
+ obj.renamed_resources[k] = v;
2572
+ });
2573
+ }
2574
+ if (message.ignoredResources) {
2575
+ obj.ignored_resources = message.ignoredResources.map(e => e);
2576
+ } else {
2577
+ obj.ignored_resources = message.ignoredResources;
2578
+ }
2579
+ if (message.forcedNamespaceAliases) {
2580
+ obj.forced_namespace_aliases = message.forcedNamespaceAliases.map(e => e);
2581
+ } else {
2582
+ obj.forced_namespace_aliases = message.forcedNamespaceAliases;
2583
+ }
2584
+ if (message.handwrittenSignatures) {
2585
+ obj.handwritten_signatures = message.handwrittenSignatures.map(e => e);
2586
+ } else {
2587
+ obj.handwritten_signatures = message.handwrittenSignatures;
2588
+ }
2589
+ return obj;
2590
+ },
2591
+ fromAminoMsg(object: DotnetSettingsAminoMsg): DotnetSettings {
2592
+ return DotnetSettings.fromAmino(object.value);
2593
+ },
2594
+ fromProtoMsg(message: DotnetSettingsProtoMsg): DotnetSettings {
2595
+ return DotnetSettings.decode(message.value);
2596
+ },
2597
+ toProto(message: DotnetSettings): Uint8Array {
2598
+ return DotnetSettings.encode(message).finish();
2599
+ },
2600
+ toProtoMsg(message: DotnetSettings): DotnetSettingsProtoMsg {
2601
+ return {
2602
+ typeUrl: "/google.api.DotnetSettings",
2603
+ value: DotnetSettings.encode(message).finish()
2604
+ };
2605
+ }
2606
+ };
2607
+ function createBaseRubySettings(): RubySettings {
2608
+ return {
2609
+ common: undefined
2610
+ };
2611
+ }
2612
+ export const RubySettings = {
2613
+ typeUrl: "/google.api.RubySettings",
2614
+ encode(message: RubySettings, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
2615
+ if (message.common !== undefined) {
2616
+ CommonLanguageSettings.encode(message.common, writer.uint32(10).fork()).ldelim();
2617
+ }
2618
+ return writer;
2619
+ },
2620
+ decode(input: BinaryReader | Uint8Array, length?: number): RubySettings {
2621
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2622
+ let end = length === undefined ? reader.len : reader.pos + length;
2623
+ const message = createBaseRubySettings();
2624
+ while (reader.pos < end) {
2625
+ const tag = reader.uint32();
2626
+ switch (tag >>> 3) {
2627
+ case 1:
2628
+ message.common = CommonLanguageSettings.decode(reader, reader.uint32());
2629
+ break;
2630
+ default:
2631
+ reader.skipType(tag & 7);
2632
+ break;
2633
+ }
2634
+ }
2635
+ return message;
2636
+ },
2637
+ fromPartial(object: Partial<RubySettings>): RubySettings {
2638
+ const message = createBaseRubySettings();
2639
+ message.common = object.common !== undefined && object.common !== null ? CommonLanguageSettings.fromPartial(object.common) : undefined;
2640
+ return message;
2641
+ },
2642
+ fromAmino(object: RubySettingsAmino): RubySettings {
2643
+ const message = createBaseRubySettings();
2644
+ if (object.common !== undefined && object.common !== null) {
2645
+ message.common = CommonLanguageSettings.fromAmino(object.common);
2646
+ }
2647
+ return message;
2648
+ },
2649
+ toAmino(message: RubySettings): RubySettingsAmino {
2650
+ const obj: any = {};
2651
+ obj.common = message.common ? CommonLanguageSettings.toAmino(message.common) : undefined;
2652
+ return obj;
2653
+ },
2654
+ fromAminoMsg(object: RubySettingsAminoMsg): RubySettings {
2655
+ return RubySettings.fromAmino(object.value);
2656
+ },
2657
+ fromProtoMsg(message: RubySettingsProtoMsg): RubySettings {
2658
+ return RubySettings.decode(message.value);
2659
+ },
2660
+ toProto(message: RubySettings): Uint8Array {
2661
+ return RubySettings.encode(message).finish();
2662
+ },
2663
+ toProtoMsg(message: RubySettings): RubySettingsProtoMsg {
2664
+ return {
2665
+ typeUrl: "/google.api.RubySettings",
2666
+ value: RubySettings.encode(message).finish()
2667
+ };
2668
+ }
2669
+ };
2670
+ function createBaseGoSettings_RenamedServicesEntry(): GoSettings_RenamedServicesEntry {
2671
+ return {
2672
+ key: "",
2673
+ value: ""
2674
+ };
2675
+ }
2676
+ export const GoSettings_RenamedServicesEntry = {
2677
+ encode(message: GoSettings_RenamedServicesEntry, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
2678
+ if (message.key !== "") {
2679
+ writer.uint32(10).string(message.key);
2680
+ }
2681
+ if (message.value !== "") {
2682
+ writer.uint32(18).string(message.value);
2683
+ }
2684
+ return writer;
2685
+ },
2686
+ decode(input: BinaryReader | Uint8Array, length?: number): GoSettings_RenamedServicesEntry {
2687
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2688
+ let end = length === undefined ? reader.len : reader.pos + length;
2689
+ const message = createBaseGoSettings_RenamedServicesEntry();
2690
+ while (reader.pos < end) {
2691
+ const tag = reader.uint32();
2692
+ switch (tag >>> 3) {
2693
+ case 1:
2694
+ message.key = reader.string();
2695
+ break;
2696
+ case 2:
2697
+ message.value = reader.string();
2698
+ break;
2699
+ default:
2700
+ reader.skipType(tag & 7);
2701
+ break;
2702
+ }
2703
+ }
2704
+ return message;
2705
+ },
2706
+ fromPartial(object: Partial<GoSettings_RenamedServicesEntry>): GoSettings_RenamedServicesEntry {
2707
+ const message = createBaseGoSettings_RenamedServicesEntry();
2708
+ message.key = object.key ?? "";
2709
+ message.value = object.value ?? "";
2710
+ return message;
2711
+ },
2712
+ fromAmino(object: GoSettings_RenamedServicesEntryAmino): GoSettings_RenamedServicesEntry {
2713
+ const message = createBaseGoSettings_RenamedServicesEntry();
2714
+ if (object.key !== undefined && object.key !== null) {
2715
+ message.key = object.key;
2716
+ }
2717
+ if (object.value !== undefined && object.value !== null) {
2718
+ message.value = object.value;
2719
+ }
2720
+ return message;
2721
+ },
2722
+ toAmino(message: GoSettings_RenamedServicesEntry): GoSettings_RenamedServicesEntryAmino {
2723
+ const obj: any = {};
2724
+ obj.key = message.key === "" ? undefined : message.key;
2725
+ obj.value = message.value === "" ? undefined : message.value;
2726
+ return obj;
2727
+ },
2728
+ fromAminoMsg(object: GoSettings_RenamedServicesEntryAminoMsg): GoSettings_RenamedServicesEntry {
2729
+ return GoSettings_RenamedServicesEntry.fromAmino(object.value);
2730
+ },
2731
+ fromProtoMsg(message: GoSettings_RenamedServicesEntryProtoMsg): GoSettings_RenamedServicesEntry {
2732
+ return GoSettings_RenamedServicesEntry.decode(message.value);
2733
+ },
2734
+ toProto(message: GoSettings_RenamedServicesEntry): Uint8Array {
2735
+ return GoSettings_RenamedServicesEntry.encode(message).finish();
2736
+ }
2737
+ };
2738
+ function createBaseGoSettings(): GoSettings {
2739
+ return {
2740
+ common: undefined,
2741
+ renamedServices: {}
2742
+ };
2743
+ }
2744
+ export const GoSettings = {
2745
+ typeUrl: "/google.api.GoSettings",
2746
+ encode(message: GoSettings, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
2747
+ if (message.common !== undefined) {
2748
+ CommonLanguageSettings.encode(message.common, writer.uint32(10).fork()).ldelim();
2749
+ }
2750
+ Object.entries(message.renamedServices).forEach(([key, value]) => {
2751
+ GoSettings_RenamedServicesEntry.encode({
2752
+ key: key as any,
2753
+ value
2754
+ }, writer.uint32(18).fork()).ldelim();
2755
+ });
2756
+ return writer;
2757
+ },
2758
+ decode(input: BinaryReader | Uint8Array, length?: number): GoSettings {
2759
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2760
+ let end = length === undefined ? reader.len : reader.pos + length;
2761
+ const message = createBaseGoSettings();
2762
+ while (reader.pos < end) {
2763
+ const tag = reader.uint32();
2764
+ switch (tag >>> 3) {
2765
+ case 1:
2766
+ message.common = CommonLanguageSettings.decode(reader, reader.uint32());
2767
+ break;
2768
+ case 2:
2769
+ const entry2 = GoSettings_RenamedServicesEntry.decode(reader, reader.uint32());
2770
+ if (entry2.value !== undefined) {
2771
+ message.renamedServices[entry2.key] = entry2.value;
2772
+ }
2773
+ break;
2774
+ default:
2775
+ reader.skipType(tag & 7);
2776
+ break;
2777
+ }
2778
+ }
2779
+ return message;
2780
+ },
2781
+ fromPartial(object: Partial<GoSettings>): GoSettings {
2782
+ const message = createBaseGoSettings();
2783
+ message.common = object.common !== undefined && object.common !== null ? CommonLanguageSettings.fromPartial(object.common) : undefined;
2784
+ message.renamedServices = Object.entries(object.renamedServices ?? {}).reduce<{
2785
+ [key: string]: string;
2786
+ }>((acc, [key, value]) => {
2787
+ if (value !== undefined) {
2788
+ acc[key] = String(value);
2789
+ }
2790
+ return acc;
2791
+ }, {});
2792
+ return message;
2793
+ },
2794
+ fromAmino(object: GoSettingsAmino): GoSettings {
2795
+ const message = createBaseGoSettings();
2796
+ if (object.common !== undefined && object.common !== null) {
2797
+ message.common = CommonLanguageSettings.fromAmino(object.common);
2798
+ }
2799
+ message.renamedServices = Object.entries(object.renamed_services ?? {}).reduce<{
2800
+ [key: string]: string;
2801
+ }>((acc, [key, value]) => {
2802
+ if (value !== undefined) {
2803
+ acc[key] = String(value);
2804
+ }
2805
+ return acc;
2806
+ }, {});
2807
+ return message;
2808
+ },
2809
+ toAmino(message: GoSettings): GoSettingsAmino {
2810
+ const obj: any = {};
2811
+ obj.common = message.common ? CommonLanguageSettings.toAmino(message.common) : undefined;
2812
+ obj.renamed_services = {};
2813
+ if (message.renamedServices) {
2814
+ Object.entries(message.renamedServices).forEach(([k, v]) => {
2815
+ obj.renamed_services[k] = v;
2816
+ });
2817
+ }
2818
+ return obj;
2819
+ },
2820
+ fromAminoMsg(object: GoSettingsAminoMsg): GoSettings {
2821
+ return GoSettings.fromAmino(object.value);
2822
+ },
2823
+ fromProtoMsg(message: GoSettingsProtoMsg): GoSettings {
2824
+ return GoSettings.decode(message.value);
2825
+ },
2826
+ toProto(message: GoSettings): Uint8Array {
2827
+ return GoSettings.encode(message).finish();
2828
+ },
2829
+ toProtoMsg(message: GoSettings): GoSettingsProtoMsg {
2830
+ return {
2831
+ typeUrl: "/google.api.GoSettings",
2832
+ value: GoSettings.encode(message).finish()
2833
+ };
2834
+ }
2835
+ };
2836
+ function createBaseMethodSettings(): MethodSettings {
2837
+ return {
2838
+ selector: "",
2839
+ longRunning: undefined,
2840
+ autoPopulatedFields: []
2841
+ };
2842
+ }
2843
+ export const MethodSettings = {
2844
+ typeUrl: "/google.api.MethodSettings",
2845
+ encode(message: MethodSettings, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
2846
+ if (message.selector !== "") {
2847
+ writer.uint32(10).string(message.selector);
2848
+ }
2849
+ if (message.longRunning !== undefined) {
2850
+ MethodSettings_LongRunning.encode(message.longRunning, writer.uint32(18).fork()).ldelim();
2851
+ }
2852
+ for (const v of message.autoPopulatedFields) {
2853
+ writer.uint32(26).string(v!);
2854
+ }
2855
+ return writer;
2856
+ },
2857
+ decode(input: BinaryReader | Uint8Array, length?: number): MethodSettings {
2858
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2859
+ let end = length === undefined ? reader.len : reader.pos + length;
2860
+ const message = createBaseMethodSettings();
2861
+ while (reader.pos < end) {
2862
+ const tag = reader.uint32();
2863
+ switch (tag >>> 3) {
2864
+ case 1:
2865
+ message.selector = reader.string();
2866
+ break;
2867
+ case 2:
2868
+ message.longRunning = MethodSettings_LongRunning.decode(reader, reader.uint32());
2869
+ break;
2870
+ case 3:
2871
+ message.autoPopulatedFields.push(reader.string());
2872
+ break;
2873
+ default:
2874
+ reader.skipType(tag & 7);
2875
+ break;
2876
+ }
2877
+ }
2878
+ return message;
2879
+ },
2880
+ fromPartial(object: Partial<MethodSettings>): MethodSettings {
2881
+ const message = createBaseMethodSettings();
2882
+ message.selector = object.selector ?? "";
2883
+ message.longRunning = object.longRunning !== undefined && object.longRunning !== null ? MethodSettings_LongRunning.fromPartial(object.longRunning) : undefined;
2884
+ message.autoPopulatedFields = object.autoPopulatedFields?.map(e => e) || [];
2885
+ return message;
2886
+ },
2887
+ fromAmino(object: MethodSettingsAmino): MethodSettings {
2888
+ const message = createBaseMethodSettings();
2889
+ if (object.selector !== undefined && object.selector !== null) {
2890
+ message.selector = object.selector;
2891
+ }
2892
+ if (object.long_running !== undefined && object.long_running !== null) {
2893
+ message.longRunning = MethodSettings_LongRunning.fromAmino(object.long_running);
2894
+ }
2895
+ message.autoPopulatedFields = object.auto_populated_fields?.map(e => e) || [];
2896
+ return message;
2897
+ },
2898
+ toAmino(message: MethodSettings): MethodSettingsAmino {
2899
+ const obj: any = {};
2900
+ obj.selector = message.selector === "" ? undefined : message.selector;
2901
+ obj.long_running = message.longRunning ? MethodSettings_LongRunning.toAmino(message.longRunning) : undefined;
2902
+ if (message.autoPopulatedFields) {
2903
+ obj.auto_populated_fields = message.autoPopulatedFields.map(e => e);
2904
+ } else {
2905
+ obj.auto_populated_fields = message.autoPopulatedFields;
2906
+ }
2907
+ return obj;
2908
+ },
2909
+ fromAminoMsg(object: MethodSettingsAminoMsg): MethodSettings {
2910
+ return MethodSettings.fromAmino(object.value);
2911
+ },
2912
+ fromProtoMsg(message: MethodSettingsProtoMsg): MethodSettings {
2913
+ return MethodSettings.decode(message.value);
2914
+ },
2915
+ toProto(message: MethodSettings): Uint8Array {
2916
+ return MethodSettings.encode(message).finish();
2917
+ },
2918
+ toProtoMsg(message: MethodSettings): MethodSettingsProtoMsg {
2919
+ return {
2920
+ typeUrl: "/google.api.MethodSettings",
2921
+ value: MethodSettings.encode(message).finish()
2922
+ };
2923
+ }
2924
+ };
2925
+ function createBaseMethodSettings_LongRunning(): MethodSettings_LongRunning {
2926
+ return {
2927
+ initialPollDelay: undefined,
2928
+ pollDelayMultiplier: 0,
2929
+ maxPollDelay: undefined,
2930
+ totalPollTimeout: undefined
2931
+ };
2932
+ }
2933
+ export const MethodSettings_LongRunning = {
2934
+ typeUrl: "/google.api.LongRunning",
2935
+ encode(message: MethodSettings_LongRunning, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
2936
+ if (message.initialPollDelay !== undefined) {
2937
+ Duration.encode(message.initialPollDelay, writer.uint32(10).fork()).ldelim();
2938
+ }
2939
+ if (message.pollDelayMultiplier !== 0) {
2940
+ writer.uint32(21).float(message.pollDelayMultiplier);
2941
+ }
2942
+ if (message.maxPollDelay !== undefined) {
2943
+ Duration.encode(message.maxPollDelay, writer.uint32(26).fork()).ldelim();
2944
+ }
2945
+ if (message.totalPollTimeout !== undefined) {
2946
+ Duration.encode(message.totalPollTimeout, writer.uint32(34).fork()).ldelim();
2947
+ }
2948
+ return writer;
2949
+ },
2950
+ decode(input: BinaryReader | Uint8Array, length?: number): MethodSettings_LongRunning {
2951
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2952
+ let end = length === undefined ? reader.len : reader.pos + length;
2953
+ const message = createBaseMethodSettings_LongRunning();
2954
+ while (reader.pos < end) {
2955
+ const tag = reader.uint32();
2956
+ switch (tag >>> 3) {
2957
+ case 1:
2958
+ message.initialPollDelay = Duration.decode(reader, reader.uint32());
2959
+ break;
2960
+ case 2:
2961
+ message.pollDelayMultiplier = reader.float();
2962
+ break;
2963
+ case 3:
2964
+ message.maxPollDelay = Duration.decode(reader, reader.uint32());
2965
+ break;
2966
+ case 4:
2967
+ message.totalPollTimeout = Duration.decode(reader, reader.uint32());
2968
+ break;
2969
+ default:
2970
+ reader.skipType(tag & 7);
2971
+ break;
2972
+ }
2973
+ }
2974
+ return message;
2975
+ },
2976
+ fromPartial(object: Partial<MethodSettings_LongRunning>): MethodSettings_LongRunning {
2977
+ const message = createBaseMethodSettings_LongRunning();
2978
+ message.initialPollDelay = object.initialPollDelay !== undefined && object.initialPollDelay !== null ? Duration.fromPartial(object.initialPollDelay) : undefined;
2979
+ message.pollDelayMultiplier = object.pollDelayMultiplier ?? 0;
2980
+ message.maxPollDelay = object.maxPollDelay !== undefined && object.maxPollDelay !== null ? Duration.fromPartial(object.maxPollDelay) : undefined;
2981
+ message.totalPollTimeout = object.totalPollTimeout !== undefined && object.totalPollTimeout !== null ? Duration.fromPartial(object.totalPollTimeout) : undefined;
2982
+ return message;
2983
+ },
2984
+ fromAmino(object: MethodSettings_LongRunningAmino): MethodSettings_LongRunning {
2985
+ const message = createBaseMethodSettings_LongRunning();
2986
+ if (object.initial_poll_delay !== undefined && object.initial_poll_delay !== null) {
2987
+ message.initialPollDelay = Duration.fromAmino(object.initial_poll_delay);
2988
+ }
2989
+ if (object.poll_delay_multiplier !== undefined && object.poll_delay_multiplier !== null) {
2990
+ message.pollDelayMultiplier = object.poll_delay_multiplier;
2991
+ }
2992
+ if (object.max_poll_delay !== undefined && object.max_poll_delay !== null) {
2993
+ message.maxPollDelay = Duration.fromAmino(object.max_poll_delay);
2994
+ }
2995
+ if (object.total_poll_timeout !== undefined && object.total_poll_timeout !== null) {
2996
+ message.totalPollTimeout = Duration.fromAmino(object.total_poll_timeout);
2997
+ }
2998
+ return message;
2999
+ },
3000
+ toAmino(message: MethodSettings_LongRunning): MethodSettings_LongRunningAmino {
3001
+ const obj: any = {};
3002
+ obj.initial_poll_delay = message.initialPollDelay ? Duration.toAmino(message.initialPollDelay) : undefined;
3003
+ obj.poll_delay_multiplier = message.pollDelayMultiplier === 0 ? undefined : message.pollDelayMultiplier;
3004
+ obj.max_poll_delay = message.maxPollDelay ? Duration.toAmino(message.maxPollDelay) : undefined;
3005
+ obj.total_poll_timeout = message.totalPollTimeout ? Duration.toAmino(message.totalPollTimeout) : undefined;
3006
+ return obj;
3007
+ },
3008
+ fromAminoMsg(object: MethodSettings_LongRunningAminoMsg): MethodSettings_LongRunning {
3009
+ return MethodSettings_LongRunning.fromAmino(object.value);
3010
+ },
3011
+ fromProtoMsg(message: MethodSettings_LongRunningProtoMsg): MethodSettings_LongRunning {
3012
+ return MethodSettings_LongRunning.decode(message.value);
3013
+ },
3014
+ toProto(message: MethodSettings_LongRunning): Uint8Array {
3015
+ return MethodSettings_LongRunning.encode(message).finish();
3016
+ },
3017
+ toProtoMsg(message: MethodSettings_LongRunning): MethodSettings_LongRunningProtoMsg {
3018
+ return {
3019
+ typeUrl: "/google.api.LongRunning",
3020
+ value: MethodSettings_LongRunning.encode(message).finish()
3021
+ };
3022
+ }
3023
+ };
3024
+ function createBaseSelectiveGapicGeneration(): SelectiveGapicGeneration {
3025
+ return {
3026
+ methods: [],
3027
+ generateOmittedAsInternal: false
3028
+ };
3029
+ }
3030
+ export const SelectiveGapicGeneration = {
3031
+ typeUrl: "/google.api.SelectiveGapicGeneration",
3032
+ encode(message: SelectiveGapicGeneration, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
3033
+ for (const v of message.methods) {
3034
+ writer.uint32(10).string(v!);
3035
+ }
3036
+ if (message.generateOmittedAsInternal === true) {
3037
+ writer.uint32(16).bool(message.generateOmittedAsInternal);
3038
+ }
3039
+ return writer;
3040
+ },
3041
+ decode(input: BinaryReader | Uint8Array, length?: number): SelectiveGapicGeneration {
3042
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3043
+ let end = length === undefined ? reader.len : reader.pos + length;
3044
+ const message = createBaseSelectiveGapicGeneration();
3045
+ while (reader.pos < end) {
3046
+ const tag = reader.uint32();
3047
+ switch (tag >>> 3) {
3048
+ case 1:
3049
+ message.methods.push(reader.string());
3050
+ break;
3051
+ case 2:
3052
+ message.generateOmittedAsInternal = reader.bool();
3053
+ break;
3054
+ default:
3055
+ reader.skipType(tag & 7);
3056
+ break;
3057
+ }
3058
+ }
3059
+ return message;
3060
+ },
3061
+ fromPartial(object: Partial<SelectiveGapicGeneration>): SelectiveGapicGeneration {
3062
+ const message = createBaseSelectiveGapicGeneration();
3063
+ message.methods = object.methods?.map(e => e) || [];
3064
+ message.generateOmittedAsInternal = object.generateOmittedAsInternal ?? false;
3065
+ return message;
3066
+ },
3067
+ fromAmino(object: SelectiveGapicGenerationAmino): SelectiveGapicGeneration {
3068
+ const message = createBaseSelectiveGapicGeneration();
3069
+ message.methods = object.methods?.map(e => e) || [];
3070
+ if (object.generate_omitted_as_internal !== undefined && object.generate_omitted_as_internal !== null) {
3071
+ message.generateOmittedAsInternal = object.generate_omitted_as_internal;
3072
+ }
3073
+ return message;
3074
+ },
3075
+ toAmino(message: SelectiveGapicGeneration): SelectiveGapicGenerationAmino {
3076
+ const obj: any = {};
3077
+ if (message.methods) {
3078
+ obj.methods = message.methods.map(e => e);
3079
+ } else {
3080
+ obj.methods = message.methods;
3081
+ }
3082
+ obj.generate_omitted_as_internal = message.generateOmittedAsInternal === false ? undefined : message.generateOmittedAsInternal;
3083
+ return obj;
3084
+ },
3085
+ fromAminoMsg(object: SelectiveGapicGenerationAminoMsg): SelectiveGapicGeneration {
3086
+ return SelectiveGapicGeneration.fromAmino(object.value);
3087
+ },
3088
+ fromProtoMsg(message: SelectiveGapicGenerationProtoMsg): SelectiveGapicGeneration {
3089
+ return SelectiveGapicGeneration.decode(message.value);
3090
+ },
3091
+ toProto(message: SelectiveGapicGeneration): Uint8Array {
3092
+ return SelectiveGapicGeneration.encode(message).finish();
3093
+ },
3094
+ toProtoMsg(message: SelectiveGapicGeneration): SelectiveGapicGenerationProtoMsg {
3095
+ return {
3096
+ typeUrl: "/google.api.SelectiveGapicGeneration",
3097
+ value: SelectiveGapicGeneration.encode(message).finish()
3098
+ };
3099
+ }
3100
+ };