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