@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,116 +1,44 @@
1
- import { proto2 } from "../../proto2.js";
2
- import type { PartialMessage, PlainMessage } from "../../message.js";
3
- import { Message } from "../../message.js";
4
- import type { FieldList } from "../../field-list.js";
5
- import type { BinaryReadOptions } from "../../binary-format.js";
6
- import type { JsonReadOptions, JsonValue } from "../../json-format.js";
1
+ import type { GenDescEnum, GenDescFile, GenDescMessage } from "../../../../codegenv1/types.js";
2
+ import type { Message } from "../../../../types.js";
7
3
  /**
8
- * The full set of known editions.
9
- *
10
- * @generated from enum google.protobuf.Edition
4
+ * Describes the file google/protobuf/descriptor.proto.
11
5
  */
12
- export declare enum Edition {
13
- /**
14
- * A placeholder for an unknown edition value.
15
- *
16
- * @generated from enum value: EDITION_UNKNOWN = 0;
17
- */
18
- EDITION_UNKNOWN = 0,
19
- /**
20
- * Legacy syntax "editions". These pre-date editions, but behave much like
21
- * distinct editions. These can't be used to specify the edition of proto
22
- * files, but feature definitions must supply proto2/proto3 defaults for
23
- * backwards compatibility.
24
- *
25
- * @generated from enum value: EDITION_PROTO2 = 998;
26
- */
27
- EDITION_PROTO2 = 998,
28
- /**
29
- * @generated from enum value: EDITION_PROTO3 = 999;
30
- */
31
- EDITION_PROTO3 = 999,
32
- /**
33
- * Editions that have been released. The specific values are arbitrary and
34
- * should not be depended on, but they will always be time-ordered for easy
35
- * comparison.
36
- *
37
- * @generated from enum value: EDITION_2023 = 1000;
38
- */
39
- EDITION_2023 = 1000,
40
- /**
41
- * @generated from enum value: EDITION_2024 = 1001;
42
- */
43
- EDITION_2024 = 1001,
44
- /**
45
- * Placeholder editions for testing feature resolution. These should not be
46
- * used or relyed on outside of tests.
47
- *
48
- * @generated from enum value: EDITION_1_TEST_ONLY = 1;
49
- */
50
- EDITION_1_TEST_ONLY = 1,
51
- /**
52
- * @generated from enum value: EDITION_2_TEST_ONLY = 2;
53
- */
54
- EDITION_2_TEST_ONLY = 2,
55
- /**
56
- * @generated from enum value: EDITION_99997_TEST_ONLY = 99997;
57
- */
58
- EDITION_99997_TEST_ONLY = 99997,
59
- /**
60
- * @generated from enum value: EDITION_99998_TEST_ONLY = 99998;
61
- */
62
- EDITION_99998_TEST_ONLY = 99998,
63
- /**
64
- * @generated from enum value: EDITION_99999_TEST_ONLY = 99999;
65
- */
66
- EDITION_99999_TEST_ONLY = 99999,
67
- /**
68
- * Placeholder for specifying unbounded edition support. This should only
69
- * ever be used by plugins that can expect to never require any changes to
70
- * support a new edition.
71
- *
72
- * @generated from enum value: EDITION_MAX = 2147483647;
73
- */
74
- EDITION_MAX = 2147483647
75
- }
6
+ export declare const fileDesc_google_protobuf_descriptor: GenDescFile;
76
7
  /**
77
8
  * The protocol compiler can output a FileDescriptorSet containing the .proto
78
9
  * files it parses.
79
10
  *
80
11
  * @generated from message google.protobuf.FileDescriptorSet
81
12
  */
82
- export declare class FileDescriptorSet extends Message<FileDescriptorSet> {
13
+ export type FileDescriptorSet = Message<"google.protobuf.FileDescriptorSet"> & {
83
14
  /**
84
15
  * @generated from field: repeated google.protobuf.FileDescriptorProto file = 1;
85
16
  */
86
17
  file: FileDescriptorProto[];
87
- constructor(data?: PartialMessage<FileDescriptorSet>);
88
- static readonly runtime: typeof proto2;
89
- static readonly typeName = "google.protobuf.FileDescriptorSet";
90
- static readonly fields: FieldList;
91
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): FileDescriptorSet;
92
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): FileDescriptorSet;
93
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): FileDescriptorSet;
94
- static equals(a: FileDescriptorSet | PlainMessage<FileDescriptorSet> | undefined, b: FileDescriptorSet | PlainMessage<FileDescriptorSet> | undefined): boolean;
95
- }
18
+ };
19
+ /**
20
+ * Describes the message google.protobuf.FileDescriptorSet.
21
+ * Use `create(FileDescriptorSetDesc)` to create a new message.
22
+ */
23
+ export declare const FileDescriptorSetDesc: GenDescMessage<FileDescriptorSet>;
96
24
  /**
97
25
  * Describes a complete .proto file.
98
26
  *
99
27
  * @generated from message google.protobuf.FileDescriptorProto
100
28
  */
101
- export declare class FileDescriptorProto extends Message<FileDescriptorProto> {
29
+ export type FileDescriptorProto = Message<"google.protobuf.FileDescriptorProto"> & {
102
30
  /**
103
31
  * file name, relative to root of source tree
104
32
  *
105
33
  * @generated from field: optional string name = 1;
106
34
  */
107
- name?: string;
35
+ name: string;
108
36
  /**
109
37
  * e.g. "foo", "foo.bar", etc.
110
38
  *
111
39
  * @generated from field: optional string package = 2;
112
40
  */
113
- package?: string;
41
+ package: string;
114
42
  /**
115
43
  * Names of files imported by this file.
116
44
  *
@@ -169,32 +97,29 @@ export declare class FileDescriptorProto extends Message<FileDescriptorProto> {
169
97
  *
170
98
  * @generated from field: optional string syntax = 12;
171
99
  */
172
- syntax?: string;
100
+ syntax: string;
173
101
  /**
174
102
  * The edition of the proto file.
175
103
  *
176
104
  * @generated from field: optional google.protobuf.Edition edition = 14;
177
105
  */
178
- edition?: Edition;
179
- constructor(data?: PartialMessage<FileDescriptorProto>);
180
- static readonly runtime: typeof proto2;
181
- static readonly typeName = "google.protobuf.FileDescriptorProto";
182
- static readonly fields: FieldList;
183
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): FileDescriptorProto;
184
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): FileDescriptorProto;
185
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): FileDescriptorProto;
186
- static equals(a: FileDescriptorProto | PlainMessage<FileDescriptorProto> | undefined, b: FileDescriptorProto | PlainMessage<FileDescriptorProto> | undefined): boolean;
187
- }
106
+ edition: Edition;
107
+ };
108
+ /**
109
+ * Describes the message google.protobuf.FileDescriptorProto.
110
+ * Use `create(FileDescriptorProtoDesc)` to create a new message.
111
+ */
112
+ export declare const FileDescriptorProtoDesc: GenDescMessage<FileDescriptorProto>;
188
113
  /**
189
114
  * Describes a message type.
190
115
  *
191
116
  * @generated from message google.protobuf.DescriptorProto
192
117
  */
