aboutsummaryrefslogtreecommitdiffstats
path: root/zellij-utils/assets/prost/api.event.rs
blob: 9e3b3a09546c9dfd3816d9544d990148707f87e2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
// This file is @generated by prost-build.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct EventNameList {
    #[prost(enumeration="EventType", repeated, tag="1")]
    pub event_types: ::prost::alloc::vec::Vec<i32>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Event {
    #[prost(enumeration="EventType", tag="1")]
    pub name: i32,
    #[prost(oneof="event::Payload", tags="2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43")]
    pub payload: ::core::option::Option<event::Payload>,
}
/// Nested message and enum types in `Event`.
pub mod event {
    #[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Payload {
        #[prost(message, tag="2")]
        ModeUpdatePayload(super::ModeUpdatePayload),
        #[prost(message, tag="3")]
        TabUpdatePayload(super::TabUpdatePayload),
        #[prost(message, tag="4")]
        PaneUpdatePayload(super::PaneUpdatePayload),
        #[prost(message, tag="5")]
        KeyPayload(super::super::key::Key),
        #[prost(message, tag="6")]
        MouseEventPayload(super::MouseEventPayload),
        #[prost(float, tag="7")]
        TimerPayload(f32),
        #[prost(enumeration="super::CopyDestination", tag="8")]
        CopyToClipboardPayload(i32),
        #[prost(bool, tag="9")]
        VisiblePayload(bool),
        #[prost(message, tag="10")]
        CustomMessagePayload(super::CustomMessagePayload),
        #[prost(message, tag="11")]
        FileListPayload(super::FileListPayload),
        #[prost(message, tag="12")]
        PermissionRequestResultPayload(super::PermissionRequestResultPayload),
        #[prost(message, tag="13")]
        SessionUpdatePayload(super::SessionUpdatePayload),
        #[prost(message, tag="14")]
        RunCommandResultPayload(super::RunCommandResultPayload),
        #[prost(message, tag="15")]
        WebRequestResultPayload(super::WebRequestResultPayload),
        #[prost(message, tag="16")]
        CommandPaneOpenedPayload(super::CommandPaneOpenedPayload),
        #[prost(message, tag="17")]
        CommandPaneExitedPayload(super::CommandPaneExitedPayload),
        #[prost(message, tag="18")]
        PaneClosedPayload(super::PaneClosedPayload),
        #[prost(message, tag="19")]
        EditPaneOpenedPayload(super::EditPaneOpenedPayload),
        #[prost(message, tag="20")]
        EditPaneExitedPayload(super::EditPaneExitedPayload),
        #[prost(message, tag="21")]
        CommandPaneRerunPayload(super::CommandPaneReRunPayload),
        #[prost(message, tag="22")]
        FailedToWriteConfigToDiskPayload(super::FailedToWriteConfigToDiskPayload),
        #[prost(message, tag="23")]
        ListClientsPayload(super::ListClientsPayload),
        #[prost(message, tag="24")]
        HostFolderChangedPayload(super::HostFolderChangedPayload),
        #[prost(message, tag="25")]
        FailedToChangeHostFolderPayload(super::FailedToChangeHostFolderPayload),
        #[prost(message, tag="26")]
        PastedTextPayload(super::PastedTextPayload),
        #[prost(message, tag="27")]
        WebServerStatusPayload(super::WebServerStatusPayload),
        #[prost(message, tag="28")]
        FailedToStartWebServerPayload(super::FailedToStartWebServerPayload),
        #[prost(message, tag="29")]
        InterceptedKeyPayload(super::super::key::Key),
        #[prost(message, tag="30")]
        PaneRenderReportPayload(super::PaneRenderReportPayload),
        #[prost(message, tag="31")]
        UserActionPayload(super::UserActionPayload),
        #[prost(message, tag="32")]
        ActionCompletePayload(super::ActionCompletePayload),
        #[prost(message, tag="33")]
        CwdChangedPayload(super::CwdChangedPayload),
        #[prost(message, tag="34")]
        AvailableLayoutInfoPayload(super::AvailableLayoutInfoPayload),
        #[prost(message, tag="35")]
        PluginConfigurationChangedPayload(super::PluginConfigurationChangedPayload),
        #[prost(message, tag="36")]
        HighlightClickedPayload(super::HighlightClickedPayload),
        #[prost(message, tag="37")]
        PaneRenderReportWithAnsiPayload(super::PaneRenderReportPayload),
        #[prost(message, tag="38")]
        InitialKeybindsPayload(super::InitialKeybindsPayload),
        #[prost(message, tag="39")]
        CommandChangedPayload(super::CommandChangedPayload),
        #[prost(message, tag="40")]
        HostTerminalThemeChangedPayload(super::HostTerminalThemeChangedPayload),
        #[prost(message, tag="41")]
        SoftKeyboardVisibilityChangedPayload(super::SoftKeyboardVisibilityChangedPayload),
        #[prost(message, tag="42")]
        HintTextPayload(super::HintTextPayload),
        #[prost(message, tag="43")]
        ActivePaneScrollPayload(super::ActivePaneScrollPayload),
    }
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct HintTextPayload {
    #[prost(map="uint32, message", tag="1")]
    pub hint_text: ::std::collections::HashMap<u32, StyledText>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ActivePaneScrollPayload {
    #[prost(uint32, optional, tag="1")]
    pub position: ::core::option::Option<u32>,
    #[prost(uint32, optional, tag="2")]
    pub length: ::core::option::Option<u32>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StyledText {
    #[prost(string, tag="1")]
    pub text: ::prost::alloc::string::String,
    #[prost(message, repeated, tag="2")]
    pub indices: ::prost::alloc::vec::Vec<StyledTextIndices>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StyledTextIndices {
    #[prost(uint32, repeated, tag="1")]
    pub indices: ::prost::alloc::vec::Vec<u32>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct HostTerminalThemeChangedPayload {
    #[prost(enumeration="HostTerminalThemeIndication", tag="1")]
    pub mode: i32,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SoftKeyboardVisibilityChangedPayload {
    #[prost(bool, tag="1")]
    pub visible: bool,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CwdChangedPayload {
    #[prost(message, optional, tag="1")]
    pub pane_id: ::core::option::Option<PaneId>,
    #[prost(string, tag="2")]
    pub new_cwd: ::prost::alloc::string::String,
    #[prost(uint32, repeated, tag="3")]
    pub focused_client_ids: ::prost::alloc::vec::Vec<u32>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CommandChangedPayload {
    #[prost(message, optional, tag="1")]
    pub pane_id: ::core::option::Option<PaneId>,
    #[prost(string, repeated, tag="2")]
    pub command: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    #[prost(bool, tag="3")]
    pub is_foreground: bool,
    #[prost(uint32, repeated, tag="4")]
    pub focused_client_ids: ::prost::alloc::vec::Vec<u32>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct FailedToStartWebServerPayload {
    #[prost(string, tag="1")]
    pub error: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PastedTextPayload {
    #[prost(string, tag="1")]
    pub pasted_text: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct WebServerStatusPayload {
    #[prost(enumeration="WebServerStatusIndication", tag="1")]
    pub web_server_status_indication: i32,
    #[prost(string, optional, tag="2")]
    pub payload: ::core::option::Option<::prost::alloc::string::String>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct FailedToChangeHostFolderPayload {
    #[prost(string, optional, tag="1")]
    pub error_message: ::core::option::Option<::prost::alloc::string::String>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct HostFolderChangedPayload {
    #[prost(string, tag="1")]
    pub new_host_folder_path: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListClientsPayload {
    #[prost(message, repeated, tag="1")]
    pub client_info: ::prost::alloc::vec::Vec<ClientInfo>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ClientInfo {
    #[prost(uint32, tag="1")]
    pub client_id: u32,
    #[prost(message, optional, tag="2")]
    pub pane_id: ::core::option::Option<PaneId>,
    #[prost(string, tag="3")]
    pub running_command: ::prost::alloc::string::String,
    #[prost(bool, tag="4")]
    pub is_current_client: bool,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct FailedToWriteConfigToDiskPayload {
    #[prost(string, optional, tag="1")]
    pub file_path: ::core::option::Option<::prost::alloc::string::String>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CommandPaneReRunPayload {
    #[prost(uint32, tag="1")]
    pub terminal_pane_id: u32,
    #[prost(message, repeated, tag="3")]
    pub context: ::prost::alloc::vec::Vec<ContextItem>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PaneClosedPayload {
    #[prost(message, optional, tag="1")]
    pub pane_id: ::core::option::Option<PaneId>,
}
/// duplicate of plugin_command.PaneId because protobuffs don't like recursive imports
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PaneId {
    #[prost(enumeration="PaneType", tag="1")]
    pub pane_type: i32,
    #[prost(uint32, tag="2")]
    pub id: u32,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CommandPaneOpenedPayload {
    #[prost(uint32, tag="1")]
    pub terminal_pane_id: u32,
    #[prost(message, repeated, tag="2")]
    pub context: ::prost::alloc::vec::Vec<ContextItem>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct EditPaneOpenedPayload {
    #[prost(uint32, tag="1")]
    pub terminal_pane_id: u32,
    #[prost(message, repeated, tag="2")]
    pub context: ::prost::alloc::vec::Vec<ContextItem>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CommandPaneExitedPayload {
    #[prost(uint32, tag="1")]
    pub terminal_pane_id: u32,
    #[prost(int32, optional, tag="2")]
    pub exit_code: ::core::option::Option<i32>,
    #[prost(message, repeated, tag="3")]
    pub context: ::prost::alloc::vec::Vec<ContextItem>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct EditPaneExitedPayload {
    #[prost(uint32, tag="1")]
    pub terminal_pane_id: u32,
    #[prost(int32, optional, tag="2")]
    pub exit_code: ::core::option::Option<i32>,
    #[prost(message, repeated, tag="3")]
    pub context: ::prost::alloc::vec::Vec<ContextItem>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SessionUpdatePayload {
    #[prost(message, repeated, tag="1")]
    pub session_manifests: ::prost::alloc::vec::Vec<SessionManifest>,
    #[prost(message, repeated, tag="2")]
    pub resurrectable_sessions: ::prost::alloc::vec::Vec<ResurrectableSession>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AvailableLayoutInfoPayload {
    #[prost(message, repeated, tag="1")]
    pub available_layouts: ::prost::alloc::vec::Vec<LayoutInfo>,
    #[prost(message, repeated, tag="2")]
    pub layouts_with_errors: ::prost::alloc::vec::Vec<LayoutWithError>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RunCommandResultPayload {
    #[prost(int32, optional, tag="1")]
    pub exit_code: ::core::option::Option<i32>,
    #[prost(bytes="vec", tag="2")]
    pub stdout: ::prost::alloc::vec::Vec<u8>,
    #[prost(bytes="vec", tag="3")]
    pub stderr: ::prost::alloc::vec::Vec<u8>,
    #[prost(message, repeated, tag="4")]
    pub context: ::prost::alloc::vec::Vec<ContextItem>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct WebRequestResultPayload {
    #[prost(int32, tag="1")]
    pub status: i32,
    #[prost(message, repeated, tag="2")]
    pub headers: ::prost::alloc::vec::Vec<Header>,
    #[prost(bytes="vec", tag="3")]
    pub body: ::prost::alloc::vec::Vec<u8>,
    #[prost(message, repeated, tag="4")]
    pub context: ::prost::alloc::vec::Vec<ContextItem>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ContextItem {
    #[prost(string, tag="1")]
    pub name: ::prost::alloc::string::String,
    #[prost(string, tag="2")]
    pub value: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Header {
    #[prost(string, tag="1")]
    pub name: ::prost::alloc::string::String,
    #[prost(string, tag="2")]
    pub value: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PermissionRequestResultPayload {
    #[prost(bool, tag="1")]
    pub granted: bool,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct FileListPayload {
    #[prost(string, repeated, tag="1")]
    pub paths: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    #[prost(message, repeated, tag="2")]
    pub paths_metadata: ::prost::alloc::vec::Vec<FileMetadata>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct FileMetadata {
    /// if this is false, the metadata for this file has not been read
    #[prost(bool, tag="1")]
    pub metadata_is_set: bool,
    #[prost(bool, tag="2")]
    pub is_dir: bool,
    #[prost(bool, tag="3")]
    pub is_file: bool,
    #[prost(bool, tag="4")]
    pub is_symlink: bool,
    #[prost(uint64, tag="5")]
    pub len: u64,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CustomMessagePayload {
    #[prost(string, tag="1")]
    pub message_name: ::prost::alloc::string::String,
    #[prost(string, tag="2")]
    pub payload: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MouseEventPayload {
    #[prost(enumeration="MouseEventName", tag="1")]
    pub mouse_event_name: i32,
    #[prost(oneof="mouse_event_payload::MouseEventPayload", tags="2, 3")]
    pub mouse_event_payload: ::core::option::Option<mouse_event_payload::MouseEventPayload>,
}
/// Nested message and enum types in `MouseEventPayload`.
pub mod mouse_event_payload {
    #[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum MouseEventPayload {
        #[prost(uint32, tag="2")]
        LineCount(u32),
        #[prost(message, tag="3")]
        Position(super::super::action::Position),
    }
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TabUpdatePayload {
    #[prost(message, repeated, tag="1")]
    pub tab_info: ::prost::alloc::vec::Vec<TabInfo>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PaneUpdatePayload {
    #[prost(message, repeated, tag="1")]
    pub pane_manifest: ::prost::alloc::vec::Vec<PaneManifest>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PaneManifest {
    #[prost(uint32, tag="1")]
    pub tab_index: u32,
    #[prost(message, repeated, tag="2")]
    pub panes: ::prost::alloc::vec::Vec<PaneInfo>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SessionManifest {
    #[prost(string, tag="1")]
    pub name: ::prost::alloc::string::String,
    #[prost(message, repeated, tag="2")]
    pub tabs: ::prost::alloc::vec::Vec<TabInfo>,
    #[prost(message, repeated, tag="3")]
    pub panes: ::prost::alloc::vec::Vec<PaneManifest>,
    #[prost(uint32, tag="4")]
    pub connected_clients: u32,
    #[prost(bool, tag="5")]
    pub is_current_session: bool,
    #[prost(message, repeated, tag="6")]
    pub available_layouts: ::prost::alloc::vec::Vec<LayoutInfo>,
    #[prost(message, repeated, tag="7")]
    pub plugins: ::prost::alloc::vec::Vec<PluginInfo>,
    #[prost(bool, tag="8")]
    pub web_clients_allowed: bool,
    #[prost(uint32, tag="9")]
    pub web_client_count: u32,
    #[prost(message, repeated, tag="10")]
    pub tab_history: ::prost::alloc::vec::Vec<ClientTabHistory>,
    #[prost(message, repeated, tag="11")]
    pub pane_history: ::prost::alloc::vec::Vec<ClientPaneHistory>,
    #[prost(uint64, tag="12")]
    pub creation_time: u64,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ClientTabHistory {
    #[prost(uint32, tag="1")]
    pub client_id: u32,
    #[prost(uint32, repeated, tag="2")]
    pub tab_history: ::prost::alloc::vec::Vec<u32>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ClientPaneHistory {
    #[prost(uint32, tag="1")]
    pub client_id: u32,
    #[prost(message, repeated, tag="2")]
    pub pane_history: ::prost::alloc::vec::Vec<PaneId>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PluginInfo {
    #[prost(uint32, tag="1")]
    pub plugin_id: u32,
    #[prost(string, tag="2")]
    pub plugin_url: ::prost::alloc::string::String,
    #[prost(message, repeated, tag="3")]
    pub plugin_config: ::prost::alloc::vec::Vec<ContextItem>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LayoutInfo {
    #[prost(string, tag="1")]
    pub name: ::prost::alloc::string::String,
    #[prost(string, tag="2")]
    pub source: ::prost::alloc::string::String,
    #[prost(message, optional, tag="5")]
    pub layout_metadata: ::core::option::Option<LayoutMetadata>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LayoutWithError {
    #[prost(string, tag="1")]
    pub layout_name: ::prost::alloc::string::String,
    #[prost(message, optional, tag="2")]
    pub error: ::core::option::Option<LayoutParsingError>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LayoutParsingError {
    #[prost(oneof="layout_parsing_error::ErrorType", tags="1, 2")]
    pub error_type: ::core::option::Option<layout_parsing_error::ErrorType>,
}
/// Nested message and enum types in `LayoutParsingError`.
pub mod layout_parsing_error {
    #[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum ErrorType {
        #[prost(message, tag="1")]
        KdlError(super::KdlErrorVariant),
        #[prost(message, tag="2")]
        SyntaxError(super::SyntaxError),
    }
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct KdlErrorVariant {
    #[prost(message, optional, tag="1")]
    pub kdl_error: ::core::option::Option<KdlError>,
    #[prost(string, tag="2")]
    pub file_name: ::prost::alloc::string::String,
    #[prost(string, tag="3")]
    pub source_code: ::prost::alloc::string::String,
}
/// Empty message, just a marker
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SyntaxError {
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct KdlError {
    #[prost(string, tag="1")]
    pub error_message: ::prost::alloc::string::String,
    #[prost(uint64, optional, tag="2")]
    pub offset: ::core::option::Option<u64>,
    #[prost(uint64, optional, tag="3")]
    pub len: ::core::option::Option<u64>,
    #[prost(string, optional, tag="4")]
    pub help_message: ::core::option::Option<::prost::alloc::string::String>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LayoutMetadata {
    #[prost(message, repeated, tag="1")]
    pub tabs: ::prost::alloc::vec::Vec<TabMetadata>,
    #[prost(string, tag="2")]
    pub creation_time: ::prost::alloc::string::String,
    #[prost(string, tag="3")]
    pub update_time: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TabMetadata {
    #[prost(message, repeated, tag="1")]
    pub pane_metadata: ::prost::alloc::vec::Vec<PaneMetadata>,
    #[prost(string, optional, tag="2")]
    pub name: ::core::option::Option<::prost::alloc::string::String>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PaneMetadata {
    #[prost(string, optional, tag="1")]
    pub name: ::core::option::Option<::prost::alloc::string::String>,
    #[prost(bool, tag="2")]
    pub is_plugin: bool,
    #[prost(bool, tag="3")]
    pub is_builtin_plugin: bool,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ResurrectableSession {
    #[prost(string, tag="1")]
    pub name: ::prost::alloc::string::String,
    #[prost(uint64, tag="2")]
    pub creation_time: u64,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PaneInfo {
    #[prost(uint32, tag="1")]
    pub id: u32,
    #[prost(bool, tag="2")]
    pub is_plugin: bool,
    #[prost(bool, tag="3")]
    pub is_focused: bool,
    #[prost(bool, tag="4")]
    pub is_fullscreen: bool,
    #[prost(bool, tag="5")]
    pub is_floating: bool,
    #[prost(bool, tag="6")]
    pub is_suppressed: bool,
    #[prost(string, tag="7")]
    pub title: ::prost::alloc::string::String,
    #[prost(bool, tag="8")]
    pub exited: bool,
    #[prost(int32, optional, tag="9")]
    pub exit_status: ::core::option::Option<i32>,
    #[prost(bool, tag="10")]
    pub is_held: bool,
    #[prost(uint32, tag="11")]
    pub pane_x: u32,
    #[prost(uint32, tag="12")]
    pub pane_content_x: u32,
    #[prost(uint32, tag="13")]
    pub pane_y: u32,
    #[prost(uint32, tag="14")]
    pub pane_content_y: u32,
    #[prost(uint32, tag="15")]
    pub pane_rows: u32,
    #[prost(uint32, tag="16")]
    pub pane_content_rows: u32,
    #[prost(uint32, tag="17")]
    pub pane_columns: u32,
    #[prost(uint32, tag="18")]
    pub pane_content_columns: u32,
    #[prost(message, optional, tag="19")]
    pub cursor_coordinates_in_pane: ::core::option::Option<super::action::Position>,
    #[prost(string, optional, tag="20")]
    pub terminal_command: ::core::option::Option<::prost::alloc::string::String>,
    #[prost(string, optional, tag="21")]
    pub plugin_url: ::core::option::Option<::prost::alloc::string::String>,
    #[prost(bool, tag="22")]
    pub is_selectable: bool,
    #[prost(message, repeated, tag="23")]
    pub index_in_pane_group: ::prost::alloc::vec::Vec<IndexInPaneGroup>,
    #[prost(string, optional, tag="24")]
    pub default_fg: ::core::option::Option<::prost::alloc::string::String>,
    #[prost(string, optional, tag="25")]
    pub default_bg: ::core::option::Option<::prost::alloc::string::String>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct IndexInPaneGroup {
    #[prost(uint32, tag="1")]
    pub client_id: u32,
    #[prost(uint32, tag="2")]
    pub index: u32,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TabInfo {
    #[prost(uint32, tag="1")]
    pub position: u32,
    #[prost(string, tag="2")]
    pub name: ::prost::alloc::string::String,
    #[prost(bool, tag="3")]
    pub active: bool,
    #[prost(uint32, tag="4")]
    pub panes_to_hide: u32,
    #[prost(bool, tag="5")]
    pub is_fullscreen_active: bool,
    #[prost(bool, tag="6")]
    pub is_sync_panes_active: bool,
    #[prost(bool, tag="7")]
    pub are_floating_panes_visible: bool,
    #[prost(uint32, repeated, tag="8")]
    pub other_focused_clients: ::prost::alloc::vec::Vec<u32>,
    #[prost(string, optional, tag="9")]
    pub active_swap_layout_name: ::core::option::Option<::prost::alloc::string::String>,
    #[prost(bool, tag="10")]
    pub is_swap_layout_dirty: bool,
    #[prost(uint32, tag="11")]
    pub viewport_rows: u32,
    #[prost(uint32, tag="12")]
    pub viewport_columns: u32,
    #[prost(uint32, tag="13")]
    pub display_area_rows: u32,
    #[prost(uint32, tag="14")]
    pub display_area_columns: u32,
    #[prost(uint32, tag="15")]
    pub selectable_tiled_panes_count: u32,
    #[prost(uint32, tag="16")]
    pub selectable_floating_panes_count: u32,
    #[prost(uint32, tag="17")]
    pub tab_id: u32,
    #[prost(bool, tag="18")]
    pub has_bell_notification: bool,
    #[prost(bool, tag="19")]
    pub is_flashing_bell: bool,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ModeUpdatePayload {
    #[prost(enumeration="super::input_mode::InputMode", tag="1")]
    pub current_mode: i32,
    #[prost(message, repeated, tag="2")]
    pub keybinds: ::prost::alloc::vec::Vec<InputModeKeybinds>,
    #[prost(message, optional, tag="3")]
    pub style: ::core::option::Option<super::style::Style>,
    #[prost(bool, tag="4")]
    pub arrow_fonts_support: bool,
    #[prost(string, optional, tag="5")]
    pub session_name: ::core::option::Option<::prost::alloc::string::String>,
    #[prost(enumeration="super::input_mode::InputMode", optional, tag="6")]
    pub base_mode: ::core::option::Option<i32>,
    #[prost(string, optional, tag="7")]
    pub editor: ::core::option::Option<::prost::alloc::string::String>,
    #[prost(string, optional, tag="8")]
    pub shell: ::core::option::Option<::prost::alloc::string::String>,
    #[prost(bool, optional, tag="9")]
    pub web_clients_allowed: ::core::option::Option<bool>,
    #[prost(enumeration="WebSharing", optional, tag="10")]
    pub web_sharing: ::core::option::Option<i32>,
    #[prost(bool, optional, tag="11")]
    pub currently_marking_pane_group: ::core::option::Option<bool>,
    #[prost(bool, optional, tag="12")]
    pub is_web_client: ::core::option::Option<bool>,
    #[prost(string, optional, tag="13")]
    pub web_server_ip: ::core::option::Option<::prost::alloc::string::String>,
    #[prost(uint32, optional, tag="14")]
    pub web_server_port: ::core::option::Option<u32>,
    #[prost(bool, optional, tag="15")]
    pub web_server_capability: ::core::option::Option<bool>,
    #[prost(enumeration="PaneFrameStyle", optional, tag="16")]
    pub pane_frame_style: ::core::option::Option<i32>,
    #[prost(bool, optional, tag="17")]
    pub session_dimmed: ::core::option::Option<bool>,
    #[prost(string, repeated, tag="18")]
    pub ancestry: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    #[prost(bool, optional, tag="19")]
    pub host_fullscreen: ::core::option::Option<bool>,
    #[prost(string, repeated, tag="20")]
    pub nested_ascend_keys: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    #[prost(bool, optional, tag="21")]
    pub session_ascended: ::core::option::Option<bool>,
    #[prost(string, repeated, tag="22")]
    pub nested_descend_keys: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InputModeKeybinds {
    #[prost(enumeration="super::input_mode::InputMode", tag="1")]
    pub mode: i32,
    #[prost(message, repeated, tag="2")]
    pub key_bind: ::prost::alloc::vec::Vec<KeyBind>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct KeyBind {
    #[prost(message, optional, tag="1")]
    pub key: ::core::option::Option<super::key::Key>,
    #[prost(message, repeated, tag="2")]
    pub action: ::prost::alloc::vec::Vec<super::action::Action>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PaneRenderReportPayload {
    #[prost(message, repeated, tag="1")]
    pub pane_contents: ::prost::alloc::vec::Vec<PaneContentsEntry>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PaneContentsEntry {
    #[prost(message, optional, tag="1")]
    pub pane_id: ::core::option::Option<PaneId>,
    #[prost(message, optional, tag="2")]
    pub pane_contents: ::core::option::Option<PaneContents>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PaneContents {
    #[prost(string, repeated, tag="1")]
    pub viewport: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    #[prost(message, optional, tag="2")]
    pub selected_text: ::core::option::Option<SelectedText>,
    #[prost(string, repeated, tag="3")]
    pub lines_above_viewport: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    #[prost(string, repeated, tag="4")]
    pub lines_below_viewport: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    #[prost(message, optional, tag="5")]
    pub cursor: ::core::option::Option<super::action::Position>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PaneScrollbackResponse {
    #[prost(oneof="pane_scrollback_response::Response", tags="1, 2")]
    pub response: ::core::option::Option<pane_scrollback_response::Response>,
}
/// Nested message and enum types in `PaneScrollbackResponse`.
pub mod pane_scrollback_response {
    #[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Response {
        #[prost(message, tag="1")]
        Ok(super::PaneContents),
        #[prost(string, tag="2")]
        Err(::prost::alloc::string::String),
    }
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SelectedText {
    #[prost(message, optional, tag="1")]
    pub start: ::core::option::Option<super::action::Position>,
    #[prost(message, optional, tag="2")]
    pub end: ::core::option::Option<super::action::Position>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UserActionPayload {
    #[prost(message, optional, tag="1")]
    pub action: ::core::option::Option<super::action::Action>,
    #[prost(uint32, tag="2")]
    pub client_id: u32,
    #[prost(uint32, optional, tag="3")]
    pub terminal_id: ::core::option::Option<u32>,
    #[prost(uint32, optional, tag="4")]
    pub cli_client_id: ::core::option::Option<u32>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ActionCompletePayload {
    #[prost(message, optional, tag="1")]
    pub action: ::core::option::Option<super::action::Action>,
    #[prost(message, optional, tag="2")]
    pub pane_id: ::core::option::Option<PaneId>,
    #[prost(message, repeated, tag="3")]
    pub context: ::prost::alloc::vec::Vec<ContextItem>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PluginConfigurationChangedPayload {
    #[prost(message, repeated, tag="1")]
    pub configuration: ::prost::alloc::vec::Vec<ContextItem>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct HighlightClickedPayload {
    #[prost(message, optional, tag="1")]
    pub pane_id: ::core::option::Option<PaneId>,
    #[prost(string, tag="2")]
    pub pattern: ::prost::alloc::string::String,
    #[prost(string, tag="3")]
    pub matched_string: ::prost::alloc::string::String,
    #[prost(message, repeated, tag="4")]
    pub context: ::prost::alloc::vec::Vec<ContextItem>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InitialKeybindsPayload {
    #[prost(message, repeated, tag="1")]
    pub keybinds: ::prost::alloc::vec::Vec<InputModeKeybinds>,
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum EventType {
    /// / The input mode or relevant metadata changed
    ModeUpdate = 0,
    /// / The tab state in the app was changed
    TabUpdate = 1,
    /// / The pane state in the app was changed
    PaneUpdate = 2,
    /// / A key was pressed while the user is focused on this plugin's pane
    Key = 3,
    /// / A mouse event happened while the user is focused on this plugin's pane
    Mouse = 4,
    /// / A timer expired set by the `set_timeout` method exported by `zellij-tile`.
    Timer = 5,
    /// / Text was copied to the clipboard anywhere in the app
    CopyToClipboard = 6,
    /// / Failed to copy text to clipboard anywhere in the app
    SystemClipboardFailure = 7,
    /// / Input was received anywhere in the app
    InputReceived = 8,
    /// / This plugin became visible or invisible
    Visible = 9,
    /// / A message from one of the plugin's workers
    CustomMessage = 10,
    /// / A file was created somewhere in the Zellij CWD folder
    FileSystemCreate = 11,
    /// / A file was accessed somewhere in the Zellij CWD folder
    FileSystemRead = 12,
    /// / A file was modified somewhere in the Zellij CWD folder
    FileSystemUpdate = 13,
    /// / A file was deleted somewhere in the Zellij CWD folder
    FileSystemDelete = 14,
    PermissionRequestResult = 15,
    SessionUpdate = 16,
    RunCommandResult = 17,
    WebRequestResult = 18,
    CommandPaneOpened = 19,
    CommandPaneExited = 20,
    PaneClosed = 21,
    EditPaneOpened = 22,
    EditPaneExited = 23,
    CommandPaneReRun = 24,
    FailedToWriteConfigToDisk = 25,
    ListClients = 26,
    HostFolderChanged = 27,
    FailedToChangeHostFolder = 28,
    PastedText = 29,
    ConfigWasWrittenToDisk = 30,
    WebServerStatus = 31,
    BeforeClose = 32,
    FailedToStartWebServer = 34,
    InterceptedKeyPress = 35,
    PaneRenderReport = 36,
    UserAction = 37,
    ActionComplete = 38,
    CwdChanged = 39,
    AvailableLayoutInfo = 40,
    PluginConfigurationChanged = 41,
    HighlightClicked = 42,
    PaneRenderReportWithAnsi = 43,
    InitialKeybinds = 44,
    CommandChanged = 45,
    HostTerminalThemeChanged = 46,
    SoftKeyboardVisibilityChanged = 47,
    HintText = 48,
    ActivePaneScroll = 49,
}
impl EventType {
    /// String value of the enum field names used in the ProtoBuf definition.
    ///
    /// The values are not transformed in any way and thus are considered stable
    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
    pub fn as_str_name(&self) -> &'static str {
        match self {
            EventType::ModeUpdate => "ModeUpdate",
            EventType::TabUpdate => "TabUpdate",
            EventType::PaneUpdate => "PaneUpdate",
            EventType::Key => "Key",
            EventType::Mouse => "Mouse",
            EventType::Timer => "Timer",
            EventType::CopyToClipboard => "CopyToClipboard",
            EventType::SystemClipboardFailure => "SystemClipboardFailure",
            EventType::InputReceived => "InputReceived",
            EventType::Visible => "Visible",
            EventType::CustomMessage => "CustomMessage",
            EventType::FileSystemCreate => "FileSystemCreate",
            EventType::FileSystemRead => "FileSystemRead",
            EventType::FileSystemUpdate => "FileSystemUpdate",
            EventType::FileSystemDelete => "FileSystemDelete",
            EventType::PermissionRequestResult => "PermissionRequestResult",
            EventType::SessionUpdate => "SessionUpdate",
            EventType::RunCommandResult => "RunCommandResult",
            EventType::WebRequestResult => "WebRequestResult",
            EventType::CommandPaneOpened => "CommandPaneOpened",
            EventType::CommandPaneExited => "CommandPaneExited",
            EventType::PaneClosed => "PaneClosed",
            EventType::EditPaneOpened => "EditPaneOpened",
            EventType::EditPaneExited => "EditPaneExited",
            EventType::CommandPaneReRun => "CommandPaneReRun",
            EventType::FailedToWriteConfigToDisk => "FailedToWriteConfigToDisk",
            EventType::ListClients => "ListClients",
            EventType::HostFolderChanged => "HostFolderChanged",
            EventType::FailedToChangeHostFolder => "FailedToChangeHostFolder",
            EventType::PastedText => "PastedText",
            EventType::ConfigWasWrittenToDisk => "ConfigWasWrittenToDisk",
            EventType::WebServerStatus => "WebServerStatus",
            EventType::BeforeClose => "BeforeClose",
            EventType::FailedToStartWebServer => "FailedToStartWebServer",
            EventType::InterceptedKeyPress => "InterceptedKeyPress",
            EventType::PaneRenderReport => "PaneRenderReport",
            EventType::UserAction => "UserAction",
            EventType::ActionComplete => "ActionComplete",
            EventType::CwdChanged => "CwdChanged",
            EventType::AvailableLayoutInfo => "AvailableLayoutInfo",
            EventType::PluginConfigurationChanged => "PluginConfigurationChanged",
            EventType::HighlightClicked => "HighlightClicked",
            EventType::PaneRenderReportWithAnsi => "PaneRenderReportWithAnsi",
            EventType::InitialKeybinds => "InitialKeybinds",
            EventType::CommandChanged => "CommandChanged",
            EventType::HostTerminalThemeChanged => "HostTerminalThemeChanged",
            EventType::SoftKeyboardVisibilityChanged => "SoftKeyboardVisibilityChanged",
            EventType::HintText => "HintText",
            EventType::ActivePaneScroll => "ActivePaneScroll",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "ModeUpdate" => Some(Self::ModeUpdate),
            "TabUpdate" => Some(Self::TabUpdate),
            "PaneUpdate" => Some(Self::PaneUpdate),
            "Key" => Some(Self::Key),
            "Mouse" => Some(Self::Mouse),
            "Timer" => Some(Self::Timer),
            "CopyToClipboard" => Some(Self::CopyToClipboard),
            "SystemClipboardFailure" => Some(Self::SystemClipboardFailure),
            "InputReceived" => Some(Self::InputReceived),
            "Visible" => Some(Self::Visible),
            "CustomMessage" => Some(Self::CustomMessage),
            "FileSystemCreate" => Some(Self::FileSystemCreate),
            "FileSystemRead" => Some(Self::FileSystemRead),
            "FileSystemUpdate" => Some(Self::FileSystemUpdate),
            "FileSystemDelete" => Some(Self::FileSystemDelete),
            "PermissionRequestResult" => Some(Self::PermissionRequestResult),
            "SessionUpdate" => Some(Self::SessionUpdate),
            "RunCommandResult" => Some(Self::RunCommandResult),
            "WebRequestResult" => Some(Self::WebRequestResult),
            "CommandPaneOpened" => Some(Self::CommandPaneOpened),
            "CommandPaneExited" => Some(Self::CommandPaneExited),
            "PaneClosed" => Some(Self::PaneClosed),
            "EditPaneOpened" => Some(Self::EditPaneOpened),
            "EditPaneExited" => Some(Self::EditPaneExited),
            "CommandPaneReRun" => Some(Self::CommandPaneReRun),
            "FailedToWriteConfigToDisk" => Some(Self::FailedToWriteConfigToDisk),
            "ListClients" => Some(Self::ListClients),
            "HostFolderChanged" => Some(Self::HostFolderChanged),
            "FailedToChangeHostFolder" => Some(Self::FailedToChangeHostFolder),
            "PastedText" => Some(Self::PastedText),
            "ConfigWasWrittenToDisk" => Some(Self::ConfigWasWrittenToDisk),
            "WebServerStatus" => Some(Self::WebServerStatus),
            "BeforeClose" => Some(Self::BeforeClose),
            "FailedToStartWebServer" => Some(Self::FailedToStartWebServer),
            "InterceptedKeyPress" => Some(Self::InterceptedKeyPress),
            "PaneRenderReport" => Some(Self::PaneRenderReport),
            "UserAction" => Some(Self::UserAction),
            "ActionComplete" => Some(Self::ActionComplete),
            "CwdChanged" => Some(Self::CwdChanged),
            "AvailableLayoutInfo" => Some(Self::AvailableLayoutInfo),
            "PluginConfigurationChanged" => Some(Self::PluginConfigurationChanged),
            "HighlightClicked" => Some(Self::HighlightClicked),
            "PaneRenderReportWithAnsi" => Some(Self::PaneRenderReportWithAnsi),
            "InitialKeybinds" => Some(Self::InitialKeybinds),
            "CommandChanged" => Some(Self::CommandChanged),
            "HostTerminalThemeChanged" => Some(Self::HostTerminalThemeChanged),
            "SoftKeyboardVisibilityChanged" => Some(Self::SoftKeyboardVisibilityChanged),
            "HintText" => Some(Self::HintText),
            "ActivePaneScroll" => Some(Self::ActivePaneScroll),
            _ => None,
        }
    }
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum HostTerminalThemeIndication {
    Dark = 0,
    Light = 1,
}
impl HostTerminalThemeIndication {
    /// String value of the enum field names used in the ProtoBuf definition.
    ///
    /// The values are not transformed in any way and thus are considered stable
    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
    pub fn as_str_name(&self) -> &'static str {
        match self {
            HostTerminalThemeIndication::Dark => "Dark",
            HostTerminalThemeIndication::Light => "Light",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "Dark" => Some(Self::Dark),
            "Light" => Some(Self::Light),
            _ => None,
        }
    }
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum WebServerStatusIndication {
    Online = 0,
    Offline = 1,
    DifferentVersion = 2,
}
impl WebServerStatusIndication {
    /// String value of the enum field names used in the ProtoBuf definition.
    ///
    /// The values are not transformed in any way and thus are considered stable
    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
    pub fn as_str_name(&self) -> &'static str {
        match self {
            WebServerStatusIndication::Online => "Online",
            WebServerStatusIndication::Offline => "Offline",
            WebServerStatusIndication::DifferentVersion => "DifferentVersion",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "Online" => Some(Self::Online),
            "Offline" => Some(Self::Offline),
            "DifferentVersion" => Some(Self::DifferentVersion),
            _ => None,
        }
    }
}
/// duplicate of plugin_command.PaneType because protobuffs don't like recursive imports
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum PaneType {
    Terminal = 0,
    Plugin = 1,
}
impl PaneType {
    /// String value of the enum field names used in the ProtoBuf definition.
    ///
    /// The values are not transformed in any way and thus are considered stable
    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
    pub fn as_str_name(&self) -> &'static str {
        match self {
            PaneType::Terminal => "Terminal",
            PaneType::Plugin => "Plugin",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "Terminal" => Some(Self::Terminal),
            "Plugin" => Some(Self::Plugin),
            _ => None,
        }
    }
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum CopyDestination {
    Command = 0,
    Primary = 1,
    System = 2,
}
impl CopyDestination {
    /// String value of the enum field names used in the ProtoBuf definition.
    ///
    /// The values are not transformed in any way and thus are considered stable
    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
    pub fn as_str_name(&self) -> &'static str {
        match self {
            CopyDestination::Command => "Command",
            CopyDestination::Primary => "Primary",
            CopyDestination::System => "System",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "Command" => Some(Self::Command),
            "Primary" => Some(Self::Primary),
            "System" => Some(Self::System),
            _ => None,
        }
    }
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum MouseEventName {
    MouseScrollUp = 0,
    MouseScrollDown = 1,
    MouseLeftClick = 2,
    MouseRightClick = 3,
    MouseHold = 4,
    MouseRelease = 5,
    MouseHover = 6,
    MouseScrollLeft = 7,
    MouseScrollRight = 8,
}
impl MouseEventName {
    /// String value of the enum field names used in the ProtoBuf definition.
    ///
    /// The values are not transformed in any way and thus are considered stable
    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
    pub fn as_str_name(&self) -> &'static str {
        match self {
            MouseEventName::MouseScrollUp => "MouseScrollUp",
            MouseEventName::MouseScrollDown => "MouseScrollDown",
            MouseEventName::MouseLeftClick => "MouseLeftClick",
            MouseEventName::MouseRightClick => "MouseRightClick",
            MouseEventName::MouseHold => "MouseHold",
            MouseEventName::MouseRelease => "MouseRelease",
            MouseEventName::MouseHover => "MouseHover",
            MouseEventName::MouseScrollLeft => "MouseScrollLeft",
            MouseEventName::MouseScrollRight => "MouseScrollRight",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "MouseScrollUp" => Some(Self::MouseScrollUp),
            "MouseScrollDown" => Some(Self::MouseScrollDown),
            "MouseLeftClick" => Some(Self::MouseLeftClick),
            "MouseRightClick" => Some(Self::MouseRightClick),
            "MouseHold" => Some(Self::MouseHold),
            "MouseRelease" => Some(Self::MouseRelease),
            "MouseHover" => Some(Self::MouseHover),
            "MouseScrollLeft" => Some(Self::MouseScrollLeft),
            "MouseScrollRight" => Some(Self::MouseScrollRight),
            _ => None,
        }
    }
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum WebSharing {
    On = 0,
    Off = 1,
    Disabled = 2,
}
impl WebSharing {
    /// String value of the enum field names used in the ProtoBuf definition.
    ///
    /// The values are not transformed in any way and thus are considered stable
    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
    pub fn as_str_name(&self) -> &'static str {
        match self {
            WebSharing::On => "On",
            WebSharing::Off => "Off",
            WebSharing::Disabled => "Disabled",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "On" => Some(Self::On),
            "Off" => Some(Self::Off),
            "Disabled" => Some(Self::Disabled),
            _ => None,
        }
    }
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum PaneFrameStyle {
    Full = 0,
    Titles = 1,
    None = 2,
}
impl PaneFrameStyle {
    /// String value of the enum field names used in the ProtoBuf definition.
    ///
    /// The values are not transformed in any way and thus are considered stable
    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
    pub fn as_str_name(&self) -> &'static str {
        match self {
            PaneFrameStyle::Full => "Full",
            PaneFrameStyle::Titles => "Titles",
            PaneFrameStyle::None => "None",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "Full" => Some(Self::Full),
            "Titles" => Some(Self::Titles),
            "None" => Some(Self::None),
            _ => None,
        }
    }
}