@bufbuild/protobuf 1.9.0 → 2.0.0-alpha.1

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 (426) 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 +43 -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 +2 -0
  18. package/dist/cjs/codegenv1/restore-json-names.js +27 -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 +116 -0
  22. package/dist/cjs/codegenv1/symbols.js +58 -0
  23. package/dist/cjs/codegenv1/types.d.ts +19 -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 +242 -0
  27. package/dist/{esm/descriptor-set.d.ts → cjs/desc-types.d.ts} +144 -242
  28. package/dist/cjs/equals.d.ts +9 -0
  29. package/dist/cjs/equals.js +133 -0
  30. package/dist/cjs/{extension-accessor.d.ts → extensions.d.ts} +11 -7
  31. package/dist/cjs/extensions.js +138 -0
  32. package/dist/cjs/fields.d.ts +22 -0
  33. package/dist/cjs/fields.js +39 -0
  34. package/dist/cjs/from-binary.d.ts +34 -0
  35. package/dist/cjs/from-binary.js +221 -0
  36. package/dist/cjs/from-json.d.ts +48 -0
  37. package/dist/cjs/from-json.js +614 -0
  38. package/dist/cjs/index.d.ts +16 -42
  39. package/dist/cjs/index.js +21 -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 +23 -0
  51. package/dist/cjs/reflect/names.js +112 -0
  52. package/dist/cjs/reflect/nested-types.d.ts +2 -0
  53. package/dist/cjs/reflect/nested-types.js +38 -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 +136 -0
  57. package/dist/cjs/{extension.js → reflect/reflect-types.js} +1 -0
  58. package/dist/cjs/reflect/reflect.d.ts +23 -0
  59. package/dist/cjs/reflect/reflect.js +409 -0
  60. package/dist/cjs/reflect/registry.d.ts +82 -0
  61. package/dist/cjs/reflect/registry.js +870 -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 +171 -0
  66. package/dist/cjs/to-binary.d.ts +24 -0
  67. package/dist/cjs/to-binary.js +194 -0
  68. package/dist/cjs/to-json.d.ts +50 -0
  69. package/dist/cjs/to-json.js +384 -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 +242 -0
  74. package/dist/cjs/{binary-encoding.js → wire/binary-encoding.js} +11 -10
  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/cjs/{google → wkt/gen/google}/protobuf/any_pb.d.ts +6 -27
  88. package/dist/cjs/wkt/gen/google/protobuf/any_pb.js +22 -0
  89. package/dist/cjs/{google → wkt/gen/google}/protobuf/api_pb.d.ts +14 -38
  90. package/dist/cjs/wkt/gen/google/protobuf/api_pb.js +30 -0
  91. package/dist/cjs/{google → wkt/gen/google}/protobuf/compiler/plugin_pb.d.ts +47 -77
  92. package/dist/cjs/wkt/gen/google/protobuf/compiler/plugin_pb.js +55 -0
  93. package/dist/cjs/{google → wkt/gen/google}/protobuf/descriptor_pb.d.ts +384 -533
  94. package/dist/cjs/wkt/gen/google/protobuf/descriptor_pb.js +691 -0
  95. package/dist/{esm → cjs/wkt/gen}/google/protobuf/duration_pb.d.ts +6 -18
  96. package/dist/cjs/wkt/gen/google/protobuf/duration_pb.js +22 -0
  97. package/dist/cjs/wkt/gen/google/protobuf/empty_pb.d.ts +17 -0
  98. package/dist/cjs/wkt/gen/google/protobuf/empty_pb.js +22 -0
  99. package/dist/{esm → cjs/wkt/gen}/google/protobuf/field_mask_pb.d.ts +6 -18
  100. package/dist/cjs/{proto-double.js → wkt/gen/google/protobuf/field_mask_pb.js} +7 -14
  101. package/dist/cjs/wkt/gen/google/protobuf/source_context_pb.d.ts +19 -0
  102. package/dist/cjs/wkt/gen/google/protobuf/source_context_pb.js +22 -0
  103. package/dist/{esm → cjs/wkt/gen}/google/protobuf/struct_pb.d.ts +28 -57
  104. package/dist/cjs/wkt/gen/google/protobuf/struct_pb.js +48 -0
  105. package/dist/{esm → cjs/wkt/gen}/google/protobuf/timestamp_pb.d.ts +6 -21
  106. package/dist/cjs/wkt/gen/google/protobuf/timestamp_pb.js +22 -0
  107. package/dist/{esm → cjs/wkt/gen}/google/protobuf/type_pb.d.ts +47 -82
  108. package/dist/cjs/wkt/gen/google/protobuf/type_pb.js +223 -0
  109. package/dist/cjs/wkt/gen/google/protobuf/wrappers_pb.d.ts +147 -0
  110. package/dist/cjs/wkt/gen/google/protobuf/wrappers_pb.js +46 -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 +38 -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 +2 -0
  134. package/dist/esm/codegenv1/restore-json-names.js +23 -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 +116 -0
  138. package/dist/esm/codegenv1/symbols.js +55 -0
  139. package/dist/esm/codegenv1/types.d.ts +19 -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 +239 -0
  143. package/dist/{cjs/descriptor-set.d.ts → esm/desc-types.d.ts} +144 -242
  144. package/dist/esm/equals.d.ts +9 -0
  145. package/dist/esm/equals.js +129 -0
  146. package/dist/esm/{extension-accessor.d.ts → extensions.d.ts} +11 -7
  147. package/dist/esm/extensions.js +130 -0
  148. package/dist/esm/fields.d.ts +22 -0
  149. package/dist/esm/fields.js +34 -0
  150. package/dist/esm/from-binary.d.ts +34 -0
  151. package/dist/esm/from-binary.js +215 -0
  152. package/dist/esm/from-json.d.ts +48 -0
  153. package/dist/esm/from-json.js +607 -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 +23 -0
  167. package/dist/esm/reflect/names.js +106 -0
  168. package/dist/esm/reflect/nested-types.d.ts +2 -0
  169. package/dist/esm/reflect/nested-types.js +34 -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 +136 -0
  173. package/dist/esm/reflect/reflect-types.js +15 -0
  174. package/dist/esm/reflect/reflect.d.ts +23 -0
  175. package/dist/esm/reflect/reflect.js +403 -0
  176. package/dist/esm/reflect/registry.d.ts +82 -0
  177. package/dist/esm/reflect/registry.js +865 -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 +160 -0
  182. package/dist/esm/to-binary.d.ts +24 -0
  183. package/dist/esm/to-binary.js +189 -0
  184. package/dist/esm/to-json.d.ts +50 -0
  185. package/dist/esm/to-json.js +379 -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 +242 -0
  190. package/dist/esm/{binary-encoding.js → wire/binary-encoding.js} +11 -10
  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/esm/{google → wkt/gen/google}/protobuf/any_pb.d.ts +6 -27
  204. package/dist/esm/wkt/gen/google/protobuf/any_pb.js +19 -0
  205. package/dist/esm/{google → wkt/gen/google}/protobuf/api_pb.d.ts +14 -38
  206. package/dist/esm/wkt/gen/google/protobuf/api_pb.js +27 -0
  207. package/dist/esm/{google → wkt/gen/google}/protobuf/compiler/plugin_pb.d.ts +47 -77
  208. package/dist/esm/wkt/gen/google/protobuf/compiler/plugin_pb.js +52 -0
  209. package/dist/esm/{google → wkt/gen/google}/protobuf/descriptor_pb.d.ts +384 -533
  210. package/dist/esm/wkt/gen/google/protobuf/descriptor_pb.js +687 -0
  211. package/dist/{cjs → esm/wkt/gen}/google/protobuf/duration_pb.d.ts +6 -18
  212. package/dist/esm/wkt/gen/google/protobuf/duration_pb.js +19 -0
  213. package/dist/esm/wkt/gen/google/protobuf/empty_pb.d.ts +17 -0
  214. package/dist/esm/wkt/gen/google/protobuf/empty_pb.js +19 -0
  215. package/dist/{cjs → esm/wkt/gen}/google/protobuf/field_mask_pb.d.ts +6 -18
  216. package/dist/esm/wkt/gen/google/protobuf/field_mask_pb.js +19 -0
  217. package/dist/esm/wkt/gen/google/protobuf/source_context_pb.d.ts +19 -0
  218. package/dist/esm/wkt/gen/google/protobuf/source_context_pb.js +19 -0
  219. package/dist/{cjs → esm/wkt/gen}/google/protobuf/struct_pb.d.ts +28 -57
  220. package/dist/esm/wkt/gen/google/protobuf/struct_pb.js +45 -0
  221. package/dist/{cjs → esm/wkt/gen}/google/protobuf/timestamp_pb.d.ts +6 -21
  222. package/dist/esm/wkt/gen/google/protobuf/timestamp_pb.js +19 -0
  223. package/dist/{cjs → esm/wkt/gen}/google/protobuf/type_pb.d.ts +47 -82
  224. package/dist/esm/wkt/gen/google/protobuf/type_pb.js +220 -0
  225. package/dist/esm/wkt/gen/google/protobuf/wrappers_pb.d.ts +147 -0
  226. package/dist/esm/wkt/gen/google/protobuf/wrappers_pb.js +43 -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.js +0 -114
  246. package/dist/cjs/extension.d.ts +0 -24
  247. package/dist/cjs/field-list.d.ts +0 -27
  248. package/dist/cjs/field-list.js +0 -15
  249. package/dist/cjs/field.d.ts +0 -314
  250. package/dist/cjs/field.js +0 -15
  251. package/dist/cjs/google/protobuf/any_pb.js +0 -273
  252. package/dist/cjs/google/protobuf/api_pb.js +0 -316
  253. package/dist/cjs/google/protobuf/compiler/plugin_pb.js +0 -219
  254. package/dist/cjs/google/protobuf/descriptor_pb.js +0 -2034
  255. package/dist/cjs/google/protobuf/duration_pb.js +0 -169
  256. package/dist/cjs/google/protobuf/empty_pb.d.ts +0 -28
  257. package/dist/cjs/google/protobuf/empty_pb.js +0 -52
  258. package/dist/cjs/google/protobuf/field_mask_pb.js +0 -311
  259. package/dist/cjs/google/protobuf/source_context_pb.d.ts +0 -29
  260. package/dist/cjs/google/protobuf/source_context_pb.js +0 -55
  261. package/dist/cjs/google/protobuf/struct_pb.js +0 -240
  262. package/dist/cjs/google/protobuf/timestamp_pb.js +0 -213
  263. package/dist/cjs/google/protobuf/type_pb.js +0 -562
  264. package/dist/cjs/google/protobuf/wrappers_pb.d.ts +0 -267
  265. package/dist/cjs/google/protobuf/wrappers_pb.js +0 -569
  266. package/dist/cjs/json-format.d.ts +0 -111
  267. package/dist/cjs/json-format.js +0 -15
  268. package/dist/cjs/message-type.d.ts +0 -51
  269. package/dist/cjs/message-type.js +0 -15
  270. package/dist/cjs/message.d.ts +0 -131
  271. package/dist/cjs/message.js +0 -129
  272. package/dist/cjs/private/binary-format.d.ts +0 -7
  273. package/dist/cjs/private/binary-format.js +0 -430
  274. package/dist/cjs/private/enum.d.ts +0 -27
  275. package/dist/cjs/private/enum.js +0 -94
  276. package/dist/cjs/private/extensions.d.ts +0 -34
  277. package/dist/cjs/private/extensions.js +0 -86
  278. package/dist/cjs/private/feature-set.d.ts +0 -19
  279. package/dist/cjs/private/feature-set.js +0 -106
  280. package/dist/cjs/private/field-list.d.ts +0 -18
  281. package/dist/cjs/private/field-list.js +0 -76
  282. package/dist/cjs/private/field-normalize.d.ts +0 -9
  283. package/dist/cjs/private/field-normalize.js +0 -69
  284. package/dist/cjs/private/field-wrapper.d.ts +0 -25
  285. package/dist/cjs/private/field-wrapper.js +0 -57
  286. package/dist/cjs/private/field.d.ts +0 -16
  287. package/dist/cjs/private/field.js +0 -45
  288. package/dist/cjs/private/json-format.d.ts +0 -2
  289. package/dist/cjs/private/json-format.js +0 -626
  290. package/dist/cjs/private/message-type.d.ts +0 -18
  291. package/dist/cjs/private/message-type.js +0 -50
  292. package/dist/cjs/private/names.d.ts +0 -43
  293. package/dist/cjs/private/names.js +0 -278
  294. package/dist/cjs/private/options-map.d.ts +0 -7
  295. package/dist/cjs/private/options-map.js +0 -15
  296. package/dist/cjs/private/proto-runtime.d.ts +0 -53
  297. package/dist/cjs/private/proto-runtime.js +0 -41
  298. package/dist/cjs/private/reflect.d.ts +0 -9
  299. package/dist/cjs/private/reflect.js +0 -79
  300. package/dist/cjs/private/reify-wkt.d.ts +0 -102
  301. package/dist/cjs/private/reify-wkt.js +0 -172
  302. package/dist/cjs/private/scalars.d.ts +0 -18
  303. package/dist/cjs/private/scalars.js +0 -105
  304. package/dist/cjs/private/text-format.d.ts +0 -4
  305. package/dist/cjs/private/util-common.d.ts +0 -2
  306. package/dist/cjs/private/util-common.js +0 -237
  307. package/dist/cjs/private/util.d.ts +0 -38
  308. package/dist/cjs/private/util.js +0 -15
  309. package/dist/cjs/proto-base64.d.ts +0 -18
  310. package/dist/cjs/proto-base64.js +0 -128
  311. package/dist/cjs/proto-delimited.d.ts +0 -54
  312. package/dist/cjs/proto-delimited.js +0 -155
  313. package/dist/cjs/proto-double.d.ts +0 -5
  314. package/dist/cjs/proto2.d.ts +0 -4
  315. package/dist/cjs/proto2.js +0 -53
  316. package/dist/cjs/proto3.d.ts +0 -4
  317. package/dist/cjs/proto3.js +0 -56
  318. package/dist/cjs/scalar.js +0 -81
  319. package/dist/cjs/service-type.d.ts +0 -96
  320. package/dist/cjs/service-type.js +0 -53
  321. package/dist/cjs/to-plain-message.d.ts +0 -12
  322. package/dist/cjs/to-plain-message.js +0 -72
  323. package/dist/cjs/type-registry.d.ts +0 -57
  324. package/dist/cjs/type-registry.js +0 -15
  325. package/dist/esm/binary-encoding.d.ts +0 -420
  326. package/dist/esm/binary-format.d.ts +0 -113
  327. package/dist/esm/codegen-info.d.ts +0 -33
  328. package/dist/esm/codegen-info.js +0 -67
  329. package/dist/esm/create-descriptor-set.d.ts +0 -36
  330. package/dist/esm/create-descriptor-set.js +0 -906
  331. package/dist/esm/create-registry-from-desc.d.ts +0 -15
  332. package/dist/esm/create-registry-from-desc.js +0 -261
  333. package/dist/esm/create-registry.d.ts +0 -9
  334. package/dist/esm/create-registry.js +0 -90
  335. package/dist/esm/descriptor-set.js +0 -14
  336. package/dist/esm/enum.d.ts +0 -35
  337. package/dist/esm/extension-accessor.js +0 -107
  338. package/dist/esm/extension.d.ts +0 -24
  339. package/dist/esm/field-list.d.ts +0 -27
  340. package/dist/esm/field.d.ts +0 -314
  341. package/dist/esm/field.js +0 -14
  342. package/dist/esm/google/protobuf/any_pb.js +0 -269
  343. package/dist/esm/google/protobuf/api_pb.js +0 -310
  344. package/dist/esm/google/protobuf/compiler/plugin_pb.js +0 -212
  345. package/dist/esm/google/protobuf/descriptor_pb.js +0 -1999
  346. package/dist/esm/google/protobuf/duration_pb.js +0 -165
  347. package/dist/esm/google/protobuf/empty_pb.d.ts +0 -28
  348. package/dist/esm/google/protobuf/empty_pb.js +0 -48
  349. package/dist/esm/google/protobuf/field_mask_pb.js +0 -307
  350. package/dist/esm/google/protobuf/source_context_pb.d.ts +0 -29
  351. package/dist/esm/google/protobuf/source_context_pb.js +0 -51
  352. package/dist/esm/google/protobuf/struct_pb.js +0 -234
  353. package/dist/esm/google/protobuf/timestamp_pb.js +0 -209
  354. package/dist/esm/google/protobuf/type_pb.js +0 -554
  355. package/dist/esm/google/protobuf/wrappers_pb.d.ts +0 -267
  356. package/dist/esm/google/protobuf/wrappers_pb.js +0 -557
  357. package/dist/esm/json-format.d.ts +0 -111
  358. package/dist/esm/json-format.js +0 -14
  359. package/dist/esm/message-type.d.ts +0 -51
  360. package/dist/esm/message-type.js +0 -14
  361. package/dist/esm/message.d.ts +0 -131
  362. package/dist/esm/message.js +0 -125
  363. package/dist/esm/private/binary-format.d.ts +0 -7
  364. package/dist/esm/private/binary-format.js +0 -426
  365. package/dist/esm/private/enum.d.ts +0 -27
  366. package/dist/esm/private/enum.js +0 -87
  367. package/dist/esm/private/extensions.d.ts +0 -34
  368. package/dist/esm/private/extensions.js +0 -81
  369. package/dist/esm/private/feature-set.d.ts +0 -19
  370. package/dist/esm/private/feature-set.js +0 -102
  371. package/dist/esm/private/field-list.d.ts +0 -18
  372. package/dist/esm/private/field-list.js +0 -72
  373. package/dist/esm/private/field-normalize.d.ts +0 -9
  374. package/dist/esm/private/field-normalize.js +0 -65
  375. package/dist/esm/private/field-wrapper.d.ts +0 -25
  376. package/dist/esm/private/field-wrapper.js +0 -53
  377. package/dist/esm/private/field.d.ts +0 -16
  378. package/dist/esm/private/field.js +0 -41
  379. package/dist/esm/private/json-format.d.ts +0 -2
  380. package/dist/esm/private/json-format.js +0 -623
  381. package/dist/esm/private/message-type.d.ts +0 -18
  382. package/dist/esm/private/message-type.js +0 -46
  383. package/dist/esm/private/names.d.ts +0 -43
  384. package/dist/esm/private/names.js +0 -269
  385. package/dist/esm/private/options-map.d.ts +0 -7
  386. package/dist/esm/private/options-map.js +0 -14
  387. package/dist/esm/private/proto-runtime.d.ts +0 -53
  388. package/dist/esm/private/proto-runtime.js +0 -37
  389. package/dist/esm/private/reflect.d.ts +0 -9
  390. package/dist/esm/private/reflect.js +0 -74
  391. package/dist/esm/private/reify-wkt.d.ts +0 -102
  392. package/dist/esm/private/reify-wkt.js +0 -168
  393. package/dist/esm/private/scalars.d.ts +0 -18
  394. package/dist/esm/private/scalars.js +0 -99
  395. package/dist/esm/private/text-format.d.ts +0 -4
  396. package/dist/esm/private/util-common.d.ts +0 -2
  397. package/dist/esm/private/util-common.js +0 -234
  398. package/dist/esm/private/util.d.ts +0 -38
  399. package/dist/esm/private/util.js +0 -14
  400. package/dist/esm/proto-base64.d.ts +0 -18
  401. package/dist/esm/proto-base64.js +0 -125
  402. package/dist/esm/proto-delimited.d.ts +0 -54
  403. package/dist/esm/proto-delimited.js +0 -152
  404. package/dist/esm/proto-double.d.ts +0 -5
  405. package/dist/esm/proto-double.js +0 -26
  406. package/dist/esm/proto2.d.ts +0 -4
  407. package/dist/esm/proto2.js +0 -50
  408. package/dist/esm/proto3.d.ts +0 -4
  409. package/dist/esm/proto3.js +0 -53
  410. package/dist/esm/scalar.js +0 -78
  411. package/dist/esm/service-type.d.ts +0 -96
  412. package/dist/esm/service-type.js +0 -50
  413. package/dist/esm/to-plain-message.d.ts +0 -12
  414. package/dist/esm/to-plain-message.js +0 -70
  415. package/dist/esm/type-registry.d.ts +0 -57
  416. package/dist/esm/type-registry.js +0 -14
  417. /package/dist/cjs/{binary-format.js → desc-types.js} +0 -0
  418. /package/dist/cjs/{descriptor-set.js → json-value.js} +0 -0
  419. /package/dist/cjs/{private → reflect}/assert.d.ts +0 -0
  420. /package/dist/cjs/{private → reflect}/assert.js +0 -0
  421. /package/dist/cjs/{enum.js → types.js} +0 -0
  422. /package/dist/esm/{binary-format.js → desc-types.js} +0 -0
  423. /package/dist/esm/{enum.js → json-value.js} +0 -0
  424. /package/dist/esm/{private → reflect}/assert.d.ts +0 -0
  425. /package/dist/esm/{private → reflect}/assert.js +0 -0
  426. /package/dist/esm/{extension.js → types.js} +0 -0