193
- export declare class DescriptorProto extends Message<DescriptorProto> {
118
+ export type DescriptorProto = Message<"google.protobuf.DescriptorProto"> & {
194
119
  /**
195
120
  * @generated from field: optional string name = 1;
196
121
  */
197
- name?: string;
122
+ name: string;
198
123
  /**
199
124
  * @generated from field: repeated google.protobuf.FieldDescriptorProto field = 2;
200
125
  */
@@ -234,44 +159,38 @@ export declare class DescriptorProto extends Message<DescriptorProto> {
234
159
  * @generated from field: repeated string reserved_name = 10;
235
160
  */
236
161
  reservedName: string[];
237
- constructor(data?: PartialMessage<DescriptorProto>);
238
- static readonly runtime: typeof proto2;
239
- static readonly typeName = "google.protobuf.DescriptorProto";
240
- static readonly fields: FieldList;
241
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DescriptorProto;
242
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DescriptorProto;
243
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DescriptorProto;
244
- static equals(a: DescriptorProto | PlainMessage<DescriptorProto> | undefined, b: DescriptorProto | PlainMessage<DescriptorProto> | undefined): boolean;
245
- }
162
+ };
163
+ /**
164
+ * Describes the message google.protobuf.DescriptorProto.
165
+ * Use `create(DescriptorProtoDesc)` to create a new message.
166
+ */
167
+ export declare const DescriptorProtoDesc: GenDescMessage<DescriptorProto>;
246
168
  /**
247
169
  * @generated from message google.protobuf.DescriptorProto.ExtensionRange
248
170
  */
249
- export declare class DescriptorProto_ExtensionRange extends Message<DescriptorProto_ExtensionRange> {
171
+ export type DescriptorProto_ExtensionRange = Message<"google.protobuf.DescriptorProto.ExtensionRange"> & {
250
172
  /**
251
173
  * Inclusive.
252
174
  *
253
175
  * @generated from field: optional int32 start = 1;
254
176
  */
255
- start?: number;
177
+ start: number;
256
178
  /**
257
179
  * Exclusive.
258
180
  *
259
181
  * @generated from field: optional int32 end = 2;
260
182
  */
261
- end?: number;
183
+ end: number;
262
184
  /**
263
185
  * @generated from field: optional google.protobuf.ExtensionRangeOptions options = 3;
264
186
  */
265
187
  options?: ExtensionRangeOptions;
266
- constructor(data?: PartialMessage<DescriptorProto_ExtensionRange>);
267
- static readonly runtime: typeof proto2;
268
- static readonly typeName = "google.protobuf.DescriptorProto.ExtensionRange";
269
- static readonly fields: FieldList;
270
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DescriptorProto_ExtensionRange;
271
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DescriptorProto_ExtensionRange;
272
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DescriptorProto_ExtensionRange;
273
- static equals(a: DescriptorProto_ExtensionRange | PlainMessage<DescriptorProto_ExtensionRange> | undefined, b: DescriptorProto_ExtensionRange | PlainMessage<DescriptorProto_ExtensionRange> | undefined): boolean;
274
- }
188
+ };
189
+ /**
190
+ * Describes the message google.protobuf.DescriptorProto.ExtensionRange.
191
+ * Use `create(DescriptorProto_ExtensionRangeDesc)` to create a new message.
192
+ */
193
+ export declare const DescriptorProto_ExtensionRangeDesc: GenDescMessage<DescriptorProto_ExtensionRange>;
275
194
  /**
276
195
  * Range of reserved tag numbers. Reserved tag numbers may not be used by
277
196
  * fields or extension ranges in the same message. Reserved ranges may
@@ -279,32 +198,29 @@ export declare class DescriptorProto_ExtensionRange extends Message<DescriptorPr
279
198
  *
280
199
  * @generated from message google.protobuf.DescriptorProto.ReservedRange
281
200
  */
282
- export declare class DescriptorProto_ReservedRange extends Message<DescriptorProto_ReservedRange> {
201
+ export type DescriptorProto_ReservedRange = Message<"google.protobuf.DescriptorProto.ReservedRange"> & {
283
202
  /**
284
203
  * Inclusive.
285
204
  *
286
205
  * @generated from field: optional int32 start = 1;
287
206
  */
288
- start?: number;
207
+ start: number;
289
208
  /**
290
209
  * Exclusive.
291
210
  *
292
211
  * @generated from field: optional int32 end = 2;
293
212
  */
294
- end?: number;
295
- constructor(data?: PartialMessage<DescriptorProto_ReservedRange>);
296
- static readonly runtime: typeof proto2;
297
- static readonly typeName = "google.protobuf.DescriptorProto.ReservedRange";
298
- static readonly fields: FieldList;
299
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DescriptorProto_ReservedRange;
300
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DescriptorProto_ReservedRange;
301
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DescriptorProto_ReservedRange;
302
- static equals(a: DescriptorProto_ReservedRange | PlainMessage<DescriptorProto_ReservedRange> | undefined, b: DescriptorProto_ReservedRange | PlainMessage<DescriptorProto_ReservedRange> | undefined): boolean;
303
- }
213
+ end: number;
214
+ };
215
+ /**
216
+ * Describes the message google.protobuf.DescriptorProto.ReservedRange.
217
+ * Use `create(DescriptorProto_ReservedRangeDesc)` to create a new message.
218
+ */
219
+ export declare const DescriptorProto_ReservedRangeDesc: GenDescMessage<DescriptorProto_ReservedRange>;
304
220
  /**
305
221
  * @generated from message google.protobuf.ExtensionRangeOptions
306
222
  */
307
- export declare class ExtensionRangeOptions extends Message<ExtensionRangeOptions> {
223
+ export type ExtensionRangeOptions = Message<"google.protobuf.ExtensionRangeOptions"> & {
308
224
  /**
309
225
  * The parser stores options it doesn't recognize here. See above.
310
226
  *
@@ -332,50 +248,30 @@ export declare class ExtensionRangeOptions extends Message<ExtensionRangeOptions
332
248
  *
333
249
  * @generated from field: optional google.protobuf.ExtensionRangeOptions.VerificationState verification = 3 [default = UNVERIFIED];
334
250
  */
335
- verification?: ExtensionRangeOptions_VerificationState;
336
- constructor(data?: PartialMessage<ExtensionRangeOptions>);
337
- static readonly runtime: typeof proto2;
338
- static readonly typeName = "google.protobuf.ExtensionRangeOptions";
339
- static readonly fields: FieldList;
340
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ExtensionRangeOptions;
341
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ExtensionRangeOptions;
342
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ExtensionRangeOptions;
343
- static equals(a: ExtensionRangeOptions | PlainMessage<ExtensionRangeOptions> | undefined, b: ExtensionRangeOptions | PlainMessage<ExtensionRangeOptions> | undefined): boolean;
344
- }
251
+ verification: ExtensionRangeOptions_VerificationState;
252
+ };
345
253
  /**
346
- * The verification state of the extension range.
347
- *
348
- * @generated from enum google.protobuf.ExtensionRangeOptions.VerificationState
254
+ * Describes the message google.protobuf.ExtensionRangeOptions.
255
+ * Use `create(ExtensionRangeOptionsDesc)` to create a new message.
349
256
  */
350
- export declare enum ExtensionRangeOptions_VerificationState {
351
- /**
352
- * All the extensions of the range must be declared.
353
- *
354
- * @generated from enum value: DECLARATION = 0;
355
- */
356
- DECLARATION = 0,
357
- /**
358
- * @generated from enum value: UNVERIFIED = 1;
359
- */
360
- UNVERIFIED = 1
361
- }
257
+ export declare const ExtensionRangeOptionsDesc: GenDescMessage<ExtensionRangeOptions>;
362
258
  /**
363
259
  * @generated from message google.protobuf.ExtensionRangeOptions.Declaration
364
260
  */
365
- export declare class ExtensionRangeOptions_Declaration extends Message<ExtensionRangeOptions_Declaration> {
261
+ export type ExtensionRangeOptions_Declaration = Message<"google.protobuf.ExtensionRangeOptions.Declaration"> & {
366
262
  /**
367
263
  * The extension number declared within the extension range.
368
264
  *
369
265
  * @generated from field: optional int32 number = 1;
370
266
  */
371
- number?: number;
267
+ number: number;
372
268
  /**
373
269
  * The fully-qualified name of the extension field. There must be a leading
374
270
  * dot in front of the full name.
375
271
  *
376
272
  * @generated from field: optional string full_name = 2;
377
273
  */
378
- fullName?: string;
274
+ fullName: string;
379
275
  /**
380
276
  * The fully-qualified type name of the extension field. Unlike
381
277
  * Metadata.type, Declaration.type must have a leading dot for messages
@@ -383,7 +279,7 @@ export declare class ExtensionRangeOptions_Declaration extends Message<Extension
383
279
  *
384
280
  * @generated from field: optional string type = 3;
385
281
  */
386
- type?: string;
282
+ type: string;
387
283
  /**
388
284
  * If true, indicates that the number is reserved in the extension range,
389
285
  * and any extension field with the number will fail to compile. Set this
@@ -391,48 +287,66 @@ export declare class ExtensionRangeOptions_Declaration extends Message<Extension
391
287
  *
392
288
  * @generated from field: optional bool reserved = 5;
393
289
  */
394
- reserved?: boolean;
290
+ reserved: boolean;
395
291
  /**
396
292
  * If true, indicates that the extension must be defined as repeated.
397
293
  * Otherwise the extension must be defined as optional.
398
294
  *
399
295
  * @generated from field: optional bool repeated = 6;
400
296
  */
401
- repeated?: boolean;
402
- constructor(data?: PartialMessage<ExtensionRangeOptions_Declaration>);
403
- static readonly runtime: typeof proto2;
404
- static readonly typeName = "google.protobuf.ExtensionRangeOptions.Declaration";
405
- static readonly fields: FieldList;
406
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ExtensionRangeOptions_Declaration;
407
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ExtensionRangeOptions_Declaration;
408
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ExtensionRangeOptions_Declaration;
409
- static equals(a: ExtensionRangeOptions_Declaration | PlainMessage<ExtensionRangeOptions_Declaration> | undefined, b: ExtensionRangeOptions_Declaration | PlainMessage<ExtensionRangeOptions_Declaration> | undefined): boolean;
297
+ repeated: boolean;
298
+ };
299
+ /**
300
+ * Describes the message google.protobuf.ExtensionRangeOptions.Declaration.
301
+ * Use `create(ExtensionRangeOptions_DeclarationDesc)` to create a new message.
302
+ */
303
+ export declare const ExtensionRangeOptions_DeclarationDesc: GenDescMessage<ExtensionRangeOptions_Declaration>;
304
+ /**
305
+ * The verification state of the extension range.
306
+ *
307
+ * @generated from enum google.protobuf.ExtensionRangeOptions.VerificationState
308
+ */
309
+ export declare enum ExtensionRangeOptions_VerificationState {
310
+ /**
311
+ * All the extensions of the range must be declared.
312
+ *
313
+ * @generated from enum value: DECLARATION = 0;
314
+ */
315
+ DECLARATION = 0,
316
+ /**
317
+ * @generated from enum value: UNVERIFIED = 1;
318
+ */
319
+ UNVERIFIED = 1
410
320
  }
321
+ /**
322
+ * Describes the enum google.protobuf.ExtensionRangeOptions.VerificationState.
323
+ */
324
+ export declare const ExtensionRangeOptions_VerificationStateDesc: GenDescEnum<ExtensionRangeOptions_VerificationState>;
411
325
  /**
412
326
  * Describes a field within a message.
413
327
  *
414
328
  * @generated from message google.protobuf.FieldDescriptorProto
415
329
  */
416
- export declare class FieldDescriptorProto extends Message<FieldDescriptorProto> {
330
+ export type FieldDescriptorProto = Message<"google.protobuf.FieldDescriptorProto"> & {
417
331
  /**
418
332
  * @generated from field: optional string name = 1;
419
333
  */
420
- name?: string;
334
+ name: string;
421
335
  /**
422
336
  * @generated from field: optional int32 number = 3;
423
337
  */
424
- number?: number;
338
+ number: number;
425
339
  /**
426
340
  * @generated from field: optional google.protobuf.FieldDescriptorProto.Label label = 4;
427
341
  */
428
- label?: FieldDescriptorProto_Label;
342
+ label: FieldDescriptorProto_Label;
429
343
  /**
430
344
  * If type_name is set, this need not be set. If both this and type_name
431
345
  * are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP.
432
346
  *
433
347
  * @generated from field: optional google.protobuf.FieldDescriptorProto.Type type = 5;
434
348
  */
435
- type?: FieldDescriptorProto_Type;
349
+ type: FieldDescriptorProto_Type;
436
350
  /**
437
351
  * For message and enum types, this is the name of the type. If the name
438
352
  * starts with a '.', it is fully-qualified. Otherwise, C++-like scoping
@@ -442,14 +356,14 @@ export declare class FieldDescriptorProto extends Message<FieldDescriptorProto>
442
356
  *
443
357
  * @generated from field: optional string type_name = 6;
444
358
  */
445
- typeName?: string;
359
+ typeName: string;
446
360
  /**
447
361
  * For extensions, this is the name of the type being extended. It is
448
362
  * resolved in the same manner as type_name.
449
363
  *
450
364
  * @generated from field: optional string extendee = 2;
451
365
  */
452
- extendee?: string;
366
+ extendee: string;
453
367
  /**
454
368
  * For numeric types, contains the original text representation of the value.
455
369
  * For booleans, "true" or "false".
@@ -458,14 +372,14 @@ export declare class FieldDescriptorProto extends Message<FieldDescriptorProto>
458
372
  *
459
373
  * @generated from field: optional string default_value = 7;
460
374
  */
461
- defaultValue?: string;
375
+ defaultValue: string;
462
376
  /**
463
377
  * If set, gives the index of a oneof in the containing type's oneof_decl
464
378
  * list. This field is a member of that oneof.
465
379
  *
466
380
  * @generated from field: optional int32 oneof_index = 9;
467
381
  */
468
- oneofIndex?: number;
382
+ oneofIndex: number;
469
383
  /**
470
384
  * JSON name of this field. The value is set by protocol compiler. If the
471
385
  * user has set a "json_name" option on this field, that option's value
@@ -474,7 +388,7 @@ export declare class FieldDescriptorProto extends Message<FieldDescriptorProto>
474
388
  *
475
389
  * @generated from field: optional string json_name = 10;
476
390
  */
477
- jsonName?: string;
391
+ jsonName: string;
478
392
  /**
479
393
  * @generated from field: optional google.protobuf.FieldOptions options = 8;
480
394
  */
@@ -504,16 +418,13 @@ export declare class FieldDescriptorProto extends Message<FieldDescriptorProto>
504
418
  *
505
419
  * @generated from field: optional bool proto3_optional = 17;
506
420
  */
507
- proto3Optional?: boolean;
508
- constructor(data?: PartialMessage<FieldDescriptorProto>);
509
- static readonly runtime: typeof proto2;
510
- static readonly typeName = "google.protobuf.FieldDescriptorProto";
511
- static readonly fields: FieldList;
512
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): FieldDescriptorProto;
513
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): FieldDescriptorProto;
514
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): FieldDescriptorProto;
515
- static equals(a: FieldDescriptorProto | PlainMessage<FieldDescriptorProto> | undefined, b: FieldDescriptorProto | PlainMessage<FieldDescriptorProto> | undefined): boolean;
516
- }
421
+ proto3Optional: boolean;
422
+ };
423
+ /**
424
+ * Describes the message google.protobuf.FieldDescriptorProto.
425
+ * Use `create(FieldDescriptorProtoDesc)` to create a new message.
426
+ */
427
+ export declare const FieldDescriptorProtoDesc: GenDescMessage<FieldDescriptorProto>;
517
428
  /**
518
429
  * @generated from enum google.protobuf.FieldDescriptorProto.Type
519
430
  */
@@ -614,6 +525,10 @@ export declare enum FieldDescriptorProto_Type {
614
525
  */
615
526
  SINT64 = 18
616
527
  }
528
+ /**
529
+ * Describes the enum google.protobuf.FieldDescriptorProto.Type.
530
+ */
531
+ export declare const FieldDescriptorProto_TypeDesc: GenDescEnum<FieldDescriptorProto_Type>;
617
532
  /**
618
533
  * @generated from enum google.protobuf.FieldDescriptorProto.Label
619
534
  */
@@ -637,39 +552,40 @@ export declare enum FieldDescriptorProto_Label {
637
552
  */
638
553
  REQUIRED = 2
639
554
  }
555
+ /**
556
+ * Describes the enum google.protobuf.FieldDescriptorProto.Label.
557
+ */
558
+ export declare const FieldDescriptorProto_LabelDesc: GenDescEnum<FieldDescriptorProto_Label>;
640
559
  /**
641
560
  * Describes a oneof.
642
561
  *
643
562
  * @generated from message google.protobuf.OneofDescriptorProto
644
563
  */
645
- export declare class OneofDescriptorProto extends Message<OneofDescriptorProto> {
564
+ export type OneofDescriptorProto = Message<"google.protobuf.OneofDescriptorProto"> & {
646
565
  /**
647
566
  * @generated from field: optional string name = 1;
648
567
  */
649
- name?: string;
568
+ name: string;
650
569
  /**
651
570
  * @generated from field: optional google.protobuf.OneofOptions options = 2;
652
571
  */
653
572
  options?: OneofOptions;
654
- constructor(data?: PartialMessage<OneofDescriptorProto>);
655
- static readonly runtime: typeof proto2;
656
- static readonly typeName = "google.protobuf.OneofDescriptorProto";
657
- static readonly fields: FieldList;
658
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OneofDescriptorProto;
659
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OneofDescriptorProto;
660
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OneofDescriptorProto;
661
- static equals(a: OneofDescriptorProto | PlainMessage<OneofDescriptorProto> | undefined, b: OneofDescriptorProto | PlainMessage<OneofDescriptorProto> | undefined): boolean;
662
- }
573
+ };
574
+ /**
575
+ * Describes the message google.protobuf.OneofDescriptorProto.
576
+ * Use `create(OneofDescriptorProtoDesc)` to create a new message.
577
+ */
578
+ export declare const OneofDescriptorProtoDesc: GenDescMessage<OneofDescriptorProto>;
663
579
  /**
664
580
  * Describes an enum type.
665
581
  *
666
582
  * @generated from message google.protobuf.EnumDescriptorProto
667
583
  */
