@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.
- package/README.md +296 -13
- package/out-js/decentraland/common/border_rect.gen.d.ts +23 -28
- package/out-js/decentraland/common/border_rect.gen.js +126 -25
- package/out-js/decentraland/common/border_rect.gen.js.map +1 -1
- package/out-js/decentraland/common/colors.gen.d.ts +29 -52
- package/out-js/decentraland/common/colors.gen.js +132 -47
- package/out-js/decentraland/common/colors.gen.js.map +1 -1
- package/out-js/decentraland/common/content_mapping.gen.d.ts +8 -20
- package/out-js/decentraland/common/content_mapping.gen.js +27 -20
- package/out-js/decentraland/common/content_mapping.gen.js.map +1 -1
- package/out-js/decentraland/common/gradient.gen.d.ts +50 -0
- package/out-js/decentraland/common/gradient.gen.js +148 -0
- package/out-js/decentraland/common/gradient.gen.js.map +1 -0
- package/out-js/decentraland/common/sdk/user_data.gen.d.ts +24 -176
- package/out-js/decentraland/common/sdk/user_data.gen.js +111 -88
- package/out-js/decentraland/common/sdk/user_data.gen.js.map +1 -1
- package/out-js/decentraland/common/texture.gen.d.ts +56 -252
- package/out-js/decentraland/common/texture.gen.js +262 -111
- package/out-js/decentraland/common/texture.gen.js.map +1 -1
- package/out-js/decentraland/common/vectors.gen.d.ts +38 -68
- package/out-js/decentraland/common/vectors.gen.js +180 -65
- package/out-js/decentraland/common/vectors.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/comms_api.gen.d.ts +206 -0
- package/out-js/decentraland/kernel/apis/comms_api.gen.js +794 -0
- package/out-js/decentraland/kernel/apis/comms_api.gen.js.map +1 -0
- package/out-js/decentraland/kernel/apis/communications_controller.gen.d.ts +64 -48
- package/out-js/decentraland/kernel/apis/communications_controller.gen.js +323 -37
- package/out-js/decentraland/kernel/apis/communications_controller.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/dev_tools.gen.d.ts +18 -56
- package/out-js/decentraland/kernel/apis/dev_tools.gen.js +52 -38
- package/out-js/decentraland/kernel/apis/dev_tools.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/engine_api.gen.d.ts +186 -4088
- package/out-js/decentraland/kernel/apis/engine_api.gen.js +680 -1733
- package/out-js/decentraland/kernel/apis/engine_api.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/environment_api.gen.d.ts +150 -690
- package/out-js/decentraland/kernel/apis/environment_api.gen.js +458 -336
- package/out-js/decentraland/kernel/apis/environment_api.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/ethereum_controller.gen.d.ts +106 -440
- package/out-js/decentraland/kernel/apis/ethereum_controller.gen.js +329 -243
- package/out-js/decentraland/kernel/apis/ethereum_controller.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/parcel_identity.gen.d.ts +70 -518
- package/out-js/decentraland/kernel/apis/parcel_identity.gen.js +227 -169
- package/out-js/decentraland/kernel/apis/parcel_identity.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/permissions.gen.d.ts +37 -128
- package/out-js/decentraland/kernel/apis/permissions.gen.js +117 -81
- package/out-js/decentraland/kernel/apis/permissions.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/players.gen.d.ts +54 -476
- package/out-js/decentraland/kernel/apis/players.gen.js +157 -114
- package/out-js/decentraland/kernel/apis/players.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/portable_experiences.gen.d.ts +84 -309
- package/out-js/decentraland/kernel/apis/portable_experiences.gen.js +279 -177
- package/out-js/decentraland/kernel/apis/portable_experiences.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/restricted_actions.gen.d.ts +391 -577
- package/out-js/decentraland/kernel/apis/restricted_actions.gen.js +1429 -322
- package/out-js/decentraland/kernel/apis/restricted_actions.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/runtime.gen.d.ts +130 -412
- package/out-js/decentraland/kernel/apis/runtime.gen.js +492 -269
- package/out-js/decentraland/kernel/apis/runtime.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/scene.gen.d.ts +18 -132
- package/out-js/decentraland/kernel/apis/scene.gen.js +63 -47
- package/out-js/decentraland/kernel/apis/scene.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/scene_credits.gen.d.ts +186 -0
- package/out-js/decentraland/kernel/apis/scene_credits.gen.js +388 -0
- package/out-js/decentraland/kernel/apis/scene_credits.gen.js.map +1 -0
- package/out-js/decentraland/kernel/apis/signed_fetch.gen.d.ts +75 -284
- package/out-js/decentraland/kernel/apis/signed_fetch.gen.js +305 -116
- package/out-js/decentraland/kernel/apis/signed_fetch.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/social_controller.gen.d.ts +26 -128
- package/out-js/decentraland/kernel/apis/social_controller.gen.js +83 -61
- package/out-js/decentraland/kernel/apis/social_controller.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/testing.gen.d.ts +165 -408
- package/out-js/decentraland/kernel/apis/testing.gen.js +668 -195
- package/out-js/decentraland/kernel/apis/testing.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/user_action_module.gen.d.ts +18 -48
- package/out-js/decentraland/kernel/apis/user_action_module.gen.js +50 -36
- package/out-js/decentraland/kernel/apis/user_action_module.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/user_identity.gen.d.ts +36 -352
- package/out-js/decentraland/kernel/apis/user_identity.gen.js +98 -70
- package/out-js/decentraland/kernel/apis/user_identity.gen.js.map +1 -1
- package/out-js/decentraland/kernel/comms/rfc4/comms.gen.d.ts +350 -551
- package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js +1905 -264
- package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js.map +1 -1
- package/out-js/decentraland/kernel/comms/rfc5/ws_comms.gen.d.ts +86 -561
- package/out-js/decentraland/kernel/comms/rfc5/ws_comms.gen.js +354 -258
- package/out-js/decentraland/kernel/comms/rfc5/ws_comms.gen.js.map +1 -1
- package/out-js/decentraland/kernel/comms/v3/archipelago.gen.d.ts +233 -1004
- package/out-js/decentraland/kernel/comms/v3/archipelago.gen.js +1247 -353
- package/out-js/decentraland/kernel/comms/v3/archipelago.gen.js.map +1 -1
- package/out-js/decentraland/pulse/pulse_clusters.gen.d.ts +153 -0
- package/out-js/decentraland/pulse/pulse_clusters.gen.js +678 -0
- package/out-js/decentraland/pulse/pulse_clusters.gen.js.map +1 -0
- package/out-js/decentraland/quests/definitions.gen.d.ts +541 -0
- package/out-js/decentraland/quests/definitions.gen.js +2739 -0
- package/out-js/decentraland/quests/definitions.gen.js.map +1 -0
- package/out-js/decentraland/realm/about.gen.d.ts +147 -538
- package/out-js/decentraland/realm/about.gen.js +580 -248
- package/out-js/decentraland/realm/about.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/animator.gen.d.ts +19 -141
- package/out-js/decentraland/sdk/components/animator.gen.js +69 -74
- package/out-js/decentraland/sdk/components/animator.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/audio_source.gen.d.ts +19 -32
- package/out-js/decentraland/sdk/components/audio_source.gen.js +63 -24
- package/out-js/decentraland/sdk/components/audio_source.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/audio_stream.gen.d.ts +18 -24
- package/out-js/decentraland/sdk/components/audio_stream.gen.js +72 -22
- package/out-js/decentraland/sdk/components/audio_stream.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/avatar_attach.gen.d.ts +31 -20
- package/out-js/decentraland/sdk/components/avatar_attach.gen.js +163 -23
- package/out-js/decentraland/sdk/components/avatar_attach.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/avatar_base.gen.d.ts +38 -0
- package/out-js/decentraland/sdk/components/avatar_base.gen.js +148 -0
- package/out-js/decentraland/sdk/components/avatar_base.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/avatar_emote_command.gen.d.ts +64 -0
- package/out-js/decentraland/sdk/components/avatar_emote_command.gen.js +171 -0
- package/out-js/decentraland/sdk/components/avatar_emote_command.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.d.ts +57 -0
- package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.js +200 -0
- package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/avatar_locomotion_settings.gen.d.ts +51 -0
- package/out-js/decentraland/sdk/components/avatar_locomotion_settings.gen.js +177 -0
- package/out-js/decentraland/sdk/components/avatar_locomotion_settings.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.d.ts +51 -48
- package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js +281 -27
- package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/avatar_movement.gen.d.ts +71 -0
- package/out-js/decentraland/sdk/components/avatar_movement.gen.js +305 -0
- package/out-js/decentraland/sdk/components/avatar_movement.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/avatar_movement_info.gen.d.ts +82 -0
- package/out-js/decentraland/sdk/components/avatar_movement_info.gen.js +357 -0
- package/out-js/decentraland/sdk/components/avatar_movement_info.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/avatar_nametag.gen.d.ts +58 -0
- package/out-js/decentraland/sdk/components/avatar_nametag.gen.js +117 -0
- package/out-js/decentraland/sdk/components/avatar_nametag.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/avatar_shape.gen.d.ts +39 -140
- package/out-js/decentraland/sdk/components/avatar_shape.gen.js +80 -40
- package/out-js/decentraland/sdk/components/avatar_shape.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/billboard.gen.d.ts +17 -18
- package/out-js/decentraland/sdk/components/billboard.gen.js +45 -24
- package/out-js/decentraland/sdk/components/billboard.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/camera_layer.gen.d.ts +46 -0
- package/out-js/decentraland/sdk/components/camera_layer.gen.js +162 -0
- package/out-js/decentraland/sdk/components/camera_layer.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/camera_layers.gen.d.ts +30 -0
- package/out-js/decentraland/sdk/components/camera_layers.gen.js +81 -0
- package/out-js/decentraland/sdk/components/camera_layers.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/camera_mode.gen.d.ts +8 -16
- package/out-js/decentraland/sdk/components/camera_mode.gen.js +25 -18
- package/out-js/decentraland/sdk/components/camera_mode.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/camera_mode_area.gen.d.ts +38 -45
- package/out-js/decentraland/sdk/components/camera_mode_area.gen.js +172 -22
- package/out-js/decentraland/sdk/components/camera_mode_area.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/common/avatar_mask.gen.d.ts +8 -0
- package/out-js/decentraland/sdk/components/common/avatar_mask.gen.js +34 -0
- package/out-js/decentraland/sdk/components/common/avatar_mask.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/common/camera_type.gen.js +4 -4
- package/out-js/decentraland/sdk/components/common/camera_type.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/common/explorer_ui.gen.d.ts +23 -0
- package/out-js/decentraland/sdk/components/common/explorer_ui.gen.js +94 -0
- package/out-js/decentraland/sdk/components/common/explorer_ui.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/common/input_action.gen.d.ts +14 -0
- package/out-js/decentraland/sdk/components/common/input_action.gen.js +77 -7
- package/out-js/decentraland/sdk/components/common/input_action.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/common/loading_state.gen.d.ts +11 -0
- package/out-js/decentraland/sdk/components/common/loading_state.gen.js +57 -0
- package/out-js/decentraland/sdk/components/common/loading_state.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/common/raycast_hit.gen.d.ts +8 -136
- package/out-js/decentraland/sdk/components/common/raycast_hit.gen.js +31 -24
- package/out-js/decentraland/sdk/components/common/raycast_hit.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/common/texts.gen.js +7 -7
- package/out-js/decentraland/sdk/components/common/texts.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/engine_info.gen.d.ts +45 -0
- package/out-js/decentraland/sdk/components/engine_info.gen.js +119 -0
- package/out-js/decentraland/sdk/components/engine_info.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/environment_fog.gen.d.ts +44 -0
- package/out-js/decentraland/sdk/components/environment_fog.gen.js +86 -0
- package/out-js/decentraland/sdk/components/environment_fog.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/explorer_configuration.gen.d.ts +35 -0
- package/out-js/decentraland/sdk/components/explorer_configuration.gen.js +69 -0
- package/out-js/decentraland/sdk/components/explorer_configuration.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/explorer_item_purchase_result.gen.d.ts +78 -0
- package/out-js/decentraland/sdk/components/explorer_item_purchase_result.gen.js +309 -0
- package/out-js/decentraland/sdk/components/explorer_item_purchase_result.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/explorer_ui_events_result.gen.d.ts +73 -0
- package/out-js/decentraland/sdk/components/explorer_ui_events_result.gen.js +232 -0
- package/out-js/decentraland/sdk/components/explorer_ui_events_result.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/global_light.gen.d.ts +50 -0
- package/out-js/decentraland/sdk/components/global_light.gen.js +103 -0
- package/out-js/decentraland/sdk/components/global_light.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/gltf_container.gen.d.ts +12 -16
- package/out-js/decentraland/sdk/components/gltf_container.gen.js +60 -21
- package/out-js/decentraland/sdk/components/gltf_container.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.d.ts +54 -0
- package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.js +159 -0
- package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/gltf_node.gen.d.ts +66 -0
- package/out-js/decentraland/sdk/components/gltf_node.gen.js +69 -0
- package/out-js/decentraland/sdk/components/gltf_node.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/gltf_node_modifiers.gen.d.ts +57 -0
- package/out-js/decentraland/sdk/components/gltf_node_modifiers.gen.js +165 -0
- package/out-js/decentraland/sdk/components/gltf_node_modifiers.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/gltf_node_state.gen.d.ts +43 -0
- package/out-js/decentraland/sdk/components/gltf_node_state.gen.js +122 -0
- package/out-js/decentraland/sdk/components/gltf_node_state.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/input_modifier.gen.d.ts +52 -0
- package/out-js/decentraland/sdk/components/input_modifier.gen.js +233 -0
- package/out-js/decentraland/sdk/components/input_modifier.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/material.gen.d.ts +50 -3374
- package/out-js/decentraland/sdk/components/material.gen.js +219 -105
- package/out-js/decentraland/sdk/components/material.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/mesh_collider.gen.d.ts +65 -181
- package/out-js/decentraland/sdk/components/mesh_collider.gen.js +253 -129
- package/out-js/decentraland/sdk/components/mesh_collider.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/mesh_renderer.gen.d.ts +62 -226
- package/out-js/decentraland/sdk/components/mesh_renderer.gen.js +239 -116
- package/out-js/decentraland/sdk/components/mesh_renderer.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/nft_shape.gen.d.ts +11 -51
- package/out-js/decentraland/sdk/components/nft_shape.gen.js +37 -30
- package/out-js/decentraland/sdk/components/nft_shape.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/player_identity_data.gen.d.ts +37 -0
- package/out-js/decentraland/sdk/components/player_identity_data.gen.js +83 -0
- package/out-js/decentraland/sdk/components/player_identity_data.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/pointer_events.gen.d.ts +63 -187
- package/out-js/decentraland/sdk/components/pointer_events.gen.js +165 -71
- package/out-js/decentraland/sdk/components/pointer_events.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/pointer_events_result.gen.d.ts +11 -209
- package/out-js/decentraland/sdk/components/pointer_events_result.gen.js +45 -26
- package/out-js/decentraland/sdk/components/pointer_events_result.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/pointer_lock.gen.d.ts +8 -16
- package/out-js/decentraland/sdk/components/pointer_lock.gen.js +24 -17
- package/out-js/decentraland/sdk/components/pointer_lock.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/raycast.gen.d.ts +22 -249
- package/out-js/decentraland/sdk/components/raycast.gen.js +124 -52
- package/out-js/decentraland/sdk/components/raycast.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/raycast_result.gen.d.ts +10 -348
- package/out-js/decentraland/sdk/components/raycast_result.gen.js +46 -25
- package/out-js/decentraland/sdk/components/raycast_result.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/realm_info.gen.d.ts +43 -0
- package/out-js/decentraland/sdk/components/realm_info.gen.js +151 -0
- package/out-js/decentraland/sdk/components/realm_info.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/skybox.gen.d.ts +103 -0
- package/out-js/decentraland/sdk/components/skybox.gen.js +355 -0
- package/out-js/decentraland/sdk/components/skybox.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/sun.gen.d.ts +53 -0
- package/out-js/decentraland/sdk/components/sun.gen.js +114 -0
- package/out-js/decentraland/sdk/components/sun.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/text_shape.gen.d.ts +10 -174
- package/out-js/decentraland/sdk/components/text_shape.gen.js +59 -39
- package/out-js/decentraland/sdk/components/text_shape.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/texture_camera.gen.d.ts +86 -0
- package/out-js/decentraland/sdk/components/texture_camera.gen.js +297 -0
- package/out-js/decentraland/sdk/components/texture_camera.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/touch_screen_controls.gen.d.ts +77 -0
- package/out-js/decentraland/sdk/components/touch_screen_controls.gen.js +203 -0
- package/out-js/decentraland/sdk/components/touch_screen_controls.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/tween.gen.d.ts +220 -0
- package/out-js/decentraland/sdk/components/tween.gen.js +1214 -0
- package/out-js/decentraland/sdk/components/tween.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/tween_sequence.gen.d.ts +39 -0
- package/out-js/decentraland/sdk/components/tween_sequence.gen.js +124 -0
- package/out-js/decentraland/sdk/components/tween_sequence.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/tween_state.gen.d.ts +40 -0
- package/out-js/decentraland/sdk/components/tween_state.gen.js +122 -0
- package/out-js/decentraland/sdk/components/tween_state.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/ui_background.gen.d.ts +8 -314
- package/out-js/decentraland/sdk/components/ui_background.gen.js +40 -31
- package/out-js/decentraland/sdk/components/ui_background.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/ui_canvas.gen.d.ts +35 -0
- package/out-js/decentraland/sdk/components/ui_canvas.gen.js +98 -0
- package/out-js/decentraland/sdk/components/ui_canvas.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/ui_dropdown.gen.d.ts +10 -78
- package/out-js/decentraland/sdk/components/ui_dropdown.gen.js +52 -30
- package/out-js/decentraland/sdk/components/ui_dropdown.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/ui_dropdown_result.gen.d.ts +8 -16
- package/out-js/decentraland/sdk/components/ui_dropdown_result.gen.js +25 -18
- package/out-js/decentraland/sdk/components/ui_dropdown_result.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/ui_input.gen.d.ts +14 -104
- package/out-js/decentraland/sdk/components/ui_input.gen.js +72 -26
- package/out-js/decentraland/sdk/components/ui_input.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/ui_input_binding.gen.d.ts +52 -0
- package/out-js/decentraland/sdk/components/ui_input_binding.gen.js +82 -0
- package/out-js/decentraland/sdk/components/ui_input_binding.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/ui_input_result.gen.d.ts +10 -16
- package/out-js/decentraland/sdk/components/ui_input_result.gen.js +42 -21
- package/out-js/decentraland/sdk/components/ui_input_result.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/ui_scroll_result.gen.d.ts +31 -0
- package/out-js/decentraland/sdk/components/ui_scroll_result.gen.js +71 -0
- package/out-js/decentraland/sdk/components/ui_scroll_result.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/ui_text.gen.d.ts +28 -64
- package/out-js/decentraland/sdk/components/ui_text.gen.js +127 -25
- package/out-js/decentraland/sdk/components/ui_text.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/ui_transform.gen.d.ts +84 -216
- package/out-js/decentraland/sdk/components/ui_transform.gen.js +709 -143
- package/out-js/decentraland/sdk/components/ui_transform.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/video_player.gen.d.ts +18 -36
- package/out-js/decentraland/sdk/components/video_player.gen.js +70 -24
- package/out-js/decentraland/sdk/components/video_player.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/visibility_component.gen.d.ts +16 -16
- package/out-js/decentraland/sdk/components/visibility_component.gen.js +41 -20
- package/out-js/decentraland/sdk/components/visibility_component.gen.js.map +1 -1
- package/out-js/decentraland/sdk/development/local_development.gen.d.ts +70 -0
- package/out-js/decentraland/sdk/development/local_development.gen.js +283 -0
- package/out-js/decentraland/sdk/development/local_development.gen.js.map +1 -0
- package/out-js/decentraland/sdk/ecs6/components_ecs6.gen.d.ts +1005 -0
- package/out-js/decentraland/sdk/ecs6/components_ecs6.gen.js +7850 -0
- package/out-js/decentraland/sdk/ecs6/components_ecs6.gen.js.map +1 -0
- package/out-js/decentraland/sdk/ecs6/engine_interface_ecs6.gen.d.ts +398 -0
- package/out-js/decentraland/sdk/ecs6/engine_interface_ecs6.gen.js +2512 -0
- package/out-js/decentraland/sdk/ecs6/engine_interface_ecs6.gen.js.map +1 -0
- package/out-js/decentraland/social_service/errors.gen.d.ts +96 -0
- package/out-js/decentraland/social_service/errors.gen.js +405 -0
- package/out-js/decentraland/social_service/errors.gen.js.map +1 -0
- package/out-js/decentraland/social_service/v1/social_service_v1.gen.d.ts +501 -0
- package/out-js/decentraland/social_service/v1/social_service_v1.gen.js +2521 -0
- package/out-js/decentraland/social_service/v1/social_service_v1.gen.js.map +1 -0
- package/out-js/decentraland/social_service/v2/social_service_v2.gen.d.ts +1892 -0
- package/out-js/decentraland/social_service/v2/social_service_v2.gen.js +9526 -0
- package/out-js/decentraland/social_service/v2/social_service_v2.gen.js.map +1 -0
- package/out-js/google/protobuf/descriptor.gen.d.ts +920 -87149
- package/out-js/google/protobuf/descriptor.gen.js +1719 -848
- package/out-js/google/protobuf/descriptor.gen.js.map +1 -1
- package/out-js/google/protobuf/empty.gen.d.ts +8 -8
- package/out-js/google/protobuf/empty.gen.js +23 -16
- package/out-js/google/protobuf/empty.gen.js.map +1 -1
- package/out-js/quests.gen.d.ts +1 -0
- package/out-js/{bff-services.gen.js → quests.gen.js} +2 -2
- package/out-js/quests.gen.js.map +1 -0
- package/out-js/sdk-development.gen.d.ts +1 -0
- package/out-js/sdk-development.gen.js +6 -0
- package/out-js/sdk-development.gen.js.map +1 -0
- package/out-ts/decentraland/common/border_rect.gen.ts +128 -23
- package/out-ts/decentraland/common/colors.gen.ts +123 -44
- package/out-ts/decentraland/common/content_mapping.gen.ts +19 -19
- package/out-ts/decentraland/common/gradient.gen.ts +170 -0
- package/out-ts/decentraland/common/sdk/user_data.gen.ts +69 -69
- package/out-ts/decentraland/common/texture.gen.ts +235 -87
- package/out-ts/decentraland/common/vectors.gen.ts +165 -61
- package/out-ts/decentraland/kernel/apis/comms_api.gen.ts +884 -0
- package/out-ts/decentraland/kernel/apis/communications_controller.gen.ts +319 -32
- package/out-ts/decentraland/kernel/apis/dev_tools.gen.ts +34 -34
- package/out-ts/decentraland/kernel/apis/engine_api.gen.ts +515 -1895
- package/out-ts/decentraland/kernel/apis/environment_api.gen.ts +325 -292
- package/out-ts/decentraland/kernel/apis/ethereum_controller.gen.ts +238 -217
- package/out-ts/decentraland/kernel/apis/parcel_identity.gen.ts +141 -141
- package/out-ts/decentraland/kernel/apis/permissions.gen.ts +85 -69
- package/out-ts/decentraland/kernel/apis/players.gen.ts +109 -97
- package/out-ts/decentraland/kernel/apis/portable_experiences.gen.ts +201 -154
- package/out-ts/decentraland/kernel/apis/restricted_actions.gen.ts +1418 -284
- package/out-ts/decentraland/kernel/apis/runtime.gen.ts +479 -267
- package/out-ts/decentraland/kernel/apis/scene.gen.ts +38 -38
- package/out-ts/decentraland/kernel/apis/scene_credits.gen.ts +459 -0
- package/out-ts/decentraland/kernel/apis/signed_fetch.gen.ts +276 -99
- package/out-ts/decentraland/kernel/apis/social_controller.gen.ts +53 -51
- package/out-ts/decentraland/kernel/apis/testing.gen.ts +686 -164
- package/out-ts/decentraland/kernel/apis/user_action_module.gen.ts +34 -32
- package/out-ts/decentraland/kernel/apis/user_identity.gen.ts +66 -62
- package/out-ts/decentraland/kernel/comms/rfc4/comms.gen.ts +2120 -238
- package/out-ts/decentraland/kernel/comms/rfc5/ws_comms.gen.ts +244 -213
- package/out-ts/decentraland/kernel/comms/v3/archipelago.gen.ts +1205 -326
- package/out-ts/decentraland/pulse/pulse_clusters.gen.ts +797 -0
- package/out-ts/decentraland/quests/definitions.gen.ts +3020 -0
- package/out-ts/decentraland/realm/about.gen.ts +588 -213
- package/out-ts/decentraland/sdk/components/animator.gen.ts +43 -66
- package/out-ts/decentraland/sdk/components/audio_source.gen.ts +69 -22
- package/out-ts/decentraland/sdk/components/audio_stream.gen.ts +80 -20
- package/out-ts/decentraland/sdk/components/avatar_attach.gen.ts +151 -18
- package/out-ts/decentraland/sdk/components/avatar_base.gen.ts +171 -0
- package/out-ts/decentraland/sdk/components/avatar_emote_command.gen.ts +202 -0
- package/out-ts/decentraland/sdk/components/avatar_equipped_data.gen.ts +237 -0
- package/out-ts/decentraland/sdk/components/avatar_locomotion_settings.gen.ts +237 -0
- package/out-ts/decentraland/sdk/components/avatar_modifier_area.gen.ts +321 -22
- package/out-ts/decentraland/sdk/components/avatar_movement.gen.ts +372 -0
- package/out-ts/decentraland/sdk/components/avatar_movement_info.gen.ts +435 -0
- package/out-ts/decentraland/sdk/components/avatar_nametag.gen.ts +162 -0
- package/out-ts/decentraland/sdk/components/avatar_shape.gen.ts +98 -45
- package/out-ts/decentraland/sdk/components/billboard.gen.ts +45 -21
- package/out-ts/decentraland/sdk/components/camera_layer.gen.ts +202 -0
- package/out-ts/decentraland/sdk/components/camera_layers.gen.ts +92 -0
- package/out-ts/decentraland/sdk/components/camera_mode.gen.ts +17 -17
- package/out-ts/decentraland/sdk/components/camera_mode_area.gen.ts +199 -20
- package/out-ts/decentraland/sdk/components/common/avatar_mask.gen.ts +31 -0
- package/out-ts/decentraland/sdk/components/common/explorer_ui.gen.ts +91 -0
- package/out-ts/decentraland/sdk/components/common/input_action.gen.ts +70 -0
- package/out-ts/decentraland/sdk/components/common/loading_state.gen.ts +54 -0
- package/out-ts/decentraland/sdk/components/common/raycast_hit.gen.ts +23 -23
- package/out-ts/decentraland/sdk/components/engine_info.gen.ts +149 -0
- package/out-ts/decentraland/sdk/components/environment_fog.gen.ts +113 -0
- package/out-ts/decentraland/sdk/components/explorer_configuration.gen.ts +87 -0
- package/out-ts/decentraland/sdk/components/explorer_item_purchase_result.gen.ts +370 -0
- package/out-ts/decentraland/sdk/components/explorer_ui_events_result.gen.ts +281 -0
- package/out-ts/decentraland/sdk/components/global_light.gen.ts +138 -0
- package/out-ts/decentraland/sdk/components/gltf_container.gen.ts +59 -19
- package/out-ts/decentraland/sdk/components/gltf_container_loading_state.gen.ts +195 -0
- package/out-ts/decentraland/sdk/components/gltf_node.gen.ts +116 -0
- package/out-ts/decentraland/sdk/components/gltf_node_modifiers.gen.ts +204 -0
- package/out-ts/decentraland/sdk/components/gltf_node_state.gen.ts +139 -0
- package/out-ts/decentraland/sdk/components/input_modifier.gen.ts +265 -0
- package/out-ts/decentraland/sdk/components/material.gen.ts +213 -94
- package/out-ts/decentraland/sdk/components/mesh_collider.gen.ts +213 -98
- package/out-ts/decentraland/sdk/components/mesh_renderer.gen.ts +211 -96
- package/out-ts/decentraland/sdk/components/nft_shape.gen.ts +28 -28
- package/out-ts/decentraland/sdk/components/player_identity_data.gen.ts +102 -0
- package/out-ts/decentraland/sdk/components/pointer_events.gen.ts +188 -60
- package/out-ts/decentraland/sdk/components/pointer_events_result.gen.ts +45 -26
- package/out-ts/decentraland/sdk/components/pointer_lock.gen.ts +16 -16
- package/out-ts/decentraland/sdk/components/raycast.gen.ts +110 -35
- package/out-ts/decentraland/sdk/components/raycast_result.gen.ts +36 -21
- package/out-ts/decentraland/sdk/components/realm_info.gen.ts +183 -0
- package/out-ts/decentraland/sdk/components/skybox.gen.ts +440 -0
- package/out-ts/decentraland/sdk/components/sun.gen.ts +155 -0
- package/out-ts/decentraland/sdk/components/text_shape.gen.ts +56 -38
- package/out-ts/decentraland/sdk/components/texture_camera.gen.ts +362 -0
- package/out-ts/decentraland/sdk/components/touch_screen_controls.gen.ts +265 -0
- package/out-ts/decentraland/sdk/components/tween.gen.ts +1336 -0
- package/out-ts/decentraland/sdk/components/tween_sequence.gen.ts +134 -0
- package/out-ts/decentraland/sdk/components/tween_state.gen.ts +136 -0
- package/out-ts/decentraland/sdk/components/ui_background.gen.ts +24 -23
- package/out-ts/decentraland/sdk/components/ui_canvas.gen.ts +115 -0
- package/out-ts/decentraland/sdk/components/ui_dropdown.gen.ts +44 -26
- package/out-ts/decentraland/sdk/components/ui_dropdown_result.gen.ts +17 -17
- package/out-ts/decentraland/sdk/components/ui_input.gen.ts +79 -25
- package/out-ts/decentraland/sdk/components/ui_input_binding.gen.ts +114 -0
- package/out-ts/decentraland/sdk/components/ui_input_result.gen.ts +36 -19
- package/out-ts/decentraland/sdk/components/ui_scroll_result.gen.ts +83 -0
- package/out-ts/decentraland/sdk/components/ui_text.gen.ts +143 -25
- package/out-ts/decentraland/sdk/components/ui_transform.gen.ts +772 -113
- package/out-ts/decentraland/sdk/components/video_player.gen.ts +81 -23
- package/out-ts/decentraland/sdk/components/visibility_component.gen.ts +46 -19
- package/out-ts/decentraland/sdk/development/local_development.gen.ts +316 -0
- package/out-ts/decentraland/sdk/ecs6/components_ecs6.gen.ts +8957 -0
- package/out-ts/decentraland/sdk/ecs6/engine_interface_ecs6.gen.ts +2886 -0
- package/out-ts/decentraland/social_service/errors.gen.ts +442 -0
- package/out-ts/decentraland/social_service/v1/social_service_v1.gen.ts +2799 -0
- package/out-ts/decentraland/social_service/v2/social_service_v2.gen.ts +10939 -0
- package/out-ts/google/protobuf/descriptor.gen.ts +1959 -618
- package/out-ts/google/protobuf/empty.gen.ts +15 -15
- package/out-ts/quests.gen.ts +3 -0
- package/out-ts/sdk-development.gen.ts +3 -0
- package/package.json +23 -11
- package/proto/decentraland/common/auth.proto +22 -0
- package/proto/decentraland/common/border_rect.proto +9 -1
- package/proto/decentraland/common/colors.proto +6 -0
- package/proto/decentraland/common/floats.proto +8 -0
- package/proto/decentraland/common/gradient.proto +16 -0
- package/proto/decentraland/common/options.proto +51 -0
- package/proto/decentraland/common/quantization_example.proto +164 -0
- package/proto/decentraland/common/texture.proto +21 -10
- package/proto/decentraland/common/vectors.proto +7 -0
- package/proto/decentraland/kernel/apis/comms_api.proto +61 -0
- package/proto/decentraland/kernel/apis/communications_controller.proto +19 -4
- package/proto/decentraland/kernel/apis/engine_api.proto +9 -110
- package/proto/decentraland/kernel/apis/permissions.proto +1 -0
- package/proto/decentraland/kernel/apis/portable_experiences.proto +4 -1
- package/proto/decentraland/kernel/apis/restricted_actions.proto +119 -9
- package/proto/decentraland/kernel/apis/runtime.proto +22 -9
- package/proto/decentraland/kernel/apis/scene_credits.proto +108 -0
- package/proto/decentraland/kernel/apis/signed_fetch.proto +6 -0
- package/proto/decentraland/kernel/apis/testing.proto +45 -0
- package/proto/decentraland/kernel/comms/rfc4/comms.proto +180 -0
- package/proto/decentraland/kernel/comms/rfc5/ws_comms.proto +3 -0
- package/proto/decentraland/kernel/comms/v3/archipelago.proto +73 -0
- package/proto/decentraland/pulse/pulse_client.proto +147 -0
- package/proto/decentraland/pulse/pulse_clusters.proto +94 -0
- package/proto/decentraland/pulse/pulse_server.proto +217 -0
- package/proto/decentraland/pulse/pulse_shared.proto +57 -0
- package/proto/decentraland/quests/definitions.proto +185 -0
- package/proto/decentraland/realm/about.proto +69 -4
- package/proto/decentraland/sdk/components/animator.proto +9 -4
- package/proto/decentraland/sdk/components/asset_load.proto +10 -0
- package/proto/decentraland/sdk/components/asset_load_loading_state.proto +16 -0
- package/proto/decentraland/sdk/components/audio_analysis.proto +44 -0
- package/proto/decentraland/sdk/components/audio_event.proto +12 -0
- package/proto/decentraland/sdk/components/audio_source.proto +10 -2
- package/proto/decentraland/sdk/components/audio_stream.proto +8 -0
- package/proto/decentraland/sdk/components/avatar_attach.proto +26 -3
- package/proto/decentraland/sdk/components/avatar_base.proto +16 -0
- package/proto/decentraland/sdk/components/avatar_emote_command.proto +32 -0
- package/proto/decentraland/sdk/components/avatar_equipped_data.proto +23 -0
- package/proto/decentraland/sdk/components/avatar_locomotion_settings.proto +21 -0
- package/proto/decentraland/sdk/components/avatar_modifier_area.proto +22 -0
- package/proto/decentraland/sdk/components/avatar_movement.proto +63 -0
- package/proto/decentraland/sdk/components/avatar_movement_info.proto +38 -0
- package/proto/decentraland/sdk/components/avatar_nametag.proto +33 -0
- package/proto/decentraland/sdk/components/avatar_shape.proto +35 -17
- package/proto/decentraland/sdk/components/billboard.proto +9 -3
- package/proto/decentraland/sdk/components/camera_layer.proto +30 -0
- package/proto/decentraland/sdk/components/camera_layers.proto +11 -0
- package/proto/decentraland/sdk/components/camera_mode_area.proto +18 -1
- package/proto/decentraland/sdk/components/common/avatar_mask.proto +7 -0
- package/proto/decentraland/sdk/components/common/camera_transition.proto +11 -0
- package/proto/decentraland/sdk/components/common/explorer_ui.proto +17 -0
- package/proto/decentraland/sdk/components/common/input_action.proto +12 -0
- package/proto/decentraland/sdk/components/common/loading_state.proto +10 -0
- package/proto/decentraland/sdk/components/common/media_state.proto +13 -0
- package/proto/decentraland/sdk/components/engine_info.proto +17 -0
- package/proto/decentraland/sdk/components/environment_fog.proto +21 -0
- package/proto/decentraland/sdk/components/explorer_configuration.proto +11 -0
- package/proto/decentraland/sdk/components/explorer_item_purchase_result.proto +24 -0
- package/proto/decentraland/sdk/components/explorer_ui_events_result.proto +33 -0
- package/proto/decentraland/sdk/components/global_light.proto +22 -0
- package/proto/decentraland/sdk/components/gltf_container.proto +6 -0
- package/proto/decentraland/sdk/components/gltf_container_loading_state.proto +26 -0
- package/proto/decentraland/sdk/components/gltf_node.proto +42 -0
- package/proto/decentraland/sdk/components/gltf_node_modifiers.proto +25 -0
- package/proto/decentraland/sdk/components/gltf_node_state.proto +20 -0
- package/proto/decentraland/sdk/components/input_modifier.proto +22 -0
- package/proto/decentraland/sdk/components/light_source.proto +28 -0
- package/proto/decentraland/sdk/components/main_camera.proto +11 -0
- package/proto/decentraland/sdk/components/map_pin.proto +16 -0
- package/proto/decentraland/sdk/components/material.proto +16 -4
- package/proto/decentraland/sdk/components/mesh_collider.proto +12 -5
- package/proto/decentraland/sdk/components/mesh_renderer.proto +10 -5
- package/proto/decentraland/sdk/components/nft_shape.proto +3 -3
- package/proto/decentraland/sdk/components/particle_system.proto +133 -0
- package/proto/decentraland/sdk/components/physics_combined_force.proto +21 -0
- package/proto/decentraland/sdk/components/physics_combined_impulse.proto +23 -0
- package/proto/decentraland/sdk/components/player_identity_data.proto +13 -0
- package/proto/decentraland/sdk/components/pointer_events.proto +33 -2
- package/proto/decentraland/sdk/components/pointer_events_result.proto +2 -1
- package/proto/decentraland/sdk/components/primary_pointer_info.proto +44 -0
- package/proto/decentraland/sdk/components/raycast.proto +13 -0
- package/proto/decentraland/sdk/components/raycast_result.proto +1 -0
- package/proto/decentraland/sdk/components/realm_info.proto +15 -0
- package/proto/decentraland/sdk/components/skybox.proto +51 -0
- package/proto/decentraland/sdk/components/skybox_time.proto +20 -0
- package/proto/decentraland/sdk/components/sun.proto +26 -0
- package/proto/decentraland/sdk/components/text_shape.proto +1 -0
- package/proto/decentraland/sdk/components/texture_camera.proto +46 -0
- package/proto/decentraland/sdk/components/touch_screen_controls.proto +38 -0
- package/proto/decentraland/sdk/components/trigger_area.proto +23 -0
- package/proto/decentraland/sdk/components/trigger_area_result.proto +34 -0
- package/proto/decentraland/sdk/components/tween.proto +117 -0
- package/proto/decentraland/sdk/components/tween_sequence.proto +18 -0
- package/proto/decentraland/sdk/components/tween_state.proto +18 -0
- package/proto/decentraland/sdk/components/ui_background.proto +2 -2
- package/proto/decentraland/sdk/components/ui_canvas.proto +16 -0
- package/proto/decentraland/sdk/components/ui_canvas_information.proto +30 -0
- package/proto/decentraland/sdk/components/ui_dropdown.proto +1 -0
- package/proto/decentraland/sdk/components/ui_input.proto +3 -0
- package/proto/decentraland/sdk/components/ui_input_binding.proto +27 -0
- package/proto/decentraland/sdk/components/ui_input_result.proto +1 -0
- package/proto/decentraland/sdk/components/ui_layout_feedback.proto +28 -0
- package/proto/decentraland/sdk/components/ui_scroll_result.proto +12 -0
- package/proto/decentraland/sdk/components/ui_text.proto +15 -3
- package/proto/decentraland/sdk/components/ui_transform.proto +57 -0
- package/proto/decentraland/sdk/components/video_event.proto +25 -0
- package/proto/decentraland/sdk/components/video_player.proto +8 -0
- package/proto/decentraland/sdk/components/virtual_camera.proto +18 -0
- package/proto/decentraland/sdk/components/visibility_component.proto +7 -0
- package/proto/decentraland/sdk/development/local_development.proto +29 -0
- package/proto/decentraland/sdk/ecs6/components_ecs6.proto +678 -0
- package/proto/decentraland/sdk/ecs6/engine_interface_ecs6.proto +151 -0
- package/proto/decentraland/social_service/errors.proto +30 -0
- package/proto/decentraland/{social/friendships/friendships.proto → social_service/v1/social_service_v1.proto} +73 -28
- package/proto/decentraland/social_service/v2/social_service_v2.proto +769 -0
- package/protoc-gen-bitwise/generator_csharp.js +248 -0
- package/protoc-gen-bitwise/options.js +139 -0
- package/protoc-gen-bitwise/plugin.js +87 -0
- package/protoc-gen-bitwise/runtime/cs/Quantize.cs +70 -0
- package/protoc-gen-bitwise/wire.js +239 -0
- package/public/comms.proto +2 -1
- package/public/quests.proto +5 -0
- package/public/sdk-apis.proto +2 -0
- package/public/sdk-components.proto +48 -19
- package/public/sdk-development.proto +5 -0
- package/public/social.proto +3 -1
- package/out-js/bff-services.gen.d.ts +0 -1
- package/out-js/bff-services.gen.js.map +0 -1
- package/out-js/decentraland/bff/authentication_service.gen.d.ts +0 -253
- package/out-js/decentraland/bff/authentication_service.gen.js +0 -351
- package/out-js/decentraland/bff/authentication_service.gen.js.map +0 -1
- package/out-js/decentraland/bff/comms_director_service.gen.d.ts +0 -289
- package/out-js/decentraland/bff/comms_director_service.gen.js +0 -228
- package/out-js/decentraland/bff/comms_director_service.gen.js.map +0 -1
- package/out-js/decentraland/bff/comms_service.gen.d.ts +0 -348
- package/out-js/decentraland/bff/comms_service.gen.js +0 -175
- package/out-js/decentraland/bff/comms_service.gen.js.map +0 -1
- package/out-js/decentraland/bff/http_endpoints.gen.d.ts +0 -929
- package/out-js/decentraland/bff/http_endpoints.gen.js +0 -873
- package/out-js/decentraland/bff/http_endpoints.gen.js.map +0 -1
- package/out-js/decentraland/bff/topics_service.gen.d.ts +0 -272
- package/out-js/decentraland/bff/topics_service.gen.js +0 -386
- package/out-js/decentraland/bff/topics_service.gen.js.map +0 -1
- package/out-js/decentraland/social/friendships/friendships.gen.d.ts +0 -4893
- package/out-js/decentraland/social/friendships/friendships.gen.js +0 -1399
- package/out-js/decentraland/social/friendships/friendships.gen.js.map +0 -1
- package/out-ts/bff-services.gen.ts +0 -3
- package/out-ts/decentraland/bff/authentication_service.gen.ts +0 -419
- package/out-ts/decentraland/bff/comms_director_service.gen.ts +0 -272
- package/out-ts/decentraland/bff/comms_service.gen.ts +0 -212
- package/out-ts/decentraland/bff/http_endpoints.gen.ts +0 -1058
- package/out-ts/decentraland/bff/topics_service.gen.ts +0 -468
- package/out-ts/decentraland/social/friendships/friendships.gen.ts +0 -1680
- package/proto/buf.yaml +0 -47
- package/proto/decentraland/bff/authentication_service.proto +0 -39
- package/proto/decentraland/bff/comms_director_service.proto +0 -33
- package/proto/decentraland/bff/comms_service.proto +0 -25
- package/proto/decentraland/bff/http_endpoints.proto +0 -80
- package/proto/decentraland/bff/topics_service.proto +0 -34
- package/proto/google/LICENSE +0 -27
- package/proto/google/README.md +0 -1
- package/proto/google/api/annotations.json +0 -83
- package/proto/google/api/annotations.proto +0 -11
- package/proto/google/api/http.json +0 -86
- package/proto/google/api/http.proto +0 -31
- package/proto/google/protobuf/api.json +0 -118
- package/proto/google/protobuf/api.proto +0 -34
- package/proto/google/protobuf/descriptor.json +0 -739
- package/proto/google/protobuf/descriptor.proto +0 -286
- package/proto/google/protobuf/source_context.json +0 -20
- package/proto/google/protobuf/source_context.proto +0 -7
- package/proto/google/protobuf/type.json +0 -202
- package/proto/google/protobuf/type.proto +0 -89
- package/public/bff-services.proto +0 -16
|
@@ -3,33 +3,73 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.GeneratedCodeInfo_Annotation = exports.GeneratedCodeInfo = exports.SourceCodeInfo_Location = exports.SourceCodeInfo = exports.UninterpretedOption_NamePart = exports.UninterpretedOption = exports.MethodOptions = exports.ServiceOptions = exports.EnumValueOptions = exports.EnumOptions = exports.OneofOptions = exports.FieldOptions = exports.MessageOptions = exports.FileOptions = exports.MethodDescriptorProto = exports.ServiceDescriptorProto = exports.EnumValueDescriptorProto = exports.
|
|
6
|
+
exports.GeneratedCodeInfo_Annotation = exports.GeneratedCodeInfo = exports.SourceCodeInfo_Location = exports.SourceCodeInfo = exports.UninterpretedOption_NamePart = exports.UninterpretedOption = exports.MethodOptions = exports.ServiceOptions = exports.EnumValueOptions = exports.EnumOptions = exports.OneofOptions = exports.FieldOptions = exports.MessageOptions = exports.FileOptions = exports.MethodDescriptorProto = exports.ServiceDescriptorProto = exports.EnumValueDescriptorProto = exports.EnumDescriptorProto_EnumReservedRange = exports.EnumDescriptorProto = exports.OneofDescriptorProto = exports.FieldDescriptorProto = exports.ExtensionRangeOptions = exports.DescriptorProto_ReservedRange = exports.DescriptorProto_ExtensionRange = exports.DescriptorProto = exports.FileDescriptorProto = exports.FileDescriptorSet = exports.GeneratedCodeInfo_Annotation_Semantic = exports.MethodOptions_IdempotencyLevel = exports.FieldOptions_OptionTargetType = exports.FieldOptions_OptionRetention = exports.FieldOptions_JSType = exports.FieldOptions_CType = exports.FileOptions_OptimizeMode = exports.FieldDescriptorProto_Label = exports.FieldDescriptorProto_Type = exports.protobufPackage = void 0;
|
|
7
|
+
exports.fieldDescriptorProto_TypeFromJSON = fieldDescriptorProto_TypeFromJSON;
|
|
8
|
+
exports.fieldDescriptorProto_TypeToJSON = fieldDescriptorProto_TypeToJSON;
|
|
9
|
+
exports.fieldDescriptorProto_LabelFromJSON = fieldDescriptorProto_LabelFromJSON;
|
|
10
|
+
exports.fieldDescriptorProto_LabelToJSON = fieldDescriptorProto_LabelToJSON;
|
|
11
|
+
exports.fileOptions_OptimizeModeFromJSON = fileOptions_OptimizeModeFromJSON;
|
|
12
|
+
exports.fileOptions_OptimizeModeToJSON = fileOptions_OptimizeModeToJSON;
|
|
13
|
+
exports.fieldOptions_CTypeFromJSON = fieldOptions_CTypeFromJSON;
|
|
14
|
+
exports.fieldOptions_CTypeToJSON = fieldOptions_CTypeToJSON;
|
|
15
|
+
exports.fieldOptions_JSTypeFromJSON = fieldOptions_JSTypeFromJSON;
|
|
16
|
+
exports.fieldOptions_JSTypeToJSON = fieldOptions_JSTypeToJSON;
|
|
17
|
+
exports.fieldOptions_OptionRetentionFromJSON = fieldOptions_OptionRetentionFromJSON;
|
|
18
|
+
exports.fieldOptions_OptionRetentionToJSON = fieldOptions_OptionRetentionToJSON;
|
|
19
|
+
exports.fieldOptions_OptionTargetTypeFromJSON = fieldOptions_OptionTargetTypeFromJSON;
|
|
20
|
+
exports.fieldOptions_OptionTargetTypeToJSON = fieldOptions_OptionTargetTypeToJSON;
|
|
21
|
+
exports.methodOptions_IdempotencyLevelFromJSON = methodOptions_IdempotencyLevelFromJSON;
|
|
22
|
+
exports.methodOptions_IdempotencyLevelToJSON = methodOptions_IdempotencyLevelToJSON;
|
|
23
|
+
exports.generatedCodeInfo_Annotation_SemanticFromJSON = generatedCodeInfo_Annotation_SemanticFromJSON;
|
|
24
|
+
exports.generatedCodeInfo_Annotation_SemanticToJSON = generatedCodeInfo_Annotation_SemanticToJSON;
|
|
7
25
|
/* eslint-disable */
|
|
8
26
|
const long_1 = __importDefault(require("long"));
|
|
9
27
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
28
|
exports.protobufPackage = "google.protobuf";
|
|
11
29
|
var FieldDescriptorProto_Type;
|
|
12
30
|
(function (FieldDescriptorProto_Type) {
|
|
31
|
+
/**
|
|
32
|
+
* TYPE_DOUBLE - 0 is reserved for errors.
|
|
33
|
+
* Order is weird for historical reasons.
|
|
34
|
+
*/
|
|
13
35
|
FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_DOUBLE"] = 1] = "TYPE_DOUBLE";
|
|
14
36
|
FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_FLOAT"] = 2] = "TYPE_FLOAT";
|
|
37
|
+
/**
|
|
38
|
+
* TYPE_INT64 - Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if
|
|
39
|
+
* negative values are likely.
|
|
40
|
+
*/
|
|
15
41
|
FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_INT64"] = 3] = "TYPE_INT64";
|
|
16
42
|
FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_UINT64"] = 4] = "TYPE_UINT64";
|
|
43
|
+
/**
|
|
44
|
+
* TYPE_INT32 - Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if
|
|
45
|
+
* negative values are likely.
|
|
46
|
+
*/
|
|
17
47
|
FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_INT32"] = 5] = "TYPE_INT32";
|
|
18
48
|
FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_FIXED64"] = 6] = "TYPE_FIXED64";
|
|
19
49
|
FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_FIXED32"] = 7] = "TYPE_FIXED32";
|
|
20
50
|
FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_BOOL"] = 8] = "TYPE_BOOL";
|
|
21
51
|
FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_STRING"] = 9] = "TYPE_STRING";
|
|
52
|
+
/**
|
|
53
|
+
* TYPE_GROUP - Tag-delimited aggregate.
|
|
54
|
+
* Group type is deprecated and not supported in proto3. However, Proto3
|
|
55
|
+
* implementations should still be able to parse the group wire format and
|
|
56
|
+
* treat group fields as unknown fields.
|
|
57
|
+
*/
|
|
22
58
|
FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_GROUP"] = 10] = "TYPE_GROUP";
|
|
59
|
+
/** TYPE_MESSAGE - Length-delimited aggregate. */
|
|
23
60
|
FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_MESSAGE"] = 11] = "TYPE_MESSAGE";
|
|
61
|
+
/** TYPE_BYTES - New in version 2. */
|
|
24
62
|
FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_BYTES"] = 12] = "TYPE_BYTES";
|
|
25
63
|
FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_UINT32"] = 13] = "TYPE_UINT32";
|
|
26
64
|
FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_ENUM"] = 14] = "TYPE_ENUM";
|
|
27
65
|
FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_SFIXED32"] = 15] = "TYPE_SFIXED32";
|
|
28
66
|
FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_SFIXED64"] = 16] = "TYPE_SFIXED64";
|
|
67
|
+
/** TYPE_SINT32 - Uses ZigZag encoding. */
|
|
29
68
|
FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_SINT32"] = 17] = "TYPE_SINT32";
|
|
69
|
+
/** TYPE_SINT64 - Uses ZigZag encoding. */
|
|
30
70
|
FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_SINT64"] = 18] = "TYPE_SINT64";
|
|
31
71
|
FieldDescriptorProto_Type[FieldDescriptorProto_Type["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
32
|
-
})(FieldDescriptorProto_Type
|
|
72
|
+
})(FieldDescriptorProto_Type || (exports.FieldDescriptorProto_Type = FieldDescriptorProto_Type = {}));
|
|
33
73
|
function fieldDescriptorProto_TypeFromJSON(object) {
|
|
34
74
|
switch (object) {
|
|
35
75
|
case 1:
|
|
@@ -92,7 +132,6 @@ function fieldDescriptorProto_TypeFromJSON(object) {
|
|
|
92
132
|
return FieldDescriptorProto_Type.UNRECOGNIZED;
|
|
93
133
|
}
|
|
94
134
|
}
|
|
95
|
-
exports.fieldDescriptorProto_TypeFromJSON = fieldDescriptorProto_TypeFromJSON;
|
|
96
135
|
function fieldDescriptorProto_TypeToJSON(object) {
|
|
97
136
|
switch (object) {
|
|
98
137
|
case FieldDescriptorProto_Type.TYPE_DOUBLE:
|
|
@@ -136,14 +175,14 @@ function fieldDescriptorProto_TypeToJSON(object) {
|
|
|
136
175
|
return "UNRECOGNIZED";
|
|
137
176
|
}
|
|
138
177
|
}
|
|
139
|
-
exports.fieldDescriptorProto_TypeToJSON = fieldDescriptorProto_TypeToJSON;
|
|
140
178
|
var FieldDescriptorProto_Label;
|
|
141
179
|
(function (FieldDescriptorProto_Label) {
|
|
180
|
+
/** LABEL_OPTIONAL - 0 is reserved for errors */
|
|
142
181
|
FieldDescriptorProto_Label[FieldDescriptorProto_Label["LABEL_OPTIONAL"] = 1] = "LABEL_OPTIONAL";
|
|
143
182
|
FieldDescriptorProto_Label[FieldDescriptorProto_Label["LABEL_REQUIRED"] = 2] = "LABEL_REQUIRED";
|
|
144
183
|
FieldDescriptorProto_Label[FieldDescriptorProto_Label["LABEL_REPEATED"] = 3] = "LABEL_REPEATED";
|
|
145
184
|
FieldDescriptorProto_Label[FieldDescriptorProto_Label["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
146
|
-
})(FieldDescriptorProto_Label
|
|
185
|
+
})(FieldDescriptorProto_Label || (exports.FieldDescriptorProto_Label = FieldDescriptorProto_Label = {}));
|
|
147
186
|
function fieldDescriptorProto_LabelFromJSON(object) {
|
|
148
187
|
switch (object) {
|
|
149
188
|
case 1:
|
|
@@ -161,7 +200,6 @@ function fieldDescriptorProto_LabelFromJSON(object) {
|
|
|
161
200
|
return FieldDescriptorProto_Label.UNRECOGNIZED;
|
|
162
201
|
}
|
|
163
202
|
}
|
|
164
|
-
exports.fieldDescriptorProto_LabelFromJSON = fieldDescriptorProto_LabelFromJSON;
|
|
165
203
|
function fieldDescriptorProto_LabelToJSON(object) {
|
|
166
204
|
switch (object) {
|
|
167
205
|
case FieldDescriptorProto_Label.LABEL_OPTIONAL:
|
|
@@ -175,14 +213,17 @@ function fieldDescriptorProto_LabelToJSON(object) {
|
|
|
175
213
|
return "UNRECOGNIZED";
|
|
176
214
|
}
|
|
177
215
|
}
|
|
178
|
-
|
|
216
|
+
/** Generated classes can be optimized for speed or code size. */
|
|
179
217
|
var FileOptions_OptimizeMode;
|
|
180
218
|
(function (FileOptions_OptimizeMode) {
|
|
219
|
+
/** SPEED - Generate complete code for parsing, serialization, */
|
|
181
220
|
FileOptions_OptimizeMode[FileOptions_OptimizeMode["SPEED"] = 1] = "SPEED";
|
|
221
|
+
/** CODE_SIZE - etc. */
|
|
182
222
|
FileOptions_OptimizeMode[FileOptions_OptimizeMode["CODE_SIZE"] = 2] = "CODE_SIZE";
|
|
223
|
+
/** LITE_RUNTIME - Generate code using MessageLite and the lite runtime. */
|
|
183
224
|
FileOptions_OptimizeMode[FileOptions_OptimizeMode["LITE_RUNTIME"] = 3] = "LITE_RUNTIME";
|
|
184
225
|
FileOptions_OptimizeMode[FileOptions_OptimizeMode["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
185
|
-
})(FileOptions_OptimizeMode
|
|
226
|
+
})(FileOptions_OptimizeMode || (exports.FileOptions_OptimizeMode = FileOptions_OptimizeMode = {}));
|
|
186
227
|
function fileOptions_OptimizeModeFromJSON(object) {
|
|
187
228
|
switch (object) {
|
|
188
229
|
case 1:
|
|
@@ -200,7 +241,6 @@ function fileOptions_OptimizeModeFromJSON(object) {
|
|
|
200
241
|
return FileOptions_OptimizeMode.UNRECOGNIZED;
|
|
201
242
|
}
|
|
202
243
|
}
|
|
203
|
-
exports.fileOptions_OptimizeModeFromJSON = fileOptions_OptimizeModeFromJSON;
|
|
204
244
|
function fileOptions_OptimizeModeToJSON(object) {
|
|
205
245
|
switch (object) {
|
|
206
246
|
case FileOptions_OptimizeMode.SPEED:
|
|
@@ -214,14 +254,14 @@ function fileOptions_OptimizeModeToJSON(object) {
|
|
|
214
254
|
return "UNRECOGNIZED";
|
|
215
255
|
}
|
|
216
256
|
}
|
|
217
|
-
exports.fileOptions_OptimizeModeToJSON = fileOptions_OptimizeModeToJSON;
|
|
218
257
|
var FieldOptions_CType;
|
|
219
258
|
(function (FieldOptions_CType) {
|
|
259
|
+
/** STRING - Default mode. */
|
|
220
260
|
FieldOptions_CType[FieldOptions_CType["STRING"] = 0] = "STRING";
|
|
221
261
|
FieldOptions_CType[FieldOptions_CType["CORD"] = 1] = "CORD";
|
|
222
262
|
FieldOptions_CType[FieldOptions_CType["STRING_PIECE"] = 2] = "STRING_PIECE";
|
|
223
263
|
FieldOptions_CType[FieldOptions_CType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
224
|
-
})(FieldOptions_CType
|
|
264
|
+
})(FieldOptions_CType || (exports.FieldOptions_CType = FieldOptions_CType = {}));
|
|
225
265
|
function fieldOptions_CTypeFromJSON(object) {
|
|
226
266
|
switch (object) {
|
|
227
267
|
case 0:
|
|
@@ -239,7 +279,6 @@ function fieldOptions_CTypeFromJSON(object) {
|
|
|
239
279
|
return FieldOptions_CType.UNRECOGNIZED;
|
|
240
280
|
}
|
|
241
281
|
}
|
|
242
|
-
exports.fieldOptions_CTypeFromJSON = fieldOptions_CTypeFromJSON;
|
|
243
282
|
function fieldOptions_CTypeToJSON(object) {
|
|
244
283
|
switch (object) {
|
|
245
284
|
case FieldOptions_CType.STRING:
|
|
@@ -253,14 +292,16 @@ function fieldOptions_CTypeToJSON(object) {
|
|
|
253
292
|
return "UNRECOGNIZED";
|
|
254
293
|
}
|
|
255
294
|
}
|
|
256
|
-
exports.fieldOptions_CTypeToJSON = fieldOptions_CTypeToJSON;
|
|
257
295
|
var FieldOptions_JSType;
|
|
258
296
|
(function (FieldOptions_JSType) {
|
|
297
|
+
/** JS_NORMAL - Use the default type. */
|
|
259
298
|
FieldOptions_JSType[FieldOptions_JSType["JS_NORMAL"] = 0] = "JS_NORMAL";
|
|
299
|
+
/** JS_STRING - Use JavaScript strings. */
|
|
260
300
|
FieldOptions_JSType[FieldOptions_JSType["JS_STRING"] = 1] = "JS_STRING";
|
|
301
|
+
/** JS_NUMBER - Use JavaScript numbers. */
|
|
261
302
|
FieldOptions_JSType[FieldOptions_JSType["JS_NUMBER"] = 2] = "JS_NUMBER";
|
|
262
303
|
FieldOptions_JSType[FieldOptions_JSType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
263
|
-
})(FieldOptions_JSType
|
|
304
|
+
})(FieldOptions_JSType || (exports.FieldOptions_JSType = FieldOptions_JSType = {}));
|
|
264
305
|
function fieldOptions_JSTypeFromJSON(object) {
|
|
265
306
|
switch (object) {
|
|
266
307
|
case 0:
|
|
@@ -278,7 +319,6 @@ function fieldOptions_JSTypeFromJSON(object) {
|
|
|
278
319
|
return FieldOptions_JSType.UNRECOGNIZED;
|
|
279
320
|
}
|
|
280
321
|
}
|
|
281
|
-
exports.fieldOptions_JSTypeFromJSON = fieldOptions_JSTypeFromJSON;
|
|
282
322
|
function fieldOptions_JSTypeToJSON(object) {
|
|
283
323
|
switch (object) {
|
|
284
324
|
case FieldOptions_JSType.JS_NORMAL:
|
|
@@ -292,18 +332,235 @@ function fieldOptions_JSTypeToJSON(object) {
|
|
|
292
332
|
return "UNRECOGNIZED";
|
|
293
333
|
}
|
|
294
334
|
}
|
|
295
|
-
|
|
335
|
+
/**
|
|
336
|
+
* If set to RETENTION_SOURCE, the option will be omitted from the binary.
|
|
337
|
+
* Note: as of January 2023, support for this is in progress and does not yet
|
|
338
|
+
* have an effect (b/264593489).
|
|
339
|
+
*/
|
|
340
|
+
var FieldOptions_OptionRetention;
|
|
341
|
+
(function (FieldOptions_OptionRetention) {
|
|
342
|
+
FieldOptions_OptionRetention[FieldOptions_OptionRetention["RETENTION_UNKNOWN"] = 0] = "RETENTION_UNKNOWN";
|
|
343
|
+
FieldOptions_OptionRetention[FieldOptions_OptionRetention["RETENTION_RUNTIME"] = 1] = "RETENTION_RUNTIME";
|
|
344
|
+
FieldOptions_OptionRetention[FieldOptions_OptionRetention["RETENTION_SOURCE"] = 2] = "RETENTION_SOURCE";
|
|
345
|
+
FieldOptions_OptionRetention[FieldOptions_OptionRetention["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
346
|
+
})(FieldOptions_OptionRetention || (exports.FieldOptions_OptionRetention = FieldOptions_OptionRetention = {}));
|
|
347
|
+
function fieldOptions_OptionRetentionFromJSON(object) {
|
|
348
|
+
switch (object) {
|
|
349
|
+
case 0:
|
|
350
|
+
case "RETENTION_UNKNOWN":
|
|
351
|
+
return FieldOptions_OptionRetention.RETENTION_UNKNOWN;
|
|
352
|
+
case 1:
|
|
353
|
+
case "RETENTION_RUNTIME":
|
|
354
|
+
return FieldOptions_OptionRetention.RETENTION_RUNTIME;
|
|
355
|
+
case 2:
|
|
356
|
+
case "RETENTION_SOURCE":
|
|
357
|
+
return FieldOptions_OptionRetention.RETENTION_SOURCE;
|
|
358
|
+
case -1:
|
|
359
|
+
case "UNRECOGNIZED":
|
|
360
|
+
default:
|
|
361
|
+
return FieldOptions_OptionRetention.UNRECOGNIZED;
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
function fieldOptions_OptionRetentionToJSON(object) {
|
|
365
|
+
switch (object) {
|
|
366
|
+
case FieldOptions_OptionRetention.RETENTION_UNKNOWN:
|
|
367
|
+
return "RETENTION_UNKNOWN";
|
|
368
|
+
case FieldOptions_OptionRetention.RETENTION_RUNTIME:
|
|
369
|
+
return "RETENTION_RUNTIME";
|
|
370
|
+
case FieldOptions_OptionRetention.RETENTION_SOURCE:
|
|
371
|
+
return "RETENTION_SOURCE";
|
|
372
|
+
case FieldOptions_OptionRetention.UNRECOGNIZED:
|
|
373
|
+
default:
|
|
374
|
+
return "UNRECOGNIZED";
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
/**
|
|
378
|
+
* This indicates the types of entities that the field may apply to when used
|
|
379
|
+
* as an option. If it is unset, then the field may be freely used as an
|
|
380
|
+
* option on any kind of entity. Note: as of January 2023, support for this is
|
|
381
|
+
* in progress and does not yet have an effect (b/264593489).
|
|
382
|
+
*/
|
|
383
|
+
var FieldOptions_OptionTargetType;
|
|
384
|
+
(function (FieldOptions_OptionTargetType) {
|
|
385
|
+
FieldOptions_OptionTargetType[FieldOptions_OptionTargetType["TARGET_TYPE_UNKNOWN"] = 0] = "TARGET_TYPE_UNKNOWN";
|
|
386
|
+
FieldOptions_OptionTargetType[FieldOptions_OptionTargetType["TARGET_TYPE_FILE"] = 1] = "TARGET_TYPE_FILE";
|
|
387
|
+
FieldOptions_OptionTargetType[FieldOptions_OptionTargetType["TARGET_TYPE_EXTENSION_RANGE"] = 2] = "TARGET_TYPE_EXTENSION_RANGE";
|
|
388
|
+
FieldOptions_OptionTargetType[FieldOptions_OptionTargetType["TARGET_TYPE_MESSAGE"] = 3] = "TARGET_TYPE_MESSAGE";
|
|
389
|
+
FieldOptions_OptionTargetType[FieldOptions_OptionTargetType["TARGET_TYPE_FIELD"] = 4] = "TARGET_TYPE_FIELD";
|
|
390
|
+
FieldOptions_OptionTargetType[FieldOptions_OptionTargetType["TARGET_TYPE_ONEOF"] = 5] = "TARGET_TYPE_ONEOF";
|
|
391
|
+
FieldOptions_OptionTargetType[FieldOptions_OptionTargetType["TARGET_TYPE_ENUM"] = 6] = "TARGET_TYPE_ENUM";
|
|
392
|
+
FieldOptions_OptionTargetType[FieldOptions_OptionTargetType["TARGET_TYPE_ENUM_ENTRY"] = 7] = "TARGET_TYPE_ENUM_ENTRY";
|
|
393
|
+
FieldOptions_OptionTargetType[FieldOptions_OptionTargetType["TARGET_TYPE_SERVICE"] = 8] = "TARGET_TYPE_SERVICE";
|
|
394
|
+
FieldOptions_OptionTargetType[FieldOptions_OptionTargetType["TARGET_TYPE_METHOD"] = 9] = "TARGET_TYPE_METHOD";
|
|
395
|
+
FieldOptions_OptionTargetType[FieldOptions_OptionTargetType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
396
|
+
})(FieldOptions_OptionTargetType || (exports.FieldOptions_OptionTargetType = FieldOptions_OptionTargetType = {}));
|
|
397
|
+
function fieldOptions_OptionTargetTypeFromJSON(object) {
|
|
398
|
+
switch (object) {
|
|
399
|
+
case 0:
|
|
400
|
+
case "TARGET_TYPE_UNKNOWN":
|
|
401
|
+
return FieldOptions_OptionTargetType.TARGET_TYPE_UNKNOWN;
|
|
402
|
+
case 1:
|
|
403
|
+
case "TARGET_TYPE_FILE":
|
|
404
|
+
return FieldOptions_OptionTargetType.TARGET_TYPE_FILE;
|
|
405
|
+
case 2:
|
|
406
|
+
case "TARGET_TYPE_EXTENSION_RANGE":
|
|
407
|
+
return FieldOptions_OptionTargetType.TARGET_TYPE_EXTENSION_RANGE;
|
|
408
|
+
case 3:
|
|
409
|
+
case "TARGET_TYPE_MESSAGE":
|
|
410
|
+
return FieldOptions_OptionTargetType.TARGET_TYPE_MESSAGE;
|
|
411
|
+
case 4:
|
|
412
|
+
case "TARGET_TYPE_FIELD":
|
|
413
|
+
return FieldOptions_OptionTargetType.TARGET_TYPE_FIELD;
|
|
414
|
+
case 5:
|
|
415
|
+
case "TARGET_TYPE_ONEOF":
|
|
416
|
+
return FieldOptions_OptionTargetType.TARGET_TYPE_ONEOF;
|
|
417
|
+
case 6:
|
|
418
|
+
case "TARGET_TYPE_ENUM":
|
|
419
|
+
return FieldOptions_OptionTargetType.TARGET_TYPE_ENUM;
|
|
420
|
+
case 7:
|
|
421
|
+
case "TARGET_TYPE_ENUM_ENTRY":
|
|
422
|
+
return FieldOptions_OptionTargetType.TARGET_TYPE_ENUM_ENTRY;
|
|
423
|
+
case 8:
|
|
424
|
+
case "TARGET_TYPE_SERVICE":
|
|
425
|
+
return FieldOptions_OptionTargetType.TARGET_TYPE_SERVICE;
|
|
426
|
+
case 9:
|
|
427
|
+
case "TARGET_TYPE_METHOD":
|
|
428
|
+
return FieldOptions_OptionTargetType.TARGET_TYPE_METHOD;
|
|
429
|
+
case -1:
|
|
430
|
+
case "UNRECOGNIZED":
|
|
431
|
+
default:
|
|
432
|
+
return FieldOptions_OptionTargetType.UNRECOGNIZED;
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
function fieldOptions_OptionTargetTypeToJSON(object) {
|
|
436
|
+
switch (object) {
|
|
437
|
+
case FieldOptions_OptionTargetType.TARGET_TYPE_UNKNOWN:
|
|
438
|
+
return "TARGET_TYPE_UNKNOWN";
|
|
439
|
+
case FieldOptions_OptionTargetType.TARGET_TYPE_FILE:
|
|
440
|
+
return "TARGET_TYPE_FILE";
|
|
441
|
+
case FieldOptions_OptionTargetType.TARGET_TYPE_EXTENSION_RANGE:
|
|
442
|
+
return "TARGET_TYPE_EXTENSION_RANGE";
|
|
443
|
+
case FieldOptions_OptionTargetType.TARGET_TYPE_MESSAGE:
|
|
444
|
+
return "TARGET_TYPE_MESSAGE";
|
|
445
|
+
case FieldOptions_OptionTargetType.TARGET_TYPE_FIELD:
|
|
446
|
+
return "TARGET_TYPE_FIELD";
|
|
447
|
+
case FieldOptions_OptionTargetType.TARGET_TYPE_ONEOF:
|
|
448
|
+
return "TARGET_TYPE_ONEOF";
|
|
449
|
+
case FieldOptions_OptionTargetType.TARGET_TYPE_ENUM:
|
|
450
|
+
return "TARGET_TYPE_ENUM";
|
|
451
|
+
case FieldOptions_OptionTargetType.TARGET_TYPE_ENUM_ENTRY:
|
|
452
|
+
return "TARGET_TYPE_ENUM_ENTRY";
|
|
453
|
+
case FieldOptions_OptionTargetType.TARGET_TYPE_SERVICE:
|
|
454
|
+
return "TARGET_TYPE_SERVICE";
|
|
455
|
+
case FieldOptions_OptionTargetType.TARGET_TYPE_METHOD:
|
|
456
|
+
return "TARGET_TYPE_METHOD";
|
|
457
|
+
case FieldOptions_OptionTargetType.UNRECOGNIZED:
|
|
458
|
+
default:
|
|
459
|
+
return "UNRECOGNIZED";
|
|
460
|
+
}
|
|
461
|
+
}
|
|
462
|
+
/**
|
|
463
|
+
* Is this method side-effect-free (or safe in HTTP parlance), or idempotent,
|
|
464
|
+
* or neither? HTTP based RPC implementation may choose GET verb for safe
|
|
465
|
+
* methods, and PUT verb for idempotent methods instead of the default POST.
|
|
466
|
+
*/
|
|
467
|
+
var MethodOptions_IdempotencyLevel;
|
|
468
|
+
(function (MethodOptions_IdempotencyLevel) {
|
|
469
|
+
MethodOptions_IdempotencyLevel[MethodOptions_IdempotencyLevel["IDEMPOTENCY_UNKNOWN"] = 0] = "IDEMPOTENCY_UNKNOWN";
|
|
470
|
+
/** NO_SIDE_EFFECTS - implies idempotent */
|
|
471
|
+
MethodOptions_IdempotencyLevel[MethodOptions_IdempotencyLevel["NO_SIDE_EFFECTS"] = 1] = "NO_SIDE_EFFECTS";
|
|
472
|
+
/** IDEMPOTENT - idempotent, but may have side effects */
|
|
473
|
+
MethodOptions_IdempotencyLevel[MethodOptions_IdempotencyLevel["IDEMPOTENT"] = 2] = "IDEMPOTENT";
|
|
474
|
+
MethodOptions_IdempotencyLevel[MethodOptions_IdempotencyLevel["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
475
|
+
})(MethodOptions_IdempotencyLevel || (exports.MethodOptions_IdempotencyLevel = MethodOptions_IdempotencyLevel = {}));
|
|
476
|
+
function methodOptions_IdempotencyLevelFromJSON(object) {
|
|
477
|
+
switch (object) {
|
|
478
|
+
case 0:
|
|
479
|
+
case "IDEMPOTENCY_UNKNOWN":
|
|
480
|
+
return MethodOptions_IdempotencyLevel.IDEMPOTENCY_UNKNOWN;
|
|
481
|
+
case 1:
|
|
482
|
+
case "NO_SIDE_EFFECTS":
|
|
483
|
+
return MethodOptions_IdempotencyLevel.NO_SIDE_EFFECTS;
|
|
484
|
+
case 2:
|
|
485
|
+
case "IDEMPOTENT":
|
|
486
|
+
return MethodOptions_IdempotencyLevel.IDEMPOTENT;
|
|
487
|
+
case -1:
|
|
488
|
+
case "UNRECOGNIZED":
|
|
489
|
+
default:
|
|
490
|
+
return MethodOptions_IdempotencyLevel.UNRECOGNIZED;
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
function methodOptions_IdempotencyLevelToJSON(object) {
|
|
494
|
+
switch (object) {
|
|
495
|
+
case MethodOptions_IdempotencyLevel.IDEMPOTENCY_UNKNOWN:
|
|
496
|
+
return "IDEMPOTENCY_UNKNOWN";
|
|
497
|
+
case MethodOptions_IdempotencyLevel.NO_SIDE_EFFECTS:
|
|
498
|
+
return "NO_SIDE_EFFECTS";
|
|
499
|
+
case MethodOptions_IdempotencyLevel.IDEMPOTENT:
|
|
500
|
+
return "IDEMPOTENT";
|
|
501
|
+
case MethodOptions_IdempotencyLevel.UNRECOGNIZED:
|
|
502
|
+
default:
|
|
503
|
+
return "UNRECOGNIZED";
|
|
504
|
+
}
|
|
505
|
+
}
|
|
506
|
+
/**
|
|
507
|
+
* Represents the identified object's effect on the element in the original
|
|
508
|
+
* .proto file.
|
|
509
|
+
*/
|
|
510
|
+
var GeneratedCodeInfo_Annotation_Semantic;
|
|
511
|
+
(function (GeneratedCodeInfo_Annotation_Semantic) {
|
|
512
|
+
/** NONE - There is no effect or the effect is indescribable. */
|
|
513
|
+
GeneratedCodeInfo_Annotation_Semantic[GeneratedCodeInfo_Annotation_Semantic["NONE"] = 0] = "NONE";
|
|
514
|
+
/** SET - The element is set or otherwise mutated. */
|
|
515
|
+
GeneratedCodeInfo_Annotation_Semantic[GeneratedCodeInfo_Annotation_Semantic["SET"] = 1] = "SET";
|
|
516
|
+
/** ALIAS - An alias to the element is returned. */
|
|
517
|
+
GeneratedCodeInfo_Annotation_Semantic[GeneratedCodeInfo_Annotation_Semantic["ALIAS"] = 2] = "ALIAS";
|
|
518
|
+
GeneratedCodeInfo_Annotation_Semantic[GeneratedCodeInfo_Annotation_Semantic["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
519
|
+
})(GeneratedCodeInfo_Annotation_Semantic || (exports.GeneratedCodeInfo_Annotation_Semantic = GeneratedCodeInfo_Annotation_Semantic = {}));
|
|
520
|
+
function generatedCodeInfo_Annotation_SemanticFromJSON(object) {
|
|
521
|
+
switch (object) {
|
|
522
|
+
case 0:
|
|
523
|
+
case "NONE":
|
|
524
|
+
return GeneratedCodeInfo_Annotation_Semantic.NONE;
|
|
525
|
+
case 1:
|
|
526
|
+
case "SET":
|
|
527
|
+
return GeneratedCodeInfo_Annotation_Semantic.SET;
|
|
528
|
+
case 2:
|
|
529
|
+
case "ALIAS":
|
|
530
|
+
return GeneratedCodeInfo_Annotation_Semantic.ALIAS;
|
|
531
|
+
case -1:
|
|
532
|
+
case "UNRECOGNIZED":
|
|
533
|
+
default:
|
|
534
|
+
return GeneratedCodeInfo_Annotation_Semantic.UNRECOGNIZED;
|
|
535
|
+
}
|
|
536
|
+
}
|
|
537
|
+
function generatedCodeInfo_Annotation_SemanticToJSON(object) {
|
|
538
|
+
switch (object) {
|
|
539
|
+
case GeneratedCodeInfo_Annotation_Semantic.NONE:
|
|
540
|
+
return "NONE";
|
|
541
|
+
case GeneratedCodeInfo_Annotation_Semantic.SET:
|
|
542
|
+
return "SET";
|
|
543
|
+
case GeneratedCodeInfo_Annotation_Semantic.ALIAS:
|
|
544
|
+
return "ALIAS";
|
|
545
|
+
case GeneratedCodeInfo_Annotation_Semantic.UNRECOGNIZED:
|
|
546
|
+
default:
|
|
547
|
+
return "UNRECOGNIZED";
|
|
548
|
+
}
|
|
549
|
+
}
|
|
296
550
|
function createBaseFileDescriptorSet() {
|
|
297
551
|
return { file: [] };
|
|
298
552
|
}
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
553
|
+
var FileDescriptorSet;
|
|
554
|
+
(function (FileDescriptorSet) {
|
|
555
|
+
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
556
|
+
var _a;
|
|
557
|
+
for (const v of (_a = message.file) !== null && _a !== void 0 ? _a : []) {
|
|
558
|
+
FileDescriptorProto.encode(v, writer.uint32(10).fork()).ldelim();
|
|
303
559
|
}
|
|
304
560
|
return writer;
|
|
305
|
-
}
|
|
306
|
-
|
|
561
|
+
}
|
|
562
|
+
FileDescriptorSet.encode = encode;
|
|
563
|
+
function decode(input, length) {
|
|
307
564
|
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
308
565
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
309
566
|
const message = createBaseFileDescriptorSet();
|
|
@@ -311,42 +568,47 @@ exports.FileDescriptorSet = {
|
|
|
311
568
|
const tag = reader.uint32();
|
|
312
569
|
switch (tag >>> 3) {
|
|
313
570
|
case 1:
|
|
314
|
-
if (tag
|
|
571
|
+
if (tag !== 10) {
|
|
315
572
|
break;
|
|
316
573
|
}
|
|
317
|
-
message.file.push(
|
|
574
|
+
message.file.push(FileDescriptorProto.decode(reader, reader.uint32()));
|
|
318
575
|
continue;
|
|
319
576
|
}
|
|
320
|
-
if ((tag & 7)
|
|
577
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
321
578
|
break;
|
|
322
579
|
}
|
|
323
580
|
reader.skipType(tag & 7);
|
|
324
581
|
}
|
|
325
582
|
return message;
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
583
|
+
}
|
|
584
|
+
FileDescriptorSet.decode = decode;
|
|
585
|
+
function fromJSON(object) {
|
|
586
|
+
return { file: Array.isArray(object === null || object === void 0 ? void 0 : object.file) ? object.file.map((e) => FileDescriptorProto.fromJSON(e)) : [] };
|
|
587
|
+
}
|
|
588
|
+
FileDescriptorSet.fromJSON = fromJSON;
|
|
589
|
+
function toJSON(message) {
|
|
331
590
|
const obj = {};
|
|
332
591
|
if (message.file) {
|
|
333
|
-
obj.file = message.file.map((e) => e ?
|
|
592
|
+
obj.file = message.file.map((e) => e ? FileDescriptorProto.toJSON(e) : undefined);
|
|
334
593
|
}
|
|
335
594
|
else {
|
|
336
595
|
obj.file = [];
|
|
337
596
|
}
|
|
338
597
|
return obj;
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
598
|
+
}
|
|
599
|
+
FileDescriptorSet.toJSON = toJSON;
|
|
600
|
+
function create(base) {
|
|
601
|
+
return FileDescriptorSet.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
602
|
+
}
|
|
603
|
+
FileDescriptorSet.create = create;
|
|
604
|
+
function fromPartial(object) {
|
|
344
605
|
var _a;
|
|
345
606
|
const message = createBaseFileDescriptorSet();
|
|
346
|
-
message.file = ((_a = object.file) === null || _a === void 0 ? void 0 : _a.map((e) =>
|
|
607
|
+
message.file = ((_a = object.file) === null || _a === void 0 ? void 0 : _a.map((e) => FileDescriptorProto.fromPartial(e))) || [];
|
|
347
608
|
return message;
|
|
348
|
-
}
|
|
349
|
-
|
|
609
|
+
}
|
|
610
|
+
FileDescriptorSet.fromPartial = fromPartial;
|
|
611
|
+
})(FileDescriptorSet || (exports.FileDescriptorSet = FileDescriptorSet = {}));
|
|
350
612
|
function createBaseFileDescriptorProto() {
|
|
351
613
|
return {
|
|
352
614
|
name: "",
|
|
@@ -361,53 +623,60 @@ function createBaseFileDescriptorProto() {
|
|
|
361
623
|
options: undefined,
|
|
362
624
|
sourceCodeInfo: undefined,
|
|
363
625
|
syntax: "",
|
|
626
|
+
edition: "",
|
|
364
627
|
};
|
|
365
628
|
}
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
629
|
+
var FileDescriptorProto;
|
|
630
|
+
(function (FileDescriptorProto) {
|
|
631
|
+
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
632
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
633
|
+
if (message.name !== undefined && message.name !== "") {
|
|
369
634
|
writer.uint32(10).string(message.name);
|
|
370
635
|
}
|
|
371
|
-
if (message.package !== "") {
|
|
636
|
+
if (message.package !== undefined && message.package !== "") {
|
|
372
637
|
writer.uint32(18).string(message.package);
|
|
373
638
|
}
|
|
374
|
-
for (const v of message.dependency) {
|
|
639
|
+
for (const v of (_a = message.dependency) !== null && _a !== void 0 ? _a : []) {
|
|
375
640
|
writer.uint32(26).string(v);
|
|
376
641
|
}
|
|
377
642
|
writer.uint32(82).fork();
|
|
378
|
-
for (const v of message.publicDependency) {
|
|
643
|
+
for (const v of (_b = message.publicDependency) !== null && _b !== void 0 ? _b : []) {
|
|
379
644
|
writer.int32(v);
|
|
380
645
|
}
|
|
381
646
|
writer.ldelim();
|
|
382
647
|
writer.uint32(90).fork();
|
|
383
|
-
for (const v of message.weakDependency) {
|
|
648
|
+
for (const v of (_c = message.weakDependency) !== null && _c !== void 0 ? _c : []) {
|
|
384
649
|
writer.int32(v);
|
|
385
650
|
}
|
|
386
651
|
writer.ldelim();
|
|
387
|
-
for (const v of message.messageType) {
|
|
388
|
-
|
|
652
|
+
for (const v of (_d = message.messageType) !== null && _d !== void 0 ? _d : []) {
|
|
653
|
+
DescriptorProto.encode(v, writer.uint32(34).fork()).ldelim();
|
|
389
654
|
}
|
|
390
|
-
for (const v of message.enumType) {
|
|
391
|
-
|
|
655
|
+
for (const v of (_e = message.enumType) !== null && _e !== void 0 ? _e : []) {
|
|
656
|
+
EnumDescriptorProto.encode(v, writer.uint32(42).fork()).ldelim();
|
|
392
657
|
}
|
|
393
|
-
for (const v of message.service) {
|
|
394
|
-
|
|
658
|
+
for (const v of (_f = message.service) !== null && _f !== void 0 ? _f : []) {
|
|
659
|
+
ServiceDescriptorProto.encode(v, writer.uint32(50).fork()).ldelim();
|
|
395
660
|
}
|
|
396
|
-
for (const v of message.extension) {
|
|
397
|
-
|
|
661
|
+
for (const v of (_g = message.extension) !== null && _g !== void 0 ? _g : []) {
|
|
662
|
+
FieldDescriptorProto.encode(v, writer.uint32(58).fork()).ldelim();
|
|
398
663
|
}
|
|
399
664
|
if (message.options !== undefined) {
|
|
400
|
-
|
|
665
|
+
FileOptions.encode(message.options, writer.uint32(66).fork()).ldelim();
|
|
401
666
|
}
|
|
402
667
|
if (message.sourceCodeInfo !== undefined) {
|
|
403
|
-
|
|
668
|
+
SourceCodeInfo.encode(message.sourceCodeInfo, writer.uint32(74).fork()).ldelim();
|
|
404
669
|
}
|
|
405
|
-
if (message.syntax !== "") {
|
|
670
|
+
if (message.syntax !== undefined && message.syntax !== "") {
|
|
406
671
|
writer.uint32(98).string(message.syntax);
|
|
407
672
|
}
|
|
673
|
+
if (message.edition !== undefined && message.edition !== "") {
|
|
674
|
+
writer.uint32(106).string(message.edition);
|
|
675
|
+
}
|
|
408
676
|
return writer;
|
|
409
|
-
}
|
|
410
|
-
|
|
677
|
+
}
|
|
678
|
+
FileDescriptorProto.encode = encode;
|
|
679
|
+
function decode(input, length) {
|
|
411
680
|
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
412
681
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
413
682
|
const message = createBaseFileDescriptorProto();
|
|
@@ -415,29 +684,29 @@ exports.FileDescriptorProto = {
|
|
|
415
684
|
const tag = reader.uint32();
|
|
416
685
|
switch (tag >>> 3) {
|
|
417
686
|
case 1:
|
|
418
|
-
if (tag
|
|
687
|
+
if (tag !== 10) {
|
|
419
688
|
break;
|
|
420
689
|
}
|
|
421
690
|
message.name = reader.string();
|
|
422
691
|
continue;
|
|
423
692
|
case 2:
|
|
424
|
-
if (tag
|
|
693
|
+
if (tag !== 18) {
|
|
425
694
|
break;
|
|
426
695
|
}
|
|
427
696
|
message.package = reader.string();
|
|
428
697
|
continue;
|
|
429
698
|
case 3:
|
|
430
|
-
if (tag
|
|
699
|
+
if (tag !== 26) {
|
|
431
700
|
break;
|
|
432
701
|
}
|
|
433
702
|
message.dependency.push(reader.string());
|
|
434
703
|
continue;
|
|
435
704
|
case 10:
|
|
436
|
-
if (tag
|
|
705
|
+
if (tag === 80) {
|
|
437
706
|
message.publicDependency.push(reader.int32());
|
|
438
707
|
continue;
|
|
439
708
|
}
|
|
440
|
-
if (tag
|
|
709
|
+
if (tag === 82) {
|
|
441
710
|
const end2 = reader.uint32() + reader.pos;
|
|
442
711
|
while (reader.pos < end2) {
|
|
443
712
|
message.publicDependency.push(reader.int32());
|
|
@@ -446,11 +715,11 @@ exports.FileDescriptorProto = {
|
|
|
446
715
|
}
|
|
447
716
|
break;
|
|
448
717
|
case 11:
|
|
449
|
-
if (tag
|
|
718
|
+
if (tag === 88) {
|
|
450
719
|
message.weakDependency.push(reader.int32());
|
|
451
720
|
continue;
|
|
452
721
|
}
|
|
453
|
-
if (tag
|
|
722
|
+
if (tag === 90) {
|
|
454
723
|
const end2 = reader.uint32() + reader.pos;
|
|
455
724
|
while (reader.pos < end2) {
|
|
456
725
|
message.weakDependency.push(reader.int32());
|
|
@@ -459,56 +728,63 @@ exports.FileDescriptorProto = {
|
|
|
459
728
|
}
|
|
460
729
|
break;
|
|
461
730
|
case 4:
|
|
462
|
-
if (tag
|
|
731
|
+
if (tag !== 34) {
|
|
463
732
|
break;
|
|
464
733
|
}
|
|
465
|
-
message.messageType.push(
|
|
734
|
+
message.messageType.push(DescriptorProto.decode(reader, reader.uint32()));
|
|
466
735
|
continue;
|
|
467
736
|
case 5:
|
|
468
|
-
if (tag
|
|
737
|
+
if (tag !== 42) {
|
|
469
738
|
break;
|
|
470
739
|
}
|
|
471
|
-
message.enumType.push(
|
|
740
|
+
message.enumType.push(EnumDescriptorProto.decode(reader, reader.uint32()));
|
|
472
741
|
continue;
|
|
473
742
|
case 6:
|
|
474
|
-
if (tag
|
|
743
|
+
if (tag !== 50) {
|
|
475
744
|
break;
|
|
476
745
|
}
|
|
477
|
-
message.service.push(
|
|
746
|
+
message.service.push(ServiceDescriptorProto.decode(reader, reader.uint32()));
|
|
478
747
|
continue;
|
|
479
748
|
case 7:
|
|
480
|
-
if (tag
|
|
749
|
+
if (tag !== 58) {
|
|
481
750
|
break;
|
|
482
751
|
}
|
|
483
|
-
message.extension.push(
|
|
752
|
+
message.extension.push(FieldDescriptorProto.decode(reader, reader.uint32()));
|
|
484
753
|
continue;
|
|
485
754
|
case 8:
|
|
486
|
-
if (tag
|
|
755
|
+
if (tag !== 66) {
|
|
487
756
|
break;
|
|
488
757
|
}
|
|
489
|
-
message.options =
|
|
758
|
+
message.options = FileOptions.decode(reader, reader.uint32());
|
|
490
759
|
continue;
|
|
491
760
|
case 9:
|
|
492
|
-
if (tag
|
|
761
|
+
if (tag !== 74) {
|
|
493
762
|
break;
|
|
494
763
|
}
|
|
495
|
-
message.sourceCodeInfo =
|
|
764
|
+
message.sourceCodeInfo = SourceCodeInfo.decode(reader, reader.uint32());
|
|
496
765
|
continue;
|
|
497
766
|
case 12:
|
|
498
|
-
if (tag
|
|
767
|
+
if (tag !== 98) {
|
|
499
768
|
break;
|
|
500
769
|
}
|
|
501
770
|
message.syntax = reader.string();
|
|
502
771
|
continue;
|
|
772
|
+
case 13:
|
|
773
|
+
if (tag !== 106) {
|
|
774
|
+
break;
|
|
775
|
+
}
|
|
776
|
+
message.edition = reader.string();
|
|
777
|
+
continue;
|
|
503
778
|
}
|
|
504
|
-
if ((tag & 7)
|
|
779
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
505
780
|
break;
|
|
506
781
|
}
|
|
507
782
|
reader.skipType(tag & 7);
|
|
508
783
|
}
|
|
509
784
|
return message;
|
|
510
|
-
}
|
|
511
|
-
|
|
785
|
+
}
|
|
786
|
+
FileDescriptorProto.decode = decode;
|
|
787
|
+
function fromJSON(object) {
|
|
512
788
|
return {
|
|
513
789
|
name: isSet(object.name) ? String(object.name) : "",
|
|
514
790
|
package: isSet(object.package) ? String(object.package) : "",
|
|
@@ -518,19 +794,21 @@ exports.FileDescriptorProto = {
|
|
|
518
794
|
: [],
|
|
519
795
|
weakDependency: Array.isArray(object === null || object === void 0 ? void 0 : object.weakDependency) ? object.weakDependency.map((e) => Number(e)) : [],
|
|
520
796
|
messageType: Array.isArray(object === null || object === void 0 ? void 0 : object.messageType)
|
|
521
|
-
? object.messageType.map((e) =>
|
|
797
|
+
? object.messageType.map((e) => DescriptorProto.fromJSON(e))
|
|
522
798
|
: [],
|
|
523
|
-
enumType: Array.isArray(object === null || object === void 0 ? void 0 : object.enumType) ? object.enumType.map((e) =>
|
|
524
|
-
service: Array.isArray(object === null || object === void 0 ? void 0 : object.service) ? object.service.map((e) =>
|
|
799
|
+
enumType: Array.isArray(object === null || object === void 0 ? void 0 : object.enumType) ? object.enumType.map((e) => EnumDescriptorProto.fromJSON(e)) : [],
|
|
800
|
+
service: Array.isArray(object === null || object === void 0 ? void 0 : object.service) ? object.service.map((e) => ServiceDescriptorProto.fromJSON(e)) : [],
|
|
525
801
|
extension: Array.isArray(object === null || object === void 0 ? void 0 : object.extension)
|
|
526
|
-
? object.extension.map((e) =>
|
|
802
|
+
? object.extension.map((e) => FieldDescriptorProto.fromJSON(e))
|
|
527
803
|
: [],
|
|
528
|
-
options: isSet(object.options) ?
|
|
529
|
-
sourceCodeInfo: isSet(object.sourceCodeInfo) ?
|
|
804
|
+
options: isSet(object.options) ? FileOptions.fromJSON(object.options) : undefined,
|
|
805
|
+
sourceCodeInfo: isSet(object.sourceCodeInfo) ? SourceCodeInfo.fromJSON(object.sourceCodeInfo) : undefined,
|
|
530
806
|
syntax: isSet(object.syntax) ? String(object.syntax) : "",
|
|
807
|
+
edition: isSet(object.edition) ? String(object.edition) : "",
|
|
531
808
|
};
|
|
532
|
-
}
|
|
533
|
-
|
|
809
|
+
}
|
|
810
|
+
FileDescriptorProto.fromJSON = fromJSON;
|
|
811
|
+
function toJSON(message) {
|
|
534
812
|
const obj = {};
|
|
535
813
|
message.name !== undefined && (obj.name = message.name);
|
|
536
814
|
message.package !== undefined && (obj.package = message.package);
|
|
@@ -553,60 +831,66 @@ exports.FileDescriptorProto = {
|
|
|
553
831
|
obj.weakDependency = [];
|
|
554
832
|
}
|
|
555
833
|
if (message.messageType) {
|
|
556
|
-
obj.messageType = message.messageType.map((e) => e ?
|
|
834
|
+
obj.messageType = message.messageType.map((e) => e ? DescriptorProto.toJSON(e) : undefined);
|
|
557
835
|
}
|
|
558
836
|
else {
|
|
559
837
|
obj.messageType = [];
|
|
560
838
|
}
|
|
561
839
|
if (message.enumType) {
|
|
562
|
-
obj.enumType = message.enumType.map((e) => e ?
|
|
840
|
+
obj.enumType = message.enumType.map((e) => e ? EnumDescriptorProto.toJSON(e) : undefined);
|
|
563
841
|
}
|
|
564
842
|
else {
|
|
565
843
|
obj.enumType = [];
|
|
566
844
|
}
|
|
567
845
|
if (message.service) {
|
|
568
|
-
obj.service = message.service.map((e) => e ?
|
|
846
|
+
obj.service = message.service.map((e) => e ? ServiceDescriptorProto.toJSON(e) : undefined);
|
|
569
847
|
}
|
|
570
848
|
else {
|
|
571
849
|
obj.service = [];
|
|
572
850
|
}
|
|
573
851
|
if (message.extension) {
|
|
574
|
-
obj.extension = message.extension.map((e) => e ?
|
|
852
|
+
obj.extension = message.extension.map((e) => e ? FieldDescriptorProto.toJSON(e) : undefined);
|
|
575
853
|
}
|
|
576
854
|
else {
|
|
577
855
|
obj.extension = [];
|
|
578
856
|
}
|
|
579
|
-
message.options !== undefined && (obj.options = message.options ?
|
|
857
|
+
message.options !== undefined && (obj.options = message.options ? FileOptions.toJSON(message.options) : undefined);
|
|
580
858
|
message.sourceCodeInfo !== undefined &&
|
|
581
|
-
(obj.sourceCodeInfo = message.sourceCodeInfo ?
|
|
859
|
+
(obj.sourceCodeInfo = message.sourceCodeInfo ? SourceCodeInfo.toJSON(message.sourceCodeInfo) : undefined);
|
|
582
860
|
message.syntax !== undefined && (obj.syntax = message.syntax);
|
|
861
|
+
message.edition !== undefined && (obj.edition = message.edition);
|
|
583
862
|
return obj;
|
|
584
|
-
}
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
863
|
+
}
|
|
864
|
+
FileDescriptorProto.toJSON = toJSON;
|
|
865
|
+
function create(base) {
|
|
866
|
+
return FileDescriptorProto.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
867
|
+
}
|
|
868
|
+
FileDescriptorProto.create = create;
|
|
869
|
+
function fromPartial(object) {
|
|
870
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
871
|
+
var _h, _j, _k, _l;
|
|
590
872
|
const message = createBaseFileDescriptorProto();
|
|
591
|
-
message.name = (
|
|
592
|
-
message.package = (
|
|
593
|
-
message.dependency = ((
|
|
594
|
-
message.publicDependency = ((
|
|
595
|
-
message.weakDependency = ((
|
|
596
|
-
message.messageType = ((
|
|
597
|
-
message.enumType = ((
|
|
598
|
-
message.service = ((
|
|
599
|
-
message.extension = ((
|
|
873
|
+
message.name = (_h = object.name) !== null && _h !== void 0 ? _h : "";
|
|
874
|
+
message.package = (_j = object.package) !== null && _j !== void 0 ? _j : "";
|
|
875
|
+
message.dependency = ((_a = object.dependency) === null || _a === void 0 ? void 0 : _a.map((e) => e)) || [];
|
|
876
|
+
message.publicDependency = ((_b = object.publicDependency) === null || _b === void 0 ? void 0 : _b.map((e) => e)) || [];
|
|
877
|
+
message.weakDependency = ((_c = object.weakDependency) === null || _c === void 0 ? void 0 : _c.map((e) => e)) || [];
|
|
878
|
+
message.messageType = ((_d = object.messageType) === null || _d === void 0 ? void 0 : _d.map((e) => DescriptorProto.fromPartial(e))) || [];
|
|
879
|
+
message.enumType = ((_e = object.enumType) === null || _e === void 0 ? void 0 : _e.map((e) => EnumDescriptorProto.fromPartial(e))) || [];
|
|
880
|
+
message.service = ((_f = object.service) === null || _f === void 0 ? void 0 : _f.map((e) => ServiceDescriptorProto.fromPartial(e))) || [];
|
|
881
|
+
message.extension = ((_g = object.extension) === null || _g === void 0 ? void 0 : _g.map((e) => FieldDescriptorProto.fromPartial(e))) || [];
|
|
600
882
|
message.options = (object.options !== undefined && object.options !== null)
|
|
601
|
-
?
|
|
883
|
+
? FileOptions.fromPartial(object.options)
|
|
602
884
|
: undefined;
|
|
603
885
|
message.sourceCodeInfo = (object.sourceCodeInfo !== undefined && object.sourceCodeInfo !== null)
|
|
604
|
-
?
|
|
886
|
+
? SourceCodeInfo.fromPartial(object.sourceCodeInfo)
|
|
605
887
|
: undefined;
|
|
606
888
|
message.syntax = (_k = object.syntax) !== null && _k !== void 0 ? _k : "";
|
|
889
|
+
message.edition = (_l = object.edition) !== null && _l !== void 0 ? _l : "";
|
|
607
890
|
return message;
|
|
608
|
-
}
|
|
609
|
-
|
|
891
|
+
}
|
|
892
|
+
FileDescriptorProto.fromPartial = fromPartial;
|
|
893
|
+
})(FileDescriptorProto || (exports.FileDescriptorProto = FileDescriptorProto = {}));
|
|
610
894
|
function createBaseDescriptorProto() {
|
|
611
895
|
return {
|
|
612
896
|
name: "",
|
|
@@ -621,41 +905,44 @@ function createBaseDescriptorProto() {
|
|
|
621
905
|
reservedName: [],
|
|
622
906
|
};
|
|
623
907
|
}
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
908
|
+
var DescriptorProto;
|
|
909
|
+
(function (DescriptorProto) {
|
|
910
|
+
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
911
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
912
|
+
if (message.name !== undefined && message.name !== "") {
|
|
627
913
|
writer.uint32(10).string(message.name);
|
|
628
914
|
}
|
|
629
|
-
for (const v of message.field) {
|
|
630
|
-
|
|
915
|
+
for (const v of (_a = message.field) !== null && _a !== void 0 ? _a : []) {
|
|
916
|
+
FieldDescriptorProto.encode(v, writer.uint32(18).fork()).ldelim();
|
|
631
917
|
}
|
|
632
|
-
for (const v of message.extension) {
|
|
633
|
-
|
|
918
|
+
for (const v of (_b = message.extension) !== null && _b !== void 0 ? _b : []) {
|
|
919
|
+
FieldDescriptorProto.encode(v, writer.uint32(50).fork()).ldelim();
|
|
634
920
|
}
|
|
635
|
-
for (const v of message.nestedType) {
|
|
636
|
-
|
|
921
|
+
for (const v of (_c = message.nestedType) !== null && _c !== void 0 ? _c : []) {
|
|
922
|
+
DescriptorProto.encode(v, writer.uint32(26).fork()).ldelim();
|
|
637
923
|
}
|
|
638
|
-
for (const v of message.enumType) {
|
|
639
|
-
|
|
924
|
+
for (const v of (_d = message.enumType) !== null && _d !== void 0 ? _d : []) {
|
|
925
|
+
EnumDescriptorProto.encode(v, writer.uint32(34).fork()).ldelim();
|
|
640
926
|
}
|
|
641
|
-
for (const v of message.extensionRange) {
|
|
642
|
-
|
|
927
|
+
for (const v of (_e = message.extensionRange) !== null && _e !== void 0 ? _e : []) {
|
|
928
|
+
DescriptorProto_ExtensionRange.encode(v, writer.uint32(42).fork()).ldelim();
|
|
643
929
|
}
|
|
644
|
-
for (const v of message.oneofDecl) {
|
|
645
|
-
|
|
930
|
+
for (const v of (_f = message.oneofDecl) !== null && _f !== void 0 ? _f : []) {
|
|
931
|
+
OneofDescriptorProto.encode(v, writer.uint32(66).fork()).ldelim();
|
|
646
932
|
}
|
|
647
933
|
if (message.options !== undefined) {
|
|
648
|
-
|
|
934
|
+
MessageOptions.encode(message.options, writer.uint32(58).fork()).ldelim();
|
|
649
935
|
}
|
|
650
|
-
for (const v of message.reservedRange) {
|
|
651
|
-
|
|
936
|
+
for (const v of (_g = message.reservedRange) !== null && _g !== void 0 ? _g : []) {
|
|
937
|
+
DescriptorProto_ReservedRange.encode(v, writer.uint32(74).fork()).ldelim();
|
|
652
938
|
}
|
|
653
|
-
for (const v of message.reservedName) {
|
|
939
|
+
for (const v of (_h = message.reservedName) !== null && _h !== void 0 ? _h : []) {
|
|
654
940
|
writer.uint32(82).string(v);
|
|
655
941
|
}
|
|
656
942
|
return writer;
|
|
657
|
-
}
|
|
658
|
-
|
|
943
|
+
}
|
|
944
|
+
DescriptorProto.encode = encode;
|
|
945
|
+
function decode(input, length) {
|
|
659
946
|
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
660
947
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
661
948
|
const message = createBaseDescriptorProto();
|
|
@@ -663,140 +950,142 @@ exports.DescriptorProto = {
|
|
|
663
950
|
const tag = reader.uint32();
|
|
664
951
|
switch (tag >>> 3) {
|
|
665
952
|
case 1:
|
|
666
|
-
if (tag
|
|
953
|
+
if (tag !== 10) {
|
|
667
954
|
break;
|
|
668
955
|
}
|
|
669
956
|
message.name = reader.string();
|
|
670
957
|
continue;
|
|
671
958
|
case 2:
|
|
672
|
-
if (tag
|
|
959
|
+
if (tag !== 18) {
|
|
673
960
|
break;
|
|
674
961
|
}
|
|
675
|
-
message.field.push(
|
|
962
|
+
message.field.push(FieldDescriptorProto.decode(reader, reader.uint32()));
|
|
676
963
|
continue;
|
|
677
964
|
case 6:
|
|
678
|
-
if (tag
|
|
965
|
+
if (tag !== 50) {
|
|
679
966
|
break;
|
|
680
967
|
}
|
|
681
|
-
message.extension.push(
|
|
968
|
+
message.extension.push(FieldDescriptorProto.decode(reader, reader.uint32()));
|
|
682
969
|
continue;
|
|
683
970
|
case 3:
|
|
684
|
-
if (tag
|
|
971
|
+
if (tag !== 26) {
|
|
685
972
|
break;
|
|
686
973
|
}
|
|
687
|
-
message.nestedType.push(
|
|
974
|
+
message.nestedType.push(DescriptorProto.decode(reader, reader.uint32()));
|
|
688
975
|
continue;
|
|
689
976
|
case 4:
|
|
690
|
-
if (tag
|
|
977
|
+
if (tag !== 34) {
|
|
691
978
|
break;
|
|
692
979
|
}
|
|
693
|
-
message.enumType.push(
|
|
980
|
+
message.enumType.push(EnumDescriptorProto.decode(reader, reader.uint32()));
|
|
694
981
|
continue;
|
|
695
982
|
case 5:
|
|
696
|
-
if (tag
|
|
983
|
+
if (tag !== 42) {
|
|
697
984
|
break;
|
|
698
985
|
}
|
|
699
|
-
message.extensionRange.push(
|
|
986
|
+
message.extensionRange.push(DescriptorProto_ExtensionRange.decode(reader, reader.uint32()));
|
|
700
987
|
continue;
|
|
701
988
|
case 8:
|
|
702
|
-
if (tag
|
|
989
|
+
if (tag !== 66) {
|
|
703
990
|
break;
|
|
704
991
|
}
|
|
705
|
-
message.oneofDecl.push(
|
|
992
|
+
message.oneofDecl.push(OneofDescriptorProto.decode(reader, reader.uint32()));
|
|
706
993
|
continue;
|
|
707
994
|
case 7:
|
|
708
|
-
if (tag
|
|
995
|
+
if (tag !== 58) {
|
|
709
996
|
break;
|
|
710
997
|
}
|
|
711
|
-
message.options =
|
|
998
|
+
message.options = MessageOptions.decode(reader, reader.uint32());
|
|
712
999
|
continue;
|
|
713
1000
|
case 9:
|
|
714
|
-
if (tag
|
|
1001
|
+
if (tag !== 74) {
|
|
715
1002
|
break;
|
|
716
1003
|
}
|
|
717
|
-
message.reservedRange.push(
|
|
1004
|
+
message.reservedRange.push(DescriptorProto_ReservedRange.decode(reader, reader.uint32()));
|
|
718
1005
|
continue;
|
|
719
1006
|
case 10:
|
|
720
|
-
if (tag
|
|
1007
|
+
if (tag !== 82) {
|
|
721
1008
|
break;
|
|
722
1009
|
}
|
|
723
1010
|
message.reservedName.push(reader.string());
|
|
724
1011
|
continue;
|
|
725
1012
|
}
|
|
726
|
-
if ((tag & 7)
|
|
1013
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
727
1014
|
break;
|
|
728
1015
|
}
|
|
729
1016
|
reader.skipType(tag & 7);
|
|
730
1017
|
}
|
|
731
1018
|
return message;
|
|
732
|
-
}
|
|
733
|
-
|
|
1019
|
+
}
|
|
1020
|
+
DescriptorProto.decode = decode;
|
|
1021
|
+
function fromJSON(object) {
|
|
734
1022
|
return {
|
|
735
1023
|
name: isSet(object.name) ? String(object.name) : "",
|
|
736
|
-
field: Array.isArray(object === null || object === void 0 ? void 0 : object.field) ? object.field.map((e) =>
|
|
1024
|
+
field: Array.isArray(object === null || object === void 0 ? void 0 : object.field) ? object.field.map((e) => FieldDescriptorProto.fromJSON(e)) : [],
|
|
737
1025
|
extension: Array.isArray(object === null || object === void 0 ? void 0 : object.extension)
|
|
738
|
-
? object.extension.map((e) =>
|
|
1026
|
+
? object.extension.map((e) => FieldDescriptorProto.fromJSON(e))
|
|
739
1027
|
: [],
|
|
740
1028
|
nestedType: Array.isArray(object === null || object === void 0 ? void 0 : object.nestedType)
|
|
741
|
-
? object.nestedType.map((e) =>
|
|
1029
|
+
? object.nestedType.map((e) => DescriptorProto.fromJSON(e))
|
|
742
1030
|
: [],
|
|
743
|
-
enumType: Array.isArray(object === null || object === void 0 ? void 0 : object.enumType) ? object.enumType.map((e) =>
|
|
1031
|
+
enumType: Array.isArray(object === null || object === void 0 ? void 0 : object.enumType) ? object.enumType.map((e) => EnumDescriptorProto.fromJSON(e)) : [],
|
|
744
1032
|
extensionRange: Array.isArray(object === null || object === void 0 ? void 0 : object.extensionRange)
|
|
745
|
-
? object.extensionRange.map((e) =>
|
|
1033
|
+
? object.extensionRange.map((e) => DescriptorProto_ExtensionRange.fromJSON(e))
|
|
746
1034
|
: [],
|
|
747
1035
|
oneofDecl: Array.isArray(object === null || object === void 0 ? void 0 : object.oneofDecl)
|
|
748
|
-
? object.oneofDecl.map((e) =>
|
|
1036
|
+
? object.oneofDecl.map((e) => OneofDescriptorProto.fromJSON(e))
|
|
749
1037
|
: [],
|
|
750
|
-
options: isSet(object.options) ?
|
|
1038
|
+
options: isSet(object.options) ? MessageOptions.fromJSON(object.options) : undefined,
|
|
751
1039
|
reservedRange: Array.isArray(object === null || object === void 0 ? void 0 : object.reservedRange)
|
|
752
|
-
? object.reservedRange.map((e) =>
|
|
1040
|
+
? object.reservedRange.map((e) => DescriptorProto_ReservedRange.fromJSON(e))
|
|
753
1041
|
: [],
|
|
754
1042
|
reservedName: Array.isArray(object === null || object === void 0 ? void 0 : object.reservedName) ? object.reservedName.map((e) => String(e)) : [],
|
|
755
1043
|
};
|
|
756
|
-
}
|
|
757
|
-
|
|
1044
|
+
}
|
|
1045
|
+
DescriptorProto.fromJSON = fromJSON;
|
|
1046
|
+
function toJSON(message) {
|
|
758
1047
|
const obj = {};
|
|
759
1048
|
message.name !== undefined && (obj.name = message.name);
|
|
760
1049
|
if (message.field) {
|
|
761
|
-
obj.field = message.field.map((e) => e ?
|
|
1050
|
+
obj.field = message.field.map((e) => e ? FieldDescriptorProto.toJSON(e) : undefined);
|
|
762
1051
|
}
|
|
763
1052
|
else {
|
|
764
1053
|
obj.field = [];
|
|
765
1054
|
}
|
|
766
1055
|
if (message.extension) {
|
|
767
|
-
obj.extension = message.extension.map((e) => e ?
|
|
1056
|
+
obj.extension = message.extension.map((e) => e ? FieldDescriptorProto.toJSON(e) : undefined);
|
|
768
1057
|
}
|
|
769
1058
|
else {
|
|
770
1059
|
obj.extension = [];
|
|
771
1060
|
}
|
|
772
1061
|
if (message.nestedType) {
|
|
773
|
-
obj.nestedType = message.nestedType.map((e) => e ?
|
|
1062
|
+
obj.nestedType = message.nestedType.map((e) => e ? DescriptorProto.toJSON(e) : undefined);
|
|
774
1063
|
}
|
|
775
1064
|
else {
|
|
776
1065
|
obj.nestedType = [];
|
|
777
1066
|
}
|
|
778
1067
|
if (message.enumType) {
|
|
779
|
-
obj.enumType = message.enumType.map((e) => e ?
|
|
1068
|
+
obj.enumType = message.enumType.map((e) => e ? EnumDescriptorProto.toJSON(e) : undefined);
|
|
780
1069
|
}
|
|
781
1070
|
else {
|
|
782
1071
|
obj.enumType = [];
|
|
783
1072
|
}
|
|
784
1073
|
if (message.extensionRange) {
|
|
785
|
-
obj.extensionRange = message.extensionRange.map((e) => e ?
|
|
1074
|
+
obj.extensionRange = message.extensionRange.map((e) => e ? DescriptorProto_ExtensionRange.toJSON(e) : undefined);
|
|
786
1075
|
}
|
|
787
1076
|
else {
|
|
788
1077
|
obj.extensionRange = [];
|
|
789
1078
|
}
|
|
790
1079
|
if (message.oneofDecl) {
|
|
791
|
-
obj.oneofDecl = message.oneofDecl.map((e) => e ?
|
|
1080
|
+
obj.oneofDecl = message.oneofDecl.map((e) => e ? OneofDescriptorProto.toJSON(e) : undefined);
|
|
792
1081
|
}
|
|
793
1082
|
else {
|
|
794
1083
|
obj.oneofDecl = [];
|
|
795
1084
|
}
|
|
796
1085
|
message.options !== undefined &&
|
|
797
|
-
(obj.options = message.options ?
|
|
1086
|
+
(obj.options = message.options ? MessageOptions.toJSON(message.options) : undefined);
|
|
798
1087
|
if (message.reservedRange) {
|
|
799
|
-
obj.reservedRange = message.reservedRange.map((e) => e ?
|
|
1088
|
+
obj.reservedRange = message.reservedRange.map((e) => e ? DescriptorProto_ReservedRange.toJSON(e) : undefined);
|
|
800
1089
|
}
|
|
801
1090
|
else {
|
|
802
1091
|
obj.reservedRange = [];
|
|
@@ -808,42 +1097,51 @@ exports.DescriptorProto = {
|
|
|
808
1097
|
obj.reservedName = [];
|
|
809
1098
|
}
|
|
810
1099
|
return obj;
|
|
811
|
-
}
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
1100
|
+
}
|
|
1101
|
+
DescriptorProto.toJSON = toJSON;
|
|
1102
|
+
function create(base) {
|
|
1103
|
+
return DescriptorProto.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1104
|
+
}
|
|
1105
|
+
DescriptorProto.create = create;
|
|
1106
|
+
function fromPartial(object) {
|
|
1107
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1108
|
+
var _j;
|
|
817
1109
|
const message = createBaseDescriptorProto();
|
|
818
|
-
message.name = (
|
|
819
|
-
message.field = ((
|
|
820
|
-
message.extension = ((
|
|
821
|
-
message.nestedType = ((
|
|
822
|
-
message.enumType = ((
|
|
823
|
-
message.extensionRange = ((
|
|
824
|
-
message.oneofDecl = ((
|
|
1110
|
+
message.name = (_j = object.name) !== null && _j !== void 0 ? _j : "";
|
|
1111
|
+
message.field = ((_a = object.field) === null || _a === void 0 ? void 0 : _a.map((e) => FieldDescriptorProto.fromPartial(e))) || [];
|
|
1112
|
+
message.extension = ((_b = object.extension) === null || _b === void 0 ? void 0 : _b.map((e) => FieldDescriptorProto.fromPartial(e))) || [];
|
|
1113
|
+
message.nestedType = ((_c = object.nestedType) === null || _c === void 0 ? void 0 : _c.map((e) => DescriptorProto.fromPartial(e))) || [];
|
|
1114
|
+
message.enumType = ((_d = object.enumType) === null || _d === void 0 ? void 0 : _d.map((e) => EnumDescriptorProto.fromPartial(e))) || [];
|
|
1115
|
+
message.extensionRange = ((_e = object.extensionRange) === null || _e === void 0 ? void 0 : _e.map((e) => DescriptorProto_ExtensionRange.fromPartial(e))) || [];
|
|
1116
|
+
message.oneofDecl = ((_f = object.oneofDecl) === null || _f === void 0 ? void 0 : _f.map((e) => OneofDescriptorProto.fromPartial(e))) || [];
|
|
825
1117
|
message.options = (object.options !== undefined && object.options !== null)
|
|
826
|
-
?
|
|
1118
|
+
? MessageOptions.fromPartial(object.options)
|
|
827
1119
|
: undefined;
|
|
828
|
-
message.reservedRange = ((
|
|
829
|
-
message.reservedName = ((
|
|
1120
|
+
message.reservedRange = ((_g = object.reservedRange) === null || _g === void 0 ? void 0 : _g.map((e) => DescriptorProto_ReservedRange.fromPartial(e))) || [];
|
|
1121
|
+
message.reservedName = ((_h = object.reservedName) === null || _h === void 0 ? void 0 : _h.map((e) => e)) || [];
|
|
830
1122
|
return message;
|
|
831
|
-
}
|
|
832
|
-
|
|
1123
|
+
}
|
|
1124
|
+
DescriptorProto.fromPartial = fromPartial;
|
|
1125
|
+
})(DescriptorProto || (exports.DescriptorProto = DescriptorProto = {}));
|
|
833
1126
|
function createBaseDescriptorProto_ExtensionRange() {
|
|
834
|
-
return { start: 0, end: 0 };
|
|
1127
|
+
return { start: 0, end: 0, options: undefined };
|
|
835
1128
|
}
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
1129
|
+
var DescriptorProto_ExtensionRange;
|
|
1130
|
+
(function (DescriptorProto_ExtensionRange) {
|
|
1131
|
+
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1132
|
+
if (message.start !== undefined && message.start !== 0) {
|
|
839
1133
|
writer.uint32(8).int32(message.start);
|
|
840
1134
|
}
|
|
841
|
-
if (message.end !== 0) {
|
|
1135
|
+
if (message.end !== undefined && message.end !== 0) {
|
|
842
1136
|
writer.uint32(16).int32(message.end);
|
|
843
1137
|
}
|
|
1138
|
+
if (message.options !== undefined) {
|
|
1139
|
+
ExtensionRangeOptions.encode(message.options, writer.uint32(26).fork()).ldelim();
|
|
1140
|
+
}
|
|
844
1141
|
return writer;
|
|
845
|
-
}
|
|
846
|
-
|
|
1142
|
+
}
|
|
1143
|
+
DescriptorProto_ExtensionRange.encode = encode;
|
|
1144
|
+
function decode(input, length) {
|
|
847
1145
|
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
848
1146
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
849
1147
|
const message = createBaseDescriptorProto_ExtensionRange();
|
|
@@ -851,59 +1149,81 @@ exports.DescriptorProto_ExtensionRange = {
|
|
|
851
1149
|
const tag = reader.uint32();
|
|
852
1150
|
switch (tag >>> 3) {
|
|
853
1151
|
case 1:
|
|
854
|
-
if (tag
|
|
1152
|
+
if (tag !== 8) {
|
|
855
1153
|
break;
|
|
856
1154
|
}
|
|
857
1155
|
message.start = reader.int32();
|
|
858
1156
|
continue;
|
|
859
1157
|
case 2:
|
|
860
|
-
if (tag
|
|
1158
|
+
if (tag !== 16) {
|
|
861
1159
|
break;
|
|
862
1160
|
}
|
|
863
1161
|
message.end = reader.int32();
|
|
864
1162
|
continue;
|
|
1163
|
+
case 3:
|
|
1164
|
+
if (tag !== 26) {
|
|
1165
|
+
break;
|
|
1166
|
+
}
|
|
1167
|
+
message.options = ExtensionRangeOptions.decode(reader, reader.uint32());
|
|
1168
|
+
continue;
|
|
865
1169
|
}
|
|
866
|
-
if ((tag & 7)
|
|
1170
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
867
1171
|
break;
|
|
868
1172
|
}
|
|
869
1173
|
reader.skipType(tag & 7);
|
|
870
1174
|
}
|
|
871
1175
|
return message;
|
|
872
|
-
}
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
1176
|
+
}
|
|
1177
|
+
DescriptorProto_ExtensionRange.decode = decode;
|
|
1178
|
+
function fromJSON(object) {
|
|
1179
|
+
return {
|
|
1180
|
+
start: isSet(object.start) ? Number(object.start) : 0,
|
|
1181
|
+
end: isSet(object.end) ? Number(object.end) : 0,
|
|
1182
|
+
options: isSet(object.options) ? ExtensionRangeOptions.fromJSON(object.options) : undefined,
|
|
1183
|
+
};
|
|
1184
|
+
}
|
|
1185
|
+
DescriptorProto_ExtensionRange.fromJSON = fromJSON;
|
|
1186
|
+
function toJSON(message) {
|
|
877
1187
|
const obj = {};
|
|
878
1188
|
message.start !== undefined && (obj.start = Math.round(message.start));
|
|
879
1189
|
message.end !== undefined && (obj.end = Math.round(message.end));
|
|
1190
|
+
message.options !== undefined &&
|
|
1191
|
+
(obj.options = message.options ? ExtensionRangeOptions.toJSON(message.options) : undefined);
|
|
880
1192
|
return obj;
|
|
881
|
-
}
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
1193
|
+
}
|
|
1194
|
+
DescriptorProto_ExtensionRange.toJSON = toJSON;
|
|
1195
|
+
function create(base) {
|
|
1196
|
+
return DescriptorProto_ExtensionRange.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1197
|
+
}
|
|
1198
|
+
DescriptorProto_ExtensionRange.create = create;
|
|
1199
|
+
function fromPartial(object) {
|
|
886
1200
|
var _a, _b;
|
|
887
1201
|
const message = createBaseDescriptorProto_ExtensionRange();
|
|
888
1202
|
message.start = (_a = object.start) !== null && _a !== void 0 ? _a : 0;
|
|
889
1203
|
message.end = (_b = object.end) !== null && _b !== void 0 ? _b : 0;
|
|
1204
|
+
message.options = (object.options !== undefined && object.options !== null)
|
|
1205
|
+
? ExtensionRangeOptions.fromPartial(object.options)
|
|
1206
|
+
: undefined;
|
|
890
1207
|
return message;
|
|
891
|
-
}
|
|
892
|
-
|
|
1208
|
+
}
|
|
1209
|
+
DescriptorProto_ExtensionRange.fromPartial = fromPartial;
|
|
1210
|
+
})(DescriptorProto_ExtensionRange || (exports.DescriptorProto_ExtensionRange = DescriptorProto_ExtensionRange = {}));
|
|
893
1211
|
function createBaseDescriptorProto_ReservedRange() {
|
|
894
1212
|
return { start: 0, end: 0 };
|
|
895
1213
|
}
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
1214
|
+
var DescriptorProto_ReservedRange;
|
|
1215
|
+
(function (DescriptorProto_ReservedRange) {
|
|
1216
|
+
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1217
|
+
if (message.start !== undefined && message.start !== 0) {
|
|
899
1218
|
writer.uint32(8).int32(message.start);
|
|
900
1219
|
}
|
|
901
|
-
if (message.end !== 0) {
|
|
1220
|
+
if (message.end !== undefined && message.end !== 0) {
|
|
902
1221
|
writer.uint32(16).int32(message.end);
|
|
903
1222
|
}
|
|
904
1223
|
return writer;
|
|
905
|
-
}
|
|
906
|
-
|
|
1224
|
+
}
|
|
1225
|
+
DescriptorProto_ReservedRange.encode = encode;
|
|
1226
|
+
function decode(input, length) {
|
|
907
1227
|
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
908
1228
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
909
1229
|
const message = createBaseDescriptorProto_ReservedRange();
|
|
@@ -911,45 +1231,116 @@ exports.DescriptorProto_ReservedRange = {
|
|
|
911
1231
|
const tag = reader.uint32();
|
|
912
1232
|
switch (tag >>> 3) {
|
|
913
1233
|
case 1:
|
|
914
|
-
if (tag
|
|
1234
|
+
if (tag !== 8) {
|
|
915
1235
|
break;
|
|
916
1236
|
}
|
|
917
1237
|
message.start = reader.int32();
|
|
918
1238
|
continue;
|
|
919
1239
|
case 2:
|
|
920
|
-
if (tag
|
|
1240
|
+
if (tag !== 16) {
|
|
921
1241
|
break;
|
|
922
1242
|
}
|
|
923
1243
|
message.end = reader.int32();
|
|
924
1244
|
continue;
|
|
925
1245
|
}
|
|
926
|
-
if ((tag & 7)
|
|
1246
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
927
1247
|
break;
|
|
928
1248
|
}
|
|
929
1249
|
reader.skipType(tag & 7);
|
|
930
1250
|
}
|
|
931
1251
|
return message;
|
|
932
|
-
}
|
|
933
|
-
|
|
1252
|
+
}
|
|
1253
|
+
DescriptorProto_ReservedRange.decode = decode;
|
|
1254
|
+
function fromJSON(object) {
|
|
934
1255
|
return { start: isSet(object.start) ? Number(object.start) : 0, end: isSet(object.end) ? Number(object.end) : 0 };
|
|
935
|
-
}
|
|
936
|
-
|
|
1256
|
+
}
|
|
1257
|
+
DescriptorProto_ReservedRange.fromJSON = fromJSON;
|
|
1258
|
+
function toJSON(message) {
|
|
937
1259
|
const obj = {};
|
|
938
1260
|
message.start !== undefined && (obj.start = Math.round(message.start));
|
|
939
1261
|
message.end !== undefined && (obj.end = Math.round(message.end));
|
|
940
1262
|
return obj;
|
|
941
|
-
}
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
1263
|
+
}
|
|
1264
|
+
DescriptorProto_ReservedRange.toJSON = toJSON;
|
|
1265
|
+
function create(base) {
|
|
1266
|
+
return DescriptorProto_ReservedRange.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1267
|
+
}
|
|
1268
|
+
DescriptorProto_ReservedRange.create = create;
|
|
1269
|
+
function fromPartial(object) {
|
|
946
1270
|
var _a, _b;
|
|
947
1271
|
const message = createBaseDescriptorProto_ReservedRange();
|
|
948
1272
|
message.start = (_a = object.start) !== null && _a !== void 0 ? _a : 0;
|
|
949
1273
|
message.end = (_b = object.end) !== null && _b !== void 0 ? _b : 0;
|
|
950
1274
|
return message;
|
|
951
|
-
}
|
|
952
|
-
|
|
1275
|
+
}
|
|
1276
|
+
DescriptorProto_ReservedRange.fromPartial = fromPartial;
|
|
1277
|
+
})(DescriptorProto_ReservedRange || (exports.DescriptorProto_ReservedRange = DescriptorProto_ReservedRange = {}));
|
|
1278
|
+
function createBaseExtensionRangeOptions() {
|
|
1279
|
+
return { uninterpretedOption: [] };
|
|
1280
|
+
}
|
|
1281
|
+
var ExtensionRangeOptions;
|
|
1282
|
+
(function (ExtensionRangeOptions) {
|
|
1283
|
+
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1284
|
+
var _a;
|
|
1285
|
+
for (const v of (_a = message.uninterpretedOption) !== null && _a !== void 0 ? _a : []) {
|
|
1286
|
+
UninterpretedOption.encode(v, writer.uint32(7994).fork()).ldelim();
|
|
1287
|
+
}
|
|
1288
|
+
return writer;
|
|
1289
|
+
}
|
|
1290
|
+
ExtensionRangeOptions.encode = encode;
|
|
1291
|
+
function decode(input, length) {
|
|
1292
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
1293
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1294
|
+
const message = createBaseExtensionRangeOptions();
|
|
1295
|
+
while (reader.pos < end) {
|
|
1296
|
+
const tag = reader.uint32();
|
|
1297
|
+
switch (tag >>> 3) {
|
|
1298
|
+
case 999:
|
|
1299
|
+
if (tag !== 7994) {
|
|
1300
|
+
break;
|
|
1301
|
+
}
|
|
1302
|
+
message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32()));
|
|
1303
|
+
continue;
|
|
1304
|
+
}
|
|
1305
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1306
|
+
break;
|
|
1307
|
+
}
|
|
1308
|
+
reader.skipType(tag & 7);
|
|
1309
|
+
}
|
|
1310
|
+
return message;
|
|
1311
|
+
}
|
|
1312
|
+
ExtensionRangeOptions.decode = decode;
|
|
1313
|
+
function fromJSON(object) {
|
|
1314
|
+
return {
|
|
1315
|
+
uninterpretedOption: Array.isArray(object === null || object === void 0 ? void 0 : object.uninterpretedOption)
|
|
1316
|
+
? object.uninterpretedOption.map((e) => UninterpretedOption.fromJSON(e))
|
|
1317
|
+
: [],
|
|
1318
|
+
};
|
|
1319
|
+
}
|
|
1320
|
+
ExtensionRangeOptions.fromJSON = fromJSON;
|
|
1321
|
+
function toJSON(message) {
|
|
1322
|
+
const obj = {};
|
|
1323
|
+
if (message.uninterpretedOption) {
|
|
1324
|
+
obj.uninterpretedOption = message.uninterpretedOption.map((e) => e ? UninterpretedOption.toJSON(e) : undefined);
|
|
1325
|
+
}
|
|
1326
|
+
else {
|
|
1327
|
+
obj.uninterpretedOption = [];
|
|
1328
|
+
}
|
|
1329
|
+
return obj;
|
|
1330
|
+
}
|
|
1331
|
+
ExtensionRangeOptions.toJSON = toJSON;
|
|
1332
|
+
function create(base) {
|
|
1333
|
+
return ExtensionRangeOptions.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1334
|
+
}
|
|
1335
|
+
ExtensionRangeOptions.create = create;
|
|
1336
|
+
function fromPartial(object) {
|
|
1337
|
+
var _a;
|
|
1338
|
+
const message = createBaseExtensionRangeOptions();
|
|
1339
|
+
message.uninterpretedOption = ((_a = object.uninterpretedOption) === null || _a === void 0 ? void 0 : _a.map((e) => UninterpretedOption.fromPartial(e))) || [];
|
|
1340
|
+
return message;
|
|
1341
|
+
}
|
|
1342
|
+
ExtensionRangeOptions.fromPartial = fromPartial;
|
|
1343
|
+
})(ExtensionRangeOptions || (exports.ExtensionRangeOptions = ExtensionRangeOptions = {}));
|
|
953
1344
|
function createBaseFieldDescriptorProto() {
|
|
954
1345
|
return {
|
|
955
1346
|
name: "",
|
|
@@ -962,43 +1353,49 @@ function createBaseFieldDescriptorProto() {
|
|
|
962
1353
|
oneofIndex: 0,
|
|
963
1354
|
jsonName: "",
|
|
964
1355
|
options: undefined,
|
|
1356
|
+
proto3Optional: false,
|
|
965
1357
|
};
|
|
966
1358
|
}
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
1359
|
+
var FieldDescriptorProto;
|
|
1360
|
+
(function (FieldDescriptorProto) {
|
|
1361
|
+
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1362
|
+
if (message.name !== undefined && message.name !== "") {
|
|
970
1363
|
writer.uint32(10).string(message.name);
|
|
971
1364
|
}
|
|
972
|
-
if (message.number !== 0) {
|
|
1365
|
+
if (message.number !== undefined && message.number !== 0) {
|
|
973
1366
|
writer.uint32(24).int32(message.number);
|
|
974
1367
|
}
|
|
975
|
-
if (message.label !== 1) {
|
|
1368
|
+
if (message.label !== undefined && message.label !== 1) {
|
|
976
1369
|
writer.uint32(32).int32(message.label);
|
|
977
1370
|
}
|
|
978
|
-
if (message.type !== 1) {
|
|
1371
|
+
if (message.type !== undefined && message.type !== 1) {
|
|
979
1372
|
writer.uint32(40).int32(message.type);
|
|
980
1373
|
}
|
|
981
|
-
if (message.typeName !== "") {
|
|
1374
|
+
if (message.typeName !== undefined && message.typeName !== "") {
|
|
982
1375
|
writer.uint32(50).string(message.typeName);
|
|
983
1376
|
}
|
|
984
|
-
if (message.extendee !== "") {
|
|
1377
|
+
if (message.extendee !== undefined && message.extendee !== "") {
|
|
985
1378
|
writer.uint32(18).string(message.extendee);
|
|
986
1379
|
}
|
|
987
|
-
if (message.defaultValue !== "") {
|
|
1380
|
+
if (message.defaultValue !== undefined && message.defaultValue !== "") {
|
|
988
1381
|
writer.uint32(58).string(message.defaultValue);
|
|
989
1382
|
}
|
|
990
|
-
if (message.oneofIndex !== 0) {
|
|
1383
|
+
if (message.oneofIndex !== undefined && message.oneofIndex !== 0) {
|
|
991
1384
|
writer.uint32(72).int32(message.oneofIndex);
|
|
992
1385
|
}
|
|
993
|
-
if (message.jsonName !== "") {
|
|
1386
|
+
if (message.jsonName !== undefined && message.jsonName !== "") {
|
|
994
1387
|
writer.uint32(82).string(message.jsonName);
|
|
995
1388
|
}
|
|
996
1389
|
if (message.options !== undefined) {
|
|
997
|
-
|
|
1390
|
+
FieldOptions.encode(message.options, writer.uint32(66).fork()).ldelim();
|
|
1391
|
+
}
|
|
1392
|
+
if (message.proto3Optional === true) {
|
|
1393
|
+
writer.uint32(136).bool(message.proto3Optional);
|
|
998
1394
|
}
|
|
999
1395
|
return writer;
|
|
1000
|
-
}
|
|
1001
|
-
|
|
1396
|
+
}
|
|
1397
|
+
FieldDescriptorProto.encode = encode;
|
|
1398
|
+
function decode(input, length) {
|
|
1002
1399
|
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
1003
1400
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1004
1401
|
const message = createBaseFieldDescriptorProto();
|
|
@@ -1006,74 +1403,81 @@ exports.FieldDescriptorProto = {
|
|
|
1006
1403
|
const tag = reader.uint32();
|
|
1007
1404
|
switch (tag >>> 3) {
|
|
1008
1405
|
case 1:
|
|
1009
|
-
if (tag
|
|
1406
|
+
if (tag !== 10) {
|
|
1010
1407
|
break;
|
|
1011
1408
|
}
|
|
1012
1409
|
message.name = reader.string();
|
|
1013
1410
|
continue;
|
|
1014
1411
|
case 3:
|
|
1015
|
-
if (tag
|
|
1412
|
+
if (tag !== 24) {
|
|
1016
1413
|
break;
|
|
1017
1414
|
}
|
|
1018
1415
|
message.number = reader.int32();
|
|
1019
1416
|
continue;
|
|
1020
1417
|
case 4:
|
|
1021
|
-
if (tag
|
|
1418
|
+
if (tag !== 32) {
|
|
1022
1419
|
break;
|
|
1023
1420
|
}
|
|
1024
1421
|
message.label = reader.int32();
|
|
1025
1422
|
continue;
|
|
1026
1423
|
case 5:
|
|
1027
|
-
if (tag
|
|
1424
|
+
if (tag !== 40) {
|
|
1028
1425
|
break;
|
|
1029
1426
|
}
|
|
1030
1427
|
message.type = reader.int32();
|
|
1031
1428
|
continue;
|
|
1032
1429
|
case 6:
|
|
1033
|
-
if (tag
|
|
1430
|
+
if (tag !== 50) {
|
|
1034
1431
|
break;
|
|
1035
1432
|
}
|
|
1036
1433
|
message.typeName = reader.string();
|
|
1037
1434
|
continue;
|
|
1038
1435
|
case 2:
|
|
1039
|
-
if (tag
|
|
1436
|
+
if (tag !== 18) {
|
|
1040
1437
|
break;
|
|
1041
1438
|
}
|
|
1042
1439
|
message.extendee = reader.string();
|
|
1043
1440
|
continue;
|
|
1044
1441
|
case 7:
|
|
1045
|
-
if (tag
|
|
1442
|
+
if (tag !== 58) {
|
|
1046
1443
|
break;
|
|
1047
1444
|
}
|
|
1048
1445
|
message.defaultValue = reader.string();
|
|
1049
1446
|
continue;
|
|
1050
1447
|
case 9:
|
|
1051
|
-
if (tag
|
|
1448
|
+
if (tag !== 72) {
|
|
1052
1449
|
break;
|
|
1053
1450
|
}
|
|
1054
1451
|
message.oneofIndex = reader.int32();
|
|
1055
1452
|
continue;
|
|
1056
1453
|
case 10:
|
|
1057
|
-
if (tag
|
|
1454
|
+
if (tag !== 82) {
|
|
1058
1455
|
break;
|
|
1059
1456
|
}
|
|
1060
1457
|
message.jsonName = reader.string();
|
|
1061
1458
|
continue;
|
|
1062
1459
|
case 8:
|
|
1063
|
-
if (tag
|
|
1460
|
+
if (tag !== 66) {
|
|
1461
|
+
break;
|
|
1462
|
+
}
|
|
1463
|
+
message.options = FieldOptions.decode(reader, reader.uint32());
|
|
1464
|
+
continue;
|
|
1465
|
+
case 17:
|
|
1466
|
+
if (tag !== 136) {
|
|
1064
1467
|
break;
|
|
1065
1468
|
}
|
|
1066
|
-
message.
|
|
1469
|
+
message.proto3Optional = reader.bool();
|
|
1067
1470
|
continue;
|
|
1068
1471
|
}
|
|
1069
|
-
if ((tag & 7)
|
|
1472
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1070
1473
|
break;
|
|
1071
1474
|
}
|
|
1072
1475
|
reader.skipType(tag & 7);
|
|
1073
1476
|
}
|
|
1074
1477
|
return message;
|
|
1075
|
-
}
|
|
1076
|
-
|
|
1478
|
+
}
|
|
1479
|
+
FieldDescriptorProto.decode = decode;
|
|
1480
|
+
function fromJSON(object) {
|
|
1077
1481
|
return {
|
|
1078
1482
|
name: isSet(object.name) ? String(object.name) : "",
|
|
1079
1483
|
number: isSet(object.number) ? Number(object.number) : 0,
|
|
@@ -1084,10 +1488,12 @@ exports.FieldDescriptorProto = {
|
|
|
1084
1488
|
defaultValue: isSet(object.defaultValue) ? String(object.defaultValue) : "",
|
|
1085
1489
|
oneofIndex: isSet(object.oneofIndex) ? Number(object.oneofIndex) : 0,
|
|
1086
1490
|
jsonName: isSet(object.jsonName) ? String(object.jsonName) : "",
|
|
1087
|
-
options: isSet(object.options) ?
|
|
1491
|
+
options: isSet(object.options) ? FieldOptions.fromJSON(object.options) : undefined,
|
|
1492
|
+
proto3Optional: isSet(object.proto3Optional) ? Boolean(object.proto3Optional) : false,
|
|
1088
1493
|
};
|
|
1089
|
-
}
|
|
1090
|
-
|
|
1494
|
+
}
|
|
1495
|
+
FieldDescriptorProto.fromJSON = fromJSON;
|
|
1496
|
+
function toJSON(message) {
|
|
1091
1497
|
const obj = {};
|
|
1092
1498
|
message.name !== undefined && (obj.name = message.name);
|
|
1093
1499
|
message.number !== undefined && (obj.number = Math.round(message.number));
|
|
@@ -1098,14 +1504,17 @@ exports.FieldDescriptorProto = {
|
|
|
1098
1504
|
message.defaultValue !== undefined && (obj.defaultValue = message.defaultValue);
|
|
1099
1505
|
message.oneofIndex !== undefined && (obj.oneofIndex = Math.round(message.oneofIndex));
|
|
1100
1506
|
message.jsonName !== undefined && (obj.jsonName = message.jsonName);
|
|
1101
|
-
message.options !== undefined && (obj.options = message.options ?
|
|
1507
|
+
message.options !== undefined && (obj.options = message.options ? FieldOptions.toJSON(message.options) : undefined);
|
|
1508
|
+
message.proto3Optional !== undefined && (obj.proto3Optional = message.proto3Optional);
|
|
1102
1509
|
return obj;
|
|
1103
|
-
}
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1510
|
+
}
|
|
1511
|
+
FieldDescriptorProto.toJSON = toJSON;
|
|
1512
|
+
function create(base) {
|
|
1513
|
+
return FieldDescriptorProto.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1514
|
+
}
|
|
1515
|
+
FieldDescriptorProto.create = create;
|
|
1516
|
+
function fromPartial(object) {
|
|
1517
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1109
1518
|
const message = createBaseFieldDescriptorProto();
|
|
1110
1519
|
message.name = (_a = object.name) !== null && _a !== void 0 ? _a : "";
|
|
1111
1520
|
message.number = (_b = object.number) !== null && _b !== void 0 ? _b : 0;
|
|
@@ -1117,25 +1526,29 @@ exports.FieldDescriptorProto = {
|
|
|
1117
1526
|
message.oneofIndex = (_h = object.oneofIndex) !== null && _h !== void 0 ? _h : 0;
|
|
1118
1527
|
message.jsonName = (_j = object.jsonName) !== null && _j !== void 0 ? _j : "";
|
|
1119
1528
|
message.options = (object.options !== undefined && object.options !== null)
|
|
1120
|
-
?
|
|
1529
|
+
? FieldOptions.fromPartial(object.options)
|
|
1121
1530
|
: undefined;
|
|
1531
|
+
message.proto3Optional = (_k = object.proto3Optional) !== null && _k !== void 0 ? _k : false;
|
|
1122
1532
|
return message;
|
|
1123
|
-
}
|
|
1124
|
-
|
|
1533
|
+
}
|
|
1534
|
+
FieldDescriptorProto.fromPartial = fromPartial;
|
|
1535
|
+
})(FieldDescriptorProto || (exports.FieldDescriptorProto = FieldDescriptorProto = {}));
|
|
1125
1536
|
function createBaseOneofDescriptorProto() {
|
|
1126
1537
|
return { name: "", options: undefined };
|
|
1127
1538
|
}
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1539
|
+
var OneofDescriptorProto;
|
|
1540
|
+
(function (OneofDescriptorProto) {
|
|
1541
|
+
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1542
|
+
if (message.name !== undefined && message.name !== "") {
|
|
1131
1543
|
writer.uint32(10).string(message.name);
|
|
1132
1544
|
}
|
|
1133
1545
|
if (message.options !== undefined) {
|
|
1134
|
-
|
|
1546
|
+
OneofOptions.encode(message.options, writer.uint32(18).fork()).ldelim();
|
|
1135
1547
|
}
|
|
1136
1548
|
return writer;
|
|
1137
|
-
}
|
|
1138
|
-
|
|
1549
|
+
}
|
|
1550
|
+
OneofDescriptorProto.encode = encode;
|
|
1551
|
+
function decode(input, length) {
|
|
1139
1552
|
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
1140
1553
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1141
1554
|
const message = createBaseOneofDescriptorProto();
|
|
@@ -1143,67 +1556,81 @@ exports.OneofDescriptorProto = {
|
|
|
1143
1556
|
const tag = reader.uint32();
|
|
1144
1557
|
switch (tag >>> 3) {
|
|
1145
1558
|
case 1:
|
|
1146
|
-
if (tag
|
|
1559
|
+
if (tag !== 10) {
|
|
1147
1560
|
break;
|
|
1148
1561
|
}
|
|
1149
1562
|
message.name = reader.string();
|
|
1150
1563
|
continue;
|
|
1151
1564
|
case 2:
|
|
1152
|
-
if (tag
|
|
1565
|
+
if (tag !== 18) {
|
|
1153
1566
|
break;
|
|
1154
1567
|
}
|
|
1155
|
-
message.options =
|
|
1568
|
+
message.options = OneofOptions.decode(reader, reader.uint32());
|
|
1156
1569
|
continue;
|
|
1157
1570
|
}
|
|
1158
|
-
if ((tag & 7)
|
|
1571
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1159
1572
|
break;
|
|
1160
1573
|
}
|
|
1161
1574
|
reader.skipType(tag & 7);
|
|
1162
1575
|
}
|
|
1163
1576
|
return message;
|
|
1164
|
-
}
|
|
1165
|
-
|
|
1577
|
+
}
|
|
1578
|
+
OneofDescriptorProto.decode = decode;
|
|
1579
|
+
function fromJSON(object) {
|
|
1166
1580
|
return {
|
|
1167
1581
|
name: isSet(object.name) ? String(object.name) : "",
|
|
1168
|
-
options: isSet(object.options) ?
|
|
1582
|
+
options: isSet(object.options) ? OneofOptions.fromJSON(object.options) : undefined,
|
|
1169
1583
|
};
|
|
1170
|
-
}
|
|
1171
|
-
|
|
1584
|
+
}
|
|
1585
|
+
OneofDescriptorProto.fromJSON = fromJSON;
|
|
1586
|
+
function toJSON(message) {
|
|
1172
1587
|
const obj = {};
|
|
1173
1588
|
message.name !== undefined && (obj.name = message.name);
|
|
1174
|
-
message.options !== undefined && (obj.options = message.options ?
|
|
1589
|
+
message.options !== undefined && (obj.options = message.options ? OneofOptions.toJSON(message.options) : undefined);
|
|
1175
1590
|
return obj;
|
|
1176
|
-
}
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1591
|
+
}
|
|
1592
|
+
OneofDescriptorProto.toJSON = toJSON;
|
|
1593
|
+
function create(base) {
|
|
1594
|
+
return OneofDescriptorProto.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1595
|
+
}
|
|
1596
|
+
OneofDescriptorProto.create = create;
|
|
1597
|
+
function fromPartial(object) {
|
|
1181
1598
|
var _a;
|
|
1182
1599
|
const message = createBaseOneofDescriptorProto();
|
|
1183
1600
|
message.name = (_a = object.name) !== null && _a !== void 0 ? _a : "";
|
|
1184
1601
|
message.options = (object.options !== undefined && object.options !== null)
|
|
1185
|
-
?
|
|
1602
|
+
? OneofOptions.fromPartial(object.options)
|
|
1186
1603
|
: undefined;
|
|
1187
1604
|
return message;
|
|
1188
|
-
}
|
|
1189
|
-
|
|
1605
|
+
}
|
|
1606
|
+
OneofDescriptorProto.fromPartial = fromPartial;
|
|
1607
|
+
})(OneofDescriptorProto || (exports.OneofDescriptorProto = OneofDescriptorProto = {}));
|
|
1190
1608
|
function createBaseEnumDescriptorProto() {
|
|
1191
|
-
return { name: "", value: [], options: undefined };
|
|
1609
|
+
return { name: "", value: [], options: undefined, reservedRange: [], reservedName: [] };
|
|
1192
1610
|
}
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1611
|
+
var EnumDescriptorProto;
|
|
1612
|
+
(function (EnumDescriptorProto) {
|
|
1613
|
+
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1614
|
+
var _a, _b, _c;
|
|
1615
|
+
if (message.name !== undefined && message.name !== "") {
|
|
1196
1616
|
writer.uint32(10).string(message.name);
|
|
1197
1617
|
}
|
|
1198
|
-
for (const v of message.value) {
|
|
1199
|
-
|
|
1618
|
+
for (const v of (_a = message.value) !== null && _a !== void 0 ? _a : []) {
|
|
1619
|
+
EnumValueDescriptorProto.encode(v, writer.uint32(18).fork()).ldelim();
|
|
1200
1620
|
}
|
|
1201
1621
|
if (message.options !== undefined) {
|
|
1202
|
-
|
|
1622
|
+
EnumOptions.encode(message.options, writer.uint32(26).fork()).ldelim();
|
|
1623
|
+
}
|
|
1624
|
+
for (const v of (_b = message.reservedRange) !== null && _b !== void 0 ? _b : []) {
|
|
1625
|
+
EnumDescriptorProto_EnumReservedRange.encode(v, writer.uint32(34).fork()).ldelim();
|
|
1626
|
+
}
|
|
1627
|
+
for (const v of (_c = message.reservedName) !== null && _c !== void 0 ? _c : []) {
|
|
1628
|
+
writer.uint32(42).string(v);
|
|
1203
1629
|
}
|
|
1204
1630
|
return writer;
|
|
1205
|
-
}
|
|
1206
|
-
|
|
1631
|
+
}
|
|
1632
|
+
EnumDescriptorProto.encode = encode;
|
|
1633
|
+
function decode(input, length) {
|
|
1207
1634
|
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
1208
1635
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1209
1636
|
const message = createBaseEnumDescriptorProto();
|
|
@@ -1211,81 +1638,187 @@ exports.EnumDescriptorProto = {
|
|
|
1211
1638
|
const tag = reader.uint32();
|
|
1212
1639
|
switch (tag >>> 3) {
|
|
1213
1640
|
case 1:
|
|
1214
|
-
if (tag
|
|
1641
|
+
if (tag !== 10) {
|
|
1215
1642
|
break;
|
|
1216
1643
|
}
|
|
1217
1644
|
message.name = reader.string();
|
|
1218
1645
|
continue;
|
|
1219
1646
|
case 2:
|
|
1220
|
-
if (tag
|
|
1647
|
+
if (tag !== 18) {
|
|
1221
1648
|
break;
|
|
1222
1649
|
}
|
|
1223
|
-
message.value.push(
|
|
1650
|
+
message.value.push(EnumValueDescriptorProto.decode(reader, reader.uint32()));
|
|
1224
1651
|
continue;
|
|
1225
1652
|
case 3:
|
|
1226
|
-
if (tag
|
|
1653
|
+
if (tag !== 26) {
|
|
1654
|
+
break;
|
|
1655
|
+
}
|
|
1656
|
+
message.options = EnumOptions.decode(reader, reader.uint32());
|
|
1657
|
+
continue;
|
|
1658
|
+
case 4:
|
|
1659
|
+
if (tag !== 34) {
|
|
1660
|
+
break;
|
|
1661
|
+
}
|
|
1662
|
+
message.reservedRange.push(EnumDescriptorProto_EnumReservedRange.decode(reader, reader.uint32()));
|
|
1663
|
+
continue;
|
|
1664
|
+
case 5:
|
|
1665
|
+
if (tag !== 42) {
|
|
1227
1666
|
break;
|
|
1228
1667
|
}
|
|
1229
|
-
message.
|
|
1668
|
+
message.reservedName.push(reader.string());
|
|
1230
1669
|
continue;
|
|
1231
1670
|
}
|
|
1232
|
-
if ((tag & 7)
|
|
1671
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1233
1672
|
break;
|
|
1234
1673
|
}
|
|
1235
1674
|
reader.skipType(tag & 7);
|
|
1236
1675
|
}
|
|
1237
1676
|
return message;
|
|
1238
|
-
}
|
|
1239
|
-
|
|
1677
|
+
}
|
|
1678
|
+
EnumDescriptorProto.decode = decode;
|
|
1679
|
+
function fromJSON(object) {
|
|
1240
1680
|
return {
|
|
1241
1681
|
name: isSet(object.name) ? String(object.name) : "",
|
|
1242
|
-
value: Array.isArray(object === null || object === void 0 ? void 0 : object.value) ? object.value.map((e) =>
|
|
1243
|
-
options: isSet(object.options) ?
|
|
1682
|
+
value: Array.isArray(object === null || object === void 0 ? void 0 : object.value) ? object.value.map((e) => EnumValueDescriptorProto.fromJSON(e)) : [],
|
|
1683
|
+
options: isSet(object.options) ? EnumOptions.fromJSON(object.options) : undefined,
|
|
1684
|
+
reservedRange: Array.isArray(object === null || object === void 0 ? void 0 : object.reservedRange)
|
|
1685
|
+
? object.reservedRange.map((e) => EnumDescriptorProto_EnumReservedRange.fromJSON(e))
|
|
1686
|
+
: [],
|
|
1687
|
+
reservedName: Array.isArray(object === null || object === void 0 ? void 0 : object.reservedName) ? object.reservedName.map((e) => String(e)) : [],
|
|
1244
1688
|
};
|
|
1245
|
-
}
|
|
1246
|
-
|
|
1689
|
+
}
|
|
1690
|
+
EnumDescriptorProto.fromJSON = fromJSON;
|
|
1691
|
+
function toJSON(message) {
|
|
1247
1692
|
const obj = {};
|
|
1248
1693
|
message.name !== undefined && (obj.name = message.name);
|
|
1249
1694
|
if (message.value) {
|
|
1250
|
-
obj.value = message.value.map((e) => e ?
|
|
1695
|
+
obj.value = message.value.map((e) => e ? EnumValueDescriptorProto.toJSON(e) : undefined);
|
|
1251
1696
|
}
|
|
1252
1697
|
else {
|
|
1253
1698
|
obj.value = [];
|
|
1254
1699
|
}
|
|
1255
|
-
message.options !== undefined && (obj.options = message.options ?
|
|
1700
|
+
message.options !== undefined && (obj.options = message.options ? EnumOptions.toJSON(message.options) : undefined);
|
|
1701
|
+
if (message.reservedRange) {
|
|
1702
|
+
obj.reservedRange = message.reservedRange.map((e) => e ? EnumDescriptorProto_EnumReservedRange.toJSON(e) : undefined);
|
|
1703
|
+
}
|
|
1704
|
+
else {
|
|
1705
|
+
obj.reservedRange = [];
|
|
1706
|
+
}
|
|
1707
|
+
if (message.reservedName) {
|
|
1708
|
+
obj.reservedName = message.reservedName.map((e) => e);
|
|
1709
|
+
}
|
|
1710
|
+
else {
|
|
1711
|
+
obj.reservedName = [];
|
|
1712
|
+
}
|
|
1256
1713
|
return obj;
|
|
1257
|
-
}
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1714
|
+
}
|
|
1715
|
+
EnumDescriptorProto.toJSON = toJSON;
|
|
1716
|
+
function create(base) {
|
|
1717
|
+
return EnumDescriptorProto.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1718
|
+
}
|
|
1719
|
+
EnumDescriptorProto.create = create;
|
|
1720
|
+
function fromPartial(object) {
|
|
1721
|
+
var _a, _b, _c;
|
|
1722
|
+
var _d;
|
|
1263
1723
|
const message = createBaseEnumDescriptorProto();
|
|
1264
|
-
message.name = (
|
|
1265
|
-
message.value = ((
|
|
1724
|
+
message.name = (_d = object.name) !== null && _d !== void 0 ? _d : "";
|
|
1725
|
+
message.value = ((_a = object.value) === null || _a === void 0 ? void 0 : _a.map((e) => EnumValueDescriptorProto.fromPartial(e))) || [];
|
|
1266
1726
|
message.options = (object.options !== undefined && object.options !== null)
|
|
1267
|
-
?
|
|
1727
|
+
? EnumOptions.fromPartial(object.options)
|
|
1268
1728
|
: undefined;
|
|
1729
|
+
message.reservedRange = ((_b = object.reservedRange) === null || _b === void 0 ? void 0 : _b.map((e) => EnumDescriptorProto_EnumReservedRange.fromPartial(e))) ||
|
|
1730
|
+
[];
|
|
1731
|
+
message.reservedName = ((_c = object.reservedName) === null || _c === void 0 ? void 0 : _c.map((e) => e)) || [];
|
|
1269
1732
|
return message;
|
|
1270
|
-
}
|
|
1271
|
-
|
|
1733
|
+
}
|
|
1734
|
+
EnumDescriptorProto.fromPartial = fromPartial;
|
|
1735
|
+
})(EnumDescriptorProto || (exports.EnumDescriptorProto = EnumDescriptorProto = {}));
|
|
1736
|
+
function createBaseEnumDescriptorProto_EnumReservedRange() {
|
|
1737
|
+
return { start: 0, end: 0 };
|
|
1738
|
+
}
|
|
1739
|
+
var EnumDescriptorProto_EnumReservedRange;
|
|
1740
|
+
(function (EnumDescriptorProto_EnumReservedRange) {
|
|
1741
|
+
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1742
|
+
if (message.start !== undefined && message.start !== 0) {
|
|
1743
|
+
writer.uint32(8).int32(message.start);
|
|
1744
|
+
}
|
|
1745
|
+
if (message.end !== undefined && message.end !== 0) {
|
|
1746
|
+
writer.uint32(16).int32(message.end);
|
|
1747
|
+
}
|
|
1748
|
+
return writer;
|
|
1749
|
+
}
|
|
1750
|
+
EnumDescriptorProto_EnumReservedRange.encode = encode;
|
|
1751
|
+
function decode(input, length) {
|
|
1752
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
1753
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1754
|
+
const message = createBaseEnumDescriptorProto_EnumReservedRange();
|
|
1755
|
+
while (reader.pos < end) {
|
|
1756
|
+
const tag = reader.uint32();
|
|
1757
|
+
switch (tag >>> 3) {
|
|
1758
|
+
case 1:
|
|
1759
|
+
if (tag !== 8) {
|
|
1760
|
+
break;
|
|
1761
|
+
}
|
|
1762
|
+
message.start = reader.int32();
|
|
1763
|
+
continue;
|
|
1764
|
+
case 2:
|
|
1765
|
+
if (tag !== 16) {
|
|
1766
|
+
break;
|
|
1767
|
+
}
|
|
1768
|
+
message.end = reader.int32();
|
|
1769
|
+
continue;
|
|
1770
|
+
}
|
|
1771
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1772
|
+
break;
|
|
1773
|
+
}
|
|
1774
|
+
reader.skipType(tag & 7);
|
|
1775
|
+
}
|
|
1776
|
+
return message;
|
|
1777
|
+
}
|
|
1778
|
+
EnumDescriptorProto_EnumReservedRange.decode = decode;
|
|
1779
|
+
function fromJSON(object) {
|
|
1780
|
+
return { start: isSet(object.start) ? Number(object.start) : 0, end: isSet(object.end) ? Number(object.end) : 0 };
|
|
1781
|
+
}
|
|
1782
|
+
EnumDescriptorProto_EnumReservedRange.fromJSON = fromJSON;
|
|
1783
|
+
function toJSON(message) {
|
|
1784
|
+
const obj = {};
|
|
1785
|
+
message.start !== undefined && (obj.start = Math.round(message.start));
|
|
1786
|
+
message.end !== undefined && (obj.end = Math.round(message.end));
|
|
1787
|
+
return obj;
|
|
1788
|
+
}
|
|
1789
|
+
EnumDescriptorProto_EnumReservedRange.toJSON = toJSON;
|
|
1790
|
+
function create(base) {
|
|
1791
|
+
return EnumDescriptorProto_EnumReservedRange.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1792
|
+
}
|
|
1793
|
+
EnumDescriptorProto_EnumReservedRange.create = create;
|
|
1794
|
+
function fromPartial(object) {
|
|
1795
|
+
var _a, _b;
|
|
1796
|
+
const message = createBaseEnumDescriptorProto_EnumReservedRange();
|
|
1797
|
+
message.start = (_a = object.start) !== null && _a !== void 0 ? _a : 0;
|
|
1798
|
+
message.end = (_b = object.end) !== null && _b !== void 0 ? _b : 0;
|
|
1799
|
+
return message;
|
|
1800
|
+
}
|
|
1801
|
+
EnumDescriptorProto_EnumReservedRange.fromPartial = fromPartial;
|
|
1802
|
+
})(EnumDescriptorProto_EnumReservedRange || (exports.EnumDescriptorProto_EnumReservedRange = EnumDescriptorProto_EnumReservedRange = {}));
|
|
1272
1803
|
function createBaseEnumValueDescriptorProto() {
|
|
1273
1804
|
return { name: "", number: 0, options: undefined };
|
|
1274
1805
|
}
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1806
|
+
var EnumValueDescriptorProto;
|
|
1807
|
+
(function (EnumValueDescriptorProto) {
|
|
1808
|
+
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1809
|
+
if (message.name !== undefined && message.name !== "") {
|
|
1278
1810
|
writer.uint32(10).string(message.name);
|
|
1279
1811
|
}
|
|
1280
|
-
if (message.number !== 0) {
|
|
1812
|
+
if (message.number !== undefined && message.number !== 0) {
|
|
1281
1813
|
writer.uint32(16).int32(message.number);
|
|
1282
1814
|
}
|
|
1283
1815
|
if (message.options !== undefined) {
|
|
1284
|
-
|
|
1816
|
+
EnumValueOptions.encode(message.options, writer.uint32(26).fork()).ldelim();
|
|
1285
1817
|
}
|
|
1286
1818
|
return writer;
|
|
1287
|
-
}
|
|
1288
|
-
|
|
1819
|
+
}
|
|
1820
|
+
EnumValueDescriptorProto.encode = encode;
|
|
1821
|
+
function decode(input, length) {
|
|
1289
1822
|
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
1290
1823
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1291
1824
|
const message = createBaseEnumValueDescriptorProto();
|
|
@@ -1293,77 +1826,85 @@ exports.EnumValueDescriptorProto = {
|
|
|
1293
1826
|
const tag = reader.uint32();
|
|
1294
1827
|
switch (tag >>> 3) {
|
|
1295
1828
|
case 1:
|
|
1296
|
-
if (tag
|
|
1829
|
+
if (tag !== 10) {
|
|
1297
1830
|
break;
|
|
1298
1831
|
}
|
|
1299
1832
|
message.name = reader.string();
|
|
1300
1833
|
continue;
|
|
1301
1834
|
case 2:
|
|
1302
|
-
if (tag
|
|
1835
|
+
if (tag !== 16) {
|
|
1303
1836
|
break;
|
|
1304
1837
|
}
|
|
1305
1838
|
message.number = reader.int32();
|
|
1306
1839
|
continue;
|
|
1307
1840
|
case 3:
|
|
1308
|
-
if (tag
|
|
1841
|
+
if (tag !== 26) {
|
|
1309
1842
|
break;
|
|
1310
1843
|
}
|
|
1311
|
-
message.options =
|
|
1844
|
+
message.options = EnumValueOptions.decode(reader, reader.uint32());
|
|
1312
1845
|
continue;
|
|
1313
1846
|
}
|
|
1314
|
-
if ((tag & 7)
|
|
1847
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1315
1848
|
break;
|
|
1316
1849
|
}
|
|
1317
1850
|
reader.skipType(tag & 7);
|
|
1318
1851
|
}
|
|
1319
1852
|
return message;
|
|
1320
|
-
}
|
|
1321
|
-
|
|
1853
|
+
}
|
|
1854
|
+
EnumValueDescriptorProto.decode = decode;
|
|
1855
|
+
function fromJSON(object) {
|
|
1322
1856
|
return {
|
|
1323
1857
|
name: isSet(object.name) ? String(object.name) : "",
|
|
1324
1858
|
number: isSet(object.number) ? Number(object.number) : 0,
|
|
1325
|
-
options: isSet(object.options) ?
|
|
1859
|
+
options: isSet(object.options) ? EnumValueOptions.fromJSON(object.options) : undefined,
|
|
1326
1860
|
};
|
|
1327
|
-
}
|
|
1328
|
-
|
|
1861
|
+
}
|
|
1862
|
+
EnumValueDescriptorProto.fromJSON = fromJSON;
|
|
1863
|
+
function toJSON(message) {
|
|
1329
1864
|
const obj = {};
|
|
1330
1865
|
message.name !== undefined && (obj.name = message.name);
|
|
1331
1866
|
message.number !== undefined && (obj.number = Math.round(message.number));
|
|
1332
1867
|
message.options !== undefined &&
|
|
1333
|
-
(obj.options = message.options ?
|
|
1868
|
+
(obj.options = message.options ? EnumValueOptions.toJSON(message.options) : undefined);
|
|
1334
1869
|
return obj;
|
|
1335
|
-
}
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1870
|
+
}
|
|
1871
|
+
EnumValueDescriptorProto.toJSON = toJSON;
|
|
1872
|
+
function create(base) {
|
|
1873
|
+
return EnumValueDescriptorProto.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1874
|
+
}
|
|
1875
|
+
EnumValueDescriptorProto.create = create;
|
|
1876
|
+
function fromPartial(object) {
|
|
1340
1877
|
var _a, _b;
|
|
1341
1878
|
const message = createBaseEnumValueDescriptorProto();
|
|
1342
1879
|
message.name = (_a = object.name) !== null && _a !== void 0 ? _a : "";
|
|
1343
1880
|
message.number = (_b = object.number) !== null && _b !== void 0 ? _b : 0;
|
|
1344
1881
|
message.options = (object.options !== undefined && object.options !== null)
|
|
1345
|
-
?
|
|
1882
|
+
? EnumValueOptions.fromPartial(object.options)
|
|
1346
1883
|
: undefined;
|
|
1347
1884
|
return message;
|
|
1348
|
-
}
|
|
1349
|
-
|
|
1885
|
+
}
|
|
1886
|
+
EnumValueDescriptorProto.fromPartial = fromPartial;
|
|
1887
|
+
})(EnumValueDescriptorProto || (exports.EnumValueDescriptorProto = EnumValueDescriptorProto = {}));
|
|
1350
1888
|
function createBaseServiceDescriptorProto() {
|
|
1351
1889
|
return { name: "", method: [], options: undefined };
|
|
1352
1890
|
}
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1891
|
+
var ServiceDescriptorProto;
|
|
1892
|
+
(function (ServiceDescriptorProto) {
|
|
1893
|
+
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1894
|
+
var _a;
|
|
1895
|
+
if (message.name !== undefined && message.name !== "") {
|
|
1356
1896
|
writer.uint32(10).string(message.name);
|
|
1357
1897
|
}
|
|
1358
|
-
for (const v of message.method) {
|
|
1359
|
-
|
|
1898
|
+
for (const v of (_a = message.method) !== null && _a !== void 0 ? _a : []) {
|
|
1899
|
+
MethodDescriptorProto.encode(v, writer.uint32(18).fork()).ldelim();
|
|
1360
1900
|
}
|
|
1361
1901
|
if (message.options !== undefined) {
|
|
1362
|
-
|
|
1902
|
+
ServiceOptions.encode(message.options, writer.uint32(26).fork()).ldelim();
|
|
1363
1903
|
}
|
|
1364
1904
|
return writer;
|
|
1365
|
-
}
|
|
1366
|
-
|
|
1905
|
+
}
|
|
1906
|
+
ServiceDescriptorProto.encode = encode;
|
|
1907
|
+
function decode(input, length) {
|
|
1367
1908
|
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
1368
1909
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1369
1910
|
const message = createBaseServiceDescriptorProto();
|
|
@@ -1371,65 +1912,71 @@ exports.ServiceDescriptorProto = {
|
|
|
1371
1912
|
const tag = reader.uint32();
|
|
1372
1913
|
switch (tag >>> 3) {
|
|
1373
1914
|
case 1:
|
|
1374
|
-
if (tag
|
|
1915
|
+
if (tag !== 10) {
|
|
1375
1916
|
break;
|
|
1376
1917
|
}
|
|
1377
1918
|
message.name = reader.string();
|
|
1378
1919
|
continue;
|
|
1379
1920
|
case 2:
|
|
1380
|
-
if (tag
|
|
1921
|
+
if (tag !== 18) {
|
|
1381
1922
|
break;
|
|
1382
1923
|
}
|
|
1383
|
-
message.method.push(
|
|
1924
|
+
message.method.push(MethodDescriptorProto.decode(reader, reader.uint32()));
|
|
1384
1925
|
continue;
|
|
1385
1926
|
case 3:
|
|
1386
|
-
if (tag
|
|
1927
|
+
if (tag !== 26) {
|
|
1387
1928
|
break;
|
|
1388
1929
|
}
|
|
1389
|
-
message.options =
|
|
1930
|
+
message.options = ServiceOptions.decode(reader, reader.uint32());
|
|
1390
1931
|
continue;
|
|
1391
1932
|
}
|
|
1392
|
-
if ((tag & 7)
|
|
1933
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1393
1934
|
break;
|
|
1394
1935
|
}
|
|
1395
1936
|
reader.skipType(tag & 7);
|
|
1396
1937
|
}
|
|
1397
1938
|
return message;
|
|
1398
|
-
}
|
|
1399
|
-
|
|
1939
|
+
}
|
|
1940
|
+
ServiceDescriptorProto.decode = decode;
|
|
1941
|
+
function fromJSON(object) {
|
|
1400
1942
|
return {
|
|
1401
1943
|
name: isSet(object.name) ? String(object.name) : "",
|
|
1402
|
-
method: Array.isArray(object === null || object === void 0 ? void 0 : object.method) ? object.method.map((e) =>
|
|
1403
|
-
options: isSet(object.options) ?
|
|
1944
|
+
method: Array.isArray(object === null || object === void 0 ? void 0 : object.method) ? object.method.map((e) => MethodDescriptorProto.fromJSON(e)) : [],
|
|
1945
|
+
options: isSet(object.options) ? ServiceOptions.fromJSON(object.options) : undefined,
|
|
1404
1946
|
};
|
|
1405
|
-
}
|
|
1406
|
-
|
|
1947
|
+
}
|
|
1948
|
+
ServiceDescriptorProto.fromJSON = fromJSON;
|
|
1949
|
+
function toJSON(message) {
|
|
1407
1950
|
const obj = {};
|
|
1408
1951
|
message.name !== undefined && (obj.name = message.name);
|
|
1409
1952
|
if (message.method) {
|
|
1410
|
-
obj.method = message.method.map((e) => e ?
|
|
1953
|
+
obj.method = message.method.map((e) => e ? MethodDescriptorProto.toJSON(e) : undefined);
|
|
1411
1954
|
}
|
|
1412
1955
|
else {
|
|
1413
1956
|
obj.method = [];
|
|
1414
1957
|
}
|
|
1415
1958
|
message.options !== undefined &&
|
|
1416
|
-
(obj.options = message.options ?
|
|
1959
|
+
(obj.options = message.options ? ServiceOptions.toJSON(message.options) : undefined);
|
|
1417
1960
|
return obj;
|
|
1418
|
-
}
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1961
|
+
}
|
|
1962
|
+
ServiceDescriptorProto.toJSON = toJSON;
|
|
1963
|
+
function create(base) {
|
|
1964
|
+
return ServiceDescriptorProto.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1965
|
+
}
|
|
1966
|
+
ServiceDescriptorProto.create = create;
|
|
1967
|
+
function fromPartial(object) {
|
|
1968
|
+
var _a;
|
|
1969
|
+
var _b;
|
|
1424
1970
|
const message = createBaseServiceDescriptorProto();
|
|
1425
|
-
message.name = (
|
|
1426
|
-
message.method = ((
|
|
1971
|
+
message.name = (_b = object.name) !== null && _b !== void 0 ? _b : "";
|
|
1972
|
+
message.method = ((_a = object.method) === null || _a === void 0 ? void 0 : _a.map((e) => MethodDescriptorProto.fromPartial(e))) || [];
|
|
1427
1973
|
message.options = (object.options !== undefined && object.options !== null)
|
|
1428
|
-
?
|
|
1974
|
+
? ServiceOptions.fromPartial(object.options)
|
|
1429
1975
|
: undefined;
|
|
1430
1976
|
return message;
|
|
1431
|
-
}
|
|
1432
|
-
|
|
1977
|
+
}
|
|
1978
|
+
ServiceDescriptorProto.fromPartial = fromPartial;
|
|
1979
|
+
})(ServiceDescriptorProto || (exports.ServiceDescriptorProto = ServiceDescriptorProto = {}));
|
|
1433
1980
|
function createBaseMethodDescriptorProto() {
|
|
1434
1981
|
return {
|
|
1435
1982
|
name: "",
|
|
@@ -1440,19 +1987,20 @@ function createBaseMethodDescriptorProto() {
|
|
|
1440
1987
|
serverStreaming: false,
|
|
1441
1988
|
};
|
|
1442
1989
|
}
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1990
|
+
var MethodDescriptorProto;
|
|
1991
|
+
(function (MethodDescriptorProto) {
|
|
1992
|
+
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1993
|
+
if (message.name !== undefined && message.name !== "") {
|
|
1446
1994
|
writer.uint32(10).string(message.name);
|
|
1447
1995
|
}
|
|
1448
|
-
if (message.inputType !== "") {
|
|
1996
|
+
if (message.inputType !== undefined && message.inputType !== "") {
|
|
1449
1997
|
writer.uint32(18).string(message.inputType);
|
|
1450
1998
|
}
|
|
1451
|
-
if (message.outputType !== "") {
|
|
1999
|
+
if (message.outputType !== undefined && message.outputType !== "") {
|
|
1452
2000
|
writer.uint32(26).string(message.outputType);
|
|
1453
2001
|
}
|
|
1454
2002
|
if (message.options !== undefined) {
|
|
1455
|
-
|
|
2003
|
+
MethodOptions.encode(message.options, writer.uint32(34).fork()).ldelim();
|
|
1456
2004
|
}
|
|
1457
2005
|
if (message.clientStreaming === true) {
|
|
1458
2006
|
writer.uint32(40).bool(message.clientStreaming);
|
|
@@ -1461,8 +2009,9 @@ exports.MethodDescriptorProto = {
|
|
|
1461
2009
|
writer.uint32(48).bool(message.serverStreaming);
|
|
1462
2010
|
}
|
|
1463
2011
|
return writer;
|
|
1464
|
-
}
|
|
1465
|
-
|
|
2012
|
+
}
|
|
2013
|
+
MethodDescriptorProto.encode = encode;
|
|
2014
|
+
function decode(input, length) {
|
|
1466
2015
|
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
1467
2016
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1468
2017
|
const message = createBaseMethodDescriptorProto();
|
|
@@ -1470,87 +2019,92 @@ exports.MethodDescriptorProto = {
|
|
|
1470
2019
|
const tag = reader.uint32();
|
|
1471
2020
|
switch (tag >>> 3) {
|
|
1472
2021
|
case 1:
|
|
1473
|
-
if (tag
|
|
2022
|
+
if (tag !== 10) {
|
|
1474
2023
|
break;
|
|
1475
2024
|
}
|
|
1476
2025
|
message.name = reader.string();
|
|
1477
2026
|
continue;
|
|
1478
2027
|
case 2:
|
|
1479
|
-
if (tag
|
|
2028
|
+
if (tag !== 18) {
|
|
1480
2029
|
break;
|
|
1481
2030
|
}
|
|
1482
2031
|
message.inputType = reader.string();
|
|
1483
2032
|
continue;
|
|
1484
2033
|
case 3:
|
|
1485
|
-
if (tag
|
|
2034
|
+
if (tag !== 26) {
|
|
1486
2035
|
break;
|
|
1487
2036
|
}
|
|
1488
2037
|
message.outputType = reader.string();
|
|
1489
2038
|
continue;
|
|
1490
2039
|
case 4:
|
|
1491
|
-
if (tag
|
|
2040
|
+
if (tag !== 34) {
|
|
1492
2041
|
break;
|
|
1493
2042
|
}
|
|
1494
|
-
message.options =
|
|
2043
|
+
message.options = MethodOptions.decode(reader, reader.uint32());
|
|
1495
2044
|
continue;
|
|
1496
2045
|
case 5:
|
|
1497
|
-
if (tag
|
|
2046
|
+
if (tag !== 40) {
|
|
1498
2047
|
break;
|
|
1499
2048
|
}
|
|
1500
2049
|
message.clientStreaming = reader.bool();
|
|
1501
2050
|
continue;
|
|
1502
2051
|
case 6:
|
|
1503
|
-
if (tag
|
|
2052
|
+
if (tag !== 48) {
|
|
1504
2053
|
break;
|
|
1505
2054
|
}
|
|
1506
2055
|
message.serverStreaming = reader.bool();
|
|
1507
2056
|
continue;
|
|
1508
2057
|
}
|
|
1509
|
-
if ((tag & 7)
|
|
2058
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1510
2059
|
break;
|
|
1511
2060
|
}
|
|
1512
2061
|
reader.skipType(tag & 7);
|
|
1513
2062
|
}
|
|
1514
2063
|
return message;
|
|
1515
|
-
}
|
|
1516
|
-
|
|
2064
|
+
}
|
|
2065
|
+
MethodDescriptorProto.decode = decode;
|
|
2066
|
+
function fromJSON(object) {
|
|
1517
2067
|
return {
|
|
1518
2068
|
name: isSet(object.name) ? String(object.name) : "",
|
|
1519
2069
|
inputType: isSet(object.inputType) ? String(object.inputType) : "",
|
|
1520
2070
|
outputType: isSet(object.outputType) ? String(object.outputType) : "",
|
|
1521
|
-
options: isSet(object.options) ?
|
|
2071
|
+
options: isSet(object.options) ? MethodOptions.fromJSON(object.options) : undefined,
|
|
1522
2072
|
clientStreaming: isSet(object.clientStreaming) ? Boolean(object.clientStreaming) : false,
|
|
1523
2073
|
serverStreaming: isSet(object.serverStreaming) ? Boolean(object.serverStreaming) : false,
|
|
1524
2074
|
};
|
|
1525
|
-
}
|
|
1526
|
-
|
|
2075
|
+
}
|
|
2076
|
+
MethodDescriptorProto.fromJSON = fromJSON;
|
|
2077
|
+
function toJSON(message) {
|
|
1527
2078
|
const obj = {};
|
|
1528
2079
|
message.name !== undefined && (obj.name = message.name);
|
|
1529
2080
|
message.inputType !== undefined && (obj.inputType = message.inputType);
|
|
1530
2081
|
message.outputType !== undefined && (obj.outputType = message.outputType);
|
|
1531
2082
|
message.options !== undefined &&
|
|
1532
|
-
(obj.options = message.options ?
|
|
2083
|
+
(obj.options = message.options ? MethodOptions.toJSON(message.options) : undefined);
|
|
1533
2084
|
message.clientStreaming !== undefined && (obj.clientStreaming = message.clientStreaming);
|
|
1534
2085
|
message.serverStreaming !== undefined && (obj.serverStreaming = message.serverStreaming);
|
|
1535
2086
|
return obj;
|
|
1536
|
-
}
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
2087
|
+
}
|
|
2088
|
+
MethodDescriptorProto.toJSON = toJSON;
|
|
2089
|
+
function create(base) {
|
|
2090
|
+
return MethodDescriptorProto.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
2091
|
+
}
|
|
2092
|
+
MethodDescriptorProto.create = create;
|
|
2093
|
+
function fromPartial(object) {
|
|
1541
2094
|
var _a, _b, _c, _d, _e;
|
|
1542
2095
|
const message = createBaseMethodDescriptorProto();
|
|
1543
2096
|
message.name = (_a = object.name) !== null && _a !== void 0 ? _a : "";
|
|
1544
2097
|
message.inputType = (_b = object.inputType) !== null && _b !== void 0 ? _b : "";
|
|
1545
2098
|
message.outputType = (_c = object.outputType) !== null && _c !== void 0 ? _c : "";
|
|
1546
2099
|
message.options = (object.options !== undefined && object.options !== null)
|
|
1547
|
-
?
|
|
2100
|
+
? MethodOptions.fromPartial(object.options)
|
|
1548
2101
|
: undefined;
|
|
1549
2102
|
message.clientStreaming = (_d = object.clientStreaming) !== null && _d !== void 0 ? _d : false;
|
|
1550
2103
|
message.serverStreaming = (_e = object.serverStreaming) !== null && _e !== void 0 ? _e : false;
|
|
1551
2104
|
return message;
|
|
1552
|
-
}
|
|
1553
|
-
|
|
2105
|
+
}
|
|
2106
|
+
MethodDescriptorProto.fromPartial = fromPartial;
|
|
2107
|
+
})(MethodDescriptorProto || (exports.MethodDescriptorProto = MethodDescriptorProto = {}));
|
|
1554
2108
|
function createBaseFileOptions() {
|
|
1555
2109
|
return {
|
|
1556
2110
|
javaPackage: "",
|
|
@@ -1563,19 +2117,27 @@ function createBaseFileOptions() {
|
|
|
1563
2117
|
ccGenericServices: false,
|
|
1564
2118
|
javaGenericServices: false,
|
|
1565
2119
|
pyGenericServices: false,
|
|
2120
|
+
phpGenericServices: false,
|
|
1566
2121
|
deprecated: false,
|
|
1567
2122
|
ccEnableArenas: false,
|
|
1568
2123
|
objcClassPrefix: "",
|
|
1569
2124
|
csharpNamespace: "",
|
|
2125
|
+
swiftPrefix: "",
|
|
2126
|
+
phpClassPrefix: "",
|
|
2127
|
+
phpNamespace: "",
|
|
2128
|
+
phpMetadataNamespace: "",
|
|
2129
|
+
rubyPackage: "",
|
|
1570
2130
|
uninterpretedOption: [],
|
|
1571
2131
|
};
|
|
1572
2132
|
}
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
2133
|
+
var FileOptions;
|
|
2134
|
+
(function (FileOptions) {
|
|
2135
|
+
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
2136
|
+
var _a;
|
|
2137
|
+
if (message.javaPackage !== undefined && message.javaPackage !== "") {
|
|
1576
2138
|
writer.uint32(10).string(message.javaPackage);
|
|
1577
2139
|
}
|
|
1578
|
-
if (message.javaOuterClassname !== "") {
|
|
2140
|
+
if (message.javaOuterClassname !== undefined && message.javaOuterClassname !== "") {
|
|
1579
2141
|
writer.uint32(66).string(message.javaOuterClassname);
|
|
1580
2142
|
}
|
|
1581
2143
|
if (message.javaMultipleFiles === true) {
|
|
@@ -1587,10 +2149,10 @@ exports.FileOptions = {
|
|
|
1587
2149
|
if (message.javaStringCheckUtf8 === true) {
|
|
1588
2150
|
writer.uint32(216).bool(message.javaStringCheckUtf8);
|
|
1589
2151
|
}
|
|
1590
|
-
if (message.optimizeFor !== 1) {
|
|
2152
|
+
if (message.optimizeFor !== undefined && message.optimizeFor !== 1) {
|
|
1591
2153
|
writer.uint32(72).int32(message.optimizeFor);
|
|
1592
2154
|
}
|
|
1593
|
-
if (message.goPackage !== "") {
|
|
2155
|
+
if (message.goPackage !== undefined && message.goPackage !== "") {
|
|
1594
2156
|
writer.uint32(90).string(message.goPackage);
|
|
1595
2157
|
}
|
|
1596
2158
|
if (message.ccGenericServices === true) {
|
|
@@ -1602,24 +2164,43 @@ exports.FileOptions = {
|
|
|
1602
2164
|
if (message.pyGenericServices === true) {
|
|
1603
2165
|
writer.uint32(144).bool(message.pyGenericServices);
|
|
1604
2166
|
}
|
|
2167
|
+
if (message.phpGenericServices === true) {
|
|
2168
|
+
writer.uint32(336).bool(message.phpGenericServices);
|
|
2169
|
+
}
|
|
1605
2170
|
if (message.deprecated === true) {
|
|
1606
2171
|
writer.uint32(184).bool(message.deprecated);
|
|
1607
2172
|
}
|
|
1608
2173
|
if (message.ccEnableArenas === true) {
|
|
1609
2174
|
writer.uint32(248).bool(message.ccEnableArenas);
|
|
1610
2175
|
}
|
|
1611
|
-
if (message.objcClassPrefix !== "") {
|
|
2176
|
+
if (message.objcClassPrefix !== undefined && message.objcClassPrefix !== "") {
|
|
1612
2177
|
writer.uint32(290).string(message.objcClassPrefix);
|
|
1613
2178
|
}
|
|
1614
|
-
if (message.csharpNamespace !== "") {
|
|
2179
|
+
if (message.csharpNamespace !== undefined && message.csharpNamespace !== "") {
|
|
1615
2180
|
writer.uint32(298).string(message.csharpNamespace);
|
|
1616
2181
|
}
|
|
1617
|
-
|
|
1618
|
-
|
|
2182
|
+
if (message.swiftPrefix !== undefined && message.swiftPrefix !== "") {
|
|
2183
|
+
writer.uint32(314).string(message.swiftPrefix);
|
|
2184
|
+
}
|
|
2185
|
+
if (message.phpClassPrefix !== undefined && message.phpClassPrefix !== "") {
|
|
2186
|
+
writer.uint32(322).string(message.phpClassPrefix);
|
|
2187
|
+
}
|
|
2188
|
+
if (message.phpNamespace !== undefined && message.phpNamespace !== "") {
|
|
2189
|
+
writer.uint32(330).string(message.phpNamespace);
|
|
2190
|
+
}
|
|
2191
|
+
if (message.phpMetadataNamespace !== undefined && message.phpMetadataNamespace !== "") {
|
|
2192
|
+
writer.uint32(354).string(message.phpMetadataNamespace);
|
|
2193
|
+
}
|
|
2194
|
+
if (message.rubyPackage !== undefined && message.rubyPackage !== "") {
|
|
2195
|
+
writer.uint32(362).string(message.rubyPackage);
|
|
2196
|
+
}
|
|
2197
|
+
for (const v of (_a = message.uninterpretedOption) !== null && _a !== void 0 ? _a : []) {
|
|
2198
|
+
UninterpretedOption.encode(v, writer.uint32(7994).fork()).ldelim();
|
|
1619
2199
|
}
|
|
1620
2200
|
return writer;
|
|
1621
|
-
}
|
|
1622
|
-
|
|
2201
|
+
}
|
|
2202
|
+
FileOptions.encode = encode;
|
|
2203
|
+
function decode(input, length) {
|
|
1623
2204
|
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
1624
2205
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1625
2206
|
const message = createBaseFileOptions();
|
|
@@ -1627,104 +2208,141 @@ exports.FileOptions = {
|
|
|
1627
2208
|
const tag = reader.uint32();
|
|
1628
2209
|
switch (tag >>> 3) {
|
|
1629
2210
|
case 1:
|
|
1630
|
-
if (tag
|
|
2211
|
+
if (tag !== 10) {
|
|
1631
2212
|
break;
|
|
1632
2213
|
}
|
|
1633
2214
|
message.javaPackage = reader.string();
|
|
1634
2215
|
continue;
|
|
1635
2216
|
case 8:
|
|
1636
|
-
if (tag
|
|
2217
|
+
if (tag !== 66) {
|
|
1637
2218
|
break;
|
|
1638
2219
|
}
|
|
1639
2220
|
message.javaOuterClassname = reader.string();
|
|
1640
2221
|
continue;
|
|
1641
2222
|
case 10:
|
|
1642
|
-
if (tag
|
|
2223
|
+
if (tag !== 80) {
|
|
1643
2224
|
break;
|
|
1644
2225
|
}
|
|
1645
2226
|
message.javaMultipleFiles = reader.bool();
|
|
1646
2227
|
continue;
|
|
1647
2228
|
case 20:
|
|
1648
|
-
if (tag
|
|
2229
|
+
if (tag !== 160) {
|
|
1649
2230
|
break;
|
|
1650
2231
|
}
|
|
1651
2232
|
message.javaGenerateEqualsAndHash = reader.bool();
|
|
1652
2233
|
continue;
|
|
1653
2234
|
case 27:
|
|
1654
|
-
if (tag
|
|
2235
|
+
if (tag !== 216) {
|
|
1655
2236
|
break;
|
|
1656
2237
|
}
|
|
1657
2238
|
message.javaStringCheckUtf8 = reader.bool();
|
|
1658
2239
|
continue;
|
|
1659
2240
|
case 9:
|
|
1660
|
-
if (tag
|
|
2241
|
+
if (tag !== 72) {
|
|
1661
2242
|
break;
|
|
1662
2243
|
}
|
|
1663
2244
|
message.optimizeFor = reader.int32();
|
|
1664
2245
|
continue;
|
|
1665
2246
|
case 11:
|
|
1666
|
-
if (tag
|
|
2247
|
+
if (tag !== 90) {
|
|
1667
2248
|
break;
|
|
1668
2249
|
}
|
|
1669
2250
|
message.goPackage = reader.string();
|
|
1670
2251
|
continue;
|
|
1671
2252
|
case 16:
|
|
1672
|
-
if (tag
|
|
2253
|
+
if (tag !== 128) {
|
|
1673
2254
|
break;
|
|
1674
2255
|
}
|
|
1675
2256
|
message.ccGenericServices = reader.bool();
|
|
1676
2257
|
continue;
|
|
1677
2258
|
case 17:
|
|
1678
|
-
if (tag
|
|
2259
|
+
if (tag !== 136) {
|
|
1679
2260
|
break;
|
|
1680
2261
|
}
|
|
1681
2262
|
message.javaGenericServices = reader.bool();
|
|
1682
2263
|
continue;
|
|
1683
2264
|
case 18:
|
|
1684
|
-
if (tag
|
|
2265
|
+
if (tag !== 144) {
|
|
1685
2266
|
break;
|
|
1686
2267
|
}
|
|
1687
2268
|
message.pyGenericServices = reader.bool();
|
|
1688
2269
|
continue;
|
|
2270
|
+
case 42:
|
|
2271
|
+
if (tag !== 336) {
|
|
2272
|
+
break;
|
|
2273
|
+
}
|
|
2274
|
+
message.phpGenericServices = reader.bool();
|
|
2275
|
+
continue;
|
|
1689
2276
|
case 23:
|
|
1690
|
-
if (tag
|
|
2277
|
+
if (tag !== 184) {
|
|
1691
2278
|
break;
|
|
1692
2279
|
}
|
|
1693
2280
|
message.deprecated = reader.bool();
|
|
1694
2281
|
continue;
|
|
1695
2282
|
case 31:
|
|
1696
|
-
if (tag
|
|
2283
|
+
if (tag !== 248) {
|
|
1697
2284
|
break;
|
|
1698
2285
|
}
|
|
1699
2286
|
message.ccEnableArenas = reader.bool();
|
|
1700
2287
|
continue;
|
|
1701
2288
|
case 36:
|
|
1702
|
-
if (tag
|
|
2289
|
+
if (tag !== 290) {
|
|
1703
2290
|
break;
|
|
1704
2291
|
}
|
|
1705
2292
|
message.objcClassPrefix = reader.string();
|
|
1706
2293
|
continue;
|
|
1707
2294
|
case 37:
|
|
1708
|
-
if (tag
|
|
2295
|
+
if (tag !== 298) {
|
|
1709
2296
|
break;
|
|
1710
2297
|
}
|
|
1711
2298
|
message.csharpNamespace = reader.string();
|
|
1712
2299
|
continue;
|
|
2300
|
+
case 39:
|
|
2301
|
+
if (tag !== 314) {
|
|
2302
|
+
break;
|
|
2303
|
+
}
|
|
2304
|
+
message.swiftPrefix = reader.string();
|
|
2305
|
+
continue;
|
|
2306
|
+
case 40:
|
|
2307
|
+
if (tag !== 322) {
|
|
2308
|
+
break;
|
|
2309
|
+
}
|
|
2310
|
+
message.phpClassPrefix = reader.string();
|
|
2311
|
+
continue;
|
|
2312
|
+
case 41:
|
|
2313
|
+
if (tag !== 330) {
|
|
2314
|
+
break;
|
|
2315
|
+
}
|
|
2316
|
+
message.phpNamespace = reader.string();
|
|
2317
|
+
continue;
|
|
2318
|
+
case 44:
|
|
2319
|
+
if (tag !== 354) {
|
|
2320
|
+
break;
|
|
2321
|
+
}
|
|
2322
|
+
message.phpMetadataNamespace = reader.string();
|
|
2323
|
+
continue;
|
|
2324
|
+
case 45:
|
|
2325
|
+
if (tag !== 362) {
|
|
2326
|
+
break;
|
|
2327
|
+
}
|
|
2328
|
+
message.rubyPackage = reader.string();
|
|
2329
|
+
continue;
|
|
1713
2330
|
case 999:
|
|
1714
|
-
if (tag
|
|
2331
|
+
if (tag !== 7994) {
|
|
1715
2332
|
break;
|
|
1716
2333
|
}
|
|
1717
|
-
message.uninterpretedOption.push(
|
|
2334
|
+
message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32()));
|
|
1718
2335
|
continue;
|
|
1719
2336
|
}
|
|
1720
|
-
if ((tag & 7)
|
|
2337
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1721
2338
|
break;
|
|
1722
2339
|
}
|
|
1723
2340
|
reader.skipType(tag & 7);
|
|
1724
2341
|
}
|
|
1725
2342
|
return message;
|
|
1726
|
-
}
|
|
1727
|
-
|
|
2343
|
+
}
|
|
2344
|
+
FileOptions.decode = decode;
|
|
2345
|
+
function fromJSON(object) {
|
|
1728
2346
|
return {
|
|
1729
2347
|
javaPackage: isSet(object.javaPackage) ? String(object.javaPackage) : "",
|
|
1730
2348
|
javaOuterClassname: isSet(object.javaOuterClassname) ? String(object.javaOuterClassname) : "",
|
|
@@ -1738,16 +2356,23 @@ exports.FileOptions = {
|
|
|
1738
2356
|
ccGenericServices: isSet(object.ccGenericServices) ? Boolean(object.ccGenericServices) : false,
|
|
1739
2357
|
javaGenericServices: isSet(object.javaGenericServices) ? Boolean(object.javaGenericServices) : false,
|
|
1740
2358
|
pyGenericServices: isSet(object.pyGenericServices) ? Boolean(object.pyGenericServices) : false,
|
|
2359
|
+
phpGenericServices: isSet(object.phpGenericServices) ? Boolean(object.phpGenericServices) : false,
|
|
1741
2360
|
deprecated: isSet(object.deprecated) ? Boolean(object.deprecated) : false,
|
|
1742
2361
|
ccEnableArenas: isSet(object.ccEnableArenas) ? Boolean(object.ccEnableArenas) : false,
|
|
1743
2362
|
objcClassPrefix: isSet(object.objcClassPrefix) ? String(object.objcClassPrefix) : "",
|
|
1744
2363
|
csharpNamespace: isSet(object.csharpNamespace) ? String(object.csharpNamespace) : "",
|
|
2364
|
+
swiftPrefix: isSet(object.swiftPrefix) ? String(object.swiftPrefix) : "",
|
|
2365
|
+
phpClassPrefix: isSet(object.phpClassPrefix) ? String(object.phpClassPrefix) : "",
|
|
2366
|
+
phpNamespace: isSet(object.phpNamespace) ? String(object.phpNamespace) : "",
|
|
2367
|
+
phpMetadataNamespace: isSet(object.phpMetadataNamespace) ? String(object.phpMetadataNamespace) : "",
|
|
2368
|
+
rubyPackage: isSet(object.rubyPackage) ? String(object.rubyPackage) : "",
|
|
1745
2369
|
uninterpretedOption: Array.isArray(object === null || object === void 0 ? void 0 : object.uninterpretedOption)
|
|
1746
|
-
? object.uninterpretedOption.map((e) =>
|
|
2370
|
+
? object.uninterpretedOption.map((e) => UninterpretedOption.fromJSON(e))
|
|
1747
2371
|
: [],
|
|
1748
2372
|
};
|
|
1749
|
-
}
|
|
1750
|
-
|
|
2373
|
+
}
|
|
2374
|
+
FileOptions.fromJSON = fromJSON;
|
|
2375
|
+
function toJSON(message) {
|
|
1751
2376
|
const obj = {};
|
|
1752
2377
|
message.javaPackage !== undefined && (obj.javaPackage = message.javaPackage);
|
|
1753
2378
|
message.javaOuterClassname !== undefined && (obj.javaOuterClassname = message.javaOuterClassname);
|
|
@@ -1760,53 +2385,72 @@ exports.FileOptions = {
|
|
|
1760
2385
|
message.ccGenericServices !== undefined && (obj.ccGenericServices = message.ccGenericServices);
|
|
1761
2386
|
message.javaGenericServices !== undefined && (obj.javaGenericServices = message.javaGenericServices);
|
|
1762
2387
|
message.pyGenericServices !== undefined && (obj.pyGenericServices = message.pyGenericServices);
|
|
2388
|
+
message.phpGenericServices !== undefined && (obj.phpGenericServices = message.phpGenericServices);
|
|
1763
2389
|
message.deprecated !== undefined && (obj.deprecated = message.deprecated);
|
|
1764
2390
|
message.ccEnableArenas !== undefined && (obj.ccEnableArenas = message.ccEnableArenas);
|
|
1765
2391
|
message.objcClassPrefix !== undefined && (obj.objcClassPrefix = message.objcClassPrefix);
|
|
1766
2392
|
message.csharpNamespace !== undefined && (obj.csharpNamespace = message.csharpNamespace);
|
|
2393
|
+
message.swiftPrefix !== undefined && (obj.swiftPrefix = message.swiftPrefix);
|
|
2394
|
+
message.phpClassPrefix !== undefined && (obj.phpClassPrefix = message.phpClassPrefix);
|
|
2395
|
+
message.phpNamespace !== undefined && (obj.phpNamespace = message.phpNamespace);
|
|
2396
|
+
message.phpMetadataNamespace !== undefined && (obj.phpMetadataNamespace = message.phpMetadataNamespace);
|
|
2397
|
+
message.rubyPackage !== undefined && (obj.rubyPackage = message.rubyPackage);
|
|
1767
2398
|
if (message.uninterpretedOption) {
|
|
1768
|
-
obj.uninterpretedOption = message.uninterpretedOption.map((e) => e ?
|
|
2399
|
+
obj.uninterpretedOption = message.uninterpretedOption.map((e) => e ? UninterpretedOption.toJSON(e) : undefined);
|
|
1769
2400
|
}
|
|
1770
2401
|
else {
|
|
1771
2402
|
obj.uninterpretedOption = [];
|
|
1772
2403
|
}
|
|
1773
2404
|
return obj;
|
|
1774
|
-
}
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
2405
|
+
}
|
|
2406
|
+
FileOptions.toJSON = toJSON;
|
|
2407
|
+
function create(base) {
|
|
2408
|
+
return FileOptions.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
2409
|
+
}
|
|
2410
|
+
FileOptions.create = create;
|
|
2411
|
+
function fromPartial(object) {
|
|
2412
|
+
var _a;
|
|
2413
|
+
var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w;
|
|
1780
2414
|
const message = createBaseFileOptions();
|
|
1781
|
-
message.javaPackage = (
|
|
1782
|
-
message.javaOuterClassname = (
|
|
1783
|
-
message.javaMultipleFiles = (
|
|
1784
|
-
message.javaGenerateEqualsAndHash = (
|
|
1785
|
-
message.javaStringCheckUtf8 = (
|
|
1786
|
-
message.optimizeFor = (
|
|
1787
|
-
message.goPackage = (
|
|
1788
|
-
message.ccGenericServices = (
|
|
1789
|
-
message.javaGenericServices = (
|
|
1790
|
-
message.pyGenericServices = (
|
|
1791
|
-
message.
|
|
1792
|
-
message.
|
|
1793
|
-
message.
|
|
1794
|
-
message.
|
|
1795
|
-
message.
|
|
2415
|
+
message.javaPackage = (_b = object.javaPackage) !== null && _b !== void 0 ? _b : "";
|
|
2416
|
+
message.javaOuterClassname = (_c = object.javaOuterClassname) !== null && _c !== void 0 ? _c : "";
|
|
2417
|
+
message.javaMultipleFiles = (_d = object.javaMultipleFiles) !== null && _d !== void 0 ? _d : false;
|
|
2418
|
+
message.javaGenerateEqualsAndHash = (_e = object.javaGenerateEqualsAndHash) !== null && _e !== void 0 ? _e : false;
|
|
2419
|
+
message.javaStringCheckUtf8 = (_f = object.javaStringCheckUtf8) !== null && _f !== void 0 ? _f : false;
|
|
2420
|
+
message.optimizeFor = (_g = object.optimizeFor) !== null && _g !== void 0 ? _g : 1;
|
|
2421
|
+
message.goPackage = (_h = object.goPackage) !== null && _h !== void 0 ? _h : "";
|
|
2422
|
+
message.ccGenericServices = (_j = object.ccGenericServices) !== null && _j !== void 0 ? _j : false;
|
|
2423
|
+
message.javaGenericServices = (_k = object.javaGenericServices) !== null && _k !== void 0 ? _k : false;
|
|
2424
|
+
message.pyGenericServices = (_l = object.pyGenericServices) !== null && _l !== void 0 ? _l : false;
|
|
2425
|
+
message.phpGenericServices = (_m = object.phpGenericServices) !== null && _m !== void 0 ? _m : false;
|
|
2426
|
+
message.deprecated = (_o = object.deprecated) !== null && _o !== void 0 ? _o : false;
|
|
2427
|
+
message.ccEnableArenas = (_p = object.ccEnableArenas) !== null && _p !== void 0 ? _p : false;
|
|
2428
|
+
message.objcClassPrefix = (_q = object.objcClassPrefix) !== null && _q !== void 0 ? _q : "";
|
|
2429
|
+
message.csharpNamespace = (_r = object.csharpNamespace) !== null && _r !== void 0 ? _r : "";
|
|
2430
|
+
message.swiftPrefix = (_s = object.swiftPrefix) !== null && _s !== void 0 ? _s : "";
|
|
2431
|
+
message.phpClassPrefix = (_t = object.phpClassPrefix) !== null && _t !== void 0 ? _t : "";
|
|
2432
|
+
message.phpNamespace = (_u = object.phpNamespace) !== null && _u !== void 0 ? _u : "";
|
|
2433
|
+
message.phpMetadataNamespace = (_v = object.phpMetadataNamespace) !== null && _v !== void 0 ? _v : "";
|
|
2434
|
+
message.rubyPackage = (_w = object.rubyPackage) !== null && _w !== void 0 ? _w : "";
|
|
2435
|
+
message.uninterpretedOption = ((_a = object.uninterpretedOption) === null || _a === void 0 ? void 0 : _a.map((e) => UninterpretedOption.fromPartial(e))) || [];
|
|
1796
2436
|
return message;
|
|
1797
|
-
}
|
|
1798
|
-
|
|
2437
|
+
}
|
|
2438
|
+
FileOptions.fromPartial = fromPartial;
|
|
2439
|
+
})(FileOptions || (exports.FileOptions = FileOptions = {}));
|
|
1799
2440
|
function createBaseMessageOptions() {
|
|
1800
2441
|
return {
|
|
1801
2442
|
messageSetWireFormat: false,
|
|
1802
2443
|
noStandardDescriptorAccessor: false,
|
|
1803
2444
|
deprecated: false,
|
|
1804
2445
|
mapEntry: false,
|
|
2446
|
+
deprecatedLegacyJsonFieldConflicts: false,
|
|
1805
2447
|
uninterpretedOption: [],
|
|
1806
2448
|
};
|
|
1807
2449
|
}
|
|
1808
|
-
|
|
1809
|
-
|
|
2450
|
+
var MessageOptions;
|
|
2451
|
+
(function (MessageOptions) {
|
|
2452
|
+
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
2453
|
+
var _a;
|
|
1810
2454
|
if (message.messageSetWireFormat === true) {
|
|
1811
2455
|
writer.uint32(8).bool(message.messageSetWireFormat);
|
|
1812
2456
|
}
|
|
@@ -1819,12 +2463,16 @@ exports.MessageOptions = {
|
|
|
1819
2463
|
if (message.mapEntry === true) {
|
|
1820
2464
|
writer.uint32(56).bool(message.mapEntry);
|
|
1821
2465
|
}
|
|
1822
|
-
|
|
1823
|
-
|
|
2466
|
+
if (message.deprecatedLegacyJsonFieldConflicts === true) {
|
|
2467
|
+
writer.uint32(88).bool(message.deprecatedLegacyJsonFieldConflicts);
|
|
2468
|
+
}
|
|
2469
|
+
for (const v of (_a = message.uninterpretedOption) !== null && _a !== void 0 ? _a : []) {
|
|
2470
|
+
UninterpretedOption.encode(v, writer.uint32(7994).fork()).ldelim();
|
|
1824
2471
|
}
|
|
1825
2472
|
return writer;
|
|
1826
|
-
}
|
|
1827
|
-
|
|
2473
|
+
}
|
|
2474
|
+
MessageOptions.encode = encode;
|
|
2475
|
+
function decode(input, length) {
|
|
1828
2476
|
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
1829
2477
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1830
2478
|
const message = createBaseMessageOptions();
|
|
@@ -1832,44 +2480,51 @@ exports.MessageOptions = {
|
|
|
1832
2480
|
const tag = reader.uint32();
|
|
1833
2481
|
switch (tag >>> 3) {
|
|
1834
2482
|
case 1:
|
|
1835
|
-
if (tag
|
|
2483
|
+
if (tag !== 8) {
|
|
1836
2484
|
break;
|
|
1837
2485
|
}
|
|
1838
2486
|
message.messageSetWireFormat = reader.bool();
|
|
1839
2487
|
continue;
|
|
1840
2488
|
case 2:
|
|
1841
|
-
if (tag
|
|
2489
|
+
if (tag !== 16) {
|
|
1842
2490
|
break;
|
|
1843
2491
|
}
|
|
1844
2492
|
message.noStandardDescriptorAccessor = reader.bool();
|
|
1845
2493
|
continue;
|
|
1846
2494
|
case 3:
|
|
1847
|
-
if (tag
|
|
2495
|
+
if (tag !== 24) {
|
|
1848
2496
|
break;
|
|
1849
2497
|
}
|
|
1850
2498
|
message.deprecated = reader.bool();
|
|
1851
2499
|
continue;
|
|
1852
2500
|
case 7:
|
|
1853
|
-
if (tag
|
|
2501
|
+
if (tag !== 56) {
|
|
1854
2502
|
break;
|
|
1855
2503
|
}
|
|
1856
2504
|
message.mapEntry = reader.bool();
|
|
1857
2505
|
continue;
|
|
2506
|
+
case 11:
|
|
2507
|
+
if (tag !== 88) {
|
|
2508
|
+
break;
|
|
2509
|
+
}
|
|
2510
|
+
message.deprecatedLegacyJsonFieldConflicts = reader.bool();
|
|
2511
|
+
continue;
|
|
1858
2512
|
case 999:
|
|
1859
|
-
if (tag
|
|
2513
|
+
if (tag !== 7994) {
|
|
1860
2514
|
break;
|
|
1861
2515
|
}
|
|
1862
|
-
message.uninterpretedOption.push(
|
|
2516
|
+
message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32()));
|
|
1863
2517
|
continue;
|
|
1864
2518
|
}
|
|
1865
|
-
if ((tag & 7)
|
|
2519
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1866
2520
|
break;
|
|
1867
2521
|
}
|
|
1868
2522
|
reader.skipType(tag & 7);
|
|
1869
2523
|
}
|
|
1870
2524
|
return message;
|
|
1871
|
-
}
|
|
1872
|
-
|
|
2525
|
+
}
|
|
2526
|
+
MessageOptions.decode = decode;
|
|
2527
|
+
function fromJSON(object) {
|
|
1873
2528
|
return {
|
|
1874
2529
|
messageSetWireFormat: isSet(object.messageSetWireFormat) ? Boolean(object.messageSetWireFormat) : false,
|
|
1875
2530
|
noStandardDescriptorAccessor: isSet(object.noStandardDescriptorAccessor)
|
|
@@ -1877,69 +2532,107 @@ exports.MessageOptions = {
|
|
|
1877
2532
|
: false,
|
|
1878
2533
|
deprecated: isSet(object.deprecated) ? Boolean(object.deprecated) : false,
|
|
1879
2534
|
mapEntry: isSet(object.mapEntry) ? Boolean(object.mapEntry) : false,
|
|
2535
|
+
deprecatedLegacyJsonFieldConflicts: isSet(object.deprecatedLegacyJsonFieldConflicts)
|
|
2536
|
+
? Boolean(object.deprecatedLegacyJsonFieldConflicts)
|
|
2537
|
+
: false,
|
|
1880
2538
|
uninterpretedOption: Array.isArray(object === null || object === void 0 ? void 0 : object.uninterpretedOption)
|
|
1881
|
-
? object.uninterpretedOption.map((e) =>
|
|
2539
|
+
? object.uninterpretedOption.map((e) => UninterpretedOption.fromJSON(e))
|
|
1882
2540
|
: [],
|
|
1883
2541
|
};
|
|
1884
|
-
}
|
|
1885
|
-
|
|
2542
|
+
}
|
|
2543
|
+
MessageOptions.fromJSON = fromJSON;
|
|
2544
|
+
function toJSON(message) {
|
|
1886
2545
|
const obj = {};
|
|
1887
2546
|
message.messageSetWireFormat !== undefined && (obj.messageSetWireFormat = message.messageSetWireFormat);
|
|
1888
2547
|
message.noStandardDescriptorAccessor !== undefined &&
|
|
1889
2548
|
(obj.noStandardDescriptorAccessor = message.noStandardDescriptorAccessor);
|
|
1890
2549
|
message.deprecated !== undefined && (obj.deprecated = message.deprecated);
|
|
1891
2550
|
message.mapEntry !== undefined && (obj.mapEntry = message.mapEntry);
|
|
2551
|
+
message.deprecatedLegacyJsonFieldConflicts !== undefined &&
|
|
2552
|
+
(obj.deprecatedLegacyJsonFieldConflicts = message.deprecatedLegacyJsonFieldConflicts);
|
|
1892
2553
|
if (message.uninterpretedOption) {
|
|
1893
|
-
obj.uninterpretedOption = message.uninterpretedOption.map((e) => e ?
|
|
2554
|
+
obj.uninterpretedOption = message.uninterpretedOption.map((e) => e ? UninterpretedOption.toJSON(e) : undefined);
|
|
1894
2555
|
}
|
|
1895
2556
|
else {
|
|
1896
2557
|
obj.uninterpretedOption = [];
|
|
1897
2558
|
}
|
|
1898
2559
|
return obj;
|
|
1899
|
-
}
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
2560
|
+
}
|
|
2561
|
+
MessageOptions.toJSON = toJSON;
|
|
2562
|
+
function create(base) {
|
|
2563
|
+
return MessageOptions.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
2564
|
+
}
|
|
2565
|
+
MessageOptions.create = create;
|
|
2566
|
+
function fromPartial(object) {
|
|
2567
|
+
var _a;
|
|
2568
|
+
var _b, _c, _d, _e, _f;
|
|
1905
2569
|
const message = createBaseMessageOptions();
|
|
1906
|
-
message.messageSetWireFormat = (
|
|
1907
|
-
message.noStandardDescriptorAccessor = (
|
|
1908
|
-
message.deprecated = (
|
|
1909
|
-
message.mapEntry = (
|
|
1910
|
-
message.
|
|
2570
|
+
message.messageSetWireFormat = (_b = object.messageSetWireFormat) !== null && _b !== void 0 ? _b : false;
|
|
2571
|
+
message.noStandardDescriptorAccessor = (_c = object.noStandardDescriptorAccessor) !== null && _c !== void 0 ? _c : false;
|
|
2572
|
+
message.deprecated = (_d = object.deprecated) !== null && _d !== void 0 ? _d : false;
|
|
2573
|
+
message.mapEntry = (_e = object.mapEntry) !== null && _e !== void 0 ? _e : false;
|
|
2574
|
+
message.deprecatedLegacyJsonFieldConflicts = (_f = object.deprecatedLegacyJsonFieldConflicts) !== null && _f !== void 0 ? _f : false;
|
|
2575
|
+
message.uninterpretedOption = ((_a = object.uninterpretedOption) === null || _a === void 0 ? void 0 : _a.map((e) => UninterpretedOption.fromPartial(e))) || [];
|
|
1911
2576
|
return message;
|
|
1912
|
-
}
|
|
1913
|
-
|
|
2577
|
+
}
|
|
2578
|
+
MessageOptions.fromPartial = fromPartial;
|
|
2579
|
+
})(MessageOptions || (exports.MessageOptions = MessageOptions = {}));
|
|
1914
2580
|
function createBaseFieldOptions() {
|
|
1915
|
-
return {
|
|
2581
|
+
return {
|
|
2582
|
+
ctype: 0,
|
|
2583
|
+
packed: false,
|
|
2584
|
+
jstype: 0,
|
|
2585
|
+
lazy: false,
|
|
2586
|
+
unverifiedLazy: false,
|
|
2587
|
+
deprecated: false,
|
|
2588
|
+
weak: false,
|
|
2589
|
+
debugRedact: false,
|
|
2590
|
+
retention: 0,
|
|
2591
|
+
target: 0,
|
|
2592
|
+
uninterpretedOption: [],
|
|
2593
|
+
};
|
|
1916
2594
|
}
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
2595
|
+
var FieldOptions;
|
|
2596
|
+
(function (FieldOptions) {
|
|
2597
|
+
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
2598
|
+
var _a;
|
|
2599
|
+
if (message.ctype !== undefined && message.ctype !== 0) {
|
|
1920
2600
|
writer.uint32(8).int32(message.ctype);
|
|
1921
2601
|
}
|
|
1922
2602
|
if (message.packed === true) {
|
|
1923
2603
|
writer.uint32(16).bool(message.packed);
|
|
1924
2604
|
}
|
|
1925
|
-
if (message.jstype !== 0) {
|
|
2605
|
+
if (message.jstype !== undefined && message.jstype !== 0) {
|
|
1926
2606
|
writer.uint32(48).int32(message.jstype);
|
|
1927
2607
|
}
|
|
1928
2608
|
if (message.lazy === true) {
|
|
1929
2609
|
writer.uint32(40).bool(message.lazy);
|
|
1930
2610
|
}
|
|
2611
|
+
if (message.unverifiedLazy === true) {
|
|
2612
|
+
writer.uint32(120).bool(message.unverifiedLazy);
|
|
2613
|
+
}
|
|
1931
2614
|
if (message.deprecated === true) {
|
|
1932
2615
|
writer.uint32(24).bool(message.deprecated);
|
|
1933
2616
|
}
|
|
1934
2617
|
if (message.weak === true) {
|
|
1935
2618
|
writer.uint32(80).bool(message.weak);
|
|
1936
2619
|
}
|
|
1937
|
-
|
|
1938
|
-
|
|
2620
|
+
if (message.debugRedact === true) {
|
|
2621
|
+
writer.uint32(128).bool(message.debugRedact);
|
|
2622
|
+
}
|
|
2623
|
+
if (message.retention !== undefined && message.retention !== 0) {
|
|
2624
|
+
writer.uint32(136).int32(message.retention);
|
|
2625
|
+
}
|
|
2626
|
+
if (message.target !== undefined && message.target !== 0) {
|
|
2627
|
+
writer.uint32(144).int32(message.target);
|
|
2628
|
+
}
|
|
2629
|
+
for (const v of (_a = message.uninterpretedOption) !== null && _a !== void 0 ? _a : []) {
|
|
2630
|
+
UninterpretedOption.encode(v, writer.uint32(7994).fork()).ldelim();
|
|
1939
2631
|
}
|
|
1940
2632
|
return writer;
|
|
1941
|
-
}
|
|
1942
|
-
|
|
2633
|
+
}
|
|
2634
|
+
FieldOptions.encode = encode;
|
|
2635
|
+
function decode(input, length) {
|
|
1943
2636
|
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
1944
2637
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1945
2638
|
const message = createBaseFieldOptions();
|
|
@@ -1947,111 +2640,156 @@ exports.FieldOptions = {
|
|
|
1947
2640
|
const tag = reader.uint32();
|
|
1948
2641
|
switch (tag >>> 3) {
|
|
1949
2642
|
case 1:
|
|
1950
|
-
if (tag
|
|
2643
|
+
if (tag !== 8) {
|
|
1951
2644
|
break;
|
|
1952
2645
|
}
|
|
1953
2646
|
message.ctype = reader.int32();
|
|
1954
2647
|
continue;
|
|
1955
2648
|
case 2:
|
|
1956
|
-
if (tag
|
|
2649
|
+
if (tag !== 16) {
|
|
1957
2650
|
break;
|
|
1958
2651
|
}
|
|
1959
2652
|
message.packed = reader.bool();
|
|
1960
2653
|
continue;
|
|
1961
2654
|
case 6:
|
|
1962
|
-
if (tag
|
|
2655
|
+
if (tag !== 48) {
|
|
1963
2656
|
break;
|
|
1964
2657
|
}
|
|
1965
2658
|
message.jstype = reader.int32();
|
|
1966
2659
|
continue;
|
|
1967
2660
|
case 5:
|
|
1968
|
-
if (tag
|
|
2661
|
+
if (tag !== 40) {
|
|
1969
2662
|
break;
|
|
1970
2663
|
}
|
|
1971
2664
|
message.lazy = reader.bool();
|
|
1972
2665
|
continue;
|
|
2666
|
+
case 15:
|
|
2667
|
+
if (tag !== 120) {
|
|
2668
|
+
break;
|
|
2669
|
+
}
|
|
2670
|
+
message.unverifiedLazy = reader.bool();
|
|
2671
|
+
continue;
|
|
1973
2672
|
case 3:
|
|
1974
|
-
if (tag
|
|
2673
|
+
if (tag !== 24) {
|
|
1975
2674
|
break;
|
|
1976
2675
|
}
|
|
1977
2676
|
message.deprecated = reader.bool();
|
|
1978
2677
|
continue;
|
|
1979
2678
|
case 10:
|
|
1980
|
-
if (tag
|
|
2679
|
+
if (tag !== 80) {
|
|
1981
2680
|
break;
|
|
1982
2681
|
}
|
|
1983
2682
|
message.weak = reader.bool();
|
|
1984
2683
|
continue;
|
|
2684
|
+
case 16:
|
|
2685
|
+
if (tag !== 128) {
|
|
2686
|
+
break;
|
|
2687
|
+
}
|
|
2688
|
+
message.debugRedact = reader.bool();
|
|
2689
|
+
continue;
|
|
2690
|
+
case 17:
|
|
2691
|
+
if (tag !== 136) {
|
|
2692
|
+
break;
|
|
2693
|
+
}
|
|
2694
|
+
message.retention = reader.int32();
|
|
2695
|
+
continue;
|
|
2696
|
+
case 18:
|
|
2697
|
+
if (tag !== 144) {
|
|
2698
|
+
break;
|
|
2699
|
+
}
|
|
2700
|
+
message.target = reader.int32();
|
|
2701
|
+
continue;
|
|
1985
2702
|
case 999:
|
|
1986
|
-
if (tag
|
|
2703
|
+
if (tag !== 7994) {
|
|
1987
2704
|
break;
|
|
1988
2705
|
}
|
|
1989
|
-
message.uninterpretedOption.push(
|
|
2706
|
+
message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32()));
|
|
1990
2707
|
continue;
|
|
1991
2708
|
}
|
|
1992
|
-
if ((tag & 7)
|
|
2709
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1993
2710
|
break;
|
|
1994
2711
|
}
|
|
1995
2712
|
reader.skipType(tag & 7);
|
|
1996
2713
|
}
|
|
1997
2714
|
return message;
|
|
1998
|
-
}
|
|
1999
|
-
|
|
2715
|
+
}
|
|
2716
|
+
FieldOptions.decode = decode;
|
|
2717
|
+
function fromJSON(object) {
|
|
2000
2718
|
return {
|
|
2001
2719
|
ctype: isSet(object.ctype) ? fieldOptions_CTypeFromJSON(object.ctype) : 0,
|
|
2002
2720
|
packed: isSet(object.packed) ? Boolean(object.packed) : false,
|
|
2003
2721
|
jstype: isSet(object.jstype) ? fieldOptions_JSTypeFromJSON(object.jstype) : 0,
|
|
2004
2722
|
lazy: isSet(object.lazy) ? Boolean(object.lazy) : false,
|
|
2723
|
+
unverifiedLazy: isSet(object.unverifiedLazy) ? Boolean(object.unverifiedLazy) : false,
|
|
2005
2724
|
deprecated: isSet(object.deprecated) ? Boolean(object.deprecated) : false,
|
|
2006
2725
|
weak: isSet(object.weak) ? Boolean(object.weak) : false,
|
|
2726
|
+
debugRedact: isSet(object.debugRedact) ? Boolean(object.debugRedact) : false,
|
|
2727
|
+
retention: isSet(object.retention) ? fieldOptions_OptionRetentionFromJSON(object.retention) : 0,
|
|
2728
|
+
target: isSet(object.target) ? fieldOptions_OptionTargetTypeFromJSON(object.target) : 0,
|
|
2007
2729
|
uninterpretedOption: Array.isArray(object === null || object === void 0 ? void 0 : object.uninterpretedOption)
|
|
2008
|
-
? object.uninterpretedOption.map((e) =>
|
|
2730
|
+
? object.uninterpretedOption.map((e) => UninterpretedOption.fromJSON(e))
|
|
2009
2731
|
: [],
|
|
2010
2732
|
};
|
|
2011
|
-
}
|
|
2012
|
-
|
|
2733
|
+
}
|
|
2734
|
+
FieldOptions.fromJSON = fromJSON;
|
|
2735
|
+
function toJSON(message) {
|
|
2013
2736
|
const obj = {};
|
|
2014
2737
|
message.ctype !== undefined && (obj.ctype = fieldOptions_CTypeToJSON(message.ctype));
|
|
2015
2738
|
message.packed !== undefined && (obj.packed = message.packed);
|
|
2016
2739
|
message.jstype !== undefined && (obj.jstype = fieldOptions_JSTypeToJSON(message.jstype));
|
|
2017
2740
|
message.lazy !== undefined && (obj.lazy = message.lazy);
|
|
2741
|
+
message.unverifiedLazy !== undefined && (obj.unverifiedLazy = message.unverifiedLazy);
|
|
2018
2742
|
message.deprecated !== undefined && (obj.deprecated = message.deprecated);
|
|
2019
2743
|
message.weak !== undefined && (obj.weak = message.weak);
|
|
2744
|
+
message.debugRedact !== undefined && (obj.debugRedact = message.debugRedact);
|
|
2745
|
+
message.retention !== undefined && (obj.retention = fieldOptions_OptionRetentionToJSON(message.retention));
|
|
2746
|
+
message.target !== undefined && (obj.target = fieldOptions_OptionTargetTypeToJSON(message.target));
|
|
2020
2747
|
if (message.uninterpretedOption) {
|
|
2021
|
-
obj.uninterpretedOption = message.uninterpretedOption.map((e) => e ?
|
|
2748
|
+
obj.uninterpretedOption = message.uninterpretedOption.map((e) => e ? UninterpretedOption.toJSON(e) : undefined);
|
|
2022
2749
|
}
|
|
2023
2750
|
else {
|
|
2024
2751
|
obj.uninterpretedOption = [];
|
|
2025
2752
|
}
|
|
2026
2753
|
return obj;
|
|
2027
|
-
}
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2754
|
+
}
|
|
2755
|
+
FieldOptions.toJSON = toJSON;
|
|
2756
|
+
function create(base) {
|
|
2757
|
+
return FieldOptions.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
2758
|
+
}
|
|
2759
|
+
FieldOptions.create = create;
|
|
2760
|
+
function fromPartial(object) {
|
|
2761
|
+
var _a;
|
|
2762
|
+
var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
2033
2763
|
const message = createBaseFieldOptions();
|
|
2034
|
-
message.ctype = (
|
|
2035
|
-
message.packed = (
|
|
2036
|
-
message.jstype = (
|
|
2037
|
-
message.lazy = (
|
|
2038
|
-
message.
|
|
2039
|
-
message.
|
|
2040
|
-
message.
|
|
2764
|
+
message.ctype = (_b = object.ctype) !== null && _b !== void 0 ? _b : 0;
|
|
2765
|
+
message.packed = (_c = object.packed) !== null && _c !== void 0 ? _c : false;
|
|
2766
|
+
message.jstype = (_d = object.jstype) !== null && _d !== void 0 ? _d : 0;
|
|
2767
|
+
message.lazy = (_e = object.lazy) !== null && _e !== void 0 ? _e : false;
|
|
2768
|
+
message.unverifiedLazy = (_f = object.unverifiedLazy) !== null && _f !== void 0 ? _f : false;
|
|
2769
|
+
message.deprecated = (_g = object.deprecated) !== null && _g !== void 0 ? _g : false;
|
|
2770
|
+
message.weak = (_h = object.weak) !== null && _h !== void 0 ? _h : false;
|
|
2771
|
+
message.debugRedact = (_j = object.debugRedact) !== null && _j !== void 0 ? _j : false;
|
|
2772
|
+
message.retention = (_k = object.retention) !== null && _k !== void 0 ? _k : 0;
|
|
2773
|
+
message.target = (_l = object.target) !== null && _l !== void 0 ? _l : 0;
|
|
2774
|
+
message.uninterpretedOption = ((_a = object.uninterpretedOption) === null || _a === void 0 ? void 0 : _a.map((e) => UninterpretedOption.fromPartial(e))) || [];
|
|
2041
2775
|
return message;
|
|
2042
|
-
}
|
|
2043
|
-
|
|
2776
|
+
}
|
|
2777
|
+
FieldOptions.fromPartial = fromPartial;
|
|
2778
|
+
})(FieldOptions || (exports.FieldOptions = FieldOptions = {}));
|
|
2044
2779
|
function createBaseOneofOptions() {
|
|
2045
2780
|
return { uninterpretedOption: [] };
|
|
2046
2781
|
}
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2782
|
+
var OneofOptions;
|
|
2783
|
+
(function (OneofOptions) {
|
|
2784
|
+
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
2785
|
+
var _a;
|
|
2786
|
+
for (const v of (_a = message.uninterpretedOption) !== null && _a !== void 0 ? _a : []) {
|
|
2787
|
+
UninterpretedOption.encode(v, writer.uint32(7994).fork()).ldelim();
|
|
2051
2788
|
}
|
|
2052
2789
|
return writer;
|
|
2053
|
-
}
|
|
2054
|
-
|
|
2790
|
+
}
|
|
2791
|
+
OneofOptions.encode = encode;
|
|
2792
|
+
function decode(input, length) {
|
|
2055
2793
|
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
2056
2794
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2057
2795
|
const message = createBaseOneofOptions();
|
|
@@ -2059,63 +2797,74 @@ exports.OneofOptions = {
|
|
|
2059
2797
|
const tag = reader.uint32();
|
|
2060
2798
|
switch (tag >>> 3) {
|
|
2061
2799
|
case 999:
|
|
2062
|
-
if (tag
|
|
2800
|
+
if (tag !== 7994) {
|
|
2063
2801
|
break;
|
|
2064
2802
|
}
|
|
2065
|
-
message.uninterpretedOption.push(
|
|
2803
|
+
message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32()));
|
|
2066
2804
|
continue;
|
|
2067
2805
|
}
|
|
2068
|
-
if ((tag & 7)
|
|
2806
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2069
2807
|
break;
|
|
2070
2808
|
}
|
|
2071
2809
|
reader.skipType(tag & 7);
|
|
2072
2810
|
}
|
|
2073
2811
|
return message;
|
|
2074
|
-
}
|
|
2075
|
-
|
|
2812
|
+
}
|
|
2813
|
+
OneofOptions.decode = decode;
|
|
2814
|
+
function fromJSON(object) {
|
|
2076
2815
|
return {
|
|
2077
2816
|
uninterpretedOption: Array.isArray(object === null || object === void 0 ? void 0 : object.uninterpretedOption)
|
|
2078
|
-
? object.uninterpretedOption.map((e) =>
|
|
2817
|
+
? object.uninterpretedOption.map((e) => UninterpretedOption.fromJSON(e))
|
|
2079
2818
|
: [],
|
|
2080
2819
|
};
|
|
2081
|
-
}
|
|
2082
|
-
|
|
2820
|
+
}
|
|
2821
|
+
OneofOptions.fromJSON = fromJSON;
|
|
2822
|
+
function toJSON(message) {
|
|
2083
2823
|
const obj = {};
|
|
2084
2824
|
if (message.uninterpretedOption) {
|
|
2085
|
-
obj.uninterpretedOption = message.uninterpretedOption.map((e) => e ?
|
|
2825
|
+
obj.uninterpretedOption = message.uninterpretedOption.map((e) => e ? UninterpretedOption.toJSON(e) : undefined);
|
|
2086
2826
|
}
|
|
2087
2827
|
else {
|
|
2088
2828
|
obj.uninterpretedOption = [];
|
|
2089
2829
|
}
|
|
2090
2830
|
return obj;
|
|
2091
|
-
}
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2831
|
+
}
|
|
2832
|
+
OneofOptions.toJSON = toJSON;
|
|
2833
|
+
function create(base) {
|
|
2834
|
+
return OneofOptions.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
2835
|
+
}
|
|
2836
|
+
OneofOptions.create = create;
|
|
2837
|
+
function fromPartial(object) {
|
|
2096
2838
|
var _a;
|
|
2097
2839
|
const message = createBaseOneofOptions();
|
|
2098
|
-
message.uninterpretedOption = ((_a = object.uninterpretedOption) === null || _a === void 0 ? void 0 : _a.map((e) =>
|
|
2840
|
+
message.uninterpretedOption = ((_a = object.uninterpretedOption) === null || _a === void 0 ? void 0 : _a.map((e) => UninterpretedOption.fromPartial(e))) || [];
|
|
2099
2841
|
return message;
|
|
2100
|
-
}
|
|
2101
|
-
|
|
2842
|
+
}
|
|
2843
|
+
OneofOptions.fromPartial = fromPartial;
|
|
2844
|
+
})(OneofOptions || (exports.OneofOptions = OneofOptions = {}));
|
|
2102
2845
|
function createBaseEnumOptions() {
|
|
2103
|
-
return { allowAlias: false, deprecated: false, uninterpretedOption: [] };
|
|
2846
|
+
return { allowAlias: false, deprecated: false, deprecatedLegacyJsonFieldConflicts: false, uninterpretedOption: [] };
|
|
2104
2847
|
}
|
|
2105
|
-
|
|
2106
|
-
|
|
2848
|
+
var EnumOptions;
|
|
2849
|
+
(function (EnumOptions) {
|
|
2850
|
+
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
2851
|
+
var _a;
|
|
2107
2852
|
if (message.allowAlias === true) {
|
|
2108
2853
|
writer.uint32(16).bool(message.allowAlias);
|
|
2109
2854
|
}
|
|
2110
2855
|
if (message.deprecated === true) {
|
|
2111
2856
|
writer.uint32(24).bool(message.deprecated);
|
|
2112
2857
|
}
|
|
2113
|
-
|
|
2114
|
-
|
|
2858
|
+
if (message.deprecatedLegacyJsonFieldConflicts === true) {
|
|
2859
|
+
writer.uint32(48).bool(message.deprecatedLegacyJsonFieldConflicts);
|
|
2860
|
+
}
|
|
2861
|
+
for (const v of (_a = message.uninterpretedOption) !== null && _a !== void 0 ? _a : []) {
|
|
2862
|
+
UninterpretedOption.encode(v, writer.uint32(7994).fork()).ldelim();
|
|
2115
2863
|
}
|
|
2116
2864
|
return writer;
|
|
2117
|
-
}
|
|
2118
|
-
|
|
2865
|
+
}
|
|
2866
|
+
EnumOptions.encode = encode;
|
|
2867
|
+
function decode(input, length) {
|
|
2119
2868
|
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
2120
2869
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2121
2870
|
const message = createBaseEnumOptions();
|
|
@@ -2123,78 +2872,99 @@ exports.EnumOptions = {
|
|
|
2123
2872
|
const tag = reader.uint32();
|
|
2124
2873
|
switch (tag >>> 3) {
|
|
2125
2874
|
case 2:
|
|
2126
|
-
if (tag
|
|
2875
|
+
if (tag !== 16) {
|
|
2127
2876
|
break;
|
|
2128
2877
|
}
|
|
2129
2878
|
message.allowAlias = reader.bool();
|
|
2130
2879
|
continue;
|
|
2131
2880
|
case 3:
|
|
2132
|
-
if (tag
|
|
2881
|
+
if (tag !== 24) {
|
|
2133
2882
|
break;
|
|
2134
2883
|
}
|
|
2135
2884
|
message.deprecated = reader.bool();
|
|
2136
2885
|
continue;
|
|
2886
|
+
case 6:
|
|
2887
|
+
if (tag !== 48) {
|
|
2888
|
+
break;
|
|
2889
|
+
}
|
|
2890
|
+
message.deprecatedLegacyJsonFieldConflicts = reader.bool();
|
|
2891
|
+
continue;
|
|
2137
2892
|
case 999:
|
|
2138
|
-
if (tag
|
|
2893
|
+
if (tag !== 7994) {
|
|
2139
2894
|
break;
|
|
2140
2895
|
}
|
|
2141
|
-
message.uninterpretedOption.push(
|
|
2896
|
+
message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32()));
|
|
2142
2897
|
continue;
|
|
2143
2898
|
}
|
|
2144
|
-
if ((tag & 7)
|
|
2899
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2145
2900
|
break;
|
|
2146
2901
|
}
|
|
2147
2902
|
reader.skipType(tag & 7);
|
|
2148
2903
|
}
|
|
2149
2904
|
return message;
|
|
2150
|
-
}
|
|
2151
|
-
|
|
2905
|
+
}
|
|
2906
|
+
EnumOptions.decode = decode;
|
|
2907
|
+
function fromJSON(object) {
|
|
2152
2908
|
return {
|
|
2153
2909
|
allowAlias: isSet(object.allowAlias) ? Boolean(object.allowAlias) : false,
|
|
2154
2910
|
deprecated: isSet(object.deprecated) ? Boolean(object.deprecated) : false,
|
|
2911
|
+
deprecatedLegacyJsonFieldConflicts: isSet(object.deprecatedLegacyJsonFieldConflicts)
|
|
2912
|
+
? Boolean(object.deprecatedLegacyJsonFieldConflicts)
|
|
2913
|
+
: false,
|
|
2155
2914
|
uninterpretedOption: Array.isArray(object === null || object === void 0 ? void 0 : object.uninterpretedOption)
|
|
2156
|
-
? object.uninterpretedOption.map((e) =>
|
|
2915
|
+
? object.uninterpretedOption.map((e) => UninterpretedOption.fromJSON(e))
|
|
2157
2916
|
: [],
|
|
2158
2917
|
};
|
|
2159
|
-
}
|
|
2160
|
-
|
|
2918
|
+
}
|
|
2919
|
+
EnumOptions.fromJSON = fromJSON;
|
|
2920
|
+
function toJSON(message) {
|
|
2161
2921
|
const obj = {};
|
|
2162
2922
|
message.allowAlias !== undefined && (obj.allowAlias = message.allowAlias);
|
|
2163
2923
|
message.deprecated !== undefined && (obj.deprecated = message.deprecated);
|
|
2924
|
+
message.deprecatedLegacyJsonFieldConflicts !== undefined &&
|
|
2925
|
+
(obj.deprecatedLegacyJsonFieldConflicts = message.deprecatedLegacyJsonFieldConflicts);
|
|
2164
2926
|
if (message.uninterpretedOption) {
|
|
2165
|
-
obj.uninterpretedOption = message.uninterpretedOption.map((e) => e ?
|
|
2927
|
+
obj.uninterpretedOption = message.uninterpretedOption.map((e) => e ? UninterpretedOption.toJSON(e) : undefined);
|
|
2166
2928
|
}
|
|
2167
2929
|
else {
|
|
2168
2930
|
obj.uninterpretedOption = [];
|
|
2169
2931
|
}
|
|
2170
2932
|
return obj;
|
|
2171
|
-
}
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2933
|
+
}
|
|
2934
|
+
EnumOptions.toJSON = toJSON;
|
|
2935
|
+
function create(base) {
|
|
2936
|
+
return EnumOptions.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
2937
|
+
}
|
|
2938
|
+
EnumOptions.create = create;
|
|
2939
|
+
function fromPartial(object) {
|
|
2940
|
+
var _a;
|
|
2941
|
+
var _b, _c, _d;
|
|
2177
2942
|
const message = createBaseEnumOptions();
|
|
2178
|
-
message.allowAlias = (
|
|
2179
|
-
message.deprecated = (
|
|
2180
|
-
message.
|
|
2943
|
+
message.allowAlias = (_b = object.allowAlias) !== null && _b !== void 0 ? _b : false;
|
|
2944
|
+
message.deprecated = (_c = object.deprecated) !== null && _c !== void 0 ? _c : false;
|
|
2945
|
+
message.deprecatedLegacyJsonFieldConflicts = (_d = object.deprecatedLegacyJsonFieldConflicts) !== null && _d !== void 0 ? _d : false;
|
|
2946
|
+
message.uninterpretedOption = ((_a = object.uninterpretedOption) === null || _a === void 0 ? void 0 : _a.map((e) => UninterpretedOption.fromPartial(e))) || [];
|
|
2181
2947
|
return message;
|
|
2182
|
-
}
|
|
2183
|
-
|
|
2948
|
+
}
|
|
2949
|
+
EnumOptions.fromPartial = fromPartial;
|
|
2950
|
+
})(EnumOptions || (exports.EnumOptions = EnumOptions = {}));
|
|
2184
2951
|
function createBaseEnumValueOptions() {
|
|
2185
2952
|
return { deprecated: false, uninterpretedOption: [] };
|
|
2186
2953
|
}
|
|
2187
|
-
|
|
2188
|
-
|
|
2954
|
+
var EnumValueOptions;
|
|
2955
|
+
(function (EnumValueOptions) {
|
|
2956
|
+
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
2957
|
+
var _a;
|
|
2189
2958
|
if (message.deprecated === true) {
|
|
2190
2959
|
writer.uint32(8).bool(message.deprecated);
|
|
2191
2960
|
}
|
|
2192
|
-
for (const v of message.uninterpretedOption) {
|
|
2193
|
-
|
|
2961
|
+
for (const v of (_a = message.uninterpretedOption) !== null && _a !== void 0 ? _a : []) {
|
|
2962
|
+
UninterpretedOption.encode(v, writer.uint32(7994).fork()).ldelim();
|
|
2194
2963
|
}
|
|
2195
2964
|
return writer;
|
|
2196
|
-
}
|
|
2197
|
-
|
|
2965
|
+
}
|
|
2966
|
+
EnumValueOptions.encode = encode;
|
|
2967
|
+
function decode(input, length) {
|
|
2198
2968
|
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
2199
2969
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2200
2970
|
const message = createBaseEnumValueOptions();
|
|
@@ -2202,69 +2972,78 @@ exports.EnumValueOptions = {
|
|
|
2202
2972
|
const tag = reader.uint32();
|
|
2203
2973
|
switch (tag >>> 3) {
|
|
2204
2974
|
case 1:
|
|
2205
|
-
if (tag
|
|
2975
|
+
if (tag !== 8) {
|
|
2206
2976
|
break;
|
|
2207
2977
|
}
|
|
2208
2978
|
message.deprecated = reader.bool();
|
|
2209
2979
|
continue;
|
|
2210
2980
|
case 999:
|
|
2211
|
-
if (tag
|
|
2981
|
+
if (tag !== 7994) {
|
|
2212
2982
|
break;
|
|
2213
2983
|
}
|
|
2214
|
-
message.uninterpretedOption.push(
|
|
2984
|
+
message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32()));
|
|
2215
2985
|
continue;
|
|
2216
2986
|
}
|
|
2217
|
-
if ((tag & 7)
|
|
2987
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2218
2988
|
break;
|
|
2219
2989
|
}
|
|
2220
2990
|
reader.skipType(tag & 7);
|
|
2221
2991
|
}
|
|
2222
2992
|
return message;
|
|
2223
|
-
}
|
|
2224
|
-
|
|
2993
|
+
}
|
|
2994
|
+
EnumValueOptions.decode = decode;
|
|
2995
|
+
function fromJSON(object) {
|
|
2225
2996
|
return {
|
|
2226
2997
|
deprecated: isSet(object.deprecated) ? Boolean(object.deprecated) : false,
|
|
2227
2998
|
uninterpretedOption: Array.isArray(object === null || object === void 0 ? void 0 : object.uninterpretedOption)
|
|
2228
|
-
? object.uninterpretedOption.map((e) =>
|
|
2999
|
+
? object.uninterpretedOption.map((e) => UninterpretedOption.fromJSON(e))
|
|
2229
3000
|
: [],
|
|
2230
3001
|
};
|
|
2231
|
-
}
|
|
2232
|
-
|
|
3002
|
+
}
|
|
3003
|
+
EnumValueOptions.fromJSON = fromJSON;
|
|
3004
|
+
function toJSON(message) {
|
|
2233
3005
|
const obj = {};
|
|
2234
3006
|
message.deprecated !== undefined && (obj.deprecated = message.deprecated);
|
|
2235
3007
|
if (message.uninterpretedOption) {
|
|
2236
|
-
obj.uninterpretedOption = message.uninterpretedOption.map((e) => e ?
|
|
3008
|
+
obj.uninterpretedOption = message.uninterpretedOption.map((e) => e ? UninterpretedOption.toJSON(e) : undefined);
|
|
2237
3009
|
}
|
|
2238
3010
|
else {
|
|
2239
3011
|
obj.uninterpretedOption = [];
|
|
2240
3012
|
}
|
|
2241
3013
|
return obj;
|
|
2242
|
-
}
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
3014
|
+
}
|
|
3015
|
+
EnumValueOptions.toJSON = toJSON;
|
|
3016
|
+
function create(base) {
|
|
3017
|
+
return EnumValueOptions.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
3018
|
+
}
|
|
3019
|
+
EnumValueOptions.create = create;
|
|
3020
|
+
function fromPartial(object) {
|
|
3021
|
+
var _a;
|
|
3022
|
+
var _b;
|
|
2248
3023
|
const message = createBaseEnumValueOptions();
|
|
2249
|
-
message.deprecated = (
|
|
2250
|
-
message.uninterpretedOption = ((
|
|
3024
|
+
message.deprecated = (_b = object.deprecated) !== null && _b !== void 0 ? _b : false;
|
|
3025
|
+
message.uninterpretedOption = ((_a = object.uninterpretedOption) === null || _a === void 0 ? void 0 : _a.map((e) => UninterpretedOption.fromPartial(e))) || [];
|
|
2251
3026
|
return message;
|
|
2252
|
-
}
|
|
2253
|
-
|
|
3027
|
+
}
|
|
3028
|
+
EnumValueOptions.fromPartial = fromPartial;
|
|
3029
|
+
})(EnumValueOptions || (exports.EnumValueOptions = EnumValueOptions = {}));
|
|
2254
3030
|
function createBaseServiceOptions() {
|
|
2255
3031
|
return { deprecated: false, uninterpretedOption: [] };
|
|
2256
3032
|
}
|
|
2257
|
-
|
|
2258
|
-
|
|
3033
|
+
var ServiceOptions;
|
|
3034
|
+
(function (ServiceOptions) {
|
|
3035
|
+
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
3036
|
+
var _a;
|
|
2259
3037
|
if (message.deprecated === true) {
|
|
2260
3038
|
writer.uint32(264).bool(message.deprecated);
|
|
2261
3039
|
}
|
|
2262
|
-
for (const v of message.uninterpretedOption) {
|
|
2263
|
-
|
|
3040
|
+
for (const v of (_a = message.uninterpretedOption) !== null && _a !== void 0 ? _a : []) {
|
|
3041
|
+
UninterpretedOption.encode(v, writer.uint32(7994).fork()).ldelim();
|
|
2264
3042
|
}
|
|
2265
3043
|
return writer;
|
|
2266
|
-
}
|
|
2267
|
-
|
|
3044
|
+
}
|
|
3045
|
+
ServiceOptions.encode = encode;
|
|
3046
|
+
function decode(input, length) {
|
|
2268
3047
|
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
2269
3048
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2270
3049
|
const message = createBaseServiceOptions();
|
|
@@ -2272,69 +3051,81 @@ exports.ServiceOptions = {
|
|
|
2272
3051
|
const tag = reader.uint32();
|
|
2273
3052
|
switch (tag >>> 3) {
|
|
2274
3053
|
case 33:
|
|
2275
|
-
if (tag
|
|
3054
|
+
if (tag !== 264) {
|
|
2276
3055
|
break;
|
|
2277
3056
|
}
|
|
2278
3057
|
message.deprecated = reader.bool();
|
|
2279
3058
|
continue;
|
|
2280
3059
|
case 999:
|
|
2281
|
-
if (tag
|
|
3060
|
+
if (tag !== 7994) {
|
|
2282
3061
|
break;
|
|
2283
3062
|
}
|
|
2284
|
-
message.uninterpretedOption.push(
|
|
3063
|
+
message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32()));
|
|
2285
3064
|
continue;
|
|
2286
3065
|
}
|
|
2287
|
-
if ((tag & 7)
|
|
3066
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2288
3067
|
break;
|
|
2289
3068
|
}
|
|
2290
3069
|
reader.skipType(tag & 7);
|
|
2291
3070
|
}
|
|
2292
3071
|
return message;
|
|
2293
|
-
}
|
|
2294
|
-
|
|
3072
|
+
}
|
|
3073
|
+
ServiceOptions.decode = decode;
|
|
3074
|
+
function fromJSON(object) {
|
|
2295
3075
|
return {
|
|
2296
3076
|
deprecated: isSet(object.deprecated) ? Boolean(object.deprecated) : false,
|
|
2297
3077
|
uninterpretedOption: Array.isArray(object === null || object === void 0 ? void 0 : object.uninterpretedOption)
|
|
2298
|
-
? object.uninterpretedOption.map((e) =>
|
|
3078
|
+
? object.uninterpretedOption.map((e) => UninterpretedOption.fromJSON(e))
|
|
2299
3079
|
: [],
|
|
2300
3080
|
};
|
|
2301
|
-
}
|
|
2302
|
-
|
|
3081
|
+
}
|
|
3082
|
+
ServiceOptions.fromJSON = fromJSON;
|
|
3083
|
+
function toJSON(message) {
|
|
2303
3084
|
const obj = {};
|
|
2304
3085
|
message.deprecated !== undefined && (obj.deprecated = message.deprecated);
|
|
2305
3086
|
if (message.uninterpretedOption) {
|
|
2306
|
-
obj.uninterpretedOption = message.uninterpretedOption.map((e) => e ?
|
|
3087
|
+
obj.uninterpretedOption = message.uninterpretedOption.map((e) => e ? UninterpretedOption.toJSON(e) : undefined);
|
|
2307
3088
|
}
|
|
2308
3089
|
else {
|
|
2309
3090
|
obj.uninterpretedOption = [];
|
|
2310
3091
|
}
|
|
2311
3092
|
return obj;
|
|
2312
|
-
}
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
3093
|
+
}
|
|
3094
|
+
ServiceOptions.toJSON = toJSON;
|
|
3095
|
+
function create(base) {
|
|
3096
|
+
return ServiceOptions.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
3097
|
+
}
|
|
3098
|
+
ServiceOptions.create = create;
|
|
3099
|
+
function fromPartial(object) {
|
|
3100
|
+
var _a;
|
|
3101
|
+
var _b;
|
|
2318
3102
|
const message = createBaseServiceOptions();
|
|
2319
|
-
message.deprecated = (
|
|
2320
|
-
message.uninterpretedOption = ((
|
|
3103
|
+
message.deprecated = (_b = object.deprecated) !== null && _b !== void 0 ? _b : false;
|
|
3104
|
+
message.uninterpretedOption = ((_a = object.uninterpretedOption) === null || _a === void 0 ? void 0 : _a.map((e) => UninterpretedOption.fromPartial(e))) || [];
|
|
2321
3105
|
return message;
|
|
2322
|
-
}
|
|
2323
|
-
|
|
3106
|
+
}
|
|
3107
|
+
ServiceOptions.fromPartial = fromPartial;
|
|
3108
|
+
})(ServiceOptions || (exports.ServiceOptions = ServiceOptions = {}));
|
|
2324
3109
|
function createBaseMethodOptions() {
|
|
2325
|
-
return { deprecated: false, uninterpretedOption: [] };
|
|
3110
|
+
return { deprecated: false, idempotencyLevel: 0, uninterpretedOption: [] };
|
|
2326
3111
|
}
|
|
2327
|
-
|
|
2328
|
-
|
|
3112
|
+
var MethodOptions;
|
|
3113
|
+
(function (MethodOptions) {
|
|
3114
|
+
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
3115
|
+
var _a;
|
|
2329
3116
|
if (message.deprecated === true) {
|
|
2330
3117
|
writer.uint32(264).bool(message.deprecated);
|
|
2331
3118
|
}
|
|
2332
|
-
|
|
2333
|
-
|
|
3119
|
+
if (message.idempotencyLevel !== undefined && message.idempotencyLevel !== 0) {
|
|
3120
|
+
writer.uint32(272).int32(message.idempotencyLevel);
|
|
3121
|
+
}
|
|
3122
|
+
for (const v of (_a = message.uninterpretedOption) !== null && _a !== void 0 ? _a : []) {
|
|
3123
|
+
UninterpretedOption.encode(v, writer.uint32(7994).fork()).ldelim();
|
|
2334
3124
|
}
|
|
2335
3125
|
return writer;
|
|
2336
|
-
}
|
|
2337
|
-
|
|
3126
|
+
}
|
|
3127
|
+
MethodOptions.encode = encode;
|
|
3128
|
+
function decode(input, length) {
|
|
2338
3129
|
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
2339
3130
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2340
3131
|
const message = createBaseMethodOptions();
|
|
@@ -2342,55 +3133,73 @@ exports.MethodOptions = {
|
|
|
2342
3133
|
const tag = reader.uint32();
|
|
2343
3134
|
switch (tag >>> 3) {
|
|
2344
3135
|
case 33:
|
|
2345
|
-
if (tag
|
|
3136
|
+
if (tag !== 264) {
|
|
2346
3137
|
break;
|
|
2347
3138
|
}
|
|
2348
3139
|
message.deprecated = reader.bool();
|
|
2349
3140
|
continue;
|
|
3141
|
+
case 34:
|
|
3142
|
+
if (tag !== 272) {
|
|
3143
|
+
break;
|
|
3144
|
+
}
|
|
3145
|
+
message.idempotencyLevel = reader.int32();
|
|
3146
|
+
continue;
|
|
2350
3147
|
case 999:
|
|
2351
|
-
if (tag
|
|
3148
|
+
if (tag !== 7994) {
|
|
2352
3149
|
break;
|
|
2353
3150
|
}
|
|
2354
|
-
message.uninterpretedOption.push(
|
|
3151
|
+
message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32()));
|
|
2355
3152
|
continue;
|
|
2356
3153
|
}
|
|
2357
|
-
if ((tag & 7)
|
|
3154
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2358
3155
|
break;
|
|
2359
3156
|
}
|
|
2360
3157
|
reader.skipType(tag & 7);
|
|
2361
3158
|
}
|
|
2362
3159
|
return message;
|
|
2363
|
-
}
|
|
2364
|
-
|
|
3160
|
+
}
|
|
3161
|
+
MethodOptions.decode = decode;
|
|
3162
|
+
function fromJSON(object) {
|
|
2365
3163
|
return {
|
|
2366
3164
|
deprecated: isSet(object.deprecated) ? Boolean(object.deprecated) : false,
|
|
3165
|
+
idempotencyLevel: isSet(object.idempotencyLevel)
|
|
3166
|
+
? methodOptions_IdempotencyLevelFromJSON(object.idempotencyLevel)
|
|
3167
|
+
: 0,
|
|
2367
3168
|
uninterpretedOption: Array.isArray(object === null || object === void 0 ? void 0 : object.uninterpretedOption)
|
|
2368
|
-
? object.uninterpretedOption.map((e) =>
|
|
3169
|
+
? object.uninterpretedOption.map((e) => UninterpretedOption.fromJSON(e))
|
|
2369
3170
|
: [],
|
|
2370
3171
|
};
|
|
2371
|
-
}
|
|
2372
|
-
|
|
3172
|
+
}
|
|
3173
|
+
MethodOptions.fromJSON = fromJSON;
|
|
3174
|
+
function toJSON(message) {
|
|
2373
3175
|
const obj = {};
|
|
2374
3176
|
message.deprecated !== undefined && (obj.deprecated = message.deprecated);
|
|
3177
|
+
message.idempotencyLevel !== undefined &&
|
|
3178
|
+
(obj.idempotencyLevel = methodOptions_IdempotencyLevelToJSON(message.idempotencyLevel));
|
|
2375
3179
|
if (message.uninterpretedOption) {
|
|
2376
|
-
obj.uninterpretedOption = message.uninterpretedOption.map((e) => e ?
|
|
3180
|
+
obj.uninterpretedOption = message.uninterpretedOption.map((e) => e ? UninterpretedOption.toJSON(e) : undefined);
|
|
2377
3181
|
}
|
|
2378
3182
|
else {
|
|
2379
3183
|
obj.uninterpretedOption = [];
|
|
2380
3184
|
}
|
|
2381
3185
|
return obj;
|
|
2382
|
-
}
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
3186
|
+
}
|
|
3187
|
+
MethodOptions.toJSON = toJSON;
|
|
3188
|
+
function create(base) {
|
|
3189
|
+
return MethodOptions.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
3190
|
+
}
|
|
3191
|
+
MethodOptions.create = create;
|
|
3192
|
+
function fromPartial(object) {
|
|
3193
|
+
var _a;
|
|
3194
|
+
var _b, _c;
|
|
2388
3195
|
const message = createBaseMethodOptions();
|
|
2389
|
-
message.deprecated = (
|
|
2390
|
-
message.
|
|
3196
|
+
message.deprecated = (_b = object.deprecated) !== null && _b !== void 0 ? _b : false;
|
|
3197
|
+
message.idempotencyLevel = (_c = object.idempotencyLevel) !== null && _c !== void 0 ? _c : 0;
|
|
3198
|
+
message.uninterpretedOption = ((_a = object.uninterpretedOption) === null || _a === void 0 ? void 0 : _a.map((e) => UninterpretedOption.fromPartial(e))) || [];
|
|
2391
3199
|
return message;
|
|
2392
|
-
}
|
|
2393
|
-
|
|
3200
|
+
}
|
|
3201
|
+
MethodOptions.fromPartial = fromPartial;
|
|
3202
|
+
})(MethodOptions || (exports.MethodOptions = MethodOptions = {}));
|
|
2394
3203
|
function createBaseUninterpretedOption() {
|
|
2395
3204
|
return {
|
|
2396
3205
|
name: [],
|
|
@@ -2398,36 +3207,39 @@ function createBaseUninterpretedOption() {
|
|
|
2398
3207
|
positiveIntValue: 0,
|
|
2399
3208
|
negativeIntValue: 0,
|
|
2400
3209
|
doubleValue: 0,
|
|
2401
|
-
stringValue: new Uint8Array(),
|
|
3210
|
+
stringValue: new Uint8Array(0),
|
|
2402
3211
|
aggregateValue: "",
|
|
2403
3212
|
};
|
|
2404
3213
|
}
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
3214
|
+
var UninterpretedOption;
|
|
3215
|
+
(function (UninterpretedOption) {
|
|
3216
|
+
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
3217
|
+
var _a;
|
|
3218
|
+
for (const v of (_a = message.name) !== null && _a !== void 0 ? _a : []) {
|
|
3219
|
+
UninterpretedOption_NamePart.encode(v, writer.uint32(18).fork()).ldelim();
|
|
2409
3220
|
}
|
|
2410
|
-
if (message.identifierValue !== "") {
|
|
3221
|
+
if (message.identifierValue !== undefined && message.identifierValue !== "") {
|
|
2411
3222
|
writer.uint32(26).string(message.identifierValue);
|
|
2412
3223
|
}
|
|
2413
|
-
if (message.positiveIntValue !== 0) {
|
|
3224
|
+
if (message.positiveIntValue !== undefined && message.positiveIntValue !== 0) {
|
|
2414
3225
|
writer.uint32(32).uint64(message.positiveIntValue);
|
|
2415
3226
|
}
|
|
2416
|
-
if (message.negativeIntValue !== 0) {
|
|
3227
|
+
if (message.negativeIntValue !== undefined && message.negativeIntValue !== 0) {
|
|
2417
3228
|
writer.uint32(40).int64(message.negativeIntValue);
|
|
2418
3229
|
}
|
|
2419
|
-
if (message.doubleValue !== 0) {
|
|
3230
|
+
if (message.doubleValue !== undefined && message.doubleValue !== 0) {
|
|
2420
3231
|
writer.uint32(49).double(message.doubleValue);
|
|
2421
3232
|
}
|
|
2422
|
-
if (message.stringValue.length !== 0) {
|
|
3233
|
+
if (message.stringValue !== undefined && message.stringValue.length !== 0) {
|
|
2423
3234
|
writer.uint32(58).bytes(message.stringValue);
|
|
2424
3235
|
}
|
|
2425
|
-
if (message.aggregateValue !== "") {
|
|
3236
|
+
if (message.aggregateValue !== undefined && message.aggregateValue !== "") {
|
|
2426
3237
|
writer.uint32(66).string(message.aggregateValue);
|
|
2427
3238
|
}
|
|
2428
3239
|
return writer;
|
|
2429
|
-
}
|
|
2430
|
-
|
|
3240
|
+
}
|
|
3241
|
+
UninterpretedOption.encode = encode;
|
|
3242
|
+
function decode(input, length) {
|
|
2431
3243
|
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
2432
3244
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2433
3245
|
const message = createBaseUninterpretedOption();
|
|
@@ -2435,70 +3247,72 @@ exports.UninterpretedOption = {
|
|
|
2435
3247
|
const tag = reader.uint32();
|
|
2436
3248
|
switch (tag >>> 3) {
|
|
2437
3249
|
case 2:
|
|
2438
|
-
if (tag
|
|
3250
|
+
if (tag !== 18) {
|
|
2439
3251
|
break;
|
|
2440
3252
|
}
|
|
2441
|
-
message.name.push(
|
|
3253
|
+
message.name.push(UninterpretedOption_NamePart.decode(reader, reader.uint32()));
|
|
2442
3254
|
continue;
|
|
2443
3255
|
case 3:
|
|
2444
|
-
if (tag
|
|
3256
|
+
if (tag !== 26) {
|
|
2445
3257
|
break;
|
|
2446
3258
|
}
|
|
2447
3259
|
message.identifierValue = reader.string();
|
|
2448
3260
|
continue;
|
|
2449
3261
|
case 4:
|
|
2450
|
-
if (tag
|
|
3262
|
+
if (tag !== 32) {
|
|
2451
3263
|
break;
|
|
2452
3264
|
}
|
|
2453
3265
|
message.positiveIntValue = longToNumber(reader.uint64());
|
|
2454
3266
|
continue;
|
|
2455
3267
|
case 5:
|
|
2456
|
-
if (tag
|
|
3268
|
+
if (tag !== 40) {
|
|
2457
3269
|
break;
|
|
2458
3270
|
}
|
|
2459
3271
|
message.negativeIntValue = longToNumber(reader.int64());
|
|
2460
3272
|
continue;
|
|
2461
3273
|
case 6:
|
|
2462
|
-
if (tag
|
|
3274
|
+
if (tag !== 49) {
|
|
2463
3275
|
break;
|
|
2464
3276
|
}
|
|
2465
3277
|
message.doubleValue = reader.double();
|
|
2466
3278
|
continue;
|
|
2467
3279
|
case 7:
|
|
2468
|
-
if (tag
|
|
3280
|
+
if (tag !== 58) {
|
|
2469
3281
|
break;
|
|
2470
3282
|
}
|
|
2471
3283
|
message.stringValue = reader.bytes();
|
|
2472
3284
|
continue;
|
|
2473
3285
|
case 8:
|
|
2474
|
-
if (tag
|
|
3286
|
+
if (tag !== 66) {
|
|
2475
3287
|
break;
|
|
2476
3288
|
}
|
|
2477
3289
|
message.aggregateValue = reader.string();
|
|
2478
3290
|
continue;
|
|
2479
3291
|
}
|
|
2480
|
-
if ((tag & 7)
|
|
3292
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2481
3293
|
break;
|
|
2482
3294
|
}
|
|
2483
3295
|
reader.skipType(tag & 7);
|
|
2484
3296
|
}
|
|
2485
3297
|
return message;
|
|
2486
|
-
}
|
|
2487
|
-
|
|
3298
|
+
}
|
|
3299
|
+
UninterpretedOption.decode = decode;
|
|
3300
|
+
function fromJSON(object) {
|
|
2488
3301
|
return {
|
|
2489
|
-
name: Array.isArray(object === null || object === void 0 ? void 0 : object.name) ? object.name.map((e) =>
|
|
3302
|
+
name: Array.isArray(object === null || object === void 0 ? void 0 : object.name) ? object.name.map((e) => UninterpretedOption_NamePart.fromJSON(e)) : [],
|
|
2490
3303
|
identifierValue: isSet(object.identifierValue) ? String(object.identifierValue) : "",
|
|
2491
3304
|
positiveIntValue: isSet(object.positiveIntValue) ? Number(object.positiveIntValue) : 0,
|
|
2492
3305
|
negativeIntValue: isSet(object.negativeIntValue) ? Number(object.negativeIntValue) : 0,
|
|
2493
3306
|
doubleValue: isSet(object.doubleValue) ? Number(object.doubleValue) : 0,
|
|
2494
|
-
stringValue: isSet(object.stringValue) ? bytesFromBase64(object.stringValue) : new Uint8Array(),
|
|
3307
|
+
stringValue: isSet(object.stringValue) ? bytesFromBase64(object.stringValue) : new Uint8Array(0),
|
|
2495
3308
|
aggregateValue: isSet(object.aggregateValue) ? String(object.aggregateValue) : "",
|
|
2496
3309
|
};
|
|
2497
|
-
}
|
|
2498
|
-
|
|
3310
|
+
}
|
|
3311
|
+
UninterpretedOption.fromJSON = fromJSON;
|
|
3312
|
+
function toJSON(message) {
|
|
2499
3313
|
const obj = {};
|
|
2500
3314
|
if (message.name) {
|
|
2501
|
-
obj.name = message.name.map((e) => e ?
|
|
3315
|
+
obj.name = message.name.map((e) => e ? UninterpretedOption_NamePart.toJSON(e) : undefined);
|
|
2502
3316
|
}
|
|
2503
3317
|
else {
|
|
2504
3318
|
obj.name = [];
|
|
@@ -2508,40 +3322,46 @@ exports.UninterpretedOption = {
|
|
|
2508
3322
|
message.negativeIntValue !== undefined && (obj.negativeIntValue = Math.round(message.negativeIntValue));
|
|
2509
3323
|
message.doubleValue !== undefined && (obj.doubleValue = message.doubleValue);
|
|
2510
3324
|
message.stringValue !== undefined &&
|
|
2511
|
-
(obj.stringValue = base64FromBytes(message.stringValue !== undefined ? message.stringValue : new Uint8Array()));
|
|
3325
|
+
(obj.stringValue = base64FromBytes(message.stringValue !== undefined ? message.stringValue : new Uint8Array(0)));
|
|
2512
3326
|
message.aggregateValue !== undefined && (obj.aggregateValue = message.aggregateValue);
|
|
2513
3327
|
return obj;
|
|
2514
|
-
}
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
3328
|
+
}
|
|
3329
|
+
UninterpretedOption.toJSON = toJSON;
|
|
3330
|
+
function create(base) {
|
|
3331
|
+
return UninterpretedOption.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
3332
|
+
}
|
|
3333
|
+
UninterpretedOption.create = create;
|
|
3334
|
+
function fromPartial(object) {
|
|
3335
|
+
var _a;
|
|
3336
|
+
var _b, _c, _d, _e, _f, _g;
|
|
2520
3337
|
const message = createBaseUninterpretedOption();
|
|
2521
|
-
message.name = ((_a = object.name) === null || _a === void 0 ? void 0 : _a.map((e) =>
|
|
3338
|
+
message.name = ((_a = object.name) === null || _a === void 0 ? void 0 : _a.map((e) => UninterpretedOption_NamePart.fromPartial(e))) || [];
|
|
2522
3339
|
message.identifierValue = (_b = object.identifierValue) !== null && _b !== void 0 ? _b : "";
|
|
2523
3340
|
message.positiveIntValue = (_c = object.positiveIntValue) !== null && _c !== void 0 ? _c : 0;
|
|
2524
3341
|
message.negativeIntValue = (_d = object.negativeIntValue) !== null && _d !== void 0 ? _d : 0;
|
|
2525
3342
|
message.doubleValue = (_e = object.doubleValue) !== null && _e !== void 0 ? _e : 0;
|
|
2526
|
-
message.stringValue = (_f = object.stringValue) !== null && _f !== void 0 ? _f : new Uint8Array();
|
|
3343
|
+
message.stringValue = (_f = object.stringValue) !== null && _f !== void 0 ? _f : new Uint8Array(0);
|
|
2527
3344
|
message.aggregateValue = (_g = object.aggregateValue) !== null && _g !== void 0 ? _g : "";
|
|
2528
3345
|
return message;
|
|
2529
|
-
}
|
|
2530
|
-
|
|
3346
|
+
}
|
|
3347
|
+
UninterpretedOption.fromPartial = fromPartial;
|
|
3348
|
+
})(UninterpretedOption || (exports.UninterpretedOption = UninterpretedOption = {}));
|
|
2531
3349
|
function createBaseUninterpretedOption_NamePart() {
|
|
2532
3350
|
return { namePart: "", isExtension: false };
|
|
2533
3351
|
}
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
|
|
3352
|
+
var UninterpretedOption_NamePart;
|
|
3353
|
+
(function (UninterpretedOption_NamePart) {
|
|
3354
|
+
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
3355
|
+
if (message.namePart !== undefined && message.namePart !== "") {
|
|
2537
3356
|
writer.uint32(10).string(message.namePart);
|
|
2538
3357
|
}
|
|
2539
3358
|
if (message.isExtension === true) {
|
|
2540
3359
|
writer.uint32(16).bool(message.isExtension);
|
|
2541
3360
|
}
|
|
2542
3361
|
return writer;
|
|
2543
|
-
}
|
|
2544
|
-
|
|
3362
|
+
}
|
|
3363
|
+
UninterpretedOption_NamePart.encode = encode;
|
|
3364
|
+
function decode(input, length) {
|
|
2545
3365
|
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
2546
3366
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2547
3367
|
const message = createBaseUninterpretedOption_NamePart();
|
|
@@ -2549,59 +3369,67 @@ exports.UninterpretedOption_NamePart = {
|
|
|
2549
3369
|
const tag = reader.uint32();
|
|
2550
3370
|
switch (tag >>> 3) {
|
|
2551
3371
|
case 1:
|
|
2552
|
-
if (tag
|
|
3372
|
+
if (tag !== 10) {
|
|
2553
3373
|
break;
|
|
2554
3374
|
}
|
|
2555
3375
|
message.namePart = reader.string();
|
|
2556
3376
|
continue;
|
|
2557
3377
|
case 2:
|
|
2558
|
-
if (tag
|
|
3378
|
+
if (tag !== 16) {
|
|
2559
3379
|
break;
|
|
2560
3380
|
}
|
|
2561
3381
|
message.isExtension = reader.bool();
|
|
2562
3382
|
continue;
|
|
2563
3383
|
}
|
|
2564
|
-
if ((tag & 7)
|
|
3384
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2565
3385
|
break;
|
|
2566
3386
|
}
|
|
2567
3387
|
reader.skipType(tag & 7);
|
|
2568
3388
|
}
|
|
2569
3389
|
return message;
|
|
2570
|
-
}
|
|
2571
|
-
|
|
3390
|
+
}
|
|
3391
|
+
UninterpretedOption_NamePart.decode = decode;
|
|
3392
|
+
function fromJSON(object) {
|
|
2572
3393
|
return {
|
|
2573
3394
|
namePart: isSet(object.namePart) ? String(object.namePart) : "",
|
|
2574
3395
|
isExtension: isSet(object.isExtension) ? Boolean(object.isExtension) : false,
|
|
2575
3396
|
};
|
|
2576
|
-
}
|
|
2577
|
-
|
|
3397
|
+
}
|
|
3398
|
+
UninterpretedOption_NamePart.fromJSON = fromJSON;
|
|
3399
|
+
function toJSON(message) {
|
|
2578
3400
|
const obj = {};
|
|
2579
3401
|
message.namePart !== undefined && (obj.namePart = message.namePart);
|
|
2580
3402
|
message.isExtension !== undefined && (obj.isExtension = message.isExtension);
|
|
2581
3403
|
return obj;
|
|
2582
|
-
}
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
3404
|
+
}
|
|
3405
|
+
UninterpretedOption_NamePart.toJSON = toJSON;
|
|
3406
|
+
function create(base) {
|
|
3407
|
+
return UninterpretedOption_NamePart.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
3408
|
+
}
|
|
3409
|
+
UninterpretedOption_NamePart.create = create;
|
|
3410
|
+
function fromPartial(object) {
|
|
2587
3411
|
var _a, _b;
|
|
2588
3412
|
const message = createBaseUninterpretedOption_NamePart();
|
|
2589
3413
|
message.namePart = (_a = object.namePart) !== null && _a !== void 0 ? _a : "";
|
|
2590
3414
|
message.isExtension = (_b = object.isExtension) !== null && _b !== void 0 ? _b : false;
|
|
2591
3415
|
return message;
|
|
2592
|
-
}
|
|
2593
|
-
|
|
3416
|
+
}
|
|
3417
|
+
UninterpretedOption_NamePart.fromPartial = fromPartial;
|
|
3418
|
+
})(UninterpretedOption_NamePart || (exports.UninterpretedOption_NamePart = UninterpretedOption_NamePart = {}));
|
|
2594
3419
|
function createBaseSourceCodeInfo() {
|
|
2595
3420
|
return { location: [] };
|
|
2596
3421
|
}
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
|
|
3422
|
+
var SourceCodeInfo;
|
|
3423
|
+
(function (SourceCodeInfo) {
|
|
3424
|
+
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
3425
|
+
var _a;
|
|
3426
|
+
for (const v of (_a = message.location) !== null && _a !== void 0 ? _a : []) {
|
|
3427
|
+
SourceCodeInfo_Location.encode(v, writer.uint32(10).fork()).ldelim();
|
|
2601
3428
|
}
|
|
2602
3429
|
return writer;
|
|
2603
|
-
}
|
|
2604
|
-
|
|
3430
|
+
}
|
|
3431
|
+
SourceCodeInfo.encode = encode;
|
|
3432
|
+
function decode(input, length) {
|
|
2605
3433
|
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
2606
3434
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2607
3435
|
const message = createBaseSourceCodeInfo();
|
|
@@ -2609,73 +3437,81 @@ exports.SourceCodeInfo = {
|
|
|
2609
3437
|
const tag = reader.uint32();
|
|
2610
3438
|
switch (tag >>> 3) {
|
|
2611
3439
|
case 1:
|
|
2612
|
-
if (tag
|
|
3440
|
+
if (tag !== 10) {
|
|
2613
3441
|
break;
|
|
2614
3442
|
}
|
|
2615
|
-
message.location.push(
|
|
3443
|
+
message.location.push(SourceCodeInfo_Location.decode(reader, reader.uint32()));
|
|
2616
3444
|
continue;
|
|
2617
3445
|
}
|
|
2618
|
-
if ((tag & 7)
|
|
3446
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2619
3447
|
break;
|
|
2620
3448
|
}
|
|
2621
3449
|
reader.skipType(tag & 7);
|
|
2622
3450
|
}
|
|
2623
3451
|
return message;
|
|
2624
|
-
}
|
|
2625
|
-
|
|
3452
|
+
}
|
|
3453
|
+
SourceCodeInfo.decode = decode;
|
|
3454
|
+
function fromJSON(object) {
|
|
2626
3455
|
return {
|
|
2627
3456
|
location: Array.isArray(object === null || object === void 0 ? void 0 : object.location)
|
|
2628
|
-
? object.location.map((e) =>
|
|
3457
|
+
? object.location.map((e) => SourceCodeInfo_Location.fromJSON(e))
|
|
2629
3458
|
: [],
|
|
2630
3459
|
};
|
|
2631
|
-
}
|
|
2632
|
-
|
|
3460
|
+
}
|
|
3461
|
+
SourceCodeInfo.fromJSON = fromJSON;
|
|
3462
|
+
function toJSON(message) {
|
|
2633
3463
|
const obj = {};
|
|
2634
3464
|
if (message.location) {
|
|
2635
|
-
obj.location = message.location.map((e) => e ?
|
|
3465
|
+
obj.location = message.location.map((e) => e ? SourceCodeInfo_Location.toJSON(e) : undefined);
|
|
2636
3466
|
}
|
|
2637
3467
|
else {
|
|
2638
3468
|
obj.location = [];
|
|
2639
3469
|
}
|
|
2640
3470
|
return obj;
|
|
2641
|
-
}
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
3471
|
+
}
|
|
3472
|
+
SourceCodeInfo.toJSON = toJSON;
|
|
3473
|
+
function create(base) {
|
|
3474
|
+
return SourceCodeInfo.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
3475
|
+
}
|
|
3476
|
+
SourceCodeInfo.create = create;
|
|
3477
|
+
function fromPartial(object) {
|
|
2646
3478
|
var _a;
|
|
2647
3479
|
const message = createBaseSourceCodeInfo();
|
|
2648
|
-
message.location = ((_a = object.location) === null || _a === void 0 ? void 0 : _a.map((e) =>
|
|
3480
|
+
message.location = ((_a = object.location) === null || _a === void 0 ? void 0 : _a.map((e) => SourceCodeInfo_Location.fromPartial(e))) || [];
|
|
2649
3481
|
return message;
|
|
2650
|
-
}
|
|
2651
|
-
|
|
3482
|
+
}
|
|
3483
|
+
SourceCodeInfo.fromPartial = fromPartial;
|
|
3484
|
+
})(SourceCodeInfo || (exports.SourceCodeInfo = SourceCodeInfo = {}));
|
|
2652
3485
|
function createBaseSourceCodeInfo_Location() {
|
|
2653
3486
|
return { path: [], span: [], leadingComments: "", trailingComments: "", leadingDetachedComments: [] };
|
|
2654
3487
|
}
|
|
2655
|
-
|
|
2656
|
-
|
|
3488
|
+
var SourceCodeInfo_Location;
|
|
3489
|
+
(function (SourceCodeInfo_Location) {
|
|
3490
|
+
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
3491
|
+
var _a, _b, _c;
|
|
2657
3492
|
writer.uint32(10).fork();
|
|
2658
|
-
for (const v of message.path) {
|
|
3493
|
+
for (const v of (_a = message.path) !== null && _a !== void 0 ? _a : []) {
|
|
2659
3494
|
writer.int32(v);
|
|
2660
3495
|
}
|
|
2661
3496
|
writer.ldelim();
|
|
2662
3497
|
writer.uint32(18).fork();
|
|
2663
|
-
for (const v of message.span) {
|
|
3498
|
+
for (const v of (_b = message.span) !== null && _b !== void 0 ? _b : []) {
|
|
2664
3499
|
writer.int32(v);
|
|
2665
3500
|
}
|
|
2666
3501
|
writer.ldelim();
|
|
2667
|
-
if (message.leadingComments !== "") {
|
|
3502
|
+
if (message.leadingComments !== undefined && message.leadingComments !== "") {
|
|
2668
3503
|
writer.uint32(26).string(message.leadingComments);
|
|
2669
3504
|
}
|
|
2670
|
-
if (message.trailingComments !== "") {
|
|
3505
|
+
if (message.trailingComments !== undefined && message.trailingComments !== "") {
|
|
2671
3506
|
writer.uint32(34).string(message.trailingComments);
|
|
2672
3507
|
}
|
|
2673
|
-
for (const v of message.leadingDetachedComments) {
|
|
3508
|
+
for (const v of (_c = message.leadingDetachedComments) !== null && _c !== void 0 ? _c : []) {
|
|
2674
3509
|
writer.uint32(50).string(v);
|
|
2675
3510
|
}
|
|
2676
3511
|
return writer;
|
|
2677
|
-
}
|
|
2678
|
-
|
|
3512
|
+
}
|
|
3513
|
+
SourceCodeInfo_Location.encode = encode;
|
|
3514
|
+
function decode(input, length) {
|
|
2679
3515
|
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
2680
3516
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2681
3517
|
const message = createBaseSourceCodeInfo_Location();
|
|
@@ -2683,11 +3519,11 @@ exports.SourceCodeInfo_Location = {
|
|
|
2683
3519
|
const tag = reader.uint32();
|
|
2684
3520
|
switch (tag >>> 3) {
|
|
2685
3521
|
case 1:
|
|
2686
|
-
if (tag
|
|
3522
|
+
if (tag === 8) {
|
|
2687
3523
|
message.path.push(reader.int32());
|
|
2688
3524
|
continue;
|
|
2689
3525
|
}
|
|
2690
|
-
if (tag
|
|
3526
|
+
if (tag === 10) {
|
|
2691
3527
|
const end2 = reader.uint32() + reader.pos;
|
|
2692
3528
|
while (reader.pos < end2) {
|
|
2693
3529
|
message.path.push(reader.int32());
|
|
@@ -2696,11 +3532,11 @@ exports.SourceCodeInfo_Location = {
|
|
|
2696
3532
|
}
|
|
2697
3533
|
break;
|
|
2698
3534
|
case 2:
|
|
2699
|
-
if (tag
|
|
3535
|
+
if (tag === 16) {
|
|
2700
3536
|
message.span.push(reader.int32());
|
|
2701
3537
|
continue;
|
|
2702
3538
|
}
|
|
2703
|
-
if (tag
|
|
3539
|
+
if (tag === 18) {
|
|
2704
3540
|
const end2 = reader.uint32() + reader.pos;
|
|
2705
3541
|
while (reader.pos < end2) {
|
|
2706
3542
|
message.span.push(reader.int32());
|
|
@@ -2709,32 +3545,33 @@ exports.SourceCodeInfo_Location = {
|
|
|
2709
3545
|
}
|
|
2710
3546
|
break;
|
|
2711
3547
|
case 3:
|
|
2712
|
-
if (tag
|
|
3548
|
+
if (tag !== 26) {
|
|
2713
3549
|
break;
|
|
2714
3550
|
}
|
|
2715
3551
|
message.leadingComments = reader.string();
|
|
2716
3552
|
continue;
|
|
2717
3553
|
case 4:
|
|
2718
|
-
if (tag
|
|
3554
|
+
if (tag !== 34) {
|
|
2719
3555
|
break;
|
|
2720
3556
|
}
|
|
2721
3557
|
message.trailingComments = reader.string();
|
|
2722
3558
|
continue;
|
|
2723
3559
|
case 6:
|
|
2724
|
-
if (tag
|
|
3560
|
+
if (tag !== 50) {
|
|
2725
3561
|
break;
|
|
2726
3562
|
}
|
|
2727
3563
|
message.leadingDetachedComments.push(reader.string());
|
|
2728
3564
|
continue;
|
|
2729
3565
|
}
|
|
2730
|
-
if ((tag & 7)
|
|
3566
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2731
3567
|
break;
|
|
2732
3568
|
}
|
|
2733
3569
|
reader.skipType(tag & 7);
|
|
2734
3570
|
}
|
|
2735
3571
|
return message;
|
|
2736
|
-
}
|
|
2737
|
-
|
|
3572
|
+
}
|
|
3573
|
+
SourceCodeInfo_Location.decode = decode;
|
|
3574
|
+
function fromJSON(object) {
|
|
2738
3575
|
return {
|
|
2739
3576
|
path: Array.isArray(object === null || object === void 0 ? void 0 : object.path) ? object.path.map((e) => Number(e)) : [],
|
|
2740
3577
|
span: Array.isArray(object === null || object === void 0 ? void 0 : object.span) ? object.span.map((e) => Number(e)) : [],
|
|
@@ -2744,8 +3581,9 @@ exports.SourceCodeInfo_Location = {
|
|
|
2744
3581
|
? object.leadingDetachedComments.map((e) => String(e))
|
|
2745
3582
|
: [],
|
|
2746
3583
|
};
|
|
2747
|
-
}
|
|
2748
|
-
|
|
3584
|
+
}
|
|
3585
|
+
SourceCodeInfo_Location.fromJSON = fromJSON;
|
|
3586
|
+
function toJSON(message) {
|
|
2749
3587
|
const obj = {};
|
|
2750
3588
|
if (message.path) {
|
|
2751
3589
|
obj.path = message.path.map((e) => Math.round(e));
|
|
@@ -2768,32 +3606,39 @@ exports.SourceCodeInfo_Location = {
|
|
|
2768
3606
|
obj.leadingDetachedComments = [];
|
|
2769
3607
|
}
|
|
2770
3608
|
return obj;
|
|
2771
|
-
}
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
|
|
3609
|
+
}
|
|
3610
|
+
SourceCodeInfo_Location.toJSON = toJSON;
|
|
3611
|
+
function create(base) {
|
|
3612
|
+
return SourceCodeInfo_Location.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
3613
|
+
}
|
|
3614
|
+
SourceCodeInfo_Location.create = create;
|
|
3615
|
+
function fromPartial(object) {
|
|
3616
|
+
var _a, _b, _c;
|
|
3617
|
+
var _d, _e;
|
|
2777
3618
|
const message = createBaseSourceCodeInfo_Location();
|
|
2778
3619
|
message.path = ((_a = object.path) === null || _a === void 0 ? void 0 : _a.map((e) => e)) || [];
|
|
2779
3620
|
message.span = ((_b = object.span) === null || _b === void 0 ? void 0 : _b.map((e) => e)) || [];
|
|
2780
|
-
message.leadingComments = (
|
|
2781
|
-
message.trailingComments = (
|
|
2782
|
-
message.leadingDetachedComments = ((
|
|
3621
|
+
message.leadingComments = (_d = object.leadingComments) !== null && _d !== void 0 ? _d : "";
|
|
3622
|
+
message.trailingComments = (_e = object.trailingComments) !== null && _e !== void 0 ? _e : "";
|
|
3623
|
+
message.leadingDetachedComments = ((_c = object.leadingDetachedComments) === null || _c === void 0 ? void 0 : _c.map((e) => e)) || [];
|
|
2783
3624
|
return message;
|
|
2784
|
-
}
|
|
2785
|
-
|
|
3625
|
+
}
|
|
3626
|
+
SourceCodeInfo_Location.fromPartial = fromPartial;
|
|
3627
|
+
})(SourceCodeInfo_Location || (exports.SourceCodeInfo_Location = SourceCodeInfo_Location = {}));
|
|
2786
3628
|
function createBaseGeneratedCodeInfo() {
|
|
2787
3629
|
return { annotation: [] };
|
|
2788
3630
|
}
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
|
|
3631
|
+
var GeneratedCodeInfo;
|
|
3632
|
+
(function (GeneratedCodeInfo) {
|
|
3633
|
+
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
3634
|
+
var _a;
|
|
3635
|
+
for (const v of (_a = message.annotation) !== null && _a !== void 0 ? _a : []) {
|
|
3636
|
+
GeneratedCodeInfo_Annotation.encode(v, writer.uint32(10).fork()).ldelim();
|
|
2793
3637
|
}
|
|
2794
3638
|
return writer;
|
|
2795
|
-
}
|
|
2796
|
-
|
|
3639
|
+
}
|
|
3640
|
+
GeneratedCodeInfo.encode = encode;
|
|
3641
|
+
function decode(input, length) {
|
|
2797
3642
|
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
2798
3643
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2799
3644
|
const message = createBaseGeneratedCodeInfo();
|
|
@@ -2801,68 +3646,79 @@ exports.GeneratedCodeInfo = {
|
|
|
2801
3646
|
const tag = reader.uint32();
|
|
2802
3647
|
switch (tag >>> 3) {
|
|
2803
3648
|
case 1:
|
|
2804
|
-
if (tag
|
|
3649
|
+
if (tag !== 10) {
|
|
2805
3650
|
break;
|
|
2806
3651
|
}
|
|
2807
|
-
message.annotation.push(
|
|
3652
|
+
message.annotation.push(GeneratedCodeInfo_Annotation.decode(reader, reader.uint32()));
|
|
2808
3653
|
continue;
|
|
2809
3654
|
}
|
|
2810
|
-
if ((tag & 7)
|
|
3655
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2811
3656
|
break;
|
|
2812
3657
|
}
|
|
2813
3658
|
reader.skipType(tag & 7);
|
|
2814
3659
|
}
|
|
2815
3660
|
return message;
|
|
2816
|
-
}
|
|
2817
|
-
|
|
3661
|
+
}
|
|
3662
|
+
GeneratedCodeInfo.decode = decode;
|
|
3663
|
+
function fromJSON(object) {
|
|
2818
3664
|
return {
|
|
2819
3665
|
annotation: Array.isArray(object === null || object === void 0 ? void 0 : object.annotation)
|
|
2820
|
-
? object.annotation.map((e) =>
|
|
3666
|
+
? object.annotation.map((e) => GeneratedCodeInfo_Annotation.fromJSON(e))
|
|
2821
3667
|
: [],
|
|
2822
3668
|
};
|
|
2823
|
-
}
|
|
2824
|
-
|
|
3669
|
+
}
|
|
3670
|
+
GeneratedCodeInfo.fromJSON = fromJSON;
|
|
3671
|
+
function toJSON(message) {
|
|
2825
3672
|
const obj = {};
|
|
2826
3673
|
if (message.annotation) {
|
|
2827
|
-
obj.annotation = message.annotation.map((e) => e ?
|
|
3674
|
+
obj.annotation = message.annotation.map((e) => e ? GeneratedCodeInfo_Annotation.toJSON(e) : undefined);
|
|
2828
3675
|
}
|
|
2829
3676
|
else {
|
|
2830
3677
|
obj.annotation = [];
|
|
2831
3678
|
}
|
|
2832
3679
|
return obj;
|
|
2833
|
-
}
|
|
2834
|
-
|
|
2835
|
-
|
|
2836
|
-
|
|
2837
|
-
|
|
3680
|
+
}
|
|
3681
|
+
GeneratedCodeInfo.toJSON = toJSON;
|
|
3682
|
+
function create(base) {
|
|
3683
|
+
return GeneratedCodeInfo.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
3684
|
+
}
|
|
3685
|
+
GeneratedCodeInfo.create = create;
|
|
3686
|
+
function fromPartial(object) {
|
|
2838
3687
|
var _a;
|
|
2839
3688
|
const message = createBaseGeneratedCodeInfo();
|
|
2840
|
-
message.annotation = ((_a = object.annotation) === null || _a === void 0 ? void 0 : _a.map((e) =>
|
|
3689
|
+
message.annotation = ((_a = object.annotation) === null || _a === void 0 ? void 0 : _a.map((e) => GeneratedCodeInfo_Annotation.fromPartial(e))) || [];
|
|
2841
3690
|
return message;
|
|
2842
|
-
}
|
|
2843
|
-
|
|
3691
|
+
}
|
|
3692
|
+
GeneratedCodeInfo.fromPartial = fromPartial;
|
|
3693
|
+
})(GeneratedCodeInfo || (exports.GeneratedCodeInfo = GeneratedCodeInfo = {}));
|
|
2844
3694
|
function createBaseGeneratedCodeInfo_Annotation() {
|
|
2845
|
-
return { path: [], sourceFile: "", begin: 0, end: 0 };
|
|
3695
|
+
return { path: [], sourceFile: "", begin: 0, end: 0, semantic: 0 };
|
|
2846
3696
|
}
|
|
2847
|
-
|
|
2848
|
-
|
|
3697
|
+
var GeneratedCodeInfo_Annotation;
|
|
3698
|
+
(function (GeneratedCodeInfo_Annotation) {
|
|
3699
|
+
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
3700
|
+
var _a;
|
|
2849
3701
|
writer.uint32(10).fork();
|
|
2850
|
-
for (const v of message.path) {
|
|
3702
|
+
for (const v of (_a = message.path) !== null && _a !== void 0 ? _a : []) {
|
|
2851
3703
|
writer.int32(v);
|
|
2852
3704
|
}
|
|
2853
3705
|
writer.ldelim();
|
|
2854
|
-
if (message.sourceFile !== "") {
|
|
3706
|
+
if (message.sourceFile !== undefined && message.sourceFile !== "") {
|
|
2855
3707
|
writer.uint32(18).string(message.sourceFile);
|
|
2856
3708
|
}
|
|
2857
|
-
if (message.begin !== 0) {
|
|
3709
|
+
if (message.begin !== undefined && message.begin !== 0) {
|
|
2858
3710
|
writer.uint32(24).int32(message.begin);
|
|
2859
3711
|
}
|
|
2860
|
-
if (message.end !== 0) {
|
|
3712
|
+
if (message.end !== undefined && message.end !== 0) {
|
|
2861
3713
|
writer.uint32(32).int32(message.end);
|
|
2862
3714
|
}
|
|
3715
|
+
if (message.semantic !== undefined && message.semantic !== 0) {
|
|
3716
|
+
writer.uint32(40).int32(message.semantic);
|
|
3717
|
+
}
|
|
2863
3718
|
return writer;
|
|
2864
|
-
}
|
|
2865
|
-
|
|
3719
|
+
}
|
|
3720
|
+
GeneratedCodeInfo_Annotation.encode = encode;
|
|
3721
|
+
function decode(input, length) {
|
|
2866
3722
|
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
2867
3723
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2868
3724
|
const message = createBaseGeneratedCodeInfo_Annotation();
|
|
@@ -2870,11 +3726,11 @@ exports.GeneratedCodeInfo_Annotation = {
|
|
|
2870
3726
|
const tag = reader.uint32();
|
|
2871
3727
|
switch (tag >>> 3) {
|
|
2872
3728
|
case 1:
|
|
2873
|
-
if (tag
|
|
3729
|
+
if (tag === 8) {
|
|
2874
3730
|
message.path.push(reader.int32());
|
|
2875
3731
|
continue;
|
|
2876
3732
|
}
|
|
2877
|
-
if (tag
|
|
3733
|
+
if (tag === 10) {
|
|
2878
3734
|
const end2 = reader.uint32() + reader.pos;
|
|
2879
3735
|
while (reader.pos < end2) {
|
|
2880
3736
|
message.path.push(reader.int32());
|
|
@@ -2883,40 +3739,49 @@ exports.GeneratedCodeInfo_Annotation = {
|
|
|
2883
3739
|
}
|
|
2884
3740
|
break;
|
|
2885
3741
|
case 2:
|
|
2886
|
-
if (tag
|
|
3742
|
+
if (tag !== 18) {
|
|
2887
3743
|
break;
|
|
2888
3744
|
}
|
|
2889
3745
|
message.sourceFile = reader.string();
|
|
2890
3746
|
continue;
|
|
2891
3747
|
case 3:
|
|
2892
|
-
if (tag
|
|
3748
|
+
if (tag !== 24) {
|
|
2893
3749
|
break;
|
|
2894
3750
|
}
|
|
2895
3751
|
message.begin = reader.int32();
|
|
2896
3752
|
continue;
|
|
2897
3753
|
case 4:
|
|
2898
|
-
if (tag
|
|
3754
|
+
if (tag !== 32) {
|
|
2899
3755
|
break;
|
|
2900
3756
|
}
|
|
2901
3757
|
message.end = reader.int32();
|
|
2902
3758
|
continue;
|
|
3759
|
+
case 5:
|
|
3760
|
+
if (tag !== 40) {
|
|
3761
|
+
break;
|
|
3762
|
+
}
|
|
3763
|
+
message.semantic = reader.int32();
|
|
3764
|
+
continue;
|
|
2903
3765
|
}
|
|
2904
|
-
if ((tag & 7)
|
|
3766
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2905
3767
|
break;
|
|
2906
3768
|
}
|
|
2907
3769
|
reader.skipType(tag & 7);
|
|
2908
3770
|
}
|
|
2909
3771
|
return message;
|
|
2910
|
-
}
|
|
2911
|
-
|
|
3772
|
+
}
|
|
3773
|
+
GeneratedCodeInfo_Annotation.decode = decode;
|
|
3774
|
+
function fromJSON(object) {
|
|
2912
3775
|
return {
|
|
2913
3776
|
path: Array.isArray(object === null || object === void 0 ? void 0 : object.path) ? object.path.map((e) => Number(e)) : [],
|
|
2914
3777
|
sourceFile: isSet(object.sourceFile) ? String(object.sourceFile) : "",
|
|
2915
3778
|
begin: isSet(object.begin) ? Number(object.begin) : 0,
|
|
2916
3779
|
end: isSet(object.end) ? Number(object.end) : 0,
|
|
3780
|
+
semantic: isSet(object.semantic) ? generatedCodeInfo_Annotation_SemanticFromJSON(object.semantic) : 0,
|
|
2917
3781
|
};
|
|
2918
|
-
}
|
|
2919
|
-
|
|
3782
|
+
}
|
|
3783
|
+
GeneratedCodeInfo_Annotation.fromJSON = fromJSON;
|
|
3784
|
+
function toJSON(message) {
|
|
2920
3785
|
const obj = {};
|
|
2921
3786
|
if (message.path) {
|
|
2922
3787
|
obj.path = message.path.map((e) => Math.round(e));
|
|
@@ -2927,22 +3792,28 @@ exports.GeneratedCodeInfo_Annotation = {
|
|
|
2927
3792
|
message.sourceFile !== undefined && (obj.sourceFile = message.sourceFile);
|
|
2928
3793
|
message.begin !== undefined && (obj.begin = Math.round(message.begin));
|
|
2929
3794
|
message.end !== undefined && (obj.end = Math.round(message.end));
|
|
3795
|
+
message.semantic !== undefined && (obj.semantic = generatedCodeInfo_Annotation_SemanticToJSON(message.semantic));
|
|
2930
3796
|
return obj;
|
|
2931
|
-
}
|
|
2932
|
-
|
|
2933
|
-
|
|
2934
|
-
|
|
2935
|
-
|
|
2936
|
-
|
|
3797
|
+
}
|
|
3798
|
+
GeneratedCodeInfo_Annotation.toJSON = toJSON;
|
|
3799
|
+
function create(base) {
|
|
3800
|
+
return GeneratedCodeInfo_Annotation.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
3801
|
+
}
|
|
3802
|
+
GeneratedCodeInfo_Annotation.create = create;
|
|
3803
|
+
function fromPartial(object) {
|
|
3804
|
+
var _a;
|
|
3805
|
+
var _b, _c, _d, _e;
|
|
2937
3806
|
const message = createBaseGeneratedCodeInfo_Annotation();
|
|
2938
3807
|
message.path = ((_a = object.path) === null || _a === void 0 ? void 0 : _a.map((e) => e)) || [];
|
|
2939
3808
|
message.sourceFile = (_b = object.sourceFile) !== null && _b !== void 0 ? _b : "";
|
|
2940
3809
|
message.begin = (_c = object.begin) !== null && _c !== void 0 ? _c : 0;
|
|
2941
3810
|
message.end = (_d = object.end) !== null && _d !== void 0 ? _d : 0;
|
|
3811
|
+
message.semantic = (_e = object.semantic) !== null && _e !== void 0 ? _e : 0;
|
|
2942
3812
|
return message;
|
|
2943
|
-
}
|
|
2944
|
-
|
|
2945
|
-
|
|
3813
|
+
}
|
|
3814
|
+
GeneratedCodeInfo_Annotation.fromPartial = fromPartial;
|
|
3815
|
+
})(GeneratedCodeInfo_Annotation || (exports.GeneratedCodeInfo_Annotation = GeneratedCodeInfo_Annotation = {}));
|
|
3816
|
+
const tsProtoGlobalThis = (() => {
|
|
2946
3817
|
if (typeof globalThis !== "undefined") {
|
|
2947
3818
|
return globalThis;
|
|
2948
3819
|
}
|