@dcl/protocol 1.0.0-4732850725.commit-c48ea0a → 1.0.0-47381439163.commit-e9ef0da

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 (613) hide show
  1. package/README.md +296 -13
  2. package/out-js/decentraland/common/border_rect.gen.d.ts +23 -28
  3. package/out-js/decentraland/common/border_rect.gen.js +126 -25
  4. package/out-js/decentraland/common/border_rect.gen.js.map +1 -1
  5. package/out-js/decentraland/common/colors.gen.d.ts +29 -52
  6. package/out-js/decentraland/common/colors.gen.js +132 -47
  7. package/out-js/decentraland/common/colors.gen.js.map +1 -1
  8. package/out-js/decentraland/common/content_mapping.gen.d.ts +8 -20
  9. package/out-js/decentraland/common/content_mapping.gen.js +27 -20
  10. package/out-js/decentraland/common/content_mapping.gen.js.map +1 -1
  11. package/out-js/decentraland/common/gradient.gen.d.ts +50 -0
  12. package/out-js/decentraland/common/gradient.gen.js +148 -0
  13. package/out-js/decentraland/common/gradient.gen.js.map +1 -0
  14. package/out-js/decentraland/common/sdk/user_data.gen.d.ts +24 -176
  15. package/out-js/decentraland/common/sdk/user_data.gen.js +111 -88
  16. package/out-js/decentraland/common/sdk/user_data.gen.js.map +1 -1
  17. package/out-js/decentraland/common/texture.gen.d.ts +56 -252
  18. package/out-js/decentraland/common/texture.gen.js +262 -111
  19. package/out-js/decentraland/common/texture.gen.js.map +1 -1
  20. package/out-js/decentraland/common/vectors.gen.d.ts +38 -68
  21. package/out-js/decentraland/common/vectors.gen.js +180 -65
  22. package/out-js/decentraland/common/vectors.gen.js.map +1 -1
  23. package/out-js/decentraland/kernel/apis/comms_api.gen.d.ts +206 -0
  24. package/out-js/decentraland/kernel/apis/comms_api.gen.js +794 -0
  25. package/out-js/decentraland/kernel/apis/comms_api.gen.js.map +1 -0
  26. package/out-js/decentraland/kernel/apis/communications_controller.gen.d.ts +64 -48
  27. package/out-js/decentraland/kernel/apis/communications_controller.gen.js +323 -37
  28. package/out-js/decentraland/kernel/apis/communications_controller.gen.js.map +1 -1
  29. package/out-js/decentraland/kernel/apis/dev_tools.gen.d.ts +18 -56
  30. package/out-js/decentraland/kernel/apis/dev_tools.gen.js +52 -38
  31. package/out-js/decentraland/kernel/apis/dev_tools.gen.js.map +1 -1
  32. package/out-js/decentraland/kernel/apis/engine_api.gen.d.ts +186 -4088
  33. package/out-js/decentraland/kernel/apis/engine_api.gen.js +680 -1733
  34. package/out-js/decentraland/kernel/apis/engine_api.gen.js.map +1 -1
  35. package/out-js/decentraland/kernel/apis/environment_api.gen.d.ts +150 -690
  36. package/out-js/decentraland/kernel/apis/environment_api.gen.js +458 -336
  37. package/out-js/decentraland/kernel/apis/environment_api.gen.js.map +1 -1
  38. package/out-js/decentraland/kernel/apis/ethereum_controller.gen.d.ts +106 -440
  39. package/out-js/decentraland/kernel/apis/ethereum_controller.gen.js +329 -243
  40. package/out-js/decentraland/kernel/apis/ethereum_controller.gen.js.map +1 -1
  41. package/out-js/decentraland/kernel/apis/parcel_identity.gen.d.ts +70 -518
  42. package/out-js/decentraland/kernel/apis/parcel_identity.gen.js +227 -169
  43. package/out-js/decentraland/kernel/apis/parcel_identity.gen.js.map +1 -1
  44. package/out-js/decentraland/kernel/apis/permissions.gen.d.ts +37 -128
  45. package/out-js/decentraland/kernel/apis/permissions.gen.js +117 -81
  46. package/out-js/decentraland/kernel/apis/permissions.gen.js.map +1 -1
  47. package/out-js/decentraland/kernel/apis/players.gen.d.ts +54 -476
  48. package/out-js/decentraland/kernel/apis/players.gen.js +157 -114
  49. package/out-js/decentraland/kernel/apis/players.gen.js.map +1 -1
  50. package/out-js/decentraland/kernel/apis/portable_experiences.gen.d.ts +84 -309
  51. package/out-js/decentraland/kernel/apis/portable_experiences.gen.js +279 -177
  52. package/out-js/decentraland/kernel/apis/portable_experiences.gen.js.map +1 -1
  53. package/out-js/decentraland/kernel/apis/restricted_actions.gen.d.ts +391 -577
  54. package/out-js/decentraland/kernel/apis/restricted_actions.gen.js +1429 -322
  55. package/out-js/decentraland/kernel/apis/restricted_actions.gen.js.map +1 -1
  56. package/out-js/decentraland/kernel/apis/runtime.gen.d.ts +130 -412
  57. package/out-js/decentraland/kernel/apis/runtime.gen.js +492 -269
  58. package/out-js/decentraland/kernel/apis/runtime.gen.js.map +1 -1
  59. package/out-js/decentraland/kernel/apis/scene.gen.d.ts +18 -132
  60. package/out-js/decentraland/kernel/apis/scene.gen.js +63 -47
  61. package/out-js/decentraland/kernel/apis/scene.gen.js.map +1 -1
  62. package/out-js/decentraland/kernel/apis/scene_credits.gen.d.ts +186 -0
  63. package/out-js/decentraland/kernel/apis/scene_credits.gen.js +388 -0
  64. package/out-js/decentraland/kernel/apis/scene_credits.gen.js.map +1 -0
  65. package/out-js/decentraland/kernel/apis/signed_fetch.gen.d.ts +75 -284
  66. package/out-js/decentraland/kernel/apis/signed_fetch.gen.js +305 -116
  67. package/out-js/decentraland/kernel/apis/signed_fetch.gen.js.map +1 -1
  68. package/out-js/decentraland/kernel/apis/social_controller.gen.d.ts +26 -128
  69. package/out-js/decentraland/kernel/apis/social_controller.gen.js +83 -61
  70. package/out-js/decentraland/kernel/apis/social_controller.gen.js.map +1 -1
  71. package/out-js/decentraland/kernel/apis/testing.gen.d.ts +165 -408
  72. package/out-js/decentraland/kernel/apis/testing.gen.js +668 -195
  73. package/out-js/decentraland/kernel/apis/testing.gen.js.map +1 -1
  74. package/out-js/decentraland/kernel/apis/user_action_module.gen.d.ts +18 -48
  75. package/out-js/decentraland/kernel/apis/user_action_module.gen.js +50 -36
  76. package/out-js/decentraland/kernel/apis/user_action_module.gen.js.map +1 -1
  77. package/out-js/decentraland/kernel/apis/user_identity.gen.d.ts +36 -352
  78. package/out-js/decentraland/kernel/apis/user_identity.gen.js +98 -70
  79. package/out-js/decentraland/kernel/apis/user_identity.gen.js.map +1 -1
  80. package/out-js/decentraland/kernel/comms/rfc4/comms.gen.d.ts +350 -551
  81. package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js +1905 -264
  82. package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js.map +1 -1
  83. package/out-js/decentraland/kernel/comms/rfc5/ws_comms.gen.d.ts +86 -561
  84. package/out-js/decentraland/kernel/comms/rfc5/ws_comms.gen.js +354 -258
  85. package/out-js/decentraland/kernel/comms/rfc5/ws_comms.gen.js.map +1 -1
  86. package/out-js/decentraland/kernel/comms/v3/archipelago.gen.d.ts +233 -1004
  87. package/out-js/decentraland/kernel/comms/v3/archipelago.gen.js +1247 -353
  88. package/out-js/decentraland/kernel/comms/v3/archipelago.gen.js.map +1 -1
  89. package/out-js/decentraland/pulse/pulse_clusters.gen.d.ts +153 -0
  90. package/out-js/decentraland/pulse/pulse_clusters.gen.js +678 -0
  91. package/out-js/decentraland/pulse/pulse_clusters.gen.js.map +1 -0
  92. package/out-js/decentraland/quests/definitions.gen.d.ts +541 -0
  93. package/out-js/decentraland/quests/definitions.gen.js +2739 -0
  94. package/out-js/decentraland/quests/definitions.gen.js.map +1 -0
  95. package/out-js/decentraland/realm/about.gen.d.ts +147 -538
  96. package/out-js/decentraland/realm/about.gen.js +580 -248
  97. package/out-js/decentraland/realm/about.gen.js.map +1 -1
  98. package/out-js/decentraland/sdk/components/animator.gen.d.ts +19 -141
  99. package/out-js/decentraland/sdk/components/animator.gen.js +69 -74
  100. package/out-js/decentraland/sdk/components/animator.gen.js.map +1 -1
  101. package/out-js/decentraland/sdk/components/audio_source.gen.d.ts +19 -32
  102. package/out-js/decentraland/sdk/components/audio_source.gen.js +63 -24
  103. package/out-js/decentraland/sdk/components/audio_source.gen.js.map +1 -1
  104. package/out-js/decentraland/sdk/components/audio_stream.gen.d.ts +18 -24
  105. package/out-js/decentraland/sdk/components/audio_stream.gen.js +72 -22
  106. package/out-js/decentraland/sdk/components/audio_stream.gen.js.map +1 -1
  107. package/out-js/decentraland/sdk/components/avatar_attach.gen.d.ts +31 -20
  108. package/out-js/decentraland/sdk/components/avatar_attach.gen.js +163 -23
  109. package/out-js/decentraland/sdk/components/avatar_attach.gen.js.map +1 -1
  110. package/out-js/decentraland/sdk/components/avatar_base.gen.d.ts +38 -0
  111. package/out-js/decentraland/sdk/components/avatar_base.gen.js +148 -0
  112. package/out-js/decentraland/sdk/components/avatar_base.gen.js.map +1 -0
  113. package/out-js/decentraland/sdk/components/avatar_emote_command.gen.d.ts +64 -0
  114. package/out-js/decentraland/sdk/components/avatar_emote_command.gen.js +171 -0
  115. package/out-js/decentraland/sdk/components/avatar_emote_command.gen.js.map +1 -0
  116. package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.d.ts +57 -0
  117. package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.js +200 -0
  118. package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.js.map +1 -0
  119. package/out-js/decentraland/sdk/components/avatar_locomotion_settings.gen.d.ts +51 -0
  120. package/out-js/decentraland/sdk/components/avatar_locomotion_settings.gen.js +177 -0
  121. package/out-js/decentraland/sdk/components/avatar_locomotion_settings.gen.js.map +1 -0
  122. package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.d.ts +51 -48
  123. package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js +281 -27
  124. package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js.map +1 -1
  125. package/out-js/decentraland/sdk/components/avatar_movement.gen.d.ts +71 -0
  126. package/out-js/decentraland/sdk/components/avatar_movement.gen.js +305 -0
  127. package/out-js/decentraland/sdk/components/avatar_movement.gen.js.map +1 -0
  128. package/out-js/decentraland/sdk/components/avatar_movement_info.gen.d.ts +82 -0
  129. package/out-js/decentraland/sdk/components/avatar_movement_info.gen.js +357 -0
  130. package/out-js/decentraland/sdk/components/avatar_movement_info.gen.js.map +1 -0
  131. package/out-js/decentraland/sdk/components/avatar_nametag.gen.d.ts +58 -0
  132. package/out-js/decentraland/sdk/components/avatar_nametag.gen.js +117 -0
  133. package/out-js/decentraland/sdk/components/avatar_nametag.gen.js.map +1 -0
  134. package/out-js/decentraland/sdk/components/avatar_shape.gen.d.ts +39 -140
  135. package/out-js/decentraland/sdk/components/avatar_shape.gen.js +80 -40
  136. package/out-js/decentraland/sdk/components/avatar_shape.gen.js.map +1 -1
  137. package/out-js/decentraland/sdk/components/billboard.gen.d.ts +17 -18
  138. package/out-js/decentraland/sdk/components/billboard.gen.js +45 -24
  139. package/out-js/decentraland/sdk/components/billboard.gen.js.map +1 -1
  140. package/out-js/decentraland/sdk/components/camera_layer.gen.d.ts +46 -0
  141. package/out-js/decentraland/sdk/components/camera_layer.gen.js +162 -0
  142. package/out-js/decentraland/sdk/components/camera_layer.gen.js.map +1 -0
  143. package/out-js/decentraland/sdk/components/camera_layers.gen.d.ts +30 -0
  144. package/out-js/decentraland/sdk/components/camera_layers.gen.js +81 -0
  145. package/out-js/decentraland/sdk/components/camera_layers.gen.js.map +1 -0
  146. package/out-js/decentraland/sdk/components/camera_mode.gen.d.ts +8 -16
  147. package/out-js/decentraland/sdk/components/camera_mode.gen.js +25 -18
  148. package/out-js/decentraland/sdk/components/camera_mode.gen.js.map +1 -1
  149. package/out-js/decentraland/sdk/components/camera_mode_area.gen.d.ts +38 -45
  150. package/out-js/decentraland/sdk/components/camera_mode_area.gen.js +172 -22
  151. package/out-js/decentraland/sdk/components/camera_mode_area.gen.js.map +1 -1
  152. package/out-js/decentraland/sdk/components/common/avatar_mask.gen.d.ts +8 -0
  153. package/out-js/decentraland/sdk/components/common/avatar_mask.gen.js +34 -0
  154. package/out-js/decentraland/sdk/components/common/avatar_mask.gen.js.map +1 -0
  155. package/out-js/decentraland/sdk/components/common/camera_type.gen.js +4 -4
  156. package/out-js/decentraland/sdk/components/common/camera_type.gen.js.map +1 -1
  157. package/out-js/decentraland/sdk/components/common/explorer_ui.gen.d.ts +23 -0
  158. package/out-js/decentraland/sdk/components/common/explorer_ui.gen.js +94 -0
  159. package/out-js/decentraland/sdk/components/common/explorer_ui.gen.js.map +1 -0
  160. package/out-js/decentraland/sdk/components/common/input_action.gen.d.ts +14 -0
  161. package/out-js/decentraland/sdk/components/common/input_action.gen.js +77 -7
  162. package/out-js/decentraland/sdk/components/common/input_action.gen.js.map +1 -1
  163. package/out-js/decentraland/sdk/components/common/loading_state.gen.d.ts +11 -0
  164. package/out-js/decentraland/sdk/components/common/loading_state.gen.js +57 -0
  165. package/out-js/decentraland/sdk/components/common/loading_state.gen.js.map +1 -0
  166. package/out-js/decentraland/sdk/components/common/raycast_hit.gen.d.ts +8 -136
  167. package/out-js/decentraland/sdk/components/common/raycast_hit.gen.js +31 -24
  168. package/out-js/decentraland/sdk/components/common/raycast_hit.gen.js.map +1 -1
  169. package/out-js/decentraland/sdk/components/common/texts.gen.js +7 -7
  170. package/out-js/decentraland/sdk/components/common/texts.gen.js.map +1 -1
  171. package/out-js/decentraland/sdk/components/engine_info.gen.d.ts +45 -0
  172. package/out-js/decentraland/sdk/components/engine_info.gen.js +119 -0
  173. package/out-js/decentraland/sdk/components/engine_info.gen.js.map +1 -0
  174. package/out-js/decentraland/sdk/components/environment_fog.gen.d.ts +44 -0
  175. package/out-js/decentraland/sdk/components/environment_fog.gen.js +86 -0
  176. package/out-js/decentraland/sdk/components/environment_fog.gen.js.map +1 -0
  177. package/out-js/decentraland/sdk/components/explorer_configuration.gen.d.ts +35 -0
  178. package/out-js/decentraland/sdk/components/explorer_configuration.gen.js +69 -0
  179. package/out-js/decentraland/sdk/components/explorer_configuration.gen.js.map +1 -0
  180. package/out-js/decentraland/sdk/components/explorer_item_purchase_result.gen.d.ts +78 -0
  181. package/out-js/decentraland/sdk/components/explorer_item_purchase_result.gen.js +309 -0
  182. package/out-js/decentraland/sdk/components/explorer_item_purchase_result.gen.js.map +1 -0
  183. package/out-js/decentraland/sdk/components/explorer_ui_events_result.gen.d.ts +73 -0
  184. package/out-js/decentraland/sdk/components/explorer_ui_events_result.gen.js +232 -0
  185. package/out-js/decentraland/sdk/components/explorer_ui_events_result.gen.js.map +1 -0
  186. package/out-js/decentraland/sdk/components/global_light.gen.d.ts +50 -0
  187. package/out-js/decentraland/sdk/components/global_light.gen.js +103 -0
  188. package/out-js/decentraland/sdk/components/global_light.gen.js.map +1 -0
  189. package/out-js/decentraland/sdk/components/gltf_container.gen.d.ts +12 -16
  190. package/out-js/decentraland/sdk/components/gltf_container.gen.js +60 -21
  191. package/out-js/decentraland/sdk/components/gltf_container.gen.js.map +1 -1
  192. package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.d.ts +54 -0
  193. package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.js +159 -0
  194. package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.js.map +1 -0
  195. package/out-js/decentraland/sdk/components/gltf_node.gen.d.ts +66 -0
  196. package/out-js/decentraland/sdk/components/gltf_node.gen.js +69 -0
  197. package/out-js/decentraland/sdk/components/gltf_node.gen.js.map +1 -0
  198. package/out-js/decentraland/sdk/components/gltf_node_modifiers.gen.d.ts +57 -0
  199. package/out-js/decentraland/sdk/components/gltf_node_modifiers.gen.js +165 -0
  200. package/out-js/decentraland/sdk/components/gltf_node_modifiers.gen.js.map +1 -0
  201. package/out-js/decentraland/sdk/components/gltf_node_state.gen.d.ts +43 -0
  202. package/out-js/decentraland/sdk/components/gltf_node_state.gen.js +122 -0
  203. package/out-js/decentraland/sdk/components/gltf_node_state.gen.js.map +1 -0
  204. package/out-js/decentraland/sdk/components/input_modifier.gen.d.ts +52 -0
  205. package/out-js/decentraland/sdk/components/input_modifier.gen.js +233 -0
  206. package/out-js/decentraland/sdk/components/input_modifier.gen.js.map +1 -0
  207. package/out-js/decentraland/sdk/components/material.gen.d.ts +50 -3374
  208. package/out-js/decentraland/sdk/components/material.gen.js +219 -105
  209. package/out-js/decentraland/sdk/components/material.gen.js.map +1 -1
  210. package/out-js/decentraland/sdk/components/mesh_collider.gen.d.ts +65 -181
  211. package/out-js/decentraland/sdk/components/mesh_collider.gen.js +253 -129
  212. package/out-js/decentraland/sdk/components/mesh_collider.gen.js.map +1 -1
  213. package/out-js/decentraland/sdk/components/mesh_renderer.gen.d.ts +62 -226
  214. package/out-js/decentraland/sdk/components/mesh_renderer.gen.js +239 -116
  215. package/out-js/decentraland/sdk/components/mesh_renderer.gen.js.map +1 -1
  216. package/out-js/decentraland/sdk/components/nft_shape.gen.d.ts +11 -51
  217. package/out-js/decentraland/sdk/components/nft_shape.gen.js +37 -30
  218. package/out-js/decentraland/sdk/components/nft_shape.gen.js.map +1 -1
  219. package/out-js/decentraland/sdk/components/player_identity_data.gen.d.ts +37 -0
  220. package/out-js/decentraland/sdk/components/player_identity_data.gen.js +83 -0
  221. package/out-js/decentraland/sdk/components/player_identity_data.gen.js.map +1 -0
  222. package/out-js/decentraland/sdk/components/pointer_events.gen.d.ts +63 -187
  223. package/out-js/decentraland/sdk/components/pointer_events.gen.js +165 -71
  224. package/out-js/decentraland/sdk/components/pointer_events.gen.js.map +1 -1
  225. package/out-js/decentraland/sdk/components/pointer_events_result.gen.d.ts +11 -209
  226. package/out-js/decentraland/sdk/components/pointer_events_result.gen.js +45 -26
  227. package/out-js/decentraland/sdk/components/pointer_events_result.gen.js.map +1 -1
  228. package/out-js/decentraland/sdk/components/pointer_lock.gen.d.ts +8 -16
  229. package/out-js/decentraland/sdk/components/pointer_lock.gen.js +24 -17
  230. package/out-js/decentraland/sdk/components/pointer_lock.gen.js.map +1 -1
  231. package/out-js/decentraland/sdk/components/raycast.gen.d.ts +22 -249
  232. package/out-js/decentraland/sdk/components/raycast.gen.js +124 -52
  233. package/out-js/decentraland/sdk/components/raycast.gen.js.map +1 -1
  234. package/out-js/decentraland/sdk/components/raycast_result.gen.d.ts +10 -348
  235. package/out-js/decentraland/sdk/components/raycast_result.gen.js +46 -25
  236. package/out-js/decentraland/sdk/components/raycast_result.gen.js.map +1 -1
  237. package/out-js/decentraland/sdk/components/realm_info.gen.d.ts +43 -0
  238. package/out-js/decentraland/sdk/components/realm_info.gen.js +151 -0
  239. package/out-js/decentraland/sdk/components/realm_info.gen.js.map +1 -0
  240. package/out-js/decentraland/sdk/components/skybox.gen.d.ts +103 -0
  241. package/out-js/decentraland/sdk/components/skybox.gen.js +355 -0
  242. package/out-js/decentraland/sdk/components/skybox.gen.js.map +1 -0
  243. package/out-js/decentraland/sdk/components/sun.gen.d.ts +53 -0
  244. package/out-js/decentraland/sdk/components/sun.gen.js +114 -0
  245. package/out-js/decentraland/sdk/components/sun.gen.js.map +1 -0
  246. package/out-js/decentraland/sdk/components/text_shape.gen.d.ts +10 -174
  247. package/out-js/decentraland/sdk/components/text_shape.gen.js +59 -39
  248. package/out-js/decentraland/sdk/components/text_shape.gen.js.map +1 -1
  249. package/out-js/decentraland/sdk/components/texture_camera.gen.d.ts +86 -0
  250. package/out-js/decentraland/sdk/components/texture_camera.gen.js +297 -0
  251. package/out-js/decentraland/sdk/components/texture_camera.gen.js.map +1 -0
  252. package/out-js/decentraland/sdk/components/touch_screen_controls.gen.d.ts +77 -0
  253. package/out-js/decentraland/sdk/components/touch_screen_controls.gen.js +203 -0
  254. package/out-js/decentraland/sdk/components/touch_screen_controls.gen.js.map +1 -0
  255. package/out-js/decentraland/sdk/components/tween.gen.d.ts +220 -0
  256. package/out-js/decentraland/sdk/components/tween.gen.js +1214 -0
  257. package/out-js/decentraland/sdk/components/tween.gen.js.map +1 -0
  258. package/out-js/decentraland/sdk/components/tween_sequence.gen.d.ts +39 -0
  259. package/out-js/decentraland/sdk/components/tween_sequence.gen.js +124 -0
  260. package/out-js/decentraland/sdk/components/tween_sequence.gen.js.map +1 -0
  261. package/out-js/decentraland/sdk/components/tween_state.gen.d.ts +40 -0
  262. package/out-js/decentraland/sdk/components/tween_state.gen.js +122 -0
  263. package/out-js/decentraland/sdk/components/tween_state.gen.js.map +1 -0
  264. package/out-js/decentraland/sdk/components/ui_background.gen.d.ts +8 -314
  265. package/out-js/decentraland/sdk/components/ui_background.gen.js +40 -31
  266. package/out-js/decentraland/sdk/components/ui_background.gen.js.map +1 -1
  267. package/out-js/decentraland/sdk/components/ui_canvas.gen.d.ts +35 -0
  268. package/out-js/decentraland/sdk/components/ui_canvas.gen.js +98 -0
  269. package/out-js/decentraland/sdk/components/ui_canvas.gen.js.map +1 -0
  270. package/out-js/decentraland/sdk/components/ui_dropdown.gen.d.ts +10 -78
  271. package/out-js/decentraland/sdk/components/ui_dropdown.gen.js +52 -30
  272. package/out-js/decentraland/sdk/components/ui_dropdown.gen.js.map +1 -1
  273. package/out-js/decentraland/sdk/components/ui_dropdown_result.gen.d.ts +8 -16
  274. package/out-js/decentraland/sdk/components/ui_dropdown_result.gen.js +25 -18
  275. package/out-js/decentraland/sdk/components/ui_dropdown_result.gen.js.map +1 -1
  276. package/out-js/decentraland/sdk/components/ui_input.gen.d.ts +14 -104
  277. package/out-js/decentraland/sdk/components/ui_input.gen.js +72 -26
  278. package/out-js/decentraland/sdk/components/ui_input.gen.js.map +1 -1
  279. package/out-js/decentraland/sdk/components/ui_input_binding.gen.d.ts +52 -0
  280. package/out-js/decentraland/sdk/components/ui_input_binding.gen.js +82 -0
  281. package/out-js/decentraland/sdk/components/ui_input_binding.gen.js.map +1 -0
  282. package/out-js/decentraland/sdk/components/ui_input_result.gen.d.ts +10 -16
  283. package/out-js/decentraland/sdk/components/ui_input_result.gen.js +42 -21
  284. package/out-js/decentraland/sdk/components/ui_input_result.gen.js.map +1 -1
  285. package/out-js/decentraland/sdk/components/ui_scroll_result.gen.d.ts +31 -0
  286. package/out-js/decentraland/sdk/components/ui_scroll_result.gen.js +71 -0
  287. package/out-js/decentraland/sdk/components/ui_scroll_result.gen.js.map +1 -0
  288. package/out-js/decentraland/sdk/components/ui_text.gen.d.ts +28 -64
  289. package/out-js/decentraland/sdk/components/ui_text.gen.js +127 -25
  290. package/out-js/decentraland/sdk/components/ui_text.gen.js.map +1 -1
  291. package/out-js/decentraland/sdk/components/ui_transform.gen.d.ts +84 -216
  292. package/out-js/decentraland/sdk/components/ui_transform.gen.js +709 -143
  293. package/out-js/decentraland/sdk/components/ui_transform.gen.js.map +1 -1
  294. package/out-js/decentraland/sdk/components/video_player.gen.d.ts +18 -36
  295. package/out-js/decentraland/sdk/components/video_player.gen.js +70 -24
  296. package/out-js/decentraland/sdk/components/video_player.gen.js.map +1 -1
  297. package/out-js/decentraland/sdk/components/visibility_component.gen.d.ts +16 -16
  298. package/out-js/decentraland/sdk/components/visibility_component.gen.js +41 -20
  299. package/out-js/decentraland/sdk/components/visibility_component.gen.js.map +1 -1
  300. package/out-js/decentraland/sdk/development/local_development.gen.d.ts +70 -0
  301. package/out-js/decentraland/sdk/development/local_development.gen.js +283 -0
  302. package/out-js/decentraland/sdk/development/local_development.gen.js.map +1 -0
  303. package/out-js/decentraland/sdk/ecs6/components_ecs6.gen.d.ts +1005 -0
  304. package/out-js/decentraland/sdk/ecs6/components_ecs6.gen.js +7850 -0
  305. package/out-js/decentraland/sdk/ecs6/components_ecs6.gen.js.map +1 -0
  306. package/out-js/decentraland/sdk/ecs6/engine_interface_ecs6.gen.d.ts +398 -0
  307. package/out-js/decentraland/sdk/ecs6/engine_interface_ecs6.gen.js +2512 -0
  308. package/out-js/decentraland/sdk/ecs6/engine_interface_ecs6.gen.js.map +1 -0
  309. package/out-js/decentraland/social_service/errors.gen.d.ts +96 -0
  310. package/out-js/decentraland/social_service/errors.gen.js +405 -0
  311. package/out-js/decentraland/social_service/errors.gen.js.map +1 -0
  312. package/out-js/decentraland/social_service/v1/social_service_v1.gen.d.ts +501 -0
  313. package/out-js/decentraland/social_service/v1/social_service_v1.gen.js +2521 -0
  314. package/out-js/decentraland/social_service/v1/social_service_v1.gen.js.map +1 -0
  315. package/out-js/decentraland/social_service/v2/social_service_v2.gen.d.ts +1892 -0
  316. package/out-js/decentraland/social_service/v2/social_service_v2.gen.js +9526 -0
  317. package/out-js/decentraland/social_service/v2/social_service_v2.gen.js.map +1 -0
  318. package/out-js/google/protobuf/descriptor.gen.d.ts +920 -87149
  319. package/out-js/google/protobuf/descriptor.gen.js +1719 -848
  320. package/out-js/google/protobuf/descriptor.gen.js.map +1 -1
  321. package/out-js/google/protobuf/empty.gen.d.ts +8 -8
  322. package/out-js/google/protobuf/empty.gen.js +23 -16
  323. package/out-js/google/protobuf/empty.gen.js.map +1 -1
  324. package/out-js/quests.gen.d.ts +1 -0
  325. package/out-js/{bff-services.gen.js → quests.gen.js} +2 -2
  326. package/out-js/quests.gen.js.map +1 -0
  327. package/out-js/sdk-development.gen.d.ts +1 -0
  328. package/out-js/sdk-development.gen.js +6 -0
  329. package/out-js/sdk-development.gen.js.map +1 -0
  330. package/out-ts/decentraland/common/border_rect.gen.ts +128 -23
  331. package/out-ts/decentraland/common/colors.gen.ts +123 -44
  332. package/out-ts/decentraland/common/content_mapping.gen.ts +19 -19
  333. package/out-ts/decentraland/common/gradient.gen.ts +170 -0
  334. package/out-ts/decentraland/common/sdk/user_data.gen.ts +69 -69
  335. package/out-ts/decentraland/common/texture.gen.ts +235 -87
  336. package/out-ts/decentraland/common/vectors.gen.ts +165 -61
  337. package/out-ts/decentraland/kernel/apis/comms_api.gen.ts +884 -0
  338. package/out-ts/decentraland/kernel/apis/communications_controller.gen.ts +319 -32
  339. package/out-ts/decentraland/kernel/apis/dev_tools.gen.ts +34 -34
  340. package/out-ts/decentraland/kernel/apis/engine_api.gen.ts +515 -1895
  341. package/out-ts/decentraland/kernel/apis/environment_api.gen.ts +325 -292
  342. package/out-ts/decentraland/kernel/apis/ethereum_controller.gen.ts +238 -217
  343. package/out-ts/decentraland/kernel/apis/parcel_identity.gen.ts +141 -141
  344. package/out-ts/decentraland/kernel/apis/permissions.gen.ts +85 -69
  345. package/out-ts/decentraland/kernel/apis/players.gen.ts +109 -97
  346. package/out-ts/decentraland/kernel/apis/portable_experiences.gen.ts +201 -154
  347. package/out-ts/decentraland/kernel/apis/restricted_actions.gen.ts +1418 -284
  348. package/out-ts/decentraland/kernel/apis/runtime.gen.ts +479 -267
  349. package/out-ts/decentraland/kernel/apis/scene.gen.ts +38 -38
  350. package/out-ts/decentraland/kernel/apis/scene_credits.gen.ts +459 -0
  351. package/out-ts/decentraland/kernel/apis/signed_fetch.gen.ts +276 -99
  352. package/out-ts/decentraland/kernel/apis/social_controller.gen.ts +53 -51
  353. package/out-ts/decentraland/kernel/apis/testing.gen.ts +686 -164
  354. package/out-ts/decentraland/kernel/apis/user_action_module.gen.ts +34 -32
  355. package/out-ts/decentraland/kernel/apis/user_identity.gen.ts +66 -62
  356. package/out-ts/decentraland/kernel/comms/rfc4/comms.gen.ts +2120 -238
  357. package/out-ts/decentraland/kernel/comms/rfc5/ws_comms.gen.ts +244 -213
  358. package/out-ts/decentraland/kernel/comms/v3/archipelago.gen.ts +1205 -326
  359. package/out-ts/decentraland/pulse/pulse_clusters.gen.ts +797 -0
  360. package/out-ts/decentraland/quests/definitions.gen.ts +3020 -0
  361. package/out-ts/decentraland/realm/about.gen.ts +588 -213
  362. package/out-ts/decentraland/sdk/components/animator.gen.ts +43 -66
  363. package/out-ts/decentraland/sdk/components/audio_source.gen.ts +69 -22
  364. package/out-ts/decentraland/sdk/components/audio_stream.gen.ts +80 -20
  365. package/out-ts/decentraland/sdk/components/avatar_attach.gen.ts +151 -18
  366. package/out-ts/decentraland/sdk/components/avatar_base.gen.ts +171 -0
  367. package/out-ts/decentraland/sdk/components/avatar_emote_command.gen.ts +202 -0
  368. package/out-ts/decentraland/sdk/components/avatar_equipped_data.gen.ts +237 -0
  369. package/out-ts/decentraland/sdk/components/avatar_locomotion_settings.gen.ts +237 -0
  370. package/out-ts/decentraland/sdk/components/avatar_modifier_area.gen.ts +321 -22
  371. package/out-ts/decentraland/sdk/components/avatar_movement.gen.ts +372 -0
  372. package/out-ts/decentraland/sdk/components/avatar_movement_info.gen.ts +435 -0
  373. package/out-ts/decentraland/sdk/components/avatar_nametag.gen.ts +162 -0
  374. package/out-ts/decentraland/sdk/components/avatar_shape.gen.ts +98 -45
  375. package/out-ts/decentraland/sdk/components/billboard.gen.ts +45 -21
  376. package/out-ts/decentraland/sdk/components/camera_layer.gen.ts +202 -0
  377. package/out-ts/decentraland/sdk/components/camera_layers.gen.ts +92 -0
  378. package/out-ts/decentraland/sdk/components/camera_mode.gen.ts +17 -17
  379. package/out-ts/decentraland/sdk/components/camera_mode_area.gen.ts +199 -20
  380. package/out-ts/decentraland/sdk/components/common/avatar_mask.gen.ts +31 -0
  381. package/out-ts/decentraland/sdk/components/common/explorer_ui.gen.ts +91 -0
  382. package/out-ts/decentraland/sdk/components/common/input_action.gen.ts +70 -0
  383. package/out-ts/decentraland/sdk/components/common/loading_state.gen.ts +54 -0
  384. package/out-ts/decentraland/sdk/components/common/raycast_hit.gen.ts +23 -23
  385. package/out-ts/decentraland/sdk/components/engine_info.gen.ts +149 -0
  386. package/out-ts/decentraland/sdk/components/environment_fog.gen.ts +113 -0
  387. package/out-ts/decentraland/sdk/components/explorer_configuration.gen.ts +87 -0
  388. package/out-ts/decentraland/sdk/components/explorer_item_purchase_result.gen.ts +370 -0
  389. package/out-ts/decentraland/sdk/components/explorer_ui_events_result.gen.ts +281 -0
  390. package/out-ts/decentraland/sdk/components/global_light.gen.ts +138 -0
  391. package/out-ts/decentraland/sdk/components/gltf_container.gen.ts +59 -19
  392. package/out-ts/decentraland/sdk/components/gltf_container_loading_state.gen.ts +195 -0
  393. package/out-ts/decentraland/sdk/components/gltf_node.gen.ts +116 -0
  394. package/out-ts/decentraland/sdk/components/gltf_node_modifiers.gen.ts +204 -0
  395. package/out-ts/decentraland/sdk/components/gltf_node_state.gen.ts +139 -0
  396. package/out-ts/decentraland/sdk/components/input_modifier.gen.ts +265 -0
  397. package/out-ts/decentraland/sdk/components/material.gen.ts +213 -94
  398. package/out-ts/decentraland/sdk/components/mesh_collider.gen.ts +213 -98
  399. package/out-ts/decentraland/sdk/components/mesh_renderer.gen.ts +211 -96
  400. package/out-ts/decentraland/sdk/components/nft_shape.gen.ts +28 -28
  401. package/out-ts/decentraland/sdk/components/player_identity_data.gen.ts +102 -0
  402. package/out-ts/decentraland/sdk/components/pointer_events.gen.ts +188 -60
  403. package/out-ts/decentraland/sdk/components/pointer_events_result.gen.ts +45 -26
  404. package/out-ts/decentraland/sdk/components/pointer_lock.gen.ts +16 -16
  405. package/out-ts/decentraland/sdk/components/raycast.gen.ts +110 -35
  406. package/out-ts/decentraland/sdk/components/raycast_result.gen.ts +36 -21
  407. package/out-ts/decentraland/sdk/components/realm_info.gen.ts +183 -0
  408. package/out-ts/decentraland/sdk/components/skybox.gen.ts +440 -0
  409. package/out-ts/decentraland/sdk/components/sun.gen.ts +155 -0
  410. package/out-ts/decentraland/sdk/components/text_shape.gen.ts +56 -38
  411. package/out-ts/decentraland/sdk/components/texture_camera.gen.ts +362 -0
  412. package/out-ts/decentraland/sdk/components/touch_screen_controls.gen.ts +265 -0
  413. package/out-ts/decentraland/sdk/components/tween.gen.ts +1336 -0
  414. package/out-ts/decentraland/sdk/components/tween_sequence.gen.ts +134 -0
  415. package/out-ts/decentraland/sdk/components/tween_state.gen.ts +136 -0
  416. package/out-ts/decentraland/sdk/components/ui_background.gen.ts +24 -23
  417. package/out-ts/decentraland/sdk/components/ui_canvas.gen.ts +115 -0
  418. package/out-ts/decentraland/sdk/components/ui_dropdown.gen.ts +44 -26
  419. package/out-ts/decentraland/sdk/components/ui_dropdown_result.gen.ts +17 -17
  420. package/out-ts/decentraland/sdk/components/ui_input.gen.ts +79 -25
  421. package/out-ts/decentraland/sdk/components/ui_input_binding.gen.ts +114 -0
  422. package/out-ts/decentraland/sdk/components/ui_input_result.gen.ts +36 -19
  423. package/out-ts/decentraland/sdk/components/ui_scroll_result.gen.ts +83 -0
  424. package/out-ts/decentraland/sdk/components/ui_text.gen.ts +143 -25
  425. package/out-ts/decentraland/sdk/components/ui_transform.gen.ts +772 -113
  426. package/out-ts/decentraland/sdk/components/video_player.gen.ts +81 -23
  427. package/out-ts/decentraland/sdk/components/visibility_component.gen.ts +46 -19
  428. package/out-ts/decentraland/sdk/development/local_development.gen.ts +316 -0
  429. package/out-ts/decentraland/sdk/ecs6/components_ecs6.gen.ts +8957 -0
  430. package/out-ts/decentraland/sdk/ecs6/engine_interface_ecs6.gen.ts +2886 -0
  431. package/out-ts/decentraland/social_service/errors.gen.ts +442 -0
  432. package/out-ts/decentraland/social_service/v1/social_service_v1.gen.ts +2799 -0
  433. package/out-ts/decentraland/social_service/v2/social_service_v2.gen.ts +10939 -0
  434. package/out-ts/google/protobuf/descriptor.gen.ts +1959 -618
  435. package/out-ts/google/protobuf/empty.gen.ts +15 -15
  436. package/out-ts/quests.gen.ts +3 -0
  437. package/out-ts/sdk-development.gen.ts +3 -0
  438. package/package.json +23 -11
  439. package/proto/decentraland/common/auth.proto +22 -0
  440. package/proto/decentraland/common/border_rect.proto +9 -1
  441. package/proto/decentraland/common/colors.proto +6 -0
  442. package/proto/decentraland/common/floats.proto +8 -0
  443. package/proto/decentraland/common/gradient.proto +16 -0
  444. package/proto/decentraland/common/options.proto +51 -0
  445. package/proto/decentraland/common/quantization_example.proto +164 -0
  446. package/proto/decentraland/common/texture.proto +21 -10
  447. package/proto/decentraland/common/vectors.proto +7 -0
  448. package/proto/decentraland/kernel/apis/comms_api.proto +61 -0
  449. package/proto/decentraland/kernel/apis/communications_controller.proto +19 -4
  450. package/proto/decentraland/kernel/apis/engine_api.proto +9 -110
  451. package/proto/decentraland/kernel/apis/permissions.proto +1 -0
  452. package/proto/decentraland/kernel/apis/portable_experiences.proto +4 -1
  453. package/proto/decentraland/kernel/apis/restricted_actions.proto +119 -9
  454. package/proto/decentraland/kernel/apis/runtime.proto +22 -9
  455. package/proto/decentraland/kernel/apis/scene_credits.proto +108 -0
  456. package/proto/decentraland/kernel/apis/signed_fetch.proto +6 -0
  457. package/proto/decentraland/kernel/apis/testing.proto +45 -0
  458. package/proto/decentraland/kernel/comms/rfc4/comms.proto +180 -0
  459. package/proto/decentraland/kernel/comms/rfc5/ws_comms.proto +3 -0
  460. package/proto/decentraland/kernel/comms/v3/archipelago.proto +73 -0
  461. package/proto/decentraland/pulse/pulse_client.proto +147 -0
  462. package/proto/decentraland/pulse/pulse_clusters.proto +94 -0
  463. package/proto/decentraland/pulse/pulse_server.proto +217 -0
  464. package/proto/decentraland/pulse/pulse_shared.proto +57 -0
  465. package/proto/decentraland/quests/definitions.proto +185 -0
  466. package/proto/decentraland/realm/about.proto +69 -4
  467. package/proto/decentraland/sdk/components/animator.proto +9 -4
  468. package/proto/decentraland/sdk/components/asset_load.proto +10 -0
  469. package/proto/decentraland/sdk/components/asset_load_loading_state.proto +16 -0
  470. package/proto/decentraland/sdk/components/audio_analysis.proto +44 -0
  471. package/proto/decentraland/sdk/components/audio_event.proto +12 -0
  472. package/proto/decentraland/sdk/components/audio_source.proto +10 -2
  473. package/proto/decentraland/sdk/components/audio_stream.proto +8 -0
  474. package/proto/decentraland/sdk/components/avatar_attach.proto +26 -3
  475. package/proto/decentraland/sdk/components/avatar_base.proto +16 -0
  476. package/proto/decentraland/sdk/components/avatar_emote_command.proto +32 -0
  477. package/proto/decentraland/sdk/components/avatar_equipped_data.proto +23 -0
  478. package/proto/decentraland/sdk/components/avatar_locomotion_settings.proto +21 -0
  479. package/proto/decentraland/sdk/components/avatar_modifier_area.proto +22 -0
  480. package/proto/decentraland/sdk/components/avatar_movement.proto +63 -0
  481. package/proto/decentraland/sdk/components/avatar_movement_info.proto +38 -0
  482. package/proto/decentraland/sdk/components/avatar_nametag.proto +33 -0
  483. package/proto/decentraland/sdk/components/avatar_shape.proto +35 -17
  484. package/proto/decentraland/sdk/components/billboard.proto +9 -3
  485. package/proto/decentraland/sdk/components/camera_layer.proto +30 -0
  486. package/proto/decentraland/sdk/components/camera_layers.proto +11 -0
  487. package/proto/decentraland/sdk/components/camera_mode_area.proto +18 -1
  488. package/proto/decentraland/sdk/components/common/avatar_mask.proto +7 -0
  489. package/proto/decentraland/sdk/components/common/camera_transition.proto +11 -0
  490. package/proto/decentraland/sdk/components/common/explorer_ui.proto +17 -0
  491. package/proto/decentraland/sdk/components/common/input_action.proto +12 -0
  492. package/proto/decentraland/sdk/components/common/loading_state.proto +10 -0
  493. package/proto/decentraland/sdk/components/common/media_state.proto +13 -0
  494. package/proto/decentraland/sdk/components/engine_info.proto +17 -0
  495. package/proto/decentraland/sdk/components/environment_fog.proto +21 -0
  496. package/proto/decentraland/sdk/components/explorer_configuration.proto +11 -0
  497. package/proto/decentraland/sdk/components/explorer_item_purchase_result.proto +24 -0
  498. package/proto/decentraland/sdk/components/explorer_ui_events_result.proto +33 -0
  499. package/proto/decentraland/sdk/components/global_light.proto +22 -0
  500. package/proto/decentraland/sdk/components/gltf_container.proto +6 -0
  501. package/proto/decentraland/sdk/components/gltf_container_loading_state.proto +26 -0
  502. package/proto/decentraland/sdk/components/gltf_node.proto +42 -0
  503. package/proto/decentraland/sdk/components/gltf_node_modifiers.proto +25 -0
  504. package/proto/decentraland/sdk/components/gltf_node_state.proto +20 -0
  505. package/proto/decentraland/sdk/components/input_modifier.proto +22 -0
  506. package/proto/decentraland/sdk/components/light_source.proto +28 -0
  507. package/proto/decentraland/sdk/components/main_camera.proto +11 -0
  508. package/proto/decentraland/sdk/components/map_pin.proto +16 -0
  509. package/proto/decentraland/sdk/components/material.proto +16 -4
  510. package/proto/decentraland/sdk/components/mesh_collider.proto +12 -5
  511. package/proto/decentraland/sdk/components/mesh_renderer.proto +10 -5
  512. package/proto/decentraland/sdk/components/nft_shape.proto +3 -3
  513. package/proto/decentraland/sdk/components/particle_system.proto +133 -0
  514. package/proto/decentraland/sdk/components/physics_combined_force.proto +21 -0
  515. package/proto/decentraland/sdk/components/physics_combined_impulse.proto +23 -0
  516. package/proto/decentraland/sdk/components/player_identity_data.proto +13 -0
  517. package/proto/decentraland/sdk/components/pointer_events.proto +33 -2
  518. package/proto/decentraland/sdk/components/pointer_events_result.proto +2 -1
  519. package/proto/decentraland/sdk/components/primary_pointer_info.proto +44 -0
  520. package/proto/decentraland/sdk/components/raycast.proto +13 -0
  521. package/proto/decentraland/sdk/components/raycast_result.proto +1 -0
  522. package/proto/decentraland/sdk/components/realm_info.proto +15 -0
  523. package/proto/decentraland/sdk/components/skybox.proto +51 -0
  524. package/proto/decentraland/sdk/components/skybox_time.proto +20 -0
  525. package/proto/decentraland/sdk/components/sun.proto +26 -0
  526. package/proto/decentraland/sdk/components/text_shape.proto +1 -0
  527. package/proto/decentraland/sdk/components/texture_camera.proto +46 -0
  528. package/proto/decentraland/sdk/components/touch_screen_controls.proto +38 -0
  529. package/proto/decentraland/sdk/components/trigger_area.proto +23 -0
  530. package/proto/decentraland/sdk/components/trigger_area_result.proto +34 -0
  531. package/proto/decentraland/sdk/components/tween.proto +117 -0
  532. package/proto/decentraland/sdk/components/tween_sequence.proto +18 -0
  533. package/proto/decentraland/sdk/components/tween_state.proto +18 -0
  534. package/proto/decentraland/sdk/components/ui_background.proto +2 -2
  535. package/proto/decentraland/sdk/components/ui_canvas.proto +16 -0
  536. package/proto/decentraland/sdk/components/ui_canvas_information.proto +30 -0
  537. package/proto/decentraland/sdk/components/ui_dropdown.proto +1 -0
  538. package/proto/decentraland/sdk/components/ui_input.proto +3 -0
  539. package/proto/decentraland/sdk/components/ui_input_binding.proto +27 -0
  540. package/proto/decentraland/sdk/components/ui_input_result.proto +1 -0
  541. package/proto/decentraland/sdk/components/ui_layout_feedback.proto +28 -0
  542. package/proto/decentraland/sdk/components/ui_scroll_result.proto +12 -0
  543. package/proto/decentraland/sdk/components/ui_text.proto +15 -3
  544. package/proto/decentraland/sdk/components/ui_transform.proto +57 -0
  545. package/proto/decentraland/sdk/components/video_event.proto +25 -0
  546. package/proto/decentraland/sdk/components/video_player.proto +8 -0
  547. package/proto/decentraland/sdk/components/virtual_camera.proto +18 -0
  548. package/proto/decentraland/sdk/components/visibility_component.proto +7 -0
  549. package/proto/decentraland/sdk/development/local_development.proto +29 -0
  550. package/proto/decentraland/sdk/ecs6/components_ecs6.proto +678 -0
  551. package/proto/decentraland/sdk/ecs6/engine_interface_ecs6.proto +151 -0
  552. package/proto/decentraland/social_service/errors.proto +30 -0
  553. package/proto/decentraland/{social/friendships/friendships.proto → social_service/v1/social_service_v1.proto} +73 -28
  554. package/proto/decentraland/social_service/v2/social_service_v2.proto +769 -0
  555. package/protoc-gen-bitwise/generator_csharp.js +248 -0
  556. package/protoc-gen-bitwise/options.js +139 -0
  557. package/protoc-gen-bitwise/plugin.js +87 -0
  558. package/protoc-gen-bitwise/runtime/cs/Quantize.cs +70 -0
  559. package/protoc-gen-bitwise/wire.js +239 -0
  560. package/public/comms.proto +2 -1
  561. package/public/quests.proto +5 -0
  562. package/public/sdk-apis.proto +2 -0
  563. package/public/sdk-components.proto +48 -19
  564. package/public/sdk-development.proto +5 -0
  565. package/public/social.proto +3 -1
  566. package/out-js/bff-services.gen.d.ts +0 -1
  567. package/out-js/bff-services.gen.js.map +0 -1
  568. package/out-js/decentraland/bff/authentication_service.gen.d.ts +0 -253
  569. package/out-js/decentraland/bff/authentication_service.gen.js +0 -351
  570. package/out-js/decentraland/bff/authentication_service.gen.js.map +0 -1
  571. package/out-js/decentraland/bff/comms_director_service.gen.d.ts +0 -289
  572. package/out-js/decentraland/bff/comms_director_service.gen.js +0 -228
  573. package/out-js/decentraland/bff/comms_director_service.gen.js.map +0 -1
  574. package/out-js/decentraland/bff/comms_service.gen.d.ts +0 -348
  575. package/out-js/decentraland/bff/comms_service.gen.js +0 -175
  576. package/out-js/decentraland/bff/comms_service.gen.js.map +0 -1
  577. package/out-js/decentraland/bff/http_endpoints.gen.d.ts +0 -929
  578. package/out-js/decentraland/bff/http_endpoints.gen.js +0 -873
  579. package/out-js/decentraland/bff/http_endpoints.gen.js.map +0 -1
  580. package/out-js/decentraland/bff/topics_service.gen.d.ts +0 -272
  581. package/out-js/decentraland/bff/topics_service.gen.js +0 -386
  582. package/out-js/decentraland/bff/topics_service.gen.js.map +0 -1
  583. package/out-js/decentraland/social/friendships/friendships.gen.d.ts +0 -4893
  584. package/out-js/decentraland/social/friendships/friendships.gen.js +0 -1399
  585. package/out-js/decentraland/social/friendships/friendships.gen.js.map +0 -1
  586. package/out-ts/bff-services.gen.ts +0 -3
  587. package/out-ts/decentraland/bff/authentication_service.gen.ts +0 -419
  588. package/out-ts/decentraland/bff/comms_director_service.gen.ts +0 -272
  589. package/out-ts/decentraland/bff/comms_service.gen.ts +0 -212
  590. package/out-ts/decentraland/bff/http_endpoints.gen.ts +0 -1058
  591. package/out-ts/decentraland/bff/topics_service.gen.ts +0 -468
  592. package/out-ts/decentraland/social/friendships/friendships.gen.ts +0 -1680
  593. package/proto/buf.yaml +0 -47
  594. package/proto/decentraland/bff/authentication_service.proto +0 -39
  595. package/proto/decentraland/bff/comms_director_service.proto +0 -33
  596. package/proto/decentraland/bff/comms_service.proto +0 -25
  597. package/proto/decentraland/bff/http_endpoints.proto +0 -80
  598. package/proto/decentraland/bff/topics_service.proto +0 -34
  599. package/proto/google/LICENSE +0 -27
  600. package/proto/google/README.md +0 -1
  601. package/proto/google/api/annotations.json +0 -83
  602. package/proto/google/api/annotations.proto +0 -11
  603. package/proto/google/api/http.json +0 -86
  604. package/proto/google/api/http.proto +0 -31
  605. package/proto/google/protobuf/api.json +0 -118
  606. package/proto/google/protobuf/api.proto +0 -34
  607. package/proto/google/protobuf/descriptor.json +0 -739
  608. package/proto/google/protobuf/descriptor.proto +0 -286
  609. package/proto/google/protobuf/source_context.json +0 -20
  610. package/proto/google/protobuf/source_context.proto +0 -7
  611. package/proto/google/protobuf/type.json +0 -202
  612. package/proto/google/protobuf/type.proto +0 -89
  613. package/public/bff-services.proto +0 -16