668
- export declare class EnumDescriptorProto extends Message<EnumDescriptorProto> {
584
+ export type EnumDescriptorProto = Message<"google.protobuf.EnumDescriptorProto"> & {
669
585
  /**
670
586
  * @generated from field: optional string name = 1;
671
587
  */
672
- name?: string;
588
+ name: string;
673
589
  /**
674
590
  * @generated from field: repeated google.protobuf.EnumValueDescriptorProto value = 2;
675
591
  */
@@ -693,15 +609,12 @@ export declare class EnumDescriptorProto extends Message<EnumDescriptorProto> {
693
609
  * @generated from field: repeated string reserved_name = 5;
694
610
  */
695
611
  reservedName: string[];
696
- constructor(data?: PartialMessage<EnumDescriptorProto>);
697
- static readonly runtime: typeof proto2;
698
- static readonly typeName = "google.protobuf.EnumDescriptorProto";
699
- static readonly fields: FieldList;
700
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EnumDescriptorProto;
701
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EnumDescriptorProto;
702
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EnumDescriptorProto;
703
- static equals(a: EnumDescriptorProto | PlainMessage<EnumDescriptorProto> | undefined, b: EnumDescriptorProto | PlainMessage<EnumDescriptorProto> | undefined): boolean;
704
- }
612
+ };
613
+ /**
614
+ * Describes the message google.protobuf.EnumDescriptorProto.
615
+ * Use `create(EnumDescriptorProtoDesc)` to create a new message.
616
+ */
617
+ export declare const EnumDescriptorProtoDesc: GenDescMessage<EnumDescriptorProto>;
705
618
  /**
706
619
  * Range of reserved numeric values. Reserved values may not be used by
707
620
  * entries in the same enum. Reserved ranges may not overlap.
@@ -712,65 +625,59 @@ export declare class EnumDescriptorProto extends Message<EnumDescriptorProto> {
712
625
  *
713
626
  * @generated from message google.protobuf.EnumDescriptorProto.EnumReservedRange
714
627
  */
715
- export declare class EnumDescriptorProto_EnumReservedRange extends Message<EnumDescriptorProto_EnumReservedRange> {
628
+ export type EnumDescriptorProto_EnumReservedRange = Message<"google.protobuf.EnumDescriptorProto.EnumReservedRange"> & {
716
629
  /**
717
630
  * Inclusive.
718
631
  *
719
632
  * @generated from field: optional int32 start = 1;
720
633
  */
721
- start?: number;
634
+ start: number;
722
635
  /**
723
636
  * Inclusive.
724
637
  *
725
638
  * @generated from field: optional int32 end = 2;
726
639
  */
727
- end?: number;
728
- constructor(data?: PartialMessage<EnumDescriptorProto_EnumReservedRange>);
729
- static readonly runtime: typeof proto2;
730
- static readonly typeName = "google.protobuf.EnumDescriptorProto.EnumReservedRange";
731
- static readonly fields: FieldList;
732
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EnumDescriptorProto_EnumReservedRange;
733
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EnumDescriptorProto_EnumReservedRange;
734
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EnumDescriptorProto_EnumReservedRange;
735
- static equals(a: EnumDescriptorProto_EnumReservedRange | PlainMessage<EnumDescriptorProto_EnumReservedRange> | undefined, b: EnumDescriptorProto_EnumReservedRange | PlainMessage<EnumDescriptorProto_EnumReservedRange> | undefined): boolean;
736
- }
640
+ end: number;
641
+ };
642
+ /**
643
+ * Describes the message google.protobuf.EnumDescriptorProto.EnumReservedRange.
644
+ * Use `create(EnumDescriptorProto_EnumReservedRangeDesc)` to create a new message.
645
+ */
646
+ export declare const EnumDescriptorProto_EnumReservedRangeDesc: GenDescMessage<EnumDescriptorProto_EnumReservedRange>;
737
647
  /**
738
648
  * Describes a value within an enum.
739
649
  *
740
650
  * @generated from message google.protobuf.EnumValueDescriptorProto
741
651
  */
742
- export declare class EnumValueDescriptorProto extends Message<EnumValueDescriptorProto> {
652
+ export type EnumValueDescriptorProto = Message<"google.protobuf.EnumValueDescriptorProto"> & {
743
653
  /**
744
654
  * @generated from field: optional string name = 1;
745
655
  */
746
- name?: string;
656
+ name: string;
747
657
  /**
748
658
  * @generated from field: optional int32 number = 2;
749
659
  */
750
- number?: number;
660
+ number: number;
751
661
  /**
752
662
  * @generated from field: optional google.protobuf.EnumValueOptions options = 3;
753
663
  */
754
664
  options?: EnumValueOptions;
755
- constructor(data?: PartialMessage<EnumValueDescriptorProto>);
756
- static readonly runtime: typeof proto2;
757
- static readonly typeName = "google.protobuf.EnumValueDescriptorProto";
758
- static readonly fields: FieldList;
759
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EnumValueDescriptorProto;
760
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EnumValueDescriptorProto;
761
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EnumValueDescriptorProto;
762
- static equals(a: EnumValueDescriptorProto | PlainMessage<EnumValueDescriptorProto> | undefined, b: EnumValueDescriptorProto | PlainMessage<EnumValueDescriptorProto> | undefined): boolean;
763
- }
665
+ };
666
+ /**
667
+ * Describes the message google.protobuf.EnumValueDescriptorProto.
668
+ * Use `create(EnumValueDescriptorProtoDesc)` to create a new message.
669
+ */
670
+ export declare const EnumValueDescriptorProtoDesc: GenDescMessage<EnumValueDescriptorProto>;
764
671
  /**
765
672
  * Describes a service.
766
673
  *
767
674
  * @generated from message google.protobuf.ServiceDescriptorProto
768
675
  */
769
- export declare class ServiceDescriptorProto extends Message<ServiceDescriptorProto> {
676
+ export type ServiceDescriptorProto = Message<"google.protobuf.ServiceDescriptorProto"> & {
770
677
  /**
771
678
  * @generated from field: optional string name = 1;
772
679
  */
773
- name?: string;
680
+ name: string;
774
681
  /**
775
682
  * @generated from field: repeated google.protobuf.MethodDescriptorProto method = 2;
776
683
  */
@@ -779,36 +686,33 @@ export declare class ServiceDescriptorProto extends Message<ServiceDescriptorPro
779
686
  * @generated from field: optional google.protobuf.ServiceOptions options = 3;
780
687
  */
781
688
  options?: ServiceOptions;
782
- constructor(data?: PartialMessage<ServiceDescriptorProto>);
783
- static readonly runtime: typeof proto2;
784
- static readonly typeName = "google.protobuf.ServiceDescriptorProto";
785
- static readonly fields: FieldList;
786
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ServiceDescriptorProto;
787
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ServiceDescriptorProto;
788
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ServiceDescriptorProto;
789
- static equals(a: ServiceDescriptorProto | PlainMessage<ServiceDescriptorProto> | undefined, b: ServiceDescriptorProto | PlainMessage<ServiceDescriptorProto> | undefined): boolean;
790
- }
689
+ };
690
+ /**
691
+ * Describes the message google.protobuf.ServiceDescriptorProto.
692
+ * Use `create(ServiceDescriptorProtoDesc)` to create a new message.
693
+ */
694
+ export declare const ServiceDescriptorProtoDesc: GenDescMessage<ServiceDescriptorProto>;
791
695
  /**
792
696
  * Describes a method of a service.
793
697
  *
794
698
  * @generated from message google.protobuf.MethodDescriptorProto
795
699
  */
796
- export declare class MethodDescriptorProto extends Message<MethodDescriptorProto> {
700
+ export type MethodDescriptorProto = Message<"google.protobuf.MethodDescriptorProto"> & {
797
701
  /**
798
702
  * @generated from field: optional string name = 1;
799
703
  */
800
- name?: string;
704
+ name: string;
801
705
  /**
802
706
  * Input and output type names. These are resolved in the same way as
803
707
  * FieldDescriptorProto.type_name, but must refer to a message type.
804
708
  *
805
709
  * @generated from field: optional string input_type = 2;
806
710
  */
807
- inputType?: string;
711
+ inputType: string;
808
712
  /**
809
713
  * @generated from field: optional string output_type = 3;
810
714
  */
811
- outputType?: string;
715
+ outputType: string;
812
716
  /**
813
717
  * @generated from field: optional google.protobuf.MethodOptions options = 4;
814
718
  */
@@ -818,26 +722,23 @@ export declare class MethodDescriptorProto extends Message<MethodDescriptorProto
818
722
  *
819
723
  * @generated from field: optional bool client_streaming = 5 [default = false];
820
724
  */
821
- clientStreaming?: boolean;
725
+ clientStreaming: boolean;
822
726
  /**
823
727
  * Identifies if server streams multiple server messages
824
728
  *
825
729
  * @generated from field: optional bool server_streaming = 6 [default = false];
826
730
  */
827
- serverStreaming?: boolean;
828
- constructor(data?: PartialMessage<MethodDescriptorProto>);
829
- static readonly runtime: typeof proto2;
830
- static readonly typeName = "google.protobuf.MethodDescriptorProto";
831
- static readonly fields: FieldList;
832
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MethodDescriptorProto;
833
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MethodDescriptorProto;
834
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MethodDescriptorProto;
835
- static equals(a: MethodDescriptorProto | PlainMessage<MethodDescriptorProto> | undefined, b: MethodDescriptorProto | PlainMessage<MethodDescriptorProto> | undefined): boolean;
836
- }
731
+ serverStreaming: boolean;
732
+ };
733
+ /**
734
+ * Describes the message google.protobuf.MethodDescriptorProto.
735
+ * Use `create(MethodDescriptorProtoDesc)` to create a new message.
736
+ */
737
+ export declare const MethodDescriptorProtoDesc: GenDescMessage<MethodDescriptorProto>;
837
738
  /**
838
739
  * @generated from message google.protobuf.FileOptions
839
740
  */
840
- export declare class FileOptions extends Message<FileOptions> {
741
+ export type FileOptions = Message<"google.protobuf.FileOptions"> & {
841
742
  /**
842
743
  * Sets the Java package where classes generated from this .proto will be
843
744
  * placed. By default, the proto package is used, but this is often
@@ -846,7 +747,7 @@ export declare class FileOptions extends Message<FileOptions> {
846
747
  *
847
748
  * @generated from field: optional string java_package = 1;
848
749
  */
849
- javaPackage?: string;
750
+ javaPackage: string;
850
751
  /**
851
752
  * Controls the name of the wrapper Java class generated for the .proto file.
852
753
  * That class will always contain the .proto file's getDescriptor() method as
@@ -856,7 +757,7 @@ export declare class FileOptions extends Message<FileOptions> {
856
757
  *
857
758
  * @generated from field: optional string java_outer_classname = 8;
858
759
  */
859
- javaOuterClassname?: string;
760
+ javaOuterClassname: string;
860
761
  /**
861
762
  * If enabled, then the Java code generator will generate a separate .java
862
763
  * file for each top-level message, enum, and service defined in the .proto
@@ -867,29 +768,33 @@ export declare class FileOptions extends Message<FileOptions> {
867
768
  *
868
769
  * @generated from field: optional bool java_multiple_files = 10 [default = false];
869
770
  */
870
- javaMultipleFiles?: boolean;
771
+ javaMultipleFiles: boolean;
871
772
  /**
872
773
  * This option does nothing.
873
774
  *
874
775
  * @generated from field: optional bool java_generate_equals_and_hash = 20 [deprecated = true];
875
776
  * @deprecated
876
777
  */
877
- javaGenerateEqualsAndHash?: boolean;
778
+ javaGenerateEqualsAndHash: boolean;
878
779
  /**
879
- * If set true, then the Java2 code generator will generate code that
880
- * throws an exception whenever an attempt is made to assign a non-UTF-8
881
- * byte sequence to a string field.
882
- * Message reflection will do the same.
883
- * However, an extension field still accepts non-UTF-8 byte sequences.
884
- * This option has no effect on when used with the lite runtime.
780
+ * A proto2 file can set this to true to opt in to UTF-8 checking for Java,
781
+ * which will throw an exception if invalid UTF-8 is parsed from the wire or
782
+ * assigned to a string field.
783
+ *
784
+ * TODO: clarify exactly what kinds of field types this option
785
+ * applies to, and update these docs accordingly.
786
+ *
787
+ * Proto3 files already perform these checks. Setting the option explicitly to
788
+ * false has no effect: it cannot be used to opt proto3 files out of UTF-8
789
+ * checks.
885
790
  *
886
791
  * @generated from field: optional bool java_string_check_utf8 = 27 [default = false];
887
792
  */
888
- javaStringCheckUtf8?: boolean;
793
+ javaStringCheckUtf8: boolean;
889
794
  /**
890
795
  * @generated from field: optional google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];
891
796
  */
892
- optimizeFor?: FileOptions_OptimizeMode;
797
+ optimizeFor: FileOptions_OptimizeMode;
893
798
  /**
894
799
  * Sets the Go package where structs generated from this .proto will be
895
800
  * placed. If omitted, the Go package will be derived from the following:
@@ -899,7 +804,7 @@ export declare class FileOptions extends Message<FileOptions> {
899
804
  *
900
805
  * @generated from field: optional string go_package = 11;
901
806
  */
902
- goPackage?: string;
807
+ goPackage: string;
903
808
  /**
904
809
  * Should generic services be generated in each language? "Generic" services
905
810
  * are not specific to any particular RPC system. They are generated by the
@@ -914,15 +819,15 @@ export declare class FileOptions extends Message<FileOptions> {
914
819
  *
915
820
  * @generated from field: optional bool cc_generic_services = 16 [default = false];
916
821
  */
917
- ccGenericServices?: boolean;
822
+ ccGenericServices: boolean;
918
823
  /**
919
824
  * @generated from field: optional bool java_generic_services = 17 [default = false];
920
825
  */
921
- javaGenericServices?: boolean;
826
+ javaGenericServices: boolean;
922
827
  /**
923
828
  * @generated from field: optional bool py_generic_services = 18 [default = false];
924
829
  */
925
- pyGenericServices?: boolean;
830
+ pyGenericServices: boolean;
926
831
  /**
927
832
  * Is this file deprecated?
928
833
  * Depending on the target platform, this can emit Deprecated annotations
@@ -931,27 +836,27 @@ export declare class FileOptions extends Message<FileOptions> {
931
836
  *
932
837
  * @generated from field: optional bool deprecated = 23 [default = false];
933
838
  */
934
- deprecated?: boolean;
839
+ deprecated: boolean;
935
840
  /**
936
841
  * Enables the use of arenas for the proto messages in this file. This applies
937
842
  * only to generated classes for C++.
938
843
  *
939
844
  * @generated from field: optional bool cc_enable_arenas = 31 [default = true];
940
845
  */
941
- ccEnableArenas?: boolean;
846
+ ccEnableArenas: boolean;
942
847
  /**
943
848
  * Sets the objective c class prefix which is prepended to all objective c
944
849
  * generated classes from this .proto. There is no default.
945
850
  *
946
851
  * @generated from field: optional string objc_class_prefix = 36;
947
852
  */
948
- objcClassPrefix?: string;
853
+ objcClassPrefix: string;
949
854
  /**
950
855
  * Namespace for generated classes; defaults to the package.
951
856
  *
952
857
  * @generated from field: optional string csharp_namespace = 37;
953
858
  */
954
- csharpNamespace?: string;
859
+ csharpNamespace: string;
955
860
  /**
956
861
  * By default Swift generators will take the proto package and CamelCase it
957
862
  * replacing '.' with underscore and use that to prefix the types/symbols
@@ -960,14 +865,14 @@ export declare class FileOptions extends Message<FileOptions> {
960
865
  *
961
866
  * @generated from field: optional string swift_prefix = 39;
962
867
  */
963
- swiftPrefix?: string;
868
+ swiftPrefix: string;
964
869
  /**
965
870
  * Sets the php class prefix which is prepended to all php generated classes
966
871
  * from this .proto. Default is empty.
967
872
  *
968
873
  * @generated from field: optional string php_class_prefix = 40;
969
874
  */
970
- phpClassPrefix?: string;
875
+ phpClassPrefix: string;
971
876
  /**
972
877
  * Use this option to change the namespace of php generated classes. Default
973
878
  * is empty. When this option is empty, the package name will be used for
@@ -975,7 +880,7 @@ export declare class FileOptions extends Message<FileOptions> {
975
880
  *
976
881
  * @generated from field: optional string php_namespace = 41;
977
882
  */
978
- phpNamespace?: string;
883
+ phpNamespace: string;
979
884
  /**
980
885
  * Use this option to change the namespace of php generated metadata classes.
981
886
  * Default is empty. When this option is empty, the proto file name will be
@@ -983,7 +888,7 @@ export declare class FileOptions extends Message<FileOptions> {
983
888
  *
984
889
  * @generated from field: optional string php_metadata_namespace = 44;
985
890
  */
986
- phpMetadataNamespace?: string;
891
+ phpMetadataNamespace: string;
987
892
  /**
988
893
  * Use this option to change the package of ruby generated classes. Default
989
894
  * is empty. When this option is not set, the package name will be used for
@@ -991,7 +896,7 @@ export declare class FileOptions extends Message<FileOptions> {
991
896
  *
992
897
  * @generated from field: optional string ruby_package = 45;
993
898
  */
994
- rubyPackage?: string;
899
+ rubyPackage: string;
995
900
  /**
996
901
  * Any features defined in the specific edition.
997
902
  *
@@ -1005,15 +910,12 @@ export declare class FileOptions extends Message<FileOptions> {
1005
910
  * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
1006
911
  */
1007
912
  uninterpretedOption: UninterpretedOption[];
1008
- constructor(data?: PartialMessage<FileOptions>);
1009
- static readonly runtime: typeof proto2;
1010
- static readonly typeName = "google.protobuf.FileOptions";
1011
- static readonly fields: FieldList;
1012
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): FileOptions;
1013
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): FileOptions;
1014
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): FileOptions;
1015
- static equals(a: FileOptions | PlainMessage<FileOptions> | undefined, b: FileOptions | PlainMessage<FileOptions> | undefined): boolean;
1016
- }
913
+ };
914
+ /**
915
+ * Describes the message google.protobuf.FileOptions.
916
+ * Use `create(FileOptionsDesc)` to create a new message.
917
+ */
918
+ export declare const FileOptionsDesc: GenDescMessage<FileOptions>;
1017
919
  /**
1018
920
  * Generated classes can be optimized for speed or code size.
1019
921
  *
@@ -1041,10 +943,14 @@ export declare enum FileOptions_OptimizeMode {
1041
943
  */
