@bufbuild/protobuf 1.9.0 → 2.0.0-alpha.2

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 (429) hide show
  1. package/dist/cjs/clone.d.ts +6 -0
  2. package/dist/cjs/clone.js +77 -0
  3. package/dist/cjs/codegenv1/boot.d.ts +63 -0
  4. package/dist/cjs/codegenv1/boot.js +102 -0
  5. package/dist/cjs/codegenv1/embed.d.ts +43 -0
  6. package/dist/cjs/codegenv1/embed.js +238 -0
  7. package/dist/cjs/codegenv1/enum.d.ts +17 -0
  8. package/dist/cjs/codegenv1/enum.js +41 -0
  9. package/dist/cjs/codegenv1/extension.d.ts +9 -0
  10. package/dist/cjs/codegenv1/extension.js +29 -0
  11. package/dist/cjs/codegenv1/file.d.ts +7 -0
  12. package/dist/cjs/codegenv1/file.js +38 -0
  13. package/dist/cjs/codegenv1/index.d.ts +9 -0
  14. package/dist/cjs/codegenv1/index.js +38 -0
  15. package/dist/cjs/codegenv1/message.d.ts +9 -0
  16. package/dist/cjs/codegenv1/message.js +25 -0
  17. package/dist/cjs/codegenv1/restore-json-names.d.ts +5 -0
  18. package/dist/cjs/codegenv1/restore-json-names.js +30 -0
  19. package/dist/cjs/codegenv1/service.d.ts +8 -0
  20. package/dist/cjs/codegenv1/service.js +28 -0
  21. package/dist/cjs/codegenv1/symbols.d.ts +125 -0
  22. package/dist/cjs/codegenv1/symbols.js +67 -0
  23. package/dist/cjs/codegenv1/types.d.ts +72 -0
  24. package/dist/cjs/codegenv1/types.js +21 -0
  25. package/dist/cjs/create.d.ts +9 -0
  26. package/dist/cjs/create.js +231 -0
  27. package/dist/{esm/descriptor-set.d.ts → cjs/desc-types.d.ts} +162 -243
  28. package/dist/cjs/equals.d.ts +9 -0
  29. package/dist/cjs/equals.js +133 -0
  30. package/dist/cjs/extensions.d.ts +59 -0
  31. package/dist/cjs/extensions.js +169 -0
  32. package/dist/cjs/fields.d.ts +23 -0
  33. package/dist/cjs/fields.js +46 -0
  34. package/dist/cjs/from-binary.d.ts +34 -0
  35. package/dist/cjs/from-binary.js +211 -0
  36. package/dist/cjs/from-json.d.ts +48 -0
  37. package/dist/cjs/from-json.js +610 -0
  38. package/dist/cjs/index.d.ts +16 -42
  39. package/dist/cjs/index.js +23 -55
  40. package/dist/cjs/is-message.d.ts +5 -20
  41. package/dist/cjs/is-message.js +11 -29
  42. package/dist/cjs/json-value.d.ts +16 -0
  43. package/dist/cjs/proto-int64.js +2 -2
  44. package/dist/cjs/reflect/error.d.ts +9 -0
  45. package/dist/cjs/reflect/error.js +36 -0
  46. package/dist/cjs/reflect/guard.d.ts +20 -0
  47. package/dist/cjs/reflect/guard.js +78 -0
  48. package/dist/cjs/reflect/index.d.ts +8 -0
  49. package/dist/cjs/reflect/index.js +41 -0
  50. package/dist/cjs/reflect/names.d.ts +11 -0
  51. package/dist/cjs/reflect/names.js +74 -0
  52. package/dist/cjs/reflect/nested-types.d.ts +12 -0
  53. package/dist/cjs/reflect/nested-types.js +71 -0
  54. package/dist/cjs/reflect/reflect-check.d.ts +10 -0
  55. package/dist/cjs/reflect/reflect-check.js +150 -0
  56. package/dist/cjs/reflect/reflect-types.d.ts +284 -0
  57. package/dist/cjs/{extension.js → reflect/reflect-types.js} +1 -0
  58. package/dist/cjs/reflect/reflect.d.ts +32 -0
  59. package/dist/cjs/reflect/reflect.js +434 -0
  60. package/dist/cjs/reflect/registry.d.ts +82 -0
  61. package/dist/cjs/reflect/registry.js +879 -0
  62. package/dist/{esm → cjs/reflect}/scalar.d.ts +21 -1
  63. package/dist/cjs/reflect/scalar.js +298 -0
  64. package/dist/cjs/reflect/unsafe.d.ts +58 -0
  65. package/dist/cjs/reflect/unsafe.js +166 -0
  66. package/dist/cjs/to-binary.d.ts +24 -0
  67. package/dist/cjs/to-binary.js +192 -0
  68. package/dist/cjs/to-json.d.ts +50 -0
  69. package/dist/cjs/to-json.js +364 -0
  70. package/dist/cjs/types.d.ts +68 -0
  71. package/dist/cjs/wire/base64-encoding.d.ts +23 -0
  72. package/dist/cjs/wire/base64-encoding.js +156 -0
  73. package/dist/cjs/wire/binary-encoding.d.ts +244 -0
  74. package/dist/cjs/{binary-encoding.js → wire/binary-encoding.js} +27 -20
  75. package/dist/cjs/wire/index.d.ts +5 -0
  76. package/dist/cjs/wire/index.js +34 -0
  77. package/dist/cjs/wire/size-delimited.d.ts +51 -0
  78. package/dist/cjs/wire/size-delimited.js +154 -0
  79. package/dist/cjs/wire/text-encoding.d.ts +26 -0
  80. package/dist/cjs/wire/text-encoding.js +55 -0
  81. package/dist/cjs/wire/text-format.d.ts +14 -0
  82. package/dist/cjs/{private → wire}/text-format.js +12 -2
  83. package/dist/{esm/google → cjs/wire}/varint.d.ts +2 -2
  84. package/dist/cjs/{google → wire}/varint.js +11 -10
  85. package/dist/cjs/wkt/any.d.ts +38 -0
  86. package/dist/cjs/wkt/any.js +76 -0
  87. package/dist/{esm → cjs/wkt/gen}/google/protobuf/any_pb.d.ts +13 -27
  88. package/dist/cjs/wkt/gen/google/protobuf/any_pb.js +27 -0
  89. package/dist/cjs/{google → wkt/gen/google}/protobuf/api_pb.d.ts +29 -38
  90. package/dist/cjs/wkt/gen/google/protobuf/api_pb.js +39 -0
  91. package/dist/cjs/{google → wkt/gen/google}/protobuf/compiler/plugin_pb.d.ts +67 -75
  92. package/dist/cjs/wkt/gen/google/protobuf/compiler/plugin_pb.js +68 -0
  93. package/dist/cjs/{google → wkt/gen/google}/protobuf/descriptor_pb.d.ts +564 -527
  94. package/dist/cjs/wkt/gen/google/protobuf/descriptor_pb.js +794 -0
  95. package/dist/cjs/{google → wkt/gen/google}/protobuf/duration_pb.d.ts +13 -18
  96. package/dist/cjs/wkt/gen/google/protobuf/duration_pb.js +27 -0
  97. package/dist/cjs/wkt/gen/google/protobuf/empty_pb.d.ts +24 -0
  98. package/dist/cjs/wkt/gen/google/protobuf/empty_pb.js +27 -0
  99. package/dist/{esm → cjs/wkt/gen}/google/protobuf/field_mask_pb.d.ts +13 -18
  100. package/dist/cjs/wkt/gen/google/protobuf/field_mask_pb.js +27 -0
  101. package/dist/cjs/wkt/gen/google/protobuf/source_context_pb.d.ts +26 -0
  102. package/dist/cjs/wkt/gen/google/protobuf/source_context_pb.js +27 -0
  103. package/dist/{esm → cjs/wkt/gen}/google/protobuf/struct_pb.d.ts +44 -55
  104. package/dist/cjs/wkt/gen/google/protobuf/struct_pb.js +59 -0
  105. package/dist/cjs/{google → wkt/gen/google}/protobuf/timestamp_pb.d.ts +13 -21
  106. package/dist/cjs/wkt/gen/google/protobuf/timestamp_pb.js +27 -0
  107. package/dist/{esm → cjs/wkt/gen}/google/protobuf/type_pb.d.ts +77 -80
  108. package/dist/cjs/wkt/gen/google/protobuf/type_pb.js +242 -0
  109. package/dist/cjs/wkt/gen/google/protobuf/wrappers_pb.d.ts +186 -0
  110. package/dist/cjs/wkt/gen/google/protobuf/wrappers_pb.js +67 -0
  111. package/dist/cjs/wkt/index.d.ts +15 -0
  112. package/dist/cjs/wkt/index.js +44 -0
  113. package/dist/cjs/wkt/timestamp.d.ts +21 -0
  114. package/dist/cjs/wkt/timestamp.js +58 -0
  115. package/dist/cjs/wkt/wrappers.d.ts +15 -0
  116. package/dist/cjs/wkt/wrappers.js +43 -0
  117. package/dist/esm/clone.d.ts +6 -0
  118. package/dist/esm/clone.js +73 -0
  119. package/dist/esm/codegenv1/boot.d.ts +63 -0
  120. package/dist/esm/codegenv1/boot.js +97 -0
  121. package/dist/esm/codegenv1/embed.d.ts +43 -0
  122. package/dist/esm/codegenv1/embed.js +232 -0
  123. package/dist/esm/codegenv1/enum.d.ts +17 -0
  124. package/dist/esm/codegenv1/enum.js +36 -0
  125. package/dist/esm/codegenv1/extension.d.ts +9 -0
  126. package/dist/esm/codegenv1/extension.js +25 -0
  127. package/dist/esm/codegenv1/file.d.ts +7 -0
  128. package/dist/esm/codegenv1/file.js +34 -0
  129. package/dist/esm/codegenv1/index.d.ts +9 -0
  130. package/dist/esm/codegenv1/index.js +22 -0
  131. package/dist/esm/codegenv1/message.d.ts +9 -0
  132. package/dist/esm/codegenv1/message.js +21 -0
  133. package/dist/esm/codegenv1/restore-json-names.d.ts +5 -0
  134. package/dist/esm/codegenv1/restore-json-names.js +26 -0
  135. package/dist/esm/codegenv1/service.d.ts +8 -0
  136. package/dist/esm/codegenv1/service.js +24 -0
  137. package/dist/esm/codegenv1/symbols.d.ts +125 -0
  138. package/dist/esm/codegenv1/symbols.js +64 -0
  139. package/dist/esm/codegenv1/types.d.ts +72 -0
  140. package/dist/esm/{field-list.js → codegenv1/types.js} +6 -0
  141. package/dist/esm/create.d.ts +9 -0
  142. package/dist/esm/create.js +228 -0
  143. package/dist/{cjs/descriptor-set.d.ts → esm/desc-types.d.ts} +162 -243
  144. package/dist/esm/equals.d.ts +9 -0
  145. package/dist/esm/equals.js +129 -0
  146. package/dist/esm/extensions.d.ts +59 -0
  147. package/dist/esm/extensions.js +159 -0
  148. package/dist/esm/fields.d.ts +23 -0
  149. package/dist/esm/fields.js +41 -0
  150. package/dist/esm/from-binary.d.ts +34 -0
  151. package/dist/esm/from-binary.js +205 -0
  152. package/dist/esm/from-json.d.ts +48 -0
  153. package/dist/esm/from-json.js +603 -0
  154. package/dist/esm/index.d.ts +16 -42
  155. package/dist/esm/index.js +13 -30
  156. package/dist/esm/is-message.d.ts +5 -20
  157. package/dist/esm/is-message.js +11 -29
  158. package/dist/esm/json-value.d.ts +16 -0
  159. package/dist/esm/proto-int64.js +2 -2
  160. package/dist/esm/reflect/error.d.ts +9 -0
  161. package/dist/esm/reflect/error.js +31 -0
  162. package/dist/esm/reflect/guard.d.ts +20 -0
  163. package/dist/esm/reflect/guard.js +70 -0
  164. package/dist/esm/reflect/index.d.ts +8 -0
  165. package/dist/esm/reflect/index.js +21 -0
  166. package/dist/esm/reflect/names.d.ts +11 -0
  167. package/dist/esm/reflect/names.js +69 -0
  168. package/dist/esm/reflect/nested-types.d.ts +12 -0
  169. package/dist/esm/reflect/nested-types.js +66 -0
  170. package/dist/esm/reflect/reflect-check.d.ts +10 -0
  171. package/dist/esm/reflect/reflect-check.js +143 -0
  172. package/dist/esm/reflect/reflect-types.d.ts +284 -0
  173. package/dist/esm/reflect/reflect-types.js +15 -0
  174. package/dist/esm/reflect/reflect.d.ts +32 -0
  175. package/dist/esm/reflect/reflect.js +428 -0
  176. package/dist/esm/reflect/registry.d.ts +82 -0
  177. package/dist/esm/reflect/registry.js +874 -0
  178. package/dist/{cjs → esm/reflect}/scalar.d.ts +21 -1
  179. package/dist/esm/reflect/scalar.js +289 -0
  180. package/dist/esm/reflect/unsafe.d.ts +58 -0
  181. package/dist/esm/reflect/unsafe.js +155 -0
  182. package/dist/esm/to-binary.d.ts +24 -0
  183. package/dist/esm/to-binary.js +187 -0
  184. package/dist/esm/to-json.d.ts +50 -0
  185. package/dist/esm/to-json.js +359 -0
  186. package/dist/esm/types.d.ts +68 -0
  187. package/dist/esm/wire/base64-encoding.d.ts +23 -0
  188. package/dist/esm/wire/base64-encoding.js +151 -0
  189. package/dist/esm/wire/binary-encoding.d.ts +244 -0
  190. package/dist/esm/{binary-encoding.js → wire/binary-encoding.js} +27 -20
  191. package/dist/esm/wire/index.d.ts +5 -0
  192. package/dist/esm/wire/index.js +18 -0
  193. package/dist/esm/wire/size-delimited.d.ts +51 -0
  194. package/dist/esm/wire/size-delimited.js +148 -0
  195. package/dist/esm/wire/text-encoding.d.ts +26 -0
  196. package/dist/esm/wire/text-encoding.js +50 -0
  197. package/dist/esm/wire/text-format.d.ts +14 -0
  198. package/dist/esm/{private → wire}/text-format.js +12 -2
  199. package/dist/{cjs/google → esm/wire}/varint.d.ts +2 -2
  200. package/dist/esm/{google → wire}/varint.js +11 -10
  201. package/dist/esm/wkt/any.d.ts +38 -0
  202. package/dist/esm/wkt/any.js +69 -0
  203. package/dist/{cjs → esm/wkt/gen}/google/protobuf/any_pb.d.ts +13 -27
  204. package/dist/esm/wkt/gen/google/protobuf/any_pb.js +24 -0
  205. package/dist/esm/{google → wkt/gen/google}/protobuf/api_pb.d.ts +29 -38
  206. package/dist/esm/wkt/gen/google/protobuf/api_pb.js +36 -0
  207. package/dist/esm/{google → wkt/gen/google}/protobuf/compiler/plugin_pb.d.ts +67 -75
  208. package/dist/esm/wkt/gen/google/protobuf/compiler/plugin_pb.js +65 -0
  209. package/dist/esm/{google → wkt/gen/google}/protobuf/descriptor_pb.d.ts +564 -527
  210. package/dist/esm/wkt/gen/google/protobuf/descriptor_pb.js +790 -0
  211. package/dist/esm/{google → wkt/gen/google}/protobuf/duration_pb.d.ts +13 -18
  212. package/dist/esm/wkt/gen/google/protobuf/duration_pb.js +24 -0
  213. package/dist/esm/wkt/gen/google/protobuf/empty_pb.d.ts +24 -0
  214. package/dist/esm/wkt/gen/google/protobuf/empty_pb.js +24 -0
  215. package/dist/{cjs → esm/wkt/gen}/google/protobuf/field_mask_pb.d.ts +13 -18
  216. package/dist/esm/wkt/gen/google/protobuf/field_mask_pb.js +24 -0
  217. package/dist/esm/wkt/gen/google/protobuf/source_context_pb.d.ts +26 -0
  218. package/dist/esm/wkt/gen/google/protobuf/source_context_pb.js +24 -0
  219. package/dist/{cjs → esm/wkt/gen}/google/protobuf/struct_pb.d.ts +44 -55
  220. package/dist/esm/wkt/gen/google/protobuf/struct_pb.js +56 -0
  221. package/dist/esm/{google → wkt/gen/google}/protobuf/timestamp_pb.d.ts +13 -21
  222. package/dist/esm/wkt/gen/google/protobuf/timestamp_pb.js +24 -0
  223. package/dist/{cjs → esm/wkt/gen}/google/protobuf/type_pb.d.ts +77 -80
  224. package/dist/esm/wkt/gen/google/protobuf/type_pb.js +239 -0
  225. package/dist/esm/wkt/gen/google/protobuf/wrappers_pb.d.ts +186 -0
  226. package/dist/esm/wkt/gen/google/protobuf/wrappers_pb.js +64 -0
  227. package/dist/esm/wkt/index.d.ts +15 -0
  228. package/dist/esm/wkt/index.js +28 -0
  229. package/dist/esm/wkt/timestamp.d.ts +21 -0
  230. package/dist/esm/wkt/timestamp.js +50 -0
  231. package/dist/esm/wkt/wrappers.d.ts +15 -0
  232. package/dist/esm/wkt/wrappers.js +38 -0
  233. package/package.json +37 -5
  234. package/dist/cjs/binary-encoding.d.ts +0 -420
  235. package/dist/cjs/binary-format.d.ts +0 -113
  236. package/dist/cjs/codegen-info.d.ts +0 -33
  237. package/dist/cjs/codegen-info.js +0 -69
  238. package/dist/cjs/create-descriptor-set.d.ts +0 -36
  239. package/dist/cjs/create-descriptor-set.js +0 -910
  240. package/dist/cjs/create-registry-from-desc.d.ts +0 -15
  241. package/dist/cjs/create-registry-from-desc.js +0 -264
  242. package/dist/cjs/create-registry.d.ts +0 -9
  243. package/dist/cjs/create-registry.js +0 -94
  244. package/dist/cjs/enum.d.ts +0 -35
  245. package/dist/cjs/extension-accessor.d.ts +0 -35
  246. package/dist/cjs/extension-accessor.js +0 -114
  247. package/dist/cjs/extension.d.ts +0 -24
  248. package/dist/cjs/field-list.d.ts +0 -27
  249. package/dist/cjs/field-list.js +0 -15
  250. package/dist/cjs/field.d.ts +0 -314
  251. package/dist/cjs/field.js +0 -15
  252. package/dist/cjs/google/protobuf/any_pb.js +0 -273
  253. package/dist/cjs/google/protobuf/api_pb.js +0 -316
  254. package/dist/cjs/google/protobuf/compiler/plugin_pb.js +0 -219
  255. package/dist/cjs/google/protobuf/descriptor_pb.js +0 -2034
  256. package/dist/cjs/google/protobuf/duration_pb.js +0 -169
  257. package/dist/cjs/google/protobuf/empty_pb.d.ts +0 -28
  258. package/dist/cjs/google/protobuf/empty_pb.js +0 -52
  259. package/dist/cjs/google/protobuf/field_mask_pb.js +0 -311
  260. package/dist/cjs/google/protobuf/source_context_pb.d.ts +0 -29
  261. package/dist/cjs/google/protobuf/source_context_pb.js +0 -55
  262. package/dist/cjs/google/protobuf/struct_pb.js +0 -240
  263. package/dist/cjs/google/protobuf/timestamp_pb.js +0 -213
  264. package/dist/cjs/google/protobuf/type_pb.js +0 -562
  265. package/dist/cjs/google/protobuf/wrappers_pb.d.ts +0 -267
  266. package/dist/cjs/google/protobuf/wrappers_pb.js +0 -569
  267. package/dist/cjs/json-format.d.ts +0 -111
  268. package/dist/cjs/json-format.js +0 -15
  269. package/dist/cjs/message-type.d.ts +0 -51
  270. package/dist/cjs/message-type.js +0 -15
  271. package/dist/cjs/message.d.ts +0 -131
  272. package/dist/cjs/message.js +0 -129
  273. package/dist/cjs/private/binary-format.d.ts +0 -7
  274. package/dist/cjs/private/binary-format.js +0 -430
  275. package/dist/cjs/private/enum.d.ts +0 -27
  276. package/dist/cjs/private/enum.js +0 -94
  277. package/dist/cjs/private/extensions.d.ts +0 -34
  278. package/dist/cjs/private/extensions.js +0 -86
  279. package/dist/cjs/private/feature-set.d.ts +0 -19
  280. package/dist/cjs/private/feature-set.js +0 -106
  281. package/dist/cjs/private/field-list.d.ts +0 -18
  282. package/dist/cjs/private/field-list.js +0 -76
  283. package/dist/cjs/private/field-normalize.d.ts +0 -9
  284. package/dist/cjs/private/field-normalize.js +0 -69
  285. package/dist/cjs/private/field-wrapper.d.ts +0 -25
  286. package/dist/cjs/private/field-wrapper.js +0 -57
  287. package/dist/cjs/private/field.d.ts +0 -16
  288. package/dist/cjs/private/field.js +0 -45
  289. package/dist/cjs/private/json-format.d.ts +0 -2
  290. package/dist/cjs/private/json-format.js +0 -626
  291. package/dist/cjs/private/message-type.d.ts +0 -18
  292. package/dist/cjs/private/message-type.js +0 -50
  293. package/dist/cjs/private/names.d.ts +0 -43
  294. package/dist/cjs/private/names.js +0 -278
  295. package/dist/cjs/private/options-map.d.ts +0 -7
  296. package/dist/cjs/private/options-map.js +0 -15
  297. package/dist/cjs/private/proto-runtime.d.ts +0 -53
  298. package/dist/cjs/private/proto-runtime.js +0 -41
  299. package/dist/cjs/private/reflect.d.ts +0 -9
  300. package/dist/cjs/private/reflect.js +0 -79
  301. package/dist/cjs/private/reify-wkt.d.ts +0 -102
  302. package/dist/cjs/private/reify-wkt.js +0 -172
  303. package/dist/cjs/private/scalars.d.ts +0 -18
  304. package/dist/cjs/private/scalars.js +0 -105
  305. package/dist/cjs/private/text-format.d.ts +0 -4
  306. package/dist/cjs/private/util-common.d.ts +0 -2
  307. package/dist/cjs/private/util-common.js +0 -237
  308. package/dist/cjs/private/util.d.ts +0 -38
  309. package/dist/cjs/private/util.js +0 -15
  310. package/dist/cjs/proto-base64.d.ts +0 -18
  311. package/dist/cjs/proto-base64.js +0 -128
  312. package/dist/cjs/proto-delimited.d.ts +0 -54
  313. package/dist/cjs/proto-delimited.js +0 -155
  314. package/dist/cjs/proto-double.d.ts +0 -5
  315. package/dist/cjs/proto-double.js +0 -29
  316. package/dist/cjs/proto2.d.ts +0 -4
  317. package/dist/cjs/proto2.js +0 -53
  318. package/dist/cjs/proto3.d.ts +0 -4
  319. package/dist/cjs/proto3.js +0 -56
  320. package/dist/cjs/scalar.js +0 -81
  321. package/dist/cjs/service-type.d.ts +0 -96
  322. package/dist/cjs/service-type.js +0 -53
  323. package/dist/cjs/to-plain-message.d.ts +0 -12
  324. package/dist/cjs/to-plain-message.js +0 -72
  325. package/dist/cjs/type-registry.d.ts +0 -57
  326. package/dist/cjs/type-registry.js +0 -15
  327. package/dist/esm/binary-encoding.d.ts +0 -420
  328. package/dist/esm/binary-format.d.ts +0 -113
  329. package/dist/esm/codegen-info.d.ts +0 -33
  330. package/dist/esm/codegen-info.js +0 -67
  331. package/dist/esm/create-descriptor-set.d.ts +0 -36
  332. package/dist/esm/create-descriptor-set.js +0 -906
  333. package/dist/esm/create-registry-from-desc.d.ts +0 -15
  334. package/dist/esm/create-registry-from-desc.js +0 -261
  335. package/dist/esm/create-registry.d.ts +0 -9
  336. package/dist/esm/create-registry.js +0 -90
  337. package/dist/esm/descriptor-set.js +0 -14
  338. package/dist/esm/enum.d.ts +0 -35
  339. package/dist/esm/extension-accessor.d.ts +0 -35
  340. package/dist/esm/extension-accessor.js +0 -107
  341. package/dist/esm/extension.d.ts +0 -24
  342. package/dist/esm/field-list.d.ts +0 -27
  343. package/dist/esm/field.d.ts +0 -314
  344. package/dist/esm/field.js +0 -14
  345. package/dist/esm/google/protobuf/any_pb.js +0 -269
  346. package/dist/esm/google/protobuf/api_pb.js +0 -310
  347. package/dist/esm/google/protobuf/compiler/plugin_pb.js +0 -212
  348. package/dist/esm/google/protobuf/descriptor_pb.js +0 -1999
  349. package/dist/esm/google/protobuf/duration_pb.js +0 -165
  350. package/dist/esm/google/protobuf/empty_pb.d.ts +0 -28
  351. package/dist/esm/google/protobuf/empty_pb.js +0 -48
  352. package/dist/esm/google/protobuf/field_mask_pb.js +0 -307
  353. package/dist/esm/google/protobuf/source_context_pb.d.ts +0 -29
  354. package/dist/esm/google/protobuf/source_context_pb.js +0 -51
  355. package/dist/esm/google/protobuf/struct_pb.js +0 -234
  356. package/dist/esm/google/protobuf/timestamp_pb.js +0 -209
  357. package/dist/esm/google/protobuf/type_pb.js +0 -554
  358. package/dist/esm/google/protobuf/wrappers_pb.d.ts +0 -267
  359. package/dist/esm/google/protobuf/wrappers_pb.js +0 -557
  360. package/dist/esm/json-format.d.ts +0 -111
  361. package/dist/esm/json-format.js +0 -14
  362. package/dist/esm/message-type.d.ts +0 -51
  363. package/dist/esm/message-type.js +0 -14
  364. package/dist/esm/message.d.ts +0 -131
  365. package/dist/esm/message.js +0 -125
  366. package/dist/esm/private/binary-format.d.ts +0 -7
  367. package/dist/esm/private/binary-format.js +0 -426
  368. package/dist/esm/private/enum.d.ts +0 -27
  369. package/dist/esm/private/enum.js +0 -87
  370. package/dist/esm/private/extensions.d.ts +0 -34
  371. package/dist/esm/private/extensions.js +0 -81
  372. package/dist/esm/private/feature-set.d.ts +0 -19
  373. package/dist/esm/private/feature-set.js +0 -102
  374. package/dist/esm/private/field-list.d.ts +0 -18
  375. package/dist/esm/private/field-list.js +0 -72
  376. package/dist/esm/private/field-normalize.d.ts +0 -9
  377. package/dist/esm/private/field-normalize.js +0 -65
  378. package/dist/esm/private/field-wrapper.d.ts +0 -25
  379. package/dist/esm/private/field-wrapper.js +0 -53
  380. package/dist/esm/private/field.d.ts +0 -16
  381. package/dist/esm/private/field.js +0 -41
  382. package/dist/esm/private/json-format.d.ts +0 -2
  383. package/dist/esm/private/json-format.js +0 -623
  384. package/dist/esm/private/message-type.d.ts +0 -18
  385. package/dist/esm/private/message-type.js +0 -46
  386. package/dist/esm/private/names.d.ts +0 -43
  387. package/dist/esm/private/names.js +0 -269
  388. package/dist/esm/private/options-map.d.ts +0 -7
  389. package/dist/esm/private/options-map.js +0 -14
  390. package/dist/esm/private/proto-runtime.d.ts +0 -53
  391. package/dist/esm/private/proto-runtime.js +0 -37
  392. package/dist/esm/private/reflect.d.ts +0 -9
  393. package/dist/esm/private/reflect.js +0 -74
  394. package/dist/esm/private/reify-wkt.d.ts +0 -102
  395. package/dist/esm/private/reify-wkt.js +0 -168
  396. package/dist/esm/private/scalars.d.ts +0 -18
  397. package/dist/esm/private/scalars.js +0 -99
  398. package/dist/esm/private/text-format.d.ts +0 -4
  399. package/dist/esm/private/util-common.d.ts +0 -2
  400. package/dist/esm/private/util-common.js +0 -234
  401. package/dist/esm/private/util.d.ts +0 -38
  402. package/dist/esm/private/util.js +0 -14
  403. package/dist/esm/proto-base64.d.ts +0 -18
  404. package/dist/esm/proto-base64.js +0 -125
  405. package/dist/esm/proto-delimited.d.ts +0 -54
  406. package/dist/esm/proto-delimited.js +0 -152
  407. package/dist/esm/proto-double.d.ts +0 -5
  408. package/dist/esm/proto-double.js +0 -26
  409. package/dist/esm/proto2.d.ts +0 -4
  410. package/dist/esm/proto2.js +0 -50
  411. package/dist/esm/proto3.d.ts +0 -4
  412. package/dist/esm/proto3.js +0 -53
  413. package/dist/esm/scalar.js +0 -78
  414. package/dist/esm/service-type.d.ts +0 -96
  415. package/dist/esm/service-type.js +0 -50
  416. package/dist/esm/to-plain-message.d.ts +0 -12
  417. package/dist/esm/to-plain-message.js +0 -70
  418. package/dist/esm/type-registry.d.ts +0 -57
  419. package/dist/esm/type-registry.js +0 -14
  420. /package/dist/cjs/{binary-format.js → desc-types.js} +0 -0
  421. /package/dist/cjs/{descriptor-set.js → json-value.js} +0 -0
  422. /package/dist/cjs/{private → reflect}/assert.d.ts +0 -0
  423. /package/dist/cjs/{private → reflect}/assert.js +0 -0
  424. /package/dist/cjs/{enum.js → types.js} +0 -0
  425. /package/dist/esm/{binary-format.js → desc-types.js} +0 -0
  426. /package/dist/esm/{enum.js → json-value.js} +0 -0
  427. /package/dist/esm/{private → reflect}/assert.d.ts +0 -0
  428. /package/dist/esm/{private → reflect}/assert.js +0 -0
  429. /package/dist/esm/{extension.js → types.js} +0 -0
