Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
gitpod-io
GitHub Repository: gitpod-io/gitpod
Path: blob/main/components/ws-daemon-api/go/daemon.pb.go
2498 views
1
// Copyright (c) 2024 Gitpod GmbH. All rights reserved.
2
// Licensed under the GNU Affero General Public License (AGPL).
3
// See License.AGPL.txt in the project root for license information.
4
5
// Code generated by protoc-gen-go. DO NOT EDIT.
6
// versions:
7
// protoc-gen-go v1.28.1
8
// protoc v3.20.1
9
// source: daemon.proto
10
11
package api
12
13
import (
14
api "github.com/gitpod-io/gitpod/content-service/api"
15
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
16
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
17
reflect "reflect"
18
sync "sync"
19
)
20
21
const (
22
// Verify that this generated code is sufficiently up-to-date.
23
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
24
// Verify that runtime/protoimpl is sufficiently up-to-date.
25
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
26
)
27
28
// WorkspaceContentState describes the availability and reliability of the workspace content
29
type WorkspaceContentState int32
30
31
const (
32
// NONE means that there currently is no workspace content and no work is underway to change that.
33
WorkspaceContentState_NONE WorkspaceContentState = 0
34
// SETTING_UP indicates that the workspace content is currently being produced/checked out/unarchived and is
35
// very likely to change. In this state one must not modify or rely on the workspace content.
36
WorkspaceContentState_SETTING_UP WorkspaceContentState = 1
37
// AVAILABLE indicates that the workspace content is fully present and ready for use.
38
WorkspaceContentState_AVAILABLE WorkspaceContentState = 2
39
// WRAPPING_UP means that the workspace is being torn down, i.e. a final backup is being produced and the content
40
// is deleted locally. In this state one must not modify or rely on the workspace content.
41
WorkspaceContentState_WRAPPING_UP WorkspaceContentState = 3
42
)
43
44
// Enum value maps for WorkspaceContentState.
45
var (
46
WorkspaceContentState_name = map[int32]string{
47
0: "NONE",
48
1: "SETTING_UP",
49
2: "AVAILABLE",
50
3: "WRAPPING_UP",
51
}
52
WorkspaceContentState_value = map[string]int32{
53
"NONE": 0,
54
"SETTING_UP": 1,
55
"AVAILABLE": 2,
56
"WRAPPING_UP": 3,
57
}
58
)
59
60
func (x WorkspaceContentState) Enum() *WorkspaceContentState {
61
p := new(WorkspaceContentState)
62
*p = x
63
return p
64
}
65
66
func (x WorkspaceContentState) String() string {
67
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
68
}
69
70
func (WorkspaceContentState) Descriptor() protoreflect.EnumDescriptor {
71
return file_daemon_proto_enumTypes[0].Descriptor()
72
}
73
74
func (WorkspaceContentState) Type() protoreflect.EnumType {
75
return &file_daemon_proto_enumTypes[0]
76
}
77
78
func (x WorkspaceContentState) Number() protoreflect.EnumNumber {
79
return protoreflect.EnumNumber(x)
80
}
81
82
// Deprecated: Use WorkspaceContentState.Descriptor instead.
83
func (WorkspaceContentState) EnumDescriptor() ([]byte, []int) {
84
return file_daemon_proto_rawDescGZIP(), []int{0}
85
}
86
87
// InitWorkspaceRequest intialises a new workspace folder in the working area
88
type InitWorkspaceRequest struct {
89
state protoimpl.MessageState `json:"state,omitempty"`
90
sizeCache protoimpl.SizeCache `json:"sizeCache,omitempty"`
91
unknownFields protoimpl.UnknownFields `json:"unknownFields,omitempty"`
92
93
// ID is a unique identifier of this workspace. No other workspace with the same name must exist in the realm of this daemon
94
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
95
// Metadata is data associated with this workspace that's required for other parts of Gitpod to function
96
Metadata *WorkspaceMetadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"`
97
// Initializer specifies how the workspace is to be initialized
98
Initializer *api.WorkspaceInitializer `protobuf:"bytes,3,opt,name=initializer,proto3" json:"initializer,omitempty"`
99
// remote_storage_disabled disables any support for remote storage operations, specifically backups and snapshots.
100
// When any such operation is attempted, a FAILED_PRECONDITION error will be the result.
101
RemoteStorageDisabled bool `protobuf:"varint,7,opt,name=remote_storage_disabled,json=remoteStorageDisabled,proto3" json:"remoteStorageDisabled,omitempty"`
102
// storage_quota_bytes enforces a storage quate for the workspace if set to a value != 0
103
StorageQuotaBytes int64 `protobuf:"varint,8,opt,name=storage_quota_bytes,json=storageQuotaBytes,proto3" json:"storageQuotaBytes,omitempty"`
104
}
105
106
func (x *InitWorkspaceRequest) Reset() {
107
*x = InitWorkspaceRequest{}
108
if protoimpl.UnsafeEnabled {
109
mi := &file_daemon_proto_msgTypes[0]
110
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
111
ms.StoreMessageInfo(mi)
112
}
113
}
114
115
func (x *InitWorkspaceRequest) String() string {
116
return protoimpl.X.MessageStringOf(x)
117
}
118
119
func (*InitWorkspaceRequest) ProtoMessage() {}
120
121
func (x *InitWorkspaceRequest) ProtoReflect() protoreflect.Message {
122
mi := &file_daemon_proto_msgTypes[0]
123
if protoimpl.UnsafeEnabled && x != nil {
124
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
125
if ms.LoadMessageInfo() == nil {
126
ms.StoreMessageInfo(mi)
127
}
128
return ms
129
}
130
return mi.MessageOf(x)
131
}
132
133
// Deprecated: Use InitWorkspaceRequest.ProtoReflect.Descriptor instead.
134
func (*InitWorkspaceRequest) Descriptor() ([]byte, []int) {
135
return file_daemon_proto_rawDescGZIP(), []int{0}
136
}
137
138
func (x *InitWorkspaceRequest) GetId() string {
139
if x != nil {
140
return x.Id
141
}
142
return ""
143
}
144
145
func (x *InitWorkspaceRequest) GetMetadata() *WorkspaceMetadata {
146
if x != nil {
147
return x.Metadata
148
}
149
return nil
150
}
151
152
func (x *InitWorkspaceRequest) GetInitializer() *api.WorkspaceInitializer {
153
if x != nil {
154
return x.Initializer
155
}
156
return nil
157
}
158
159
func (x *InitWorkspaceRequest) GetRemoteStorageDisabled() bool {
160
if x != nil {
161
return x.RemoteStorageDisabled
162
}
163
return false
164
}
165
166
func (x *InitWorkspaceRequest) GetStorageQuotaBytes() int64 {
167
if x != nil {
168
return x.StorageQuotaBytes
169
}
170
return 0
171
}
172
173
// WorkspaceMetadata is data associated with a workspace that's required for other parts of the system to function
174
type WorkspaceMetadata struct {
175
state protoimpl.MessageState `json:"state,omitempty"`
176
sizeCache protoimpl.SizeCache `json:"sizeCache,omitempty"`
177
unknownFields protoimpl.UnknownFields `json:"unknownFields,omitempty"`
178
179
// owner is the ID of the Gitpod user to whom we'll bill this workspace and who we consider responsible for its content
180
Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`
181
// meta_id is the workspace ID of this currently running workspace instance on the "meta pool" side
182
MetaId string `protobuf:"bytes,2,opt,name=meta_id,json=metaId,proto3" json:"metaId,omitempty"`
183
}
184
185
func (x *WorkspaceMetadata) Reset() {
186
*x = WorkspaceMetadata{}
187
if protoimpl.UnsafeEnabled {
188
mi := &file_daemon_proto_msgTypes[1]
189
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
190
ms.StoreMessageInfo(mi)
191
}
192
}
193
194
func (x *WorkspaceMetadata) String() string {
195
return protoimpl.X.MessageStringOf(x)
196
}
197
198
func (*WorkspaceMetadata) ProtoMessage() {}
199
200
func (x *WorkspaceMetadata) ProtoReflect() protoreflect.Message {
201
mi := &file_daemon_proto_msgTypes[1]
202
if protoimpl.UnsafeEnabled && x != nil {
203
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
204
if ms.LoadMessageInfo() == nil {
205
ms.StoreMessageInfo(mi)
206
}
207
return ms
208
}
209
return mi.MessageOf(x)
210
}
211
212
// Deprecated: Use WorkspaceMetadata.ProtoReflect.Descriptor instead.
213
func (*WorkspaceMetadata) Descriptor() ([]byte, []int) {
214
return file_daemon_proto_rawDescGZIP(), []int{1}
215
}
216
217
func (x *WorkspaceMetadata) GetOwner() string {
218
if x != nil {
219
return x.Owner
220
}
221
return ""
222
}
223
224
func (x *WorkspaceMetadata) GetMetaId() string {
225
if x != nil {
226
return x.MetaId
227
}
228
return ""
229
}
230
231
type InitWorkspaceResponse struct {
232
state protoimpl.MessageState `json:"state,omitempty"`
233
sizeCache protoimpl.SizeCache `json:"sizeCache,omitempty"`
234
unknownFields protoimpl.UnknownFields `json:"unknownFields,omitempty"`
235
}
236
237
func (x *InitWorkspaceResponse) Reset() {
238
*x = InitWorkspaceResponse{}
239
if protoimpl.UnsafeEnabled {
240
mi := &file_daemon_proto_msgTypes[2]
241
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
242
ms.StoreMessageInfo(mi)
243
}
244
}
245
246
func (x *InitWorkspaceResponse) String() string {
247
return protoimpl.X.MessageStringOf(x)
248
}
249
250
func (*InitWorkspaceResponse) ProtoMessage() {}
251
252
func (x *InitWorkspaceResponse) ProtoReflect() protoreflect.Message {
253
mi := &file_daemon_proto_msgTypes[2]
254
if protoimpl.UnsafeEnabled && x != nil {
255
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
256
if ms.LoadMessageInfo() == nil {
257
ms.StoreMessageInfo(mi)
258
}
259
return ms
260
}
261
return mi.MessageOf(x)
262
}
263
264
// Deprecated: Use InitWorkspaceResponse.ProtoReflect.Descriptor instead.
265
func (*InitWorkspaceResponse) Descriptor() ([]byte, []int) {
266
return file_daemon_proto_rawDescGZIP(), []int{2}
267
}
268
269
// WaitForInitRequest waits for a workspace to be initialized
270
type WaitForInitRequest struct {
271
state protoimpl.MessageState `json:"state,omitempty"`
272
sizeCache protoimpl.SizeCache `json:"sizeCache,omitempty"`
273
unknownFields protoimpl.UnknownFields `json:"unknownFields,omitempty"`
274
275
// ID is a unique identifier of the workspace
276
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
277
}
278
279
func (x *WaitForInitRequest) Reset() {
280
*x = WaitForInitRequest{}
281
if protoimpl.UnsafeEnabled {
282
mi := &file_daemon_proto_msgTypes[3]
283
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
284
ms.StoreMessageInfo(mi)
285
}
286
}
287
288
func (x *WaitForInitRequest) String() string {
289
return protoimpl.X.MessageStringOf(x)
290
}
291
292
func (*WaitForInitRequest) ProtoMessage() {}
293
294
func (x *WaitForInitRequest) ProtoReflect() protoreflect.Message {
295
mi := &file_daemon_proto_msgTypes[3]
296
if protoimpl.UnsafeEnabled && x != nil {
297
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
298
if ms.LoadMessageInfo() == nil {
299
ms.StoreMessageInfo(mi)
300
}
301
return ms
302
}
303
return mi.MessageOf(x)
304
}
305
306
// Deprecated: Use WaitForInitRequest.ProtoReflect.Descriptor instead.
307
func (*WaitForInitRequest) Descriptor() ([]byte, []int) {
308
return file_daemon_proto_rawDescGZIP(), []int{3}
309
}
310
311
func (x *WaitForInitRequest) GetId() string {
312
if x != nil {
313
return x.Id
314
}
315
return ""
316
}
317
318
type WaitForInitResponse struct {
319
state protoimpl.MessageState `json:"state,omitempty"`
320
sizeCache protoimpl.SizeCache `json:"sizeCache,omitempty"`
321
unknownFields protoimpl.UnknownFields `json:"unknownFields,omitempty"`
322
}
323
324
func (x *WaitForInitResponse) Reset() {
325
*x = WaitForInitResponse{}
326
if protoimpl.UnsafeEnabled {
327
mi := &file_daemon_proto_msgTypes[4]
328
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
329
ms.StoreMessageInfo(mi)
330
}
331
}
332
333
func (x *WaitForInitResponse) String() string {
334
return protoimpl.X.MessageStringOf(x)
335
}
336
337
func (*WaitForInitResponse) ProtoMessage() {}
338
339
func (x *WaitForInitResponse) ProtoReflect() protoreflect.Message {
340
mi := &file_daemon_proto_msgTypes[4]
341
if protoimpl.UnsafeEnabled && x != nil {
342
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
343
if ms.LoadMessageInfo() == nil {
344
ms.StoreMessageInfo(mi)
345
}
346
return ms
347
}
348
return mi.MessageOf(x)
349
}
350
351
// Deprecated: Use WaitForInitResponse.ProtoReflect.Descriptor instead.
352
func (*WaitForInitResponse) Descriptor() ([]byte, []int) {
353
return file_daemon_proto_rawDescGZIP(), []int{4}
354
}
355
356
type IsWorkspaceExistsRequest struct {
357
state protoimpl.MessageState `json:"state,omitempty"`
358
sizeCache protoimpl.SizeCache `json:"sizeCache,omitempty"`
359
unknownFields protoimpl.UnknownFields `json:"unknownFields,omitempty"`
360
361
// ID is a unique identifier of the workspace
362
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
363
}
364
365
func (x *IsWorkspaceExistsRequest) Reset() {
366
*x = IsWorkspaceExistsRequest{}
367
if protoimpl.UnsafeEnabled {
368
mi := &file_daemon_proto_msgTypes[5]
369
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
370
ms.StoreMessageInfo(mi)
371
}
372
}
373
374
func (x *IsWorkspaceExistsRequest) String() string {
375
return protoimpl.X.MessageStringOf(x)
376
}
377
378
func (*IsWorkspaceExistsRequest) ProtoMessage() {}
379
380
func (x *IsWorkspaceExistsRequest) ProtoReflect() protoreflect.Message {
381
mi := &file_daemon_proto_msgTypes[5]
382
if protoimpl.UnsafeEnabled && x != nil {
383
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
384
if ms.LoadMessageInfo() == nil {
385
ms.StoreMessageInfo(mi)
386
}
387
return ms
388
}
389
return mi.MessageOf(x)
390
}
391
392
// Deprecated: Use IsWorkspaceExistsRequest.ProtoReflect.Descriptor instead.
393
func (*IsWorkspaceExistsRequest) Descriptor() ([]byte, []int) {
394
return file_daemon_proto_rawDescGZIP(), []int{5}
395
}
396
397
func (x *IsWorkspaceExistsRequest) GetId() string {
398
if x != nil {
399
return x.Id
400
}
401
return ""
402
}
403
404
type IsWorkspaceExistsResponse struct {
405
state protoimpl.MessageState `json:"state,omitempty"`
406
sizeCache protoimpl.SizeCache `json:"sizeCache,omitempty"`
407
unknownFields protoimpl.UnknownFields `json:"unknownFields,omitempty"`
408
409
// exists indicates if ws-daemon knows about this workspace or not
410
Exists bool `protobuf:"varint,1,opt,name=exists,proto3" json:"exists,omitempty"`
411
}
412
413
func (x *IsWorkspaceExistsResponse) Reset() {
414
*x = IsWorkspaceExistsResponse{}
415
if protoimpl.UnsafeEnabled {
416
mi := &file_daemon_proto_msgTypes[6]
417
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
418
ms.StoreMessageInfo(mi)
419
}
420
}
421
422
func (x *IsWorkspaceExistsResponse) String() string {
423
return protoimpl.X.MessageStringOf(x)
424
}
425
426
func (*IsWorkspaceExistsResponse) ProtoMessage() {}
427
428
func (x *IsWorkspaceExistsResponse) ProtoReflect() protoreflect.Message {
429
mi := &file_daemon_proto_msgTypes[6]
430
if protoimpl.UnsafeEnabled && x != nil {
431
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
432
if ms.LoadMessageInfo() == nil {
433
ms.StoreMessageInfo(mi)
434
}
435
return ms
436
}
437
return mi.MessageOf(x)
438
}
439
440
// Deprecated: Use IsWorkspaceExistsResponse.ProtoReflect.Descriptor instead.
441
func (*IsWorkspaceExistsResponse) Descriptor() ([]byte, []int) {
442
return file_daemon_proto_rawDescGZIP(), []int{6}
443
}
444
445
func (x *IsWorkspaceExistsResponse) GetExists() bool {
446
if x != nil {
447
return x.Exists
448
}
449
return false
450
}
451
452
// TakeSnapshotRequest creates a backup/snapshot of a workspace
453
type TakeSnapshotRequest struct {
454
state protoimpl.MessageState `json:"state,omitempty"`
455
sizeCache protoimpl.SizeCache `json:"sizeCache,omitempty"`
456
unknownFields protoimpl.UnknownFields `json:"unknownFields,omitempty"`
457
458
// ID is the identifier of the workspace of which we want to create a snapshot of
459
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
460
// return_immediately means we're not waiting until the snapshot is done but return immediately after starting it
461
ReturnImmediately bool `protobuf:"varint,2,opt,name=return_immediately,json=returnImmediately,proto3" json:"returnImmediately,omitempty"`
462
}
463
464
func (x *TakeSnapshotRequest) Reset() {
465
*x = TakeSnapshotRequest{}
466
if protoimpl.UnsafeEnabled {
467
mi := &file_daemon_proto_msgTypes[7]
468
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
469
ms.StoreMessageInfo(mi)
470
}
471
}
472
473
func (x *TakeSnapshotRequest) String() string {
474
return protoimpl.X.MessageStringOf(x)
475
}
476
477
func (*TakeSnapshotRequest) ProtoMessage() {}
478
479
func (x *TakeSnapshotRequest) ProtoReflect() protoreflect.Message {
480
mi := &file_daemon_proto_msgTypes[7]
481
if protoimpl.UnsafeEnabled && x != nil {
482
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
483
if ms.LoadMessageInfo() == nil {
484
ms.StoreMessageInfo(mi)
485
}
486
return ms
487
}
488
return mi.MessageOf(x)
489
}
490
491
// Deprecated: Use TakeSnapshotRequest.ProtoReflect.Descriptor instead.
492
func (*TakeSnapshotRequest) Descriptor() ([]byte, []int) {
493
return file_daemon_proto_rawDescGZIP(), []int{7}
494
}
495
496
func (x *TakeSnapshotRequest) GetId() string {
497
if x != nil {
498
return x.Id
499
}
500
return ""
501
}
502
503
func (x *TakeSnapshotRequest) GetReturnImmediately() bool {
504
if x != nil {
505
return x.ReturnImmediately
506
}
507
return false
508
}
509
510
type TakeSnapshotResponse struct {
511
state protoimpl.MessageState `json:"state,omitempty"`
512
sizeCache protoimpl.SizeCache `json:"sizeCache,omitempty"`
513
unknownFields protoimpl.UnknownFields `json:"unknownFields,omitempty"`
514
515
// url is the name of the resulting snapshot
516
Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
517
}
518
519
func (x *TakeSnapshotResponse) Reset() {
520
*x = TakeSnapshotResponse{}
521
if protoimpl.UnsafeEnabled {
522
mi := &file_daemon_proto_msgTypes[8]
523
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
524
ms.StoreMessageInfo(mi)
525
}
526
}
527
528
func (x *TakeSnapshotResponse) String() string {
529
return protoimpl.X.MessageStringOf(x)
530
}
531
532
func (*TakeSnapshotResponse) ProtoMessage() {}
533
534
func (x *TakeSnapshotResponse) ProtoReflect() protoreflect.Message {
535
mi := &file_daemon_proto_msgTypes[8]
536
if protoimpl.UnsafeEnabled && x != nil {
537
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
538
if ms.LoadMessageInfo() == nil {
539
ms.StoreMessageInfo(mi)
540
}
541
return ms
542
}
543
return mi.MessageOf(x)
544
}
545
546
// Deprecated: Use TakeSnapshotResponse.ProtoReflect.Descriptor instead.
547
func (*TakeSnapshotResponse) Descriptor() ([]byte, []int) {
548
return file_daemon_proto_rawDescGZIP(), []int{8}
549
}
550
551
func (x *TakeSnapshotResponse) GetUrl() string {
552
if x != nil {
553
return x.Url
554
}
555
return ""
556
}
557
558
type DisposeWorkspaceRequest struct {
559
state protoimpl.MessageState `json:"state,omitempty"`
560
sizeCache protoimpl.SizeCache `json:"sizeCache,omitempty"`
561
unknownFields protoimpl.UnknownFields `json:"unknownFields,omitempty"`
562
563
// ID is a unique identifier of the workspace to dispose of
564
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
565
// Backup triggers a final backup prior to disposal
566
Backup bool `protobuf:"varint,2,opt,name=backup,proto3" json:"backup,omitempty"`
567
// backup_logs triggers the upload of terminal logs
568
BackupLogs bool `protobuf:"varint,3,opt,name=backup_logs,json=backupLogs,proto3" json:"backupLogs,omitempty"`
569
}
570
571
func (x *DisposeWorkspaceRequest) Reset() {
572
*x = DisposeWorkspaceRequest{}
573
if protoimpl.UnsafeEnabled {
574
mi := &file_daemon_proto_msgTypes[9]
575
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
576
ms.StoreMessageInfo(mi)
577
}
578
}
579
580
func (x *DisposeWorkspaceRequest) String() string {
581
return protoimpl.X.MessageStringOf(x)
582
}
583
584
func (*DisposeWorkspaceRequest) ProtoMessage() {}
585
586
func (x *DisposeWorkspaceRequest) ProtoReflect() protoreflect.Message {
587
mi := &file_daemon_proto_msgTypes[9]
588
if protoimpl.UnsafeEnabled && x != nil {
589
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
590
if ms.LoadMessageInfo() == nil {
591
ms.StoreMessageInfo(mi)
592
}
593
return ms
594
}
595
return mi.MessageOf(x)
596
}
597
598
// Deprecated: Use DisposeWorkspaceRequest.ProtoReflect.Descriptor instead.
599
func (*DisposeWorkspaceRequest) Descriptor() ([]byte, []int) {
600
return file_daemon_proto_rawDescGZIP(), []int{9}
601
}
602
603
func (x *DisposeWorkspaceRequest) GetId() string {
604
if x != nil {
605
return x.Id
606
}
607
return ""
608
}
609
610
func (x *DisposeWorkspaceRequest) GetBackup() bool {
611
if x != nil {
612
return x.Backup
613
}
614
return false
615
}
616
617
func (x *DisposeWorkspaceRequest) GetBackupLogs() bool {
618
if x != nil {
619
return x.BackupLogs
620
}
621
return false
622
}
623
624
type DisposeWorkspaceResponse struct {
625
state protoimpl.MessageState `json:"state,omitempty"`
626
sizeCache protoimpl.SizeCache `json:"sizeCache,omitempty"`
627
unknownFields protoimpl.UnknownFields `json:"unknownFields,omitempty"`
628
629
// git_status is the current state of the Git repo in this workspace prior to disposal.
630
// If the workspace has no Git repo at its checkout location, this is nil.
631
GitStatus *api.GitStatus `protobuf:"bytes,1,opt,name=git_status,json=gitStatus,proto3" json:"gitStatus,omitempty"`
632
}
633
634
func (x *DisposeWorkspaceResponse) Reset() {
635
*x = DisposeWorkspaceResponse{}
636
if protoimpl.UnsafeEnabled {
637
mi := &file_daemon_proto_msgTypes[10]
638
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
639
ms.StoreMessageInfo(mi)
640
}
641
}
642
643
func (x *DisposeWorkspaceResponse) String() string {
644
return protoimpl.X.MessageStringOf(x)
645
}
646
647
func (*DisposeWorkspaceResponse) ProtoMessage() {}
648
649
func (x *DisposeWorkspaceResponse) ProtoReflect() protoreflect.Message {
650
mi := &file_daemon_proto_msgTypes[10]
651
if protoimpl.UnsafeEnabled && x != nil {
652
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
653
if ms.LoadMessageInfo() == nil {
654
ms.StoreMessageInfo(mi)
655
}
656
return ms
657
}
658
return mi.MessageOf(x)
659
}
660
661
// Deprecated: Use DisposeWorkspaceResponse.ProtoReflect.Descriptor instead.
662
func (*DisposeWorkspaceResponse) Descriptor() ([]byte, []int) {
663
return file_daemon_proto_rawDescGZIP(), []int{10}
664
}
665
666
func (x *DisposeWorkspaceResponse) GetGitStatus() *api.GitStatus {
667
if x != nil {
668
return x.GitStatus
669
}
670
return nil
671
}
672
673
// BackupWorkspaceRequest creates a backup of a workspace
674
// TODO(rl): do we need an optional bool 'backup_logs' to capture the logs as well?
675
type BackupWorkspaceRequest struct {
676
state protoimpl.MessageState `json:"state,omitempty"`
677
sizeCache protoimpl.SizeCache `json:"sizeCache,omitempty"`
678
unknownFields protoimpl.UnknownFields `json:"unknownFields,omitempty"`
679
680
// ID is the identifier of the workspace of which we want to create a backup of
681
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
682
}
683
684
func (x *BackupWorkspaceRequest) Reset() {
685
*x = BackupWorkspaceRequest{}
686
if protoimpl.UnsafeEnabled {
687
mi := &file_daemon_proto_msgTypes[11]
688
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
689
ms.StoreMessageInfo(mi)
690
}
691
}
692
693
func (x *BackupWorkspaceRequest) String() string {
694
return protoimpl.X.MessageStringOf(x)
695
}
696
697
func (*BackupWorkspaceRequest) ProtoMessage() {}
698
699
func (x *BackupWorkspaceRequest) ProtoReflect() protoreflect.Message {
700
mi := &file_daemon_proto_msgTypes[11]
701
if protoimpl.UnsafeEnabled && x != nil {
702
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
703
if ms.LoadMessageInfo() == nil {
704
ms.StoreMessageInfo(mi)
705
}
706
return ms
707
}
708
return mi.MessageOf(x)
709
}
710
711
// Deprecated: Use BackupWorkspaceRequest.ProtoReflect.Descriptor instead.
712
func (*BackupWorkspaceRequest) Descriptor() ([]byte, []int) {
713
return file_daemon_proto_rawDescGZIP(), []int{11}
714
}
715
716
func (x *BackupWorkspaceRequest) GetId() string {
717
if x != nil {
718
return x.Id
719
}
720
return ""
721
}
722
723
type BackupWorkspaceResponse struct {
724
state protoimpl.MessageState `json:"state,omitempty"`
725
sizeCache protoimpl.SizeCache `json:"sizeCache,omitempty"`
726
unknownFields protoimpl.UnknownFields `json:"unknownFields,omitempty"`
727
728
// url is the name of the resulting backup
729
Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
730
}
731
732
func (x *BackupWorkspaceResponse) Reset() {
733
*x = BackupWorkspaceResponse{}
734
if protoimpl.UnsafeEnabled {
735
mi := &file_daemon_proto_msgTypes[12]
736
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
737
ms.StoreMessageInfo(mi)
738
}
739
}
740
741
func (x *BackupWorkspaceResponse) String() string {
742
return protoimpl.X.MessageStringOf(x)
743
}
744
745
func (*BackupWorkspaceResponse) ProtoMessage() {}
746
747
func (x *BackupWorkspaceResponse) ProtoReflect() protoreflect.Message {
748
mi := &file_daemon_proto_msgTypes[12]
749
if protoimpl.UnsafeEnabled && x != nil {
750
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
751
if ms.LoadMessageInfo() == nil {
752
ms.StoreMessageInfo(mi)
753
}
754
return ms
755
}
756
return mi.MessageOf(x)
757
}
758
759
// Deprecated: Use BackupWorkspaceResponse.ProtoReflect.Descriptor instead.
760
func (*BackupWorkspaceResponse) Descriptor() ([]byte, []int) {
761
return file_daemon_proto_rawDescGZIP(), []int{12}
762
}
763
764
func (x *BackupWorkspaceResponse) GetUrl() string {
765
if x != nil {
766
return x.Url
767
}
768
return ""
769
}
770
771
var File_daemon_proto protoreflect.FileDescriptor
772
773
var file_daemon_proto_rawDesc = []byte{
774
0x0a, 0x0c, 0x64, 0x61, 0x65, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08,
775
0x77, 0x73, 0x64, 0x61, 0x65, 0x6d, 0x6f, 0x6e, 0x1a, 0x25, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e,
776
0x74, 0x2d, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2d, 0x61, 0x70, 0x69, 0x2f, 0x69, 0x6e,
777
0x69, 0x74, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22,
778
0xa7, 0x02, 0x0a, 0x14, 0x49, 0x6e, 0x69, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63,
779
0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01,
780
0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x37, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61,
781
0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x77, 0x73, 0x64,
782
0x61, 0x65, 0x6d, 0x6f, 0x6e, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x4d,
783
0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74,
784
0x61, 0x12, 0x46, 0x0a, 0x0b, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x72,
785
0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74,
786
0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63,
787
0x65, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x72, 0x52, 0x0b, 0x69, 0x6e,
788
0x69, 0x74, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x72, 0x12, 0x36, 0x0a, 0x17, 0x72, 0x65, 0x6d,
789
0x6f, 0x74, 0x65, 0x5f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x64, 0x69, 0x73, 0x61,
790
0x62, 0x6c, 0x65, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x15, 0x72, 0x65, 0x6d, 0x6f,
791
0x74, 0x65, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65,
792
0x64, 0x12, 0x2e, 0x0a, 0x13, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x71, 0x75, 0x6f,
793
0x74, 0x61, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x11,
794
0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x51, 0x75, 0x6f, 0x74, 0x61, 0x42, 0x79, 0x74, 0x65,
795
0x73, 0x4a, 0x04, 0x08, 0x04, 0x10, 0x05, 0x4a, 0x04, 0x08, 0x05, 0x10, 0x06, 0x4a, 0x04, 0x08,
796
0x06, 0x10, 0x07, 0x4a, 0x04, 0x08, 0x09, 0x10, 0x0a, 0x22, 0x42, 0x0a, 0x11, 0x57, 0x6f, 0x72,
797
0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x14,
798
0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f,
799
0x77, 0x6e, 0x65, 0x72, 0x12, 0x17, 0x0a, 0x07, 0x6d, 0x65, 0x74, 0x61, 0x5f, 0x69, 0x64, 0x18,
800
0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6d, 0x65, 0x74, 0x61, 0x49, 0x64, 0x22, 0x17, 0x0a,
801
0x15, 0x49, 0x6e, 0x69, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65,
802
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x24, 0x0a, 0x12, 0x57, 0x61, 0x69, 0x74, 0x46, 0x6f,
803
0x72, 0x49, 0x6e, 0x69, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02,
804
0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x15, 0x0a, 0x13,
805
0x57, 0x61, 0x69, 0x74, 0x46, 0x6f, 0x72, 0x49, 0x6e, 0x69, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f,
806
0x6e, 0x73, 0x65, 0x22, 0x2a, 0x0a, 0x18, 0x49, 0x73, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61,
807
0x63, 0x65, 0x45, 0x78, 0x69, 0x73, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
808
0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22,
809
0x33, 0x0a, 0x19, 0x49, 0x73, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x45, 0x78,
810
0x69, 0x73, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06,
811
0x65, 0x78, 0x69, 0x73, 0x74, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x65, 0x78,
812
0x69, 0x73, 0x74, 0x73, 0x22, 0x54, 0x0a, 0x13, 0x54, 0x61, 0x6b, 0x65, 0x53, 0x6e, 0x61, 0x70,
813
0x73, 0x68, 0x6f, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69,
814
0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x2d, 0x0a, 0x12, 0x72,
815
0x65, 0x74, 0x75, 0x72, 0x6e, 0x5f, 0x69, 0x6d, 0x6d, 0x65, 0x64, 0x69, 0x61, 0x74, 0x65, 0x6c,
816
0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x11, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x49,
817
0x6d, 0x6d, 0x65, 0x64, 0x69, 0x61, 0x74, 0x65, 0x6c, 0x79, 0x22, 0x28, 0x0a, 0x14, 0x54, 0x61,
818
0x6b, 0x65, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
819
0x73, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
820
0x03, 0x75, 0x72, 0x6c, 0x22, 0x62, 0x0a, 0x17, 0x44, 0x69, 0x73, 0x70, 0x6f, 0x73, 0x65, 0x57,
821
0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
822
0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12,
823
0x16, 0x0a, 0x06, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52,
824
0x06, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x12, 0x1f, 0x0a, 0x0b, 0x62, 0x61, 0x63, 0x6b, 0x75,
825
0x70, 0x5f, 0x6c, 0x6f, 0x67, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x62, 0x61,
826
0x63, 0x6b, 0x75, 0x70, 0x4c, 0x6f, 0x67, 0x73, 0x22, 0x54, 0x0a, 0x18, 0x44, 0x69, 0x73, 0x70,
827
0x6f, 0x73, 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70,
828
0x6f, 0x6e, 0x73, 0x65, 0x12, 0x38, 0x0a, 0x0a, 0x67, 0x69, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x74,
829
0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x65,
830
0x6e, 0x74, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x47, 0x69, 0x74, 0x53, 0x74, 0x61,
831
0x74, 0x75, 0x73, 0x52, 0x09, 0x67, 0x69, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x28,
832
0x0a, 0x16, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63,
833
0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01,
834
0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x2b, 0x0a, 0x17, 0x42, 0x61, 0x63, 0x6b,
835
0x75, 0x70, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f,
836
0x6e, 0x73, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
837
0x52, 0x03, 0x75, 0x72, 0x6c, 0x2a, 0x51, 0x0a, 0x15, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61,
838
0x63, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x08,
839
0x0a, 0x04, 0x4e, 0x4f, 0x4e, 0x45, 0x10, 0x00, 0x12, 0x0e, 0x0a, 0x0a, 0x53, 0x45, 0x54, 0x54,
840
0x49, 0x4e, 0x47, 0x5f, 0x55, 0x50, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x41, 0x56, 0x41, 0x49,
841
0x4c, 0x41, 0x42, 0x4c, 0x45, 0x10, 0x02, 0x12, 0x0f, 0x0a, 0x0b, 0x57, 0x52, 0x41, 0x50, 0x50,
842
0x49, 0x4e, 0x47, 0x5f, 0x55, 0x50, 0x10, 0x03, 0x32, 0xa3, 0x04, 0x0a, 0x17, 0x57, 0x6f, 0x72,
843
0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x72,
844
0x76, 0x69, 0x63, 0x65, 0x12, 0x52, 0x0a, 0x0d, 0x49, 0x6e, 0x69, 0x74, 0x57, 0x6f, 0x72, 0x6b,
845
0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x1e, 0x2e, 0x77, 0x73, 0x64, 0x61, 0x65, 0x6d, 0x6f, 0x6e,
846
0x2e, 0x49, 0x6e, 0x69, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65,
847
0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x77, 0x73, 0x64, 0x61, 0x65, 0x6d, 0x6f, 0x6e,
848
0x2e, 0x49, 0x6e, 0x69, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65,
849
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4c, 0x0a, 0x0b, 0x57, 0x61, 0x69, 0x74,
850
0x46, 0x6f, 0x72, 0x49, 0x6e, 0x69, 0x74, 0x12, 0x1c, 0x2e, 0x77, 0x73, 0x64, 0x61, 0x65, 0x6d,
851
0x6f, 0x6e, 0x2e, 0x57, 0x61, 0x69, 0x74, 0x46, 0x6f, 0x72, 0x49, 0x6e, 0x69, 0x74, 0x52, 0x65,
852
0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x77, 0x73, 0x64, 0x61, 0x65, 0x6d, 0x6f, 0x6e,
853
0x2e, 0x57, 0x61, 0x69, 0x74, 0x46, 0x6f, 0x72, 0x49, 0x6e, 0x69, 0x74, 0x52, 0x65, 0x73, 0x70,
854
0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x5e, 0x0a, 0x11, 0x49, 0x73, 0x57, 0x6f, 0x72, 0x6b,
855
0x73, 0x70, 0x61, 0x63, 0x65, 0x45, 0x78, 0x69, 0x73, 0x74, 0x73, 0x12, 0x22, 0x2e, 0x77, 0x73,
856
0x64, 0x61, 0x65, 0x6d, 0x6f, 0x6e, 0x2e, 0x49, 0x73, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61,
857
0x63, 0x65, 0x45, 0x78, 0x69, 0x73, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
858
0x23, 0x2e, 0x77, 0x73, 0x64, 0x61, 0x65, 0x6d, 0x6f, 0x6e, 0x2e, 0x49, 0x73, 0x57, 0x6f, 0x72,
859
0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x45, 0x78, 0x69, 0x73, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70,
860
0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4f, 0x0a, 0x0c, 0x54, 0x61, 0x6b, 0x65, 0x53, 0x6e,
861
0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x12, 0x1d, 0x2e, 0x77, 0x73, 0x64, 0x61, 0x65, 0x6d, 0x6f,
862
0x6e, 0x2e, 0x54, 0x61, 0x6b, 0x65, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x52, 0x65,
863
0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x77, 0x73, 0x64, 0x61, 0x65, 0x6d, 0x6f, 0x6e,
864
0x2e, 0x54, 0x61, 0x6b, 0x65, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x52, 0x65, 0x73,
865
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x5b, 0x0a, 0x10, 0x44, 0x69, 0x73, 0x70, 0x6f,
866
0x73, 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x21, 0x2e, 0x77, 0x73,
867
0x64, 0x61, 0x65, 0x6d, 0x6f, 0x6e, 0x2e, 0x44, 0x69, 0x73, 0x70, 0x6f, 0x73, 0x65, 0x57, 0x6f,
868
0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22,
869
0x2e, 0x77, 0x73, 0x64, 0x61, 0x65, 0x6d, 0x6f, 0x6e, 0x2e, 0x44, 0x69, 0x73, 0x70, 0x6f, 0x73,
870
0x65, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
871
0x73, 0x65, 0x22, 0x00, 0x12, 0x58, 0x0a, 0x0f, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x57, 0x6f,
872
0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x20, 0x2e, 0x77, 0x73, 0x64, 0x61, 0x65, 0x6d,
873
0x6f, 0x6e, 0x2e, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61,
874
0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x77, 0x73, 0x64, 0x61,
875
0x65, 0x6d, 0x6f, 0x6e, 0x2e, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x57, 0x6f, 0x72, 0x6b, 0x73,
876
0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x2b,
877
0x5a, 0x29, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x69, 0x74,
878
0x70, 0x6f, 0x64, 0x2d, 0x69, 0x6f, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2f, 0x77, 0x73,
879
0x2d, 0x64, 0x61, 0x65, 0x6d, 0x6f, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x62, 0x06, 0x70, 0x72, 0x6f,
880
0x74, 0x6f, 0x33,
881
}
882
883
var (
884
file_daemon_proto_rawDescOnce sync.Once
885
file_daemon_proto_rawDescData = file_daemon_proto_rawDesc
886
)
887
888
func file_daemon_proto_rawDescGZIP() []byte {
889
file_daemon_proto_rawDescOnce.Do(func() {
890
file_daemon_proto_rawDescData = protoimpl.X.CompressGZIP(file_daemon_proto_rawDescData)
891
})
892
return file_daemon_proto_rawDescData
893
}
894
895
var file_daemon_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
896
var file_daemon_proto_msgTypes = make([]protoimpl.MessageInfo, 13)
897
var file_daemon_proto_goTypes = []interface{}{
898
(WorkspaceContentState)(0), // 0: wsdaemon.WorkspaceContentState
899
(*InitWorkspaceRequest)(nil), // 1: wsdaemon.InitWorkspaceRequest
900
(*WorkspaceMetadata)(nil), // 2: wsdaemon.WorkspaceMetadata
901
(*InitWorkspaceResponse)(nil), // 3: wsdaemon.InitWorkspaceResponse
902
(*WaitForInitRequest)(nil), // 4: wsdaemon.WaitForInitRequest
903
(*WaitForInitResponse)(nil), // 5: wsdaemon.WaitForInitResponse
904
(*IsWorkspaceExistsRequest)(nil), // 6: wsdaemon.IsWorkspaceExistsRequest
905
(*IsWorkspaceExistsResponse)(nil), // 7: wsdaemon.IsWorkspaceExistsResponse
906
(*TakeSnapshotRequest)(nil), // 8: wsdaemon.TakeSnapshotRequest
907
(*TakeSnapshotResponse)(nil), // 9: wsdaemon.TakeSnapshotResponse
908
(*DisposeWorkspaceRequest)(nil), // 10: wsdaemon.DisposeWorkspaceRequest
909
(*DisposeWorkspaceResponse)(nil), // 11: wsdaemon.DisposeWorkspaceResponse
910
(*BackupWorkspaceRequest)(nil), // 12: wsdaemon.BackupWorkspaceRequest
911
(*BackupWorkspaceResponse)(nil), // 13: wsdaemon.BackupWorkspaceResponse
912
(*api.WorkspaceInitializer)(nil), // 14: contentservice.WorkspaceInitializer
913
(*api.GitStatus)(nil), // 15: contentservice.GitStatus
914
}
915
var file_daemon_proto_depIdxs = []int32{
916
2, // 0: wsdaemon.InitWorkspaceRequest.metadata:type_name -> wsdaemon.WorkspaceMetadata
917
14, // 1: wsdaemon.InitWorkspaceRequest.initializer:type_name -> contentservice.WorkspaceInitializer
918
15, // 2: wsdaemon.DisposeWorkspaceResponse.git_status:type_name -> contentservice.GitStatus
919
1, // 3: wsdaemon.WorkspaceContentService.InitWorkspace:input_type -> wsdaemon.InitWorkspaceRequest
920
4, // 4: wsdaemon.WorkspaceContentService.WaitForInit:input_type -> wsdaemon.WaitForInitRequest
921
6, // 5: wsdaemon.WorkspaceContentService.IsWorkspaceExists:input_type -> wsdaemon.IsWorkspaceExistsRequest
922
8, // 6: wsdaemon.WorkspaceContentService.TakeSnapshot:input_type -> wsdaemon.TakeSnapshotRequest
923
10, // 7: wsdaemon.WorkspaceContentService.DisposeWorkspace:input_type -> wsdaemon.DisposeWorkspaceRequest
924
12, // 8: wsdaemon.WorkspaceContentService.BackupWorkspace:input_type -> wsdaemon.BackupWorkspaceRequest
925
3, // 9: wsdaemon.WorkspaceContentService.InitWorkspace:output_type -> wsdaemon.InitWorkspaceResponse
926
5, // 10: wsdaemon.WorkspaceContentService.WaitForInit:output_type -> wsdaemon.WaitForInitResponse
927
7, // 11: wsdaemon.WorkspaceContentService.IsWorkspaceExists:output_type -> wsdaemon.IsWorkspaceExistsResponse
928
9, // 12: wsdaemon.WorkspaceContentService.TakeSnapshot:output_type -> wsdaemon.TakeSnapshotResponse
929
11, // 13: wsdaemon.WorkspaceContentService.DisposeWorkspace:output_type -> wsdaemon.DisposeWorkspaceResponse
930
13, // 14: wsdaemon.WorkspaceContentService.BackupWorkspace:output_type -> wsdaemon.BackupWorkspaceResponse
931
9, // [9:15] is the sub-list for method output_type
932
3, // [3:9] is the sub-list for method input_type
933
3, // [3:3] is the sub-list for extension type_name
934
3, // [3:3] is the sub-list for extension extendee
935
0, // [0:3] is the sub-list for field type_name
936
}
937
938
func init() { file_daemon_proto_init() }
939
func file_daemon_proto_init() {
940
if File_daemon_proto != nil {
941
return
942
}
943
if !protoimpl.UnsafeEnabled {
944
file_daemon_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
945
switch v := v.(*InitWorkspaceRequest); i {
946
case 0:
947
return &v.state
948
case 1:
949
return &v.sizeCache
950
case 2:
951
return &v.unknownFields
952
default:
953
return nil
954
}
955
}
956
file_daemon_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
957
switch v := v.(*WorkspaceMetadata); i {
958
case 0:
959
return &v.state
960
case 1:
961
return &v.sizeCache
962
case 2:
963
return &v.unknownFields
964
default:
965
return nil
966
}
967
}
968
file_daemon_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
969
switch v := v.(*InitWorkspaceResponse); i {
970
case 0:
971
return &v.state
972
case 1:
973
return &v.sizeCache
974
case 2:
975
return &v.unknownFields
976
default:
977
return nil
978
}
979
}
980
file_daemon_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
981
switch v := v.(*WaitForInitRequest); i {
982
case 0:
983
return &v.state
984
case 1:
985
return &v.sizeCache
986
case 2:
987
return &v.unknownFields
988
default:
989
return nil
990
}
991
}
992
file_daemon_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
993
switch v := v.(*WaitForInitResponse); i {
994
case 0:
995
return &v.state
996
case 1:
997
return &v.sizeCache
998
case 2:
999
return &v.unknownFields
1000
default:
1001
return nil
1002
}
1003
}
1004
file_daemon_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
1005
switch v := v.(*IsWorkspaceExistsRequest); i {
1006
case 0:
1007
return &v.state
1008
case 1:
1009
return &v.sizeCache
1010
case 2:
1011
return &v.unknownFields
1012
default:
1013
return nil
1014
}
1015
}
1016
file_daemon_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
1017
switch v := v.(*IsWorkspaceExistsResponse); i {
1018
case 0:
1019
return &v.state
1020
case 1:
1021
return &v.sizeCache
1022
case 2:
1023
return &v.unknownFields
1024
default:
1025
return nil
1026
}
1027
}
1028
file_daemon_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
1029
switch v := v.(*TakeSnapshotRequest); i {
1030
case 0:
1031
return &v.state
1032
case 1:
1033
return &v.sizeCache
1034
case 2:
1035
return &v.unknownFields
1036
default:
1037
return nil
1038
}
1039
}
1040
file_daemon_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
1041
switch v := v.(*TakeSnapshotResponse); i {
1042
case 0:
1043
return &v.state
1044
case 1:
1045
return &v.sizeCache
1046
case 2:
1047
return &v.unknownFields
1048
default:
1049
return nil
1050
}
1051
}
1052
file_daemon_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
1053
switch v := v.(*DisposeWorkspaceRequest); i {
1054
case 0:
1055
return &v.state
1056
case 1:
1057
return &v.sizeCache
1058
case 2:
1059
return &v.unknownFields
1060
default:
1061
return nil
1062
}
1063
}
1064
file_daemon_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
1065
switch v := v.(*DisposeWorkspaceResponse); i {
1066
case 0:
1067
return &v.state
1068
case 1:
1069
return &v.sizeCache
1070
case 2:
1071
return &v.unknownFields
1072
default:
1073
return nil
1074
}
1075
}
1076
file_daemon_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
1077
switch v := v.(*BackupWorkspaceRequest); i {
1078
case 0:
1079
return &v.state
1080
case 1:
1081
return &v.sizeCache
1082
case 2:
1083
return &v.unknownFields
1084
default:
1085
return nil
1086
}
1087
}
1088
file_daemon_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
1089
switch v := v.(*BackupWorkspaceResponse); i {
1090
case 0:
1091
return &v.state
1092
case 1:
1093
return &v.sizeCache
1094
case 2:
1095
return &v.unknownFields
1096
default:
1097
return nil
1098
}
1099
}
1100
}
1101
type x struct{}
1102
out := protoimpl.TypeBuilder{
1103
File: protoimpl.DescBuilder{
1104
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
1105
RawDescriptor: file_daemon_proto_rawDesc,
1106
NumEnums: 1,
1107
NumMessages: 13,
1108
NumExtensions: 0,
1109
NumServices: 1,
1110
},
1111
GoTypes: file_daemon_proto_goTypes,
1112
DependencyIndexes: file_daemon_proto_depIdxs,
1113
EnumInfos: file_daemon_proto_enumTypes,
1114
MessageInfos: file_daemon_proto_msgTypes,
1115
}.Build()
1116
File_daemon_proto = out.File
1117
file_daemon_proto_rawDesc = nil
1118
file_daemon_proto_goTypes = nil
1119
file_daemon_proto_depIdxs = nil
1120
}
1121
1122