1042
944
  LITE_RUNTIME = 3
1043
945
  }
946
+ /**
947
+ * Describes the enum google.protobuf.FileOptions.OptimizeMode.
948
+ */
949
+ export declare const FileOptions_OptimizeModeDesc: GenDescEnum<FileOptions_OptimizeMode>;
1044
950
  /**
1045
951
  * @generated from message google.protobuf.MessageOptions
1046
952
  */
1047
- export declare class MessageOptions extends Message<MessageOptions> {
953
+ export type MessageOptions = Message<"google.protobuf.MessageOptions"> & {
1048
954
  /**
1049
955
  * Set true to use the old proto1 MessageSet wire format for extensions.
1050
956
  * This is provided for backwards-compatibility with the MessageSet wire
@@ -1067,7 +973,7 @@ export declare class MessageOptions extends Message<MessageOptions> {
1067
973
  *
1068
974
  * @generated from field: optional bool message_set_wire_format = 1 [default = false];
1069
975
  */
1070
- messageSetWireFormat?: boolean;
976
+ messageSetWireFormat: boolean;
1071
977
  /**
1072
978
  * Disables the generation of the standard "descriptor()" accessor, which can
1073
979
  * conflict with a field of the same name. This is meant to make migration
@@ -1075,7 +981,7 @@ export declare class MessageOptions extends Message<MessageOptions> {
1075
981
  *
1076
982
  * @generated from field: optional bool no_standard_descriptor_accessor = 2 [default = false];
1077
983
  */
1078
- noStandardDescriptorAccessor?: boolean;
984
+ noStandardDescriptorAccessor: boolean;
1079
985
  /**
1080
986
  * Is this message deprecated?
1081
987
  * Depending on the target platform, this can emit Deprecated annotations
@@ -1084,7 +990,7 @@ export declare class MessageOptions extends Message<MessageOptions> {
1084
990
  *
1085
991
  * @generated from field: optional bool deprecated = 3 [default = false];
1086
992
  */
1087
- deprecated?: boolean;
993
+ deprecated: boolean;
1088
994
  /**
1089
995
  * Whether the message is an automatically generated map entry type for the
1090
996
  * maps field.
@@ -1110,7 +1016,7 @@ export declare class MessageOptions extends Message<MessageOptions> {
1110
1016
  *
1111
1017
  * @generated from field: optional bool map_entry = 7;
1112
1018
  */
1113
- mapEntry?: boolean;
1019
+ mapEntry: boolean;
1114
1020
  /**
1115
1021
  * Enable the legacy handling of JSON field name conflicts. This lowercases
1116
1022
  * and strips underscored from the fields before comparison in proto3 only.
@@ -1126,7 +1032,7 @@ export declare class MessageOptions extends Message<MessageOptions> {
1126
1032
  * @generated from field: optional bool deprecated_legacy_json_field_conflicts = 11 [deprecated = true];
1127
1033
  * @deprecated
1128
1034
  */
1129
- deprecatedLegacyJsonFieldConflicts?: boolean;
1035
+ deprecatedLegacyJsonFieldConflicts: boolean;
1130
1036
  /**
1131
1037
  * Any features defined in the specific edition.
1132
1038
  *
@@ -1139,19 +1045,16 @@ export declare class MessageOptions extends Message<MessageOptions> {
1139
1045
  * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
1140
1046
  */
1141
1047
  uninterpretedOption: UninterpretedOption[];
1142
- constructor(data?: PartialMessage<MessageOptions>);
1143
- static readonly runtime: typeof proto2;
1144
- static readonly typeName = "google.protobuf.MessageOptions";
1145
- static readonly fields: FieldList;
1146
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MessageOptions;
1147
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MessageOptions;
1148
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MessageOptions;
1149
- static equals(a: MessageOptions | PlainMessage<MessageOptions> | undefined, b: MessageOptions | PlainMessage<MessageOptions> | undefined): boolean;
1150
- }
1048
+ };
1049
+ /**
1050
+ * Describes the message google.protobuf.MessageOptions.
1051
+ * Use `create(MessageOptionsDesc)` to create a new message.
1052
+ */
1053
+ export declare const MessageOptionsDesc: GenDescMessage<MessageOptions>;
1151
1054
  /**
1152
1055
  * @generated from message google.protobuf.FieldOptions
1153
1056
  */
