-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Expand file tree
/
Copy pathvpn.pb.go
More file actions
3269 lines (2879 loc) · 111 KB
/
Copy pathvpn.pb.go
File metadata and controls
3269 lines (2879 loc) · 111 KB
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
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.30.0
// protoc v4.23.4
// source: vpn/vpn.proto
package vpn
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
durationpb "google.golang.org/protobuf/types/known/durationpb"
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// StartProgress is sent from the manager to the client to indicate the
// download/startup progress of the tunnel. This will be sent during the
// processing of a StartRequest before the StartResponse is sent.
//
// Note: this is currently a broadcasted message to all clients due to the
//
// inability to easily send messages to a specific client in the Speaker
// implementation. If clients are not expecting these messages, they
// should ignore them.
type StartProgressStage int32
const (
StartProgressStage_Initializing StartProgressStage = 0
StartProgressStage_Downloading StartProgressStage = 1
StartProgressStage_Finalizing StartProgressStage = 2
)
// Enum value maps for StartProgressStage.
var (
StartProgressStage_name = map[int32]string{
0: "Initializing",
1: "Downloading",
2: "Finalizing",
}
StartProgressStage_value = map[string]int32{
"Initializing": 0,
"Downloading": 1,
"Finalizing": 2,
}
)
func (x StartProgressStage) Enum() *StartProgressStage {
p := new(StartProgressStage)
*p = x
return p
}
func (x StartProgressStage) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (StartProgressStage) Descriptor() protoreflect.EnumDescriptor {
return file_vpn_vpn_proto_enumTypes[0].Descriptor()
}
func (StartProgressStage) Type() protoreflect.EnumType {
return &file_vpn_vpn_proto_enumTypes[0]
}
func (x StartProgressStage) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use StartProgressStage.Descriptor instead.
func (StartProgressStage) EnumDescriptor() ([]byte, []int) {
return file_vpn_vpn_proto_rawDescGZIP(), []int{0}
}
type Log_Level int32
const (
// these are designed to match slog levels
Log_DEBUG Log_Level = 0
Log_INFO Log_Level = 1
Log_WARN Log_Level = 2
Log_ERROR Log_Level = 3
Log_CRITICAL Log_Level = 4
Log_FATAL Log_Level = 5
)
// Enum value maps for Log_Level.
var (
Log_Level_name = map[int32]string{
0: "DEBUG",
1: "INFO",
2: "WARN",
3: "ERROR",
4: "CRITICAL",
5: "FATAL",
}
Log_Level_value = map[string]int32{
"DEBUG": 0,
"INFO": 1,
"WARN": 2,
"ERROR": 3,
"CRITICAL": 4,
"FATAL": 5,
}
)
func (x Log_Level) Enum() *Log_Level {
p := new(Log_Level)
*p = x
return p
}
func (x Log_Level) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Log_Level) Descriptor() protoreflect.EnumDescriptor {
return file_vpn_vpn_proto_enumTypes[1].Descriptor()
}
func (Log_Level) Type() protoreflect.EnumType {
return &file_vpn_vpn_proto_enumTypes[1]
}
func (x Log_Level) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Log_Level.Descriptor instead.
func (Log_Level) EnumDescriptor() ([]byte, []int) {
return file_vpn_vpn_proto_rawDescGZIP(), []int{5, 0}
}
type Workspace_Status int32
const (
Workspace_UNKNOWN Workspace_Status = 0
Workspace_PENDING Workspace_Status = 1
Workspace_STARTING Workspace_Status = 2
Workspace_RUNNING Workspace_Status = 3
Workspace_STOPPING Workspace_Status = 4
Workspace_STOPPED Workspace_Status = 5
Workspace_FAILED Workspace_Status = 6
Workspace_CANCELING Workspace_Status = 7
Workspace_CANCELED Workspace_Status = 8
Workspace_DELETING Workspace_Status = 9
Workspace_DELETED Workspace_Status = 10
)
// Enum value maps for Workspace_Status.
var (
Workspace_Status_name = map[int32]string{
0: "UNKNOWN",
1: "PENDING",
2: "STARTING",
3: "RUNNING",
4: "STOPPING",
5: "STOPPED",
6: "FAILED",
7: "CANCELING",
8: "CANCELED",
9: "DELETING",
10: "DELETED",
}
Workspace_Status_value = map[string]int32{
"UNKNOWN": 0,
"PENDING": 1,
"STARTING": 2,
"RUNNING": 3,
"STOPPING": 4,
"STOPPED": 5,
"FAILED": 6,
"CANCELING": 7,
"CANCELED": 8,
"DELETING": 9,
"DELETED": 10,
}
)
func (x Workspace_Status) Enum() *Workspace_Status {
p := new(Workspace_Status)
*p = x
return p
}
func (x Workspace_Status) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Workspace_Status) Descriptor() protoreflect.EnumDescriptor {
return file_vpn_vpn_proto_enumTypes[2].Descriptor()
}
func (Workspace_Status) Type() protoreflect.EnumType {
return &file_vpn_vpn_proto_enumTypes[2]
}
func (x Workspace_Status) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Workspace_Status.Descriptor instead.
func (Workspace_Status) EnumDescriptor() ([]byte, []int) {
return file_vpn_vpn_proto_rawDescGZIP(), []int{8, 0}
}
type Status_Lifecycle int32
const (
Status_UNKNOWN Status_Lifecycle = 0
Status_STARTING Status_Lifecycle = 1
Status_STARTED Status_Lifecycle = 2
Status_STOPPING Status_Lifecycle = 3
Status_STOPPED Status_Lifecycle = 4
)
// Enum value maps for Status_Lifecycle.
var (
Status_Lifecycle_name = map[int32]string{
0: "UNKNOWN",
1: "STARTING",
2: "STARTED",
3: "STOPPING",
4: "STOPPED",
}
Status_Lifecycle_value = map[string]int32{
"UNKNOWN": 0,
"STARTING": 1,
"STARTED": 2,
"STOPPING": 3,
"STOPPED": 4,
}
)
func (x Status_Lifecycle) Enum() *Status_Lifecycle {
p := new(Status_Lifecycle)
*p = x
return p
}
func (x Status_Lifecycle) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Status_Lifecycle) Descriptor() protoreflect.EnumDescriptor {
return file_vpn_vpn_proto_enumTypes[3].Descriptor()
}
func (Status_Lifecycle) Type() protoreflect.EnumType {
return &file_vpn_vpn_proto_enumTypes[3]
}
func (x Status_Lifecycle) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Status_Lifecycle.Descriptor instead.
func (Status_Lifecycle) EnumDescriptor() ([]byte, []int) {
return file_vpn_vpn_proto_rawDescGZIP(), []int{20, 0}
}
// RPC allows a very simple unary request/response RPC mechanism. The requester generates a unique
// msg_id which it sets on the request, the responder sets response_to that msg_id on the response
// message
type RPC struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
MsgId uint64 `protobuf:"varint,1,opt,name=msg_id,json=msgId,proto3" json:"msg_id,omitempty"`
ResponseTo uint64 `protobuf:"varint,2,opt,name=response_to,json=responseTo,proto3" json:"response_to,omitempty"`
}
func (x *RPC) Reset() {
*x = RPC{}
if protoimpl.UnsafeEnabled {
mi := &file_vpn_vpn_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *RPC) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*RPC) ProtoMessage() {}
func (x *RPC) ProtoReflect() protoreflect.Message {
mi := &file_vpn_vpn_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use RPC.ProtoReflect.Descriptor instead.
func (*RPC) Descriptor() ([]byte, []int) {
return file_vpn_vpn_proto_rawDescGZIP(), []int{0}
}
func (x *RPC) GetMsgId() uint64 {
if x != nil {
return x.MsgId
}
return 0
}
func (x *RPC) GetResponseTo() uint64 {
if x != nil {
return x.ResponseTo
}
return 0
}
// ManagerMessage is a message from the manager (to the tunnel).
type ManagerMessage struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Rpc *RPC `protobuf:"bytes,1,opt,name=rpc,proto3" json:"rpc,omitempty"`
// Types that are assignable to Msg:
//
// *ManagerMessage_GetPeerUpdate
// *ManagerMessage_NetworkSettings
// *ManagerMessage_Start
// *ManagerMessage_Stop
// *ManagerMessage_Wake
Msg isManagerMessage_Msg `protobuf_oneof:"msg"`
}
func (x *ManagerMessage) Reset() {
*x = ManagerMessage{}
if protoimpl.UnsafeEnabled {
mi := &file_vpn_vpn_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ManagerMessage) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ManagerMessage) ProtoMessage() {}
func (x *ManagerMessage) ProtoReflect() protoreflect.Message {
mi := &file_vpn_vpn_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ManagerMessage.ProtoReflect.Descriptor instead.
func (*ManagerMessage) Descriptor() ([]byte, []int) {
return file_vpn_vpn_proto_rawDescGZIP(), []int{1}
}
func (x *ManagerMessage) GetRpc() *RPC {
if x != nil {
return x.Rpc
}
return nil
}
func (m *ManagerMessage) GetMsg() isManagerMessage_Msg {
if m != nil {
return m.Msg
}
return nil
}
func (x *ManagerMessage) GetGetPeerUpdate() *GetPeerUpdate {
if x, ok := x.GetMsg().(*ManagerMessage_GetPeerUpdate); ok {
return x.GetPeerUpdate
}
return nil
}
func (x *ManagerMessage) GetNetworkSettings() *NetworkSettingsResponse {
if x, ok := x.GetMsg().(*ManagerMessage_NetworkSettings); ok {
return x.NetworkSettings
}
return nil
}
func (x *ManagerMessage) GetStart() *StartRequest {
if x, ok := x.GetMsg().(*ManagerMessage_Start); ok {
return x.Start
}
return nil
}
func (x *ManagerMessage) GetStop() *StopRequest {
if x, ok := x.GetMsg().(*ManagerMessage_Stop); ok {
return x.Stop
}
return nil
}
func (x *ManagerMessage) GetWake() *WakeRequest {
if x, ok := x.GetMsg().(*ManagerMessage_Wake); ok {
return x.Wake
}
return nil
}
type isManagerMessage_Msg interface {
isManagerMessage_Msg()
}
type ManagerMessage_GetPeerUpdate struct {
GetPeerUpdate *GetPeerUpdate `protobuf:"bytes,2,opt,name=get_peer_update,json=getPeerUpdate,proto3,oneof"`
}
type ManagerMessage_NetworkSettings struct {
NetworkSettings *NetworkSettingsResponse `protobuf:"bytes,3,opt,name=network_settings,json=networkSettings,proto3,oneof"`
}
type ManagerMessage_Start struct {
Start *StartRequest `protobuf:"bytes,4,opt,name=start,proto3,oneof"`
}
type ManagerMessage_Stop struct {
Stop *StopRequest `protobuf:"bytes,5,opt,name=stop,proto3,oneof"`
}
type ManagerMessage_Wake struct {
Wake *WakeRequest `protobuf:"bytes,6,opt,name=wake,proto3,oneof"`
}
func (*ManagerMessage_GetPeerUpdate) isManagerMessage_Msg() {}
func (*ManagerMessage_NetworkSettings) isManagerMessage_Msg() {}
func (*ManagerMessage_Start) isManagerMessage_Msg() {}
func (*ManagerMessage_Stop) isManagerMessage_Msg() {}
func (*ManagerMessage_Wake) isManagerMessage_Msg() {}
// TunnelMessage is a message from the tunnel (to the manager).
type TunnelMessage struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Rpc *RPC `protobuf:"bytes,1,opt,name=rpc,proto3" json:"rpc,omitempty"`
// Types that are assignable to Msg:
//
// *TunnelMessage_Log
// *TunnelMessage_PeerUpdate
// *TunnelMessage_NetworkSettings
// *TunnelMessage_Start
// *TunnelMessage_Stop
// *TunnelMessage_Wake
Msg isTunnelMessage_Msg `protobuf_oneof:"msg"`
}
func (x *TunnelMessage) Reset() {
*x = TunnelMessage{}
if protoimpl.UnsafeEnabled {
mi := &file_vpn_vpn_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *TunnelMessage) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TunnelMessage) ProtoMessage() {}
func (x *TunnelMessage) ProtoReflect() protoreflect.Message {
mi := &file_vpn_vpn_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use TunnelMessage.ProtoReflect.Descriptor instead.
func (*TunnelMessage) Descriptor() ([]byte, []int) {
return file_vpn_vpn_proto_rawDescGZIP(), []int{2}
}
func (x *TunnelMessage) GetRpc() *RPC {
if x != nil {
return x.Rpc
}
return nil
}
func (m *TunnelMessage) GetMsg() isTunnelMessage_Msg {
if m != nil {
return m.Msg
}
return nil
}
func (x *TunnelMessage) GetLog() *Log {
if x, ok := x.GetMsg().(*TunnelMessage_Log); ok {
return x.Log
}
return nil
}
func (x *TunnelMessage) GetPeerUpdate() *PeerUpdate {
if x, ok := x.GetMsg().(*TunnelMessage_PeerUpdate); ok {
return x.PeerUpdate
}
return nil
}
func (x *TunnelMessage) GetNetworkSettings() *NetworkSettingsRequest {
if x, ok := x.GetMsg().(*TunnelMessage_NetworkSettings); ok {
return x.NetworkSettings
}
return nil
}
func (x *TunnelMessage) GetStart() *StartResponse {
if x, ok := x.GetMsg().(*TunnelMessage_Start); ok {
return x.Start
}
return nil
}
func (x *TunnelMessage) GetStop() *StopResponse {
if x, ok := x.GetMsg().(*TunnelMessage_Stop); ok {
return x.Stop
}
return nil
}
func (x *TunnelMessage) GetWake() *WakeResponse {
if x, ok := x.GetMsg().(*TunnelMessage_Wake); ok {
return x.Wake
}
return nil
}
type isTunnelMessage_Msg interface {
isTunnelMessage_Msg()
}
type TunnelMessage_Log struct {
Log *Log `protobuf:"bytes,2,opt,name=log,proto3,oneof"`
}
type TunnelMessage_PeerUpdate struct {
PeerUpdate *PeerUpdate `protobuf:"bytes,3,opt,name=peer_update,json=peerUpdate,proto3,oneof"`
}
type TunnelMessage_NetworkSettings struct {
NetworkSettings *NetworkSettingsRequest `protobuf:"bytes,4,opt,name=network_settings,json=networkSettings,proto3,oneof"`
}
type TunnelMessage_Start struct {
Start *StartResponse `protobuf:"bytes,5,opt,name=start,proto3,oneof"`
}
type TunnelMessage_Stop struct {
Stop *StopResponse `protobuf:"bytes,6,opt,name=stop,proto3,oneof"`
}
type TunnelMessage_Wake struct {
Wake *WakeResponse `protobuf:"bytes,7,opt,name=wake,proto3,oneof"`
}
func (*TunnelMessage_Log) isTunnelMessage_Msg() {}
func (*TunnelMessage_PeerUpdate) isTunnelMessage_Msg() {}
func (*TunnelMessage_NetworkSettings) isTunnelMessage_Msg() {}
func (*TunnelMessage_Start) isTunnelMessage_Msg() {}
func (*TunnelMessage_Stop) isTunnelMessage_Msg() {}
func (*TunnelMessage_Wake) isTunnelMessage_Msg() {}
// ClientMessage is a message from the client (to the service). Windows only.
type ClientMessage struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Rpc *RPC `protobuf:"bytes,1,opt,name=rpc,proto3" json:"rpc,omitempty"`
// Types that are assignable to Msg:
//
// *ClientMessage_Start
// *ClientMessage_Stop
// *ClientMessage_Status
Msg isClientMessage_Msg `protobuf_oneof:"msg"`
}
func (x *ClientMessage) Reset() {
*x = ClientMessage{}
if protoimpl.UnsafeEnabled {
mi := &file_vpn_vpn_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ClientMessage) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ClientMessage) ProtoMessage() {}
func (x *ClientMessage) ProtoReflect() protoreflect.Message {
mi := &file_vpn_vpn_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ClientMessage.ProtoReflect.Descriptor instead.
func (*ClientMessage) Descriptor() ([]byte, []int) {
return file_vpn_vpn_proto_rawDescGZIP(), []int{3}
}
func (x *ClientMessage) GetRpc() *RPC {
if x != nil {
return x.Rpc
}
return nil
}
func (m *ClientMessage) GetMsg() isClientMessage_Msg {
if m != nil {
return m.Msg
}
return nil
}
func (x *ClientMessage) GetStart() *StartRequest {
if x, ok := x.GetMsg().(*ClientMessage_Start); ok {
return x.Start
}
return nil
}
func (x *ClientMessage) GetStop() *StopRequest {
if x, ok := x.GetMsg().(*ClientMessage_Stop); ok {
return x.Stop
}
return nil
}
func (x *ClientMessage) GetStatus() *StatusRequest {
if x, ok := x.GetMsg().(*ClientMessage_Status); ok {
return x.Status
}
return nil
}
type isClientMessage_Msg interface {
isClientMessage_Msg()
}
type ClientMessage_Start struct {
Start *StartRequest `protobuf:"bytes,2,opt,name=start,proto3,oneof"`
}
type ClientMessage_Stop struct {
Stop *StopRequest `protobuf:"bytes,3,opt,name=stop,proto3,oneof"`
}
type ClientMessage_Status struct {
Status *StatusRequest `protobuf:"bytes,4,opt,name=status,proto3,oneof"`
}
func (*ClientMessage_Start) isClientMessage_Msg() {}
func (*ClientMessage_Stop) isClientMessage_Msg() {}
func (*ClientMessage_Status) isClientMessage_Msg() {}
// ServiceMessage is a message from the service (to the client). Windows only.
type ServiceMessage struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Rpc *RPC `protobuf:"bytes,1,opt,name=rpc,proto3" json:"rpc,omitempty"`
// Types that are assignable to Msg:
//
// *ServiceMessage_Start
// *ServiceMessage_Stop
// *ServiceMessage_Status
// *ServiceMessage_StartProgress
Msg isServiceMessage_Msg `protobuf_oneof:"msg"`
}
func (x *ServiceMessage) Reset() {
*x = ServiceMessage{}
if protoimpl.UnsafeEnabled {
mi := &file_vpn_vpn_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ServiceMessage) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ServiceMessage) ProtoMessage() {}
func (x *ServiceMessage) ProtoReflect() protoreflect.Message {
mi := &file_vpn_vpn_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ServiceMessage.ProtoReflect.Descriptor instead.
func (*ServiceMessage) Descriptor() ([]byte, []int) {
return file_vpn_vpn_proto_rawDescGZIP(), []int{4}
}
func (x *ServiceMessage) GetRpc() *RPC {
if x != nil {
return x.Rpc
}
return nil
}
func (m *ServiceMessage) GetMsg() isServiceMessage_Msg {
if m != nil {
return m.Msg
}
return nil
}
func (x *ServiceMessage) GetStart() *StartResponse {
if x, ok := x.GetMsg().(*ServiceMessage_Start); ok {
return x.Start
}
return nil
}
func (x *ServiceMessage) GetStop() *StopResponse {
if x, ok := x.GetMsg().(*ServiceMessage_Stop); ok {
return x.Stop
}
return nil
}
func (x *ServiceMessage) GetStatus() *Status {
if x, ok := x.GetMsg().(*ServiceMessage_Status); ok {
return x.Status
}
return nil
}
func (x *ServiceMessage) GetStartProgress() *StartProgress {
if x, ok := x.GetMsg().(*ServiceMessage_StartProgress); ok {
return x.StartProgress
}
return nil
}
type isServiceMessage_Msg interface {
isServiceMessage_Msg()
}
type ServiceMessage_Start struct {
Start *StartResponse `protobuf:"bytes,2,opt,name=start,proto3,oneof"`
}
type ServiceMessage_Stop struct {
Stop *StopResponse `protobuf:"bytes,3,opt,name=stop,proto3,oneof"`
}
type ServiceMessage_Status struct {
Status *Status `protobuf:"bytes,4,opt,name=status,proto3,oneof"` // either in reply to a StatusRequest or broadcasted
}
type ServiceMessage_StartProgress struct {
StartProgress *StartProgress `protobuf:"bytes,5,opt,name=start_progress,json=startProgress,proto3,oneof"` // broadcasted during startup (used exclusively by Windows)
}
func (*ServiceMessage_Start) isServiceMessage_Msg() {}
func (*ServiceMessage_Stop) isServiceMessage_Msg() {}
func (*ServiceMessage_Status) isServiceMessage_Msg() {}
func (*ServiceMessage_StartProgress) isServiceMessage_Msg() {}
// Log is a log message generated by the tunnel. The manager should log it to the system log. It is
// one-way tunnel -> manager with no response.
type Log struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Level Log_Level `protobuf:"varint,1,opt,name=level,proto3,enum=vpn.Log_Level" json:"level,omitempty"`
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
LoggerNames []string `protobuf:"bytes,3,rep,name=logger_names,json=loggerNames,proto3" json:"logger_names,omitempty"`
Fields []*Log_Field `protobuf:"bytes,4,rep,name=fields,proto3" json:"fields,omitempty"`
}
func (x *Log) Reset() {
*x = Log{}
if protoimpl.UnsafeEnabled {
mi := &file_vpn_vpn_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Log) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Log) ProtoMessage() {}
func (x *Log) ProtoReflect() protoreflect.Message {
mi := &file_vpn_vpn_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Log.ProtoReflect.Descriptor instead.
func (*Log) Descriptor() ([]byte, []int) {
return file_vpn_vpn_proto_rawDescGZIP(), []int{5}
}
func (x *Log) GetLevel() Log_Level {
if x != nil {
return x.Level
}
return Log_DEBUG
}
func (x *Log) GetMessage() string {
if x != nil {
return x.Message
}
return ""
}
func (x *Log) GetLoggerNames() []string {
if x != nil {
return x.LoggerNames
}
return nil
}
func (x *Log) GetFields() []*Log_Field {
if x != nil {
return x.Fields
}
return nil
}
// GetPeerUpdate asks for a PeerUpdate with a full set of data.
type GetPeerUpdate struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *GetPeerUpdate) Reset() {
*x = GetPeerUpdate{}
if protoimpl.UnsafeEnabled {
mi := &file_vpn_vpn_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetPeerUpdate) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetPeerUpdate) ProtoMessage() {}
func (x *GetPeerUpdate) ProtoReflect() protoreflect.Message {
mi := &file_vpn_vpn_proto_msgTypes[6]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetPeerUpdate.ProtoReflect.Descriptor instead.
func (*GetPeerUpdate) Descriptor() ([]byte, []int) {
return file_vpn_vpn_proto_rawDescGZIP(), []int{6}
}
// PeerUpdate is an update about workspaces and agents connected via the tunnel. It is generated in
// response to GetPeerUpdate (which dumps the full set). It is also generated on any changes (not in
// response to any request).
type PeerUpdate struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
UpsertedWorkspaces []*Workspace `protobuf:"bytes,1,rep,name=upserted_workspaces,json=upsertedWorkspaces,proto3" json:"upserted_workspaces,omitempty"`
UpsertedAgents []*Agent `protobuf:"bytes,2,rep,name=upserted_agents,json=upsertedAgents,proto3" json:"upserted_agents,omitempty"`
DeletedWorkspaces []*Workspace `protobuf:"bytes,3,rep,name=deleted_workspaces,json=deletedWorkspaces,proto3" json:"deleted_workspaces,omitempty"`
DeletedAgents []*Agent `protobuf:"bytes,4,rep,name=deleted_agents,json=deletedAgents,proto3" json:"deleted_agents,omitempty"`
}
func (x *PeerUpdate) Reset() {
*x = PeerUpdate{}
if protoimpl.UnsafeEnabled {
mi := &file_vpn_vpn_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *PeerUpdate) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PeerUpdate) ProtoMessage() {}
func (x *PeerUpdate) ProtoReflect() protoreflect.Message {
mi := &file_vpn_vpn_proto_msgTypes[7]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use PeerUpdate.ProtoReflect.Descriptor instead.
func (*PeerUpdate) Descriptor() ([]byte, []int) {
return file_vpn_vpn_proto_rawDescGZIP(), []int{7}
}
func (x *PeerUpdate) GetUpsertedWorkspaces() []*Workspace {
if x != nil {
return x.UpsertedWorkspaces
}
return nil
}
func (x *PeerUpdate) GetUpsertedAgents() []*Agent {
if x != nil {
return x.UpsertedAgents
}
return nil
}
func (x *PeerUpdate) GetDeletedWorkspaces() []*Workspace {