-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Expand file tree
/
Copy pathagent.pb.go
More file actions
6732 lines (5959 loc) · 254 KB
/
Copy pathagent.pb.go
File metadata and controls
6732 lines (5959 loc) · 254 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: agent/proto/agent.proto
package proto
import (
proto "github.com/coder/coder/v2/tailnet/proto"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
durationpb "google.golang.org/protobuf/types/known/durationpb"
emptypb "google.golang.org/protobuf/types/known/emptypb"
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)
)
type AppHealth int32
const (
AppHealth_APP_HEALTH_UNSPECIFIED AppHealth = 0
AppHealth_DISABLED AppHealth = 1
AppHealth_INITIALIZING AppHealth = 2
AppHealth_HEALTHY AppHealth = 3
AppHealth_UNHEALTHY AppHealth = 4
)
// Enum value maps for AppHealth.
var (
AppHealth_name = map[int32]string{
0: "APP_HEALTH_UNSPECIFIED",
1: "DISABLED",
2: "INITIALIZING",
3: "HEALTHY",
4: "UNHEALTHY",
}
AppHealth_value = map[string]int32{
"APP_HEALTH_UNSPECIFIED": 0,
"DISABLED": 1,
"INITIALIZING": 2,
"HEALTHY": 3,
"UNHEALTHY": 4,
}
)
func (x AppHealth) Enum() *AppHealth {
p := new(AppHealth)
*p = x
return p
}
func (x AppHealth) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (AppHealth) Descriptor() protoreflect.EnumDescriptor {
return file_agent_proto_agent_proto_enumTypes[0].Descriptor()
}
func (AppHealth) Type() protoreflect.EnumType {
return &file_agent_proto_agent_proto_enumTypes[0]
}
func (x AppHealth) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use AppHealth.Descriptor instead.
func (AppHealth) EnumDescriptor() ([]byte, []int) {
return file_agent_proto_agent_proto_rawDescGZIP(), []int{0}
}
type WorkspaceApp_SharingLevel int32
const (
WorkspaceApp_SHARING_LEVEL_UNSPECIFIED WorkspaceApp_SharingLevel = 0
WorkspaceApp_OWNER WorkspaceApp_SharingLevel = 1
WorkspaceApp_AUTHENTICATED WorkspaceApp_SharingLevel = 2
WorkspaceApp_PUBLIC WorkspaceApp_SharingLevel = 3
WorkspaceApp_ORGANIZATION WorkspaceApp_SharingLevel = 4
)
// Enum value maps for WorkspaceApp_SharingLevel.
var (
WorkspaceApp_SharingLevel_name = map[int32]string{
0: "SHARING_LEVEL_UNSPECIFIED",
1: "OWNER",
2: "AUTHENTICATED",
3: "PUBLIC",
4: "ORGANIZATION",
}
WorkspaceApp_SharingLevel_value = map[string]int32{
"SHARING_LEVEL_UNSPECIFIED": 0,
"OWNER": 1,
"AUTHENTICATED": 2,
"PUBLIC": 3,
"ORGANIZATION": 4,
}
)
func (x WorkspaceApp_SharingLevel) Enum() *WorkspaceApp_SharingLevel {
p := new(WorkspaceApp_SharingLevel)
*p = x
return p
}
func (x WorkspaceApp_SharingLevel) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (WorkspaceApp_SharingLevel) Descriptor() protoreflect.EnumDescriptor {
return file_agent_proto_agent_proto_enumTypes[1].Descriptor()
}
func (WorkspaceApp_SharingLevel) Type() protoreflect.EnumType {
return &file_agent_proto_agent_proto_enumTypes[1]
}
func (x WorkspaceApp_SharingLevel) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use WorkspaceApp_SharingLevel.Descriptor instead.
func (WorkspaceApp_SharingLevel) EnumDescriptor() ([]byte, []int) {
return file_agent_proto_agent_proto_rawDescGZIP(), []int{0, 0}
}
type WorkspaceApp_Health int32
const (
WorkspaceApp_HEALTH_UNSPECIFIED WorkspaceApp_Health = 0
WorkspaceApp_DISABLED WorkspaceApp_Health = 1
WorkspaceApp_INITIALIZING WorkspaceApp_Health = 2
WorkspaceApp_HEALTHY WorkspaceApp_Health = 3
WorkspaceApp_UNHEALTHY WorkspaceApp_Health = 4
)
// Enum value maps for WorkspaceApp_Health.
var (
WorkspaceApp_Health_name = map[int32]string{
0: "HEALTH_UNSPECIFIED",
1: "DISABLED",
2: "INITIALIZING",
3: "HEALTHY",
4: "UNHEALTHY",
}
WorkspaceApp_Health_value = map[string]int32{
"HEALTH_UNSPECIFIED": 0,
"DISABLED": 1,
"INITIALIZING": 2,
"HEALTHY": 3,
"UNHEALTHY": 4,
}
)
func (x WorkspaceApp_Health) Enum() *WorkspaceApp_Health {
p := new(WorkspaceApp_Health)
*p = x
return p
}
func (x WorkspaceApp_Health) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (WorkspaceApp_Health) Descriptor() protoreflect.EnumDescriptor {
return file_agent_proto_agent_proto_enumTypes[2].Descriptor()
}
func (WorkspaceApp_Health) Type() protoreflect.EnumType {
return &file_agent_proto_agent_proto_enumTypes[2]
}
func (x WorkspaceApp_Health) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use WorkspaceApp_Health.Descriptor instead.
func (WorkspaceApp_Health) EnumDescriptor() ([]byte, []int) {
return file_agent_proto_agent_proto_rawDescGZIP(), []int{0, 1}
}
type Stats_Metric_Type int32
const (
Stats_Metric_TYPE_UNSPECIFIED Stats_Metric_Type = 0
Stats_Metric_COUNTER Stats_Metric_Type = 1
Stats_Metric_GAUGE Stats_Metric_Type = 2
)
// Enum value maps for Stats_Metric_Type.
var (
Stats_Metric_Type_name = map[int32]string{
0: "TYPE_UNSPECIFIED",
1: "COUNTER",
2: "GAUGE",
}
Stats_Metric_Type_value = map[string]int32{
"TYPE_UNSPECIFIED": 0,
"COUNTER": 1,
"GAUGE": 2,
}
)
func (x Stats_Metric_Type) Enum() *Stats_Metric_Type {
p := new(Stats_Metric_Type)
*p = x
return p
}
func (x Stats_Metric_Type) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Stats_Metric_Type) Descriptor() protoreflect.EnumDescriptor {
return file_agent_proto_agent_proto_enumTypes[3].Descriptor()
}
func (Stats_Metric_Type) Type() protoreflect.EnumType {
return &file_agent_proto_agent_proto_enumTypes[3]
}
func (x Stats_Metric_Type) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Stats_Metric_Type.Descriptor instead.
func (Stats_Metric_Type) EnumDescriptor() ([]byte, []int) {
return file_agent_proto_agent_proto_rawDescGZIP(), []int{9, 1, 0}
}
type Lifecycle_State int32
const (
Lifecycle_STATE_UNSPECIFIED Lifecycle_State = 0
Lifecycle_CREATED Lifecycle_State = 1
Lifecycle_STARTING Lifecycle_State = 2
Lifecycle_START_TIMEOUT Lifecycle_State = 3
Lifecycle_START_ERROR Lifecycle_State = 4
Lifecycle_READY Lifecycle_State = 5
Lifecycle_SHUTTING_DOWN Lifecycle_State = 6
Lifecycle_SHUTDOWN_TIMEOUT Lifecycle_State = 7
Lifecycle_SHUTDOWN_ERROR Lifecycle_State = 8
Lifecycle_OFF Lifecycle_State = 9
)
// Enum value maps for Lifecycle_State.
var (
Lifecycle_State_name = map[int32]string{
0: "STATE_UNSPECIFIED",
1: "CREATED",
2: "STARTING",
3: "START_TIMEOUT",
4: "START_ERROR",
5: "READY",
6: "SHUTTING_DOWN",
7: "SHUTDOWN_TIMEOUT",
8: "SHUTDOWN_ERROR",
9: "OFF",
}
Lifecycle_State_value = map[string]int32{
"STATE_UNSPECIFIED": 0,
"CREATED": 1,
"STARTING": 2,
"START_TIMEOUT": 3,
"START_ERROR": 4,
"READY": 5,
"SHUTTING_DOWN": 6,
"SHUTDOWN_TIMEOUT": 7,
"SHUTDOWN_ERROR": 8,
"OFF": 9,
}
)
func (x Lifecycle_State) Enum() *Lifecycle_State {
p := new(Lifecycle_State)
*p = x
return p
}
func (x Lifecycle_State) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Lifecycle_State) Descriptor() protoreflect.EnumDescriptor {
return file_agent_proto_agent_proto_enumTypes[4].Descriptor()
}
func (Lifecycle_State) Type() protoreflect.EnumType {
return &file_agent_proto_agent_proto_enumTypes[4]
}
func (x Lifecycle_State) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Lifecycle_State.Descriptor instead.
func (Lifecycle_State) EnumDescriptor() ([]byte, []int) {
return file_agent_proto_agent_proto_rawDescGZIP(), []int{12, 0}
}
type Startup_Subsystem int32
const (
Startup_SUBSYSTEM_UNSPECIFIED Startup_Subsystem = 0
Startup_ENVBOX Startup_Subsystem = 1
Startup_ENVBUILDER Startup_Subsystem = 2
Startup_EXECTRACE Startup_Subsystem = 3
)
// Enum value maps for Startup_Subsystem.
var (
Startup_Subsystem_name = map[int32]string{
0: "SUBSYSTEM_UNSPECIFIED",
1: "ENVBOX",
2: "ENVBUILDER",
3: "EXECTRACE",
}
Startup_Subsystem_value = map[string]int32{
"SUBSYSTEM_UNSPECIFIED": 0,
"ENVBOX": 1,
"ENVBUILDER": 2,
"EXECTRACE": 3,
}
)
func (x Startup_Subsystem) Enum() *Startup_Subsystem {
p := new(Startup_Subsystem)
*p = x
return p
}
func (x Startup_Subsystem) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Startup_Subsystem) Descriptor() protoreflect.EnumDescriptor {
return file_agent_proto_agent_proto_enumTypes[5].Descriptor()
}
func (Startup_Subsystem) Type() protoreflect.EnumType {
return &file_agent_proto_agent_proto_enumTypes[5]
}
func (x Startup_Subsystem) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Startup_Subsystem.Descriptor instead.
func (Startup_Subsystem) EnumDescriptor() ([]byte, []int) {
return file_agent_proto_agent_proto_rawDescGZIP(), []int{16, 0}
}
type Log_Level int32
const (
Log_LEVEL_UNSPECIFIED Log_Level = 0
Log_TRACE Log_Level = 1
Log_DEBUG Log_Level = 2
Log_INFO Log_Level = 3
Log_WARN Log_Level = 4
Log_ERROR Log_Level = 5
)
// Enum value maps for Log_Level.
var (
Log_Level_name = map[int32]string{
0: "LEVEL_UNSPECIFIED",
1: "TRACE",
2: "DEBUG",
3: "INFO",
4: "WARN",
5: "ERROR",
}
Log_Level_value = map[string]int32{
"LEVEL_UNSPECIFIED": 0,
"TRACE": 1,
"DEBUG": 2,
"INFO": 3,
"WARN": 4,
"ERROR": 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_agent_proto_agent_proto_enumTypes[6].Descriptor()
}
func (Log_Level) Type() protoreflect.EnumType {
return &file_agent_proto_agent_proto_enumTypes[6]
}
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_agent_proto_agent_proto_rawDescGZIP(), []int{21, 0}
}
type Timing_Stage int32
const (
Timing_START Timing_Stage = 0
Timing_STOP Timing_Stage = 1
Timing_CRON Timing_Stage = 2
)
// Enum value maps for Timing_Stage.
var (
Timing_Stage_name = map[int32]string{
0: "START",
1: "STOP",
2: "CRON",
}
Timing_Stage_value = map[string]int32{
"START": 0,
"STOP": 1,
"CRON": 2,
}
)
func (x Timing_Stage) Enum() *Timing_Stage {
p := new(Timing_Stage)
*p = x
return p
}
func (x Timing_Stage) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Timing_Stage) Descriptor() protoreflect.EnumDescriptor {
return file_agent_proto_agent_proto_enumTypes[7].Descriptor()
}
func (Timing_Stage) Type() protoreflect.EnumType {
return &file_agent_proto_agent_proto_enumTypes[7]
}
func (x Timing_Stage) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Timing_Stage.Descriptor instead.
func (Timing_Stage) EnumDescriptor() ([]byte, []int) {
return file_agent_proto_agent_proto_rawDescGZIP(), []int{29, 0}
}
type Timing_Status int32
const (
Timing_OK Timing_Status = 0
Timing_EXIT_FAILURE Timing_Status = 1
Timing_TIMED_OUT Timing_Status = 2
Timing_PIPES_LEFT_OPEN Timing_Status = 3
)
// Enum value maps for Timing_Status.
var (
Timing_Status_name = map[int32]string{
0: "OK",
1: "EXIT_FAILURE",
2: "TIMED_OUT",
3: "PIPES_LEFT_OPEN",
}
Timing_Status_value = map[string]int32{
"OK": 0,
"EXIT_FAILURE": 1,
"TIMED_OUT": 2,
"PIPES_LEFT_OPEN": 3,
}
)
func (x Timing_Status) Enum() *Timing_Status {
p := new(Timing_Status)
*p = x
return p
}
func (x Timing_Status) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Timing_Status) Descriptor() protoreflect.EnumDescriptor {
return file_agent_proto_agent_proto_enumTypes[8].Descriptor()
}
func (Timing_Status) Type() protoreflect.EnumType {
return &file_agent_proto_agent_proto_enumTypes[8]
}
func (x Timing_Status) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Timing_Status.Descriptor instead.
func (Timing_Status) EnumDescriptor() ([]byte, []int) {
return file_agent_proto_agent_proto_rawDescGZIP(), []int{29, 1}
}
type Connection_Action int32
const (
Connection_ACTION_UNSPECIFIED Connection_Action = 0
Connection_CONNECT Connection_Action = 1
Connection_DISCONNECT Connection_Action = 2
)
// Enum value maps for Connection_Action.
var (
Connection_Action_name = map[int32]string{
0: "ACTION_UNSPECIFIED",
1: "CONNECT",
2: "DISCONNECT",
}
Connection_Action_value = map[string]int32{
"ACTION_UNSPECIFIED": 0,
"CONNECT": 1,
"DISCONNECT": 2,
}
)
func (x Connection_Action) Enum() *Connection_Action {
p := new(Connection_Action)
*p = x
return p
}
func (x Connection_Action) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Connection_Action) Descriptor() protoreflect.EnumDescriptor {
return file_agent_proto_agent_proto_enumTypes[9].Descriptor()
}
func (Connection_Action) Type() protoreflect.EnumType {
return &file_agent_proto_agent_proto_enumTypes[9]
}
func (x Connection_Action) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Connection_Action.Descriptor instead.
func (Connection_Action) EnumDescriptor() ([]byte, []int) {
return file_agent_proto_agent_proto_rawDescGZIP(), []int{34, 0}
}
type Connection_Type int32
const (
Connection_TYPE_UNSPECIFIED Connection_Type = 0
Connection_SSH Connection_Type = 1
Connection_VSCODE Connection_Type = 2
Connection_JETBRAINS Connection_Type = 3
Connection_RECONNECTING_PTY Connection_Type = 4
)
// Enum value maps for Connection_Type.
var (
Connection_Type_name = map[int32]string{
0: "TYPE_UNSPECIFIED",
1: "SSH",
2: "VSCODE",
3: "JETBRAINS",
4: "RECONNECTING_PTY",
}
Connection_Type_value = map[string]int32{
"TYPE_UNSPECIFIED": 0,
"SSH": 1,
"VSCODE": 2,
"JETBRAINS": 3,
"RECONNECTING_PTY": 4,
}
)
func (x Connection_Type) Enum() *Connection_Type {
p := new(Connection_Type)
*p = x
return p
}
func (x Connection_Type) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Connection_Type) Descriptor() protoreflect.EnumDescriptor {
return file_agent_proto_agent_proto_enumTypes[10].Descriptor()
}
func (Connection_Type) Type() protoreflect.EnumType {
return &file_agent_proto_agent_proto_enumTypes[10]
}
func (x Connection_Type) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Connection_Type.Descriptor instead.
func (Connection_Type) EnumDescriptor() ([]byte, []int) {
return file_agent_proto_agent_proto_rawDescGZIP(), []int{34, 1}
}
type CreateSubAgentRequest_DisplayApp int32
const (
CreateSubAgentRequest_VSCODE CreateSubAgentRequest_DisplayApp = 0
CreateSubAgentRequest_VSCODE_INSIDERS CreateSubAgentRequest_DisplayApp = 1
CreateSubAgentRequest_WEB_TERMINAL CreateSubAgentRequest_DisplayApp = 2
CreateSubAgentRequest_SSH_HELPER CreateSubAgentRequest_DisplayApp = 3
CreateSubAgentRequest_PORT_FORWARDING_HELPER CreateSubAgentRequest_DisplayApp = 4
)
// Enum value maps for CreateSubAgentRequest_DisplayApp.
var (
CreateSubAgentRequest_DisplayApp_name = map[int32]string{
0: "VSCODE",
1: "VSCODE_INSIDERS",
2: "WEB_TERMINAL",
3: "SSH_HELPER",
4: "PORT_FORWARDING_HELPER",
}
CreateSubAgentRequest_DisplayApp_value = map[string]int32{
"VSCODE": 0,
"VSCODE_INSIDERS": 1,
"WEB_TERMINAL": 2,
"SSH_HELPER": 3,
"PORT_FORWARDING_HELPER": 4,
}
)
func (x CreateSubAgentRequest_DisplayApp) Enum() *CreateSubAgentRequest_DisplayApp {
p := new(CreateSubAgentRequest_DisplayApp)
*p = x
return p
}
func (x CreateSubAgentRequest_DisplayApp) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (CreateSubAgentRequest_DisplayApp) Descriptor() protoreflect.EnumDescriptor {
return file_agent_proto_agent_proto_enumTypes[11].Descriptor()
}
func (CreateSubAgentRequest_DisplayApp) Type() protoreflect.EnumType {
return &file_agent_proto_agent_proto_enumTypes[11]
}
func (x CreateSubAgentRequest_DisplayApp) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use CreateSubAgentRequest_DisplayApp.Descriptor instead.
func (CreateSubAgentRequest_DisplayApp) EnumDescriptor() ([]byte, []int) {
return file_agent_proto_agent_proto_rawDescGZIP(), []int{37, 0}
}
type CreateSubAgentRequest_App_OpenIn int32
const (
CreateSubAgentRequest_App_SLIM_WINDOW CreateSubAgentRequest_App_OpenIn = 0
CreateSubAgentRequest_App_TAB CreateSubAgentRequest_App_OpenIn = 1
)
// Enum value maps for CreateSubAgentRequest_App_OpenIn.
var (
CreateSubAgentRequest_App_OpenIn_name = map[int32]string{
0: "SLIM_WINDOW",
1: "TAB",
}
CreateSubAgentRequest_App_OpenIn_value = map[string]int32{
"SLIM_WINDOW": 0,
"TAB": 1,
}
)
func (x CreateSubAgentRequest_App_OpenIn) Enum() *CreateSubAgentRequest_App_OpenIn {
p := new(CreateSubAgentRequest_App_OpenIn)
*p = x
return p
}
func (x CreateSubAgentRequest_App_OpenIn) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (CreateSubAgentRequest_App_OpenIn) Descriptor() protoreflect.EnumDescriptor {
return file_agent_proto_agent_proto_enumTypes[12].Descriptor()
}
func (CreateSubAgentRequest_App_OpenIn) Type() protoreflect.EnumType {
return &file_agent_proto_agent_proto_enumTypes[12]
}
func (x CreateSubAgentRequest_App_OpenIn) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use CreateSubAgentRequest_App_OpenIn.Descriptor instead.
func (CreateSubAgentRequest_App_OpenIn) EnumDescriptor() ([]byte, []int) {
return file_agent_proto_agent_proto_rawDescGZIP(), []int{37, 0, 0}
}
type CreateSubAgentRequest_App_SharingLevel int32
const (
CreateSubAgentRequest_App_OWNER CreateSubAgentRequest_App_SharingLevel = 0
CreateSubAgentRequest_App_AUTHENTICATED CreateSubAgentRequest_App_SharingLevel = 1
CreateSubAgentRequest_App_PUBLIC CreateSubAgentRequest_App_SharingLevel = 2
CreateSubAgentRequest_App_ORGANIZATION CreateSubAgentRequest_App_SharingLevel = 3
)
// Enum value maps for CreateSubAgentRequest_App_SharingLevel.
var (
CreateSubAgentRequest_App_SharingLevel_name = map[int32]string{
0: "OWNER",
1: "AUTHENTICATED",
2: "PUBLIC",
3: "ORGANIZATION",
}
CreateSubAgentRequest_App_SharingLevel_value = map[string]int32{
"OWNER": 0,
"AUTHENTICATED": 1,
"PUBLIC": 2,
"ORGANIZATION": 3,
}
)
func (x CreateSubAgentRequest_App_SharingLevel) Enum() *CreateSubAgentRequest_App_SharingLevel {
p := new(CreateSubAgentRequest_App_SharingLevel)
*p = x
return p
}
func (x CreateSubAgentRequest_App_SharingLevel) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (CreateSubAgentRequest_App_SharingLevel) Descriptor() protoreflect.EnumDescriptor {
return file_agent_proto_agent_proto_enumTypes[13].Descriptor()
}
func (CreateSubAgentRequest_App_SharingLevel) Type() protoreflect.EnumType {
return &file_agent_proto_agent_proto_enumTypes[13]
}
func (x CreateSubAgentRequest_App_SharingLevel) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use CreateSubAgentRequest_App_SharingLevel.Descriptor instead.
func (CreateSubAgentRequest_App_SharingLevel) EnumDescriptor() ([]byte, []int) {
return file_agent_proto_agent_proto_rawDescGZIP(), []int{37, 0, 1}
}
type UpdateAppStatusRequest_AppStatusState int32
const (
UpdateAppStatusRequest_WORKING UpdateAppStatusRequest_AppStatusState = 0
UpdateAppStatusRequest_IDLE UpdateAppStatusRequest_AppStatusState = 1
UpdateAppStatusRequest_COMPLETE UpdateAppStatusRequest_AppStatusState = 2
UpdateAppStatusRequest_FAILURE UpdateAppStatusRequest_AppStatusState = 3
)
// Enum value maps for UpdateAppStatusRequest_AppStatusState.
var (
UpdateAppStatusRequest_AppStatusState_name = map[int32]string{
0: "WORKING",
1: "IDLE",
2: "COMPLETE",
3: "FAILURE",
}
UpdateAppStatusRequest_AppStatusState_value = map[string]int32{
"WORKING": 0,
"IDLE": 1,
"COMPLETE": 2,
"FAILURE": 3,
}
)
func (x UpdateAppStatusRequest_AppStatusState) Enum() *UpdateAppStatusRequest_AppStatusState {
p := new(UpdateAppStatusRequest_AppStatusState)
*p = x
return p
}
func (x UpdateAppStatusRequest_AppStatusState) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (UpdateAppStatusRequest_AppStatusState) Descriptor() protoreflect.EnumDescriptor {
return file_agent_proto_agent_proto_enumTypes[14].Descriptor()
}
func (UpdateAppStatusRequest_AppStatusState) Type() protoreflect.EnumType {
return &file_agent_proto_agent_proto_enumTypes[14]
}
func (x UpdateAppStatusRequest_AppStatusState) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use UpdateAppStatusRequest_AppStatusState.Descriptor instead.
func (UpdateAppStatusRequest_AppStatusState) EnumDescriptor() ([]byte, []int) {
return file_agent_proto_agent_proto_rawDescGZIP(), []int{46, 0}
}
type WorkspaceApp struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Id []byte `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
External bool `protobuf:"varint,3,opt,name=external,proto3" json:"external,omitempty"`
Slug string `protobuf:"bytes,4,opt,name=slug,proto3" json:"slug,omitempty"`
DisplayName string `protobuf:"bytes,5,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
Command string `protobuf:"bytes,6,opt,name=command,proto3" json:"command,omitempty"`
Icon string `protobuf:"bytes,7,opt,name=icon,proto3" json:"icon,omitempty"`
Subdomain bool `protobuf:"varint,8,opt,name=subdomain,proto3" json:"subdomain,omitempty"`
SubdomainName string `protobuf:"bytes,9,opt,name=subdomain_name,json=subdomainName,proto3" json:"subdomain_name,omitempty"`
SharingLevel WorkspaceApp_SharingLevel `protobuf:"varint,10,opt,name=sharing_level,json=sharingLevel,proto3,enum=coder.agent.v2.WorkspaceApp_SharingLevel" json:"sharing_level,omitempty"`
Healthcheck *WorkspaceApp_Healthcheck `protobuf:"bytes,11,opt,name=healthcheck,proto3" json:"healthcheck,omitempty"`
Health WorkspaceApp_Health `protobuf:"varint,12,opt,name=health,proto3,enum=coder.agent.v2.WorkspaceApp_Health" json:"health,omitempty"`
Hidden bool `protobuf:"varint,13,opt,name=hidden,proto3" json:"hidden,omitempty"`
}
func (x *WorkspaceApp) Reset() {
*x = WorkspaceApp{}
if protoimpl.UnsafeEnabled {
mi := &file_agent_proto_agent_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *WorkspaceApp) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*WorkspaceApp) ProtoMessage() {}
func (x *WorkspaceApp) ProtoReflect() protoreflect.Message {
mi := &file_agent_proto_agent_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 WorkspaceApp.ProtoReflect.Descriptor instead.
func (*WorkspaceApp) Descriptor() ([]byte, []int) {
return file_agent_proto_agent_proto_rawDescGZIP(), []int{0}
}
func (x *WorkspaceApp) GetId() []byte {
if x != nil {
return x.Id
}
return nil
}
func (x *WorkspaceApp) GetUrl() string {
if x != nil {
return x.Url
}
return ""
}
func (x *WorkspaceApp) GetExternal() bool {
if x != nil {
return x.External
}
return false
}
func (x *WorkspaceApp) GetSlug() string {
if x != nil {
return x.Slug
}
return ""
}
func (x *WorkspaceApp) GetDisplayName() string {
if x != nil {
return x.DisplayName
}
return ""
}
func (x *WorkspaceApp) GetCommand() string {
if x != nil {
return x.Command
}
return ""
}
func (x *WorkspaceApp) GetIcon() string {
if x != nil {
return x.Icon
}
return ""
}
func (x *WorkspaceApp) GetSubdomain() bool {
if x != nil {
return x.Subdomain
}
return false
}
func (x *WorkspaceApp) GetSubdomainName() string {
if x != nil {
return x.SubdomainName
}
return ""
}
func (x *WorkspaceApp) GetSharingLevel() WorkspaceApp_SharingLevel {
if x != nil {
return x.SharingLevel
}
return WorkspaceApp_SHARING_LEVEL_UNSPECIFIED
}
func (x *WorkspaceApp) GetHealthcheck() *WorkspaceApp_Healthcheck {
if x != nil {
return x.Healthcheck
}
return nil
}
func (x *WorkspaceApp) GetHealth() WorkspaceApp_Health {
if x != nil {
return x.Health
}
return WorkspaceApp_HEALTH_UNSPECIFIED
}
func (x *WorkspaceApp) GetHidden() bool {
if x != nil {
return x.Hidden
}
return false
}
type WorkspaceAgentScript struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
LogSourceId []byte `protobuf:"bytes,1,opt,name=log_source_id,json=logSourceId,proto3" json:"log_source_id,omitempty"`
LogPath string `protobuf:"bytes,2,opt,name=log_path,json=logPath,proto3" json:"log_path,omitempty"`
Script string `protobuf:"bytes,3,opt,name=script,proto3" json:"script,omitempty"`
Cron string `protobuf:"bytes,4,opt,name=cron,proto3" json:"cron,omitempty"`
RunOnStart bool `protobuf:"varint,5,opt,name=run_on_start,json=runOnStart,proto3" json:"run_on_start,omitempty"`
RunOnStop bool `protobuf:"varint,6,opt,name=run_on_stop,json=runOnStop,proto3" json:"run_on_stop,omitempty"`
StartBlocksLogin bool `protobuf:"varint,7,opt,name=start_blocks_login,json=startBlocksLogin,proto3" json:"start_blocks_login,omitempty"`
Timeout *durationpb.Duration `protobuf:"bytes,8,opt,name=timeout,proto3" json:"timeout,omitempty"`
DisplayName string `protobuf:"bytes,9,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
Id []byte `protobuf:"bytes,10,opt,name=id,proto3" json:"id,omitempty"`
}
func (x *WorkspaceAgentScript) Reset() {
*x = WorkspaceAgentScript{}
if protoimpl.UnsafeEnabled {
mi := &file_agent_proto_agent_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *WorkspaceAgentScript) String() string {