1154
- export declare class FieldOptions extends Message<FieldOptions> {
1057
+ export type FieldOptions = Message<"google.protobuf.FieldOptions"> & {
1155
1058
  /**
1156
1059
  * The ctype option instructs the C++ code generator to use a different
1157
1060
  * representation of the field than it normally would. See the specific
@@ -1162,7 +1065,7 @@ export declare class FieldOptions extends Message<FieldOptions> {
1162
1065
  *
1163
1066
  * @generated from field: optional google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];
1164
1067
  */
1165
- ctype?: FieldOptions_CType;
1068
+ ctype: FieldOptions_CType;
1166
1069
  /**
1167
1070
  * The packed option can be enabled for repeated primitive fields to enable
1168
1071
  * a more efficient representation on the wire. Rather than repeatedly
@@ -1174,7 +1077,7 @@ export declare class FieldOptions extends Message<FieldOptions> {
1174
1077
  *
1175
1078
  * @generated from field: optional bool packed = 2;
1176
1079
  */
1177
- packed?: boolean;
1080
+ packed: boolean;
1178
1081
  /**
1179
1082
  * The jstype option determines the JavaScript type used for values of the
1180
1083
  * field. The option is permitted only for 64 bit integral and fixed types
@@ -1190,7 +1093,7 @@ export declare class FieldOptions extends Message<FieldOptions> {
1190
1093
  *
1191
1094
  * @generated from field: optional google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL];
1192
1095
  */
1193
- jstype?: FieldOptions_JSType;
1096
+ jstype: FieldOptions_JSType;
1194
1097
  /**
1195
1098
  * Should this field be parsed lazily? Lazy applies only to message-type
1196
1099
  * fields. It means that when the outer message is initially parsed, the
@@ -1217,7 +1120,7 @@ export declare class FieldOptions extends Message<FieldOptions> {
1217
1120
  *
1218
1121
  * @generated from field: optional bool lazy = 5 [default = false];
1219
1122
  */
1220
- lazy?: boolean;
1123
+ lazy: boolean;
1221
1124
  /**
1222
1125
  * unverified_lazy does no correctness checks on the byte stream. This should
1223
1126
  * only be used where lazy with verification is prohibitive for performance
@@ -1225,7 +1128,7 @@ export declare class FieldOptions extends Message<FieldOptions> {
1225
1128
  *
1226
1129
  * @generated from field: optional bool unverified_lazy = 15 [default = false];
1227
1130
  */
1228
- unverifiedLazy?: boolean;
1131
+ unverifiedLazy: boolean;
1229
1132
  /**
1230
1133
  * Is this field deprecated?
1231
1134
  * Depending on the target platform, this can emit Deprecated annotations
@@ -1234,24 +1137,24 @@ export declare class FieldOptions extends Message<FieldOptions> {
1234
1137
  *
1235
1138
  * @generated from field: optional bool deprecated = 3 [default = false];
1236
1139
  */
1237
- deprecated?: boolean;
1140
+ deprecated: boolean;
1238
1141
  /**
1239
1142
  * For Google-internal migration only. Do not use.
1240
1143
  *
1241
1144
  * @generated from field: optional bool weak = 10 [default = false];
1242
1145
  */
1243
- weak?: boolean;
1146
+ weak: boolean;
1244
1147
  /**
1245
1148
  * Indicate that the field value should not be printed out when using debug
1246
1149
  * formats, e.g. when the field contains sensitive credentials.
1247
1150
  *
1248
1151
  * @generated from field: optional bool debug_redact = 16 [default = false];
1249
1152
  */
1250
- debugRedact?: boolean;
1153
+ debugRedact: boolean;
1251
1154
  /**
1252
1155
  * @generated from field: optional google.protobuf.FieldOptions.OptionRetention retention = 17;
1253
1156
  */
1254
- retention?: FieldOptions_OptionRetention;
1157
+ retention: FieldOptions_OptionRetention;
1255
1158
  /**
1256
1159
  * @generated from field: repeated google.protobuf.FieldOptions.OptionTargetType targets = 19;
1257
1160
  */
@@ -1266,21 +1169,84 @@ export declare class FieldOptions extends Message<FieldOptions> {
1266
1169
  * @generated from field: optional google.protobuf.FeatureSet features = 21;
1267
1170
  */
1268
1171
  features?: FeatureSet;
1172
+ /**
1173
+ * @generated from field: optional google.protobuf.FieldOptions.FeatureSupport feature_support = 22;
1174
+ */
1175
+ featureSupport?: FieldOptions_FeatureSupport;
1269
1176
  /**
1270
1177
  * The parser stores options it doesn't recognize here. See above.
1271
1178
  *
1272
1179
  * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
1273
1180
  */
1274
1181
  uninterpretedOption: UninterpretedOption[];
1275
- constructor(data?: PartialMessage<FieldOptions>);
1276
- static readonly runtime: typeof proto2;
1277
- static readonly typeName = "google.protobuf.FieldOptions";
1278
- static readonly fields: FieldList;
1279
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): FieldOptions;
1280
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): FieldOptions;
1281
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): FieldOptions;
1282
- static equals(a: FieldOptions | PlainMessage<FieldOptions> | undefined, b: FieldOptions | PlainMessage<FieldOptions> | undefined): boolean;
1283
- }
1182
+ };
1183
+ /**
1184
+ * Describes the message google.protobuf.FieldOptions.
1185
+ * Use `create(FieldOptionsDesc)` to create a new message.
1186
+ */
1187
+ export declare const FieldOptionsDesc: GenDescMessage<FieldOptions>;
1188
+ /**
1189
+ * @generated from message google.protobuf.FieldOptions.EditionDefault
1190
+ */
1191
+ export type FieldOptions_EditionDefault = Message<"google.protobuf.FieldOptions.EditionDefault"> & {
1192
+ /**
1193
+ * @generated from field: optional google.protobuf.Edition edition = 3;
1194
+ */
1195
+ edition: Edition;
1196
+ /**
1197
+ * Textproto value.
1198
+ *
1199
+ * @generated from field: optional string value = 2;
1200
+ */
1201
+ value: string;
1202
+ };
1203
+ /**
1204
+ * Describes the message google.protobuf.FieldOptions.EditionDefault.
1205
+ * Use `create(FieldOptions_EditionDefaultDesc)` to create a new message.
1206
+ */
1207
+ export declare const FieldOptions_EditionDefaultDesc: GenDescMessage<FieldOptions_EditionDefault>;
1208
+ /**
1209
+ * Information about the support window of a feature.
1210
+ *
1211
+ * @generated from message google.protobuf.FieldOptions.FeatureSupport
1212
+ */
1213
+ export type FieldOptions_FeatureSupport = Message<"google.protobuf.FieldOptions.FeatureSupport"> & {
1214
+ /**
1215
+ * The edition that this feature was first available in. In editions
1216
+ * earlier than this one, the default assigned to EDITION_LEGACY will be
1217
+ * used, and proto files will not be able to override it.
1218
+ *
1219
+ * @generated from field: optional google.protobuf.Edition edition_introduced = 1;
1220
+ */
1221
+ editionIntroduced: Edition;
1222
+ /**
1223
+ * The edition this feature becomes deprecated in. Using this after this
1224
+ * edition may trigger warnings.
1225
+ *
1226
+ * @generated from field: optional google.protobuf.Edition edition_deprecated = 2;
1227
+ */
1228
+ editionDeprecated: Edition;
1229
+ /**
1230
+ * The deprecation warning text if this feature is used after the edition it
1231
+ * was marked deprecated in.
1232
+ *
1233
+ * @generated from field: optional string deprecation_warning = 3;
1234
+ */
1235
+ deprecationWarning: string;
1236
+ /**
1237
+ * The edition this feature is no longer available in. In editions after
1238
+ * this one, the last default assigned will be used, and proto files will
1239
+ * not be able to override it.
1240
+ *
1241
+ * @generated from field: optional google.protobuf.Edition edition_removed = 4;
1242
+ */
1243
+ editionRemoved: Edition;
1244
+ };
1245
+ /**
1246
+ * Describes the message google.protobuf.FieldOptions.FeatureSupport.
1247
+ * Use `create(FieldOptions_FeatureSupportDesc)` to create a new message.
1248
+ */
1249
+ export declare const FieldOptions_FeatureSupportDesc: GenDescMessage<FieldOptions_FeatureSupport>;
1284
1250
  /**
1285
1251
  * @generated from enum google.protobuf.FieldOptions.CType
1286
1252
  */
@@ -1307,6 +1273,10 @@ export declare enum FieldOptions_CType {
1307
1273
  */
1308
1274
  STRING_PIECE = 2
1309
1275
  }
1276
+ /**
1277
+ * Describes the enum google.protobuf.FieldOptions.CType.
1278
+ */
1279
+ export declare const FieldOptions_CTypeDesc: GenDescEnum<FieldOptions_CType>;
1310
1280
  /**
1311
1281
  * @generated from enum google.protobuf.FieldOptions.JSType
1312
1282
  */
@@ -1330,6 +1300,10 @@ export declare enum FieldOptions_JSType {
1330
1300
  */
1331
1301
  JS_NUMBER = 2
1332
1302
  }
1303
+ /**
1304
+ * Describes the enum google.protobuf.FieldOptions.JSType.
1305
+ */
1306
+ export declare const FieldOptions_JSTypeDesc: GenDescEnum<FieldOptions_JSType>;
1333
1307
  /**
1334
1308
  * If set to RETENTION_SOURCE, the option will be omitted from the binary.
1335
1309
  * Note: as of January 2023, support for this is in progress and does not yet
@@ -1351,6 +1325,10 @@ export declare enum FieldOptions_OptionRetention {
1351
1325
  */
1352
1326
  RETENTION_SOURCE = 2
1353
1327
  }
1328
+ /**
1329
+ * Describes the enum google.protobuf.FieldOptions.OptionRetention.
1330
+ */
1331
+ export declare const FieldOptions_OptionRetentionDesc: GenDescEnum<FieldOptions_OptionRetention>;
1354
1332
  /**
1355
1333
  * This indicates the types of entities that the field may apply to when used
1356
1334
  * as an option. If it is unset, then the field may be freely used as an
@@ -1402,32 +1380,13 @@ export declare enum FieldOptions_OptionTargetType {
1402
1380
  TARGET_TYPE_METHOD = 9
1403
1381
  }
1404
1382
  /**
1405
- * @generated from message google.protobuf.FieldOptions.EditionDefault
1383
+ * Describes the enum google.protobuf.FieldOptions.OptionTargetType.
1406
1384
  */
1407
- export declare class FieldOptions_EditionDefault extends Message<FieldOptions_EditionDefault> {
1408
- /**
1409
- * @generated from field: optional google.protobuf.Edition edition = 3;
1410
- */
1411
- edition?: Edition;
1412
- /**
1413
- * Textproto value.
1414
- *
1415
- * @generated from field: optional string value = 2;
1416
- */
1417
- value?: string;
1418
- constructor(data?: PartialMessage<FieldOptions_EditionDefault>);
1419
- static readonly runtime: typeof proto2;
1420
- static readonly typeName = "google.protobuf.FieldOptions.EditionDefault";
1421
- static readonly fields: FieldList;
1422
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): FieldOptions_EditionDefault;
1423
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): FieldOptions_EditionDefault;
1424
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): FieldOptions_EditionDefault;
1425
- static equals(a: FieldOptions_EditionDefault | PlainMessage<FieldOptions_EditionDefault> | undefined, b: FieldOptions_EditionDefault | PlainMessage<FieldOptions_EditionDefault> | undefined): boolean;
1426
- }
1385
+ export declare const FieldOptions_OptionTargetTypeDesc: GenDescEnum<FieldOptions_OptionTargetType>;
1427
1386
  /**
1428
1387
  * @generated from message google.protobuf.OneofOptions
1429
1388
  */
1430
- export declare class OneofOptions extends Message<OneofOptions> {
1389
+ export type OneofOptions = Message<"google.protobuf.OneofOptions"> & {
1431
1390
  /**
1432
1391
  * Any features defined in the specific edition.
1433
1392
  *
@@ -1440,26 +1399,23 @@ export declare class OneofOptions extends Message<OneofOptions> {
1440
1399
  * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
1441
1400
  */
1442
1401
  uninterpretedOption: UninterpretedOption[];
1443
- constructor(data?: PartialMessage<OneofOptions>);
1444
- static readonly runtime: typeof proto2;
1445
- static readonly typeName = "google.protobuf.OneofOptions";
1446
- static readonly fields: FieldList;
1447
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OneofOptions;
1448
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OneofOptions;
1449
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OneofOptions;
1450
- static equals(a: OneofOptions | PlainMessage<OneofOptions> | undefined, b: OneofOptions | PlainMessage<OneofOptions> | undefined): boolean;
1451
- }
1402
+ };
1403
+ /**
1404
+ * Describes the message google.protobuf.OneofOptions.
1405
+ * Use `create(OneofOptionsDesc)` to create a new message.
1406
+ */
1407
+ export declare const OneofOptionsDesc: GenDescMessage<OneofOptions>;
1452
1408
  /**
1453
1409
  * @generated from message google.protobuf.EnumOptions
1454
1410
  */