@@ -4,25 +4,58 @@ import _m0 from "protobufjs/minimal";
4
4
 
5
5
  export const protobufPackage = "google.protobuf";
6
6
 
7
+ /**
8
+ * The protocol compiler can output a FileDescriptorSet containing the .proto
9
+ * files it parses.
10
+ */
7
11
  export interface FileDescriptorSet {
8
12
  file: FileDescriptorProto[];
9
13
  }
10
14
 
15
+ /** Describes a complete .proto file. */
11
16
  export interface FileDescriptorProto {
17
+ /** file name, relative to root of source tree */
12
18
  name: string;
19
+ /** e.g. "foo", "foo.bar", etc. */
13
20
  package: string;
21
+ /** Names of files imported by this file. */
14
22
  dependency: string[];
23
+ /** Indexes of the public imported files in the dependency list above. */
15
24
  publicDependency: number[];
25
+ /**
26
+ * Indexes of the weak imported files in the dependency list.
27
+ * For Google-internal migration only. Do not use.
28
+ */
16
29
  weakDependency: number[];
30
+ /** All top-level definitions in this file. */
17
31
  messageType: DescriptorProto[];
18
32
  enumType: EnumDescriptorProto[];
19
33
  service: ServiceDescriptorProto[];
20
34
  extension: FieldDescriptorProto[];
21
- options: FileOptions | undefined;
22
- sourceCodeInfo: SourceCodeInfo | undefined;
35
+ options:
36
+ | FileOptions
37
+ | undefined;
38
+ /**
39
+ * This field contains optional information about the original source code.
40
+ * You may safely remove this entire field without harming runtime
41
+ * functionality of the descriptors -- the information is needed only by
42
+ * development tools.
43
+ */
44
+ sourceCodeInfo:
45
+ | SourceCodeInfo
46
+ | undefined;
47
+ /**
48
+ * The syntax of the proto file.
49
+ * The supported values are "proto2", "proto3", and "editions".
50
+ *
51
+ * If `edition` is present, this value must be "editions".
52
+ */
23
53
  syntax: string;
54
+ /** The edition of the proto file, which is an opaque string. */
55
+ edition: string;
24
56
  }
25
57
 
58
+ /** Describes a message type. */
26
59
  export interface DescriptorProto {
27
60
  name: string;
28
61
  field: FieldDescriptorProto[];
@@ -33,50 +66,149 @@ export interface DescriptorProto {
33
66
  oneofDecl: OneofDescriptorProto[];
34
67
  options: MessageOptions | undefined;
35
68
  reservedRange: DescriptorProto_ReservedRange[];
69
+ /**
70
+ * Reserved field names, which may not be used by fields in the same message.
71
+ * A given name may only be reserved once.
72
+ */
36
73
  reservedName: string[];
37
74
  }
38
75
 
39
76
  export interface DescriptorProto_ExtensionRange {
77
+ /** Inclusive. */
40
78
  start: number;
79
+ /** Exclusive. */
41
80
  end: number;
81
+ options: ExtensionRangeOptions | undefined;
42
82
  }
43
83
 
84
+ /**
85
+ * Range of reserved tag numbers. Reserved tag numbers may not be used by
86
+ * fields or extension ranges in the same message. Reserved ranges may
87
+ * not overlap.
88
+ */
44
89
  export interface DescriptorProto_ReservedRange {
90
+ /** Inclusive. */
45
91
  start: number;
92
+ /** Exclusive. */
46
93
  end: number;
47
94
  }
48
95
 
96
+ export interface ExtensionRangeOptions {
97
+ /** The parser stores options it doesn't recognize here. See above. */
98
+ uninterpretedOption: UninterpretedOption[];
99
+ }
100
+
101
+ /** Describes a field within a message. */
49
102
  export interface FieldDescriptorProto {
50
103
  name: string;
51
104
  number: number;
52
105
  label: FieldDescriptorProto_Label;
106
+ /**
107
+ * If type_name is set, this need not be set. If both this and type_name
108
+ * are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP.
109
+ */
53
110
  type: FieldDescriptorProto_Type;
111
+ /**
112
+ * For message and enum types, this is the name of the type. If the name
113
+ * starts with a '.', it is fully-qualified. Otherwise, C++-like scoping
114
+ * rules are used to find the type (i.e. first the nested types within this
115
+ * message are searched, then within the parent, on up to the root
116
+ * namespace).
117
+ */
54
118
  typeName: string;
119
+ /**
120
+ * For extensions, this is the name of the type being extended. It is
121
+ * resolved in the same manner as type_name.
122
+ */
55
123
  extendee: string;
124
+ /**
125
+ * For numeric types, contains the original text representation of the value.
126
+ * For booleans, "true" or "false".
127
+ * For strings, contains the default text contents (not escaped in any way).
128
+ * For bytes, contains the C escaped value. All bytes >= 128 are escaped.
129
+ */
56
130
  defaultValue: string;
131
+ /**
132
+ * If set, gives the index of a oneof in the containing type's oneof_decl
133
+ * list. This field is a member of that oneof.
134
+ */
57
135
  oneofIndex: number;
136
+ /**
137
+ * JSON name of this field. The value is set by protocol compiler. If the
138
+ * user has set a "json_name" option on this field, that option's value
139
+ * will be used. Otherwise, it's deduced from the field's name by converting
140
+ * it to camelCase.
141
+ */
58
142
  jsonName: string;
59
- options: FieldOptions | undefined;
143
+ options:
144
+ | FieldOptions
145
+ | undefined;
146
+ /**
147
+ * If true, this is a proto3 "optional". When a proto3 field is optional, it
148
+ * tracks presence regardless of field type.
149
+ *
150
+ * When proto3_optional is true, this field must be belong to a oneof to
151
+ * signal to old proto3 clients that presence is tracked for this field. This
152
+ * oneof is known as a "synthetic" oneof, and this field must be its sole
153
+ * member (each proto3 optional field gets its own synthetic oneof). Synthetic
154
+ * oneofs exist in the descriptor only, and do not generate any API. Synthetic
155
+ * oneofs must be ordered after all "real" oneofs.
156
+ *
157
+ * For message fields, proto3_optional doesn't create any semantic change,
158
+ * since non-repeated message fields always track presence. However it still
159
+ * indicates the semantic detail of whether the user wrote "optional" or not.
160
+ * This can be useful for round-tripping the .proto file. For consistency we
161
+ * give message fields a synthetic oneof also, even though it is not required
162
+ * to track presence. This is especially important because the parser can't
163
+ * tell if a field is a message or an enum, so it must always create a
164
+ * synthetic oneof.
165
+ *
166
+ * Proto2 optional fields do not set this flag, because they already indicate
167
+ * optional with `LABEL_OPTIONAL`.
168
+ */
169
+ proto3Optional: boolean;
60
170
  }
61
171
 
62
172
  export enum FieldDescriptorProto_Type {
173
+ /**
174
+ * TYPE_DOUBLE - 0 is reserved for errors.
175
+ * Order is weird for historical reasons.
176
+ */
63
177
  TYPE_DOUBLE = 1,
64
178
  TYPE_FLOAT = 2,
179
+ /**
180
+ * TYPE_INT64 - Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if
181
+ * negative values are likely.
182
+ */
65
183
  TYPE_INT64 = 3,
66
184
  TYPE_UINT64 = 4,
185
+ /**
186
+ * TYPE_INT32 - Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if
187
+ * negative values are likely.
188
+ */
67
189
  TYPE_INT32 = 5,
68
190
  TYPE_FIXED64 = 6,
69
191
  TYPE_FIXED32 = 7,
70
192
  TYPE_BOOL = 8,
71
193
  TYPE_STRING = 9,
194
+ /**
195
+ * TYPE_GROUP - Tag-delimited aggregate.
196
+ * Group type is deprecated and not supported in proto3. However, Proto3
197
+ * implementations should still be able to parse the group wire format and
198
+ * treat group fields as unknown fields.
199
+ */
72
200
  TYPE_GROUP = 10,
201
+ /** TYPE_MESSAGE - Length-delimited aggregate. */
73
202
  TYPE_MESSAGE = 11,
203
+ /** TYPE_BYTES - New in version 2. */
74
204
  TYPE_BYTES = 12,
75
205
  TYPE_UINT32 = 13,
76
206
  TYPE_ENUM = 14,
77
207
  TYPE_SFIXED32 = 15,
78
208
  TYPE_SFIXED64 = 16,
209
+ /** TYPE_SINT32 - Uses ZigZag encoding. */
79
210
  TYPE_SINT32 = 17,
211
+ /** TYPE_SINT64 - Uses ZigZag encoding. */
80
212
  TYPE_SINT64 = 18,
81
213
  UNRECOGNIZED = -1,
82
214
  }
@@ -189,6 +321,7 @@ export function fieldDescriptorProto_TypeToJSON(object: FieldDescriptorProto_Typ
189
321
  }
190
322
 
191
323
  export enum FieldDescriptorProto_Label {
324
+ /** LABEL_OPTIONAL - 0 is reserved for errors */
192
325
  LABEL_OPTIONAL = 1,
193
326
  LABEL_REQUIRED = 2,
194
327
  LABEL_REPEATED = 3,
@@ -227,60 +360,207 @@ export function fieldDescriptorProto_LabelToJSON(object: FieldDescriptorProto_La
227
360
  }
228
361
  }
229
362
 
363
+ /** Describes a oneof. */
230
364
  export interface OneofDescriptorProto {
231
365
  name: string;
232
366
  options: OneofOptions | undefined;
233
367
  }
234
368
 
369
+ /** Describes an enum type. */
235
370
  export interface EnumDescriptorProto {
236
371
  name: string;
237
372
  value: EnumValueDescriptorProto[];
238
- options: EnumOptions | undefined;
373
+ options:
374
+ | EnumOptions
375
+ | undefined;
376
+ /**
377
+ * Range of reserved numeric values. Reserved numeric values may not be used
378
+ * by enum values in the same enum declaration. Reserved ranges may not
379
+ * overlap.
380
+ */
381
+ reservedRange: EnumDescriptorProto_EnumReservedRange[];
382
+ /**
383
+ * Reserved enum value names, which may not be reused. A given name may only
384
+ * be reserved once.
385
+ */
386
+ reservedName: string[];
387
+ }
388
+
389
+ /**
390
+ * Range of reserved numeric values. Reserved values may not be used by
391
+ * entries in the same enum. Reserved ranges may not overlap.
392
+ *
393
+ * Note that this is distinct from DescriptorProto.ReservedRange in that it
394
+ * is inclusive such that it can appropriately represent the entire int32
395
+ * domain.
396
+ */
397
+ export interface EnumDescriptorProto_EnumReservedRange {
398
+ /** Inclusive. */
399
+ start: number;
400
+ /** Inclusive. */
401
+ end: number;
239
402
  }
240
403
 
404
+ /** Describes a value within an enum. */
241
405
  export interface EnumValueDescriptorProto {
242
406
  name: string;
243
407
  number: number;
244
408
  options: EnumValueOptions | undefined;
245
409
  }
246
410
 
411
+ /** Describes a service. */
247
412
  export interface ServiceDescriptorProto {
248
413
  name: string;
249
414
  method: MethodDescriptorProto[];
250
415
  options: ServiceOptions | undefined;
251
416
  }
252
417
 
418
+ /** Describes a method of a service. */
253
419
  export interface MethodDescriptorProto {
254
420
  name: string;
421
+ /**
422
+ * Input and output type names. These are resolved in the same way as
423
+ * FieldDescriptorProto.type_name, but must refer to a message type.
424
+ */
255
425
  inputType: string;
256
426
  outputType: string;
257
- options: MethodOptions | undefined;
427
+ options:
428
+ | MethodOptions
429
+ | undefined;
430
+ /** Identifies if client streams multiple client messages */
258
431
  clientStreaming: boolean;
432
+ /** Identifies if server streams multiple server messages */
259
433
  serverStreaming: boolean;
260
434
  }
261
435
 
262
436
  export interface FileOptions {
437
+ /**
438
+ * Sets the Java package where classes generated from this .proto will be
439
+ * placed. By default, the proto package is used, but this is often
440
+ * inappropriate because proto packages do not normally start with backwards
441
+ * domain names.
442
+ */
263
443
  javaPackage: string;
444
+ /**
445
+ * Controls the name of the wrapper Java class generated for the .proto file.
446
+ * That class will always contain the .proto file's getDescriptor() method as
447
+ * well as any top-level extensions defined in the .proto file.
448
+ * If java_multiple_files is disabled, then all the other classes from the
449
+ * .proto file will be nested inside the single wrapper outer class.
450
+ */
264
451
  javaOuterClassname: string;
452
+ /**
453
+ * If enabled, then the Java code generator will generate a separate .java
454
+ * file for each top-level message, enum, and service defined in the .proto
455
+ * file. Thus, these types will *not* be nested inside the wrapper class
456
+ * named by java_outer_classname. However, the wrapper class will still be
457
+ * generated to contain the file's getDescriptor() method as well as any
458
+ * top-level extensions defined in the file.
459
+ */
265
460
  javaMultipleFiles: boolean;
266
- /** @deprecated */
461
+ /**
462
+ * This option does nothing.
463
+ *
464
+ * @deprecated
465
+ */
267
466
  javaGenerateEqualsAndHash: boolean;
467
+ /**
468
+ * If set true, then the Java2 code generator will generate code that
469
+ * throws an exception whenever an attempt is made to assign a non-UTF-8
470
+ * byte sequence to a string field.
471
+ * Message reflection will do the same.
472
+ * However, an extension field still accepts non-UTF-8 byte sequences.
473
+ * This option has no effect on when used with the lite runtime.
474
+ */
268
475
  javaStringCheckUtf8: boolean;
269
476
  optimizeFor: FileOptions_OptimizeMode;
477
+ /**
478
+ * Sets the Go package where structs generated from this .proto will be
479
+ * placed. If omitted, the Go package will be derived from the following:
480
+ * - The basename of the package import path, if provided.
481
+ * - Otherwise, the package statement in the .proto file, if present.
482
+ * - Otherwise, the basename of the .proto file, without extension.
483
+ */
270
484
  goPackage: string;
485
+ /**
486
+ * Should generic services be generated in each language? "Generic" services
487
+ * are not specific to any particular RPC system. They are generated by the
488
+ * main code generators in each language (without additional plugins).
489
+ * Generic services were the only kind of service generation supported by
490
+ * early versions of google.protobuf.
491
+ *
492
+ * Generic services are now considered deprecated in favor of using plugins
493
+ * that generate code specific to your particular RPC system. Therefore,
494
+ * these default to false. Old code which depends on generic services should
495
+ * explicitly set them to true.
496
+ */
271
497
  ccGenericServices: boolean;
272
498
  javaGenericServices: boolean;
273
499
  pyGenericServices: boolean;
500
+ phpGenericServices: boolean;
501
+ /**
502
+ * Is this file deprecated?
503
+ * Depending on the target platform, this can emit Deprecated annotations
504
+ * for everything in the file, or it will be completely ignored; in the very
505
+ * least, this is a formalization for deprecating files.
506
+ */
274
507
  deprecated: boolean;
508
+ /**
509
+ * Enables the use of arenas for the proto messages in this file. This applies
510
+ * only to generated classes for C++.
511
+ */
275
512
  ccEnableArenas: boolean;
513
+ /**
514
+ * Sets the objective c class prefix which is prepended to all objective c
515
+ * generated classes from this .proto. There is no default.
516
+ */
276
517
  objcClassPrefix: string;
518
+ /** Namespace for generated classes; defaults to the package. */
277
519
  csharpNamespace: string;
520
+ /**
521
+ * By default Swift generators will take the proto package and CamelCase it
522
+ * replacing '.' with underscore and use that to prefix the types/symbols
523
+ * defined. When this options is provided, they will use this value instead
524
+ * to prefix the types/symbols defined.
525
+ */
526
+ swiftPrefix: string;
527
+ /**
528
+ * Sets the php class prefix which is prepended to all php generated classes
529
+ * from this .proto. Default is empty.
530
+ */
531
+ phpClassPrefix: string;
532
+ /**
533
+ * Use this option to change the namespace of php generated classes. Default
534
+ * is empty. When this option is empty, the package name will be used for
535
+ * determining the namespace.
536
+ */
537
+ phpNamespace: string;
538
+ /**
539
+ * Use this option to change the namespace of php generated metadata classes.
540
+ * Default is empty. When this option is empty, the proto file name will be
541
+ * used for determining the namespace.
542
+ */
543
+ phpMetadataNamespace: string;
544
+ /**
545
+ * Use this option to change the package of ruby generated classes. Default
546
+ * is empty. When this option is not set, the package name will be used for
547
+ * determining the ruby package.
548
+ */
549
+ rubyPackage: string;
550
+ /**
551
+ * The parser stores options it doesn't recognize here.
552
+ * See the documentation for the "Options" section above.
553
+ */
278
554
  uninterpretedOption: UninterpretedOption[];
279
555
  }
280
556
 
557
+ /** Generated classes can be optimized for speed or code size. */
281
558
  export enum FileOptions_OptimizeMode {
559
+ /** SPEED - Generate complete code for parsing, serialization, */
282
560
  SPEED = 1,
561
+ /** CODE_SIZE - etc. */
283
562
  CODE_SIZE = 2,
563
+ /** LITE_RUNTIME - Generate code using MessageLite and the lite runtime. */
284
564
  LITE_RUNTIME = 3,
285
565
  UNRECOGNIZED = -1,
286
566
  }
@@ -318,24 +598,174 @@ export function fileOptions_OptimizeModeToJSON(object: FileOptions_OptimizeMode)
318
598
  }