@@ -1,316 +0,0 @@
1
- "use strict";
2
- // Copyright 2021-2024 Buf Technologies, Inc.
3
- //
4
- // Licensed under the Apache License, Version 2.0 (the "License");
5
- // you may not use this file except in compliance with the License.
6
- // You may obtain a copy of the License at
7
- //
8
- // http://www.apache.org/licenses/LICENSE-2.0
9
- //
10
- // Unless required by applicable law or agreed to in writing, software
11
- // distributed under the License is distributed on an "AS IS" BASIS,
12
- // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- // See the License for the specific language governing permissions and
14
- // limitations under the License.
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.Mixin = exports.Method = exports.Api = void 0;
17
- const message_js_1 = require("../../message.js");
18
- const type_pb_js_1 = require("./type_pb.js");
19
- const source_context_pb_js_1 = require("./source_context_pb.js");
20
- const proto3_js_1 = require("../../proto3.js");
21
- /**
22
- * Api is a light-weight descriptor for an API Interface.
23
- *
24
- * Interfaces are also described as "protocol buffer services" in some contexts,
25
- * such as by the "service" keyword in a .proto file, but they are different
26
- * from API Services, which represent a concrete implementation of an interface
27
- * as opposed to simply a description of methods and bindings. They are also
28
- * sometimes simply referred to as "APIs" in other contexts, such as the name of
29
- * this message itself. See https://cloud.google.com/apis/design/glossary for
30
- * detailed terminology.
31
- *
32
- * @generated from message google.protobuf.Api
33
- */
34
- class Api extends message_js_1.Message {
35
- constructor(data) {
36
- super();
37
- /**
38
- * The fully qualified name of this interface, including package name
39
- * followed by the interface's simple name.
40
- *
41
- * @generated from field: string name = 1;
42
- */
43
- this.name = "";
44
- /**
45
- * The methods of this interface, in unspecified order.
46
- *
47
- * @generated from field: repeated google.protobuf.Method methods = 2;
48
- */
49
- this.methods = [];
50
- /**
51
- * Any metadata attached to the interface.
52
- *
53
- * @generated from field: repeated google.protobuf.Option options = 3;
54
- */
55
- this.options = [];
56
- /**
57
- * A version string for this interface. If specified, must have the form
58
- * `major-version.minor-version`, as in `1.10`. If the minor version is
59
- * omitted, it defaults to zero. If the entire version field is empty, the
60
- * major version is derived from the package name, as outlined below. If the
61
- * field is not empty, the version in the package name will be verified to be
62
- * consistent with what is provided here.
63
- *
64
- * The versioning schema uses [semantic
65
- * versioning](http://semver.org) where the major version number
66
- * indicates a breaking change and the minor version an additive,
67
- * non-breaking change. Both version numbers are signals to users
68
- * what to expect from different versions, and should be carefully
69
- * chosen based on the product plan.
70
- *
71
- * The major version is also reflected in the package name of the
72
- * interface, which must end in `v<major-version>`, as in
73
- * `google.feature.v1`. For major versions 0 and 1, the suffix can
74
- * be omitted. Zero major versions must only be used for
75
- * experimental, non-GA interfaces.
76
- *
77
- *
78
- * @generated from field: string version = 4;
79
- */
80
- this.version = "";
81
- /**
82
- * Included interfaces. See [Mixin][].
83
- *
84
- * @generated from field: repeated google.protobuf.Mixin mixins = 6;
85
- */
86
- this.mixins = [];
87
- /**
88
- * The source syntax of the service.
89
- *
90
- * @generated from field: google.protobuf.Syntax syntax = 7;
91
- */
92
- this.syntax = type_pb_js_1.Syntax.PROTO2;
93
- proto3_js_1.proto3.util.initPartial(data, this);
94
- }
95
- static fromBinary(bytes, options) {
96
- return new Api().fromBinary(bytes, options);
97
- }
98
- static fromJson(jsonValue, options) {
99
- return new Api().fromJson(jsonValue, options);
100
- }
101
- static fromJsonString(jsonString, options) {
102
- return new Api().fromJsonString(jsonString, options);
103
- }
104
- static equals(a, b) {
105
- return proto3_js_1.proto3.util.equals(Api, a, b);
106
- }
107
- }
108
- exports.Api = Api;
109
- Api.runtime = proto3_js_1.proto3;
110
- Api.typeName = "google.protobuf.Api";
111
- Api.fields = proto3_js_1.proto3.util.newFieldList(() => [
112
- { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
113
- { no: 2, name: "methods", kind: "message", T: Method, repeated: true },
114
- { no: 3, name: "options", kind: "message", T: type_pb_js_1.Option, repeated: true },
115
- { no: 4, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */ },
116
- { no: 5, name: "source_context", kind: "message", T: source_context_pb_js_1.SourceContext },
117
- { no: 6, name: "mixins", kind: "message", T: Mixin, repeated: true },
118
- { no: 7, name: "syntax", kind: "enum", T: proto3_js_1.proto3.getEnumType(type_pb_js_1.Syntax) },
119
- ]);
120
- /**
121
- * Method represents a method of an API interface.
122
- *
123
- * @generated from message google.protobuf.Method
124
- */
125
- class Method extends message_js_1.Message {
126
- constructor(data) {
127
- super();
128
- /**
129
- * The simple name of this method.
130
- *
131
- * @generated from field: string name = 1;
132
- */
133
- this.name = "";
134
- /**
135
- * A URL of the input message type.
136
- *
137
- * @generated from field: string request_type_url = 2;
138
- */
139
- this.requestTypeUrl = "";
140
- /**
141
- * If true, the request is streamed.
142
- *
143
- * @generated from field: bool request_streaming = 3;
144
- */
145
- this.requestStreaming = false;
146
- /**
147
- * The URL of the output message type.
148
- *
149
- * @generated from field: string response_type_url = 4;
150
- */
151
- this.responseTypeUrl = "";
152
- /**
153
- * If true, the response is streamed.
154
- *
155
- * @generated from field: bool response_streaming = 5;
156
- */
157
- this.responseStreaming = false;
158
- /**
159
- * Any metadata attached to the method.
160
- *
161
- * @generated from field: repeated google.protobuf.Option options = 6;
162
- */
163
- this.options = [];
164
- /**
165
- * The source syntax of this method.
166
- *
167
- * @generated from field: google.protobuf.Syntax syntax = 7;
168
- */
169
- this.syntax = type_pb_js_1.Syntax.PROTO2;
170
- proto3_js_1.proto3.util.initPartial(data, this);
171
- }
172
- static fromBinary(bytes, options) {
173
- return new Method().fromBinary(bytes, options);
174
- }
175
- static fromJson(jsonValue, options) {
176
- return new Method().fromJson(jsonValue, options);
177
- }
178
- static fromJsonString(jsonString, options) {
179
- return new Method().fromJsonString(jsonString, options);
180
- }
181
- static equals(a, b) {
182
- return proto3_js_1.proto3.util.equals(Method, a, b);
183
- }
184
- }
185
- exports.Method = Method;
186
- Method.runtime = proto3_js_1.proto3;
187
- Method.typeName = "google.protobuf.Method";
188
- Method.fields = proto3_js_1.proto3.util.newFieldList(() => [
189
- { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
190
- { no: 2, name: "request_type_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
191
- { no: 3, name: "request_streaming", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
192
- { no: 4, name: "response_type_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
193
- { no: 5, name: "response_streaming", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
194
- { no: 6, name: "options", kind: "message", T: type_pb_js_1.Option, repeated: true },
195
- { no: 7, name: "syntax", kind: "enum", T: proto3_js_1.proto3.getEnumType(type_pb_js_1.Syntax) },
196
- ]);
197
- /**
198
- * Declares an API Interface to be included in this interface. The including
199
- * interface must redeclare all the methods from the included interface, but
200
- * documentation and options are inherited as follows:
201
- *
202
- * - If after comment and whitespace stripping, the documentation
203
- * string of the redeclared method is empty, it will be inherited
204
- * from the original method.
205
- *
206
- * - Each annotation belonging to the service config (http,
207
- * visibility) which is not set in the redeclared method will be
208
- * inherited.
209
- *
210
- * - If an http annotation is inherited, the path pattern will be
211
- * modified as follows. Any version prefix will be replaced by the
212
- * version of the including interface plus the [root][] path if
213
- * specified.
214
- *
215
- * Example of a simple mixin:
216
- *
217
- * package google.acl.v1;
218
- * service AccessControl {
219
- * // Get the underlying ACL object.
220
- * rpc GetAcl(GetAclRequest) returns (Acl) {
221
- * option (google.api.http).get = "/v1/{resource=**}:getAcl";
222
- * }
223
- * }
224
- *
225
- * package google.storage.v2;
226
- * service Storage {
227
- * rpc GetAcl(GetAclRequest) returns (Acl);
228
- *
229
- * // Get a data record.
230
- * rpc GetData(GetDataRequest) returns (Data) {
231
- * option (google.api.http).get = "/v2/{resource=**}";
232
- * }
233
- * }
234
- *
235
- * Example of a mixin configuration:
236
- *
237
- * apis:
238
- * - name: google.storage.v2.Storage
239
- * mixins:
240
- * - name: google.acl.v1.AccessControl
241
- *
242
- * The mixin construct implies that all methods in `AccessControl` are
243
- * also declared with same name and request/response types in
244
- * `Storage`. A documentation generator or annotation processor will
245
- * see the effective `Storage.GetAcl` method after inherting
246
- * documentation and annotations as follows:
247
- *
248
- * service Storage {
249
- * // Get the underlying ACL object.
250
- * rpc GetAcl(GetAclRequest) returns (Acl) {
251
- * option (google.api.http).get = "/v2/{resource=**}:getAcl";
252
- * }
253
- * ...
254
- * }
255
- *
256
- * Note how the version in the path pattern changed from `v1` to `v2`.
257
- *
258
- * If the `root` field in the mixin is specified, it should be a
259
- * relative path under which inherited HTTP paths are placed. Example:
260
- *
261
- * apis:
262
- * - name: google.storage.v2.Storage
263
- * mixins:
264
- * - name: google.acl.v1.AccessControl
265
- * root: acls
266
- *
267
- * This implies the following inherited HTTP annotation:
268
- *
269
- * service Storage {
270
- * // Get the underlying ACL object.
271
- * rpc GetAcl(GetAclRequest) returns (Acl) {
272
- * option (google.api.http).get = "/v2/acls/{resource=**}:getAcl";
273
- * }
274
- * ...
275
- * }
276
- *
277
- * @generated from message google.protobuf.Mixin
278
- */
279
- class Mixin extends message_js_1.Message {
280
- constructor(data) {
281
- super();
282
- /**
283
- * The fully qualified name of the interface which is included.
284
- *
285
- * @generated from field: string name = 1;
286
- */
287
- this.name = "";
288
- /**
289
- * If non-empty specifies a path under which inherited HTTP paths
290
- * are rooted.
291
- *
292
- * @generated from field: string root = 2;
293
- */
294
- this.root = "";
295
- proto3_js_1.proto3.util.initPartial(data, this);
296
- }
297
- static fromBinary(bytes, options) {
298
- return new Mixin().fromBinary(bytes, options);
299
- }
300
- static fromJson(jsonValue, options) {
301
- return new Mixin().fromJson(jsonValue, options);
302
- }
303
- static fromJsonString(jsonString, options) {
304
- return new Mixin().fromJsonString(jsonString, options);
305
- }
306
- static equals(a, b) {
307
- return proto3_js_1.proto3.util.equals(Mixin, a, b);
308
- }
309
- }
310
- exports.Mixin = Mixin;
311
- Mixin.runtime = proto3_js_1.proto3;
312
- Mixin.typeName = "google.protobuf.Mixin";
313
- Mixin.fields = proto3_js_1.proto3.util.newFieldList(() => [
314
- { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
315
- { no: 2, name: "root", kind: "scalar", T: 9 /* ScalarType.STRING */ },
316
- ]);
@@ -1,219 +0,0 @@
1
- "use strict";
2
- // Copyright 2021-2024 Buf Technologies, Inc.
3
- //
4
- // Licensed under the Apache License, Version 2.0 (the "License");
5
- // you may not use this file except in compliance with the License.
6
- // You may obtain a copy of the License at
7
- //
8
- // http://www.apache.org/licenses/LICENSE-2.0
9
- //
10
- // Unless required by applicable law or agreed to in writing, software
11
- // distributed under the License is distributed on an "AS IS" BASIS,
12
- // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- // See the License for the specific language governing permissions and
14
- // limitations under the License.
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.CodeGeneratorResponse_File = exports.CodeGeneratorResponse_Feature = exports.CodeGeneratorResponse = exports.CodeGeneratorRequest = exports.Version = void 0;
17
- const message_js_1 = require("../../../message.js");
18
- const proto2_js_1 = require("../../../proto2.js");
19
- const descriptor_pb_js_1 = require("../descriptor_pb.js");
20
- /**
21
- * The version number of protocol compiler.
22
- *
23
- * @generated from message google.protobuf.compiler.Version
24
- */
25
- class Version extends message_js_1.Message {
26
- constructor(data) {
27
- super();
28
- proto2_js_1.proto2.util.initPartial(data, this);
29
- }
30
- static fromBinary(bytes, options) {
31
- return new Version().fromBinary(bytes, options);
32
- }
33
- static fromJson(jsonValue, options) {
34
- return new Version().fromJson(jsonValue, options);
35
- }
36
- static fromJsonString(jsonString, options) {
37
- return new Version().fromJsonString(jsonString, options);
38
- }
39
- static equals(a, b) {
40
- return proto2_js_1.proto2.util.equals(Version, a, b);
41
- }
42
- }
43
- exports.Version = Version;
44
- Version.runtime = proto2_js_1.proto2;
45
- Version.typeName = "google.protobuf.compiler.Version";
46
- Version.fields = proto2_js_1.proto2.util.newFieldList(() => [
47
- { no: 1, name: "major", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
48
- { no: 2, name: "minor", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
49
- { no: 3, name: "patch", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
50
- { no: 4, name: "suffix", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
51
- ]);
52
- /**
53
- * An encoded CodeGeneratorRequest is written to the plugin's stdin.
54
- *
55
- * @generated from message google.protobuf.compiler.CodeGeneratorRequest
56
- */
57
- class CodeGeneratorRequest extends message_js_1.Message {
58
- constructor(data) {
59
- super();
60
- /**
61
- * The .proto files that were explicitly listed on the command-line. The
62
- * code generator should generate code only for these files. Each file's
63
- * descriptor will be included in proto_file, below.
64
- *
65
- * @generated from field: repeated string file_to_generate = 1;
66
- */
67
- this.fileToGenerate = [];
68
- /**
69
- * FileDescriptorProtos for all files in files_to_generate and everything
70
- * they import. The files will appear in topological order, so each file
71
- * appears before any file that imports it.
72
- *
73
- * Note: the files listed in files_to_generate will include runtime-retention
74
- * options only, but all other files will include source-retention options.
75
- * The source_file_descriptors field below is available in case you need
76
- * source-retention options for files_to_generate.
77
- *
78
- * protoc guarantees that all proto_files will be written after
79
- * the fields above, even though this is not technically guaranteed by the
80
- * protobuf wire format. This theoretically could allow a plugin to stream
81
- * in the FileDescriptorProtos and handle them one by one rather than read
82
- * the entire set into memory at once. However, as of this writing, this
83
- * is not similarly optimized on protoc's end -- it will store all fields in
84
- * memory at once before sending them to the plugin.
85
- *
86
- * Type names of fields and extensions in the FileDescriptorProto are always
87
- * fully qualified.
88
- *
89
- * @generated from field: repeated google.protobuf.FileDescriptorProto proto_file = 15;
90
- */
91
- this.protoFile = [];
92
- /**
93
- * File descriptors with all options, including source-retention options.
94
- * These descriptors are only provided for the files listed in
95
- * files_to_generate.
96
- *
97
- * @generated from field: repeated google.protobuf.FileDescriptorProto source_file_descriptors = 17;
98
- */
99
- this.sourceFileDescriptors = [];
100
- proto2_js_1.proto2.util.initPartial(data, this);
101
- }
102
- static fromBinary(bytes, options) {
103
- return new CodeGeneratorRequest().fromBinary(bytes, options);
104
- }
105
- static fromJson(jsonValue, options) {
106
- return new CodeGeneratorRequest().fromJson(jsonValue, options);
107
- }
108
- static fromJsonString(jsonString, options) {
109
- return new CodeGeneratorRequest().fromJsonString(jsonString, options);
110
- }
111
- static equals(a, b) {
112
- return proto2_js_1.proto2.util.equals(CodeGeneratorRequest, a, b);
113
- }
114
- }
115
- exports.CodeGeneratorRequest = CodeGeneratorRequest;
116
- CodeGeneratorRequest.runtime = proto2_js_1.proto2;
117
- CodeGeneratorRequest.typeName = "google.protobuf.compiler.CodeGeneratorRequest";
118
- CodeGeneratorRequest.fields = proto2_js_1.proto2.util.newFieldList(() => [
119
- { no: 1, name: "file_to_generate", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
120
- { no: 2, name: "parameter", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
121
- { no: 15, name: "proto_file", kind: "message", T: descriptor_pb_js_1.FileDescriptorProto, repeated: true },
122
- { no: 17, name: "source_file_descriptors", kind: "message", T: descriptor_pb_js_1.FileDescriptorProto, repeated: true },
123
- { no: 3, name: "compiler_version", kind: "message", T: Version, opt: true },
124
- ]);
125
- /**
126
- * The plugin writes an encoded CodeGeneratorResponse to stdout.
127
- *
128
- * @generated from message google.protobuf.compiler.CodeGeneratorResponse
129
- */
130
- class CodeGeneratorResponse extends message_js_1.Message {
131
- constructor(data) {
132
- super();
133
- /**
134
- * @generated from field: repeated google.protobuf.compiler.CodeGeneratorResponse.File file = 15;
135
- */
136
- this.file = [];
137
- proto2_js_1.proto2.util.initPartial(data, this);
138
- }
139
- static fromBinary(bytes, options) {
140
- return new CodeGeneratorResponse().fromBinary(bytes, options);
141
- }
142
- static fromJson(jsonValue, options) {
143
- return new CodeGeneratorResponse().fromJson(jsonValue, options);
144
- }
145
- static fromJsonString(jsonString, options) {
146
- return new CodeGeneratorResponse().fromJsonString(jsonString, options);
147
- }
148
- static equals(a, b) {
149
- return proto2_js_1.proto2.util.equals(CodeGeneratorResponse, a, b);
150
- }
151
- }
152
- exports.CodeGeneratorResponse = CodeGeneratorResponse;
153
- CodeGeneratorResponse.runtime = proto2_js_1.proto2;
154
- CodeGeneratorResponse.typeName = "google.protobuf.compiler.CodeGeneratorResponse";
155
- CodeGeneratorResponse.fields = proto2_js_1.proto2.util.newFieldList(() => [
156
- { no: 1, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
157
- { no: 2, name: "supported_features", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true },
158
- { no: 3, name: "minimum_edition", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
159
- { no: 4, name: "maximum_edition", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
160
- { no: 15, name: "file", kind: "message", T: CodeGeneratorResponse_File, repeated: true },
161
- ]);
162
- /**
163
- * Sync with code_generator.h.
164
- *
165
- * @generated from enum google.protobuf.compiler.CodeGeneratorResponse.Feature
166
- */
167
- var CodeGeneratorResponse_Feature;
168
- (function (CodeGeneratorResponse_Feature) {
169
- /**
170
- * @generated from enum value: FEATURE_NONE = 0;
171
- */
172
- CodeGeneratorResponse_Feature[CodeGeneratorResponse_Feature["NONE"] = 0] = "NONE";
173
- /**
174
- * @generated from enum value: FEATURE_PROTO3_OPTIONAL = 1;
175
- */
176
- CodeGeneratorResponse_Feature[CodeGeneratorResponse_Feature["PROTO3_OPTIONAL"] = 1] = "PROTO3_OPTIONAL";
177
- /**
178
- * @generated from enum value: FEATURE_SUPPORTS_EDITIONS = 2;
179
- */
180
- CodeGeneratorResponse_Feature[CodeGeneratorResponse_Feature["SUPPORTS_EDITIONS"] = 2] = "SUPPORTS_EDITIONS";
181
- })(CodeGeneratorResponse_Feature || (exports.CodeGeneratorResponse_Feature = CodeGeneratorResponse_Feature = {}));
182
- // Retrieve enum metadata with: proto2.getEnumType(CodeGeneratorResponse_Feature)
183
- proto2_js_1.proto2.util.setEnumType(CodeGeneratorResponse_Feature, "google.protobuf.compiler.CodeGeneratorResponse.Feature", [
184
- { no: 0, name: "FEATURE_NONE" },
185
- { no: 1, name: "FEATURE_PROTO3_OPTIONAL" },
186
- { no: 2, name: "FEATURE_SUPPORTS_EDITIONS" },
187
- ]);
188
- /**
189
- * Represents a single generated file.
190
- *
191
- * @generated from message google.protobuf.compiler.CodeGeneratorResponse.File
192
- */
193
- class CodeGeneratorResponse_File extends message_js_1.Message {
194
- constructor(data) {
195
- super();
196
- proto2_js_1.proto2.util.initPartial(data, this);
197
- }
198
- static fromBinary(bytes, options) {
199
- return new CodeGeneratorResponse_File().fromBinary(bytes, options);
200
- }
201
- static fromJson(jsonValue, options) {
202
- return new CodeGeneratorResponse_File().fromJson(jsonValue, options);
203
- }
204
- static fromJsonString(jsonString, options) {
205
- return new CodeGeneratorResponse_File().fromJsonString(jsonString, options);
206
- }
207
- static equals(a, b) {
208
- return proto2_js_1.proto2.util.equals(CodeGeneratorResponse_File, a, b);
209
- }
210
- }
211
- exports.CodeGeneratorResponse_File = CodeGeneratorResponse_File;
212
- CodeGeneratorResponse_File.runtime = proto2_js_1.proto2;
213
- CodeGeneratorResponse_File.typeName = "google.protobuf.compiler.CodeGeneratorResponse.File";
214
- CodeGeneratorResponse_File.fields = proto2_js_1.proto2.util.newFieldList(() => [
215
- { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
216
- { no: 2, name: "insertion_point", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
217
- { no: 15, name: "content", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
218
- { no: 16, name: "generated_code_info", kind: "message", T: descriptor_pb_js_1.GeneratedCodeInfo, opt: true },
219
- ]);