1455
- export declare class EnumOptions extends Message<EnumOptions> {
1411
+ export type EnumOptions = Message<"google.protobuf.EnumOptions"> & {
1456
1412
  /**
1457
1413
  * Set this option to true to allow mapping different tag names to the same
1458
1414
  * value.
1459
1415
  *
1460
1416
  * @generated from field: optional bool allow_alias = 2;
1461
1417
  */
1462
- allowAlias?: boolean;
1418
+ allowAlias: boolean;
1463
1419
  /**
1464
1420
  * Is this enum deprecated?
1465
1421
  * Depending on the target platform, this can emit Deprecated annotations
@@ -1468,7 +1424,7 @@ export declare class EnumOptions extends Message<EnumOptions> {
1468
1424
  *
1469
1425
  * @generated from field: optional bool deprecated = 3 [default = false];
1470
1426
  */
1471
- deprecated?: boolean;
1427
+ deprecated: boolean;
1472
1428
  /**
1473
1429
  * Enable the legacy handling of JSON field name conflicts. This lowercases
1474
1430
  * and strips underscored from the fields before comparison in proto3 only.
@@ -1480,7 +1436,7 @@ export declare class EnumOptions extends Message<EnumOptions> {
1480
1436
  * @generated from field: optional bool deprecated_legacy_json_field_conflicts = 6 [deprecated = true];
1481
1437
  * @deprecated
1482
1438
  */
1483
- deprecatedLegacyJsonFieldConflicts?: boolean;
1439
+ deprecatedLegacyJsonFieldConflicts: boolean;
1484
1440
  /**
1485
1441
  * Any features defined in the specific edition.
1486
1442
  *
@@ -1493,19 +1449,16 @@ export declare class EnumOptions extends Message<EnumOptions> {
1493
1449
  * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
1494
1450
  */
1495
1451
  uninterpretedOption: UninterpretedOption[];
1496
- constructor(data?: PartialMessage<EnumOptions>);
1497
- static readonly runtime: typeof proto2;
1498
- static readonly typeName = "google.protobuf.EnumOptions";
1499
- static readonly fields: FieldList;
1500
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EnumOptions;
1501
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EnumOptions;
1502
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EnumOptions;
1503
- static equals(a: EnumOptions | PlainMessage<EnumOptions> | undefined, b: EnumOptions | PlainMessage<EnumOptions> | undefined): boolean;
1504
- }
1452
+ };
1453
+ /**
1454
+ * Describes the message google.protobuf.EnumOptions.
1455
+ * Use `create(EnumOptionsDesc)` to create a new message.
1456
+ */
1457
+ export declare const EnumOptionsDesc: GenDescMessage<EnumOptions>;
1505
1458
  /**
1506
1459
  * @generated from message google.protobuf.EnumValueOptions
1507
1460
  */
1508
- export declare class EnumValueOptions extends Message<EnumValueOptions> {
1461
+ export type EnumValueOptions = Message<"google.protobuf.EnumValueOptions"> & {
1509
1462
  /**
1510
1463
  * Is this enum value deprecated?
1511
1464
  * Depending on the target platform, this can emit Deprecated annotations
@@ -1514,7 +1467,7 @@ export declare class EnumValueOptions extends Message<EnumValueOptions> {
1514
1467
  *
1515
1468
  * @generated from field: optional bool deprecated = 1 [default = false];
1516
1469
  */
1517
- deprecated?: boolean;
1470
+ deprecated: boolean;
1518
1471
  /**
1519
1472
  * Any features defined in the specific edition.
1520
1473
  *
@@ -1528,26 +1481,23 @@ export declare class EnumValueOptions extends Message<EnumValueOptions> {
1528
1481
  *
1529
1482
  * @generated from field: optional bool debug_redact = 3 [default = false];
1530
1483
  */
1531
- debugRedact?: boolean;
1484
+ debugRedact: boolean;
1532
1485
  /**
1533
1486
  * The parser stores options it doesn't recognize here. See above.
1534
1487
  *
1535
1488
  * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
1536
1489
  */
1537
1490
  uninterpretedOption: UninterpretedOption[];
1538
- constructor(data?: PartialMessage<EnumValueOptions>);
1539
- static readonly runtime: typeof proto2;
1540
- static readonly typeName = "google.protobuf.EnumValueOptions";
1541
- static readonly fields: FieldList;
1542
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EnumValueOptions;
1543
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EnumValueOptions;
1544
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EnumValueOptions;
1545
- static equals(a: EnumValueOptions | PlainMessage<EnumValueOptions> | undefined, b: EnumValueOptions | PlainMessage<EnumValueOptions> | undefined): boolean;
1546
- }
1491
+ };
1492
+ /**
1493
+ * Describes the message google.protobuf.EnumValueOptions.
1494
+ * Use `create(EnumValueOptionsDesc)` to create a new message.
1495
+ */
1496
+ export declare const EnumValueOptionsDesc: GenDescMessage<EnumValueOptions>;
1547
1497
  /**
1548
1498
  * @generated from message google.protobuf.ServiceOptions
1549
1499
  */
1550
- export declare class ServiceOptions extends Message<ServiceOptions> {
1500
+ export type ServiceOptions = Message<"google.protobuf.ServiceOptions"> & {
1551
1501
  /**
1552
1502
  * Any features defined in the specific edition.
1553
1503
  *
@@ -1562,26 +1512,23 @@ export declare class ServiceOptions extends Message<ServiceOptions> {
1562
1512
  *
1563
1513
  * @generated from field: optional bool deprecated = 33 [default = false];
1564
1514
  */
1565
- deprecated?: boolean;
1515
+ deprecated: boolean;
1566
1516
  /**
1567
1517
  * The parser stores options it doesn't recognize here. See above.
1568
1518
  *
1569
1519
  * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
1570
1520
  */
1571
1521
  uninterpretedOption: UninterpretedOption[];
1572
- constructor(data?: PartialMessage<ServiceOptions>);
1573
- static readonly runtime: typeof proto2;
1574
- static readonly typeName = "google.protobuf.ServiceOptions";
1575
- static readonly fields: FieldList;
1576
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ServiceOptions;
1577
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ServiceOptions;
1578
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ServiceOptions;
1579
- static equals(a: ServiceOptions | PlainMessage<ServiceOptions> | undefined, b: ServiceOptions | PlainMessage<ServiceOptions> | undefined): boolean;
1580
- }
1522
+ };
1523
+ /**
1524
+ * Describes the message google.protobuf.ServiceOptions.
1525
+ * Use `create(ServiceOptionsDesc)` to create a new message.
1526
+ */
1527
+ export declare const ServiceOptionsDesc: GenDescMessage<ServiceOptions>;
1581
1528
  /**
1582
1529
  * @generated from message google.protobuf.MethodOptions
1583
1530
  */
1584
- export declare class MethodOptions extends Message<MethodOptions> {
1531
+ export type MethodOptions = Message<"google.protobuf.MethodOptions"> & {
1585
1532
  /**
1586
1533
  * Is this method deprecated?
1587
1534
  * Depending on the target platform, this can emit Deprecated annotations
@@ -1590,11 +1537,11 @@ export declare class MethodOptions extends Message<MethodOptions> {
1590
1537
  *
1591
1538
  * @generated from field: optional bool deprecated = 33 [default = false];
1592
1539
  */
1593
- deprecated?: boolean;
1540
+ deprecated: boolean;
1594
1541
  /**
1595
1542
  * @generated from field: optional google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN];
1596
1543
  */
1597
- idempotencyLevel?: MethodOptions_IdempotencyLevel;
1544
+ idempotencyLevel: MethodOptions_IdempotencyLevel;
1598
1545
  /**
1599
1546
  * Any features defined in the specific edition.
1600
1547
  *
@@ -1607,15 +1554,12 @@ export declare class MethodOptions extends Message<MethodOptions> {
1607
1554
  * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
1608
1555
  */
1609
1556
  uninterpretedOption: UninterpretedOption[];
1610
- constructor(data?: PartialMessage<MethodOptions>);
1611
- static readonly runtime: typeof proto2;
1612
- static readonly typeName = "google.protobuf.MethodOptions";
1613
- static readonly fields: FieldList;
1614
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MethodOptions;
1615
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MethodOptions;
1616
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MethodOptions;
1617
- static equals(a: MethodOptions | PlainMessage<MethodOptions> | undefined, b: MethodOptions | PlainMessage<MethodOptions> | undefined): boolean;
1618
- }
1557
+ };
1558
+ /**
1559
+ * Describes the message google.protobuf.MethodOptions.
1560
+ * Use `create(MethodOptionsDesc)` to create a new message.
1561
+ */
1562
+ export declare const MethodOptionsDesc: GenDescMessage<MethodOptions>;
1619
1563
  /**
1620
1564
  * Is this method side-effect-free (or safe in HTTP parlance), or idempotent,
1621
1565
  * or neither? HTTP based RPC implementation may choose GET verb for safe
@@ -1641,6 +1585,10 @@ export declare enum MethodOptions_IdempotencyLevel {
1641
1585
  */
1642
1586
  IDEMPOTENT = 2
1643
1587
  }
1588
+ /**
1589
+ * Describes the enum google.protobuf.MethodOptions.IdempotencyLevel.
1590
+ */
1591
+ export declare const MethodOptions_IdempotencyLevelDesc: GenDescEnum<MethodOptions_IdempotencyLevel>;
1644
1592
  /**
1645
1593
  * A message representing a option the parser does not recognize. This only
1646
1594
  * appears in options protos created by the compiler::Parser class.
@@ -1651,7 +1599,7 @@ export declare enum MethodOptions_IdempotencyLevel {
1651
1599
  *
1652
1600
  * @generated from message google.protobuf.UninterpretedOption
1653
1601
  */