319
599
 
320
600
  export interface MessageOptions {
601
+ /**
602
+ * Set true to use the old proto1 MessageSet wire format for extensions.
603
+ * This is provided for backwards-compatibility with the MessageSet wire
604
+ * format. You should not use this for any other reason: It's less
605
+ * efficient, has fewer features, and is more complicated.
606
+ *
607
+ * The message must be defined exactly as follows:
608
+ * message Foo {
609
+ * option message_set_wire_format = true;
610
+ * extensions 4 to max;
611
+ * }
612
+ * Note that the message cannot have any defined fields; MessageSets only
613
+ * have extensions.
614
+ *
615
+ * All extensions of your type must be singular messages; e.g. they cannot
616
+ * be int32s, enums, or repeated messages.
617
+ *
618
+ * Because this is an option, the above two restrictions are not enforced by
619
+ * the protocol compiler.
620
+ */
321
621
  messageSetWireFormat: boolean;
622
+ /**
623
+ * Disables the generation of the standard "descriptor()" accessor, which can
624
+ * conflict with a field of the same name. This is meant to make migration
625
+ * from proto1 easier; new code should avoid fields named "descriptor".
626
+ */
322
627
  noStandardDescriptorAccessor: boolean;
628
+ /**
629
+ * Is this message deprecated?
630
+ * Depending on the target platform, this can emit Deprecated annotations
631
+ * for the message, or it will be completely ignored; in the very least,
632
+ * this is a formalization for deprecating messages.
633
+ */
323
634
  deprecated: boolean;
635
+ /**
636
+ * NOTE: Do not set the option in .proto files. Always use the maps syntax
637
+ * instead. The option should only be implicitly set by the proto compiler
638
+ * parser.
639
+ *
640
+ * Whether the message is an automatically generated map entry type for the
641
+ * maps field.
642
+ *
643
+ * For maps fields:
644
+ * map<KeyType, ValueType> map_field = 1;
645
+ * The parsed descriptor looks like:
646
+ * message MapFieldEntry {
647
+ * option map_entry = true;
648
+ * optional KeyType key = 1;
649
+ * optional ValueType value = 2;
650
+ * }
651
+ * repeated MapFieldEntry map_field = 1;
652
+ *
653
+ * Implementations may choose not to generate the map_entry=true message, but
654
+ * use a native map in the target language to hold the keys and values.
655
+ * The reflection APIs in such implementations still need to work as
656
+ * if the field is a repeated message field.
657
+ */
324
658
  mapEntry: boolean;
659
+ /**
660
+ * Enable the legacy handling of JSON field name conflicts. This lowercases
661
+ * and strips underscored from the fields before comparison in proto3 only.
662
+ * The new behavior takes `json_name` into account and applies to proto2 as
663
+ * well.
664
+ *
665
+ * This should only be used as a temporary measure against broken builds due
666
+ * to the change in behavior for JSON field name conflicts.
667
+ *
668
+ * TODO(b/261750190) This is legacy behavior we plan to remove once downstream
669
+ * teams have had time to migrate.
670
+ *
671
+ * @deprecated
672
+ */
673
+ deprecatedLegacyJsonFieldConflicts: boolean;
674
+ /** The parser stores options it doesn't recognize here. See above. */
325
675
  uninterpretedOption: UninterpretedOption[];
326
676
  }
327
677
 
328
678
  export interface FieldOptions {
679
+ /**
680
+ * The ctype option instructs the C++ code generator to use a different
681
+ * representation of the field than it normally would. See the specific
682
+ * options below. This option is not yet implemented in the open source
683
+ * release -- sorry, we'll try to include it in a future version!
684
+ */
329
685
  ctype: FieldOptions_CType;
686
+ /**
687
+ * The packed option can be enabled for repeated primitive fields to enable
688
+ * a more efficient representation on the wire. Rather than repeatedly
689
+ * writing the tag and type for each element, the entire array is encoded as
690
+ * a single length-delimited blob. In proto3, only explicit setting it to
691
+ * false will avoid using packed encoding.
692
+ */
330
693
  packed: boolean;
694
+ /**
695
+ * The jstype option determines the JavaScript type used for values of the
696
+ * field. The option is permitted only for 64 bit integral and fixed types
697
+ * (int64, uint64, sint64, fixed64, sfixed64). A field with jstype JS_STRING
698
+ * is represented as JavaScript string, which avoids loss of precision that
699
+ * can happen when a large value is converted to a floating point JavaScript.
700
+ * Specifying JS_NUMBER for the jstype causes the generated JavaScript code to
701
+ * use the JavaScript "number" type. The behavior of the default option
702
+ * JS_NORMAL is implementation dependent.
703
+ *
704
+ * This option is an enum to permit additional types to be added, e.g.
705
+ * goog.math.Integer.
706
+ */
331
707
  jstype: FieldOptions_JSType;
708
+ /**
709
+ * Should this field be parsed lazily? Lazy applies only to message-type
710
+ * fields. It means that when the outer message is initially parsed, the
711
+ * inner message's contents will not be parsed but instead stored in encoded
712
+ * form. The inner message will actually be parsed when it is first accessed.
713
+ *
714
+ * This is only a hint. Implementations are free to choose whether to use
715
+ * eager or lazy parsing regardless of the value of this option. However,
716
+ * setting this option true suggests that the protocol author believes that
717
+ * using lazy parsing on this field is worth the additional bookkeeping
718
+ * overhead typically needed to implement it.
719
+ *
720
+ * This option does not affect the public interface of any generated code;
721
+ * all method signatures remain the same. Furthermore, thread-safety of the
722
+ * interface is not affected by this option; const methods remain safe to
723
+ * call from multiple threads concurrently, while non-const methods continue
724
+ * to require exclusive access.
725
+ *
726
+ * Note that implementations may choose not to check required fields within
727
+ * a lazy sub-message. That is, calling IsInitialized() on the outer message
728
+ * may return true even if the inner message has missing required fields.
729
+ * This is necessary because otherwise the inner message would have to be
730
+ * parsed in order to perform the check, defeating the purpose of lazy
731
+ * parsing. An implementation which chooses not to check required fields
732
+ * must be consistent about it. That is, for any particular sub-message, the
733
+ * implementation must either *always* check its required fields, or *never*
734
+ * check its required fields, regardless of whether or not the message has
735
+ * been parsed.
736
+ *
737
+ * As of May 2022, lazy verifies the contents of the byte stream during
738
+ * parsing. An invalid byte stream will cause the overall parsing to fail.
739
+ */
332
740
  lazy: boolean;
741
+ /**
742
+ * unverified_lazy does no correctness checks on the byte stream. This should
743
+ * only be used where lazy with verification is prohibitive for performance
744
+ * reasons.
745
+ */
746
+ unverifiedLazy: boolean;
747
+ /**
748
+ * Is this field deprecated?
749
+ * Depending on the target platform, this can emit Deprecated annotations
750
+ * for accessors, or it will be completely ignored; in the very least, this
751
+ * is a formalization for deprecating fields.
752
+ */
333
753
  deprecated: boolean;
754
+ /** For Google-internal migration only. Do not use. */
334
755
  weak: boolean;
756
+ /**
757
+ * Indicate that the field value should not be printed out when using debug
758
+ * formats, e.g. when the field contains sensitive credentials.
759
+ */
760
+ debugRedact: boolean;
761
+ retention: FieldOptions_OptionRetention;
762
+ target: FieldOptions_OptionTargetType;
763
+ /** The parser stores options it doesn't recognize here. See above. */
335
764
  uninterpretedOption: UninterpretedOption[];
336
765
  }
337
766
 
338
767
  export enum FieldOptions_CType {
768
+ /** STRING - Default mode. */
339
769
  STRING = 0,
340
770
  CORD = 1,
341
771
  STRING_PIECE = 2,
@@ -375,8 +805,11 @@ export function fieldOptions_CTypeToJSON(object: FieldOptions_CType): string {
375
805
  }
376
806
 
377
807
  export enum FieldOptions_JSType {
808
+ /** JS_NORMAL - Use the default type. */
378
809
  JS_NORMAL = 0,
810
+ /** JS_STRING - Use JavaScript strings. */
379
811
  JS_STRING = 1,
812
+ /** JS_NUMBER - Use JavaScript numbers. */
380
813
  JS_NUMBER = 2,
381
814
  UNRECOGNIZED = -1,
382
815
  }
@@ -413,33 +846,267 @@ export function fieldOptions_JSTypeToJSON(object: FieldOptions_JSType): string {
413
846
  }
414
847
  }
415
848
 
849
+ /**
850
+ * If set to RETENTION_SOURCE, the option will be omitted from the binary.
851
+ * Note: as of January 2023, support for this is in progress and does not yet
852
+ * have an effect (b/264593489).
853
+ */
854
+ export enum FieldOptions_OptionRetention {
855
+ RETENTION_UNKNOWN = 0,
856
+ RETENTION_RUNTIME = 1,
857
+ RETENTION_SOURCE = 2,
858
+ UNRECOGNIZED = -1,
859
+ }
860
+
861
+ export function fieldOptions_OptionRetentionFromJSON(object: any): FieldOptions_OptionRetention {
862
+ switch (object) {
863
+ case 0:
864
+ case "RETENTION_UNKNOWN":
865
+ return FieldOptions_OptionRetention.RETENTION_UNKNOWN;
866
+ case 1:
867
+ case "RETENTION_RUNTIME":
868
+ return FieldOptions_OptionRetention.RETENTION_RUNTIME;
869
+ case 2:
870
+ case "RETENTION_SOURCE":
871
+ return FieldOptions_OptionRetention.RETENTION_SOURCE;
872
+ case -1:
873
+ case "UNRECOGNIZED":
874
+ default:
875
+ return FieldOptions_OptionRetention.UNRECOGNIZED;
876
+ }
877
+ }
878
+
879
+ export function fieldOptions_OptionRetentionToJSON(object: FieldOptions_OptionRetention): string {
880
+ switch (object) {
881
+ case FieldOptions_OptionRetention.RETENTION_UNKNOWN:
882
+ return "RETENTION_UNKNOWN";
883
+ case FieldOptions_OptionRetention.RETENTION_RUNTIME:
884
+ return "RETENTION_RUNTIME";
885
+ case FieldOptions_OptionRetention.RETENTION_SOURCE:
886
+ return "RETENTION_SOURCE";
887
+ case FieldOptions_OptionRetention.UNRECOGNIZED:
888
+ default:
889
+ return "UNRECOGNIZED";
890
+ }
891
+ }
892
+
893
+ /**
894
+ * This indicates the types of entities that the field may apply to when used
895
+ * as an option. If it is unset, then the field may be freely used as an
896
+ * option on any kind of entity. Note: as of January 2023, support for this is
897
+ * in progress and does not yet have an effect (b/264593489).
898
+ */
899
+ export enum FieldOptions_OptionTargetType {
900
+ TARGET_TYPE_UNKNOWN = 0,
901
+ TARGET_TYPE_FILE = 1,
902
+ TARGET_TYPE_EXTENSION_RANGE = 2,
903
+ TARGET_TYPE_MESSAGE = 3,
904
+ TARGET_TYPE_FIELD = 4,
905
+ TARGET_TYPE_ONEOF = 5,
906
+ TARGET_TYPE_ENUM = 6,
907
+ TARGET_TYPE_ENUM_ENTRY = 7,
908
+ TARGET_TYPE_SERVICE = 8,
909
+ TARGET_TYPE_METHOD = 9,
910
+ UNRECOGNIZED = -1,
911
+ }
912
+
913
+ export function fieldOptions_OptionTargetTypeFromJSON(object: any): FieldOptions_OptionTargetType {
914
+ switch (object) {
915
+ case 0:
916
+ case "TARGET_TYPE_UNKNOWN":
917
+ return FieldOptions_OptionTargetType.TARGET_TYPE_UNKNOWN;
918
+ case 1:
919
+ case "TARGET_TYPE_FILE":
920
+ return FieldOptions_OptionTargetType.TARGET_TYPE_FILE;
921
+ case 2:
922
+ case "TARGET_TYPE_EXTENSION_RANGE":
923
+ return FieldOptions_OptionTargetType.TARGET_TYPE_EXTENSION_RANGE;
924
+ case 3:
925
+ case "TARGET_TYPE_MESSAGE":
926
+ return FieldOptions_OptionTargetType.TARGET_TYPE_MESSAGE;
927
+ case 4:
928
+ case "TARGET_TYPE_FIELD":
929
+ return FieldOptions_OptionTargetType.TARGET_TYPE_FIELD;
930
+ case 5:
931
+ case "TARGET_TYPE_ONEOF":
932
+ return FieldOptions_OptionTargetType.TARGET_TYPE_ONEOF;
933
+ case 6:
934
+ case "TARGET_TYPE_ENUM":
935
+ return FieldOptions_OptionTargetType.TARGET_TYPE_ENUM;
936
+ case 7:
937
+ case "TARGET_TYPE_ENUM_ENTRY":
938
+ return FieldOptions_OptionTargetType.TARGET_TYPE_ENUM_ENTRY;
939
+ case 8:
940
+ case "TARGET_TYPE_SERVICE":
941
+ return FieldOptions_OptionTargetType.TARGET_TYPE_SERVICE;
942
+ case 9:
943
+ case "TARGET_TYPE_METHOD":
944
+ return FieldOptions_OptionTargetType.TARGET_TYPE_METHOD;
945
+ case -1:
946
+ case "UNRECOGNIZED":
947
+ default:
948
+ return FieldOptions_OptionTargetType.UNRECOGNIZED;
949
+ }
950
+ }
951
+
952
+ export function fieldOptions_OptionTargetTypeToJSON(object: FieldOptions_OptionTargetType): string {
953
+ switch (object) {
954
+ case FieldOptions_OptionTargetType.TARGET_TYPE_UNKNOWN:
955
+ return "TARGET_TYPE_UNKNOWN";
956
+ case FieldOptions_OptionTargetType.TARGET_TYPE_FILE:
957
+ return "TARGET_TYPE_FILE";
958
+ case FieldOptions_OptionTargetType.TARGET_TYPE_EXTENSION_RANGE:
959
+ return "TARGET_TYPE_EXTENSION_RANGE";
960
+ case FieldOptions_OptionTargetType.TARGET_TYPE_MESSAGE:
961
+ return "TARGET_TYPE_MESSAGE";
962
+ case FieldOptions_OptionTargetType.TARGET_TYPE_FIELD:
963
+ return "TARGET_TYPE_FIELD";
964
+ case FieldOptions_OptionTargetType.TARGET_TYPE_ONEOF:
965
+ return "TARGET_TYPE_ONEOF";
966
+ case FieldOptions_OptionTargetType.TARGET_TYPE_ENUM:
967
+ return "TARGET_TYPE_ENUM";
968
+ case FieldOptions_OptionTargetType.TARGET_TYPE_ENUM_ENTRY:
969
+ return "TARGET_TYPE_ENUM_ENTRY";
970
+ case FieldOptions_OptionTargetType.TARGET_TYPE_SERVICE:
971
+ return "TARGET_TYPE_SERVICE";
972
+ case FieldOptions_OptionTargetType.TARGET_TYPE_METHOD:
973
+ return "TARGET_TYPE_METHOD";
974
+ case FieldOptions_OptionTargetType.UNRECOGNIZED:
975
+ default:
976
+ return "UNRECOGNIZED";
977
+ }
978
+ }
979
+
416
980
  export interface OneofOptions {
981
+ /** The parser stores options it doesn't recognize here. See above. */
417
982
  uninterpretedOption: UninterpretedOption[];
418
983
  }
419
984
 
420
985
  export interface EnumOptions {
986
+ /**
987
+ * Set this option to true to allow mapping different tag names to the same
988
+ * value.
989
+ */
421
990
  allowAlias: boolean;
991
+ /**
992
+ * Is this enum deprecated?
993
+ * Depending on the target platform, this can emit Deprecated annotations
994
+ * for the enum, or it will be completely ignored; in the very least, this
995
+ * is a formalization for deprecating enums.
996
+ */
422
997
  deprecated: boolean;
998
+ /**
999
+ * Enable the legacy handling of JSON field name conflicts. This lowercases
1000
+ * and strips underscored from the fields before comparison in proto3 only.
1001
+ * The new behavior takes `json_name` into account and applies to proto2 as
1002
+ * well.
1003
+ * TODO(b/261750190) Remove this legacy behavior once downstream teams have
1004
+ * had time to migrate.
1005
+ *
1006
+ * @deprecated
1007
+ */
1008
+ deprecatedLegacyJsonFieldConflicts: boolean;
1009
+ /** The parser stores options it doesn't recognize here. See above. */
423
1010
  uninterpretedOption: UninterpretedOption[];
424
1011
  }
425
1012
 
426
1013
  export interface EnumValueOptions {
1014
+ /**
1015
+ * Is this enum value deprecated?
1016
+ * Depending on the target platform, this can emit Deprecated annotations
1017
+ * for the enum value, or it will be completely ignored; in the very least,
1018
+ * this is a formalization for deprecating enum values.
1019
+ */
427
1020
  deprecated: boolean;
1021
+ /** The parser stores options it doesn't recognize here. See above. */
428
1022
  uninterpretedOption: UninterpretedOption[];
429
1023
  }
430
1024
 
431
1025
  export interface ServiceOptions {
1026
+ /**
1027
+ * Is this service deprecated?
1028
+ * Depending on the target platform, this can emit Deprecated annotations
1029
+ * for the service, or it will be completely ignored; in the very least,
1030
+ * this is a formalization for deprecating services.
1031
+ */
432
1032
  deprecated: boolean;
1033
+ /** The parser stores options it doesn't recognize here. See above. */
433
1034
  uninterpretedOption: UninterpretedOption[];
434
1035
  }
435
1036
 
436
1037
  export interface MethodOptions {
1038
+ /**
1039
+ * Is this method deprecated?
1040
+ * Depending on the target platform, this can emit Deprecated annotations
1041
+ * for the method, or it will be completely ignored; in the very least,
1042
+ * this is a formalization for deprecating methods.
1043
+ */
437
1044
  deprecated: boolean;
1045
+ idempotencyLevel: MethodOptions_IdempotencyLevel;
1046
+ /** The parser stores options it doesn't recognize here. See above. */
438
1047
  uninterpretedOption: UninterpretedOption[];
439
1048
  }
440
1049
 