@@ -1,2034 +0,0 @@
1
- "use strict";
2
- // Copyright 2021-2024 Buf Technologies, Inc.
3
- //
4
- // Licensed under the Apache License, Version 2.0 (the "License");
5
- // you may not use this file except in compliance with the License.
6
- // You may obtain a copy of the License at
7
- //
8
- // http://www.apache.org/licenses/LICENSE-2.0
9
- //
10
- // Unless required by applicable law or agreed to in writing, software
11
- // distributed under the License is distributed on an "AS IS" BASIS,
12
- // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- // See the License for the specific language governing permissions and
14
- // limitations under the License.
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.GeneratedCodeInfo_Annotation_Semantic = exports.GeneratedCodeInfo_Annotation = exports.GeneratedCodeInfo = exports.SourceCodeInfo_Location = exports.SourceCodeInfo = exports.FeatureSetDefaults_FeatureSetEditionDefault = exports.FeatureSetDefaults = exports.FeatureSet_JsonFormat = exports.FeatureSet_MessageEncoding = exports.FeatureSet_Utf8Validation = exports.FeatureSet_RepeatedFieldEncoding = exports.FeatureSet_EnumType = exports.FeatureSet_FieldPresence = exports.FeatureSet = exports.UninterpretedOption_NamePart = exports.UninterpretedOption = exports.MethodOptions_IdempotencyLevel = exports.MethodOptions = exports.ServiceOptions = exports.EnumValueOptions = exports.EnumOptions = exports.OneofOptions = exports.FieldOptions_EditionDefault = exports.FieldOptions_OptionTargetType = exports.FieldOptions_OptionRetention = exports.FieldOptions_JSType = exports.FieldOptions_CType = exports.FieldOptions = exports.MessageOptions = exports.FileOptions_OptimizeMode = exports.FileOptions = exports.MethodDescriptorProto = exports.ServiceDescriptorProto = exports.EnumValueDescriptorProto = exports.EnumDescriptorProto_EnumReservedRange = exports.EnumDescriptorProto = exports.OneofDescriptorProto = exports.FieldDescriptorProto_Label = exports.FieldDescriptorProto_Type = exports.FieldDescriptorProto = exports.ExtensionRangeOptions_Declaration = exports.ExtensionRangeOptions_VerificationState = exports.ExtensionRangeOptions = exports.DescriptorProto_ReservedRange = exports.DescriptorProto_ExtensionRange = exports.DescriptorProto = exports.FileDescriptorProto = exports.FileDescriptorSet = exports.Edition = void 0;
17
- // Author: kenton@google.com (Kenton Varda)
18
- // Based on original Protocol Buffers design by
19
- // Sanjay Ghemawat, Jeff Dean, and others.
20
- //
21
- // The messages in this file describe the definitions found in .proto files.
22
- // A valid .proto file can be translated directly to a FileDescriptorProto
23
- // without any other information (e.g. without reading its imports).
24
- // @generated by protoc-gen-es v1.9.0 with parameter "bootstrap_wkt=true,ts_nocheck=false,target=ts"
25
- // @generated from file google/protobuf/descriptor.proto (package google.protobuf, syntax proto2)
26
- /* eslint-disable */
27
- const proto2_js_1 = require("../../proto2.js");
28
- const message_js_1 = require("../../message.js");
29
- /**
30
- * The full set of known editions.
31
- *
32
- * @generated from enum google.protobuf.Edition
33
- */
34
- var Edition;
35
- (function (Edition) {
36
- /**
37
- * A placeholder for an unknown edition value.
38
- *
39
- * @generated from enum value: EDITION_UNKNOWN = 0;
40
- */
41
- Edition[Edition["EDITION_UNKNOWN"] = 0] = "EDITION_UNKNOWN";
42
- /**
43
- * Legacy syntax "editions". These pre-date editions, but behave much like
44
- * distinct editions. These can't be used to specify the edition of proto
45
- * files, but feature definitions must supply proto2/proto3 defaults for
46
- * backwards compatibility.
47
- *
48
- * @generated from enum value: EDITION_PROTO2 = 998;
49
- */
50
- Edition[Edition["EDITION_PROTO2"] = 998] = "EDITION_PROTO2";
51
- /**
52
- * @generated from enum value: EDITION_PROTO3 = 999;
53
- */
54
- Edition[Edition["EDITION_PROTO3"] = 999] = "EDITION_PROTO3";
55
- /**
56
- * Editions that have been released. The specific values are arbitrary and
57
- * should not be depended on, but they will always be time-ordered for easy
58
- * comparison.
59
- *
60
- * @generated from enum value: EDITION_2023 = 1000;
61
- */
62
- Edition[Edition["EDITION_2023"] = 1000] = "EDITION_2023";
63
- /**
64
- * @generated from enum value: EDITION_2024 = 1001;
65
- */
66
- Edition[Edition["EDITION_2024"] = 1001] = "EDITION_2024";
67
- /**
68
- * Placeholder editions for testing feature resolution. These should not be
69
- * used or relyed on outside of tests.
70
- *
71
- * @generated from enum value: EDITION_1_TEST_ONLY = 1;
72
- */
73
- Edition[Edition["EDITION_1_TEST_ONLY"] = 1] = "EDITION_1_TEST_ONLY";
74
- /**
75
- * @generated from enum value: EDITION_2_TEST_ONLY = 2;
76
- */
77
- Edition[Edition["EDITION_2_TEST_ONLY"] = 2] = "EDITION_2_TEST_ONLY";
78
- /**
79
- * @generated from enum value: EDITION_99997_TEST_ONLY = 99997;
80
- */
81
- Edition[Edition["EDITION_99997_TEST_ONLY"] = 99997] = "EDITION_99997_TEST_ONLY";
82
- /**
83
- * @generated from enum value: EDITION_99998_TEST_ONLY = 99998;
84
- */
85
- Edition[Edition["EDITION_99998_TEST_ONLY"] = 99998] = "EDITION_99998_TEST_ONLY";
86
- /**
87
- * @generated from enum value: EDITION_99999_TEST_ONLY = 99999;
88
- */
89
- Edition[Edition["EDITION_99999_TEST_ONLY"] = 99999] = "EDITION_99999_TEST_ONLY";
90
- /**
91
- * Placeholder for specifying unbounded edition support. This should only
92
- * ever be used by plugins that can expect to never require any changes to
93
- * support a new edition.
94
- *
95
- * @generated from enum value: EDITION_MAX = 2147483647;
96
- */
97
- Edition[Edition["EDITION_MAX"] = 2147483647] = "EDITION_MAX";
98
- })(Edition || (exports.Edition = Edition = {}));
99
- // Retrieve enum metadata with: proto2.getEnumType(Edition)
100
- proto2_js_1.proto2.util.setEnumType(Edition, "google.protobuf.Edition", [
101
- { no: 0, name: "EDITION_UNKNOWN" },
102
- { no: 998, name: "EDITION_PROTO2" },
103
- { no: 999, name: "EDITION_PROTO3" },
104
- { no: 1000, name: "EDITION_2023" },
105
- { no: 1001, name: "EDITION_2024" },
106
- { no: 1, name: "EDITION_1_TEST_ONLY" },
107
- { no: 2, name: "EDITION_2_TEST_ONLY" },
108
- { no: 99997, name: "EDITION_99997_TEST_ONLY" },
109
- { no: 99998, name: "EDITION_99998_TEST_ONLY" },
110
- { no: 99999, name: "EDITION_99999_TEST_ONLY" },
111
- { no: 2147483647, name: "EDITION_MAX" },
112
- ]);
113
- /**
114
- * The protocol compiler can output a FileDescriptorSet containing the .proto
115
- * files it parses.
116
- *
117
- * @generated from message google.protobuf.FileDescriptorSet
118
- */
119
- class FileDescriptorSet extends message_js_1.Message {
120
- constructor(data) {
121
- super();
122
- /**
123
- * @generated from field: repeated google.protobuf.FileDescriptorProto file = 1;
124
- */
125
- this.file = [];
126
- proto2_js_1.proto2.util.initPartial(data, this);
127
- }
128
- static fromBinary(bytes, options) {
129
- return new FileDescriptorSet().fromBinary(bytes, options);
130
- }
131
- static fromJson(jsonValue, options) {
132
- return new FileDescriptorSet().fromJson(jsonValue, options);
133
- }
134
- static fromJsonString(jsonString, options) {
135
- return new FileDescriptorSet().fromJsonString(jsonString, options);
136
- }
137
- static equals(a, b) {
138
- return proto2_js_1.proto2.util.equals(FileDescriptorSet, a, b);
139
- }
140
- }
141
- exports.FileDescriptorSet = FileDescriptorSet;
142
- FileDescriptorSet.runtime = proto2_js_1.proto2;
143
- FileDescriptorSet.typeName = "google.protobuf.FileDescriptorSet";
144
- FileDescriptorSet.fields = proto2_js_1.proto2.util.newFieldList(() => [
145
- { no: 1, name: "file", kind: "message", T: FileDescriptorProto, repeated: true },
146
- ]);
147
- /**
148
- * Describes a complete .proto file.
149
- *
150
- * @generated from message google.protobuf.FileDescriptorProto
151
- */
152
- class FileDescriptorProto extends message_js_1.Message {
153
- constructor(data) {
154
- super();
155
- /**
156
- * Names of files imported by this file.
157
- *
158
- * @generated from field: repeated string dependency = 3;
159
- */
160
- this.dependency = [];
161
- /**
162
- * Indexes of the public imported files in the dependency list above.
163
- *
164
- * @generated from field: repeated int32 public_dependency = 10;
165
- */
166
- this.publicDependency = [];
167
- /**
168
- * Indexes of the weak imported files in the dependency list.
169
- * For Google-internal migration only. Do not use.
170
- *
171
- * @generated from field: repeated int32 weak_dependency = 11;
172
- */
173
- this.weakDependency = [];
174
- /**
175
- * All top-level definitions in this file.
176
- *
177
- * @generated from field: repeated google.protobuf.DescriptorProto message_type = 4;
178
- */
179
- this.messageType = [];
180
- /**
181
- * @generated from field: repeated google.protobuf.EnumDescriptorProto enum_type = 5;
182
- */
183
- this.enumType = [];
184
- /**
185
- * @generated from field: repeated google.protobuf.ServiceDescriptorProto service = 6;
186
- */
187
- this.service = [];
188
- /**
189
- * @generated from field: repeated google.protobuf.FieldDescriptorProto extension = 7;
190
- */
191
- this.extension = [];
192
- proto2_js_1.proto2.util.initPartial(data, this);
193
- }
194
- static fromBinary(bytes, options) {
195
- return new FileDescriptorProto().fromBinary(bytes, options);
196
- }
197
- static fromJson(jsonValue, options) {
198
- return new FileDescriptorProto().fromJson(jsonValue, options);
199
- }
200
- static fromJsonString(jsonString, options) {
201
- return new FileDescriptorProto().fromJsonString(jsonString, options);
202
- }
203
- static equals(a, b) {
204
- return proto2_js_1.proto2.util.equals(FileDescriptorProto, a, b);
205
- }
206
- }
207
- exports.FileDescriptorProto = FileDescriptorProto;
208
- FileDescriptorProto.runtime = proto2_js_1.proto2;
209
- FileDescriptorProto.typeName = "google.protobuf.FileDescriptorProto";
210
- FileDescriptorProto.fields = proto2_js_1.proto2.util.newFieldList(() => [
211
- { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
212
- { no: 2, name: "package", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
213
- { no: 3, name: "dependency", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
214
- { no: 10, name: "public_dependency", kind: "scalar", T: 5 /* ScalarType.INT32 */, repeated: true },
215
- { no: 11, name: "weak_dependency", kind: "scalar", T: 5 /* ScalarType.INT32 */, repeated: true },
216
- { no: 4, name: "message_type", kind: "message", T: DescriptorProto, repeated: true },
217
- { no: 5, name: "enum_type", kind: "message", T: EnumDescriptorProto, repeated: true },
218
- { no: 6, name: "service", kind: "message", T: ServiceDescriptorProto, repeated: true },
219
- { no: 7, name: "extension", kind: "message", T: FieldDescriptorProto, repeated: true },
220
- { no: 8, name: "options", kind: "message", T: FileOptions, opt: true },
221
- { no: 9, name: "source_code_info", kind: "message", T: SourceCodeInfo, opt: true },
222
- { no: 12, name: "syntax", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
223
- { no: 14, name: "edition", kind: "enum", T: proto2_js_1.proto2.getEnumType(Edition), opt: true },
224
- ]);
225
- /**
226
- * Describes a message type.
227
- *
228
- * @generated from message google.protobuf.DescriptorProto
229
- */
230
- class DescriptorProto extends message_js_1.Message {
231
- constructor(data) {
232
- super();
233
- /**
234
- * @generated from field: repeated google.protobuf.FieldDescriptorProto field = 2;
235
- */
236
- this.field = [];
237
- /**
238
- * @generated from field: repeated google.protobuf.FieldDescriptorProto extension = 6;
239
- */
240
- this.extension = [];
241
- /**
242
- * @generated from field: repeated google.protobuf.DescriptorProto nested_type = 3;
243
- */
244
- this.nestedType = [];
245
- /**
246
- * @generated from field: repeated google.protobuf.EnumDescriptorProto enum_type = 4;
247
- */
248
- this.enumType = [];
249
- /**
250
- * @generated from field: repeated google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
251
- */
252
- this.extensionRange = [];
253
- /**
254
- * @generated from field: repeated google.protobuf.OneofDescriptorProto oneof_decl = 8;
255
- */
256
- this.oneofDecl = [];
257
- /**
258
- * @generated from field: repeated google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
259
- */
260
- this.reservedRange = [];
261
- /**
262
- * Reserved field names, which may not be used by fields in the same message.
263
- * A given name may only be reserved once.
264
- *
265
- * @generated from field: repeated string reserved_name = 10;
266
- */
267
- this.reservedName = [];
268
- proto2_js_1.proto2.util.initPartial(data, this);
269
- }
270
- static fromBinary(bytes, options) {
271
- return new DescriptorProto().fromBinary(bytes, options);
272
- }
273
- static fromJson(jsonValue, options) {
274
- return new DescriptorProto().fromJson(jsonValue, options);
275
- }
276
- static fromJsonString(jsonString, options) {
277
- return new DescriptorProto().fromJsonString(jsonString, options);
278
- }
279
- static equals(a, b) {
280
- return proto2_js_1.proto2.util.equals(DescriptorProto, a, b);
281
- }
282
- }
283
- exports.DescriptorProto = DescriptorProto;
284
- DescriptorProto.runtime = proto2_js_1.proto2;
285
- DescriptorProto.typeName = "google.protobuf.DescriptorProto";
286
- DescriptorProto.fields = proto2_js_1.proto2.util.newFieldList(() => [
287
- { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
288
- { no: 2, name: "field", kind: "message", T: FieldDescriptorProto, repeated: true },
289
- { no: 6, name: "extension", kind: "message", T: FieldDescriptorProto, repeated: true },
290
- { no: 3, name: "nested_type", kind: "message", T: DescriptorProto, repeated: true },
291
- { no: 4, name: "enum_type", kind: "message", T: EnumDescriptorProto, repeated: true },
292
- { no: 5, name: "extension_range", kind: "message", T: DescriptorProto_ExtensionRange, repeated: true },
293
- { no: 8, name: "oneof_decl", kind: "message", T: OneofDescriptorProto, repeated: true },
294
- { no: 7, name: "options", kind: "message", T: MessageOptions, opt: true },
295
- { no: 9, name: "reserved_range", kind: "message", T: DescriptorProto_ReservedRange, repeated: true },
296
- { no: 10, name: "reserved_name", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
297
- ]);
298
- /**
299
- * @generated from message google.protobuf.DescriptorProto.ExtensionRange
300
- */
301
- class DescriptorProto_ExtensionRange extends message_js_1.Message {
302
- constructor(data) {
303
- super();
304
- proto2_js_1.proto2.util.initPartial(data, this);
305
- }
306
- static fromBinary(bytes, options) {
307
- return new DescriptorProto_ExtensionRange().fromBinary(bytes, options);
308
- }
309
- static fromJson(jsonValue, options) {
310
- return new DescriptorProto_ExtensionRange().fromJson(jsonValue, options);
311
- }
312
- static fromJsonString(jsonString, options) {
313
- return new DescriptorProto_ExtensionRange().fromJsonString(jsonString, options);
314
- }
315
- static equals(a, b) {
316
- return proto2_js_1.proto2.util.equals(DescriptorProto_ExtensionRange, a, b);
317
- }
318
- }
319
- exports.DescriptorProto_ExtensionRange = DescriptorProto_ExtensionRange;
320
- DescriptorProto_ExtensionRange.runtime = proto2_js_1.proto2;
321
- DescriptorProto_ExtensionRange.typeName = "google.protobuf.DescriptorProto.ExtensionRange";
322
- DescriptorProto_ExtensionRange.fields = proto2_js_1.proto2.util.newFieldList(() => [
323
- { no: 1, name: "start", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
324
- { no: 2, name: "end", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
325
- { no: 3, name: "options", kind: "message", T: ExtensionRangeOptions, opt: true },
326
- ]);
327
- /**
328
- * Range of reserved tag numbers. Reserved tag numbers may not be used by
329
- * fields or extension ranges in the same message. Reserved ranges may
330
- * not overlap.
331
- *
332
- * @generated from message google.protobuf.DescriptorProto.ReservedRange
333
- */
334
- class DescriptorProto_ReservedRange extends message_js_1.Message {
335
- constructor(data) {
336
- super();
337
- proto2_js_1.proto2.util.initPartial(data, this);
338
- }
339
- static fromBinary(bytes, options) {
340
- return new DescriptorProto_ReservedRange().fromBinary(bytes, options);
341
- }
342
- static fromJson(jsonValue, options) {
343
- return new DescriptorProto_ReservedRange().fromJson(jsonValue, options);
344
- }
345
- static fromJsonString(jsonString, options) {
346
- return new DescriptorProto_ReservedRange().fromJsonString(jsonString, options);
347
- }
348
- static equals(a, b) {
349
- return proto2_js_1.proto2.util.equals(DescriptorProto_ReservedRange, a, b);
350
- }
351
- }
352
- exports.DescriptorProto_ReservedRange = DescriptorProto_ReservedRange;
353
- DescriptorProto_ReservedRange.runtime = proto2_js_1.proto2;
354
- DescriptorProto_ReservedRange.typeName = "google.protobuf.DescriptorProto.ReservedRange";
355
- DescriptorProto_ReservedRange.fields = proto2_js_1.proto2.util.newFieldList(() => [
356
- { no: 1, name: "start", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
357
- { no: 2, name: "end", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
358
- ]);
359
- /**
360
- * @generated from message google.protobuf.ExtensionRangeOptions
361
- */
362
- class ExtensionRangeOptions extends message_js_1.Message {
363
- constructor(data) {
364
- super();
365
- /**
366
- * The parser stores options it doesn't recognize here. See above.
367
- *
368
- * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
369
- */
370
- this.uninterpretedOption = [];
371
- /**
372
- * For external users: DO NOT USE. We are in the process of open sourcing
373
- * extension declaration and executing internal cleanups before it can be
374
- * used externally.
375
- *
376
- * @generated from field: repeated google.protobuf.ExtensionRangeOptions.Declaration declaration = 2;
377
- */
378
- this.declaration = [];
379
- proto2_js_1.proto2.util.initPartial(data, this);
380
- }
381
- static fromBinary(bytes, options) {
382
- return new ExtensionRangeOptions().fromBinary(bytes, options);
383
- }
384
- static fromJson(jsonValue, options) {
385
- return new ExtensionRangeOptions().fromJson(jsonValue, options);
386
- }
387
- static fromJsonString(jsonString, options) {
388
- return new ExtensionRangeOptions().fromJsonString(jsonString, options);
389
- }
390
- static equals(a, b) {
391
- return proto2_js_1.proto2.util.equals(ExtensionRangeOptions, a, b);
392
- }
393
- }
394
- exports.ExtensionRangeOptions = ExtensionRangeOptions;
395
- ExtensionRangeOptions.runtime = proto2_js_1.proto2;
396
- ExtensionRangeOptions.typeName = "google.protobuf.ExtensionRangeOptions";
397
- ExtensionRangeOptions.fields = proto2_js_1.proto2.util.newFieldList(() => [
398
- { no: 999, name: "uninterpreted_option", kind: "message", T: UninterpretedOption, repeated: true },
399
- { no: 2, name: "declaration", kind: "message", T: ExtensionRangeOptions_Declaration, repeated: true },
400
- { no: 50, name: "features", kind: "message", T: FeatureSet, opt: true },
401
- { no: 3, name: "verification", kind: "enum", T: proto2_js_1.proto2.getEnumType(ExtensionRangeOptions_VerificationState), opt: true, default: ExtensionRangeOptions_VerificationState.UNVERIFIED },
402
- ]);
403
- /**
404
- * The verification state of the extension range.
405
- *
406
- * @generated from enum google.protobuf.ExtensionRangeOptions.VerificationState
407
- */
408
- var ExtensionRangeOptions_VerificationState;
409
- (function (ExtensionRangeOptions_VerificationState) {
410
- /**
411
- * All the extensions of the range must be declared.
412
- *
413
- * @generated from enum value: DECLARATION = 0;
414
- */
415
- ExtensionRangeOptions_VerificationState[ExtensionRangeOptions_VerificationState["DECLARATION"] = 0] = "DECLARATION";
416
- /**
417
- * @generated from enum value: UNVERIFIED = 1;
418
- */
419
- ExtensionRangeOptions_VerificationState[ExtensionRangeOptions_VerificationState["UNVERIFIED"] = 1] = "UNVERIFIED";
420
- })(ExtensionRangeOptions_VerificationState || (exports.ExtensionRangeOptions_VerificationState = ExtensionRangeOptions_VerificationState = {}));
421
- // Retrieve enum metadata with: proto2.getEnumType(ExtensionRangeOptions_VerificationState)
422
- proto2_js_1.proto2.util.setEnumType(ExtensionRangeOptions_VerificationState, "google.protobuf.ExtensionRangeOptions.VerificationState", [
423
- { no: 0, name: "DECLARATION" },
424
- { no: 1, name: "UNVERIFIED" },
425
- ]);
426
- /**
427
- * @generated from message google.protobuf.ExtensionRangeOptions.Declaration
428
- */
429
- class ExtensionRangeOptions_Declaration extends message_js_1.Message {
430
- constructor(data) {
431
- super();
432
- proto2_js_1.proto2.util.initPartial(data, this);
433
- }
434
- static fromBinary(bytes, options) {
435
- return new ExtensionRangeOptions_Declaration().fromBinary(bytes, options);
436
- }
437
- static fromJson(jsonValue, options) {
438
- return new ExtensionRangeOptions_Declaration().fromJson(jsonValue, options);
439
- }
440
- static fromJsonString(jsonString, options) {
441
- return new ExtensionRangeOptions_Declaration().fromJsonString(jsonString, options);
442
- }
443
- static equals(a, b) {
444
- return proto2_js_1.proto2.util.equals(ExtensionRangeOptions_Declaration, a, b);
445
- }
446
- }
447
- exports.ExtensionRangeOptions_Declaration = ExtensionRangeOptions_Declaration;
448
- ExtensionRangeOptions_Declaration.runtime = proto2_js_1.proto2;
449
- ExtensionRangeOptions_Declaration.typeName = "google.protobuf.ExtensionRangeOptions.Declaration";
450
- ExtensionRangeOptions_Declaration.fields = proto2_js_1.proto2.util.newFieldList(() => [
451
- { no: 1, name: "number", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
452
- { no: 2, name: "full_name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
453
- { no: 3, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
454
- { no: 5, name: "reserved", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
455
- { no: 6, name: "repeated", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
456
- ]);
457
- /**
458
- * Describes a field within a message.
459
- *
460
- * @generated from message google.protobuf.FieldDescriptorProto
461
- */
462
- class FieldDescriptorProto extends message_js_1.Message {
463
- constructor(data) {
464
- super();
465
- proto2_js_1.proto2.util.initPartial(data, this);
466
- }
467
- static fromBinary(bytes, options) {
468
- return new FieldDescriptorProto().fromBinary(bytes, options);
469
- }
470
- static fromJson(jsonValue, options) {
471
- return new FieldDescriptorProto().fromJson(jsonValue, options);
472
- }
473
- static fromJsonString(jsonString, options) {
474
- return new FieldDescriptorProto().fromJsonString(jsonString, options);
475
- }
476
- static equals(a, b) {
477
- return proto2_js_1.proto2.util.equals(FieldDescriptorProto, a, b);
478
- }
479
- }
480
- exports.FieldDescriptorProto = FieldDescriptorProto;
481
- FieldDescriptorProto.runtime = proto2_js_1.proto2;
482
- FieldDescriptorProto.typeName = "google.protobuf.FieldDescriptorProto";
483
- FieldDescriptorProto.fields = proto2_js_1.proto2.util.newFieldList(() => [
484
- { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
485
- { no: 3, name: "number", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
486
- { no: 4, name: "label", kind: "enum", T: proto2_js_1.proto2.getEnumType(FieldDescriptorProto_Label), opt: true },
487
- { no: 5, name: "type", kind: "enum", T: proto2_js_1.proto2.getEnumType(FieldDescriptorProto_Type), opt: true },
488
- { no: 6, name: "type_name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
489
- { no: 2, name: "extendee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
490
- { no: 7, name: "default_value", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
491
- { no: 9, name: "oneof_index", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
492
- { no: 10, name: "json_name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
493
- { no: 8, name: "options", kind: "message", T: FieldOptions, opt: true },
494
- { no: 17, name: "proto3_optional", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
495
- ]);
496
- /**
497
- * @generated from enum google.protobuf.FieldDescriptorProto.Type
498
- */
499
- var FieldDescriptorProto_Type;
500
- (function (FieldDescriptorProto_Type) {
501
- /**
502
- * 0 is reserved for errors.
503
- * Order is weird for historical reasons.
504
- *
505
- * @generated from enum value: TYPE_DOUBLE = 1;
506
- */
507
- FieldDescriptorProto_Type[FieldDescriptorProto_Type["DOUBLE"] = 1] = "DOUBLE";
508
- /**
509
- * @generated from enum value: TYPE_FLOAT = 2;
510
- */
511
- FieldDescriptorProto_Type[FieldDescriptorProto_Type["FLOAT"] = 2] = "FLOAT";
512
- /**
513
- * Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if
514
- * negative values are likely.
515
- *
516
- * @generated from enum value: TYPE_INT64 = 3;
517
- */
518
- FieldDescriptorProto_Type[FieldDescriptorProto_Type["INT64"] = 3] = "INT64";
519
- /**
520
- * @generated from enum value: TYPE_UINT64 = 4;
521
- */
522
- FieldDescriptorProto_Type[FieldDescriptorProto_Type["UINT64"] = 4] = "UINT64";
523
- /**
524
- * Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if
525
- * negative values are likely.
526
- *
527
- * @generated from enum value: TYPE_INT32 = 5;
528
- */
529
- FieldDescriptorProto_Type[FieldDescriptorProto_Type["INT32"] = 5] = "INT32";
530
- /**
531
- * @generated from enum value: TYPE_FIXED64 = 6;
532
- */
533
- FieldDescriptorProto_Type[FieldDescriptorProto_Type["FIXED64"] = 6] = "FIXED64";
534
- /**
535
- * @generated from enum value: TYPE_FIXED32 = 7;
536
- */
537
- FieldDescriptorProto_Type[FieldDescriptorProto_Type["FIXED32"] = 7] = "FIXED32";
538
- /**
539
- * @generated from enum value: TYPE_BOOL = 8;
540
- */
541
- FieldDescriptorProto_Type[FieldDescriptorProto_Type["BOOL"] = 8] = "BOOL";
542
- /**
543
- * @generated from enum value: TYPE_STRING = 9;
544
- */
545
- FieldDescriptorProto_Type[FieldDescriptorProto_Type["STRING"] = 9] = "STRING";
546
- /**
547
- * Tag-delimited aggregate.
548
- * Group type is deprecated and not supported after google.protobuf. However, Proto3
549
- * implementations should still be able to parse the group wire format and
550
- * treat group fields as unknown fields. In Editions, the group wire format
551
- * can be enabled via the `message_encoding` feature.
552
- *
553
- * @generated from enum value: TYPE_GROUP = 10;
554
- */
555
- FieldDescriptorProto_Type[FieldDescriptorProto_Type["GROUP"] = 10] = "GROUP";
556
- /**
557
- * Length-delimited aggregate.
558
- *
559
- * @generated from enum value: TYPE_MESSAGE = 11;
560
- */
561
- FieldDescriptorProto_Type[FieldDescriptorProto_Type["MESSAGE"] = 11] = "MESSAGE";
562
- /**
563
- * New in version 2.
564
- *
565
- * @generated from enum value: TYPE_BYTES = 12;
566
- */
567
- FieldDescriptorProto_Type[FieldDescriptorProto_Type["BYTES"] = 12] = "BYTES";
568
- /**
569
- * @generated from enum value: TYPE_UINT32 = 13;
570
- */
571
- FieldDescriptorProto_Type[FieldDescriptorProto_Type["UINT32"] = 13] = "UINT32";
572
- /**
573
- * @generated from enum value: TYPE_ENUM = 14;
574
- */
575
- FieldDescriptorProto_Type[FieldDescriptorProto_Type["ENUM"] = 14] = "ENUM";
576
- /**
577
- * @generated from enum value: TYPE_SFIXED32 = 15;
578
- */
579
- FieldDescriptorProto_Type[FieldDescriptorProto_Type["SFIXED32"] = 15] = "SFIXED32";
580
- /**
581
- * @generated from enum value: TYPE_SFIXED64 = 16;
582
- */
583
- FieldDescriptorProto_Type[FieldDescriptorProto_Type["SFIXED64"] = 16] = "SFIXED64";
584
- /**
585
- * Uses ZigZag encoding.
586
- *
587
- * @generated from enum value: TYPE_SINT32 = 17;
588
- */
589
- FieldDescriptorProto_Type[FieldDescriptorProto_Type["SINT32"] = 17] = "SINT32";
590
- /**
591
- * Uses ZigZag encoding.
592
- *
593
- * @generated from enum value: TYPE_SINT64 = 18;
594
- */
595
- FieldDescriptorProto_Type[FieldDescriptorProto_Type["SINT64"] = 18] = "SINT64";
596
- })(FieldDescriptorProto_Type || (exports.FieldDescriptorProto_Type = FieldDescriptorProto_Type = {}));
597
- // Retrieve enum metadata with: proto2.getEnumType(FieldDescriptorProto_Type)
598
- proto2_js_1.proto2.util.setEnumType(FieldDescriptorProto_Type, "google.protobuf.FieldDescriptorProto.Type", [
599
- { no: 1, name: "TYPE_DOUBLE" },
600
- { no: 2, name: "TYPE_FLOAT" },
601
- { no: 3, name: "TYPE_INT64" },
602
- { no: 4, name: "TYPE_UINT64" },
603
- { no: 5, name: "TYPE_INT32" },
604
- { no: 6, name: "TYPE_FIXED64" },
605
- { no: 7, name: "TYPE_FIXED32" },
606
- { no: 8, name: "TYPE_BOOL" },
607
- { no: 9, name: "TYPE_STRING" },
608
- { no: 10, name: "TYPE_GROUP" },
609
- { no: 11, name: "TYPE_MESSAGE" },
610
- { no: 12, name: "TYPE_BYTES" },
611
- { no: 13, name: "TYPE_UINT32" },
612
- { no: 14, name: "TYPE_ENUM" },
613
- { no: 15, name: "TYPE_SFIXED32" },
614
- { no: 16, name: "TYPE_SFIXED64" },
615
- { no: 17, name: "TYPE_SINT32" },
616
- { no: 18, name: "TYPE_SINT64" },
617
- ]);
618
- /**
619
- * @generated from enum google.protobuf.FieldDescriptorProto.Label
620
- */
621
- var FieldDescriptorProto_Label;
622
- (function (FieldDescriptorProto_Label) {
623
- /**
624
- * 0 is reserved for errors
625
- *
626
- * @generated from enum value: LABEL_OPTIONAL = 1;
627
- */
628
- FieldDescriptorProto_Label[FieldDescriptorProto_Label["OPTIONAL"] = 1] = "OPTIONAL";
629
- /**
630
- * @generated from enum value: LABEL_REPEATED = 3;
631
- */
632
- FieldDescriptorProto_Label[FieldDescriptorProto_Label["REPEATED"] = 3] = "REPEATED";
633
- /**
634
- * The required label is only allowed in google.protobuf. In proto3 and Editions
635
- * it's explicitly prohibited. In Editions, the `field_presence` feature
636
- * can be used to get this behavior.
637
- *
638
- * @generated from enum value: LABEL_REQUIRED = 2;
639
- */
640
- FieldDescriptorProto_Label[FieldDescriptorProto_Label["REQUIRED"] = 2] = "REQUIRED";
641
- })(FieldDescriptorProto_Label || (exports.FieldDescriptorProto_Label = FieldDescriptorProto_Label = {}));
642
- // Retrieve enum metadata with: proto2.getEnumType(FieldDescriptorProto_Label)
643
- proto2_js_1.proto2.util.setEnumType(FieldDescriptorProto_Label, "google.protobuf.FieldDescriptorProto.Label", [
644
- { no: 1, name: "LABEL_OPTIONAL" },
645
- { no: 3, name: "LABEL_REPEATED" },
646
- { no: 2, name: "LABEL_REQUIRED" },
647
- ]);
648
- /**
649
- * Describes a oneof.
650
- *
651
- * @generated from message google.protobuf.OneofDescriptorProto
652
- */
653
- class OneofDescriptorProto extends message_js_1.Message {
654
- constructor(data) {
655
- super();
656
- proto2_js_1.proto2.util.initPartial(data, this);
657
- }
658
- static fromBinary(bytes, options) {
659
- return new OneofDescriptorProto().fromBinary(bytes, options);
660
- }
661
- static fromJson(jsonValue, options) {
662
- return new OneofDescriptorProto().fromJson(jsonValue, options);
663
- }
664
- static fromJsonString(jsonString, options) {
665
- return new OneofDescriptorProto().fromJsonString(jsonString, options);
666
- }
667
- static equals(a, b) {
668
- return proto2_js_1.proto2.util.equals(OneofDescriptorProto, a, b);
669
- }
670
- }
671
- exports.OneofDescriptorProto = OneofDescriptorProto;
672
- OneofDescriptorProto.runtime = proto2_js_1.proto2;
673
- OneofDescriptorProto.typeName = "google.protobuf.OneofDescriptorProto";
674
- OneofDescriptorProto.fields = proto2_js_1.proto2.util.newFieldList(() => [
675
- { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
676
- { no: 2, name: "options", kind: "message", T: OneofOptions, opt: true },
677
- ]);
678
- /**
679
- * Describes an enum type.
680
- *
681
- * @generated from message google.protobuf.EnumDescriptorProto
682
- */
683
- class EnumDescriptorProto extends message_js_1.Message {
684
- constructor(data) {
685
- super();
686
- /**
687
- * @generated from field: repeated google.protobuf.EnumValueDescriptorProto value = 2;
688
- */
689
- this.value = [];
690
- /**
691
- * Range of reserved numeric values. Reserved numeric values may not be used
692
- * by enum values in the same enum declaration. Reserved ranges may not
693
- * overlap.
694
- *
695
- * @generated from field: repeated google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;
696
- */
697
- this.reservedRange = [];
698
- /**
699
- * Reserved enum value names, which may not be reused. A given name may only
700
- * be reserved once.
701
- *
702
- * @generated from field: repeated string reserved_name = 5;
703
- */
704
- this.reservedName = [];
705
- proto2_js_1.proto2.util.initPartial(data, this);
706
- }
707
- static fromBinary(bytes, options) {
708
- return new EnumDescriptorProto().fromBinary(bytes, options);
709
- }
710
- static fromJson(jsonValue, options) {
711
- return new EnumDescriptorProto().fromJson(jsonValue, options);
712
- }
713
- static fromJsonString(jsonString, options) {
714
- return new EnumDescriptorProto().fromJsonString(jsonString, options);
715
- }
716
- static equals(a, b) {
717
- return proto2_js_1.proto2.util.equals(EnumDescriptorProto, a, b);
718
- }
719
- }
720
- exports.EnumDescriptorProto = EnumDescriptorProto;
721
- EnumDescriptorProto.runtime = proto2_js_1.proto2;
722
- EnumDescriptorProto.typeName = "google.protobuf.EnumDescriptorProto";
723
- EnumDescriptorProto.fields = proto2_js_1.proto2.util.newFieldList(() => [
724
- { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
725
- { no: 2, name: "value", kind: "message", T: EnumValueDescriptorProto, repeated: true },
726
- { no: 3, name: "options", kind: "message", T: EnumOptions, opt: true },
727
- { no: 4, name: "reserved_range", kind: "message", T: EnumDescriptorProto_EnumReservedRange, repeated: true },
728
- { no: 5, name: "reserved_name", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
729
- ]);
730
- /**
731
- * Range of reserved numeric values. Reserved values may not be used by
732
- * entries in the same enum. Reserved ranges may not overlap.
733
- *
734
- * Note that this is distinct from DescriptorProto.ReservedRange in that it
735
- * is inclusive such that it can appropriately represent the entire int32
736
- * domain.
737
- *
738
- * @generated from message google.protobuf.EnumDescriptorProto.EnumReservedRange
739
- */
740
- class EnumDescriptorProto_EnumReservedRange extends message_js_1.Message {
741
- constructor(data) {
742
- super();
743
- proto2_js_1.proto2.util.initPartial(data, this);
744
- }
745
- static fromBinary(bytes, options) {
746
- return new EnumDescriptorProto_EnumReservedRange().fromBinary(bytes, options);
747
- }
748
- static fromJson(jsonValue, options) {
749
- return new EnumDescriptorProto_EnumReservedRange().fromJson(jsonValue, options);
750
- }
751
- static fromJsonString(jsonString, options) {
752
- return new EnumDescriptorProto_EnumReservedRange().fromJsonString(jsonString, options);
753
- }
754
- static equals(a, b) {
755
- return proto2_js_1.proto2.util.equals(EnumDescriptorProto_EnumReservedRange, a, b);
756
- }
757
- }
758
- exports.EnumDescriptorProto_EnumReservedRange = EnumDescriptorProto_EnumReservedRange;
759
- EnumDescriptorProto_EnumReservedRange.runtime = proto2_js_1.proto2;
760
- EnumDescriptorProto_EnumReservedRange.typeName = "google.protobuf.EnumDescriptorProto.EnumReservedRange";
761
- EnumDescriptorProto_EnumReservedRange.fields = proto2_js_1.proto2.util.newFieldList(() => [
762
- { no: 1, name: "start", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
763
- { no: 2, name: "end", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
764
- ]);
765
- /**
766
- * Describes a value within an enum.
767
- *
768
- * @generated from message google.protobuf.EnumValueDescriptorProto
769
- */
770
- class EnumValueDescriptorProto extends message_js_1.Message {
771
- constructor(data) {
772
- super();
773
- proto2_js_1.proto2.util.initPartial(data, this);
774
- }
775
- static fromBinary(bytes, options) {
776
- return new EnumValueDescriptorProto().fromBinary(bytes, options);
777
- }
778
- static fromJson(jsonValue, options) {
779
- return new EnumValueDescriptorProto().fromJson(jsonValue, options);
780
- }
781
- static fromJsonString(jsonString, options) {
782
- return new EnumValueDescriptorProto().fromJsonString(jsonString, options);
783
- }
784
- static equals(a, b) {
785
- return proto2_js_1.proto2.util.equals(EnumValueDescriptorProto, a, b);
786
- }
787
- }
788
- exports.EnumValueDescriptorProto = EnumValueDescriptorProto;
789
- EnumValueDescriptorProto.runtime = proto2_js_1.proto2;
790
- EnumValueDescriptorProto.typeName = "google.protobuf.EnumValueDescriptorProto";
791
- EnumValueDescriptorProto.fields = proto2_js_1.proto2.util.newFieldList(() => [
792
- { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
793
- { no: 2, name: "number", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
794
- { no: 3, name: "options", kind: "message", T: EnumValueOptions, opt: true },
795
- ]);
796
- /**
797
- * Describes a service.
798
- *
799
- * @generated from message google.protobuf.ServiceDescriptorProto
800
- */
801
- class ServiceDescriptorProto extends message_js_1.Message {
802
- constructor(data) {
803
- super();
804
- /**
805
- * @generated from field: repeated google.protobuf.MethodDescriptorProto method = 2;
806
- */
807
- this.method = [];
808
- proto2_js_1.proto2.util.initPartial(data, this);
809
- }
810
- static fromBinary(bytes, options) {
811
- return new ServiceDescriptorProto().fromBinary(bytes, options);
812
- }
813
- static fromJson(jsonValue, options) {
814
- return new ServiceDescriptorProto().fromJson(jsonValue, options);
815
- }
816
- static fromJsonString(jsonString, options) {
817
- return new ServiceDescriptorProto().fromJsonString(jsonString, options);
818
- }
819
- static equals(a, b) {
820
- return proto2_js_1.proto2.util.equals(ServiceDescriptorProto, a, b);
821
- }
822
- }
823
- exports.ServiceDescriptorProto = ServiceDescriptorProto;
824
- ServiceDescriptorProto.runtime = proto2_js_1.proto2;
825
- ServiceDescriptorProto.typeName = "google.protobuf.ServiceDescriptorProto";
826
- ServiceDescriptorProto.fields = proto2_js_1.proto2.util.newFieldList(() => [
827
- { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
828
- { no: 2, name: "method", kind: "message", T: MethodDescriptorProto, repeated: true },
829
- { no: 3, name: "options", kind: "message", T: ServiceOptions, opt: true },
830
- ]);
831
- /**
832
- * Describes a method of a service.
833
- *
834
- * @generated from message google.protobuf.MethodDescriptorProto
835
- */
836
- class MethodDescriptorProto extends message_js_1.Message {
837
- constructor(data) {
838
- super();
839
- proto2_js_1.proto2.util.initPartial(data, this);
840
- }
841
- static fromBinary(bytes, options) {
842
- return new MethodDescriptorProto().fromBinary(bytes, options);
843
- }
844
- static fromJson(jsonValue, options) {
845
- return new MethodDescriptorProto().fromJson(jsonValue, options);
846
- }
847
- static fromJsonString(jsonString, options) {
848
- return new MethodDescriptorProto().fromJsonString(jsonString, options);
849
- }
850
- static equals(a, b) {
851
- return proto2_js_1.proto2.util.equals(MethodDescriptorProto, a, b);
852
- }
853
- }
854
- exports.MethodDescriptorProto = MethodDescriptorProto;
855
- MethodDescriptorProto.runtime = proto2_js_1.proto2;
856
- MethodDescriptorProto.typeName = "google.protobuf.MethodDescriptorProto";
857
- MethodDescriptorProto.fields = proto2_js_1.proto2.util.newFieldList(() => [
858
- { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
859
- { no: 2, name: "input_type", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
860
- { no: 3, name: "output_type", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
861
- { no: 4, name: "options", kind: "message", T: MethodOptions, opt: true },
862
- { no: 5, name: "client_streaming", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
863
- { no: 6, name: "server_streaming", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
864
- ]);
865
- /**
866
- * @generated from message google.protobuf.FileOptions
867
- */
868
- class FileOptions extends message_js_1.Message {
869
- constructor(data) {
870
- super();
871
- /**
872
- * The parser stores options it doesn't recognize here.
873
- * See the documentation for the "Options" section above.
874
- *
875
- * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
876
- */
877
- this.uninterpretedOption = [];
878
- proto2_js_1.proto2.util.initPartial(data, this);
879
- }
880
- static fromBinary(bytes, options) {
881
- return new FileOptions().fromBinary(bytes, options);
882
- }
883
- static fromJson(jsonValue, options) {
884
- return new FileOptions().fromJson(jsonValue, options);
885
- }
886
- static fromJsonString(jsonString, options) {
887
- return new FileOptions().fromJsonString(jsonString, options);
888
- }
889
- static equals(a, b) {
890
- return proto2_js_1.proto2.util.equals(FileOptions, a, b);
891
- }
892
- }
893
- exports.FileOptions = FileOptions;
894
- FileOptions.runtime = proto2_js_1.proto2;
895
- FileOptions.typeName = "google.protobuf.FileOptions";
896
- FileOptions.fields = proto2_js_1.proto2.util.newFieldList(() => [
897
- { no: 1, name: "java_package", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
898
- { no: 8, name: "java_outer_classname", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
899
- { no: 10, name: "java_multiple_files", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
900
- { no: 20, name: "java_generate_equals_and_hash", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
901
- { no: 27, name: "java_string_check_utf8", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
902
- { no: 9, name: "optimize_for", kind: "enum", T: proto2_js_1.proto2.getEnumType(FileOptions_OptimizeMode), opt: true, default: FileOptions_OptimizeMode.SPEED },
903
- { no: 11, name: "go_package", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
904
- { no: 16, name: "cc_generic_services", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
905
- { no: 17, name: "java_generic_services", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
906
- { no: 18, name: "py_generic_services", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
907
- { no: 23, name: "deprecated", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
908
- { no: 31, name: "cc_enable_arenas", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: true },
909
- { no: 36, name: "objc_class_prefix", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
910
- { no: 37, name: "csharp_namespace", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
911
- { no: 39, name: "swift_prefix", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
912
- { no: 40, name: "php_class_prefix", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
913
- { no: 41, name: "php_namespace", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
914
- { no: 44, name: "php_metadata_namespace", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
915
- { no: 45, name: "ruby_package", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
916
- { no: 50, name: "features", kind: "message", T: FeatureSet, opt: true },
917
- { no: 999, name: "uninterpreted_option", kind: "message", T: UninterpretedOption, repeated: true },
918
- ]);
919
- /**
920
- * Generated classes can be optimized for speed or code size.
921
- *
922
- * @generated from enum google.protobuf.FileOptions.OptimizeMode
923
- */
924
- var FileOptions_OptimizeMode;
925
- (function (FileOptions_OptimizeMode) {
926
- /**
927
- * Generate complete code for parsing, serialization,
928
- *
929
- * @generated from enum value: SPEED = 1;
930
- */
931
- FileOptions_OptimizeMode[FileOptions_OptimizeMode["SPEED"] = 1] = "SPEED";
932
- /**
933
- * etc.
934
- *
935
- * Use ReflectionOps to implement these methods.
936
- *
937
- * @generated from enum value: CODE_SIZE = 2;
938
- */
939
- FileOptions_OptimizeMode[FileOptions_OptimizeMode["CODE_SIZE"] = 2] = "CODE_SIZE";
940
- /**
941
- * Generate code using MessageLite and the lite runtime.
942
- *
943
- * @generated from enum value: LITE_RUNTIME = 3;
944
- */
945
- FileOptions_OptimizeMode[FileOptions_OptimizeMode["LITE_RUNTIME"] = 3] = "LITE_RUNTIME";
946
- })(FileOptions_OptimizeMode || (exports.FileOptions_OptimizeMode = FileOptions_OptimizeMode = {}));
947
- // Retrieve enum metadata with: proto2.getEnumType(FileOptions_OptimizeMode)
948
- proto2_js_1.proto2.util.setEnumType(FileOptions_OptimizeMode, "google.protobuf.FileOptions.OptimizeMode", [
949
- { no: 1, name: "SPEED" },
950
- { no: 2, name: "CODE_SIZE" },
951
- { no: 3, name: "LITE_RUNTIME" },
952
- ]);
953
- /**
954
- * @generated from message google.protobuf.MessageOptions
955
- */
956
- class MessageOptions extends message_js_1.Message {
957
- constructor(data) {
958
- super();
959
- /**
960
- * The parser stores options it doesn't recognize here. See above.
961
- *
962
- * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
963
- */
964
- this.uninterpretedOption = [];
965
- proto2_js_1.proto2.util.initPartial(data, this);
966
- }
967
- static fromBinary(bytes, options) {
968
- return new MessageOptions().fromBinary(bytes, options);
969
- }
970
- static fromJson(jsonValue, options) {
971
- return new MessageOptions().fromJson(jsonValue, options);
972
- }
973
- static fromJsonString(jsonString, options) {
974
- return new MessageOptions().fromJsonString(jsonString, options);
975
- }
976
- static equals(a, b) {
977
- return proto2_js_1.proto2.util.equals(MessageOptions, a, b);
978
- }
979
- }
980
- exports.MessageOptions = MessageOptions;
981
- MessageOptions.runtime = proto2_js_1.proto2;
982
- MessageOptions.typeName = "google.protobuf.MessageOptions";
983
- MessageOptions.fields = proto2_js_1.proto2.util.newFieldList(() => [
984
- { no: 1, name: "message_set_wire_format", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
985
- { no: 2, name: "no_standard_descriptor_accessor", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
986
- { no: 3, name: "deprecated", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
987
- { no: 7, name: "map_entry", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
988
- { no: 11, name: "deprecated_legacy_json_field_conflicts", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
989
- { no: 12, name: "features", kind: "message", T: FeatureSet, opt: true },
990
- { no: 999, name: "uninterpreted_option", kind: "message", T: UninterpretedOption, repeated: true },
991
- ]);
992
- /**
993
- * @generated from message google.protobuf.FieldOptions
994
- */
995
- class FieldOptions extends message_js_1.Message {
996
- constructor(data) {
997
- super();
998
- /**
999
- * @generated from field: repeated google.protobuf.FieldOptions.OptionTargetType targets = 19;
1000
- */
1001
- this.targets = [];
1002
- /**
1003
- * @generated from field: repeated google.protobuf.FieldOptions.EditionDefault edition_defaults = 20;
1004
- */
1005
- this.editionDefaults = [];
1006
- /**
1007
- * The parser stores options it doesn't recognize here. See above.
1008
- *
1009
- * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
1010
- */
1011
- this.uninterpretedOption = [];
1012
- proto2_js_1.proto2.util.initPartial(data, this);
1013
- }
1014
- static fromBinary(bytes, options) {
1015
- return new FieldOptions().fromBinary(bytes, options);
1016
- }
1017
- static fromJson(jsonValue, options) {
1018
- return new FieldOptions().fromJson(jsonValue, options);
1019
- }
1020
- static fromJsonString(jsonString, options) {
1021
- return new FieldOptions().fromJsonString(jsonString, options);
1022
- }
1023
- static equals(a, b) {
1024
- return proto2_js_1.proto2.util.equals(FieldOptions, a, b);
1025
- }
1026
- }
1027
- exports.FieldOptions = FieldOptions;
1028
- FieldOptions.runtime = proto2_js_1.proto2;
1029
- FieldOptions.typeName = "google.protobuf.FieldOptions";
1030
- FieldOptions.fields = proto2_js_1.proto2.util.newFieldList(() => [
1031
- { no: 1, name: "ctype", kind: "enum", T: proto2_js_1.proto2.getEnumType(FieldOptions_CType), opt: true, default: FieldOptions_CType.STRING },
1032
- { no: 2, name: "packed", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
1033
- { no: 6, name: "jstype", kind: "enum", T: proto2_js_1.proto2.getEnumType(FieldOptions_JSType), opt: true, default: FieldOptions_JSType.JS_NORMAL },
1034
- { no: 5, name: "lazy", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
1035
- { no: 15, name: "unverified_lazy", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
1036
- { no: 3, name: "deprecated", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
1037
- { no: 10, name: "weak", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
1038
- { no: 16, name: "debug_redact", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
1039
- { no: 17, name: "retention", kind: "enum", T: proto2_js_1.proto2.getEnumType(FieldOptions_OptionRetention), opt: true },
1040
- { no: 19, name: "targets", kind: "enum", T: proto2_js_1.proto2.getEnumType(FieldOptions_OptionTargetType), repeated: true },
1041
- { no: 20, name: "edition_defaults", kind: "message", T: FieldOptions_EditionDefault, repeated: true },
1042
- { no: 21, name: "features", kind: "message", T: FeatureSet, opt: true },
1043
- { no: 999, name: "uninterpreted_option", kind: "message", T: UninterpretedOption, repeated: true },
1044
- ]);
1045
- /**
1046
- * @generated from enum google.protobuf.FieldOptions.CType
1047
- */
1048
- var FieldOptions_CType;
1049
- (function (FieldOptions_CType) {
1050
- /**
1051
- * Default mode.
1052
- *
1053
- * @generated from enum value: STRING = 0;
1054
- */
1055
- FieldOptions_CType[FieldOptions_CType["STRING"] = 0] = "STRING";
1056
- /**
1057
- * The option [ctype=CORD] may be applied to a non-repeated field of type
1058
- * "bytes". It indicates that in C++, the data should be stored in a Cord
1059
- * instead of a string. For very large strings, this may reduce memory
1060
- * fragmentation. It may also allow better performance when parsing from a
1061
- * Cord, or when parsing with aliasing enabled, as the parsed Cord may then
1062
- * alias the original buffer.
1063
- *
1064
- * @generated from enum value: CORD = 1;
1065
- */
1066
- FieldOptions_CType[FieldOptions_CType["CORD"] = 1] = "CORD";
1067
- /**
1068
- * @generated from enum value: STRING_PIECE = 2;
1069
- */
1070
- FieldOptions_CType[FieldOptions_CType["STRING_PIECE"] = 2] = "STRING_PIECE";
1071
- })(FieldOptions_CType || (exports.FieldOptions_CType = FieldOptions_CType = {}));
1072
- // Retrieve enum metadata with: proto2.getEnumType(FieldOptions_CType)
1073
- proto2_js_1.proto2.util.setEnumType(FieldOptions_CType, "google.protobuf.FieldOptions.CType", [
1074
- { no: 0, name: "STRING" },
1075
- { no: 1, name: "CORD" },
1076
- { no: 2, name: "STRING_PIECE" },
1077
- ]);
1078
- /**
1079
- * @generated from enum google.protobuf.FieldOptions.JSType
1080
- */
1081
- var FieldOptions_JSType;
1082
- (function (FieldOptions_JSType) {
1083
- /**
1084
- * Use the default type.
1085
- *
1086
- * @generated from enum value: JS_NORMAL = 0;
1087
- */
1088
- FieldOptions_JSType[FieldOptions_JSType["JS_NORMAL"] = 0] = "JS_NORMAL";
1089
- /**
1090
- * Use JavaScript strings.
1091
- *
1092
- * @generated from enum value: JS_STRING = 1;
1093
- */
1094
- FieldOptions_JSType[FieldOptions_JSType["JS_STRING"] = 1] = "JS_STRING";
1095
- /**
1096
- * Use JavaScript numbers.
1097
- *
1098
- * @generated from enum value: JS_NUMBER = 2;
1099
- */
1100
- FieldOptions_JSType[FieldOptions_JSType["JS_NUMBER"] = 2] = "JS_NUMBER";
1101
- })(FieldOptions_JSType || (exports.FieldOptions_JSType = FieldOptions_JSType = {}));
1102
- // Retrieve enum metadata with: proto2.getEnumType(FieldOptions_JSType)
1103
- proto2_js_1.proto2.util.setEnumType(FieldOptions_JSType, "google.protobuf.FieldOptions.JSType", [
1104
- { no: 0, name: "JS_NORMAL" },
1105
- { no: 1, name: "JS_STRING" },
1106
- { no: 2, name: "JS_NUMBER" },
1107
- ]);
1108
- /**
1109
- * If set to RETENTION_SOURCE, the option will be omitted from the binary.
1110
- * Note: as of January 2023, support for this is in progress and does not yet
1111
- * have an effect (b/264593489).
1112
- *
1113
- * @generated from enum google.protobuf.FieldOptions.OptionRetention
1114
- */
1115
- var FieldOptions_OptionRetention;
1116
- (function (FieldOptions_OptionRetention) {
1117
- /**
1118
- * @generated from enum value: RETENTION_UNKNOWN = 0;
1119
- */
1120
- FieldOptions_OptionRetention[FieldOptions_OptionRetention["RETENTION_UNKNOWN"] = 0] = "RETENTION_UNKNOWN";
1121
- /**
1122
- * @generated from enum value: RETENTION_RUNTIME = 1;
1123
- */
1124
- FieldOptions_OptionRetention[FieldOptions_OptionRetention["RETENTION_RUNTIME"] = 1] = "RETENTION_RUNTIME";
1125
- /**
1126
- * @generated from enum value: RETENTION_SOURCE = 2;
1127
- */
1128
- FieldOptions_OptionRetention[FieldOptions_OptionRetention["RETENTION_SOURCE"] = 2] = "RETENTION_SOURCE";
1129
- })(FieldOptions_OptionRetention || (exports.FieldOptions_OptionRetention = FieldOptions_OptionRetention = {}));
1130
- // Retrieve enum metadata with: proto2.getEnumType(FieldOptions_OptionRetention)
1131
- proto2_js_1.proto2.util.setEnumType(FieldOptions_OptionRetention, "google.protobuf.FieldOptions.OptionRetention", [
1132
- { no: 0, name: "RETENTION_UNKNOWN" },
1133
- { no: 1, name: "RETENTION_RUNTIME" },
1134
- { no: 2, name: "RETENTION_SOURCE" },
1135
- ]);
1136
- /**
1137
- * This indicates the types of entities that the field may apply to when used
1138
- * as an option. If it is unset, then the field may be freely used as an
1139
- * option on any kind of entity. Note: as of January 2023, support for this is
1140
- * in progress and does not yet have an effect (b/264593489).
1141
- *
1142
- * @generated from enum google.protobuf.FieldOptions.OptionTargetType
1143
- */
1144
- var FieldOptions_OptionTargetType;
1145
- (function (FieldOptions_OptionTargetType) {
1146
- /**
1147
- * @generated from enum value: TARGET_TYPE_UNKNOWN = 0;
1148
- */
1149
- FieldOptions_OptionTargetType[FieldOptions_OptionTargetType["TARGET_TYPE_UNKNOWN"] = 0] = "TARGET_TYPE_UNKNOWN";
1150
- /**
1151
- * @generated from enum value: TARGET_TYPE_FILE = 1;
1152
- */
1153
- FieldOptions_OptionTargetType[FieldOptions_OptionTargetType["TARGET_TYPE_FILE"] = 1] = "TARGET_TYPE_FILE";
1154
- /**
1155
- * @generated from enum value: TARGET_TYPE_EXTENSION_RANGE = 2;
1156
- */
1157
- FieldOptions_OptionTargetType[FieldOptions_OptionTargetType["TARGET_TYPE_EXTENSION_RANGE"] = 2] = "TARGET_TYPE_EXTENSION_RANGE";
1158
- /**
1159
- * @generated from enum value: TARGET_TYPE_MESSAGE = 3;
1160
- */
1161
- FieldOptions_OptionTargetType[FieldOptions_OptionTargetType["TARGET_TYPE_MESSAGE"] = 3] = "TARGET_TYPE_MESSAGE";
1162
- /**
1163
- * @generated from enum value: TARGET_TYPE_FIELD = 4;
1164
- */
1165
- FieldOptions_OptionTargetType[FieldOptions_OptionTargetType["TARGET_TYPE_FIELD"] = 4] = "TARGET_TYPE_FIELD";
1166
- /**
1167
- * @generated from enum value: TARGET_TYPE_ONEOF = 5;
1168
- */
1169
- FieldOptions_OptionTargetType[FieldOptions_OptionTargetType["TARGET_TYPE_ONEOF"] = 5] = "TARGET_TYPE_ONEOF";
1170
- /**
1171
- * @generated from enum value: TARGET_TYPE_ENUM = 6;
1172
- */
1173
- FieldOptions_OptionTargetType[FieldOptions_OptionTargetType["TARGET_TYPE_ENUM"] = 6] = "TARGET_TYPE_ENUM";
1174
- /**
1175
- * @generated from enum value: TARGET_TYPE_ENUM_ENTRY = 7;
1176
- */
1177
- FieldOptions_OptionTargetType[FieldOptions_OptionTargetType["TARGET_TYPE_ENUM_ENTRY"] = 7] = "TARGET_TYPE_ENUM_ENTRY";
1178
- /**
1179
- * @generated from enum value: TARGET_TYPE_SERVICE = 8;
1180
- */
1181
- FieldOptions_OptionTargetType[FieldOptions_OptionTargetType["TARGET_TYPE_SERVICE"] = 8] = "TARGET_TYPE_SERVICE";
1182
- /**
1183
- * @generated from enum value: TARGET_TYPE_METHOD = 9;
1184
- */
1185
- FieldOptions_OptionTargetType[FieldOptions_OptionTargetType["TARGET_TYPE_METHOD"] = 9] = "TARGET_TYPE_METHOD";
1186
- })(FieldOptions_OptionTargetType || (exports.FieldOptions_OptionTargetType = FieldOptions_OptionTargetType = {}));
1187
- // Retrieve enum metadata with: proto2.getEnumType(FieldOptions_OptionTargetType)
1188
- proto2_js_1.proto2.util.setEnumType(FieldOptions_OptionTargetType, "google.protobuf.FieldOptions.OptionTargetType", [
1189
- { no: 0, name: "TARGET_TYPE_UNKNOWN" },
1190
- { no: 1, name: "TARGET_TYPE_FILE" },
1191
- { no: 2, name: "TARGET_TYPE_EXTENSION_RANGE" },
1192
- { no: 3, name: "TARGET_TYPE_MESSAGE" },
1193
- { no: 4, name: "TARGET_TYPE_FIELD" },
1194
- { no: 5, name: "TARGET_TYPE_ONEOF" },
1195
- { no: 6, name: "TARGET_TYPE_ENUM" },
1196
- { no: 7, name: "TARGET_TYPE_ENUM_ENTRY" },
1197
- { no: 8, name: "TARGET_TYPE_SERVICE" },
1198
- { no: 9, name: "TARGET_TYPE_METHOD" },
1199
- ]);
1200
- /**
1201
- * @generated from message google.protobuf.FieldOptions.EditionDefault
1202
- */
1203
- class FieldOptions_EditionDefault extends message_js_1.Message {
1204
- constructor(data) {
1205
- super();
1206
- proto2_js_1.proto2.util.initPartial(data, this);
1207
- }
1208
- static fromBinary(bytes, options) {
1209
- return new FieldOptions_EditionDefault().fromBinary(bytes, options);
1210
- }
1211
- static fromJson(jsonValue, options) {
1212
- return new FieldOptions_EditionDefault().fromJson(jsonValue, options);
1213
- }
1214
- static fromJsonString(jsonString, options) {
1215
- return new FieldOptions_EditionDefault().fromJsonString(jsonString, options);
1216
- }
1217
- static equals(a, b) {
1218
- return proto2_js_1.proto2.util.equals(FieldOptions_EditionDefault, a, b);
1219
- }
1220
- }
1221
- exports.FieldOptions_EditionDefault = FieldOptions_EditionDefault;
1222
- FieldOptions_EditionDefault.runtime = proto2_js_1.proto2;
1223
- FieldOptions_EditionDefault.typeName = "google.protobuf.FieldOptions.EditionDefault";
1224
- FieldOptions_EditionDefault.fields = proto2_js_1.proto2.util.newFieldList(() => [
1225
- { no: 3, name: "edition", kind: "enum", T: proto2_js_1.proto2.getEnumType(Edition), opt: true },
1226
- { no: 2, name: "value", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1227
- ]);
1228
- /**
1229
- * @generated from message google.protobuf.OneofOptions
1230
- */
1231
- class OneofOptions extends message_js_1.Message {
1232
- constructor(data) {
1233
- super();
1234
- /**
1235
- * The parser stores options it doesn't recognize here. See above.
1236
- *
1237
- * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
1238
- */
1239
- this.uninterpretedOption = [];
1240
- proto2_js_1.proto2.util.initPartial(data, this);
1241
- }
1242
- static fromBinary(bytes, options) {
1243
- return new OneofOptions().fromBinary(bytes, options);
1244
- }
1245
- static fromJson(jsonValue, options) {
1246
- return new OneofOptions().fromJson(jsonValue, options);
1247
- }
1248
- static fromJsonString(jsonString, options) {
1249
- return new OneofOptions().fromJsonString(jsonString, options);
1250
- }
1251
- static equals(a, b) {
1252
- return proto2_js_1.proto2.util.equals(OneofOptions, a, b);
1253
- }
1254
- }
1255
- exports.OneofOptions = OneofOptions;
1256
- OneofOptions.runtime = proto2_js_1.proto2;
1257
- OneofOptions.typeName = "google.protobuf.OneofOptions";
1258
- OneofOptions.fields = proto2_js_1.proto2.util.newFieldList(() => [
1259
- { no: 1, name: "features", kind: "message", T: FeatureSet, opt: true },
1260
- { no: 999, name: "uninterpreted_option", kind: "message", T: UninterpretedOption, repeated: true },
1261
- ]);
1262
- /**
1263
- * @generated from message google.protobuf.EnumOptions
1264
- */
1265
- class EnumOptions extends message_js_1.Message {
1266
- constructor(data) {
1267
- super();
1268
- /**
1269
- * The parser stores options it doesn't recognize here. See above.
1270
- *
1271
- * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
1272
- */
1273
- this.uninterpretedOption = [];
1274
- proto2_js_1.proto2.util.initPartial(data, this);
1275
- }
1276
- static fromBinary(bytes, options) {
1277
- return new EnumOptions().fromBinary(bytes, options);
1278
- }
1279
- static fromJson(jsonValue, options) {
1280
- return new EnumOptions().fromJson(jsonValue, options);
1281
- }
1282
- static fromJsonString(jsonString, options) {
1283
- return new EnumOptions().fromJsonString(jsonString, options);
1284
- }
1285
- static equals(a, b) {
1286
- return proto2_js_1.proto2.util.equals(EnumOptions, a, b);
1287
- }
1288
- }
1289
- exports.EnumOptions = EnumOptions;
1290
- EnumOptions.runtime = proto2_js_1.proto2;
1291
- EnumOptions.typeName = "google.protobuf.EnumOptions";
1292
- EnumOptions.fields = proto2_js_1.proto2.util.newFieldList(() => [
1293
- { no: 2, name: "allow_alias", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
1294
- { no: 3, name: "deprecated", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
1295
- { no: 6, name: "deprecated_legacy_json_field_conflicts", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
1296
- { no: 7, name: "features", kind: "message", T: FeatureSet, opt: true },
1297
- { no: 999, name: "uninterpreted_option", kind: "message", T: UninterpretedOption, repeated: true },
1298
- ]);
1299
- /**
1300
- * @generated from message google.protobuf.EnumValueOptions
1301
- */
1302
- class EnumValueOptions extends message_js_1.Message {
1303
- constructor(data) {
1304
- super();
1305
- /**
1306
- * The parser stores options it doesn't recognize here. See above.
1307
- *
1308
- * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
1309
- */
1310
- this.uninterpretedOption = [];
1311
- proto2_js_1.proto2.util.initPartial(data, this);
1312
- }
1313
- static fromBinary(bytes, options) {
1314
- return new EnumValueOptions().fromBinary(bytes, options);
1315
- }
1316
- static fromJson(jsonValue, options) {
1317
- return new EnumValueOptions().fromJson(jsonValue, options);
1318
- }
1319
- static fromJsonString(jsonString, options) {
1320
- return new EnumValueOptions().fromJsonString(jsonString, options);
1321
- }
1322
- static equals(a, b) {
1323
- return proto2_js_1.proto2.util.equals(EnumValueOptions, a, b);
1324
- }
1325
- }
1326
- exports.EnumValueOptions = EnumValueOptions;
1327
- EnumValueOptions.runtime = proto2_js_1.proto2;
1328
- EnumValueOptions.typeName = "google.protobuf.EnumValueOptions";
1329
- EnumValueOptions.fields = proto2_js_1.proto2.util.newFieldList(() => [
1330
- { no: 1, name: "deprecated", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
1331
- { no: 2, name: "features", kind: "message", T: FeatureSet, opt: true },
1332
- { no: 3, name: "debug_redact", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
1333
- { no: 999, name: "uninterpreted_option", kind: "message", T: UninterpretedOption, repeated: true },
1334
- ]);
1335
- /**
1336
- * @generated from message google.protobuf.ServiceOptions
1337
- */
1338
- class ServiceOptions extends message_js_1.Message {
1339
- constructor(data) {
1340
- super();
1341
- /**
1342
- * The parser stores options it doesn't recognize here. See above.
1343
- *
1344
- * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
1345
- */
1346
- this.uninterpretedOption = [];
1347
- proto2_js_1.proto2.util.initPartial(data, this);
1348
- }
1349
- static fromBinary(bytes, options) {
1350
- return new ServiceOptions().fromBinary(bytes, options);
1351
- }
1352
- static fromJson(jsonValue, options) {
1353
- return new ServiceOptions().fromJson(jsonValue, options);
1354
- }
1355
- static fromJsonString(jsonString, options) {
1356
- return new ServiceOptions().fromJsonString(jsonString, options);
1357
- }
1358
- static equals(a, b) {
1359
- return proto2_js_1.proto2.util.equals(ServiceOptions, a, b);
1360
- }
1361
- }
1362
- exports.ServiceOptions = ServiceOptions;
1363
- ServiceOptions.runtime = proto2_js_1.proto2;
1364
- ServiceOptions.typeName = "google.protobuf.ServiceOptions";
1365
- ServiceOptions.fields = proto2_js_1.proto2.util.newFieldList(() => [
1366
- { no: 34, name: "features", kind: "message", T: FeatureSet, opt: true },
1367
- { no: 33, name: "deprecated", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
1368
- { no: 999, name: "uninterpreted_option", kind: "message", T: UninterpretedOption, repeated: true },
1369
- ]);
1370
- /**
1371
- * @generated from message google.protobuf.MethodOptions
1372
- */
1373
- class MethodOptions extends message_js_1.Message {
1374
- constructor(data) {
1375
- super();
1376
- /**
1377
- * The parser stores options it doesn't recognize here. See above.
1378
- *
1379
- * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
1380
- */
1381
- this.uninterpretedOption = [];
1382
- proto2_js_1.proto2.util.initPartial(data, this);
1383
- }
1384
- static fromBinary(bytes, options) {
1385
- return new MethodOptions().fromBinary(bytes, options);
1386
- }
1387
- static fromJson(jsonValue, options) {
1388
- return new MethodOptions().fromJson(jsonValue, options);
1389
- }
1390
- static fromJsonString(jsonString, options) {
1391
- return new MethodOptions().fromJsonString(jsonString, options);
1392
- }
1393
- static equals(a, b) {
1394
- return proto2_js_1.proto2.util.equals(MethodOptions, a, b);
1395
- }
1396
- }
1397
- exports.MethodOptions = MethodOptions;
1398
- MethodOptions.runtime = proto2_js_1.proto2;
1399
- MethodOptions.typeName = "google.protobuf.MethodOptions";
1400
- MethodOptions.fields = proto2_js_1.proto2.util.newFieldList(() => [
1401
- { no: 33, name: "deprecated", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
1402
- { no: 34, name: "idempotency_level", kind: "enum", T: proto2_js_1.proto2.getEnumType(MethodOptions_IdempotencyLevel), opt: true, default: MethodOptions_IdempotencyLevel.IDEMPOTENCY_UNKNOWN },
1403
- { no: 35, name: "features", kind: "message", T: FeatureSet, opt: true },
1404
- { no: 999, name: "uninterpreted_option", kind: "message", T: UninterpretedOption, repeated: true },
1405
- ]);
1406
- /**
1407
- * Is this method side-effect-free (or safe in HTTP parlance), or idempotent,
1408
- * or neither? HTTP based RPC implementation may choose GET verb for safe
1409
- * methods, and PUT verb for idempotent methods instead of the default POST.
1410
- *
1411
- * @generated from enum google.protobuf.MethodOptions.IdempotencyLevel
1412
- */
1413
- var MethodOptions_IdempotencyLevel;
1414
- (function (MethodOptions_IdempotencyLevel) {
1415
- /**
1416
- * @generated from enum value: IDEMPOTENCY_UNKNOWN = 0;
1417
- */
1418
- MethodOptions_IdempotencyLevel[MethodOptions_IdempotencyLevel["IDEMPOTENCY_UNKNOWN"] = 0] = "IDEMPOTENCY_UNKNOWN";
1419
- /**
1420
- * implies idempotent
1421
- *
1422
- * @generated from enum value: NO_SIDE_EFFECTS = 1;
1423
- */
1424
- MethodOptions_IdempotencyLevel[MethodOptions_IdempotencyLevel["NO_SIDE_EFFECTS"] = 1] = "NO_SIDE_EFFECTS";
1425
- /**
1426
- * idempotent, but may have side effects
1427
- *
1428
- * @generated from enum value: IDEMPOTENT = 2;
1429
- */
1430
- MethodOptions_IdempotencyLevel[MethodOptions_IdempotencyLevel["IDEMPOTENT"] = 2] = "IDEMPOTENT";
1431
- })(MethodOptions_IdempotencyLevel || (exports.MethodOptions_IdempotencyLevel = MethodOptions_IdempotencyLevel = {}));
1432
- // Retrieve enum metadata with: proto2.getEnumType(MethodOptions_IdempotencyLevel)
1433
- proto2_js_1.proto2.util.setEnumType(MethodOptions_IdempotencyLevel, "google.protobuf.MethodOptions.IdempotencyLevel", [
1434
- { no: 0, name: "IDEMPOTENCY_UNKNOWN" },
1435
- { no: 1, name: "NO_SIDE_EFFECTS" },
1436
- { no: 2, name: "IDEMPOTENT" },
1437
- ]);
1438
- /**
1439
- * A message representing a option the parser does not recognize. This only
1440
- * appears in options protos created by the compiler::Parser class.
1441
- * DescriptorPool resolves these when building Descriptor objects. Therefore,
1442
- * options protos in descriptor objects (e.g. returned by Descriptor::options(),
1443
- * or produced by Descriptor::CopyTo()) will never have UninterpretedOptions
1444
- * in them.
1445
- *
1446
- * @generated from message google.protobuf.UninterpretedOption
1447
- */
1448
- class UninterpretedOption extends message_js_1.Message {
1449
- constructor(data) {
1450
- super();
1451
- /**
1452
- * @generated from field: repeated google.protobuf.UninterpretedOption.NamePart name = 2;
1453
- */
1454
- this.name = [];
1455
- proto2_js_1.proto2.util.initPartial(data, this);
1456
- }
1457
- static fromBinary(bytes, options) {
1458
- return new UninterpretedOption().fromBinary(bytes, options);
1459
- }
1460
- static fromJson(jsonValue, options) {
1461
- return new UninterpretedOption().fromJson(jsonValue, options);
1462
- }
1463
- static fromJsonString(jsonString, options) {
1464
- return new UninterpretedOption().fromJsonString(jsonString, options);
1465
- }
1466
- static equals(a, b) {
1467
- return proto2_js_1.proto2.util.equals(UninterpretedOption, a, b);
1468
- }
1469
- }
1470
- exports.UninterpretedOption = UninterpretedOption;
1471
- UninterpretedOption.runtime = proto2_js_1.proto2;
1472
- UninterpretedOption.typeName = "google.protobuf.UninterpretedOption";
1473
- UninterpretedOption.fields = proto2_js_1.proto2.util.newFieldList(() => [
1474
- { no: 2, name: "name", kind: "message", T: UninterpretedOption_NamePart, repeated: true },
1475
- { no: 3, name: "identifier_value", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1476
- { no: 4, name: "positive_int_value", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true },
1477
- { no: 5, name: "negative_int_value", kind: "scalar", T: 3 /* ScalarType.INT64 */, opt: true },
1478
- { no: 6, name: "double_value", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
1479
- { no: 7, name: "string_value", kind: "scalar", T: 12 /* ScalarType.BYTES */, opt: true },
1480
- { no: 8, name: "aggregate_value", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1481
- ]);
1482
- /**
1483
- * The name of the uninterpreted option. Each string represents a segment in
1484
- * a dot-separated name. is_extension is true iff a segment represents an
1485
- * extension (denoted with parentheses in options specs in .proto files).
1486
- * E.g.,{ ["foo", false], ["bar.baz", true], ["moo", false] } represents
1487
- * "foo.(bar.baz).moo".
1488
- *
1489
- * @generated from message google.protobuf.UninterpretedOption.NamePart
1490
- */
1491
- class UninterpretedOption_NamePart extends message_js_1.Message {
1492
- constructor(data) {
1493
- super();
1494
- proto2_js_1.proto2.util.initPartial(data, this);
1495
- }
1496
- static fromBinary(bytes, options) {
1497
- return new UninterpretedOption_NamePart().fromBinary(bytes, options);
1498
- }
1499
- static fromJson(jsonValue, options) {
1500
- return new UninterpretedOption_NamePart().fromJson(jsonValue, options);
1501
- }
1502
- static fromJsonString(jsonString, options) {
1503
- return new UninterpretedOption_NamePart().fromJsonString(jsonString, options);
1504
- }
1505
- static equals(a, b) {
1506
- return proto2_js_1.proto2.util.equals(UninterpretedOption_NamePart, a, b);
1507
- }
1508
- }
1509
- exports.UninterpretedOption_NamePart = UninterpretedOption_NamePart;
1510
- UninterpretedOption_NamePart.runtime = proto2_js_1.proto2;
1511
- UninterpretedOption_NamePart.typeName = "google.protobuf.UninterpretedOption.NamePart";
1512
- UninterpretedOption_NamePart.fields = proto2_js_1.proto2.util.newFieldList(() => [
1513
- { no: 1, name: "name_part", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true },
1514
- { no: 2, name: "is_extension", kind: "scalar", T: 8 /* ScalarType.BOOL */, req: true },
1515
- ]);
1516
- /**
1517
- * TODO Enums in C++ gencode (and potentially other languages) are
1518
- * not well scoped. This means that each of the feature enums below can clash
1519
- * with each other. The short names we've chosen maximize call-site
1520
- * readability, but leave us very open to this scenario. A future feature will
1521
- * be designed and implemented to handle this, hopefully before we ever hit a
1522
- * conflict here.
1523
- *
1524
- * @generated from message google.protobuf.FeatureSet
1525
- */
1526
- class FeatureSet extends message_js_1.Message {
1527
- constructor(data) {
1528
- super();
1529
- proto2_js_1.proto2.util.initPartial(data, this);
1530
- }
1531
- static fromBinary(bytes, options) {
1532
- return new FeatureSet().fromBinary(bytes, options);
1533
- }
1534
- static fromJson(jsonValue, options) {
1535
- return new FeatureSet().fromJson(jsonValue, options);
1536
- }
1537
- static fromJsonString(jsonString, options) {
1538
- return new FeatureSet().fromJsonString(jsonString, options);
1539
- }
1540
- static equals(a, b) {
1541
- return proto2_js_1.proto2.util.equals(FeatureSet, a, b);
1542
- }
1543
- }
1544
- exports.FeatureSet = FeatureSet;
1545
- FeatureSet.runtime = proto2_js_1.proto2;
1546
- FeatureSet.typeName = "google.protobuf.FeatureSet";
1547
- FeatureSet.fields = proto2_js_1.proto2.util.newFieldList(() => [
1548
- { no: 1, name: "field_presence", kind: "enum", T: proto2_js_1.proto2.getEnumType(FeatureSet_FieldPresence), opt: true },
1549
- { no: 2, name: "enum_type", kind: "enum", T: proto2_js_1.proto2.getEnumType(FeatureSet_EnumType), opt: true },
1550
- { no: 3, name: "repeated_field_encoding", kind: "enum", T: proto2_js_1.proto2.getEnumType(FeatureSet_RepeatedFieldEncoding), opt: true },
1551
- { no: 4, name: "utf8_validation", kind: "enum", T: proto2_js_1.proto2.getEnumType(FeatureSet_Utf8Validation), opt: true },
1552
- { no: 5, name: "message_encoding", kind: "enum", T: proto2_js_1.proto2.getEnumType(FeatureSet_MessageEncoding), opt: true },
1553
- { no: 6, name: "json_format", kind: "enum", T: proto2_js_1.proto2.getEnumType(FeatureSet_JsonFormat), opt: true },
1554
- ]);
1555
- /**
1556
- * @generated from enum google.protobuf.FeatureSet.FieldPresence
1557
- */
1558
- var FeatureSet_FieldPresence;
1559
- (function (FeatureSet_FieldPresence) {
1560
- /**
1561
- * @generated from enum value: FIELD_PRESENCE_UNKNOWN = 0;
1562
- */
1563
- FeatureSet_FieldPresence[FeatureSet_FieldPresence["FIELD_PRESENCE_UNKNOWN"] = 0] = "FIELD_PRESENCE_UNKNOWN";
1564
- /**
1565
- * @generated from enum value: EXPLICIT = 1;
1566
- */
1567
- FeatureSet_FieldPresence[FeatureSet_FieldPresence["EXPLICIT"] = 1] = "EXPLICIT";
1568
- /**
1569
- * @generated from enum value: IMPLICIT = 2;
1570
- */
1571
- FeatureSet_FieldPresence[FeatureSet_FieldPresence["IMPLICIT"] = 2] = "IMPLICIT";
1572
- /**
1573
- * @generated from enum value: LEGACY_REQUIRED = 3;
1574
- */
1575
- FeatureSet_FieldPresence[FeatureSet_FieldPresence["LEGACY_REQUIRED"] = 3] = "LEGACY_REQUIRED";
1576
- })(FeatureSet_FieldPresence || (exports.FeatureSet_FieldPresence = FeatureSet_FieldPresence = {}));
1577
- // Retrieve enum metadata with: proto2.getEnumType(FeatureSet_FieldPresence)
1578
- proto2_js_1.proto2.util.setEnumType(FeatureSet_FieldPresence, "google.protobuf.FeatureSet.FieldPresence", [
1579
- { no: 0, name: "FIELD_PRESENCE_UNKNOWN" },
1580
- { no: 1, name: "EXPLICIT" },
1581
- { no: 2, name: "IMPLICIT" },
1582
- { no: 3, name: "LEGACY_REQUIRED" },
1583
- ]);
1584
- /**
1585
- * @generated from enum google.protobuf.FeatureSet.EnumType
1586
- */
1587
- var FeatureSet_EnumType;
1588
- (function (FeatureSet_EnumType) {
1589
- /**
1590
- * @generated from enum value: ENUM_TYPE_UNKNOWN = 0;
1591
- */
1592
- FeatureSet_EnumType[FeatureSet_EnumType["ENUM_TYPE_UNKNOWN"] = 0] = "ENUM_TYPE_UNKNOWN";
1593
- /**
1594
- * @generated from enum value: OPEN = 1;
1595
- */
1596
- FeatureSet_EnumType[FeatureSet_EnumType["OPEN"] = 1] = "OPEN";
1597
- /**
1598
- * @generated from enum value: CLOSED = 2;
1599
- */
1600
- FeatureSet_EnumType[FeatureSet_EnumType["CLOSED"] = 2] = "CLOSED";
1601
- })(FeatureSet_EnumType || (exports.FeatureSet_EnumType = FeatureSet_EnumType = {}));
1602
- // Retrieve enum metadata with: proto2.getEnumType(FeatureSet_EnumType)
1603
- proto2_js_1.proto2.util.setEnumType(FeatureSet_EnumType, "google.protobuf.FeatureSet.EnumType", [
1604
- { no: 0, name: "ENUM_TYPE_UNKNOWN" },
1605
- { no: 1, name: "OPEN" },
1606
- { no: 2, name: "CLOSED" },
1607
- ]);
1608
- /**
1609
- * @generated from enum google.protobuf.FeatureSet.RepeatedFieldEncoding
1610
- */
1611
- var FeatureSet_RepeatedFieldEncoding;
1612
- (function (FeatureSet_RepeatedFieldEncoding) {
1613
- /**
1614
- * @generated from enum value: REPEATED_FIELD_ENCODING_UNKNOWN = 0;
1615
- */
1616
- FeatureSet_RepeatedFieldEncoding[FeatureSet_RepeatedFieldEncoding["REPEATED_FIELD_ENCODING_UNKNOWN"] = 0] = "REPEATED_FIELD_ENCODING_UNKNOWN";
1617
- /**
1618
- * @generated from enum value: PACKED = 1;
1619
- */
1620
- FeatureSet_RepeatedFieldEncoding[FeatureSet_RepeatedFieldEncoding["PACKED"] = 1] = "PACKED";
1621
- /**
1622
- * @generated from enum value: EXPANDED = 2;
1623
- */
1624
- FeatureSet_RepeatedFieldEncoding[FeatureSet_RepeatedFieldEncoding["EXPANDED"] = 2] = "EXPANDED";
1625
- })(FeatureSet_RepeatedFieldEncoding || (exports.FeatureSet_RepeatedFieldEncoding = FeatureSet_RepeatedFieldEncoding = {}));
1626
- // Retrieve enum metadata with: proto2.getEnumType(FeatureSet_RepeatedFieldEncoding)
1627
- proto2_js_1.proto2.util.setEnumType(FeatureSet_RepeatedFieldEncoding, "google.protobuf.FeatureSet.RepeatedFieldEncoding", [
1628
- { no: 0, name: "REPEATED_FIELD_ENCODING_UNKNOWN" },
1629
- { no: 1, name: "PACKED" },
1630
- { no: 2, name: "EXPANDED" },
1631
- ]);
1632
- /**
1633
- * @generated from enum google.protobuf.FeatureSet.Utf8Validation
1634
- */
1635
- var FeatureSet_Utf8Validation;
1636
- (function (FeatureSet_Utf8Validation) {
1637
- /**
1638
- * @generated from enum value: UTF8_VALIDATION_UNKNOWN = 0;
1639
- */
1640
- FeatureSet_Utf8Validation[FeatureSet_Utf8Validation["UTF8_VALIDATION_UNKNOWN"] = 0] = "UTF8_VALIDATION_UNKNOWN";
1641
- /**
1642
- * @generated from enum value: VERIFY = 2;
1643
- */
1644
- FeatureSet_Utf8Validation[FeatureSet_Utf8Validation["VERIFY"] = 2] = "VERIFY";
1645
- /**
1646
- * @generated from enum value: NONE = 3;
1647
- */
1648
- FeatureSet_Utf8Validation[FeatureSet_Utf8Validation["NONE"] = 3] = "NONE";
1649
- })(FeatureSet_Utf8Validation || (exports.FeatureSet_Utf8Validation = FeatureSet_Utf8Validation = {}));
1650
- // Retrieve enum metadata with: proto2.getEnumType(FeatureSet_Utf8Validation)
1651
- proto2_js_1.proto2.util.setEnumType(FeatureSet_Utf8Validation, "google.protobuf.FeatureSet.Utf8Validation", [
1652
- { no: 0, name: "UTF8_VALIDATION_UNKNOWN" },
1653
- { no: 2, name: "VERIFY" },
1654
- { no: 3, name: "NONE" },
1655
- ]);
1656
- /**
1657
- * @generated from enum google.protobuf.FeatureSet.MessageEncoding
1658
- */
1659
- var FeatureSet_MessageEncoding;
1660
- (function (FeatureSet_MessageEncoding) {
1661
- /**
1662
- * @generated from enum value: MESSAGE_ENCODING_UNKNOWN = 0;
1663
- */
1664
- FeatureSet_MessageEncoding[FeatureSet_MessageEncoding["MESSAGE_ENCODING_UNKNOWN"] = 0] = "MESSAGE_ENCODING_UNKNOWN";
1665
- /**
1666
- * @generated from enum value: LENGTH_PREFIXED = 1;
1667
- */
1668
- FeatureSet_MessageEncoding[FeatureSet_MessageEncoding["LENGTH_PREFIXED"] = 1] = "LENGTH_PREFIXED";
1669
- /**
1670
- * @generated from enum value: DELIMITED = 2;
1671
- */
1672
- FeatureSet_MessageEncoding[FeatureSet_MessageEncoding["DELIMITED"] = 2] = "DELIMITED";
1673
- })(FeatureSet_MessageEncoding || (exports.FeatureSet_MessageEncoding = FeatureSet_MessageEncoding = {}));
1674
- // Retrieve enum metadata with: proto2.getEnumType(FeatureSet_MessageEncoding)
1675
- proto2_js_1.proto2.util.setEnumType(FeatureSet_MessageEncoding, "google.protobuf.FeatureSet.MessageEncoding", [
1676
- { no: 0, name: "MESSAGE_ENCODING_UNKNOWN" },
1677
- { no: 1, name: "LENGTH_PREFIXED" },
1678
- { no: 2, name: "DELIMITED" },
1679
- ]);
1680
- /**
1681
- * @generated from enum google.protobuf.FeatureSet.JsonFormat
1682
- */
1683
- var FeatureSet_JsonFormat;
1684
- (function (FeatureSet_JsonFormat) {
1685
- /**
1686
- * @generated from enum value: JSON_FORMAT_UNKNOWN = 0;
1687
- */
1688
- FeatureSet_JsonFormat[FeatureSet_JsonFormat["JSON_FORMAT_UNKNOWN"] = 0] = "JSON_FORMAT_UNKNOWN";
1689
- /**
1690
- * @generated from enum value: ALLOW = 1;
1691
- */
1692
- FeatureSet_JsonFormat[FeatureSet_JsonFormat["ALLOW"] = 1] = "ALLOW";
1693
- /**
1694
- * @generated from enum value: LEGACY_BEST_EFFORT = 2;
1695
- */
1696
- FeatureSet_JsonFormat[FeatureSet_JsonFormat["LEGACY_BEST_EFFORT"] = 2] = "LEGACY_BEST_EFFORT";
1697
- })(FeatureSet_JsonFormat || (exports.FeatureSet_JsonFormat = FeatureSet_JsonFormat = {}));
1698
- // Retrieve enum metadata with: proto2.getEnumType(FeatureSet_JsonFormat)
1699
- proto2_js_1.proto2.util.setEnumType(FeatureSet_JsonFormat, "google.protobuf.FeatureSet.JsonFormat", [
1700
- { no: 0, name: "JSON_FORMAT_UNKNOWN" },
1701
- { no: 1, name: "ALLOW" },
1702
- { no: 2, name: "LEGACY_BEST_EFFORT" },
1703
- ]);
1704
- /**
1705
- * A compiled specification for the defaults of a set of features. These
1706
- * messages are generated from FeatureSet extensions and can be used to seed
1707
- * feature resolution. The resolution with this object becomes a simple search
1708
- * for the closest matching edition, followed by proto merges.
1709
- *
1710
- * @generated from message google.protobuf.FeatureSetDefaults
1711
- */
1712
- class FeatureSetDefaults extends message_js_1.Message {
1713
- constructor(data) {
1714
- super();
1715
- /**
1716
- * @generated from field: repeated google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault defaults = 1;
1717
- */
1718
- this.defaults = [];
1719
- proto2_js_1.proto2.util.initPartial(data, this);
1720
- }
1721
- static fromBinary(bytes, options) {
1722
- return new FeatureSetDefaults().fromBinary(bytes, options);
1723
- }
1724
- static fromJson(jsonValue, options) {
1725
- return new FeatureSetDefaults().fromJson(jsonValue, options);
1726
- }
1727
- static fromJsonString(jsonString, options) {
1728
- return new FeatureSetDefaults().fromJsonString(jsonString, options);
1729
- }
1730
- static equals(a, b) {
1731
- return proto2_js_1.proto2.util.equals(FeatureSetDefaults, a, b);
1732
- }
1733
- }
1734
- exports.FeatureSetDefaults = FeatureSetDefaults;
1735
- FeatureSetDefaults.runtime = proto2_js_1.proto2;
1736
- FeatureSetDefaults.typeName = "google.protobuf.FeatureSetDefaults";
1737
- FeatureSetDefaults.fields = proto2_js_1.proto2.util.newFieldList(() => [
1738
- { no: 1, name: "defaults", kind: "message", T: FeatureSetDefaults_FeatureSetEditionDefault, repeated: true },
1739
- { no: 4, name: "minimum_edition", kind: "enum", T: proto2_js_1.proto2.getEnumType(Edition), opt: true },
1740
- { no: 5, name: "maximum_edition", kind: "enum", T: proto2_js_1.proto2.getEnumType(Edition), opt: true },
1741
- ]);
1742
- /**
1743
- * A map from every known edition with a unique set of defaults to its
1744
- * defaults. Not all editions may be contained here. For a given edition,
1745
- * the defaults at the closest matching edition ordered at or before it should
1746
- * be used. This field must be in strict ascending order by edition.
1747
- *
1748
- * @generated from message google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault
1749
- */
1750
- class FeatureSetDefaults_FeatureSetEditionDefault extends message_js_1.Message {
1751
- constructor(data) {
1752
- super();
1753
- proto2_js_1.proto2.util.initPartial(data, this);
1754
- }
1755
- static fromBinary(bytes, options) {
1756
- return new FeatureSetDefaults_FeatureSetEditionDefault().fromBinary(bytes, options);
1757
- }
1758
- static fromJson(jsonValue, options) {
1759
- return new FeatureSetDefaults_FeatureSetEditionDefault().fromJson(jsonValue, options);
1760
- }
1761
- static fromJsonString(jsonString, options) {
1762
- return new FeatureSetDefaults_FeatureSetEditionDefault().fromJsonString(jsonString, options);
1763
- }
1764
- static equals(a, b) {
1765
- return proto2_js_1.proto2.util.equals(FeatureSetDefaults_FeatureSetEditionDefault, a, b);
1766
- }
1767
- }
1768
- exports.FeatureSetDefaults_FeatureSetEditionDefault = FeatureSetDefaults_FeatureSetEditionDefault;
1769
- FeatureSetDefaults_FeatureSetEditionDefault.runtime = proto2_js_1.proto2;
1770
- FeatureSetDefaults_FeatureSetEditionDefault.typeName = "google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault";
1771
- FeatureSetDefaults_FeatureSetEditionDefault.fields = proto2_js_1.proto2.util.newFieldList(() => [
1772
- { no: 3, name: "edition", kind: "enum", T: proto2_js_1.proto2.getEnumType(Edition), opt: true },
1773
- { no: 2, name: "features", kind: "message", T: FeatureSet, opt: true },
1774
- ]);
1775
- /**
1776
- * Encapsulates information about the original source file from which a
1777
- * FileDescriptorProto was generated.
1778
- *
1779
- * @generated from message google.protobuf.SourceCodeInfo
1780
- */
1781
- class SourceCodeInfo extends message_js_1.Message {
1782
- constructor(data) {
1783
- super();
1784
- /**
1785
- * A Location identifies a piece of source code in a .proto file which
1786
- * corresponds to a particular definition. This information is intended
1787
- * to be useful to IDEs, code indexers, documentation generators, and similar
1788
- * tools.
1789
- *
1790
- * For example, say we have a file like:
1791
- * message Foo {
1792
- * optional string foo = 1;
1793
- * }
1794
- * Let's look at just the field definition:
1795
- * optional string foo = 1;
1796
- * ^ ^^ ^^ ^ ^^^
1797
- * a bc de f ghi
1798
- * We have the following locations:
1799
- * span path represents
1800
- * [a,i) [ 4, 0, 2, 0 ] The whole field definition.
1801
- * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional).
1802
- * [c,d) [ 4, 0, 2, 0, 5 ] The type (string).
1803
- * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo).
1804
- * [g,h) [ 4, 0, 2, 0, 3 ] The number (1).
1805
- *
1806
- * Notes:
1807
- * - A location may refer to a repeated field itself (i.e. not to any
1808
- * particular index within it). This is used whenever a set of elements are
1809
- * logically enclosed in a single code segment. For example, an entire
1810
- * extend block (possibly containing multiple extension definitions) will
1811
- * have an outer location whose path refers to the "extensions" repeated
1812
- * field without an index.
1813
- * - Multiple locations may have the same path. This happens when a single
1814
- * logical declaration is spread out across multiple places. The most
1815
- * obvious example is the "extend" block again -- there may be multiple
1816
- * extend blocks in the same scope, each of which will have the same path.
1817
- * - A location's span is not always a subset of its parent's span. For
1818
- * example, the "extendee" of an extension declaration appears at the
1819
- * beginning of the "extend" block and is shared by all extensions within
1820
- * the block.
1821
- * - Just because a location's span is a subset of some other location's span
1822
- * does not mean that it is a descendant. For example, a "group" defines
1823
- * both a type and a field in a single declaration. Thus, the locations
1824
- * corresponding to the type and field and their components will overlap.
1825
- * - Code which tries to interpret locations should probably be designed to
1826
- * ignore those that it doesn't understand, as more types of locations could
1827
- * be recorded in the future.
1828
- *
1829
- * @generated from field: repeated google.protobuf.SourceCodeInfo.Location location = 1;
1830
- */
1831
- this.location = [];
1832
- proto2_js_1.proto2.util.initPartial(data, this);
1833
- }
1834
- static fromBinary(bytes, options) {
1835
- return new SourceCodeInfo().fromBinary(bytes, options);
1836
- }
1837
- static fromJson(jsonValue, options) {
1838
- return new SourceCodeInfo().fromJson(jsonValue, options);
1839
- }
1840
- static fromJsonString(jsonString, options) {
1841
- return new SourceCodeInfo().fromJsonString(jsonString, options);
1842
- }
1843
- static equals(a, b) {
1844
- return proto2_js_1.proto2.util.equals(SourceCodeInfo, a, b);
1845
- }
1846
- }
1847
- exports.SourceCodeInfo = SourceCodeInfo;
1848
- SourceCodeInfo.runtime = proto2_js_1.proto2;
1849
- SourceCodeInfo.typeName = "google.protobuf.SourceCodeInfo";
1850
- SourceCodeInfo.fields = proto2_js_1.proto2.util.newFieldList(() => [
1851
- { no: 1, name: "location", kind: "message", T: SourceCodeInfo_Location, repeated: true },
1852
- ]);
1853
- /**
1854
- * @generated from message google.protobuf.SourceCodeInfo.Location
1855
- */
1856
- class SourceCodeInfo_Location extends message_js_1.Message {
1857
- constructor(data) {
1858
- super();
1859
- /**
1860
- * Identifies which part of the FileDescriptorProto was defined at this
1861
- * location.
1862
- *
1863
- * Each element is a field number or an index. They form a path from
1864
- * the root FileDescriptorProto to the place where the definition appears.
1865
- * For example, this path:
1866
- * [ 4, 3, 2, 7, 1 ]
1867
- * refers to:
1868
- * file.message_type(3) // 4, 3
1869
- * .field(7) // 2, 7
1870
- * .name() // 1
1871
- * This is because FileDescriptorProto.message_type has field number 4:
1872
- * repeated DescriptorProto message_type = 4;
1873
- * and DescriptorProto.field has field number 2:
1874
- * repeated FieldDescriptorProto field = 2;
1875
- * and FieldDescriptorProto.name has field number 1:
1876
- * optional string name = 1;
1877
- *
1878
- * Thus, the above path gives the location of a field name. If we removed
1879
- * the last element:
1880
- * [ 4, 3, 2, 7 ]
1881
- * this path refers to the whole field declaration (from the beginning
1882
- * of the label to the terminating semicolon).
1883
- *
1884
- * @generated from field: repeated int32 path = 1 [packed = true];
1885
- */
1886
- this.path = [];
1887
- /**
1888
- * Always has exactly three or four elements: start line, start column,
1889
- * end line (optional, otherwise assumed same as start line), end column.
1890
- * These are packed into a single field for efficiency. Note that line
1891
- * and column numbers are zero-based -- typically you will want to add
1892
- * 1 to each before displaying to a user.
1893
- *
1894
- * @generated from field: repeated int32 span = 2 [packed = true];
1895
- */
1896
- this.span = [];
1897
- /**
1898
- * @generated from field: repeated string leading_detached_comments = 6;
1899
- */
1900
- this.leadingDetachedComments = [];
1901
- proto2_js_1.proto2.util.initPartial(data, this);
1902
- }
1903
- static fromBinary(bytes, options) {
1904
- return new SourceCodeInfo_Location().fromBinary(bytes, options);
1905
- }
1906
- static fromJson(jsonValue, options) {
1907
- return new SourceCodeInfo_Location().fromJson(jsonValue, options);
1908
- }
1909
- static fromJsonString(jsonString, options) {
1910
- return new SourceCodeInfo_Location().fromJsonString(jsonString, options);
1911
- }
1912
- static equals(a, b) {
1913
- return proto2_js_1.proto2.util.equals(SourceCodeInfo_Location, a, b);
1914
- }
1915
- }
1916
- exports.SourceCodeInfo_Location = SourceCodeInfo_Location;
1917
- SourceCodeInfo_Location.runtime = proto2_js_1.proto2;
1918
- SourceCodeInfo_Location.typeName = "google.protobuf.SourceCodeInfo.Location";
1919
- SourceCodeInfo_Location.fields = proto2_js_1.proto2.util.newFieldList(() => [
1920
- { no: 1, name: "path", kind: "scalar", T: 5 /* ScalarType.INT32 */, repeated: true, packed: true },
1921
- { no: 2, name: "span", kind: "scalar", T: 5 /* ScalarType.INT32 */, repeated: true, packed: true },
1922
- { no: 3, name: "leading_comments", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1923
- { no: 4, name: "trailing_comments", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1924
- { no: 6, name: "leading_detached_comments", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
1925
- ]);
1926
- /**
1927
- * Describes the relationship between generated code and its original source
1928
- * file. A GeneratedCodeInfo message is associated with only one generated
1929
- * source file, but may contain references to different source .proto files.
1930
- *
1931
- * @generated from message google.protobuf.GeneratedCodeInfo
1932
- */
1933
- class GeneratedCodeInfo extends message_js_1.Message {
1934
- constructor(data) {
1935
- super();
1936
- /**
1937
- * An Annotation connects some span of text in generated code to an element
1938
- * of its generating .proto file.
1939
- *
1940
- * @generated from field: repeated google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;
1941
- */
1942
- this.annotation = [];
1943
- proto2_js_1.proto2.util.initPartial(data, this);
1944
- }
1945
- static fromBinary(bytes, options) {
1946
- return new GeneratedCodeInfo().fromBinary(bytes, options);
1947
- }
1948
- static fromJson(jsonValue, options) {
1949
- return new GeneratedCodeInfo().fromJson(jsonValue, options);
1950
- }
1951
- static fromJsonString(jsonString, options) {
1952
- return new GeneratedCodeInfo().fromJsonString(jsonString, options);
1953
- }
1954
- static equals(a, b) {
1955
- return proto2_js_1.proto2.util.equals(GeneratedCodeInfo, a, b);
1956
- }
1957
- }
1958
- exports.GeneratedCodeInfo = GeneratedCodeInfo;
1959
- GeneratedCodeInfo.runtime = proto2_js_1.proto2;
1960
- GeneratedCodeInfo.typeName = "google.protobuf.GeneratedCodeInfo";
1961
- GeneratedCodeInfo.fields = proto2_js_1.proto2.util.newFieldList(() => [
1962
- { no: 1, name: "annotation", kind: "message", T: GeneratedCodeInfo_Annotation, repeated: true },
1963
- ]);
1964
- /**
1965
- * @generated from message google.protobuf.GeneratedCodeInfo.Annotation
1966
- */
1967
- class GeneratedCodeInfo_Annotation extends message_js_1.Message {
1968
- constructor(data) {
1969
- super();
1970
- /**
1971
- * Identifies the element in the original source .proto file. This field
1972
- * is formatted the same as SourceCodeInfo.Location.path.
1973
- *
1974
- * @generated from field: repeated int32 path = 1 [packed = true];
1975
- */
1976
- this.path = [];
1977
- proto2_js_1.proto2.util.initPartial(data, this);
1978
- }
1979
- static fromBinary(bytes, options) {
1980
- return new GeneratedCodeInfo_Annotation().fromBinary(bytes, options);
1981
- }
1982
- static fromJson(jsonValue, options) {
1983
- return new GeneratedCodeInfo_Annotation().fromJson(jsonValue, options);
1984
- }
1985
- static fromJsonString(jsonString, options) {
1986
- return new GeneratedCodeInfo_Annotation().fromJsonString(jsonString, options);
1987
- }
1988
- static equals(a, b) {
1989
- return proto2_js_1.proto2.util.equals(GeneratedCodeInfo_Annotation, a, b);
1990
- }
1991
- }
1992
- exports.GeneratedCodeInfo_Annotation = GeneratedCodeInfo_Annotation;
1993
- GeneratedCodeInfo_Annotation.runtime = proto2_js_1.proto2;
1994
- GeneratedCodeInfo_Annotation.typeName = "google.protobuf.GeneratedCodeInfo.Annotation";
1995
- GeneratedCodeInfo_Annotation.fields = proto2_js_1.proto2.util.newFieldList(() => [
1996
- { no: 1, name: "path", kind: "scalar", T: 5 /* ScalarType.INT32 */, repeated: true, packed: true },
1997
- { no: 2, name: "source_file", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1998
- { no: 3, name: "begin", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
1999
- { no: 4, name: "end", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
2000
- { no: 5, name: "semantic", kind: "enum", T: proto2_js_1.proto2.getEnumType(GeneratedCodeInfo_Annotation_Semantic), opt: true },
2001
- ]);
2002
- /**
2003
- * Represents the identified object's effect on the element in the original
2004
- * .proto file.
2005
- *
2006
- * @generated from enum google.protobuf.GeneratedCodeInfo.Annotation.Semantic
2007
- */
2008
- var GeneratedCodeInfo_Annotation_Semantic;
2009
- (function (GeneratedCodeInfo_Annotation_Semantic) {
2010
- /**
2011
- * There is no effect or the effect is indescribable.
2012
- *
2013
- * @generated from enum value: NONE = 0;
2014
- */
2015
- GeneratedCodeInfo_Annotation_Semantic[GeneratedCodeInfo_Annotation_Semantic["NONE"] = 0] = "NONE";
2016
- /**
2017
- * The element is set or otherwise mutated.
2018
- *
2019
- * @generated from enum value: SET = 1;
2020
- */
2021
- GeneratedCodeInfo_Annotation_Semantic[GeneratedCodeInfo_Annotation_Semantic["SET"] = 1] = "SET";
2022
- /**
2023
- * An alias to the element is returned.
2024
- *
2025
- * @generated from enum value: ALIAS = 2;
2026
- */
2027
- GeneratedCodeInfo_Annotation_Semantic[GeneratedCodeInfo_Annotation_Semantic["ALIAS"] = 2] = "ALIAS";
2028
- })(GeneratedCodeInfo_Annotation_Semantic || (exports.GeneratedCodeInfo_Annotation_Semantic = GeneratedCodeInfo_Annotation_Semantic = {}));
2029
- // Retrieve enum metadata with: proto2.getEnumType(GeneratedCodeInfo_Annotation_Semantic)
2030
- proto2_js_1.proto2.util.setEnumType(GeneratedCodeInfo_Annotation_Semantic, "google.protobuf.GeneratedCodeInfo.Annotation.Semantic", [
2031
- { no: 0, name: "NONE" },
2032
- { no: 1, name: "SET" },
2033
- { no: 2, name: "ALIAS" },
2034
- ]);