1654
- export declare class UninterpretedOption extends Message<UninterpretedOption> {
1602
+ export type UninterpretedOption = Message<"google.protobuf.UninterpretedOption"> & {
1655
1603
  /**
1656
1604
  * @generated from field: repeated google.protobuf.UninterpretedOption.NamePart name = 2;
1657
1605
  */
@@ -1662,36 +1610,33 @@ export declare class UninterpretedOption extends Message<UninterpretedOption> {
1662
1610
  *
1663
1611
  * @generated from field: optional string identifier_value = 3;
1664
1612
  */
1665
- identifierValue?: string;
1613
+ identifierValue: string;
1666
1614
  /**
1667
1615
  * @generated from field: optional uint64 positive_int_value = 4;
1668
1616
  */
1669
- positiveIntValue?: bigint;
1617
+ positiveIntValue: bigint;
1670
1618
  /**
1671
1619
  * @generated from field: optional int64 negative_int_value = 5;
1672
1620
  */
1673
- negativeIntValue?: bigint;
1621
+ negativeIntValue: bigint;
1674
1622
  /**
1675
1623
  * @generated from field: optional double double_value = 6;
1676
1624
  */
1677
- doubleValue?: number;
1625
+ doubleValue: number;
1678
1626
  /**
1679
1627
  * @generated from field: optional bytes string_value = 7;
1680
1628
  */
1681
- stringValue?: Uint8Array;
1629
+ stringValue: Uint8Array;
1682
1630
  /**
1683
1631
  * @generated from field: optional string aggregate_value = 8;
1684
1632
  */
1685
- aggregateValue?: string;
1686
- constructor(data?: PartialMessage<UninterpretedOption>);
1687
- static readonly runtime: typeof proto2;
1688
- static readonly typeName = "google.protobuf.UninterpretedOption";
1689
- static readonly fields: FieldList;
1690
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UninterpretedOption;
1691
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UninterpretedOption;
1692
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UninterpretedOption;
1693
- static equals(a: UninterpretedOption | PlainMessage<UninterpretedOption> | undefined, b: UninterpretedOption | PlainMessage<UninterpretedOption> | undefined): boolean;
1694
- }
1633
+ aggregateValue: string;
1634
+ };
1635
+ /**
1636
+ * Describes the message google.protobuf.UninterpretedOption.
1637
+ * Use `create(UninterpretedOptionDesc)` to create a new message.
1638
+ */
1639
+ export declare const UninterpretedOptionDesc: GenDescMessage<UninterpretedOption>;
1695
1640
  /**
1696
1641
  * The name of the uninterpreted option. Each string represents a segment in
1697
1642
  * a dot-separated name. is_extension is true iff a segment represents an
@@ -1701,24 +1646,21 @@ export declare class UninterpretedOption extends Message<UninterpretedOption> {
1701
1646
  *
1702
1647
  * @generated from message google.protobuf.UninterpretedOption.NamePart
1703
1648
  */
1704
- export declare class UninterpretedOption_NamePart extends Message<UninterpretedOption_NamePart> {
1649
+ export type UninterpretedOption_NamePart = Message<"google.protobuf.UninterpretedOption.NamePart"> & {
1705
1650
  /**
1706
1651
  * @generated from field: required string name_part = 1;
1707
1652
  */
1708
- namePart?: string;
1653
+ namePart: string;
1709
1654
  /**
1710
1655
  * @generated from field: required bool is_extension = 2;
1711
1656
  */
1712
- isExtension?: boolean;
1713
- constructor(data?: PartialMessage<UninterpretedOption_NamePart>);
1714
- static readonly runtime: typeof proto2;
1715
- static readonly typeName = "google.protobuf.UninterpretedOption.NamePart";
1716
- static readonly fields: FieldList;
1717
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UninterpretedOption_NamePart;
1718
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UninterpretedOption_NamePart;
1719
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UninterpretedOption_NamePart;
1720
- static equals(a: UninterpretedOption_NamePart | PlainMessage<UninterpretedOption_NamePart> | undefined, b: UninterpretedOption_NamePart | PlainMessage<UninterpretedOption_NamePart> | undefined): boolean;
1721
- }
1657
+ isExtension: boolean;
1658
+ };
1659
+ /**
1660
+ * Describes the message google.protobuf.UninterpretedOption.NamePart.
1661
+ * Use `create(UninterpretedOption_NamePartDesc)` to create a new message.
1662
+ */
1663
+ export declare const UninterpretedOption_NamePartDesc: GenDescMessage<UninterpretedOption_NamePart>;
1722
1664
  /**
1723
1665
  * TODO Enums in C++ gencode (and potentially other languages) are
1724
1666
  * not well scoped. This means that each of the feature enums below can clash
@@ -1729,40 +1671,37 @@ export declare class UninterpretedOption_NamePart extends Message<UninterpretedO
1729
1671
  *
1730
1672
  * @generated from message google.protobuf.FeatureSet
1731
1673
  */
1732
- export declare class FeatureSet extends Message<FeatureSet> {
1674
+ export type FeatureSet = Message<"google.protobuf.FeatureSet"> & {
1733
1675
  /**
1734
1676
  * @generated from field: optional google.protobuf.FeatureSet.FieldPresence field_presence = 1;
1735
1677
  */
1736
- fieldPresence?: FeatureSet_FieldPresence;
1678
+ fieldPresence: FeatureSet_FieldPresence;
1737
1679
  /**
1738
1680
  * @generated from field: optional google.protobuf.FeatureSet.EnumType enum_type = 2;
1739
1681
  */
1740
- enumType?: FeatureSet_EnumType;
1682
+ enumType: FeatureSet_EnumType;
1741
1683
  /**
1742
1684
  * @generated from field: optional google.protobuf.FeatureSet.RepeatedFieldEncoding repeated_field_encoding = 3;
1743
1685
  */
1744
- repeatedFieldEncoding?: FeatureSet_RepeatedFieldEncoding;
1686
+ repeatedFieldEncoding: FeatureSet_RepeatedFieldEncoding;
1745
1687
  /**
1746
1688
  * @generated from field: optional google.protobuf.FeatureSet.Utf8Validation utf8_validation = 4;
1747
1689
  */
1748
- utf8Validation?: FeatureSet_Utf8Validation;
1690
+ utf8Validation: FeatureSet_Utf8Validation;
1749
1691
  /**
1750
1692
  * @generated from field: optional google.protobuf.FeatureSet.MessageEncoding message_encoding = 5;
1751
1693
  */
1752
- messageEncoding?: FeatureSet_MessageEncoding;
1694
+ messageEncoding: FeatureSet_MessageEncoding;
1753
1695
  /**
1754
1696
  * @generated from field: optional google.protobuf.FeatureSet.JsonFormat json_format = 6;
1755
1697
  */
1756
- jsonFormat?: FeatureSet_JsonFormat;
1757
- constructor(data?: PartialMessage<FeatureSet>);
1758
- static readonly runtime: typeof proto2;
1759
- static readonly typeName = "google.protobuf.FeatureSet";
1760
- static readonly fields: FieldList;
1761
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): FeatureSet;
1762
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): FeatureSet;
1763
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): FeatureSet;
1764
- static equals(a: FeatureSet | PlainMessage<FeatureSet> | undefined, b: FeatureSet | PlainMessage<FeatureSet> | undefined): boolean;
1765
- }
1698
+ jsonFormat: FeatureSet_JsonFormat;
1699
+ };
1700
+ /**
1701
+ * Describes the message google.protobuf.FeatureSet.
1702
+ * Use `create(FeatureSetDesc)` to create a new message.
1703
+ */
1704
+ export declare const FeatureSetDesc: GenDescMessage<FeatureSet>;
1766
1705
  /**
1767
1706
  * @generated from enum google.protobuf.FeatureSet.FieldPresence
1768
1707
  */
@@ -1784,6 +1723,10 @@ export declare enum FeatureSet_FieldPresence {
1784
1723
  */
1785
1724
  LEGACY_REQUIRED = 3
1786
1725
  }
1726
+ /**
1727
+ * Describes the enum google.protobuf.FeatureSet.FieldPresence.
1728
+ */
1729
+ export declare const FeatureSet_FieldPresenceDesc: GenDescEnum<FeatureSet_FieldPresence>;
1787
1730
  /**
1788
1731
  * @generated from enum google.protobuf.FeatureSet.EnumType
1789
1732
  */
@@ -1801,6 +1744,10 @@ export declare enum FeatureSet_EnumType {
1801
1744
  */
1802
1745
  CLOSED = 2
1803
1746
  }
1747
+ /**
1748
+ * Describes the enum google.protobuf.FeatureSet.EnumType.
1749
+ */
1750
+ export declare const FeatureSet_EnumTypeDesc: GenDescEnum<FeatureSet_EnumType>;
1804
1751
  /**
1805
1752
  * @generated from enum google.protobuf.FeatureSet.RepeatedFieldEncoding
1806
1753
  */
@@ -1818,6 +1765,10 @@ export declare enum FeatureSet_RepeatedFieldEncoding {
1818
1765
  */
1819
1766
  EXPANDED = 2
1820
1767
  }
1768
+ /**
1769
+ * Describes the enum google.protobuf.FeatureSet.RepeatedFieldEncoding.
1770
+ */
1771
+ export declare const FeatureSet_RepeatedFieldEncodingDesc: GenDescEnum<FeatureSet_RepeatedFieldEncoding>;
1821
1772
  /**
1822
1773
  * @generated from enum google.protobuf.FeatureSet.Utf8Validation
1823
1774
  */
@@ -1835,6 +1786,10 @@ export declare enum FeatureSet_Utf8Validation {
1835
1786
  */
1836
1787
  NONE = 3
1837
1788
  }
1789
+ /**
1790
+ * Describes the enum google.protobuf.FeatureSet.Utf8Validation.
1791
+ */
1792
+ export declare const FeatureSet_Utf8ValidationDesc: GenDescEnum<FeatureSet_Utf8Validation>;
1838
1793
  /**
1839
1794
  * @generated from enum google.protobuf.FeatureSet.MessageEncoding
1840
1795
  */
@@ -1852,6 +1807,10 @@ export declare enum FeatureSet_MessageEncoding {
1852
1807
  */
1853
1808
  DELIMITED = 2
1854
1809
  }
1810
+ /**
1811
+ * Describes the enum google.protobuf.FeatureSet.MessageEncoding.
1812
+ */
1813
+ export declare const FeatureSet_MessageEncodingDesc: GenDescEnum<FeatureSet_MessageEncoding>;
1855
1814
  /**
1856
1815
  * @generated from enum google.protobuf.FeatureSet.JsonFormat
1857
1816
  */
@@ -1869,6 +1828,10 @@ export declare enum FeatureSet_JsonFormat {
1869
1828
  */
1870
1829
  LEGACY_BEST_EFFORT = 2
1871
1830
  }
1831
+ /**
1832
+ * Describes the enum google.protobuf.FeatureSet.JsonFormat.
1833
+ */
1834
+ export declare const FeatureSet_JsonFormatDesc: GenDescEnum<FeatureSet_JsonFormat>;
1872
1835
  /**
1873
1836
  * A compiled specification for the defaults of a set of features. These
1874
1837
  * messages are generated from FeatureSet extensions and can be used to seed
@@ -1877,7 +1840,7 @@ export declare enum FeatureSet_JsonFormat {
1877
1840
  *
1878
1841
  * @generated from message google.protobuf.FeatureSetDefaults
1879
1842
  */
1880
- export declare class FeatureSetDefaults extends Message<FeatureSetDefaults> {
1843
+ export type FeatureSetDefaults = Message<"google.protobuf.FeatureSetDefaults"> & {
1881
1844
  /**
1882
1845
  * @generated from field: repeated google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault defaults = 1;
1883
1846
  */
@@ -1888,23 +1851,20 @@ export declare class FeatureSetDefaults extends Message<FeatureSetDefaults> {
1888
1851
  *
1889
1852
  * @generated from field: optional google.protobuf.Edition minimum_edition = 4;
1890
1853
  */
1891
- minimumEdition?: Edition;
1854
+ minimumEdition: Edition;
1892
1855
  /**
1893
1856
  * The maximum known edition (inclusive) when this was constructed. Editions
1894
1857
  * after this will not have reliable defaults.
1895
1858
  *
1896
1859
  * @generated from field: optional google.protobuf.Edition maximum_edition = 5;
1897
1860
  */
1898
- maximumEdition?: Edition;
1899
- constructor(data?: PartialMessage<FeatureSetDefaults>);
1900
- static readonly runtime: typeof proto2;
1901
- static readonly typeName = "google.protobuf.FeatureSetDefaults";
1902
- static readonly fields: FieldList;
1903
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): FeatureSetDefaults;
1904
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): FeatureSetDefaults;
1905
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): FeatureSetDefaults;
1906
- static equals(a: FeatureSetDefaults | PlainMessage<FeatureSetDefaults> | undefined, b: FeatureSetDefaults | PlainMessage<FeatureSetDefaults> | undefined): boolean;
1907
- }
1861
+ maximumEdition: Edition;
1862
+ };
1863
+ /**
1864
+ * Describes the message google.protobuf.FeatureSetDefaults.
1865
+ * Use `create(FeatureSetDefaultsDesc)` to create a new message.
1866
+ */
1867
+ export declare const FeatureSetDefaultsDesc: GenDescMessage<FeatureSetDefaults>;
1908
1868
  /**
1909
1869
  * A map from every known edition with a unique set of defaults to its
1910
1870
  * defaults. Not all editions may be contained here. For a given edition,
@@ -1913,31 +1873,36 @@ export declare class FeatureSetDefaults extends Message<FeatureSetDefaults> {
1913
1873
  *
1914
1874
  * @generated from message google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault
1915
1875
  */
1916
- export declare class FeatureSetDefaults_FeatureSetEditionDefault extends Message<FeatureSetDefaults_FeatureSetEditionDefault> {
1876
+ export type FeatureSetDefaults_FeatureSetEditionDefault = Message<"google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault"> & {
1917
1877
  /**
1918
1878
  * @generated from field: optional google.protobuf.Edition edition = 3;
1919
1879
  */
1920
- edition?: Edition;
1880
+ edition: Edition;
1921
1881
  /**
1922
- * @generated from field: optional google.protobuf.FeatureSet features = 2;
1882
+ * Defaults of features that can be overridden in this edition.
1883
+ *
1884
+ * @generated from field: optional google.protobuf.FeatureSet overridable_features = 4;
1923
1885
  */
1924
- features?: FeatureSet;
1925
- constructor(data?: PartialMessage<FeatureSetDefaults_FeatureSetEditionDefault>);
1926
- static readonly runtime: typeof proto2;
1927
- static readonly typeName = "google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault";
1928
- static readonly fields: FieldList;
1929
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): FeatureSetDefaults_FeatureSetEditionDefault;
1930
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): FeatureSetDefaults_FeatureSetEditionDefault;
1931
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): FeatureSetDefaults_FeatureSetEditionDefault;
1932
- static equals(a: FeatureSetDefaults_FeatureSetEditionDefault | PlainMessage<FeatureSetDefaults_FeatureSetEditionDefault> | undefined, b: FeatureSetDefaults_FeatureSetEditionDefault | PlainMessage<FeatureSetDefaults_FeatureSetEditionDefault> | undefined): boolean;
1933
- }
1886
+ overridableFeatures?: FeatureSet;
1887
+ /**
1888
+ * Defaults of features that can't be overridden in this edition.
1889
+ *
1890
+ * @generated from field: optional google.protobuf.FeatureSet fixed_features = 5;
1891
+ */
1892
+ fixedFeatures?: FeatureSet;
1893
+ };
1894
+ /**
1895
+ * Describes the message google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.
1896
+ * Use `create(FeatureSetDefaults_FeatureSetEditionDefaultDesc)` to create a new message.
1897
+ */
1898
+ export declare const FeatureSetDefaults_FeatureSetEditionDefaultDesc: GenDescMessage<FeatureSetDefaults_FeatureSetEditionDefault>;
1934
1899
  /**
1935
1900
  * Encapsulates information about the original source file from which a
1936
1901
  * FileDescriptorProto was generated.
1937
1902
  *
1938
1903
  * @generated from message google.protobuf.SourceCodeInfo
1939
1904
  */