1050
+ /**
1051
+ * Is this method side-effect-free (or safe in HTTP parlance), or idempotent,
1052
+ * or neither? HTTP based RPC implementation may choose GET verb for safe
1053
+ * methods, and PUT verb for idempotent methods instead of the default POST.
1054
+ */
1055
+ export enum MethodOptions_IdempotencyLevel {
1056
+ IDEMPOTENCY_UNKNOWN = 0,
1057
+ /** NO_SIDE_EFFECTS - implies idempotent */
1058
+ NO_SIDE_EFFECTS = 1,
1059
+ /** IDEMPOTENT - idempotent, but may have side effects */
1060
+ IDEMPOTENT = 2,
1061
+ UNRECOGNIZED = -1,
1062
+ }
1063
+
1064
+ export function methodOptions_IdempotencyLevelFromJSON(object: any): MethodOptions_IdempotencyLevel {
1065
+ switch (object) {
1066
+ case 0:
1067
+ case "IDEMPOTENCY_UNKNOWN":
1068
+ return MethodOptions_IdempotencyLevel.IDEMPOTENCY_UNKNOWN;
1069
+ case 1:
1070
+ case "NO_SIDE_EFFECTS":
1071
+ return MethodOptions_IdempotencyLevel.NO_SIDE_EFFECTS;
1072
+ case 2:
1073
+ case "IDEMPOTENT":
1074
+ return MethodOptions_IdempotencyLevel.IDEMPOTENT;
1075
+ case -1:
1076
+ case "UNRECOGNIZED":
1077
+ default:
1078
+ return MethodOptions_IdempotencyLevel.UNRECOGNIZED;
1079
+ }
1080
+ }
1081
+
1082
+ export function methodOptions_IdempotencyLevelToJSON(object: MethodOptions_IdempotencyLevel): string {
1083
+ switch (object) {
1084
+ case MethodOptions_IdempotencyLevel.IDEMPOTENCY_UNKNOWN:
1085
+ return "IDEMPOTENCY_UNKNOWN";
1086
+ case MethodOptions_IdempotencyLevel.NO_SIDE_EFFECTS:
1087
+ return "NO_SIDE_EFFECTS";
1088
+ case MethodOptions_IdempotencyLevel.IDEMPOTENT:
1089
+ return "IDEMPOTENT";
1090
+ case MethodOptions_IdempotencyLevel.UNRECOGNIZED:
1091
+ default:
1092
+ return "UNRECOGNIZED";
1093
+ }
1094
+ }
1095
+
1096
+ /**
1097
+ * A message representing a option the parser does not recognize. This only
1098
+ * appears in options protos created by the compiler::Parser class.
1099
+ * DescriptorPool resolves these when building Descriptor objects. Therefore,
1100
+ * options protos in descriptor objects (e.g. returned by Descriptor::options(),
1101
+ * or produced by Descriptor::CopyTo()) will never have UninterpretedOptions
1102
+ * in them.
1103
+ */
441
1104
  export interface UninterpretedOption {
442
1105
  name: UninterpretedOption_NamePart[];
1106
+ /**
1107
+ * The value of the uninterpreted option, in whatever type the tokenizer
1108
+ * identified it as during parsing. Exactly one of these should be set.
1109
+ */
443
1110
  identifierValue: string;
444
1111
  positiveIntValue: number;
445
1112
  negativeIntValue: number;
@@ -448,47 +1115,254 @@ export interface UninterpretedOption {
448
1115
  aggregateValue: string;
449
1116
  }
450
1117
 
1118
+ /**
1119
+ * The name of the uninterpreted option. Each string represents a segment in
1120
+ * a dot-separated name. is_extension is true iff a segment represents an
1121
+ * extension (denoted with parentheses in options specs in .proto files).
1122
+ * E.g.,{ ["foo", false], ["bar.baz", true], ["moo", false] } represents
1123
+ * "foo.(bar.baz).moo".
1124
+ */
451
1125
  export interface UninterpretedOption_NamePart {
452
1126
  namePart: string;
453
1127
  isExtension: boolean;
454
1128
  }
455
1129
 
1130
+ /**
1131
+ * Encapsulates information about the original source file from which a
1132
+ * FileDescriptorProto was generated.
1133
+ */
456
1134
  export interface SourceCodeInfo {
1135
+ /**
1136
+ * A Location identifies a piece of source code in a .proto file which
1137
+ * corresponds to a particular definition. This information is intended
1138
+ * to be useful to IDEs, code indexers, documentation generators, and similar
1139
+ * tools.
1140
+ *
1141
+ * For example, say we have a file like:
1142
+ * message Foo {
1143
+ * optional string foo = 1;
1144
+ * }
1145
+ * Let's look at just the field definition:
1146
+ * optional string foo = 1;
1147
+ * ^ ^^ ^^ ^ ^^^
1148
+ * a bc de f ghi
1149
+ * We have the following locations:
1150
+ * span path represents
1151
+ * [a,i) [ 4, 0, 2, 0 ] The whole field definition.
1152
+ * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional).
1153
+ * [c,d) [ 4, 0, 2, 0, 5 ] The type (string).
1154
+ * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo).
1155
+ * [g,h) [ 4, 0, 2, 0, 3 ] The number (1).
1156
+ *
1157
+ * Notes:
1158
+ * - A location may refer to a repeated field itself (i.e. not to any
1159
+ * particular index within it). This is used whenever a set of elements are
1160
+ * logically enclosed in a single code segment. For example, an entire
1161
+ * extend block (possibly containing multiple extension definitions) will
1162
+ * have an outer location whose path refers to the "extensions" repeated
1163
+ * field without an index.
1164
+ * - Multiple locations may have the same path. This happens when a single
1165
+ * logical declaration is spread out across multiple places. The most
1166
+ * obvious example is the "extend" block again -- there may be multiple
1167
+ * extend blocks in the same scope, each of which will have the same path.
1168
+ * - A location's span is not always a subset of its parent's span. For
1169
+ * example, the "extendee" of an extension declaration appears at the
1170
+ * beginning of the "extend" block and is shared by all extensions within
1171
+ * the block.
1172
+ * - Just because a location's span is a subset of some other location's span
1173
+ * does not mean that it is a descendant. For example, a "group" defines
1174
+ * both a type and a field in a single declaration. Thus, the locations
1175
+ * corresponding to the type and field and their components will overlap.
1176
+ * - Code which tries to interpret locations should probably be designed to
1177
+ * ignore those that it doesn't understand, as more types of locations could
1178
+ * be recorded in the future.
1179
+ */
457
1180
  location: SourceCodeInfo_Location[];
458
1181
  }
459
1182
 
460
1183
  export interface SourceCodeInfo_Location {
1184
+ /**
1185
+ * Identifies which part of the FileDescriptorProto was defined at this
1186
+ * location.
1187
+ *
1188
+ * Each element is a field number or an index. They form a path from
1189
+ * the root FileDescriptorProto to the place where the definition occurs.
1190
+ * For example, this path:
1191
+ * [ 4, 3, 2, 7, 1 ]
1192
+ * refers to:
1193
+ * file.message_type(3) // 4, 3
1194
+ * .field(7) // 2, 7
1195
+ * .name() // 1
1196
+ * This is because FileDescriptorProto.message_type has field number 4:
1197
+ * repeated DescriptorProto message_type = 4;
1198
+ * and DescriptorProto.field has field number 2:
1199
+ * repeated FieldDescriptorProto field = 2;
1200
+ * and FieldDescriptorProto.name has field number 1:
1201
+ * optional string name = 1;
1202
+ *
1203
+ * Thus, the above path gives the location of a field name. If we removed
1204
+ * the last element:
1205
+ * [ 4, 3, 2, 7 ]
1206
+ * this path refers to the whole field declaration (from the beginning
1207
+ * of the label to the terminating semicolon).
1208
+ */
461
1209
  path: number[];
1210
+ /**
1211
+ * Always has exactly three or four elements: start line, start column,
1212
+ * end line (optional, otherwise assumed same as start line), end column.
1213
+ * These are packed into a single field for efficiency. Note that line
1214
+ * and column numbers are zero-based -- typically you will want to add
1215
+ * 1 to each before displaying to a user.
1216
+ */
462
1217
  span: number[];
1218
+ /**
1219
+ * If this SourceCodeInfo represents a complete declaration, these are any
1220
+ * comments appearing before and after the declaration which appear to be
1221
+ * attached to the declaration.
1222
+ *
1223
+ * A series of line comments appearing on consecutive lines, with no other
1224
+ * tokens appearing on those lines, will be treated as a single comment.
1225
+ *
1226
+ * leading_detached_comments will keep paragraphs of comments that appear
1227
+ * before (but not connected to) the current element. Each paragraph,
1228
+ * separated by empty lines, will be one comment element in the repeated
1229
+ * field.
1230
+ *
1231
+ * Only the comment content is provided; comment markers (e.g. //) are
1232
+ * stripped out. For block comments, leading whitespace and an asterisk
1233
+ * will be stripped from the beginning of each line other than the first.
1234
+ * Newlines are included in the output.
1235
+ *
1236
+ * Examples:
1237
+ *
1238
+ * optional int32 foo = 1; // Comment attached to foo.
1239
+ * // Comment attached to bar.
1240
+ * optional int32 bar = 2;
1241
+ *
1242
+ * optional string baz = 3;
1243
+ * // Comment attached to baz.
1244
+ * // Another line attached to baz.
1245
+ *
1246
+ * // Comment attached to moo.
1247
+ * //
1248
+ * // Another line attached to moo.
1249
+ * optional double moo = 4;
1250
+ *
1251
+ * // Detached comment for corge. This is not leading or trailing comments
1252
+ * // to moo or corge because there are blank lines separating it from
1253
+ * // both.
1254
+ *
1255
+ * // Detached comment for corge paragraph 2.
1256
+ *
1257
+ * optional string corge = 5;
1258
+ * /* Block comment attached
1259
+ * * to corge. Leading asterisks
1260
+ * * will be removed. * /
1261
+ * /* Block comment attached to
1262
+ * * grault. * /
1263
+ * optional int32 grault = 6;
1264
+ *
1265
+ * // ignored detached comments.
1266
+ */
463
1267
  leadingComments: string;
464
1268
  trailingComments: string;
465
1269
  leadingDetachedComments: string[];
466
1270
  }
467
1271
 
1272
+ /**
1273
+ * Describes the relationship between generated code and its original source
1274
+ * file. A GeneratedCodeInfo message is associated with only one generated
1275
+ * source file, but may contain references to different source .proto files.
1276
+ */
468
1277
  export interface GeneratedCodeInfo {
1278
+ /**
1279
+ * An Annotation connects some span of text in generated code to an element
1280
+ * of its generating .proto file.
1281
+ */
469
1282
  annotation: GeneratedCodeInfo_Annotation[];
470
1283
  }
471
1284
 
472
1285
  export interface GeneratedCodeInfo_Annotation {
1286
+ /**
1287
+ * Identifies the element in the original source .proto file. This field
1288
+ * is formatted the same as SourceCodeInfo.Location.path.
1289
+ */
473
1290
  path: number[];
1291
+ /** Identifies the filesystem path to the original source .proto. */
474
1292
  sourceFile: string;
1293
+ /**
1294
+ * Identifies the starting offset in bytes in the generated code
1295
+ * that relates to the identified object.
1296
+ */
475
1297
  begin: number;
1298
+ /**
1299
+ * Identifies the ending offset in bytes in the generated code that
1300
+ * relates to the identified object. The end offset should be one past
1301
+ * the last relevant byte (so the length of the text = end - begin).
1302
+ */
476
1303
  end: number;
1304
+ semantic: GeneratedCodeInfo_Annotation_Semantic;
1305
+ }
1306
+
1307
+ /**
1308
+ * Represents the identified object's effect on the element in the original
1309
+ * .proto file.
1310
+ */
1311
+ export enum GeneratedCodeInfo_Annotation_Semantic {
1312
+ /** NONE - There is no effect or the effect is indescribable. */
1313
+ NONE = 0,
1314
+ /** SET - The element is set or otherwise mutated. */
1315
+ SET = 1,
1316
+ /** ALIAS - An alias to the element is returned. */
1317
+ ALIAS = 2,
1318
+ UNRECOGNIZED = -1,
1319
+ }
1320
+
1321
+ export function generatedCodeInfo_Annotation_SemanticFromJSON(object: any): GeneratedCodeInfo_Annotation_Semantic {
1322
+ switch (object) {
1323
+ case 0:
1324
+ case "NONE":
1325
+ return GeneratedCodeInfo_Annotation_Semantic.NONE;
1326
+ case 1:
1327
+ case "SET":
1328
+ return GeneratedCodeInfo_Annotation_Semantic.SET;
1329
+ case 2:
1330
+ case "ALIAS":
1331
+ return GeneratedCodeInfo_Annotation_Semantic.ALIAS;
1332
+ case -1:
1333
+ case "UNRECOGNIZED":
1334
+ default:
1335
+ return GeneratedCodeInfo_Annotation_Semantic.UNRECOGNIZED;
1336
+ }
1337
+ }
1338
+
1339
+ export function generatedCodeInfo_Annotation_SemanticToJSON(object: GeneratedCodeInfo_Annotation_Semantic): string {
1340
+ switch (object) {
1341
+ case GeneratedCodeInfo_Annotation_Semantic.NONE:
1342
+ return "NONE";
1343
+ case GeneratedCodeInfo_Annotation_Semantic.SET:
1344
+ return "SET";
1345
+ case GeneratedCodeInfo_Annotation_Semantic.ALIAS:
1346
+ return "ALIAS";
1347
+ case GeneratedCodeInfo_Annotation_Semantic.UNRECOGNIZED:
1348
+ default:
1349
+ return "UNRECOGNIZED";
1350
+ }
477
1351
  }
478
1352
 
479
1353
  function createBaseFileDescriptorSet(): FileDescriptorSet {
480
1354
  return { file: [] };
481
1355
  }
482
1356
 
483
- export const FileDescriptorSet = {
484
- encode(message: FileDescriptorSet, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
485
- for (const v of message.file) {
1357
+ export namespace FileDescriptorSet {
1358
+ export function encode(message: FileDescriptorSet, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
1359
+ for (const v of message.file ?? []) {
486
1360
  FileDescriptorProto.encode(v!, writer.uint32(10).fork()).ldelim();
487
1361
  }
488
1362
  return writer;
489
- },
1363
+ }
490
1364
 
491
- decode(input: _m0.Reader | Uint8Array, length?: number): FileDescriptorSet {
1365
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): FileDescriptorSet {
492
1366
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
493
1367
  let end = length === undefined ? reader.len : reader.pos + length;
494
1368
  const message = createBaseFileDescriptorSet();
@@ -496,26 +1370,26 @@ export const FileDescriptorSet = {
496
1370
  const tag = reader.uint32();
497
1371
  switch (tag >>> 3) {
498
1372
  case 1:
499
- if (tag != 10) {
1373
+ if (tag !== 10) {
500
1374
  break;
501
1375
  }
502
1376
 
503
1377
  message.file.push(FileDescriptorProto.decode(reader, reader.uint32()));
504
1378
  continue;
505
1379
  }
506
- if ((tag & 7) == 4 || tag == 0) {
1380
+ if ((tag & 7) === 4 || tag === 0) {
507
1381
  break;
508
1382
  }
509
1383
  reader.skipType(tag & 7);
510
1384
  }
511
1385
  return message;
512
- },
1386
+ }
513
1387
 
514
- fromJSON(object: any): FileDescriptorSet {
1388
+ export function fromJSON(object: any): FileDescriptorSet {
515
1389
  return { file: Array.isArray(object?.file) ? object.file.map((e: any) => FileDescriptorProto.fromJSON(e)) : [] };
516
- },
1390
+ }
517
1391
 
518
- toJSON(message: FileDescriptorSet): unknown {
1392
+ export function toJSON(message: FileDescriptorSet): unknown {
519
1393
  const obj: any = {};
520
1394
  if (message.file) {
521
1395
  obj.file = message.file.map((e) => e ? FileDescriptorProto.toJSON(e) : undefined);
@@ -523,18 +1397,18 @@ export const FileDescriptorSet = {
523
1397
  obj.file = [];
524
1398
  }
525
1399
  return obj;
526
- },
1400
+ }
527
1401
 
528
- create<I extends Exact<DeepPartial<FileDescriptorSet>, I>>(base?: I): FileDescriptorSet {
1402
+ export function create<I extends Exact<DeepPartial<FileDescriptorSet>, I>>(base?: I): FileDescriptorSet {
529
1403
  return FileDescriptorSet.fromPartial(base ?? {});
530
- },
1404
+ }
531
1405
 
532
- fromPartial<I extends Exact<DeepPartial<FileDescriptorSet>, I>>(object: I): FileDescriptorSet {
1406
+ export function fromPartial<I extends Exact<DeepPartial<FileDescriptorSet>, I>>(object: I): FileDescriptorSet {
533
1407
  const message = createBaseFileDescriptorSet();
534
1408
  message.file = object.file?.map((e) => FileDescriptorProto.fromPartial(e)) || [];
535
1409
  return message;
536
- },
537
- };
1410
+ }
1411
+ }
538
1412
 
539
1413
  function createBaseFileDescriptorProto(): FileDescriptorProto {
540
1414
  return {
@@ -550,40 +1424,41 @@ function createBaseFileDescriptorProto(): FileDescriptorProto {
550
1424
  options: undefined,
551
1425
  sourceCodeInfo: undefined,
552
1426
  syntax: "",
1427
+ edition: "",
553
1428
  };
554
1429
  }
555
1430
 
556
- export const FileDescriptorProto = {
557
- encode(message: FileDescriptorProto, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
558
- if (message.name !== "") {
1431
+ export namespace FileDescriptorProto {
1432
+ export function encode(message: FileDescriptorProto, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
1433
+ if (message.name !== undefined && message.name !== "") {
559
1434
  writer.uint32(10).string(message.name);
560
1435
  }
561
- if (message.package !== "") {
1436
+ if (message.package !== undefined && message.package !== "") {
562
1437
  writer.uint32(18).string(message.package);
563
1438
  }
564
- for (const v of message.dependency) {
1439
+ for (const v of message.dependency ?? []) {
565
1440
  writer.uint32(26).string(v!);
566
1441
  }
567
1442
  writer.uint32(82).fork();
568
- for (const v of message.publicDependency) {
1443
+ for (const v of message.publicDependency ?? []) {
569
1444
  writer.int32(v);
570
1445
  }
571
1446
  writer.ldelim();
572
1447
  writer.uint32(90).fork();
573
- for (const v of message.weakDependency) {
1448
+ for (const v of message.weakDependency ?? []) {
574
1449
  writer.int32(v);
575
1450
  }
576
1451
  writer.ldelim();
577
- for (const v of message.messageType) {
1452
+ for (const v of message.messageType ?? []) {
578
1453
  DescriptorProto.encode(v!, writer.uint32(34).fork()).ldelim();
579
1454
  }
580
- for (const v of message.enumType) {
1455
+ for (const v of message.enumType ?? []) {
581
1456
  EnumDescriptorProto.encode(v!, writer.uint32(42).fork()).ldelim();
582
1457
  }
583
- for (const v of message.service) {
1458
+ for (const v of message.service ?? []) {
584
1459
  ServiceDescriptorProto.encode(v!, writer.uint32(50).fork()).ldelim();
585
1460
  }
586
- for (const v of message.extension) {
1461
+ for (const v of message.extension ?? []) {
587
1462
  FieldDescriptorProto.encode(v!, writer.uint32(58).fork()).ldelim();
588
1463
  }
589
1464
  if (message.options !== undefined) {
@@ -592,13 +1467,16 @@ export const FileDescriptorProto = {
592
1467
  if (message.sourceCodeInfo !== undefined) {
593
1468
  SourceCodeInfo.encode(message.sourceCodeInfo, writer.uint32(74).fork()).ldelim();
594
1469
  }
595
- if (message.syntax !== "") {
1470
+ if (message.syntax !== undefined && message.syntax !== "") {
596
1471
  writer.uint32(98).string(message.syntax);
597
1472
  }
1473
+ if (message.edition !== undefined && message.edition !== "") {
1474
+ writer.uint32(106).string(message.edition);
1475
+ }
598
1476
  return writer;
599
- },
1477
+ }
600
1478
 
601
- decode(input: _m0.Reader | Uint8Array, length?: number): FileDescriptorProto {
1479
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): FileDescriptorProto {
602
1480
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
603
1481
  let end = length === undefined ? reader.len : reader.pos + length;
604
1482
  const message = createBaseFileDescriptorProto();
@@ -606,33 +1484,34 @@ export const FileDescriptorProto = {
606
1484
  const tag = reader.uint32();
607
1485
  switch (tag >>> 3) {
608
1486
  case 1:
609
- if (tag != 10) {
1487
+ if (tag !== 10) {
610
1488
  break;
611
1489
  }
612
1490
 
613
1491
  message.name = reader.string();
614
1492
  continue;
615
1493
  case 2:
616
- if (tag != 18) {
1494
+ if (tag !== 18) {
617
1495
  break;
618
1496
  }
619
1497
 
620
1498
  message.package = reader.string();
621
1499
  continue;
622
1500
  case 3:
623
- if (tag != 26) {
1501
+ if (tag !== 26) {
624
1502
  break;
625
1503
  }
626
1504
 
627
1505
  message.dependency.push(reader.string());
628
1506
  continue;
629
1507
  case 10:
630
- if (tag == 80) {
1508
+ if (tag === 80) {
631
1509
  message.publicDependency.push(reader.int32());
1510
+
632
1511
  continue;
633
1512
  }
634
1513
 
635
- if (tag == 82) {
1514
+ if (tag === 82) {
636
1515
  const end2 = reader.uint32() + reader.pos;
637
1516
  while (reader.pos < end2) {
638
1517
  message.publicDependency.push(reader.int32());
@@ -643,12 +1522,13 @@ export const FileDescriptorProto = {
643
1522
 
644
1523
  break;
645
1524
  case 11:
646
- if (tag == 88) {
1525
+ if (tag === 88) {
647
1526
  message.weakDependency.push(reader.int32());
1527
+
648
1528
  continue;
649
1529
  }
650
1530
 
651
- if (tag == 90) {
1531
+ if (tag === 90) {
652
1532
  const end2 = reader.uint32() + reader.pos;
653
1533
  while (reader.pos < end2) {
654
1534
  message.weakDependency.push(reader.int32());
@@ -659,64 +1539,71 @@ export const FileDescriptorProto = {
659
1539
 
660
1540
  break;
661
1541
  case 4:
662
- if (tag != 34) {
1542
+ if (tag !== 34) {
663
1543
  break;
664
1544
  }
665
1545
 
666
1546
  message.messageType.push(DescriptorProto.decode(reader, reader.uint32()));
667
1547
  continue;
668
1548
  case 5:
669
- if (tag != 42) {
1549
+ if (tag !== 42) {
670
1550
  break;
671
1551
  }
672
1552
 
673
1553
  message.enumType.push(EnumDescriptorProto.decode(reader, reader.uint32()));
674
1554
  continue;
675
1555
  case 6:
676
- if (tag != 50) {
1556
+ if (tag !== 50) {
677
1557
  break;
678
1558
  }
679
1559
 
680
1560
  message.service.push(ServiceDescriptorProto.decode(reader, reader.uint32()));
681
1561
  continue;
682
1562
  case 7:
683
- if (tag != 58) {
1563
+ if (tag !== 58) {
684
1564
  break;
685
1565
  }
686
1566
 
687
1567
  message.extension.push(FieldDescriptorProto.decode(reader, reader.uint32()));
688
1568
  continue;
689
1569
  case 8:
690
- if (tag != 66) {
1570
+ if (tag !== 66) {
691
1571
  break;
692
1572
  }
693
1573
 
694
1574
  message.options = FileOptions.decode(reader, reader.uint32());
695
1575
  continue;
696
1576
  case 9:
697
- if (tag != 74) {
1577
+ if (tag !== 74) {
698
1578
  break;
699
1579
  }
700
1580
 
701
1581
  message.sourceCodeInfo = SourceCodeInfo.decode(reader, reader.uint32());
702
1582
  continue;
703
1583
  case 12:
704
- if (tag != 98) {
1584
+ if (tag !== 98) {
705
1585
  break;
706
1586
  }
707
1587
 
708
1588
  message.syntax = reader.string();
709
1589
  continue;
1590
+ case 13:
1591
+ if (tag !== 106) {
1592
+ break;
1593
+ }
1594
+
1595
+ message.edition = reader.string();
1596
+ continue;
710
1597
  }
711
- if ((tag & 7) == 4 || tag == 0) {
1598
+ if ((tag & 7) === 4 || tag === 0) {
712
1599
  break;
713
1600
  }
714
1601
  reader.skipType(tag & 7);
715
1602
  }
716
1603
  return message;
717
- },
1604
+ }
718
1605
 
719
- fromJSON(object: any): FileDescriptorProto {
1606
+ export function fromJSON(object: any): FileDescriptorProto {
720
1607
  return {
721
1608
  name: isSet(object.name) ? String(object.name) : "",
722
1609
  package: isSet(object.package) ? String(object.package) : "",
@@ -736,10 +1623,11 @@ export const FileDescriptorProto = {
736
1623
  options: isSet(object.options) ? FileOptions.fromJSON(object.options) : undefined,
737
1624
  sourceCodeInfo: isSet(object.sourceCodeInfo) ? SourceCodeInfo.fromJSON(object.sourceCodeInfo) : undefined,
738
1625
  syntax: isSet(object.syntax) ? String(object.syntax) : "",
1626
+ edition: isSet(object.edition) ? String(object.edition) : "",
739
1627
  };
740
- },
1628
+ }
741
1629
 
742
- toJSON(message: FileDescriptorProto): unknown {
1630
+ export function toJSON(message: FileDescriptorProto): unknown {
743
1631
  const obj: any = {};
744
1632
  message.name !== undefined && (obj.name = message.name);
745
1633
  message.package !== undefined && (obj.package = message.package);
@@ -782,14 +1670,15 @@ export const FileDescriptorProto = {
782
1670
  message.sourceCodeInfo !== undefined &&
783
1671
  (obj.sourceCodeInfo = message.sourceCodeInfo ? SourceCodeInfo.toJSON(message.sourceCodeInfo) : undefined);
784
1672
  message.syntax !== undefined && (obj.syntax = message.syntax);
1673
+ message.edition !== undefined && (obj.edition = message.edition);
785
1674
  return obj;
786
- },
1675
+ }
787
1676
 
788
- create<I extends Exact<DeepPartial<FileDescriptorProto>, I>>(base?: I): FileDescriptorProto {
1677
+ export function create<I extends Exact<DeepPartial<FileDescriptorProto>, I>>(base?: I): FileDescriptorProto {
789
1678
  return FileDescriptorProto.fromPartial(base ?? {});
790
- },
1679
+ }
791
1680
 
792
- fromPartial<I extends Exact<DeepPartial<FileDescriptorProto>, I>>(object: I): FileDescriptorProto {
1681
+ export function fromPartial<I extends Exact<DeepPartial<FileDescriptorProto>, I>>(object: I): FileDescriptorProto {
793
1682
  const message = createBaseFileDescriptorProto();
794
1683
  message.name = object.name ?? "";
795
1684
  message.package = object.package ?? "";
@@ -807,9 +1696,10 @@ export const FileDescriptorProto = {
807
1696
  ? SourceCodeInfo.fromPartial(object.sourceCodeInfo)
808
1697
  : undefined;
809
1698
  message.syntax = object.syntax ?? "";
1699
+ message.edition = object.edition ?? "";
810
1700
  return message;
811
- },
812
- };
1701
+ }
1702
+ }
813
1703
 
814
1704
  function createBaseDescriptorProto(): DescriptorProto {
815
1705
  return {
@@ -826,42 +1716,42 @@ function createBaseDescriptorProto(): DescriptorProto {
826
1716
  };
827
1717
  }
828
1718
 
829
- export const DescriptorProto = {
830
- encode(message: DescriptorProto, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
831
- if (message.name !== "") {
1719
+ export namespace DescriptorProto {
1720
+ export function encode(message: DescriptorProto, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
1721
+ if (message.name !== undefined && message.name !== "") {
832
1722
  writer.uint32(10).string(message.name);
833
1723
  }
834
- for (const v of message.field) {
1724
+ for (const v of message.field ?? []) {
835
1725
  FieldDescriptorProto.encode(v!, writer.uint32(18).fork()).ldelim();
836
1726
  }
837
- for (const v of message.extension) {
1727
+ for (const v of message.extension ?? []) {
838
1728
  FieldDescriptorProto.encode(v!, writer.uint32(50).fork()).ldelim();
839
1729
  }
840
- for (const v of message.nestedType) {
1730
+ for (const v of message.nestedType ?? []) {
841
1731
  DescriptorProto.encode(v!, writer.uint32(26).fork()).ldelim();
842
1732
  }
843
- for (const v of message.enumType) {
1733
+ for (const v of message.enumType ?? []) {
844
1734
  EnumDescriptorProto.encode(v!, writer.uint32(34).fork()).ldelim();
845
1735
  }
846
- for (const v of message.extensionRange) {
1736
+ for (const v of message.extensionRange ?? []) {
847
1737
  DescriptorProto_ExtensionRange.encode(v!, writer.uint32(42).fork()).ldelim();
848
1738
  }
849
- for (const v of message.oneofDecl) {
1739
+ for (const v of message.oneofDecl ?? []) {
850
1740
  OneofDescriptorProto.encode(v!, writer.uint32(66).fork()).ldelim();
851
1741
  }
852
1742
  if (message.options !== undefined) {
853
1743
  MessageOptions.encode(message.options, writer.uint32(58).fork()).ldelim();
854
1744
  }
855
- for (const v of message.reservedRange) {
1745
+ for (const v of message.reservedRange ?? []) {
856
1746
  DescriptorProto_ReservedRange.encode(v!, writer.uint32(74).fork()).ldelim();
857
1747
  }
858
- for (const v of message.reservedName) {
1748
+ for (const v of message.reservedName ?? []) {
859
1749
  writer.uint32(82).string(v!);
860
1750
  }
861
1751
  return writer;
862
- },
1752
+ }
863
1753
 
864
- decode(input: _m0.Reader | Uint8Array, length?: number): DescriptorProto {
1754
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): DescriptorProto {
865
1755
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
866
1756
  let end = length === undefined ? reader.len : reader.pos + length;
867
1757
  const message = createBaseDescriptorProto();
@@ -869,85 +1759,85 @@ export const DescriptorProto = {
869
1759
  const tag = reader.uint32();
870
1760
  switch (tag >>> 3) {
871
1761
  case 1:
872
- if (tag != 10) {
1762
+ if (tag !== 10) {
873
1763
  break;
874
1764
  }
875
1765
 
876
1766
  message.name = reader.string();
877
1767
  continue;
878
1768
  case 2:
879
- if (tag != 18) {
1769
+ if (tag !== 18) {
880
1770
  break;
881
1771
  }
882
1772
 
883
1773
  message.field.push(FieldDescriptorProto.decode(reader, reader.uint32()));
884
1774
  continue;
885
1775
  case 6:
886
- if (tag != 50) {
1776
+ if (tag !== 50) {
887
1777
  break;
888
1778
  }
889
1779
 
890
1780
  message.extension.push(FieldDescriptorProto.decode(reader, reader.uint32()));
891
1781
  continue;
892
1782
  case 3:
893
- if (tag != 26) {
1783
+ if (tag !== 26) {
894
1784
  break;
895
1785
  }
896
1786
 
897
1787
  message.nestedType.push(DescriptorProto.decode(reader, reader.uint32()));
898
1788
  continue;
899
1789
  case 4:
900
- if (tag != 34) {
1790
+ if (tag !== 34) {
901
1791
  break;
902
1792
  }
903
1793
 
904
1794
  message.enumType.push(EnumDescriptorProto.decode(reader, reader.uint32()));
905
1795
  continue;
906
1796
  case 5:
907
- if (tag != 42) {
1797
+ if (tag !== 42) {
908
1798
  break;
909
1799
  }
910
1800
 
911
1801
  message.extensionRange.push(DescriptorProto_ExtensionRange.decode(reader, reader.uint32()));
912
1802
  continue;
913
1803
  case 8:
914
- if (tag != 66) {
1804
+ if (tag !== 66) {
915
1805
  break;
916
1806
  }
917
1807
 
918
1808
  message.oneofDecl.push(OneofDescriptorProto.decode(reader, reader.uint32()));
919
1809
  continue;
920
1810
  case 7:
921
- if (tag != 58) {
1811
+ if (tag !== 58) {
922
1812
  break;
923
1813
  }
924
1814
 
925
1815
  message.options = MessageOptions.decode(reader, reader.uint32());
926
1816
  continue;
927
1817
  case 9:
928
- if (tag != 74) {
1818
+ if (tag !== 74) {
929
1819
  break;
930
1820
  }
931
1821
 
932
1822
  message.reservedRange.push(DescriptorProto_ReservedRange.decode(reader, reader.uint32()));
933
1823
  continue;
934
1824
  case 10:
935
- if (tag != 82) {
1825
+ if (tag !== 82) {
936
1826
  break;
937
1827
  }
938
1828
 
939
1829
  message.reservedName.push(reader.string());
940
1830
  continue;
941
1831
  }
942
- if ((tag & 7) == 4 || tag == 0) {
1832
+ if ((tag & 7) === 4 || tag === 0) {
943
1833
  break;
944
1834
  }
945
1835
  reader.skipType(tag & 7);
946
1836
  }
947
1837
  return message;
948
- },
1838
+ }
949
1839
 
950
- fromJSON(object: any): DescriptorProto {
1840
+ export function fromJSON(object: any): DescriptorProto {
951
1841
  return {
952
1842
  name: isSet(object.name) ? String(object.name) : "",
953
1843
  field: Array.isArray(object?.field) ? object.field.map((e: any) => FieldDescriptorProto.fromJSON(e)) : [],
@@ -970,9 +1860,9 @@ export const DescriptorProto = {
970
1860
  : [],
971
1861
  reservedName: Array.isArray(object?.reservedName) ? object.reservedName.map((e: any) => String(e)) : [],
972
1862
  };
973
- },
1863
+ }
974
1864
 
975
- toJSON(message: DescriptorProto): unknown {
1865
+ export function toJSON(message: DescriptorProto): unknown {
976
1866
  const obj: any = {};
977
1867
  message.name !== undefined && (obj.name = message.name);
978
1868
  if (message.field) {
@@ -1018,13 +1908,13 @@ export const DescriptorProto = {
1018
1908
  obj.reservedName = [];
1019
1909
  }
1020
1910
  return obj;
1021
- },
1911
+ }
1022
1912
 
1023
- create<I extends Exact<DeepPartial<DescriptorProto>, I>>(base?: I): DescriptorProto {
1913
+ export function create<I extends Exact<DeepPartial<DescriptorProto>, I>>(base?: I): DescriptorProto {
1024
1914
  return DescriptorProto.fromPartial(base ?? {});
1025
- },
1915
+ }
1026
1916
 
1027
- fromPartial<I extends Exact<DeepPartial<DescriptorProto>, I>>(object: I): DescriptorProto {
1917
+ export function fromPartial<I extends Exact<DeepPartial<DescriptorProto>, I>>(object: I): DescriptorProto {
1028
1918
  const message = createBaseDescriptorProto();
1029
1919
  message.name = object.name ?? "";
1030
1920
  message.field = object.field?.map((e) => FieldDescriptorProto.fromPartial(e)) || [];
@@ -1039,25 +1929,31 @@ export const DescriptorProto = {
1039
1929
  message.reservedRange = object.reservedRange?.map((e) => DescriptorProto_ReservedRange.fromPartial(e)) || [];
1040
1930
  message.reservedName = object.reservedName?.map((e) => e) || [];
1041
1931
  return message;
1042
- },
1043
- };
1932
+ }
1933
+ }
1044
1934
 
1045
1935
  function createBaseDescriptorProto_ExtensionRange(): DescriptorProto_ExtensionRange {
1046
- return { start: 0, end: 0 };
1936
+ return { start: 0, end: 0, options: undefined };
1047
1937
  }
1048
1938
 
1049
- export const DescriptorProto_ExtensionRange = {
1050
- encode(message: DescriptorProto_ExtensionRange, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
1051
- if (message.start !== 0) {
1939
+ export namespace DescriptorProto_ExtensionRange {
1940
+ export function encode(
1941
+ message: DescriptorProto_ExtensionRange,
1942
+ writer: _m0.Writer = _m0.Writer.create(),
1943
+ ): _m0.Writer {
1944
+ if (message.start !== undefined && message.start !== 0) {
1052
1945
  writer.uint32(8).int32(message.start);
1053
1946
  }
1054
- if (message.end !== 0) {
1947
+ if (message.end !== undefined && message.end !== 0) {
1055
1948
  writer.uint32(16).int32(message.end);
1056
1949
  }
1950
+ if (message.options !== undefined) {
1951
+ ExtensionRangeOptions.encode(message.options, writer.uint32(26).fork()).ldelim();
1952
+ }
1057
1953
  return writer;
1058
- },
1954
+ }
1059
1955
 
1060
- decode(input: _m0.Reader | Uint8Array, length?: number): DescriptorProto_ExtensionRange {
1956
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): DescriptorProto_ExtensionRange {
1061
1957
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
1062
1958
  let end = length === undefined ? reader.len : reader.pos + length;
1063
1959
  const message = createBaseDescriptorProto_ExtensionRange();
@@ -1065,69 +1961,87 @@ export const DescriptorProto_ExtensionRange = {
1065
1961
  const tag = reader.uint32();
1066
1962
  switch (tag >>> 3) {
1067
1963
  case 1:
1068
- if (tag != 8) {
1964
+ if (tag !== 8) {
1069
1965
  break;
1070
1966
  }
1071
1967
 
1072
1968
  message.start = reader.int32();
1073
1969
  continue;
1074
1970
  case 2:
1075
- if (tag != 16) {
1971
+ if (tag !== 16) {
1076
1972
  break;
1077
1973
  }
1078
1974
 
1079
1975
  message.end = reader.int32();
1080
1976
  continue;
1977
+ case 3:
1978
+ if (tag !== 26) {
1979
+ break;
1980
+ }
1981
+
1982
+ message.options = ExtensionRangeOptions.decode(reader, reader.uint32());
1983
+ continue;
1081
1984
  }
1082
- if ((tag & 7) == 4 || tag == 0) {
1985
+ if ((tag & 7) === 4 || tag === 0) {
1083
1986
  break;
1084
1987
  }
1085
1988
  reader.skipType(tag & 7);
1086
1989
  }
1087
1990
  return message;
1088
- },
1991
+ }
1089
1992
 
1090
- fromJSON(object: any): DescriptorProto_ExtensionRange {
1091
- return { start: isSet(object.start) ? Number(object.start) : 0, end: isSet(object.end) ? Number(object.end) : 0 };
1092
- },
1993
+ export function fromJSON(object: any): DescriptorProto_ExtensionRange {
1994
+ return {
1995
+ start: isSet(object.start) ? Number(object.start) : 0,
1996
+ end: isSet(object.end) ? Number(object.end) : 0,
1997
+ options: isSet(object.options) ? ExtensionRangeOptions.fromJSON(object.options) : undefined,
1998
+ };
1999
+ }
1093
2000
 
1094
- toJSON(message: DescriptorProto_ExtensionRange): unknown {
2001
+ export function toJSON(message: DescriptorProto_ExtensionRange): unknown {
1095
2002
  const obj: any = {};
1096
2003
  message.start !== undefined && (obj.start = Math.round(message.start));
1097
2004
  message.end !== undefined && (obj.end = Math.round(message.end));
2005
+ message.options !== undefined &&
2006
+ (obj.options = message.options ? ExtensionRangeOptions.toJSON(message.options) : undefined);
1098
2007
  return obj;
1099
- },
2008
+ }
1100
2009
 
1101
- create<I extends Exact<DeepPartial<DescriptorProto_ExtensionRange>, I>>(base?: I): DescriptorProto_ExtensionRange {
2010
+ export function create<I extends Exact<DeepPartial<DescriptorProto_ExtensionRange>, I>>(
2011
+ base?: I,
2012
+ ): DescriptorProto_ExtensionRange {
1102
2013
  return DescriptorProto_ExtensionRange.fromPartial(base ?? {});
1103
- },
2014
+ }
1104
2015
 
1105
- fromPartial<I extends Exact<DeepPartial<DescriptorProto_ExtensionRange>, I>>(
2016
+ export function fromPartial<I extends Exact<DeepPartial<DescriptorProto_ExtensionRange>, I>>(
1106
2017
  object: I,
1107
2018
  ): DescriptorProto_ExtensionRange {
1108
2019
  const message = createBaseDescriptorProto_ExtensionRange();
1109
2020
  message.start = object.start ?? 0;
1110
2021
  message.end = object.end ?? 0;
2022
+ message.options = (object.options !== undefined && object.options !== null)
2023
+ ? ExtensionRangeOptions.fromPartial(object.options)
2024
+ : undefined;
1111
2025
  return message;
1112
- },
1113
- };
2026
+ }
2027
+ }
1114
2028
 
1115
2029
  function createBaseDescriptorProto_ReservedRange(): DescriptorProto_ReservedRange {
1116
2030
  return { start: 0, end: 0 };
1117
2031
  }
1118
2032
 
1119
- export const DescriptorProto_ReservedRange = {
1120
- encode(message: DescriptorProto_ReservedRange, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
1121
- if (message.start !== 0) {
2033
+ export namespace DescriptorProto_ReservedRange {
2034
+ export function encode(message: DescriptorProto_ReservedRange, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
2035
+ if (message.start !== undefined && message.start !== 0) {
1122
2036
  writer.uint32(8).int32(message.start);
1123
2037
  }
1124
- if (message.end !== 0) {
2038
+ if (message.end !== undefined && message.end !== 0) {
1125
2039
  writer.uint32(16).int32(message.end);
1126
2040
  }
1127
2041
  return writer;
1128
- },
2042
+ }
1129
2043
 
1130
- decode(input: _m0.Reader | Uint8Array, length?: number): DescriptorProto_ReservedRange {
2044
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): DescriptorProto_ReservedRange {
1131
2045
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
1132
2046
  let end = length === undefined ? reader.len : reader.pos + length;
1133
2047
  const message = createBaseDescriptorProto_ReservedRange();
@@ -1135,52 +2049,120 @@ export const DescriptorProto_ReservedRange = {
1135
2049
  const tag = reader.uint32();
1136
2050
  switch (tag >>> 3) {
1137
2051
  case 1:
1138
- if (tag != 8) {
2052
+ if (tag !== 8) {
1139
2053
  break;
1140
2054
  }
1141
2055
 
1142
2056
  message.start = reader.int32();
1143
2057
  continue;
1144
2058
  case 2:
1145
- if (tag != 16) {
2059
+ if (tag !== 16) {
1146
2060
  break;
1147
2061
  }
1148
2062
 
1149
2063
  message.end = reader.int32();
1150
2064
  continue;
1151
2065
  }
1152
- if ((tag & 7) == 4 || tag == 0) {
2066
+ if ((tag & 7) === 4 || tag === 0) {
1153
2067
  break;
1154
2068
  }
1155
2069
  reader.skipType(tag & 7);
1156
2070
  }
1157
2071
  return message;
1158
- },
2072
+ }
1159
2073
 
1160
- fromJSON(object: any): DescriptorProto_ReservedRange {
2074
+ export function fromJSON(object: any): DescriptorProto_ReservedRange {
1161
2075
  return { start: isSet(object.start) ? Number(object.start) : 0, end: isSet(object.end) ? Number(object.end) : 0 };
1162
- },
2076
+ }
1163
2077
 
1164
- toJSON(message: DescriptorProto_ReservedRange): unknown {
2078
+ export function toJSON(message: DescriptorProto_ReservedRange): unknown {
1165
2079
  const obj: any = {};
1166
2080
  message.start !== undefined && (obj.start = Math.round(message.start));
1167
2081
  message.end !== undefined && (obj.end = Math.round(message.end));
1168
2082
  return obj;
1169
- },
2083
+ }
1170
2084
 
1171
- create<I extends Exact<DeepPartial<DescriptorProto_ReservedRange>, I>>(base?: I): DescriptorProto_ReservedRange {
2085
+ export function create<I extends Exact<DeepPartial<DescriptorProto_ReservedRange>, I>>(
2086
+ base?: I,
2087
+ ): DescriptorProto_ReservedRange {
1172
2088
  return DescriptorProto_ReservedRange.fromPartial(base ?? {});
1173
- },
2089
+ }
1174
2090
 
1175
- fromPartial<I extends Exact<DeepPartial<DescriptorProto_ReservedRange>, I>>(
2091
+ export function fromPartial<I extends Exact<DeepPartial<DescriptorProto_ReservedRange>, I>>(
1176
2092
  object: I,
1177
2093
  ): DescriptorProto_ReservedRange {
1178
2094
  const message = createBaseDescriptorProto_ReservedRange();
1179
2095
  message.start = object.start ?? 0;
1180
2096
  message.end = object.end ?? 0;
1181
2097
  return message;
1182
- },
1183
- };
2098
+ }
2099
+ }
2100
+
2101
+ function createBaseExtensionRangeOptions(): ExtensionRangeOptions {
2102
+ return { uninterpretedOption: [] };
2103
+ }
2104
+
2105
+ export namespace ExtensionRangeOptions {
2106
+ export function encode(message: ExtensionRangeOptions, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
2107
+ for (const v of message.uninterpretedOption ?? []) {
2108
+ UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim();
2109
+ }
2110
+ return writer;
2111
+ }
2112
+
2113
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): ExtensionRangeOptions {
2114
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
2115
+ let end = length === undefined ? reader.len : reader.pos + length;
2116
+ const message = createBaseExtensionRangeOptions();
2117
+ while (reader.pos < end) {
2118
+ const tag = reader.uint32();
2119
+ switch (tag >>> 3) {
2120
+ case 999:
2121
+ if (tag !== 7994) {
2122
+ break;
2123
+ }
2124
+
2125
+ message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32()));
2126
+ continue;
2127
+ }
2128
+ if ((tag & 7) === 4 || tag === 0) {
2129
+ break;
2130
+ }
2131
+ reader.skipType(tag & 7);
2132
+ }
2133
+ return message;
2134
+ }
2135
+
2136
+ export function fromJSON(object: any): ExtensionRangeOptions {
2137
+ return {
2138
+ uninterpretedOption: Array.isArray(object?.uninterpretedOption)
2139
+ ? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e))
2140
+ : [],
2141
+ };
2142
+ }
2143
+
2144
+ export function toJSON(message: ExtensionRangeOptions): unknown {
2145
+ const obj: any = {};
2146
+ if (message.uninterpretedOption) {
2147
+ obj.uninterpretedOption = message.uninterpretedOption.map((e) => e ? UninterpretedOption.toJSON(e) : undefined);
2148
+ } else {
2149
+ obj.uninterpretedOption = [];
2150
+ }
2151
+ return obj;
2152
+ }
2153
+
2154
+ export function create<I extends Exact<DeepPartial<ExtensionRangeOptions>, I>>(base?: I): ExtensionRangeOptions {
2155
+ return ExtensionRangeOptions.fromPartial(base ?? {});
2156
+ }
2157
+
2158
+ export function fromPartial<I extends Exact<DeepPartial<ExtensionRangeOptions>, I>>(
2159
+ object: I,
2160
+ ): ExtensionRangeOptions {
2161
+ const message = createBaseExtensionRangeOptions();
2162
+ message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || [];
2163
+ return message;
2164
+ }
2165
+ }
1184
2166
 
1185
2167
  function createBaseFieldDescriptorProto(): FieldDescriptorProto {
1186
2168
  return {
@@ -1194,45 +2176,49 @@ function createBaseFieldDescriptorProto(): FieldDescriptorProto {
1194
2176
  oneofIndex: 0,
1195
2177
  jsonName: "",
1196
2178
  options: undefined,
2179
+ proto3Optional: false,
1197
2180
  };
1198
2181
  }
1199
2182
 
1200
- export const FieldDescriptorProto = {
1201
- encode(message: FieldDescriptorProto, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
1202
- if (message.name !== "") {
2183
+ export namespace FieldDescriptorProto {
2184
+ export function encode(message: FieldDescriptorProto, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
2185
+ if (message.name !== undefined && message.name !== "") {
1203
2186
  writer.uint32(10).string(message.name);
1204
2187
  }
1205
- if (message.number !== 0) {
2188
+ if (message.number !== undefined && message.number !== 0) {
1206
2189
  writer.uint32(24).int32(message.number);
1207
2190
  }
1208
- if (message.label !== 1) {
2191
+ if (message.label !== undefined && message.label !== 1) {
1209
2192
  writer.uint32(32).int32(message.label);
1210
2193
  }
1211
- if (message.type !== 1) {
2194
+ if (message.type !== undefined && message.type !== 1) {
1212
2195
  writer.uint32(40).int32(message.type);
1213
2196
  }
1214
- if (message.typeName !== "") {
2197
+ if (message.typeName !== undefined && message.typeName !== "") {
1215
2198
  writer.uint32(50).string(message.typeName);
1216
2199
  }
1217
- if (message.extendee !== "") {
2200
+ if (message.extendee !== undefined && message.extendee !== "") {
1218
2201
  writer.uint32(18).string(message.extendee);
1219
2202
  }
1220
- if (message.defaultValue !== "") {
2203
+ if (message.defaultValue !== undefined && message.defaultValue !== "") {
1221
2204
  writer.uint32(58).string(message.defaultValue);
1222
2205
  }
1223
- if (message.oneofIndex !== 0) {
2206
+ if (message.oneofIndex !== undefined && message.oneofIndex !== 0) {
1224
2207
  writer.uint32(72).int32(message.oneofIndex);
1225
2208
  }
1226
- if (message.jsonName !== "") {
2209
+ if (message.jsonName !== undefined && message.jsonName !== "") {
1227
2210
  writer.uint32(82).string(message.jsonName);
1228
2211
  }
1229
2212
  if (message.options !== undefined) {
1230
2213
  FieldOptions.encode(message.options, writer.uint32(66).fork()).ldelim();
1231
2214
  }
2215
+ if (message.proto3Optional === true) {
2216
+ writer.uint32(136).bool(message.proto3Optional);
2217
+ }
1232
2218
  return writer;
1233
- },
2219
+ }
1234
2220
 
1235
- decode(input: _m0.Reader | Uint8Array, length?: number): FieldDescriptorProto {
2221
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): FieldDescriptorProto {
1236
2222
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
1237
2223
  let end = length === undefined ? reader.len : reader.pos + length;
1238
2224
  const message = createBaseFieldDescriptorProto();
@@ -1240,85 +2226,92 @@ export const FieldDescriptorProto = {
1240
2226
  const tag = reader.uint32();
1241
2227
  switch (tag >>> 3) {
1242
2228
  case 1:
1243
- if (tag != 10) {
2229
+ if (tag !== 10) {
1244
2230
  break;
1245
2231
  }
1246
2232
 
1247
2233
  message.name = reader.string();
1248
2234
  continue;
1249
2235
  case 3:
1250
- if (tag != 24) {
2236
+ if (tag !== 24) {
1251
2237
  break;
1252
2238
  }
1253
2239
 
1254
2240
  message.number = reader.int32();
1255
2241
  continue;
1256
2242
  case 4:
1257
- if (tag != 32) {
2243
+ if (tag !== 32) {
1258
2244
  break;
1259
2245
  }
1260
2246
 
1261
2247
  message.label = reader.int32() as any;
1262
2248
  continue;
1263
2249
  case 5:
1264
- if (tag != 40) {
2250
+ if (tag !== 40) {
1265
2251
  break;
1266
2252
  }
1267
2253
 
1268
2254
  message.type = reader.int32() as any;
1269
2255
  continue;
1270
2256
  case 6:
1271
- if (tag != 50) {
2257
+ if (tag !== 50) {
1272
2258
  break;
1273
2259
  }
1274
2260
 
1275
2261
  message.typeName = reader.string();
1276
2262
  continue;
1277
2263
  case 2:
1278
- if (tag != 18) {
2264
+ if (tag !== 18) {
1279
2265
  break;
1280
2266
  }
1281
2267
 
1282
2268
  message.extendee = reader.string();
1283
2269
  continue;
1284
2270
  case 7:
1285
- if (tag != 58) {
2271
+ if (tag !== 58) {
1286
2272
  break;
1287
2273
  }
1288
2274
 
1289
2275
  message.defaultValue = reader.string();
1290
2276
  continue;
1291
2277
  case 9:
1292
- if (tag != 72) {
2278
+ if (tag !== 72) {
1293
2279
  break;
1294
2280
  }
1295
2281
 
1296
2282
  message.oneofIndex = reader.int32();
1297
2283
  continue;
1298
2284
  case 10:
1299
- if (tag != 82) {
2285
+ if (tag !== 82) {
1300
2286
  break;
1301
2287
  }
1302
2288
 
1303
2289
  message.jsonName = reader.string();
1304
2290
  continue;
1305
2291
  case 8:
1306
- if (tag != 66) {
2292
+ if (tag !== 66) {
1307
2293
  break;
1308
2294
  }
1309
2295
 
1310
2296
  message.options = FieldOptions.decode(reader, reader.uint32());
1311
2297
  continue;
2298
+ case 17:
2299
+ if (tag !== 136) {
2300
+ break;
2301
+ }
2302
+
2303
+ message.proto3Optional = reader.bool();
2304
+ continue;
1312
2305
  }
1313
- if ((tag & 7) == 4 || tag == 0) {
2306
+ if ((tag & 7) === 4 || tag === 0) {
1314
2307
  break;
1315
2308
  }
1316
2309
  reader.skipType(tag & 7);
1317
2310
  }
1318
2311
  return message;
1319
- },
2312
+ }
1320
2313
 
1321
- fromJSON(object: any): FieldDescriptorProto {
2314
+ export function fromJSON(object: any): FieldDescriptorProto {
1322
2315
  return {
1323
2316
  name: isSet(object.name) ? String(object.name) : "",
1324
2317
  number: isSet(object.number) ? Number(object.number) : 0,
@@ -1330,10 +2323,11 @@ export const FieldDescriptorProto = {
1330
2323
  oneofIndex: isSet(object.oneofIndex) ? Number(object.oneofIndex) : 0,
1331
2324
  jsonName: isSet(object.jsonName) ? String(object.jsonName) : "",
1332
2325
  options: isSet(object.options) ? FieldOptions.fromJSON(object.options) : undefined,
2326
+ proto3Optional: isSet(object.proto3Optional) ? Boolean(object.proto3Optional) : false,
1333
2327
  };
1334
- },
2328
+ }
1335
2329
 
1336
- toJSON(message: FieldDescriptorProto): unknown {
2330
+ export function toJSON(message: FieldDescriptorProto): unknown {
1337
2331
  const obj: any = {};
1338
2332
  message.name !== undefined && (obj.name = message.name);
1339
2333
  message.number !== undefined && (obj.number = Math.round(message.number));
@@ -1345,14 +2339,15 @@ export const FieldDescriptorProto = {
1345
2339
  message.oneofIndex !== undefined && (obj.oneofIndex = Math.round(message.oneofIndex));
1346
2340
  message.jsonName !== undefined && (obj.jsonName = message.jsonName);
1347
2341
  message.options !== undefined && (obj.options = message.options ? FieldOptions.toJSON(message.options) : undefined);
2342
+ message.proto3Optional !== undefined && (obj.proto3Optional = message.proto3Optional);
1348
2343
  return obj;
1349
- },
2344
+ }
1350
2345
 
1351
- create<I extends Exact<DeepPartial<FieldDescriptorProto>, I>>(base?: I): FieldDescriptorProto {
2346
+ export function create<I extends Exact<DeepPartial<FieldDescriptorProto>, I>>(base?: I): FieldDescriptorProto {
1352
2347
  return FieldDescriptorProto.fromPartial(base ?? {});
1353
- },
2348
+ }
1354
2349
 
1355
- fromPartial<I extends Exact<DeepPartial<FieldDescriptorProto>, I>>(object: I): FieldDescriptorProto {
2350
+ export function fromPartial<I extends Exact<DeepPartial<FieldDescriptorProto>, I>>(object: I): FieldDescriptorProto {
1356
2351
  const message = createBaseFieldDescriptorProto();
1357
2352
  message.name = object.name ?? "";
1358
2353
  message.number = object.number ?? 0;
@@ -1366,26 +2361,27 @@ export const FieldDescriptorProto = {
1366
2361
  message.options = (object.options !== undefined && object.options !== null)
1367
2362
  ? FieldOptions.fromPartial(object.options)
1368
2363
  : undefined;
2364
+ message.proto3Optional = object.proto3Optional ?? false;
1369
2365
  return message;
1370
- },
1371
- };
2366
+ }
2367
+ }
1372
2368
 
1373
2369
  function createBaseOneofDescriptorProto(): OneofDescriptorProto {
1374
2370
  return { name: "", options: undefined };
1375
2371
  }
1376
2372
 
1377
- export const OneofDescriptorProto = {
1378
- encode(message: OneofDescriptorProto, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
1379
- if (message.name !== "") {
2373
+ export namespace OneofDescriptorProto {
2374
+ export function encode(message: OneofDescriptorProto, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
2375
+ if (message.name !== undefined && message.name !== "") {
1380
2376
  writer.uint32(10).string(message.name);
1381
2377
  }
1382
2378
  if (message.options !== undefined) {
1383
2379
  OneofOptions.encode(message.options, writer.uint32(18).fork()).ldelim();
1384
2380
  }
1385
2381
  return writer;
1386
- },
2382
+ }
1387
2383
 
1388
- decode(input: _m0.Reader | Uint8Array, length?: number): OneofDescriptorProto {
2384
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): OneofDescriptorProto {
1389
2385
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
1390
2386
  let end = length === undefined ? reader.len : reader.pos + length;
1391
2387
  const message = createBaseOneofDescriptorProto();
@@ -1393,165 +2389,279 @@ export const OneofDescriptorProto = {
1393
2389
  const tag = reader.uint32();
1394
2390
  switch (tag >>> 3) {
1395
2391
  case 1:
1396
- if (tag != 10) {
2392
+ if (tag !== 10) {
1397
2393
  break;
1398
2394
  }
1399
2395
 
1400
2396
  message.name = reader.string();
1401
2397
  continue;
1402
2398
  case 2:
1403
- if (tag != 18) {
2399
+ if (tag !== 18) {
1404
2400
  break;
1405
2401
  }
1406
2402
 
1407
2403
  message.options = OneofOptions.decode(reader, reader.uint32());
1408
2404
  continue;
1409
2405
  }
1410
- if ((tag & 7) == 4 || tag == 0) {
2406
+ if ((tag & 7) === 4 || tag === 0) {
1411
2407
  break;
1412
2408
  }
1413
2409
  reader.skipType(tag & 7);
1414
2410
  }
1415
2411
  return message;
1416
- },
2412
+ }
1417
2413
 
1418
- fromJSON(object: any): OneofDescriptorProto {
2414
+ export function fromJSON(object: any): OneofDescriptorProto {
1419
2415
  return {
1420
2416
  name: isSet(object.name) ? String(object.name) : "",
1421
2417
  options: isSet(object.options) ? OneofOptions.fromJSON(object.options) : undefined,
1422
2418
  };
1423
- },
2419
+ }
1424
2420
 
1425
- toJSON(message: OneofDescriptorProto): unknown {
2421
+ export function toJSON(message: OneofDescriptorProto): unknown {
1426
2422
  const obj: any = {};
1427
2423
  message.name !== undefined && (obj.name = message.name);
1428
2424
  message.options !== undefined && (obj.options = message.options ? OneofOptions.toJSON(message.options) : undefined);
1429
2425
  return obj;
1430
- },
2426
+ }
1431
2427
 
1432
- create<I extends Exact<DeepPartial<OneofDescriptorProto>, I>>(base?: I): OneofDescriptorProto {
2428
+ export function create<I extends Exact<DeepPartial<OneofDescriptorProto>, I>>(base?: I): OneofDescriptorProto {
1433
2429
  return OneofDescriptorProto.fromPartial(base ?? {});
1434
- },
2430
+ }
1435
2431
 
1436
- fromPartial<I extends Exact<DeepPartial<OneofDescriptorProto>, I>>(object: I): OneofDescriptorProto {
2432
+ export function fromPartial<I extends Exact<DeepPartial<OneofDescriptorProto>, I>>(object: I): OneofDescriptorProto {
1437
2433
  const message = createBaseOneofDescriptorProto();
1438
2434
  message.name = object.name ?? "";
1439
2435
  message.options = (object.options !== undefined && object.options !== null)
1440
2436
  ? OneofOptions.fromPartial(object.options)
1441
2437
  : undefined;
1442
2438
  return message;
1443
- },
1444
- };
2439
+ }
2440
+ }
1445
2441
 
1446
2442
  function createBaseEnumDescriptorProto(): EnumDescriptorProto {
1447
- return { name: "", value: [], options: undefined };
2443
+ return { name: "", value: [], options: undefined, reservedRange: [], reservedName: [] };
1448
2444
  }
1449
2445
 
1450
- export const EnumDescriptorProto = {
1451
- encode(message: EnumDescriptorProto, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
1452
- if (message.name !== "") {
2446
+ export namespace EnumDescriptorProto {
2447
+ export function encode(message: EnumDescriptorProto, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
2448
+ if (message.name !== undefined && message.name !== "") {
1453
2449
  writer.uint32(10).string(message.name);
1454
2450
  }
1455
- for (const v of message.value) {
2451
+ for (const v of message.value ?? []) {
1456
2452
  EnumValueDescriptorProto.encode(v!, writer.uint32(18).fork()).ldelim();
1457
2453
  }
1458
2454
  if (message.options !== undefined) {
1459
2455
  EnumOptions.encode(message.options, writer.uint32(26).fork()).ldelim();
1460
2456
  }
2457
+ for (const v of message.reservedRange ?? []) {
2458
+ EnumDescriptorProto_EnumReservedRange.encode(v!, writer.uint32(34).fork()).ldelim();
2459
+ }
2460
+ for (const v of message.reservedName ?? []) {
2461
+ writer.uint32(42).string(v!);
2462
+ }
2463
+ return writer;
2464
+ }
2465
+
2466
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): EnumDescriptorProto {
2467
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
2468
+ let end = length === undefined ? reader.len : reader.pos + length;
2469
+ const message = createBaseEnumDescriptorProto();
2470
+ while (reader.pos < end) {
2471
+ const tag = reader.uint32();
2472
+ switch (tag >>> 3) {
2473
+ case 1:
2474
+ if (tag !== 10) {
2475
+ break;
2476
+ }
2477
+
2478
+ message.name = reader.string();
2479
+ continue;
2480
+ case 2:
2481
+ if (tag !== 18) {
2482
+ break;
2483
+ }
2484
+
2485
+ message.value.push(EnumValueDescriptorProto.decode(reader, reader.uint32()));
2486
+ continue;
2487
+ case 3:
2488
+ if (tag !== 26) {
2489
+ break;
2490
+ }
2491
+
2492
+ message.options = EnumOptions.decode(reader, reader.uint32());
2493
+ continue;
2494
+ case 4:
2495
+ if (tag !== 34) {
2496
+ break;
2497
+ }
2498
+
2499
+ message.reservedRange.push(EnumDescriptorProto_EnumReservedRange.decode(reader, reader.uint32()));
2500
+ continue;
2501
+ case 5:
2502
+ if (tag !== 42) {
2503
+ break;
2504
+ }
2505
+
2506
+ message.reservedName.push(reader.string());
2507
+ continue;
2508
+ }
2509
+ if ((tag & 7) === 4 || tag === 0) {
2510
+ break;
2511
+ }
2512
+ reader.skipType(tag & 7);
2513
+ }
2514
+ return message;
2515
+ }
2516
+
2517
+ export function fromJSON(object: any): EnumDescriptorProto {
2518
+ return {
2519
+ name: isSet(object.name) ? String(object.name) : "",
2520
+ value: Array.isArray(object?.value) ? object.value.map((e: any) => EnumValueDescriptorProto.fromJSON(e)) : [],
2521
+ options: isSet(object.options) ? EnumOptions.fromJSON(object.options) : undefined,
2522
+ reservedRange: Array.isArray(object?.reservedRange)
2523
+ ? object.reservedRange.map((e: any) => EnumDescriptorProto_EnumReservedRange.fromJSON(e))
2524
+ : [],
2525
+ reservedName: Array.isArray(object?.reservedName) ? object.reservedName.map((e: any) => String(e)) : [],
2526
+ };
2527
+ }
2528
+
2529
+ export function toJSON(message: EnumDescriptorProto): unknown {
2530
+ const obj: any = {};
2531
+ message.name !== undefined && (obj.name = message.name);
2532
+ if (message.value) {
2533
+ obj.value = message.value.map((e) => e ? EnumValueDescriptorProto.toJSON(e) : undefined);
2534
+ } else {
2535
+ obj.value = [];
2536
+ }
2537
+ message.options !== undefined && (obj.options = message.options ? EnumOptions.toJSON(message.options) : undefined);
2538
+ if (message.reservedRange) {
2539
+ obj.reservedRange = message.reservedRange.map((e) =>
2540
+ e ? EnumDescriptorProto_EnumReservedRange.toJSON(e) : undefined
2541
+ );
2542
+ } else {
2543
+ obj.reservedRange = [];
2544
+ }
2545
+ if (message.reservedName) {
2546
+ obj.reservedName = message.reservedName.map((e) => e);
2547
+ } else {
2548
+ obj.reservedName = [];
2549
+ }
2550
+ return obj;
2551
+ }
2552
+
2553
+ export function create<I extends Exact<DeepPartial<EnumDescriptorProto>, I>>(base?: I): EnumDescriptorProto {
2554
+ return EnumDescriptorProto.fromPartial(base ?? {});
2555
+ }
2556
+
2557
+ export function fromPartial<I extends Exact<DeepPartial<EnumDescriptorProto>, I>>(object: I): EnumDescriptorProto {
2558
+ const message = createBaseEnumDescriptorProto();
2559
+ message.name = object.name ?? "";
2560
+ message.value = object.value?.map((e) => EnumValueDescriptorProto.fromPartial(e)) || [];
2561
+ message.options = (object.options !== undefined && object.options !== null)
2562
+ ? EnumOptions.fromPartial(object.options)
2563
+ : undefined;
2564
+ message.reservedRange = object.reservedRange?.map((e) => EnumDescriptorProto_EnumReservedRange.fromPartial(e)) ||
2565
+ [];
2566
+ message.reservedName = object.reservedName?.map((e) => e) || [];
2567
+ return message;
2568
+ }
2569
+ }
2570
+
2571
+ function createBaseEnumDescriptorProto_EnumReservedRange(): EnumDescriptorProto_EnumReservedRange {
2572
+ return { start: 0, end: 0 };
2573
+ }
2574
+
2575
+ export namespace EnumDescriptorProto_EnumReservedRange {
2576
+ export function encode(
2577
+ message: EnumDescriptorProto_EnumReservedRange,
2578
+ writer: _m0.Writer = _m0.Writer.create(),
2579
+ ): _m0.Writer {
2580
+ if (message.start !== undefined && message.start !== 0) {
2581
+ writer.uint32(8).int32(message.start);
2582
+ }
2583
+ if (message.end !== undefined && message.end !== 0) {
2584
+ writer.uint32(16).int32(message.end);
2585
+ }
1461
2586
  return writer;
1462
- },
2587
+ }
1463
2588
 
1464
- decode(input: _m0.Reader | Uint8Array, length?: number): EnumDescriptorProto {
2589
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): EnumDescriptorProto_EnumReservedRange {
1465
2590
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
1466
2591
  let end = length === undefined ? reader.len : reader.pos + length;
1467
- const message = createBaseEnumDescriptorProto();
2592
+ const message = createBaseEnumDescriptorProto_EnumReservedRange();
1468
2593
  while (reader.pos < end) {
1469
2594
  const tag = reader.uint32();
1470
2595
  switch (tag >>> 3) {
1471
2596
  case 1:
1472
- if (tag != 10) {
2597
+ if (tag !== 8) {
1473
2598
  break;
1474
2599
  }
1475
2600
 
1476
- message.name = reader.string();
2601
+ message.start = reader.int32();
1477
2602
  continue;
1478
2603
  case 2:
1479
- if (tag != 18) {
1480
- break;
1481
- }
1482
-
1483
- message.value.push(EnumValueDescriptorProto.decode(reader, reader.uint32()));
1484
- continue;
1485
- case 3:
1486
- if (tag != 26) {
2604
+ if (tag !== 16) {
1487
2605
  break;
1488
2606
  }
1489
2607
 
1490
- message.options = EnumOptions.decode(reader, reader.uint32());
2608
+ message.end = reader.int32();
1491
2609
  continue;
1492
2610
  }
1493
- if ((tag & 7) == 4 || tag == 0) {
2611
+ if ((tag & 7) === 4 || tag === 0) {
1494
2612
  break;
1495
2613
  }
1496
2614
  reader.skipType(tag & 7);
1497
2615
  }
1498
2616
  return message;
1499
- },
2617
+ }
1500
2618
 
1501
- fromJSON(object: any): EnumDescriptorProto {
1502
- return {
1503
- name: isSet(object.name) ? String(object.name) : "",
1504
- value: Array.isArray(object?.value) ? object.value.map((e: any) => EnumValueDescriptorProto.fromJSON(e)) : [],
1505
- options: isSet(object.options) ? EnumOptions.fromJSON(object.options) : undefined,
1506
- };
1507
- },
2619
+ export function fromJSON(object: any): EnumDescriptorProto_EnumReservedRange {
2620
+ return { start: isSet(object.start) ? Number(object.start) : 0, end: isSet(object.end) ? Number(object.end) : 0 };
2621
+ }
1508
2622
 
1509
- toJSON(message: EnumDescriptorProto): unknown {
2623
+ export function toJSON(message: EnumDescriptorProto_EnumReservedRange): unknown {
1510
2624
  const obj: any = {};
1511
- message.name !== undefined && (obj.name = message.name);
1512
- if (message.value) {
1513
- obj.value = message.value.map((e) => e ? EnumValueDescriptorProto.toJSON(e) : undefined);
1514
- } else {
1515
- obj.value = [];
1516
- }
1517
- message.options !== undefined && (obj.options = message.options ? EnumOptions.toJSON(message.options) : undefined);
2625
+ message.start !== undefined && (obj.start = Math.round(message.start));
2626
+ message.end !== undefined && (obj.end = Math.round(message.end));
1518
2627
  return obj;
1519
- },
2628
+ }
1520
2629
 
1521
- create<I extends Exact<DeepPartial<EnumDescriptorProto>, I>>(base?: I): EnumDescriptorProto {
1522
- return EnumDescriptorProto.fromPartial(base ?? {});
1523
- },
2630
+ export function create<I extends Exact<DeepPartial<EnumDescriptorProto_EnumReservedRange>, I>>(
2631
+ base?: I,
2632
+ ): EnumDescriptorProto_EnumReservedRange {
2633
+ return EnumDescriptorProto_EnumReservedRange.fromPartial(base ?? {});
2634
+ }
1524
2635
 
1525
- fromPartial<I extends Exact<DeepPartial<EnumDescriptorProto>, I>>(object: I): EnumDescriptorProto {
1526
- const message = createBaseEnumDescriptorProto();
1527
- message.name = object.name ?? "";
1528
- message.value = object.value?.map((e) => EnumValueDescriptorProto.fromPartial(e)) || [];
1529
- message.options = (object.options !== undefined && object.options !== null)
1530
- ? EnumOptions.fromPartial(object.options)
1531
- : undefined;
2636
+ export function fromPartial<I extends Exact<DeepPartial<EnumDescriptorProto_EnumReservedRange>, I>>(
2637
+ object: I,
2638
+ ): EnumDescriptorProto_EnumReservedRange {
2639
+ const message = createBaseEnumDescriptorProto_EnumReservedRange();
2640
+ message.start = object.start ?? 0;
2641
+ message.end = object.end ?? 0;
1532
2642
  return message;
1533
- },
1534
- };
2643
+ }
2644
+ }
1535
2645
 
1536
2646
  function createBaseEnumValueDescriptorProto(): EnumValueDescriptorProto {
1537
2647
  return { name: "", number: 0, options: undefined };
1538
2648
  }
1539
2649
 
1540
- export const EnumValueDescriptorProto = {
1541
- encode(message: EnumValueDescriptorProto, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
1542
- if (message.name !== "") {
2650
+ export namespace EnumValueDescriptorProto {
2651
+ export function encode(message: EnumValueDescriptorProto, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
2652
+ if (message.name !== undefined && message.name !== "") {
1543
2653
  writer.uint32(10).string(message.name);
1544
2654
  }
1545
- if (message.number !== 0) {
2655
+ if (message.number !== undefined && message.number !== 0) {
1546
2656
  writer.uint32(16).int32(message.number);
1547
2657
  }
1548
2658
  if (message.options !== undefined) {
1549
2659
  EnumValueOptions.encode(message.options, writer.uint32(26).fork()).ldelim();
1550
2660
  }
1551
2661
  return writer;
1552
- },
2662
+ }
1553
2663
 
1554
- decode(input: _m0.Reader | Uint8Array, length?: number): EnumValueDescriptorProto {
2664
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): EnumValueDescriptorProto {
1555
2665
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
1556
2666
  let end = length === undefined ? reader.len : reader.pos + length;
1557
2667
  const message = createBaseEnumValueDescriptorProto();
@@ -1559,57 +2669,61 @@ export const EnumValueDescriptorProto = {
1559
2669
  const tag = reader.uint32();
1560
2670
  switch (tag >>> 3) {
1561
2671
  case 1:
1562
- if (tag != 10) {
2672
+ if (tag !== 10) {
1563
2673
  break;
1564
2674
  }
1565
2675
 
1566
2676
  message.name = reader.string();
1567
2677
  continue;
1568
2678
  case 2:
1569
- if (tag != 16) {
2679
+ if (tag !== 16) {
1570
2680
  break;
1571
2681
  }
1572
2682
 
1573
2683
  message.number = reader.int32();
1574
2684
  continue;
1575
2685
  case 3:
1576
- if (tag != 26) {
2686
+ if (tag !== 26) {
1577
2687
  break;
1578
2688
  }
1579
2689
 
1580
2690
  message.options = EnumValueOptions.decode(reader, reader.uint32());
1581
2691
  continue;
1582
2692
  }
1583
- if ((tag & 7) == 4 || tag == 0) {
2693
+ if ((tag & 7) === 4 || tag === 0) {
1584
2694
  break;
1585
2695
  }
1586
2696
  reader.skipType(tag & 7);
1587
2697
  }
1588
2698
  return message;
1589
- },
2699
+ }
1590
2700
 
1591
- fromJSON(object: any): EnumValueDescriptorProto {
2701
+ export function fromJSON(object: any): EnumValueDescriptorProto {
1592
2702
  return {
1593
2703
  name: isSet(object.name) ? String(object.name) : "",
1594
2704
  number: isSet(object.number) ? Number(object.number) : 0,
1595
2705
  options: isSet(object.options) ? EnumValueOptions.fromJSON(object.options) : undefined,
1596
2706
  };
1597
- },
2707
+ }
1598
2708
 
1599
- toJSON(message: EnumValueDescriptorProto): unknown {
2709
+ export function toJSON(message: EnumValueDescriptorProto): unknown {
1600
2710
  const obj: any = {};
1601
2711
  message.name !== undefined && (obj.name = message.name);
1602
2712
  message.number !== undefined && (obj.number = Math.round(message.number));
1603
2713
  message.options !== undefined &&
1604
2714
  (obj.options = message.options ? EnumValueOptions.toJSON(message.options) : undefined);
1605
2715
  return obj;
1606
- },
2716
+ }
1607
2717
 
1608
- create<I extends Exact<DeepPartial<EnumValueDescriptorProto>, I>>(base?: I): EnumValueDescriptorProto {
2718
+ export function create<I extends Exact<DeepPartial<EnumValueDescriptorProto>, I>>(
2719
+ base?: I,
2720
+ ): EnumValueDescriptorProto {
1609
2721
  return EnumValueDescriptorProto.fromPartial(base ?? {});
1610
- },
2722
+ }
1611
2723
 
1612
- fromPartial<I extends Exact<DeepPartial<EnumValueDescriptorProto>, I>>(object: I): EnumValueDescriptorProto {
2724
+ export function fromPartial<I extends Exact<DeepPartial<EnumValueDescriptorProto>, I>>(
2725
+ object: I,
2726
+ ): EnumValueDescriptorProto {
1613
2727
  const message = createBaseEnumValueDescriptorProto();
1614
2728
  message.name = object.name ?? "";
1615
2729
  message.number = object.number ?? 0;
@@ -1617,28 +2731,28 @@ export const EnumValueDescriptorProto = {
1617
2731
  ? EnumValueOptions.fromPartial(object.options)
1618
2732
  : undefined;
1619
2733
  return message;
1620
- },
1621
- };
2734
+ }
2735
+ }
1622
2736
 
1623
2737
  function createBaseServiceDescriptorProto(): ServiceDescriptorProto {
1624
2738
  return { name: "", method: [], options: undefined };
1625
2739
  }
1626
2740
 
1627
- export const ServiceDescriptorProto = {
1628
- encode(message: ServiceDescriptorProto, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
1629
- if (message.name !== "") {
2741
+ export namespace ServiceDescriptorProto {
2742
+ export function encode(message: ServiceDescriptorProto, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
2743
+ if (message.name !== undefined && message.name !== "") {
1630
2744
  writer.uint32(10).string(message.name);
1631
2745
  }
1632
- for (const v of message.method) {
2746
+ for (const v of message.method ?? []) {
1633
2747
  MethodDescriptorProto.encode(v!, writer.uint32(18).fork()).ldelim();
1634
2748
  }
1635
2749
  if (message.options !== undefined) {
1636
2750
  ServiceOptions.encode(message.options, writer.uint32(26).fork()).ldelim();
1637
2751
  }
1638
2752
  return writer;
1639
- },
2753
+ }
1640
2754
 
1641
- decode(input: _m0.Reader | Uint8Array, length?: number): ServiceDescriptorProto {
2755
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): ServiceDescriptorProto {
1642
2756
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
1643
2757
  let end = length === undefined ? reader.len : reader.pos + length;
1644
2758
  const message = createBaseServiceDescriptorProto();
@@ -1646,44 +2760,44 @@ export const ServiceDescriptorProto = {
1646
2760
  const tag = reader.uint32();
1647
2761
  switch (tag >>> 3) {
1648
2762
  case 1:
1649
- if (tag != 10) {
2763
+ if (tag !== 10) {
1650
2764
  break;
1651
2765
  }
1652
2766
 
1653
2767
  message.name = reader.string();
1654
2768
  continue;
1655
2769
  case 2:
1656
- if (tag != 18) {
2770
+ if (tag !== 18) {
1657
2771
  break;
1658
2772
  }
1659
2773
 
1660
2774
  message.method.push(MethodDescriptorProto.decode(reader, reader.uint32()));
1661
2775
  continue;
1662
2776
  case 3:
1663
- if (tag != 26) {
2777
+ if (tag !== 26) {
1664
2778
  break;
1665
2779
  }
1666
2780
 
1667
2781
  message.options = ServiceOptions.decode(reader, reader.uint32());
1668
2782
  continue;
1669
2783
  }
1670
- if ((tag & 7) == 4 || tag == 0) {
2784
+ if ((tag & 7) === 4 || tag === 0) {
1671
2785
  break;
1672
2786
  }
1673
2787
  reader.skipType(tag & 7);
1674
2788
  }
1675
2789
  return message;
1676
- },
2790
+ }
1677
2791
 
1678
- fromJSON(object: any): ServiceDescriptorProto {
2792
+ export function fromJSON(object: any): ServiceDescriptorProto {
1679
2793
  return {
1680
2794
  name: isSet(object.name) ? String(object.name) : "",
1681
2795
  method: Array.isArray(object?.method) ? object.method.map((e: any) => MethodDescriptorProto.fromJSON(e)) : [],
1682
2796
  options: isSet(object.options) ? ServiceOptions.fromJSON(object.options) : undefined,
1683
2797
  };
1684
- },
2798
+ }
1685
2799
 
1686
- toJSON(message: ServiceDescriptorProto): unknown {
2800
+ export function toJSON(message: ServiceDescriptorProto): unknown {
1687
2801
  const obj: any = {};
1688
2802
  message.name !== undefined && (obj.name = message.name);
1689
2803
  if (message.method) {
@@ -1694,13 +2808,15 @@ export const ServiceDescriptorProto = {
1694
2808
  message.options !== undefined &&
1695
2809
  (obj.options = message.options ? ServiceOptions.toJSON(message.options) : undefined);
1696
2810
  return obj;
1697
- },
2811
+ }
1698
2812
 
1699
- create<I extends Exact<DeepPartial<ServiceDescriptorProto>, I>>(base?: I): ServiceDescriptorProto {
2813
+ export function create<I extends Exact<DeepPartial<ServiceDescriptorProto>, I>>(base?: I): ServiceDescriptorProto {
1700
2814
  return ServiceDescriptorProto.fromPartial(base ?? {});
1701
- },
2815
+ }
1702
2816
 
1703
- fromPartial<I extends Exact<DeepPartial<ServiceDescriptorProto>, I>>(object: I): ServiceDescriptorProto {
2817
+ export function fromPartial<I extends Exact<DeepPartial<ServiceDescriptorProto>, I>>(
2818
+ object: I,
2819
+ ): ServiceDescriptorProto {
1704
2820
  const message = createBaseServiceDescriptorProto();
1705
2821
  message.name = object.name ?? "";
1706
2822
  message.method = object.method?.map((e) => MethodDescriptorProto.fromPartial(e)) || [];
@@ -1708,8 +2824,8 @@ export const ServiceDescriptorProto = {
1708
2824
  ? ServiceOptions.fromPartial(object.options)
1709
2825
  : undefined;
1710
2826
  return message;
1711
- },
1712
- };
2827
+ }
2828
+ }
1713
2829
 
1714
2830
  function createBaseMethodDescriptorProto(): MethodDescriptorProto {
1715
2831
  return {
@@ -1722,15 +2838,15 @@ function createBaseMethodDescriptorProto(): MethodDescriptorProto {
1722
2838
  };
1723
2839
  }
1724
2840
 
1725
- export const MethodDescriptorProto = {
1726
- encode(message: MethodDescriptorProto, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
1727
- if (message.name !== "") {
2841
+ export namespace MethodDescriptorProto {
2842
+ export function encode(message: MethodDescriptorProto, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
2843
+ if (message.name !== undefined && message.name !== "") {
1728
2844
  writer.uint32(10).string(message.name);
1729
2845
  }
1730
- if (message.inputType !== "") {
2846
+ if (message.inputType !== undefined && message.inputType !== "") {
1731
2847
  writer.uint32(18).string(message.inputType);
1732
2848
  }
1733
- if (message.outputType !== "") {
2849
+ if (message.outputType !== undefined && message.outputType !== "") {
1734
2850
  writer.uint32(26).string(message.outputType);
1735
2851
  }
1736
2852
  if (message.options !== undefined) {
@@ -1743,9 +2859,9 @@ export const MethodDescriptorProto = {
1743
2859
  writer.uint32(48).bool(message.serverStreaming);
1744
2860
  }
1745
2861
  return writer;
1746
- },
2862
+ }
1747
2863
 
1748
- decode(input: _m0.Reader | Uint8Array, length?: number): MethodDescriptorProto {
2864
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): MethodDescriptorProto {
1749
2865
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
1750
2866
  let end = length === undefined ? reader.len : reader.pos + length;
1751
2867
  const message = createBaseMethodDescriptorProto();
@@ -1753,57 +2869,57 @@ export const MethodDescriptorProto = {
1753
2869
  const tag = reader.uint32();
1754
2870
  switch (tag >>> 3) {
1755
2871
  case 1:
1756
- if (tag != 10) {
2872
+ if (tag !== 10) {
1757
2873
  break;
1758
2874
  }
1759
2875
 
1760
2876
  message.name = reader.string();
1761
2877
  continue;
1762
2878
  case 2:
1763
- if (tag != 18) {
2879
+ if (tag !== 18) {
1764
2880
  break;
1765
2881
  }
1766
2882
 
1767
2883
  message.inputType = reader.string();
1768
2884
  continue;
1769
2885
  case 3:
1770
- if (tag != 26) {
2886
+ if (tag !== 26) {
1771
2887
  break;
1772
2888
  }
1773
2889
 
1774
2890
  message.outputType = reader.string();
1775
2891
  continue;
1776
2892
  case 4:
1777
- if (tag != 34) {
2893
+ if (tag !== 34) {
1778
2894
  break;
1779
2895
  }
1780
2896
 
1781
2897
  message.options = MethodOptions.decode(reader, reader.uint32());
1782
2898
  continue;
1783
2899
  case 5:
1784
- if (tag != 40) {
2900
+ if (tag !== 40) {
1785
2901
  break;
1786
2902
  }
1787
2903
 
1788
2904
  message.clientStreaming = reader.bool();
1789
2905
  continue;
1790
2906
  case 6:
1791
- if (tag != 48) {
2907
+ if (tag !== 48) {
1792
2908
  break;
1793
2909
  }
1794
2910
 
1795
2911
  message.serverStreaming = reader.bool();
1796
2912
  continue;
1797
2913
  }
1798
- if ((tag & 7) == 4 || tag == 0) {
2914
+ if ((tag & 7) === 4 || tag === 0) {
1799
2915
  break;
1800
2916
  }
1801
2917
  reader.skipType(tag & 7);
1802
2918
  }
1803
2919
  return message;
1804
- },
2920
+ }
1805
2921
 
1806
- fromJSON(object: any): MethodDescriptorProto {
2922
+ export function fromJSON(object: any): MethodDescriptorProto {
1807
2923
  return {
1808
2924
  name: isSet(object.name) ? String(object.name) : "",
1809
2925
  inputType: isSet(object.inputType) ? String(object.inputType) : "",
@@ -1812,9 +2928,9 @@ export const MethodDescriptorProto = {
1812
2928
  clientStreaming: isSet(object.clientStreaming) ? Boolean(object.clientStreaming) : false,
1813
2929
  serverStreaming: isSet(object.serverStreaming) ? Boolean(object.serverStreaming) : false,
1814
2930
  };
1815
- },
2931
+ }
1816
2932
 
1817
- toJSON(message: MethodDescriptorProto): unknown {
2933
+ export function toJSON(message: MethodDescriptorProto): unknown {
1818
2934
  const obj: any = {};
1819
2935
  message.name !== undefined && (obj.name = message.name);
1820
2936
  message.inputType !== undefined && (obj.inputType = message.inputType);
@@ -1824,13 +2940,15 @@ export const MethodDescriptorProto = {
1824
2940
  message.clientStreaming !== undefined && (obj.clientStreaming = message.clientStreaming);
1825
2941
  message.serverStreaming !== undefined && (obj.serverStreaming = message.serverStreaming);
1826
2942
  return obj;
1827
- },
2943
+ }
1828
2944
 
1829
- create<I extends Exact<DeepPartial<MethodDescriptorProto>, I>>(base?: I): MethodDescriptorProto {
2945
+ export function create<I extends Exact<DeepPartial<MethodDescriptorProto>, I>>(base?: I): MethodDescriptorProto {
1830
2946
  return MethodDescriptorProto.fromPartial(base ?? {});
1831
- },
2947
+ }
1832
2948
 
1833
- fromPartial<I extends Exact<DeepPartial<MethodDescriptorProto>, I>>(object: I): MethodDescriptorProto {
2949
+ export function fromPartial<I extends Exact<DeepPartial<MethodDescriptorProto>, I>>(
2950
+ object: I,
2951
+ ): MethodDescriptorProto {
1834
2952
  const message = createBaseMethodDescriptorProto();
1835
2953
  message.name = object.name ?? "";
1836
2954
  message.inputType = object.inputType ?? "";
@@ -1841,8 +2959,8 @@ export const MethodDescriptorProto = {
1841
2959
  message.clientStreaming = object.clientStreaming ?? false;
1842
2960
  message.serverStreaming = object.serverStreaming ?? false;
1843
2961
  return message;
1844
- },
1845
- };
2962
+ }
2963
+ }
1846
2964
 
1847
2965
  function createBaseFileOptions(): FileOptions {
1848
2966
  return {
@@ -1856,20 +2974,26 @@ function createBaseFileOptions(): FileOptions {
1856
2974
  ccGenericServices: false,
1857
2975
  javaGenericServices: false,
1858
2976
  pyGenericServices: false,
2977
+ phpGenericServices: false,
1859
2978
  deprecated: false,
1860
2979
  ccEnableArenas: false,
1861
2980
  objcClassPrefix: "",
1862
2981
  csharpNamespace: "",
2982
+ swiftPrefix: "",
2983
+ phpClassPrefix: "",
2984
+ phpNamespace: "",
2985
+ phpMetadataNamespace: "",
2986
+ rubyPackage: "",
1863
2987
  uninterpretedOption: [],
1864
2988
  };
1865
2989
  }
1866
2990
 
1867
- export const FileOptions = {
1868
- encode(message: FileOptions, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
1869
- if (message.javaPackage !== "") {
2991
+ export namespace FileOptions {
2992
+ export function encode(message: FileOptions, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
2993
+ if (message.javaPackage !== undefined && message.javaPackage !== "") {
1870
2994
  writer.uint32(10).string(message.javaPackage);
1871
2995
  }
1872
- if (message.javaOuterClassname !== "") {
2996
+ if (message.javaOuterClassname !== undefined && message.javaOuterClassname !== "") {
1873
2997
  writer.uint32(66).string(message.javaOuterClassname);
1874
2998
  }
1875
2999
  if (message.javaMultipleFiles === true) {
@@ -1881,10 +3005,10 @@ export const FileOptions = {
1881
3005
  if (message.javaStringCheckUtf8 === true) {
1882
3006
  writer.uint32(216).bool(message.javaStringCheckUtf8);
1883
3007
  }
1884
- if (message.optimizeFor !== 1) {
3008
+ if (message.optimizeFor !== undefined && message.optimizeFor !== 1) {
1885
3009
  writer.uint32(72).int32(message.optimizeFor);
1886
3010
  }
1887
- if (message.goPackage !== "") {
3011
+ if (message.goPackage !== undefined && message.goPackage !== "") {
1888
3012
  writer.uint32(90).string(message.goPackage);
1889
3013
  }
1890
3014
  if (message.ccGenericServices === true) {
@@ -1896,25 +3020,43 @@ export const FileOptions = {
1896
3020
  if (message.pyGenericServices === true) {
1897
3021
  writer.uint32(144).bool(message.pyGenericServices);
1898
3022
  }
3023
+ if (message.phpGenericServices === true) {
3024
+ writer.uint32(336).bool(message.phpGenericServices);
3025
+ }
1899
3026
  if (message.deprecated === true) {
1900
3027
  writer.uint32(184).bool(message.deprecated);
1901
3028
  }
1902
3029
  if (message.ccEnableArenas === true) {
1903
3030
  writer.uint32(248).bool(message.ccEnableArenas);
1904
3031
  }
1905
- if (message.objcClassPrefix !== "") {
3032
+ if (message.objcClassPrefix !== undefined && message.objcClassPrefix !== "") {
1906
3033
  writer.uint32(290).string(message.objcClassPrefix);
1907
3034
  }
1908
- if (message.csharpNamespace !== "") {
3035
+ if (message.csharpNamespace !== undefined && message.csharpNamespace !== "") {
1909
3036
  writer.uint32(298).string(message.csharpNamespace);
1910
3037
  }
1911
- for (const v of message.uninterpretedOption) {
3038
+ if (message.swiftPrefix !== undefined && message.swiftPrefix !== "") {
3039
+ writer.uint32(314).string(message.swiftPrefix);
3040
+ }
3041
+ if (message.phpClassPrefix !== undefined && message.phpClassPrefix !== "") {
3042
+ writer.uint32(322).string(message.phpClassPrefix);
3043
+ }
3044
+ if (message.phpNamespace !== undefined && message.phpNamespace !== "") {
3045
+ writer.uint32(330).string(message.phpNamespace);
3046
+ }
3047
+ if (message.phpMetadataNamespace !== undefined && message.phpMetadataNamespace !== "") {
3048
+ writer.uint32(354).string(message.phpMetadataNamespace);
3049
+ }
3050
+ if (message.rubyPackage !== undefined && message.rubyPackage !== "") {
3051
+ writer.uint32(362).string(message.rubyPackage);
3052
+ }
3053
+ for (const v of message.uninterpretedOption ?? []) {
1912
3054
  UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim();
1913
3055
  }
1914
3056
  return writer;
1915
- },
3057
+ }
1916
3058
 
1917
- decode(input: _m0.Reader | Uint8Array, length?: number): FileOptions {
3059
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): FileOptions {
1918
3060
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
1919
3061
  let end = length === undefined ? reader.len : reader.pos + length;
1920
3062
  const message = createBaseFileOptions();
@@ -1922,120 +3064,162 @@ export const FileOptions = {
1922
3064
  const tag = reader.uint32();
1923
3065
  switch (tag >>> 3) {
1924
3066
  case 1:
1925
- if (tag != 10) {
3067
+ if (tag !== 10) {
1926
3068
  break;
1927
3069
  }
1928
3070
 
1929
3071
  message.javaPackage = reader.string();
1930
3072
  continue;
1931
3073
  case 8:
1932
- if (tag != 66) {
3074
+ if (tag !== 66) {
1933
3075
  break;
1934
3076
  }
1935
3077
 
1936
3078
  message.javaOuterClassname = reader.string();
1937
3079
  continue;
1938
3080
  case 10:
1939
- if (tag != 80) {
3081
+ if (tag !== 80) {
1940
3082
  break;
1941
3083
  }
1942
3084
 
1943
3085
  message.javaMultipleFiles = reader.bool();
1944
3086
  continue;
1945
3087
  case 20:
1946
- if (tag != 160) {
3088
+ if (tag !== 160) {
1947
3089
  break;
1948
3090
  }
1949
3091
 
1950
3092
  message.javaGenerateEqualsAndHash = reader.bool();
1951
3093
  continue;
1952
3094
  case 27:
1953
- if (tag != 216) {
3095
+ if (tag !== 216) {
1954
3096
  break;
1955
3097
  }
1956
3098
 
1957
3099
  message.javaStringCheckUtf8 = reader.bool();
1958
3100
  continue;
1959
3101
  case 9:
1960
- if (tag != 72) {
3102
+ if (tag !== 72) {
1961
3103
  break;
1962
3104
  }
1963
3105
 
1964
3106
  message.optimizeFor = reader.int32() as any;
1965
3107
  continue;
1966
3108
  case 11:
1967
- if (tag != 90) {
3109
+ if (tag !== 90) {
1968
3110
  break;
1969
3111
  }
1970
3112
 
1971
3113
  message.goPackage = reader.string();
1972
3114
  continue;
1973
3115
  case 16:
1974
- if (tag != 128) {
3116
+ if (tag !== 128) {
1975
3117
  break;
1976
3118
  }
1977
3119
 
1978
3120
  message.ccGenericServices = reader.bool();
1979
3121
  continue;
1980
3122
  case 17:
1981
- if (tag != 136) {
3123
+ if (tag !== 136) {
1982
3124
  break;
1983
3125
  }
1984
3126
 
1985
3127
  message.javaGenericServices = reader.bool();
1986
3128
  continue;
1987
3129
  case 18:
1988
- if (tag != 144) {
3130
+ if (tag !== 144) {
1989
3131
  break;
1990
3132
  }
1991
3133
 
1992
3134
  message.pyGenericServices = reader.bool();
1993
3135
  continue;
3136
+ case 42:
3137
+ if (tag !== 336) {
3138
+ break;
3139
+ }
3140
+
3141
+ message.phpGenericServices = reader.bool();
3142
+ continue;
1994
3143
  case 23:
1995
- if (tag != 184) {
3144
+ if (tag !== 184) {
1996
3145
  break;
1997
3146
  }
1998
3147
 
1999
3148
  message.deprecated = reader.bool();
2000
3149
  continue;
2001
3150
  case 31:
2002
- if (tag != 248) {
3151
+ if (tag !== 248) {
2003
3152
  break;
2004
3153
  }
2005
3154
 
2006
3155
  message.ccEnableArenas = reader.bool();
2007
3156
  continue;
2008
3157
  case 36:
2009
- if (tag != 290) {
3158
+ if (tag !== 290) {
2010
3159
  break;
2011
3160
  }
2012
3161
 
2013
3162
  message.objcClassPrefix = reader.string();
2014
3163
  continue;
2015
3164
  case 37:
2016
- if (tag != 298) {
3165
+ if (tag !== 298) {
2017
3166
  break;
2018
3167
  }
2019
3168
 
2020
3169
  message.csharpNamespace = reader.string();
2021
3170
  continue;
3171
+ case 39:
3172
+ if (tag !== 314) {
3173
+ break;
3174
+ }
3175
+
3176
+ message.swiftPrefix = reader.string();
3177
+ continue;
3178
+ case 40:
3179
+ if (tag !== 322) {
3180
+ break;
3181
+ }
3182
+
3183
+ message.phpClassPrefix = reader.string();
3184
+ continue;
3185
+ case 41:
3186
+ if (tag !== 330) {
3187
+ break;
3188
+ }
3189
+
3190
+ message.phpNamespace = reader.string();
3191
+ continue;
3192
+ case 44:
3193
+ if (tag !== 354) {
3194
+ break;
3195
+ }
3196
+
3197
+ message.phpMetadataNamespace = reader.string();
3198
+ continue;
3199
+ case 45:
3200
+ if (tag !== 362) {
3201
+ break;
3202
+ }
3203
+
3204
+ message.rubyPackage = reader.string();
3205
+ continue;
2022
3206
  case 999:
2023
- if (tag != 7994) {
3207
+ if (tag !== 7994) {
2024
3208
  break;
2025
3209
  }
2026
3210
 
2027
3211
  message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32()));
2028
3212
  continue;
2029
3213
  }
2030
- if ((tag & 7) == 4 || tag == 0) {
3214
+ if ((tag & 7) === 4 || tag === 0) {
2031
3215
  break;
2032
3216
  }
2033
3217
  reader.skipType(tag & 7);
2034
3218
  }
2035
3219
  return message;
2036
- },
3220
+ }
2037
3221
 
2038
- fromJSON(object: any): FileOptions {
3222
+ export function fromJSON(object: any): FileOptions {
2039
3223
  return {
2040
3224
  javaPackage: isSet(object.javaPackage) ? String(object.javaPackage) : "",
2041
3225
  javaOuterClassname: isSet(object.javaOuterClassname) ? String(object.javaOuterClassname) : "",
@@ -2049,17 +3233,23 @@ export const FileOptions = {
2049
3233
  ccGenericServices: isSet(object.ccGenericServices) ? Boolean(object.ccGenericServices) : false,
2050
3234
  javaGenericServices: isSet(object.javaGenericServices) ? Boolean(object.javaGenericServices) : false,
2051
3235
  pyGenericServices: isSet(object.pyGenericServices) ? Boolean(object.pyGenericServices) : false,
3236
+ phpGenericServices: isSet(object.phpGenericServices) ? Boolean(object.phpGenericServices) : false,
2052
3237
  deprecated: isSet(object.deprecated) ? Boolean(object.deprecated) : false,
2053
3238
  ccEnableArenas: isSet(object.ccEnableArenas) ? Boolean(object.ccEnableArenas) : false,
2054
3239
  objcClassPrefix: isSet(object.objcClassPrefix) ? String(object.objcClassPrefix) : "",
2055
3240
  csharpNamespace: isSet(object.csharpNamespace) ? String(object.csharpNamespace) : "",
3241
+ swiftPrefix: isSet(object.swiftPrefix) ? String(object.swiftPrefix) : "",
3242
+ phpClassPrefix: isSet(object.phpClassPrefix) ? String(object.phpClassPrefix) : "",
3243
+ phpNamespace: isSet(object.phpNamespace) ? String(object.phpNamespace) : "",
3244
+ phpMetadataNamespace: isSet(object.phpMetadataNamespace) ? String(object.phpMetadataNamespace) : "",
3245
+ rubyPackage: isSet(object.rubyPackage) ? String(object.rubyPackage) : "",
2056
3246
  uninterpretedOption: Array.isArray(object?.uninterpretedOption)
2057
3247
  ? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e))
2058
3248
  : [],
2059
3249
  };
2060
- },
3250
+ }
2061
3251
 
2062
- toJSON(message: FileOptions): unknown {
3252
+ export function toJSON(message: FileOptions): unknown {
2063
3253
  const obj: any = {};
2064
3254
  message.javaPackage !== undefined && (obj.javaPackage = message.javaPackage);
2065
3255
  message.javaOuterClassname !== undefined && (obj.javaOuterClassname = message.javaOuterClassname);
@@ -2072,23 +3262,29 @@ export const FileOptions = {
2072
3262
  message.ccGenericServices !== undefined && (obj.ccGenericServices = message.ccGenericServices);
2073
3263
  message.javaGenericServices !== undefined && (obj.javaGenericServices = message.javaGenericServices);
2074
3264
  message.pyGenericServices !== undefined && (obj.pyGenericServices = message.pyGenericServices);
3265
+ message.phpGenericServices !== undefined && (obj.phpGenericServices = message.phpGenericServices);
2075
3266
  message.deprecated !== undefined && (obj.deprecated = message.deprecated);
2076
3267
  message.ccEnableArenas !== undefined && (obj.ccEnableArenas = message.ccEnableArenas);
2077
3268
  message.objcClassPrefix !== undefined && (obj.objcClassPrefix = message.objcClassPrefix);
2078
3269
  message.csharpNamespace !== undefined && (obj.csharpNamespace = message.csharpNamespace);
3270
+ message.swiftPrefix !== undefined && (obj.swiftPrefix = message.swiftPrefix);
3271
+ message.phpClassPrefix !== undefined && (obj.phpClassPrefix = message.phpClassPrefix);
3272
+ message.phpNamespace !== undefined && (obj.phpNamespace = message.phpNamespace);
3273
+ message.phpMetadataNamespace !== undefined && (obj.phpMetadataNamespace = message.phpMetadataNamespace);
3274
+ message.rubyPackage !== undefined && (obj.rubyPackage = message.rubyPackage);
2079
3275
  if (message.uninterpretedOption) {
2080
3276
  obj.uninterpretedOption = message.uninterpretedOption.map((e) => e ? UninterpretedOption.toJSON(e) : undefined);
2081
3277
  } else {
2082
3278
  obj.uninterpretedOption = [];
2083
3279
  }
2084
3280
  return obj;
2085
- },
3281
+ }
2086
3282
 
2087
- create<I extends Exact<DeepPartial<FileOptions>, I>>(base?: I): FileOptions {
3283
+ export function create<I extends Exact<DeepPartial<FileOptions>, I>>(base?: I): FileOptions {
2088
3284
  return FileOptions.fromPartial(base ?? {});
2089
- },
3285
+ }
2090
3286
 
2091
- fromPartial<I extends Exact<DeepPartial<FileOptions>, I>>(object: I): FileOptions {
3287
+ export function fromPartial<I extends Exact<DeepPartial<FileOptions>, I>>(object: I): FileOptions {
2092
3288
  const message = createBaseFileOptions();
2093
3289
  message.javaPackage = object.javaPackage ?? "";
2094
3290
  message.javaOuterClassname = object.javaOuterClassname ?? "";
@@ -2100,14 +3296,20 @@ export const FileOptions = {
2100
3296
  message.ccGenericServices = object.ccGenericServices ?? false;
2101
3297
  message.javaGenericServices = object.javaGenericServices ?? false;
2102
3298
  message.pyGenericServices = object.pyGenericServices ?? false;
3299
+ message.phpGenericServices = object.phpGenericServices ?? false;
2103
3300
  message.deprecated = object.deprecated ?? false;
2104
3301
  message.ccEnableArenas = object.ccEnableArenas ?? false;
2105
3302
  message.objcClassPrefix = object.objcClassPrefix ?? "";
2106
3303
  message.csharpNamespace = object.csharpNamespace ?? "";
3304
+ message.swiftPrefix = object.swiftPrefix ?? "";
3305
+ message.phpClassPrefix = object.phpClassPrefix ?? "";
3306
+ message.phpNamespace = object.phpNamespace ?? "";
3307
+ message.phpMetadataNamespace = object.phpMetadataNamespace ?? "";
3308
+ message.rubyPackage = object.rubyPackage ?? "";
2107
3309
  message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || [];
2108
3310
  return message;
2109
- },
2110
- };
3311
+ }
3312
+ }
2111
3313
 
2112
3314
  function createBaseMessageOptions(): MessageOptions {
2113
3315
  return {
@@ -2115,12 +3317,13 @@ function createBaseMessageOptions(): MessageOptions {
2115
3317
  noStandardDescriptorAccessor: false,
2116
3318
  deprecated: false,
2117
3319
  mapEntry: false,
3320
+ deprecatedLegacyJsonFieldConflicts: false,
2118
3321
  uninterpretedOption: [],
2119
3322
  };
2120
3323
  }
2121
3324
 
2122
- export const MessageOptions = {
2123
- encode(message: MessageOptions, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
3325
+ export namespace MessageOptions {
3326
+ export function encode(message: MessageOptions, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
2124
3327
  if (message.messageSetWireFormat === true) {
2125
3328
  writer.uint32(8).bool(message.messageSetWireFormat);
2126
3329
  }
@@ -2133,13 +3336,16 @@ export const MessageOptions = {
2133
3336
  if (message.mapEntry === true) {
2134
3337
  writer.uint32(56).bool(message.mapEntry);
2135
3338
  }
2136
- for (const v of message.uninterpretedOption) {
3339
+ if (message.deprecatedLegacyJsonFieldConflicts === true) {
3340
+ writer.uint32(88).bool(message.deprecatedLegacyJsonFieldConflicts);
3341
+ }
3342
+ for (const v of message.uninterpretedOption ?? []) {
2137
3343
  UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim();
2138
3344
  }
2139
3345
  return writer;
2140
- },
3346
+ }
2141
3347
 
2142
- decode(input: _m0.Reader | Uint8Array, length?: number): MessageOptions {
3348
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): MessageOptions {
2143
3349
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
2144
3350
  let end = length === undefined ? reader.len : reader.pos + length;
2145
3351
  const message = createBaseMessageOptions();
@@ -2147,50 +3353,57 @@ export const MessageOptions = {
2147
3353
  const tag = reader.uint32();
2148
3354
  switch (tag >>> 3) {
2149
3355
  case 1:
2150
- if (tag != 8) {
3356
+ if (tag !== 8) {
2151
3357
  break;
2152
3358
  }
2153
3359
 
2154
3360
  message.messageSetWireFormat = reader.bool();
2155
3361
  continue;
2156
3362
  case 2:
2157
- if (tag != 16) {
3363
+ if (tag !== 16) {
2158
3364
  break;
2159
3365
  }
2160
3366
 
2161
3367
  message.noStandardDescriptorAccessor = reader.bool();
2162
3368
  continue;
2163
3369
  case 3:
2164
- if (tag != 24) {
3370
+ if (tag !== 24) {
2165
3371
  break;
2166
3372
  }
2167
3373
 
2168
3374
  message.deprecated = reader.bool();
2169
3375
  continue;
2170
3376
  case 7:
2171
- if (tag != 56) {
3377
+ if (tag !== 56) {
2172
3378
  break;
2173
3379
  }
2174
3380
 
2175
3381
  message.mapEntry = reader.bool();
2176
3382
  continue;
3383
+ case 11:
3384
+ if (tag !== 88) {
3385
+ break;
3386
+ }
3387
+
3388
+ message.deprecatedLegacyJsonFieldConflicts = reader.bool();
3389
+ continue;
2177
3390
  case 999:
2178
- if (tag != 7994) {
3391
+ if (tag !== 7994) {
2179
3392
  break;
2180
3393
  }
2181
3394
 
2182
3395
  message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32()));
2183
3396
  continue;
2184
3397
  }
2185
- if ((tag & 7) == 4 || tag == 0) {
3398
+ if ((tag & 7) === 4 || tag === 0) {
2186
3399
  break;
2187
3400
  }
2188
3401
  reader.skipType(tag & 7);
2189
3402
  }
2190
3403
  return message;
2191
- },
3404
+ }
2192
3405
 
2193
- fromJSON(object: any): MessageOptions {
3406
+ export function fromJSON(object: any): MessageOptions {
2194
3407
  return {
2195
3408
  messageSetWireFormat: isSet(object.messageSetWireFormat) ? Boolean(object.messageSetWireFormat) : false,
2196
3409
  noStandardDescriptorAccessor: isSet(object.noStandardDescriptorAccessor)
@@ -2198,73 +3411,103 @@ export const MessageOptions = {
2198
3411
  : false,
2199
3412
  deprecated: isSet(object.deprecated) ? Boolean(object.deprecated) : false,
2200
3413
  mapEntry: isSet(object.mapEntry) ? Boolean(object.mapEntry) : false,
3414
+ deprecatedLegacyJsonFieldConflicts: isSet(object.deprecatedLegacyJsonFieldConflicts)
3415
+ ? Boolean(object.deprecatedLegacyJsonFieldConflicts)
3416
+ : false,
2201
3417
  uninterpretedOption: Array.isArray(object?.uninterpretedOption)
2202
3418
  ? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e))
2203
3419
  : [],
2204
3420
  };
2205
- },
3421
+ }
2206
3422
 
2207
- toJSON(message: MessageOptions): unknown {
3423
+ export function toJSON(message: MessageOptions): unknown {
2208
3424
  const obj: any = {};
2209
3425
  message.messageSetWireFormat !== undefined && (obj.messageSetWireFormat = message.messageSetWireFormat);
2210
3426
  message.noStandardDescriptorAccessor !== undefined &&
2211
3427
  (obj.noStandardDescriptorAccessor = message.noStandardDescriptorAccessor);
2212
3428
  message.deprecated !== undefined && (obj.deprecated = message.deprecated);
2213
3429
  message.mapEntry !== undefined && (obj.mapEntry = message.mapEntry);
3430
+ message.deprecatedLegacyJsonFieldConflicts !== undefined &&
3431
+ (obj.deprecatedLegacyJsonFieldConflicts = message.deprecatedLegacyJsonFieldConflicts);
2214
3432
  if (message.uninterpretedOption) {
2215
3433
  obj.uninterpretedOption = message.uninterpretedOption.map((e) => e ? UninterpretedOption.toJSON(e) : undefined);
2216
3434
  } else {
2217
3435
  obj.uninterpretedOption = [];
2218
3436
  }
2219
3437
  return obj;
2220
- },
3438
+ }
2221
3439
 
2222
- create<I extends Exact<DeepPartial<MessageOptions>, I>>(base?: I): MessageOptions {
3440
+ export function create<I extends Exact<DeepPartial<MessageOptions>, I>>(base?: I): MessageOptions {
2223
3441
  return MessageOptions.fromPartial(base ?? {});
2224
- },
3442
+ }
2225
3443
 
2226
- fromPartial<I extends Exact<DeepPartial<MessageOptions>, I>>(object: I): MessageOptions {
3444
+ export function fromPartial<I extends Exact<DeepPartial<MessageOptions>, I>>(object: I): MessageOptions {
2227
3445
  const message = createBaseMessageOptions();
2228
3446
  message.messageSetWireFormat = object.messageSetWireFormat ?? false;
2229
3447
  message.noStandardDescriptorAccessor = object.noStandardDescriptorAccessor ?? false;
2230
3448
  message.deprecated = object.deprecated ?? false;
2231
3449
  message.mapEntry = object.mapEntry ?? false;
3450
+ message.deprecatedLegacyJsonFieldConflicts = object.deprecatedLegacyJsonFieldConflicts ?? false;
2232
3451
  message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || [];
2233
3452
  return message;
2234
- },
2235
- };
3453
+ }
3454
+ }
2236
3455
 
2237
3456
  function createBaseFieldOptions(): FieldOptions {
2238
- return { ctype: 0, packed: false, jstype: 0, lazy: false, deprecated: false, weak: false, uninterpretedOption: [] };
3457
+ return {
3458
+ ctype: 0,
3459
+ packed: false,
3460
+ jstype: 0,
3461
+ lazy: false,
3462
+ unverifiedLazy: false,
3463
+ deprecated: false,
3464
+ weak: false,
3465
+ debugRedact: false,
3466
+ retention: 0,
3467
+ target: 0,
3468
+ uninterpretedOption: [],
3469
+ };
2239
3470
  }
2240
3471
 
2241
- export const FieldOptions = {
2242
- encode(message: FieldOptions, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
2243
- if (message.ctype !== 0) {
3472
+ export namespace FieldOptions {
3473
+ export function encode(message: FieldOptions, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
3474
+ if (message.ctype !== undefined && message.ctype !== 0) {
2244
3475
  writer.uint32(8).int32(message.ctype);
2245
3476
  }
2246
3477
  if (message.packed === true) {
2247
3478
  writer.uint32(16).bool(message.packed);
2248
3479
  }
2249
- if (message.jstype !== 0) {
3480
+ if (message.jstype !== undefined && message.jstype !== 0) {
2250
3481
  writer.uint32(48).int32(message.jstype);
2251
3482
  }
2252
3483
  if (message.lazy === true) {
2253
3484
  writer.uint32(40).bool(message.lazy);
2254
3485
  }
3486
+ if (message.unverifiedLazy === true) {
3487
+ writer.uint32(120).bool(message.unverifiedLazy);
3488
+ }
2255
3489
  if (message.deprecated === true) {
2256
3490
  writer.uint32(24).bool(message.deprecated);
2257
3491
  }
2258
3492
  if (message.weak === true) {
2259
3493
  writer.uint32(80).bool(message.weak);
2260
3494
  }
2261
- for (const v of message.uninterpretedOption) {
3495
+ if (message.debugRedact === true) {
3496
+ writer.uint32(128).bool(message.debugRedact);
3497
+ }
3498
+ if (message.retention !== undefined && message.retention !== 0) {
3499
+ writer.uint32(136).int32(message.retention);
3500
+ }
3501
+ if (message.target !== undefined && message.target !== 0) {
3502
+ writer.uint32(144).int32(message.target);
3503
+ }
3504
+ for (const v of message.uninterpretedOption ?? []) {
2262
3505
  UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim();
2263
3506
  }
2264
3507
  return writer;
2265
- },
3508
+ }
2266
3509
 
2267
- decode(input: _m0.Reader | Uint8Array, length?: number): FieldOptions {
3510
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): FieldOptions {
2268
3511
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
2269
3512
  let end = length === undefined ? reader.len : reader.pos + length;
2270
3513
  const message = createBaseFieldOptions();
@@ -2272,123 +3515,163 @@ export const FieldOptions = {
2272
3515
  const tag = reader.uint32();
2273
3516
  switch (tag >>> 3) {
2274
3517
  case 1:
2275
- if (tag != 8) {
3518
+ if (tag !== 8) {
2276
3519
  break;
2277
3520
  }
2278
3521
 
2279
3522
  message.ctype = reader.int32() as any;
2280
3523
  continue;
2281
3524
  case 2:
2282
- if (tag != 16) {
3525
+ if (tag !== 16) {
2283
3526
  break;
2284
3527
  }
2285
3528
 
2286
3529
  message.packed = reader.bool();
2287
3530
  continue;
2288
3531
  case 6:
2289
- if (tag != 48) {
3532
+ if (tag !== 48) {
2290
3533
  break;
2291
3534
  }
2292
3535
 
2293
3536
  message.jstype = reader.int32() as any;
2294
3537
  continue;
2295
3538
  case 5:
2296
- if (tag != 40) {
3539
+ if (tag !== 40) {
2297
3540
  break;
2298
3541
  }
2299
3542
 
2300
3543
  message.lazy = reader.bool();
2301
3544
  continue;
3545
+ case 15:
3546
+ if (tag !== 120) {
3547
+ break;
3548
+ }
3549
+
3550
+ message.unverifiedLazy = reader.bool();
3551
+ continue;
2302
3552
  case 3:
2303
- if (tag != 24) {
3553
+ if (tag !== 24) {
2304
3554
  break;
2305
3555
  }
2306
3556
 
2307
3557
  message.deprecated = reader.bool();
2308
3558
  continue;
2309
3559
  case 10:
2310
- if (tag != 80) {
3560
+ if (tag !== 80) {
2311
3561
  break;
2312
3562
  }
2313
3563
 
2314
3564
  message.weak = reader.bool();
2315
3565
  continue;
3566
+ case 16:
3567
+ if (tag !== 128) {
3568
+ break;
3569
+ }
3570
+
3571
+ message.debugRedact = reader.bool();
3572
+ continue;
3573
+ case 17:
3574
+ if (tag !== 136) {
3575
+ break;
3576
+ }
3577
+
3578
+ message.retention = reader.int32() as any;
3579
+ continue;
3580
+ case 18:
3581
+ if (tag !== 144) {
3582
+ break;
3583
+ }
3584
+
3585
+ message.target = reader.int32() as any;
3586
+ continue;
2316
3587
  case 999:
2317
- if (tag != 7994) {
3588
+ if (tag !== 7994) {
2318
3589
  break;
2319
3590
  }
2320
3591
 
2321
3592
  message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32()));
2322
3593
  continue;
2323
3594
  }
2324
- if ((tag & 7) == 4 || tag == 0) {
3595
+ if ((tag & 7) === 4 || tag === 0) {
2325
3596
  break;
2326
3597
  }
2327
3598
  reader.skipType(tag & 7);
2328
3599
  }
2329
3600
  return message;
2330
- },
3601
+ }
2331
3602
 
2332
- fromJSON(object: any): FieldOptions {
3603
+ export function fromJSON(object: any): FieldOptions {
2333
3604
  return {
2334
3605
  ctype: isSet(object.ctype) ? fieldOptions_CTypeFromJSON(object.ctype) : 0,
2335
3606
  packed: isSet(object.packed) ? Boolean(object.packed) : false,
2336
3607
  jstype: isSet(object.jstype) ? fieldOptions_JSTypeFromJSON(object.jstype) : 0,
2337
3608
  lazy: isSet(object.lazy) ? Boolean(object.lazy) : false,
3609
+ unverifiedLazy: isSet(object.unverifiedLazy) ? Boolean(object.unverifiedLazy) : false,
2338
3610
  deprecated: isSet(object.deprecated) ? Boolean(object.deprecated) : false,
2339
3611
  weak: isSet(object.weak) ? Boolean(object.weak) : false,
3612
+ debugRedact: isSet(object.debugRedact) ? Boolean(object.debugRedact) : false,
3613
+ retention: isSet(object.retention) ? fieldOptions_OptionRetentionFromJSON(object.retention) : 0,
3614
+ target: isSet(object.target) ? fieldOptions_OptionTargetTypeFromJSON(object.target) : 0,
2340
3615
  uninterpretedOption: Array.isArray(object?.uninterpretedOption)
2341
3616
  ? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e))
2342
3617
  : [],
2343
3618
  };
2344
- },
3619
+ }
2345
3620
 
2346
- toJSON(message: FieldOptions): unknown {
3621
+ export function toJSON(message: FieldOptions): unknown {
2347
3622
  const obj: any = {};
2348
3623
  message.ctype !== undefined && (obj.ctype = fieldOptions_CTypeToJSON(message.ctype));
2349
3624
  message.packed !== undefined && (obj.packed = message.packed);
2350
3625
  message.jstype !== undefined && (obj.jstype = fieldOptions_JSTypeToJSON(message.jstype));
2351
3626
  message.lazy !== undefined && (obj.lazy = message.lazy);
3627
+ message.unverifiedLazy !== undefined && (obj.unverifiedLazy = message.unverifiedLazy);
2352
3628
  message.deprecated !== undefined && (obj.deprecated = message.deprecated);
2353
3629
  message.weak !== undefined && (obj.weak = message.weak);
3630
+ message.debugRedact !== undefined && (obj.debugRedact = message.debugRedact);
3631
+ message.retention !== undefined && (obj.retention = fieldOptions_OptionRetentionToJSON(message.retention));
3632
+ message.target !== undefined && (obj.target = fieldOptions_OptionTargetTypeToJSON(message.target));
2354
3633
  if (message.uninterpretedOption) {
2355
3634
  obj.uninterpretedOption = message.uninterpretedOption.map((e) => e ? UninterpretedOption.toJSON(e) : undefined);
2356
3635
  } else {
2357
3636
  obj.uninterpretedOption = [];
2358
3637
  }
2359
3638
  return obj;
2360
- },
3639
+ }
2361
3640
 
2362
- create<I extends Exact<DeepPartial<FieldOptions>, I>>(base?: I): FieldOptions {
3641
+ export function create<I extends Exact<DeepPartial<FieldOptions>, I>>(base?: I): FieldOptions {
2363
3642
  return FieldOptions.fromPartial(base ?? {});
2364
- },
3643
+ }
2365
3644
 
2366
- fromPartial<I extends Exact<DeepPartial<FieldOptions>, I>>(object: I): FieldOptions {
3645
+ export function fromPartial<I extends Exact<DeepPartial<FieldOptions>, I>>(object: I): FieldOptions {
2367
3646
  const message = createBaseFieldOptions();
2368
3647
  message.ctype = object.ctype ?? 0;
2369
3648
  message.packed = object.packed ?? false;
2370
3649
  message.jstype = object.jstype ?? 0;
2371
3650
  message.lazy = object.lazy ?? false;
3651
+ message.unverifiedLazy = object.unverifiedLazy ?? false;
2372
3652
  message.deprecated = object.deprecated ?? false;
2373
3653
  message.weak = object.weak ?? false;
3654
+ message.debugRedact = object.debugRedact ?? false;
3655
+ message.retention = object.retention ?? 0;
3656
+ message.target = object.target ?? 0;
2374
3657
  message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || [];
2375
3658
  return message;
2376
- },
2377
- };
3659
+ }
3660
+ }
2378
3661
 
2379
3662
  function createBaseOneofOptions(): OneofOptions {
2380
3663
  return { uninterpretedOption: [] };
2381
3664
  }
2382
3665
 
2383
- export const OneofOptions = {
2384
- encode(message: OneofOptions, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
2385
- for (const v of message.uninterpretedOption) {
3666
+ export namespace OneofOptions {
3667
+ export function encode(message: OneofOptions, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
3668
+ for (const v of message.uninterpretedOption ?? []) {
2386
3669
  UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim();
2387
3670
  }
2388
3671
  return writer;
2389
- },
3672
+ }
2390
3673
 
2391
- decode(input: _m0.Reader | Uint8Array, length?: number): OneofOptions {
3674
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): OneofOptions {
2392
3675
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
2393
3676
  let end = length === undefined ? reader.len : reader.pos + length;
2394
3677
  const message = createBaseOneofOptions();
@@ -2396,30 +3679,30 @@ export const OneofOptions = {
2396
3679
  const tag = reader.uint32();
2397
3680
  switch (tag >>> 3) {
2398
3681
  case 999:
2399
- if (tag != 7994) {
3682
+ if (tag !== 7994) {
2400
3683
  break;
2401
3684
  }
2402
3685
 
2403
3686
  message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32()));
2404
3687
  continue;
2405
3688
  }
2406
- if ((tag & 7) == 4 || tag == 0) {
3689
+ if ((tag & 7) === 4 || tag === 0) {
2407
3690
  break;
2408
3691
  }
2409
3692
  reader.skipType(tag & 7);
2410
3693
  }
2411
3694
  return message;
2412
- },
3695
+ }
2413
3696
 
2414
- fromJSON(object: any): OneofOptions {
3697
+ export function fromJSON(object: any): OneofOptions {
2415
3698
  return {
2416
3699
  uninterpretedOption: Array.isArray(object?.uninterpretedOption)
2417
3700
  ? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e))
2418
3701
  : [],
2419
3702
  };
2420
- },
3703
+ }
2421
3704
 
2422
- toJSON(message: OneofOptions): unknown {
3705
+ export function toJSON(message: OneofOptions): unknown {
2423
3706
  const obj: any = {};
2424
3707
  if (message.uninterpretedOption) {
2425
3708
  obj.uninterpretedOption = message.uninterpretedOption.map((e) => e ? UninterpretedOption.toJSON(e) : undefined);
@@ -2427,38 +3710,41 @@ export const OneofOptions = {
2427
3710
  obj.uninterpretedOption = [];
2428
3711
  }
2429
3712
  return obj;
2430
- },
3713
+ }
2431
3714
 
2432
- create<I extends Exact<DeepPartial<OneofOptions>, I>>(base?: I): OneofOptions {
3715
+ export function create<I extends Exact<DeepPartial<OneofOptions>, I>>(base?: I): OneofOptions {
2433
3716
  return OneofOptions.fromPartial(base ?? {});
2434
- },
3717
+ }
2435
3718
 
2436
- fromPartial<I extends Exact<DeepPartial<OneofOptions>, I>>(object: I): OneofOptions {
3719
+ export function fromPartial<I extends Exact<DeepPartial<OneofOptions>, I>>(object: I): OneofOptions {
2437
3720
  const message = createBaseOneofOptions();
2438
3721
  message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || [];
2439
3722
  return message;
2440
- },
2441
- };
3723
+ }
3724
+ }
2442
3725
 
2443
3726
  function createBaseEnumOptions(): EnumOptions {
2444
- return { allowAlias: false, deprecated: false, uninterpretedOption: [] };
3727
+ return { allowAlias: false, deprecated: false, deprecatedLegacyJsonFieldConflicts: false, uninterpretedOption: [] };
2445
3728
  }
2446
3729
 
2447
- export const EnumOptions = {
2448
- encode(message: EnumOptions, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
3730
+ export namespace EnumOptions {
3731
+ export function encode(message: EnumOptions, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
2449
3732
  if (message.allowAlias === true) {
2450
3733
  writer.uint32(16).bool(message.allowAlias);
2451
3734
  }
2452
3735
  if (message.deprecated === true) {
2453
3736
  writer.uint32(24).bool(message.deprecated);
2454
3737
  }
2455
- for (const v of message.uninterpretedOption) {
3738
+ if (message.deprecatedLegacyJsonFieldConflicts === true) {
3739
+ writer.uint32(48).bool(message.deprecatedLegacyJsonFieldConflicts);
3740
+ }
3741
+ for (const v of message.uninterpretedOption ?? []) {
2456
3742
  UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim();
2457
3743
  }
2458
3744
  return writer;
2459
- },
3745
+ }
2460
3746
 
2461
- decode(input: _m0.Reader | Uint8Array, length?: number): EnumOptions {
3747
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): EnumOptions {
2462
3748
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
2463
3749
  let end = length === undefined ? reader.len : reader.pos + length;
2464
3750
  const message = createBaseEnumOptions();
@@ -2466,86 +3752,99 @@ export const EnumOptions = {
2466
3752
  const tag = reader.uint32();
2467
3753
  switch (tag >>> 3) {
2468
3754
  case 2:
2469
- if (tag != 16) {
3755
+ if (tag !== 16) {
2470
3756
  break;
2471
3757
  }
2472
3758
 
2473
3759
  message.allowAlias = reader.bool();
2474
3760
  continue;
2475
3761
  case 3:
2476
- if (tag != 24) {
3762
+ if (tag !== 24) {
2477
3763
  break;
2478
3764
  }
2479
3765
 
2480
3766
  message.deprecated = reader.bool();
2481
3767
  continue;
3768
+ case 6:
3769
+ if (tag !== 48) {
3770
+ break;
3771
+ }
3772
+
3773
+ message.deprecatedLegacyJsonFieldConflicts = reader.bool();
3774
+ continue;
2482
3775
  case 999:
2483
- if (tag != 7994) {
3776
+ if (tag !== 7994) {
2484
3777
  break;
2485
3778
  }
2486
3779
 
2487
3780
  message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32()));
2488
3781
  continue;
2489
3782
  }
2490
- if ((tag & 7) == 4 || tag == 0) {
3783
+ if ((tag & 7) === 4 || tag === 0) {
2491
3784
  break;
2492
3785
  }
2493
3786
  reader.skipType(tag & 7);
2494
3787
  }
2495
3788
  return message;
2496
- },
3789
+ }
2497
3790
 
2498
- fromJSON(object: any): EnumOptions {
3791
+ export function fromJSON(object: any): EnumOptions {
2499
3792
  return {
2500
3793
  allowAlias: isSet(object.allowAlias) ? Boolean(object.allowAlias) : false,
2501
3794
  deprecated: isSet(object.deprecated) ? Boolean(object.deprecated) : false,
3795
+ deprecatedLegacyJsonFieldConflicts: isSet(object.deprecatedLegacyJsonFieldConflicts)
3796
+ ? Boolean(object.deprecatedLegacyJsonFieldConflicts)
3797
+ : false,
2502
3798
  uninterpretedOption: Array.isArray(object?.uninterpretedOption)
2503
3799
  ? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e))
2504
3800
  : [],
2505
3801
  };
2506
- },
3802
+ }
2507
3803
 
2508
- toJSON(message: EnumOptions): unknown {
3804
+ export function toJSON(message: EnumOptions): unknown {
2509
3805
  const obj: any = {};
2510
3806
  message.allowAlias !== undefined && (obj.allowAlias = message.allowAlias);
2511
3807
  message.deprecated !== undefined && (obj.deprecated = message.deprecated);
3808
+ message.deprecatedLegacyJsonFieldConflicts !== undefined &&
3809
+ (obj.deprecatedLegacyJsonFieldConflicts = message.deprecatedLegacyJsonFieldConflicts);
2512
3810
  if (message.uninterpretedOption) {
2513
3811
  obj.uninterpretedOption = message.uninterpretedOption.map((e) => e ? UninterpretedOption.toJSON(e) : undefined);
2514
3812
  } else {
2515
3813
  obj.uninterpretedOption = [];
2516
3814
  }
2517
3815
  return obj;
2518
- },
3816
+ }
2519
3817
 
2520
- create<I extends Exact<DeepPartial<EnumOptions>, I>>(base?: I): EnumOptions {
3818
+ export function create<I extends Exact<DeepPartial<EnumOptions>, I>>(base?: I): EnumOptions {
2521
3819
  return EnumOptions.fromPartial(base ?? {});
2522
- },
3820
+ }
2523
3821
 
2524
- fromPartial<I extends Exact<DeepPartial<EnumOptions>, I>>(object: I): EnumOptions {
3822
+ export function fromPartial<I extends Exact<DeepPartial<EnumOptions>, I>>(object: I): EnumOptions {
2525
3823
  const message = createBaseEnumOptions();
2526
3824
  message.allowAlias = object.allowAlias ?? false;
2527
3825
  message.deprecated = object.deprecated ?? false;
3826
+ message.deprecatedLegacyJsonFieldConflicts = object.deprecatedLegacyJsonFieldConflicts ?? false;
2528
3827
  message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || [];
2529
3828
  return message;
2530
- },
2531
- };
3829
+ }
3830
+ }
2532
3831
 
2533
3832
  function createBaseEnumValueOptions(): EnumValueOptions {
2534
3833
  return { deprecated: false, uninterpretedOption: [] };
2535
3834
  }
2536
3835
 
2537
- export const EnumValueOptions = {
2538
- encode(message: EnumValueOptions, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
3836
+ export namespace EnumValueOptions {
3837
+ export function encode(message: EnumValueOptions, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
2539
3838
  if (message.deprecated === true) {
2540
3839
  writer.uint32(8).bool(message.deprecated);
2541
3840
  }
2542
- for (const v of message.uninterpretedOption) {
3841
+ for (const v of message.uninterpretedOption ?? []) {
2543
3842
  UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim();
2544
3843
  }
2545
3844
  return writer;
2546
- },
3845
+ }
2547
3846
 
2548
- decode(input: _m0.Reader | Uint8Array, length?: number): EnumValueOptions {
3847
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): EnumValueOptions {
2549
3848
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
2550
3849
  let end = length === undefined ? reader.len : reader.pos + length;
2551
3850
  const message = createBaseEnumValueOptions();
@@ -2553,38 +3852,38 @@ export const EnumValueOptions = {
2553
3852
  const tag = reader.uint32();
2554
3853
  switch (tag >>> 3) {
2555
3854
  case 1:
2556
- if (tag != 8) {
3855
+ if (tag !== 8) {
2557
3856
  break;
2558
3857
  }
2559
3858
 
2560
3859
  message.deprecated = reader.bool();
2561
3860
  continue;
2562
3861
  case 999:
2563
- if (tag != 7994) {
3862
+ if (tag !== 7994) {
2564
3863
  break;
2565
3864
  }
2566
3865
 
2567
3866
  message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32()));
2568
3867
  continue;
2569
3868
  }
2570
- if ((tag & 7) == 4 || tag == 0) {
3869
+ if ((tag & 7) === 4 || tag === 0) {
2571
3870
  break;
2572
3871
  }
2573
3872
  reader.skipType(tag & 7);
2574
3873
  }
2575
3874
  return message;
2576
- },
3875
+ }
2577
3876
 
2578
- fromJSON(object: any): EnumValueOptions {
3877
+ export function fromJSON(object: any): EnumValueOptions {
2579
3878
  return {
2580
3879
  deprecated: isSet(object.deprecated) ? Boolean(object.deprecated) : false,
2581
3880
  uninterpretedOption: Array.isArray(object?.uninterpretedOption)
2582
3881
  ? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e))
2583
3882
  : [],
2584
3883
  };
2585
- },
3884
+ }
2586
3885
 
2587
- toJSON(message: EnumValueOptions): unknown {
3886
+ export function toJSON(message: EnumValueOptions): unknown {
2588
3887
  const obj: any = {};
2589
3888
  message.deprecated !== undefined && (obj.deprecated = message.deprecated);
2590
3889
  if (message.uninterpretedOption) {
@@ -2593,36 +3892,36 @@ export const EnumValueOptions = {
2593
3892
  obj.uninterpretedOption = [];
2594
3893
  }
2595
3894
  return obj;
2596
- },
3895
+ }
2597
3896
 
2598
- create<I extends Exact<DeepPartial<EnumValueOptions>, I>>(base?: I): EnumValueOptions {
3897
+ export function create<I extends Exact<DeepPartial<EnumValueOptions>, I>>(base?: I): EnumValueOptions {
2599
3898
  return EnumValueOptions.fromPartial(base ?? {});
2600
- },
3899
+ }
2601
3900
 
2602
- fromPartial<I extends Exact<DeepPartial<EnumValueOptions>, I>>(object: I): EnumValueOptions {
3901
+ export function fromPartial<I extends Exact<DeepPartial<EnumValueOptions>, I>>(object: I): EnumValueOptions {
2603
3902
  const message = createBaseEnumValueOptions();
2604
3903
  message.deprecated = object.deprecated ?? false;
2605
3904
  message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || [];
2606
3905
  return message;
2607
- },
2608
- };
3906
+ }
3907
+ }
2609
3908
 
2610
3909
  function createBaseServiceOptions(): ServiceOptions {
2611
3910
  return { deprecated: false, uninterpretedOption: [] };
2612
3911
  }
2613
3912
 
2614
- export const ServiceOptions = {
2615
- encode(message: ServiceOptions, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
3913
+ export namespace ServiceOptions {
3914
+ export function encode(message: ServiceOptions, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
2616
3915
  if (message.deprecated === true) {
2617
3916
  writer.uint32(264).bool(message.deprecated);
2618
3917
  }
2619
- for (const v of message.uninterpretedOption) {
3918
+ for (const v of message.uninterpretedOption ?? []) {
2620
3919
  UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim();
2621
3920
  }
2622
3921
  return writer;
2623
- },
3922
+ }
2624
3923
 
2625
- decode(input: _m0.Reader | Uint8Array, length?: number): ServiceOptions {
3924
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): ServiceOptions {
2626
3925
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
2627
3926
  let end = length === undefined ? reader.len : reader.pos + length;
2628
3927
  const message = createBaseServiceOptions();
@@ -2630,38 +3929,38 @@ export const ServiceOptions = {
2630
3929
  const tag = reader.uint32();
2631
3930
  switch (tag >>> 3) {
2632
3931
  case 33:
2633
- if (tag != 264) {
3932
+ if (tag !== 264) {
2634
3933
  break;
2635
3934
  }
2636
3935
 
2637
3936
  message.deprecated = reader.bool();
2638
3937
  continue;
2639
3938
  case 999:
2640
- if (tag != 7994) {
3939
+ if (tag !== 7994) {
2641
3940
  break;
2642
3941
  }
2643
3942
 
2644
3943
  message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32()));
2645
3944
  continue;
2646
3945
  }
2647
- if ((tag & 7) == 4 || tag == 0) {
3946
+ if ((tag & 7) === 4 || tag === 0) {
2648
3947
  break;
2649
3948
  }
2650
3949
  reader.skipType(tag & 7);
2651
3950
  }
2652
3951
  return message;
2653
- },
3952
+ }
2654
3953
 
2655
- fromJSON(object: any): ServiceOptions {
3954
+ export function fromJSON(object: any): ServiceOptions {
2656
3955
  return {
2657
3956
  deprecated: isSet(object.deprecated) ? Boolean(object.deprecated) : false,
2658
3957
  uninterpretedOption: Array.isArray(object?.uninterpretedOption)
2659
3958
  ? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e))
2660
3959
  : [],
2661
3960
  };
2662
- },
3961
+ }
2663
3962
 
2664
- toJSON(message: ServiceOptions): unknown {
3963
+ export function toJSON(message: ServiceOptions): unknown {
2665
3964
  const obj: any = {};
2666
3965
  message.deprecated !== undefined && (obj.deprecated = message.deprecated);
2667
3966
  if (message.uninterpretedOption) {
@@ -2670,36 +3969,39 @@ export const ServiceOptions = {
2670
3969
  obj.uninterpretedOption = [];
2671
3970
  }
2672
3971
  return obj;
2673
- },
3972
+ }
2674
3973
 
2675
- create<I extends Exact<DeepPartial<ServiceOptions>, I>>(base?: I): ServiceOptions {
3974
+ export function create<I extends Exact<DeepPartial<ServiceOptions>, I>>(base?: I): ServiceOptions {
2676
3975
  return ServiceOptions.fromPartial(base ?? {});
2677
- },
3976
+ }
2678
3977
 
2679
- fromPartial<I extends Exact<DeepPartial<ServiceOptions>, I>>(object: I): ServiceOptions {
3978
+ export function fromPartial<I extends Exact<DeepPartial<ServiceOptions>, I>>(object: I): ServiceOptions {
2680
3979
  const message = createBaseServiceOptions();
2681
3980
  message.deprecated = object.deprecated ?? false;
2682
3981
  message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || [];
2683
3982
  return message;
2684
- },
2685
- };
3983
+ }
3984
+ }
2686
3985
 
2687
3986
  function createBaseMethodOptions(): MethodOptions {
2688
- return { deprecated: false, uninterpretedOption: [] };
3987
+ return { deprecated: false, idempotencyLevel: 0, uninterpretedOption: [] };
2689
3988
  }
2690
3989
 
2691
- export const MethodOptions = {
2692
- encode(message: MethodOptions, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
3990
+ export namespace MethodOptions {
3991
+ export function encode(message: MethodOptions, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
2693
3992
  if (message.deprecated === true) {
2694
3993
  writer.uint32(264).bool(message.deprecated);
2695
3994
  }
2696
- for (const v of message.uninterpretedOption) {
3995
+ if (message.idempotencyLevel !== undefined && message.idempotencyLevel !== 0) {
3996
+ writer.uint32(272).int32(message.idempotencyLevel);
3997
+ }
3998
+ for (const v of message.uninterpretedOption ?? []) {
2697
3999
  UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim();
2698
4000
  }
2699
4001
  return writer;
2700
- },
4002
+ }
2701
4003
 
2702
- decode(input: _m0.Reader | Uint8Array, length?: number): MethodOptions {
4004
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): MethodOptions {
2703
4005
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
2704
4006
  let end = length === undefined ? reader.len : reader.pos + length;
2705
4007
  const message = createBaseMethodOptions();
@@ -2707,59 +4009,72 @@ export const MethodOptions = {
2707
4009
  const tag = reader.uint32();
2708
4010
  switch (tag >>> 3) {
2709
4011
  case 33:
2710
- if (tag != 264) {
4012
+ if (tag !== 264) {
2711
4013
  break;
2712
4014
  }
2713
4015
 
2714
4016
  message.deprecated = reader.bool();
2715
4017
  continue;
4018
+ case 34:
4019
+ if (tag !== 272) {
4020
+ break;
4021
+ }
4022
+
4023
+ message.idempotencyLevel = reader.int32() as any;
4024
+ continue;
2716
4025
  case 999:
2717
- if (tag != 7994) {
4026
+ if (tag !== 7994) {
2718
4027
  break;
2719
4028
  }
2720
4029
 
2721
4030
  message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32()));
2722
4031
  continue;
2723
4032
  }
2724
- if ((tag & 7) == 4 || tag == 0) {
4033
+ if ((tag & 7) === 4 || tag === 0) {
2725
4034
  break;
2726
4035
  }
2727
4036
  reader.skipType(tag & 7);
2728
4037
  }
2729
4038
  return message;
2730
- },
4039
+ }
2731
4040
 
2732
- fromJSON(object: any): MethodOptions {
4041
+ export function fromJSON(object: any): MethodOptions {
2733
4042
  return {
2734
4043
  deprecated: isSet(object.deprecated) ? Boolean(object.deprecated) : false,
4044
+ idempotencyLevel: isSet(object.idempotencyLevel)
4045
+ ? methodOptions_IdempotencyLevelFromJSON(object.idempotencyLevel)
4046
+ : 0,
2735
4047
  uninterpretedOption: Array.isArray(object?.uninterpretedOption)
2736
4048
  ? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e))
2737
4049
  : [],
2738
4050
  };
2739
- },
4051
+ }
2740
4052
 
2741
- toJSON(message: MethodOptions): unknown {
4053
+ export function toJSON(message: MethodOptions): unknown {
2742
4054
  const obj: any = {};
2743
4055
  message.deprecated !== undefined && (obj.deprecated = message.deprecated);
4056
+ message.idempotencyLevel !== undefined &&
4057
+ (obj.idempotencyLevel = methodOptions_IdempotencyLevelToJSON(message.idempotencyLevel));
2744
4058
  if (message.uninterpretedOption) {
2745
4059
  obj.uninterpretedOption = message.uninterpretedOption.map((e) => e ? UninterpretedOption.toJSON(e) : undefined);
2746
4060
  } else {
2747
4061
  obj.uninterpretedOption = [];
2748
4062
  }
2749
4063
  return obj;
2750
- },
4064
+ }
2751
4065
 
2752
- create<I extends Exact<DeepPartial<MethodOptions>, I>>(base?: I): MethodOptions {
4066
+ export function create<I extends Exact<DeepPartial<MethodOptions>, I>>(base?: I): MethodOptions {
2753
4067
  return MethodOptions.fromPartial(base ?? {});
2754
- },
4068
+ }
2755
4069
 
2756
- fromPartial<I extends Exact<DeepPartial<MethodOptions>, I>>(object: I): MethodOptions {
4070
+ export function fromPartial<I extends Exact<DeepPartial<MethodOptions>, I>>(object: I): MethodOptions {
2757
4071
  const message = createBaseMethodOptions();
2758
4072
  message.deprecated = object.deprecated ?? false;
4073
+ message.idempotencyLevel = object.idempotencyLevel ?? 0;
2759
4074
  message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || [];
2760
4075
  return message;
2761
- },
2762
- };
4076
+ }
4077
+ }
2763
4078
 
2764
4079
  function createBaseUninterpretedOption(): UninterpretedOption {
2765
4080
  return {
@@ -2768,38 +4083,38 @@ function createBaseUninterpretedOption(): UninterpretedOption {
2768
4083
  positiveIntValue: 0,
2769
4084
  negativeIntValue: 0,
2770
4085
  doubleValue: 0,
2771
- stringValue: new Uint8Array(),
4086
+ stringValue: new Uint8Array(0),
2772
4087
  aggregateValue: "",
2773
4088
  };
2774
4089
  }
2775
4090
 
2776
- export const UninterpretedOption = {
2777
- encode(message: UninterpretedOption, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
2778
- for (const v of message.name) {
4091
+ export namespace UninterpretedOption {
4092
+ export function encode(message: UninterpretedOption, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
4093
+ for (const v of message.name ?? []) {
2779
4094
  UninterpretedOption_NamePart.encode(v!, writer.uint32(18).fork()).ldelim();
2780
4095
  }
2781
- if (message.identifierValue !== "") {
4096
+ if (message.identifierValue !== undefined && message.identifierValue !== "") {
2782
4097
  writer.uint32(26).string(message.identifierValue);
2783
4098
  }
2784
- if (message.positiveIntValue !== 0) {
4099
+ if (message.positiveIntValue !== undefined && message.positiveIntValue !== 0) {
2785
4100
  writer.uint32(32).uint64(message.positiveIntValue);
2786
4101
  }
2787
- if (message.negativeIntValue !== 0) {
4102
+ if (message.negativeIntValue !== undefined && message.negativeIntValue !== 0) {
2788
4103
  writer.uint32(40).int64(message.negativeIntValue);
2789
4104
  }
2790
- if (message.doubleValue !== 0) {
4105
+ if (message.doubleValue !== undefined && message.doubleValue !== 0) {
2791
4106
  writer.uint32(49).double(message.doubleValue);
2792
4107
  }
2793
- if (message.stringValue.length !== 0) {
4108
+ if (message.stringValue !== undefined && message.stringValue.length !== 0) {
2794
4109
  writer.uint32(58).bytes(message.stringValue);
2795
4110
  }
2796
- if (message.aggregateValue !== "") {
4111
+ if (message.aggregateValue !== undefined && message.aggregateValue !== "") {
2797
4112
  writer.uint32(66).string(message.aggregateValue);
2798
4113
  }
2799
4114
  return writer;
2800
- },
4115
+ }
2801
4116
 
2802
- decode(input: _m0.Reader | Uint8Array, length?: number): UninterpretedOption {
4117
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): UninterpretedOption {
2803
4118
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
2804
4119
  let end = length === undefined ? reader.len : reader.pos + length;
2805
4120
  const message = createBaseUninterpretedOption();
@@ -2807,76 +4122,76 @@ export const UninterpretedOption = {
2807
4122
  const tag = reader.uint32();
2808
4123
  switch (tag >>> 3) {
2809
4124
  case 2:
2810
- if (tag != 18) {
4125
+ if (tag !== 18) {
2811
4126
  break;
2812
4127
  }
2813
4128
 
2814
4129
  message.name.push(UninterpretedOption_NamePart.decode(reader, reader.uint32()));
2815
4130
  continue;
2816
4131
  case 3:
2817
- if (tag != 26) {
4132
+ if (tag !== 26) {
2818
4133
  break;
2819
4134
  }
2820
4135
 
2821
4136
  message.identifierValue = reader.string();
2822
4137
  continue;
2823
4138
  case 4:
2824
- if (tag != 32) {
4139
+ if (tag !== 32) {
2825
4140
  break;
2826
4141
  }
2827
4142
 
2828
4143
  message.positiveIntValue = longToNumber(reader.uint64() as Long);
2829
4144
  continue;
2830
4145
  case 5:
2831
- if (tag != 40) {
4146
+ if (tag !== 40) {
2832
4147
  break;
2833
4148
  }
2834
4149
 
2835
4150
  message.negativeIntValue = longToNumber(reader.int64() as Long);
2836
4151
  continue;
2837
4152
  case 6:
2838
- if (tag != 49) {
4153
+ if (tag !== 49) {
2839
4154
  break;
2840
4155
  }
2841
4156
 
2842
4157
  message.doubleValue = reader.double();
2843
4158
  continue;
2844
4159
  case 7:
2845
- if (tag != 58) {
4160
+ if (tag !== 58) {
2846
4161
  break;
2847
4162
  }
2848
4163
 
2849
4164
  message.stringValue = reader.bytes();
2850
4165
  continue;
2851
4166
  case 8:
2852
- if (tag != 66) {
4167
+ if (tag !== 66) {
2853
4168
  break;
2854
4169
  }
2855
4170
 
2856
4171
  message.aggregateValue = reader.string();
2857
4172
  continue;
2858
4173
  }
2859
- if ((tag & 7) == 4 || tag == 0) {
4174
+ if ((tag & 7) === 4 || tag === 0) {
2860
4175
  break;
2861
4176
  }
2862
4177
  reader.skipType(tag & 7);
2863
4178
  }
2864
4179
  return message;
2865
- },
4180
+ }
2866
4181
 
2867
- fromJSON(object: any): UninterpretedOption {
4182
+ export function fromJSON(object: any): UninterpretedOption {
2868
4183
  return {
2869
4184
  name: Array.isArray(object?.name) ? object.name.map((e: any) => UninterpretedOption_NamePart.fromJSON(e)) : [],
2870
4185
  identifierValue: isSet(object.identifierValue) ? String(object.identifierValue) : "",
2871
4186
  positiveIntValue: isSet(object.positiveIntValue) ? Number(object.positiveIntValue) : 0,
2872
4187
  negativeIntValue: isSet(object.negativeIntValue) ? Number(object.negativeIntValue) : 0,
2873
4188
  doubleValue: isSet(object.doubleValue) ? Number(object.doubleValue) : 0,
2874
- stringValue: isSet(object.stringValue) ? bytesFromBase64(object.stringValue) : new Uint8Array(),
4189
+ stringValue: isSet(object.stringValue) ? bytesFromBase64(object.stringValue) : new Uint8Array(0),
2875
4190
  aggregateValue: isSet(object.aggregateValue) ? String(object.aggregateValue) : "",
2876
4191
  };
2877
- },
4192
+ }
2878
4193
 
2879
- toJSON(message: UninterpretedOption): unknown {
4194
+ export function toJSON(message: UninterpretedOption): unknown {
2880
4195
  const obj: any = {};
2881
4196
  if (message.name) {
2882
4197
  obj.name = message.name.map((e) => e ? UninterpretedOption_NamePart.toJSON(e) : undefined);
@@ -2888,44 +4203,44 @@ export const UninterpretedOption = {
2888
4203
  message.negativeIntValue !== undefined && (obj.negativeIntValue = Math.round(message.negativeIntValue));
2889
4204
  message.doubleValue !== undefined && (obj.doubleValue = message.doubleValue);
2890
4205
  message.stringValue !== undefined &&
2891
- (obj.stringValue = base64FromBytes(message.stringValue !== undefined ? message.stringValue : new Uint8Array()));
4206
+ (obj.stringValue = base64FromBytes(message.stringValue !== undefined ? message.stringValue : new Uint8Array(0)));
2892
4207
  message.aggregateValue !== undefined && (obj.aggregateValue = message.aggregateValue);
2893
4208
  return obj;
2894
- },
4209
+ }
2895
4210
 
2896
- create<I extends Exact<DeepPartial<UninterpretedOption>, I>>(base?: I): UninterpretedOption {
4211
+ export function create<I extends Exact<DeepPartial<UninterpretedOption>, I>>(base?: I): UninterpretedOption {
2897
4212
  return UninterpretedOption.fromPartial(base ?? {});
2898
- },
4213
+ }
2899
4214
 
2900
- fromPartial<I extends Exact<DeepPartial<UninterpretedOption>, I>>(object: I): UninterpretedOption {
4215
+ export function fromPartial<I extends Exact<DeepPartial<UninterpretedOption>, I>>(object: I): UninterpretedOption {
2901
4216
  const message = createBaseUninterpretedOption();
2902
4217
  message.name = object.name?.map((e) => UninterpretedOption_NamePart.fromPartial(e)) || [];
2903
4218
  message.identifierValue = object.identifierValue ?? "";
2904
4219
  message.positiveIntValue = object.positiveIntValue ?? 0;
2905
4220
  message.negativeIntValue = object.negativeIntValue ?? 0;
2906
4221
  message.doubleValue = object.doubleValue ?? 0;
2907
- message.stringValue = object.stringValue ?? new Uint8Array();
4222
+ message.stringValue = object.stringValue ?? new Uint8Array(0);
2908
4223
  message.aggregateValue = object.aggregateValue ?? "";
2909
4224
  return message;
2910
- },
2911
- };
4225
+ }
4226
+ }
2912
4227
 
2913
4228
  function createBaseUninterpretedOption_NamePart(): UninterpretedOption_NamePart {
2914
4229
  return { namePart: "", isExtension: false };
2915
4230
  }
2916
4231
 
2917
- export const UninterpretedOption_NamePart = {
2918
- encode(message: UninterpretedOption_NamePart, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
2919
- if (message.namePart !== "") {
4232
+ export namespace UninterpretedOption_NamePart {
4233
+ export function encode(message: UninterpretedOption_NamePart, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
4234
+ if (message.namePart !== undefined && message.namePart !== "") {
2920
4235
  writer.uint32(10).string(message.namePart);
2921
4236
  }
2922
4237
  if (message.isExtension === true) {
2923
4238
  writer.uint32(16).bool(message.isExtension);
2924
4239
  }
2925
4240
  return writer;
2926
- },
4241
+ }
2927
4242
 
2928
- decode(input: _m0.Reader | Uint8Array, length?: number): UninterpretedOption_NamePart {
4243
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): UninterpretedOption_NamePart {
2929
4244
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
2930
4245
  let end = length === undefined ? reader.len : reader.pos + length;
2931
4246
  const message = createBaseUninterpretedOption_NamePart();
@@ -2933,67 +4248,71 @@ export const UninterpretedOption_NamePart = {
2933
4248
  const tag = reader.uint32();
2934
4249
  switch (tag >>> 3) {
2935
4250
  case 1:
2936
- if (tag != 10) {
4251
+ if (tag !== 10) {
2937
4252
  break;
2938
4253
  }
2939
4254
 
2940
4255
  message.namePart = reader.string();
2941
4256
  continue;
2942
4257
  case 2:
2943
- if (tag != 16) {
4258
+ if (tag !== 16) {
2944
4259
  break;
2945
4260
  }
2946
4261
 
2947
4262
  message.isExtension = reader.bool();
2948
4263
  continue;
2949
4264
  }
2950
- if ((tag & 7) == 4 || tag == 0) {
4265
+ if ((tag & 7) === 4 || tag === 0) {
2951
4266
  break;
2952
4267
  }
2953
4268
  reader.skipType(tag & 7);
2954
4269
  }
2955
4270
  return message;
2956
- },
4271
+ }
2957
4272
 
2958
- fromJSON(object: any): UninterpretedOption_NamePart {
4273
+ export function fromJSON(object: any): UninterpretedOption_NamePart {
2959
4274
  return {
2960
4275
  namePart: isSet(object.namePart) ? String(object.namePart) : "",
2961
4276
  isExtension: isSet(object.isExtension) ? Boolean(object.isExtension) : false,
2962
4277
  };
2963
- },
4278
+ }
2964
4279
 
2965
- toJSON(message: UninterpretedOption_NamePart): unknown {
4280
+ export function toJSON(message: UninterpretedOption_NamePart): unknown {
2966
4281
  const obj: any = {};
2967
4282
  message.namePart !== undefined && (obj.namePart = message.namePart);
2968
4283
  message.isExtension !== undefined && (obj.isExtension = message.isExtension);
2969
4284
  return obj;
2970
- },
4285
+ }
2971
4286
 
2972
- create<I extends Exact<DeepPartial<UninterpretedOption_NamePart>, I>>(base?: I): UninterpretedOption_NamePart {
4287
+ export function create<I extends Exact<DeepPartial<UninterpretedOption_NamePart>, I>>(
4288
+ base?: I,
4289
+ ): UninterpretedOption_NamePart {
2973
4290
  return UninterpretedOption_NamePart.fromPartial(base ?? {});
2974
- },
4291
+ }
2975
4292
 
2976
- fromPartial<I extends Exact<DeepPartial<UninterpretedOption_NamePart>, I>>(object: I): UninterpretedOption_NamePart {
4293
+ export function fromPartial<I extends Exact<DeepPartial<UninterpretedOption_NamePart>, I>>(
4294
+ object: I,
4295
+ ): UninterpretedOption_NamePart {
2977
4296
  const message = createBaseUninterpretedOption_NamePart();
2978
4297
  message.namePart = object.namePart ?? "";
2979
4298
  message.isExtension = object.isExtension ?? false;
2980
4299
  return message;
2981
- },
2982
- };
4300
+ }
4301
+ }
2983
4302
 
2984
4303
  function createBaseSourceCodeInfo(): SourceCodeInfo {
2985
4304
  return { location: [] };
2986
4305
  }
2987
4306
 
2988
- export const SourceCodeInfo = {
2989
- encode(message: SourceCodeInfo, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
2990
- for (const v of message.location) {
4307
+ export namespace SourceCodeInfo {
4308
+ export function encode(message: SourceCodeInfo, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
4309
+ for (const v of message.location ?? []) {
2991
4310
  SourceCodeInfo_Location.encode(v!, writer.uint32(10).fork()).ldelim();
2992
4311
  }
2993
4312
  return writer;
2994
- },
4313
+ }
2995
4314
 
2996
- decode(input: _m0.Reader | Uint8Array, length?: number): SourceCodeInfo {
4315
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): SourceCodeInfo {
2997
4316
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
2998
4317
  let end = length === undefined ? reader.len : reader.pos + length;
2999
4318
  const message = createBaseSourceCodeInfo();
@@ -3001,30 +4320,30 @@ export const SourceCodeInfo = {
3001
4320
  const tag = reader.uint32();
3002
4321
  switch (tag >>> 3) {
3003
4322
  case 1:
3004
- if (tag != 10) {
4323
+ if (tag !== 10) {
3005
4324
  break;
3006
4325
  }
3007
4326
 
3008
4327
  message.location.push(SourceCodeInfo_Location.decode(reader, reader.uint32()));
3009
4328
  continue;
3010
4329
  }
3011
- if ((tag & 7) == 4 || tag == 0) {
4330
+ if ((tag & 7) === 4 || tag === 0) {
3012
4331
  break;
3013
4332
  }
3014
4333
  reader.skipType(tag & 7);
3015
4334
  }
3016
4335
  return message;
3017
- },
4336
+ }
3018
4337
 
3019
- fromJSON(object: any): SourceCodeInfo {
4338
+ export function fromJSON(object: any): SourceCodeInfo {
3020
4339
  return {
3021
4340
  location: Array.isArray(object?.location)
3022
4341
  ? object.location.map((e: any) => SourceCodeInfo_Location.fromJSON(e))
3023
4342
  : [],
3024
4343
  };
3025
- },
4344
+ }
3026
4345
 
3027
- toJSON(message: SourceCodeInfo): unknown {
4346
+ export function toJSON(message: SourceCodeInfo): unknown {
3028
4347
  const obj: any = {};
3029
4348
  if (message.location) {
3030
4349
  obj.location = message.location.map((e) => e ? SourceCodeInfo_Location.toJSON(e) : undefined);
@@ -3032,48 +4351,48 @@ export const SourceCodeInfo = {
3032
4351
  obj.location = [];
3033
4352
  }
3034
4353
  return obj;
3035
- },
4354
+ }
3036
4355
 
3037
- create<I extends Exact<DeepPartial<SourceCodeInfo>, I>>(base?: I): SourceCodeInfo {
4356
+ export function create<I extends Exact<DeepPartial<SourceCodeInfo>, I>>(base?: I): SourceCodeInfo {
3038
4357
  return SourceCodeInfo.fromPartial(base ?? {});
3039
- },
4358
+ }
3040
4359
 
3041
- fromPartial<I extends Exact<DeepPartial<SourceCodeInfo>, I>>(object: I): SourceCodeInfo {
4360
+ export function fromPartial<I extends Exact<DeepPartial<SourceCodeInfo>, I>>(object: I): SourceCodeInfo {
3042
4361
  const message = createBaseSourceCodeInfo();
3043
4362
  message.location = object.location?.map((e) => SourceCodeInfo_Location.fromPartial(e)) || [];
3044
4363
  return message;
3045
- },
3046
- };
4364
+ }
4365
+ }
3047
4366
 
3048
4367
  function createBaseSourceCodeInfo_Location(): SourceCodeInfo_Location {
3049
4368
  return { path: [], span: [], leadingComments: "", trailingComments: "", leadingDetachedComments: [] };
3050
4369
  }
3051
4370
 
3052
- export const SourceCodeInfo_Location = {
3053
- encode(message: SourceCodeInfo_Location, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
4371
+ export namespace SourceCodeInfo_Location {
4372
+ export function encode(message: SourceCodeInfo_Location, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
3054
4373
  writer.uint32(10).fork();
3055
- for (const v of message.path) {
4374
+ for (const v of message.path ?? []) {
3056
4375
  writer.int32(v);
3057
4376
  }
3058
4377
  writer.ldelim();
3059
4378
  writer.uint32(18).fork();
3060
- for (const v of message.span) {
4379
+ for (const v of message.span ?? []) {
3061
4380
  writer.int32(v);
3062
4381
  }
3063
4382
  writer.ldelim();
3064
- if (message.leadingComments !== "") {
4383
+ if (message.leadingComments !== undefined && message.leadingComments !== "") {
3065
4384
  writer.uint32(26).string(message.leadingComments);
3066
4385
  }
3067
- if (message.trailingComments !== "") {
4386
+ if (message.trailingComments !== undefined && message.trailingComments !== "") {
3068
4387
  writer.uint32(34).string(message.trailingComments);
3069
4388
  }
3070
- for (const v of message.leadingDetachedComments) {
4389
+ for (const v of message.leadingDetachedComments ?? []) {
3071
4390
  writer.uint32(50).string(v!);
3072
4391
  }
3073
4392
  return writer;
3074
- },
4393
+ }
3075
4394
 
3076
- decode(input: _m0.Reader | Uint8Array, length?: number): SourceCodeInfo_Location {
4395
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): SourceCodeInfo_Location {
3077
4396
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
3078
4397
  let end = length === undefined ? reader.len : reader.pos + length;
3079
4398
  const message = createBaseSourceCodeInfo_Location();
@@ -3081,12 +4400,13 @@ export const SourceCodeInfo_Location = {
3081
4400
  const tag = reader.uint32();
3082
4401
  switch (tag >>> 3) {
3083
4402
  case 1:
3084
- if (tag == 8) {
4403
+ if (tag === 8) {
3085
4404
  message.path.push(reader.int32());
4405
+
3086
4406
  continue;
3087
4407
  }
3088
4408
 
3089
- if (tag == 10) {
4409
+ if (tag === 10) {
3090
4410
  const end2 = reader.uint32() + reader.pos;
3091
4411
  while (reader.pos < end2) {
3092
4412
  message.path.push(reader.int32());
@@ -3097,12 +4417,13 @@ export const SourceCodeInfo_Location = {
3097
4417
 
3098
4418
  break;
3099
4419
  case 2:
3100
- if (tag == 16) {
4420
+ if (tag === 16) {
3101
4421
  message.span.push(reader.int32());
4422
+
3102
4423
  continue;
3103
4424
  }
3104
4425
 
3105
- if (tag == 18) {
4426
+ if (tag === 18) {
3106
4427
  const end2 = reader.uint32() + reader.pos;
3107
4428
  while (reader.pos < end2) {
3108
4429
  message.span.push(reader.int32());
@@ -3113,36 +4434,36 @@ export const SourceCodeInfo_Location = {
3113
4434
 
3114
4435
  break;
3115
4436
  case 3:
3116
- if (tag != 26) {
4437
+ if (tag !== 26) {
3117
4438
  break;
3118
4439
  }
3119
4440
 
3120
4441
  message.leadingComments = reader.string();
3121
4442
  continue;
3122
4443
  case 4:
3123
- if (tag != 34) {
4444
+ if (tag !== 34) {
3124
4445
  break;
3125
4446
  }
3126
4447
 
3127
4448
  message.trailingComments = reader.string();
3128
4449
  continue;
3129
4450
  case 6:
3130
- if (tag != 50) {
4451
+ if (tag !== 50) {
3131
4452
  break;
3132
4453
  }
3133
4454
 
3134
4455
  message.leadingDetachedComments.push(reader.string());
3135
4456
  continue;
3136
4457
  }
3137
- if ((tag & 7) == 4 || tag == 0) {
4458
+ if ((tag & 7) === 4 || tag === 0) {
3138
4459
  break;
3139
4460
  }
3140
4461
  reader.skipType(tag & 7);
3141
4462
  }
3142
4463
  return message;
3143
- },
4464
+ }
3144
4465
 
3145
- fromJSON(object: any): SourceCodeInfo_Location {
4466
+ export function fromJSON(object: any): SourceCodeInfo_Location {
3146
4467
  return {
3147
4468
  path: Array.isArray(object?.path) ? object.path.map((e: any) => Number(e)) : [],
3148
4469
  span: Array.isArray(object?.span) ? object.span.map((e: any) => Number(e)) : [],
@@ -3152,9 +4473,9 @@ export const SourceCodeInfo_Location = {
3152
4473
  ? object.leadingDetachedComments.map((e: any) => String(e))
3153
4474
  : [],
3154
4475
  };
3155
- },
4476
+ }
3156
4477
 
3157
- toJSON(message: SourceCodeInfo_Location): unknown {
4478
+ export function toJSON(message: SourceCodeInfo_Location): unknown {
3158
4479
  const obj: any = {};
3159
4480
  if (message.path) {
3160
4481
  obj.path = message.path.map((e) => Math.round(e));
@@ -3174,13 +4495,15 @@ export const SourceCodeInfo_Location = {
3174
4495
  obj.leadingDetachedComments = [];
3175
4496
  }
3176
4497
  return obj;
3177
- },
4498
+ }
3178
4499
 
3179
- create<I extends Exact<DeepPartial<SourceCodeInfo_Location>, I>>(base?: I): SourceCodeInfo_Location {
4500
+ export function create<I extends Exact<DeepPartial<SourceCodeInfo_Location>, I>>(base?: I): SourceCodeInfo_Location {
3180
4501
  return SourceCodeInfo_Location.fromPartial(base ?? {});
3181
- },
4502
+ }
3182
4503
 
3183
- fromPartial<I extends Exact<DeepPartial<SourceCodeInfo_Location>, I>>(object: I): SourceCodeInfo_Location {
4504
+ export function fromPartial<I extends Exact<DeepPartial<SourceCodeInfo_Location>, I>>(
4505
+ object: I,
4506
+ ): SourceCodeInfo_Location {
3184
4507
  const message = createBaseSourceCodeInfo_Location();
3185
4508
  message.path = object.path?.map((e) => e) || [];
3186
4509
  message.span = object.span?.map((e) => e) || [];
@@ -3188,22 +4511,22 @@ export const SourceCodeInfo_Location = {
3188
4511
  message.trailingComments = object.trailingComments ?? "";
3189
4512
  message.leadingDetachedComments = object.leadingDetachedComments?.map((e) => e) || [];
3190
4513
  return message;
3191
- },
3192
- };
4514
+ }
4515
+ }
3193
4516
 
3194
4517
  function createBaseGeneratedCodeInfo(): GeneratedCodeInfo {
3195
4518
  return { annotation: [] };
3196
4519
  }
3197
4520
 
3198
- export const GeneratedCodeInfo = {
3199
- encode(message: GeneratedCodeInfo, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
3200
- for (const v of message.annotation) {
4521
+ export namespace GeneratedCodeInfo {
4522
+ export function encode(message: GeneratedCodeInfo, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
4523
+ for (const v of message.annotation ?? []) {
3201
4524
  GeneratedCodeInfo_Annotation.encode(v!, writer.uint32(10).fork()).ldelim();
3202
4525
  }
3203
4526
  return writer;
3204
- },
4527
+ }
3205
4528
 
3206
- decode(input: _m0.Reader | Uint8Array, length?: number): GeneratedCodeInfo {
4529
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): GeneratedCodeInfo {
3207
4530
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
3208
4531
  let end = length === undefined ? reader.len : reader.pos + length;
3209
4532
  const message = createBaseGeneratedCodeInfo();
@@ -3211,30 +4534,30 @@ export const GeneratedCodeInfo = {
3211
4534
  const tag = reader.uint32();
3212
4535
  switch (tag >>> 3) {
3213
4536
  case 1:
3214
- if (tag != 10) {
4537
+ if (tag !== 10) {
3215
4538
  break;
3216
4539
  }
3217
4540
 
3218
4541
  message.annotation.push(GeneratedCodeInfo_Annotation.decode(reader, reader.uint32()));
3219
4542
  continue;
3220
4543
  }
3221
- if ((tag & 7) == 4 || tag == 0) {
4544
+ if ((tag & 7) === 4 || tag === 0) {
3222
4545
  break;
3223
4546
  }
3224
4547
  reader.skipType(tag & 7);
3225
4548
  }
3226
4549
  return message;
3227
- },
4550
+ }
3228
4551
 
3229
- fromJSON(object: any): GeneratedCodeInfo {
4552
+ export function fromJSON(object: any): GeneratedCodeInfo {
3230
4553
  return {
3231
4554
  annotation: Array.isArray(object?.annotation)
3232
4555
  ? object.annotation.map((e: any) => GeneratedCodeInfo_Annotation.fromJSON(e))
3233
4556
  : [],
3234
4557
  };
3235
- },
4558
+ }
3236
4559
 
3237
- toJSON(message: GeneratedCodeInfo): unknown {
4560
+ export function toJSON(message: GeneratedCodeInfo): unknown {
3238
4561
  const obj: any = {};
3239
4562
  if (message.annotation) {
3240
4563
  obj.annotation = message.annotation.map((e) => e ? GeneratedCodeInfo_Annotation.toJSON(e) : undefined);
@@ -3242,43 +4565,46 @@ export const GeneratedCodeInfo = {
3242
4565
  obj.annotation = [];
3243
4566
  }
3244
4567
  return obj;
3245
- },
4568
+ }
3246
4569
 
3247
- create<I extends Exact<DeepPartial<GeneratedCodeInfo>, I>>(base?: I): GeneratedCodeInfo {
4570
+ export function create<I extends Exact<DeepPartial<GeneratedCodeInfo>, I>>(base?: I): GeneratedCodeInfo {
3248
4571
  return GeneratedCodeInfo.fromPartial(base ?? {});
3249
- },
4572
+ }
3250
4573
 
3251
- fromPartial<I extends Exact<DeepPartial<GeneratedCodeInfo>, I>>(object: I): GeneratedCodeInfo {
4574
+ export function fromPartial<I extends Exact<DeepPartial<GeneratedCodeInfo>, I>>(object: I): GeneratedCodeInfo {
3252
4575
  const message = createBaseGeneratedCodeInfo();
3253
4576
  message.annotation = object.annotation?.map((e) => GeneratedCodeInfo_Annotation.fromPartial(e)) || [];
3254
4577
  return message;
3255
- },
3256
- };
4578
+ }
4579
+ }
3257
4580
 
3258
4581
  function createBaseGeneratedCodeInfo_Annotation(): GeneratedCodeInfo_Annotation {
3259
- return { path: [], sourceFile: "", begin: 0, end: 0 };
4582
+ return { path: [], sourceFile: "", begin: 0, end: 0, semantic: 0 };
3260
4583
  }
3261
4584
 
3262
- export const GeneratedCodeInfo_Annotation = {
3263
- encode(message: GeneratedCodeInfo_Annotation, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
4585
+ export namespace GeneratedCodeInfo_Annotation {
4586
+ export function encode(message: GeneratedCodeInfo_Annotation, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
3264
4587
  writer.uint32(10).fork();
3265
- for (const v of message.path) {
4588
+ for (const v of message.path ?? []) {
3266
4589
  writer.int32(v);
3267
4590
  }
3268
4591
  writer.ldelim();
3269
- if (message.sourceFile !== "") {
4592
+ if (message.sourceFile !== undefined && message.sourceFile !== "") {
3270
4593
  writer.uint32(18).string(message.sourceFile);
3271
4594
  }
3272
- if (message.begin !== 0) {
4595
+ if (message.begin !== undefined && message.begin !== 0) {
3273
4596
  writer.uint32(24).int32(message.begin);
3274
4597
  }
3275
- if (message.end !== 0) {
4598
+ if (message.end !== undefined && message.end !== 0) {
3276
4599
  writer.uint32(32).int32(message.end);
3277
4600
  }
4601
+ if (message.semantic !== undefined && message.semantic !== 0) {
4602
+ writer.uint32(40).int32(message.semantic);
4603
+ }
3278
4604
  return writer;
3279
- },
4605
+ }
3280
4606
 
3281
- decode(input: _m0.Reader | Uint8Array, length?: number): GeneratedCodeInfo_Annotation {
4607
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): GeneratedCodeInfo_Annotation {
3282
4608
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
3283
4609
  let end = length === undefined ? reader.len : reader.pos + length;
3284
4610
  const message = createBaseGeneratedCodeInfo_Annotation();
@@ -3286,12 +4612,13 @@ export const GeneratedCodeInfo_Annotation = {
3286
4612
  const tag = reader.uint32();
3287
4613
  switch (tag >>> 3) {
3288
4614
  case 1:
3289
- if (tag == 8) {
4615
+ if (tag === 8) {
3290
4616
  message.path.push(reader.int32());
4617
+
3291
4618
  continue;
3292
4619
  }
3293
4620
 
3294
- if (tag == 10) {
4621
+ if (tag === 10) {
3295
4622
  const end2 = reader.uint32() + reader.pos;
3296
4623
  while (reader.pos < end2) {
3297
4624
  message.path.push(reader.int32());
@@ -3302,45 +4629,53 @@ export const GeneratedCodeInfo_Annotation = {
3302
4629
 
3303
4630
  break;
3304
4631
  case 2:
3305
- if (tag != 18) {
4632
+ if (tag !== 18) {
3306
4633
  break;
3307
4634
  }
3308
4635
 
3309
4636
  message.sourceFile = reader.string();
3310
4637
  continue;
3311
4638
  case 3:
3312
- if (tag != 24) {
4639
+ if (tag !== 24) {
3313
4640
  break;
3314
4641
  }
3315
4642
 
3316
4643
  message.begin = reader.int32();
3317
4644
  continue;
3318
4645
  case 4:
3319
- if (tag != 32) {
4646
+ if (tag !== 32) {
3320
4647
  break;
3321
4648
  }
3322
4649
 
3323
4650
  message.end = reader.int32();
3324
4651
  continue;
4652
+ case 5:
4653
+ if (tag !== 40) {
4654
+ break;
4655
+ }
4656
+
4657
+ message.semantic = reader.int32() as any;
4658
+ continue;
3325
4659
  }
3326
- if ((tag & 7) == 4 || tag == 0) {
4660
+ if ((tag & 7) === 4 || tag === 0) {
3327
4661
  break;
3328
4662
  }
3329
4663
  reader.skipType(tag & 7);
3330
4664
  }
3331
4665
  return message;
3332
- },
4666
+ }
3333
4667
 
3334
- fromJSON(object: any): GeneratedCodeInfo_Annotation {
4668
+ export function fromJSON(object: any): GeneratedCodeInfo_Annotation {
3335
4669
  return {
3336
4670
  path: Array.isArray(object?.path) ? object.path.map((e: any) => Number(e)) : [],
3337
4671
  sourceFile: isSet(object.sourceFile) ? String(object.sourceFile) : "",
3338
4672
  begin: isSet(object.begin) ? Number(object.begin) : 0,
3339
4673
  end: isSet(object.end) ? Number(object.end) : 0,
4674
+ semantic: isSet(object.semantic) ? generatedCodeInfo_Annotation_SemanticFromJSON(object.semantic) : 0,
3340
4675
  };
3341
- },
4676
+ }
3342
4677
 
3343
- toJSON(message: GeneratedCodeInfo_Annotation): unknown {
4678
+ export function toJSON(message: GeneratedCodeInfo_Annotation): unknown {
3344
4679
  const obj: any = {};
3345
4680
  if (message.path) {
3346
4681
  obj.path = message.path.map((e) => Math.round(e));
@@ -3350,27 +4685,33 @@ export const GeneratedCodeInfo_Annotation = {
3350
4685
  message.sourceFile !== undefined && (obj.sourceFile = message.sourceFile);
3351
4686
  message.begin !== undefined && (obj.begin = Math.round(message.begin));
3352
4687
  message.end !== undefined && (obj.end = Math.round(message.end));
4688
+ message.semantic !== undefined && (obj.semantic = generatedCodeInfo_Annotation_SemanticToJSON(message.semantic));
3353
4689
  return obj;
3354
- },
4690
+ }
3355
4691
 
3356
- create<I extends Exact<DeepPartial<GeneratedCodeInfo_Annotation>, I>>(base?: I): GeneratedCodeInfo_Annotation {
4692
+ export function create<I extends Exact<DeepPartial<GeneratedCodeInfo_Annotation>, I>>(
4693
+ base?: I,
4694
+ ): GeneratedCodeInfo_Annotation {
3357
4695
  return GeneratedCodeInfo_Annotation.fromPartial(base ?? {});
3358
- },
4696
+ }
3359
4697
 
3360
- fromPartial<I extends Exact<DeepPartial<GeneratedCodeInfo_Annotation>, I>>(object: I): GeneratedCodeInfo_Annotation {
4698
+ export function fromPartial<I extends Exact<DeepPartial<GeneratedCodeInfo_Annotation>, I>>(
4699
+ object: I,
4700
+ ): GeneratedCodeInfo_Annotation {
3361
4701
  const message = createBaseGeneratedCodeInfo_Annotation();
3362
4702
  message.path = object.path?.map((e) => e) || [];
3363
4703
  message.sourceFile = object.sourceFile ?? "";
3364
4704
  message.begin = object.begin ?? 0;
3365
4705
  message.end = object.end ?? 0;
4706
+ message.semantic = object.semantic ?? 0;
3366
4707
  return message;
3367
- },
3368
- };
4708
+ }
4709
+ }
3369
4710
 
3370
- declare var self: any | undefined;
3371
- declare var window: any | undefined;
3372
- declare var global: any | undefined;
3373
- var tsProtoGlobalThis: any = (() => {
4711
+ declare const self: any | undefined;
4712
+ declare const window: any | undefined;
4713
+ declare const global: any | undefined;
4714
+ const tsProtoGlobalThis: any = (() => {
3374
4715
  if (typeof globalThis !== "undefined") {
3375
4716
  return globalThis;
3376
4717
  }