1940
- export declare class SourceCodeInfo extends Message<SourceCodeInfo> {
1905
+ export type SourceCodeInfo = Message<"google.protobuf.SourceCodeInfo"> & {
1941
1906
  /**
1942
1907
  * A Location identifies a piece of source code in a .proto file which
1943
1908
  * corresponds to a particular definition. This information is intended
@@ -1986,19 +1951,16 @@ export declare class SourceCodeInfo extends Message<SourceCodeInfo> {
1986
1951
  * @generated from field: repeated google.protobuf.SourceCodeInfo.Location location = 1;
1987
1952
  */
1988
1953
  location: SourceCodeInfo_Location[];
1989
- constructor(data?: PartialMessage<SourceCodeInfo>);
1990
- static readonly runtime: typeof proto2;
1991
- static readonly typeName = "google.protobuf.SourceCodeInfo";
1992
- static readonly fields: FieldList;
1993
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SourceCodeInfo;
1994
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SourceCodeInfo;
1995
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SourceCodeInfo;
1996
- static equals(a: SourceCodeInfo | PlainMessage<SourceCodeInfo> | undefined, b: SourceCodeInfo | PlainMessage<SourceCodeInfo> | undefined): boolean;
1997
- }
1954
+ };
1955
+ /**
1956
+ * Describes the message google.protobuf.SourceCodeInfo.
1957
+ * Use `create(SourceCodeInfoDesc)` to create a new message.
1958
+ */
1959
+ export declare const SourceCodeInfoDesc: GenDescMessage<SourceCodeInfo>;
1998
1960
  /**
1999
1961
  * @generated from message google.protobuf.SourceCodeInfo.Location
2000
1962
  */
2001
- export declare class SourceCodeInfo_Location extends Message<SourceCodeInfo_Location> {
1963
+ export type SourceCodeInfo_Location = Message<"google.protobuf.SourceCodeInfo.Location"> & {
2002
1964
  /**
2003
1965
  * Identifies which part of the FileDescriptorProto was defined at this
2004
1966
  * location.
@@ -2088,24 +2050,21 @@ export declare class SourceCodeInfo_Location extends Message<SourceCodeInfo_Loca
2088
2050
  *
2089
2051
  * @generated from field: optional string leading_comments = 3;
2090
2052
  */
2091
- leadingComments?: string;
2053
+ leadingComments: string;
2092
2054
  /**
2093
2055
  * @generated from field: optional string trailing_comments = 4;
2094
2056
  */
2095
- trailingComments?: string;
2057
+ trailingComments: string;
2096
2058
  /**
2097
2059
  * @generated from field: repeated string leading_detached_comments = 6;
2098
2060
  */
2099
2061
  leadingDetachedComments: string[];
2100
- constructor(data?: PartialMessage<SourceCodeInfo_Location>);
2101
- static readonly runtime: typeof proto2;
2102
- static readonly typeName = "google.protobuf.SourceCodeInfo.Location";
2103
- static readonly fields: FieldList;
2104
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SourceCodeInfo_Location;
2105
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SourceCodeInfo_Location;
2106
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SourceCodeInfo_Location;
2107
- static equals(a: SourceCodeInfo_Location | PlainMessage<SourceCodeInfo_Location> | undefined, b: SourceCodeInfo_Location | PlainMessage<SourceCodeInfo_Location> | undefined): boolean;
2108
- }
2062
+ };
2063
+ /**
2064
+ * Describes the message google.protobuf.SourceCodeInfo.Location.
2065
+ * Use `create(SourceCodeInfo_LocationDesc)` to create a new message.
2066
+ */
2067
+ export declare const SourceCodeInfo_LocationDesc: GenDescMessage<SourceCodeInfo_Location>;
2109
2068
  /**
2110
2069
  * Describes the relationship between generated code and its original source
2111
2070
  * file. A GeneratedCodeInfo message is associated with only one generated
@@ -2113,7 +2072,7 @@ export declare class SourceCodeInfo_Location extends Message<SourceCodeInfo_Loca
2113
2072
  *
2114
2073
  * @generated from message google.protobuf.GeneratedCodeInfo
2115
2074
  */
2116
- export declare class GeneratedCodeInfo extends Message<GeneratedCodeInfo> {
2075
+ export type GeneratedCodeInfo = Message<"google.protobuf.GeneratedCodeInfo"> & {
2117
2076
  /**
2118
2077
  * An Annotation connects some span of text in generated code to an element
2119
2078
  * of its generating .proto file.
@@ -2121,19 +2080,16 @@ export declare class GeneratedCodeInfo extends Message<GeneratedCodeInfo> {
2121
2080
  * @generated from field: repeated google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;
2122
2081
  */
2123
2082
  annotation: GeneratedCodeInfo_Annotation[];
2124
- constructor(data?: PartialMessage<GeneratedCodeInfo>);
2125
- static readonly runtime: typeof proto2;
2126
- static readonly typeName = "google.protobuf.GeneratedCodeInfo";
2127
- static readonly fields: FieldList;
2128
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GeneratedCodeInfo;
2129
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GeneratedCodeInfo;
2130
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GeneratedCodeInfo;
2131
- static equals(a: GeneratedCodeInfo | PlainMessage<GeneratedCodeInfo> | undefined, b: GeneratedCodeInfo | PlainMessage<GeneratedCodeInfo> | undefined): boolean;
2132
- }
2083
+ };
2084
+ /**
2085
+ * Describes the message google.protobuf.GeneratedCodeInfo.
2086
+ * Use `create(GeneratedCodeInfoDesc)` to create a new message.
2087
+ */
2088
+ export declare const GeneratedCodeInfoDesc: GenDescMessage<GeneratedCodeInfo>;
2133
2089
  /**
2134
2090
  * @generated from message google.protobuf.GeneratedCodeInfo.Annotation
2135
2091
  */
2136
- export declare class GeneratedCodeInfo_Annotation extends Message<GeneratedCodeInfo_Annotation> {
2092
+ export type GeneratedCodeInfo_Annotation = Message<"google.protobuf.GeneratedCodeInfo.Annotation"> & {
2137
2093
  /**
2138
2094
  * Identifies the element in the original source .proto file. This field
2139
2095
  * is formatted the same as SourceCodeInfo.Location.path.
@@ -2146,14 +2102,14 @@ export declare class GeneratedCodeInfo_Annotation extends Message<GeneratedCodeI
2146
2102
  *
2147
2103
  * @generated from field: optional string source_file = 2;
2148
2104
  */
2149
- sourceFile?: string;
2105
+ sourceFile: string;
2150
2106
  /**
2151
2107
  * Identifies the starting offset in bytes in the generated code
2152
2108
  * that relates to the identified object.
2153
2109
  *
2154
2110
  * @generated from field: optional int32 begin = 3;
2155
2111
  */
2156
- begin?: number;
2112
+ begin: number;
2157
2113
  /**
2158
2114
  * Identifies the ending offset in bytes in the generated code that
2159
2115
  * relates to the identified object. The end offset should be one past
@@ -2161,20 +2117,17 @@ export declare class GeneratedCodeInfo_Annotation extends Message<GeneratedCodeI
2161
2117
  *
2162
2118
  * @generated from field: optional int32 end = 4;
2163
2119
  */
2164
- end?: number;
2120
+ end: number;
2165
2121
  /**
2166
2122
  * @generated from field: optional google.protobuf.GeneratedCodeInfo.Annotation.Semantic semantic = 5;
2167
2123
  */
2168
- semantic?: GeneratedCodeInfo_Annotation_Semantic;
2169
- constructor(data?: PartialMessage<GeneratedCodeInfo_Annotation>);
2170
- static readonly runtime: typeof proto2;
2171
- static readonly typeName = "google.protobuf.GeneratedCodeInfo.Annotation";
2172
- static readonly fields: FieldList;
2173
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GeneratedCodeInfo_Annotation;
2174
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GeneratedCodeInfo_Annotation;
2175
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GeneratedCodeInfo_Annotation;
2176
- static equals(a: GeneratedCodeInfo_Annotation | PlainMessage<GeneratedCodeInfo_Annotation> | undefined, b: GeneratedCodeInfo_Annotation | PlainMessage<GeneratedCodeInfo_Annotation> | undefined): boolean;
2177
- }
2124
+ semantic: GeneratedCodeInfo_Annotation_Semantic;
2125
+ };
2126
+ /**
2127
+ * Describes the message google.protobuf.GeneratedCodeInfo.Annotation.
2128
+ * Use `create(GeneratedCodeInfo_AnnotationDesc)` to create a new message.
2129
+ */
2130
+ export declare const GeneratedCodeInfo_AnnotationDesc: GenDescMessage<GeneratedCodeInfo_Annotation>;
2178
2131
  /**
2179
2132
  * Represents the identified object's effect on the element in the original
2180
2133
  * .proto file.
@@ -2201,3 +2154,87 @@ export declare enum GeneratedCodeInfo_Annotation_Semantic {
2201
2154
  */
2202
2155
  ALIAS = 2
2203
2156
  }
2157
+ /**
2158
+ * Describes the enum google.protobuf.GeneratedCodeInfo.Annotation.Semantic.
2159
+ */
2160
+ export declare const GeneratedCodeInfo_Annotation_SemanticDesc: GenDescEnum<GeneratedCodeInfo_Annotation_Semantic>;
2161
+ /**
2162
+ * The full set of known editions.
2163
+ *
2164
+ * @generated from enum google.protobuf.Edition
2165
+ */
2166
+ export declare enum Edition {
2167
+ /**
2168
+ * A placeholder for an unknown edition value.
2169
+ *
2170
+ * @generated from enum value: EDITION_UNKNOWN = 0;
2171
+ */
2172
+ EDITION_UNKNOWN = 0,
2173
+ /**
2174
+ * A placeholder edition for specifying default behaviors *before* a feature
2175
+ * was first introduced. This is effectively an "infinite past".
2176
+ *
2177
+ * @generated from enum value: EDITION_LEGACY = 900;
2178
+ */
2179
+ EDITION_LEGACY = 900,
2180
+ /**
2181
+ * Legacy syntax "editions". These pre-date editions, but behave much like
2182
+ * distinct editions. These can't be used to specify the edition of proto
2183
+ * files, but feature definitions must supply proto2/proto3 defaults for
2184
+ * backwards compatibility.
2185
+ *
2186
+ * @generated from enum value: EDITION_PROTO2 = 998;
2187
+ */
2188
+ EDITION_PROTO2 = 998,
2189
+ /**
2190
+ * @generated from enum value: EDITION_PROTO3 = 999;
2191
+ */
2192
+ EDITION_PROTO3 = 999,
2193
+ /**
2194
+ * Editions that have been released. The specific values are arbitrary and
2195
+ * should not be depended on, but they will always be time-ordered for easy
2196
+ * comparison.
2197
+ *
2198
+ * @generated from enum value: EDITION_2023 = 1000;
2199
+ */
2200
+ EDITION_2023 = 1000,
2201
+ /**
2202
+ * @generated from enum value: EDITION_2024 = 1001;
2203
+ */
2204
+ EDITION_2024 = 1001,
2205
+ /**
2206
+ * Placeholder editions for testing feature resolution. These should not be
2207
+ * used or relyed on outside of tests.
2208
+ *
2209
+ * @generated from enum value: EDITION_1_TEST_ONLY = 1;
2210
+ */
2211
+ EDITION_1_TEST_ONLY = 1,
2212
+ /**
2213
+ * @generated from enum value: EDITION_2_TEST_ONLY = 2;
2214
+ */
2215
+ EDITION_2_TEST_ONLY = 2,
2216
+ /**
2217
+ * @generated from enum value: EDITION_99997_TEST_ONLY = 99997;
2218
+ */
2219
+ EDITION_99997_TEST_ONLY = 99997,
2220
+ /**
2221
+ * @generated from enum value: EDITION_99998_TEST_ONLY = 99998;
2222
+ */
2223
+ EDITION_99998_TEST_ONLY = 99998,
2224
+ /**
2225
+ * @generated from enum value: EDITION_99999_TEST_ONLY = 99999;
2226
+ */
2227
+ EDITION_99999_TEST_ONLY = 99999,
2228
+ /**
2229
+ * Placeholder for specifying unbounded edition support. This should only
2230
+ * ever be used by plugins that can expect to never require any changes to
2231
+ * support a new edition.
2232
+ *
2233
+ * @generated from enum value: EDITION_MAX = 2147483647;
2234
+ */
2235
+ EDITION_MAX = 2147483647
2236
+ }
2237
+ /**
2238
+ * Describes the enum google.protobuf.Edition.
2239
+ */
2240
+ export declare const EditionDesc: GenDescEnum<Edition>;