Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
gitpod-io
GitHub Repository: gitpod-io/gitpod
Path: blob/main/components/content-service-api/go/initializer.pb.go
2498 views
1
// Copyright (c) 2023 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 (unknown)
9
// source: initializer.proto
10
11
package api
12
13
import (
14
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
15
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
16
reflect "reflect"
17
sync "sync"
18
)
19
20
const (
21
// Verify that this generated code is sufficiently up-to-date.
22
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
23
// Verify that runtime/protoimpl is sufficiently up-to-date.
24
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
25
)
26
27
// CloneTargetMode is the target state in which we want to leave a GitWorkspace
28
type CloneTargetMode int32
29
30
const (
31
// REMOTE_HEAD has the local WS point at the remote branch head
32
CloneTargetMode_REMOTE_HEAD CloneTargetMode = 0
33
// REMOTE_COMMIT has the local WS point at a specific commit
34
CloneTargetMode_REMOTE_COMMIT CloneTargetMode = 1
35
// REMOTE_BRANCH has the local WS point at a remote branch
36
CloneTargetMode_REMOTE_BRANCH CloneTargetMode = 2
37
// LOCAL_BRANCH creates a local branch in the workspace
38
CloneTargetMode_LOCAL_BRANCH CloneTargetMode = 3
39
)
40
41
// Enum value maps for CloneTargetMode.
42
var (
43
CloneTargetMode_name = map[int32]string{
44
0: "REMOTE_HEAD",
45
1: "REMOTE_COMMIT",
46
2: "REMOTE_BRANCH",
47
3: "LOCAL_BRANCH",
48
}
49
CloneTargetMode_value = map[string]int32{
50
"REMOTE_HEAD": 0,
51
"REMOTE_COMMIT": 1,
52
"REMOTE_BRANCH": 2,
53
"LOCAL_BRANCH": 3,
54
}
55
)
56
57
func (x CloneTargetMode) Enum() *CloneTargetMode {
58
p := new(CloneTargetMode)
59
*p = x
60
return p
61
}
62
63
func (x CloneTargetMode) String() string {
64
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
65
}
66
67
func (CloneTargetMode) Descriptor() protoreflect.EnumDescriptor {
68
return file_initializer_proto_enumTypes[0].Descriptor()
69
}
70
71
func (CloneTargetMode) Type() protoreflect.EnumType {
72
return &file_initializer_proto_enumTypes[0]
73
}
74
75
func (x CloneTargetMode) Number() protoreflect.EnumNumber {
76
return protoreflect.EnumNumber(x)
77
}
78
79
// Deprecated: Use CloneTargetMode.Descriptor instead.
80
func (CloneTargetMode) EnumDescriptor() ([]byte, []int) {
81
return file_initializer_proto_rawDescGZIP(), []int{0}
82
}
83
84
// GitAuthMethod is the means of authentication used during clone
85
type GitAuthMethod int32
86
87
const (
88
// NO_AUTH disables authentication during clone
89
GitAuthMethod_NO_AUTH GitAuthMethod = 0
90
// BASIC_AUTH uses HTTP basic auth during clone (fails if repo is not cloned through http)
91
GitAuthMethod_BASIC_AUTH GitAuthMethod = 1
92
// BASIC_AUTH_OTS uses HTTP basic auth during the clone with the secrets coming from the OTS URL.
93
// Fails if either the OTS download or the clone fail.
94
GitAuthMethod_BASIC_AUTH_OTS GitAuthMethod = 2
95
)
96
97
// Enum value maps for GitAuthMethod.
98
var (
99
GitAuthMethod_name = map[int32]string{
100
0: "NO_AUTH",
101
1: "BASIC_AUTH",
102
2: "BASIC_AUTH_OTS",
103
}
104
GitAuthMethod_value = map[string]int32{
105
"NO_AUTH": 0,
106
"BASIC_AUTH": 1,
107
"BASIC_AUTH_OTS": 2,
108
}
109
)
110
111
func (x GitAuthMethod) Enum() *GitAuthMethod {
112
p := new(GitAuthMethod)
113
*p = x
114
return p
115
}
116
117
func (x GitAuthMethod) String() string {
118
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
119
}
120
121
func (GitAuthMethod) Descriptor() protoreflect.EnumDescriptor {
122
return file_initializer_proto_enumTypes[1].Descriptor()
123
}
124
125
func (GitAuthMethod) Type() protoreflect.EnumType {
126
return &file_initializer_proto_enumTypes[1]
127
}
128
129
func (x GitAuthMethod) Number() protoreflect.EnumNumber {
130
return protoreflect.EnumNumber(x)
131
}
132
133
// Deprecated: Use GitAuthMethod.Descriptor instead.
134
func (GitAuthMethod) EnumDescriptor() ([]byte, []int) {
135
return file_initializer_proto_rawDescGZIP(), []int{1}
136
}
137
138
// WorkspaceInitializer specifies how a workspace is to be initialized
139
type WorkspaceInitializer struct {
140
state protoimpl.MessageState
141
sizeCache protoimpl.SizeCache
142
unknownFields protoimpl.UnknownFields
143
144
// Types that are assignable to Spec:
145
//
146
// *WorkspaceInitializer_Empty
147
// *WorkspaceInitializer_Git
148
// *WorkspaceInitializer_Snapshot
149
// *WorkspaceInitializer_Prebuild
150
// *WorkspaceInitializer_Composite
151
// *WorkspaceInitializer_Download
152
// *WorkspaceInitializer_Backup
153
Spec isWorkspaceInitializer_Spec `protobuf_oneof:"spec"`
154
}
155
156
func (x *WorkspaceInitializer) Reset() {
157
*x = WorkspaceInitializer{}
158
if protoimpl.UnsafeEnabled {
159
mi := &file_initializer_proto_msgTypes[0]
160
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
161
ms.StoreMessageInfo(mi)
162
}
163
}
164
165
func (x *WorkspaceInitializer) String() string {
166
return protoimpl.X.MessageStringOf(x)
167
}
168
169
func (*WorkspaceInitializer) ProtoMessage() {}
170
171
func (x *WorkspaceInitializer) ProtoReflect() protoreflect.Message {
172
mi := &file_initializer_proto_msgTypes[0]
173
if protoimpl.UnsafeEnabled && x != nil {
174
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
175
if ms.LoadMessageInfo() == nil {
176
ms.StoreMessageInfo(mi)
177
}
178
return ms
179
}
180
return mi.MessageOf(x)
181
}
182
183
// Deprecated: Use WorkspaceInitializer.ProtoReflect.Descriptor instead.
184
func (*WorkspaceInitializer) Descriptor() ([]byte, []int) {
185
return file_initializer_proto_rawDescGZIP(), []int{0}
186
}
187
188
func (m *WorkspaceInitializer) GetSpec() isWorkspaceInitializer_Spec {
189
if m != nil {
190
return m.Spec
191
}
192
return nil
193
}
194
195
func (x *WorkspaceInitializer) GetEmpty() *EmptyInitializer {
196
if x, ok := x.GetSpec().(*WorkspaceInitializer_Empty); ok {
197
return x.Empty
198
}
199
return nil
200
}
201
202
func (x *WorkspaceInitializer) GetGit() *GitInitializer {
203
if x, ok := x.GetSpec().(*WorkspaceInitializer_Git); ok {
204
return x.Git
205
}
206
return nil
207
}
208
209
func (x *WorkspaceInitializer) GetSnapshot() *SnapshotInitializer {
210
if x, ok := x.GetSpec().(*WorkspaceInitializer_Snapshot); ok {
211
return x.Snapshot
212
}
213
return nil
214
}
215
216
func (x *WorkspaceInitializer) GetPrebuild() *PrebuildInitializer {
217
if x, ok := x.GetSpec().(*WorkspaceInitializer_Prebuild); ok {
218
return x.Prebuild
219
}
220
return nil
221
}
222
223
func (x *WorkspaceInitializer) GetComposite() *CompositeInitializer {
224
if x, ok := x.GetSpec().(*WorkspaceInitializer_Composite); ok {
225
return x.Composite
226
}
227
return nil
228
}
229
230
func (x *WorkspaceInitializer) GetDownload() *FileDownloadInitializer {
231
if x, ok := x.GetSpec().(*WorkspaceInitializer_Download); ok {
232
return x.Download
233
}
234
return nil
235
}
236
237
func (x *WorkspaceInitializer) GetBackup() *FromBackupInitializer {
238
if x, ok := x.GetSpec().(*WorkspaceInitializer_Backup); ok {
239
return x.Backup
240
}
241
return nil
242
}
243
244
type isWorkspaceInitializer_Spec interface {
245
isWorkspaceInitializer_Spec()
246
}
247
248
type WorkspaceInitializer_Empty struct {
249
Empty *EmptyInitializer `protobuf:"bytes,1,opt,name=empty,proto3,oneof"`
250
}
251
252
type WorkspaceInitializer_Git struct {
253
Git *GitInitializer `protobuf:"bytes,2,opt,name=git,proto3,oneof"`
254
}
255
256
type WorkspaceInitializer_Snapshot struct {
257
Snapshot *SnapshotInitializer `protobuf:"bytes,3,opt,name=snapshot,proto3,oneof"`
258
}
259
260
type WorkspaceInitializer_Prebuild struct {
261
Prebuild *PrebuildInitializer `protobuf:"bytes,4,opt,name=prebuild,proto3,oneof"`
262
}
263
264
type WorkspaceInitializer_Composite struct {
265
Composite *CompositeInitializer `protobuf:"bytes,5,opt,name=composite,proto3,oneof"`
266
}
267
268
type WorkspaceInitializer_Download struct {
269
Download *FileDownloadInitializer `protobuf:"bytes,6,opt,name=download,proto3,oneof"`
270
}
271
272
type WorkspaceInitializer_Backup struct {
273
Backup *FromBackupInitializer `protobuf:"bytes,7,opt,name=backup,proto3,oneof"`
274
}
275
276
func (*WorkspaceInitializer_Empty) isWorkspaceInitializer_Spec() {}
277
278
func (*WorkspaceInitializer_Git) isWorkspaceInitializer_Spec() {}
279
280
func (*WorkspaceInitializer_Snapshot) isWorkspaceInitializer_Spec() {}
281
282
func (*WorkspaceInitializer_Prebuild) isWorkspaceInitializer_Spec() {}
283
284
func (*WorkspaceInitializer_Composite) isWorkspaceInitializer_Spec() {}
285
286
func (*WorkspaceInitializer_Download) isWorkspaceInitializer_Spec() {}
287
288
func (*WorkspaceInitializer_Backup) isWorkspaceInitializer_Spec() {}
289
290
// CompositeInitializer uses a collection of initializer to produce workspace content.
291
// All initializer are executed in the order they're provided.
292
type CompositeInitializer struct {
293
state protoimpl.MessageState
294
sizeCache protoimpl.SizeCache
295
unknownFields protoimpl.UnknownFields
296
297
Initializer []*WorkspaceInitializer `protobuf:"bytes,1,rep,name=initializer,proto3" json:"initializer,omitempty"`
298
}
299
300
func (x *CompositeInitializer) Reset() {
301
*x = CompositeInitializer{}
302
if protoimpl.UnsafeEnabled {
303
mi := &file_initializer_proto_msgTypes[1]
304
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
305
ms.StoreMessageInfo(mi)
306
}
307
}
308
309
func (x *CompositeInitializer) String() string {
310
return protoimpl.X.MessageStringOf(x)
311
}
312
313
func (*CompositeInitializer) ProtoMessage() {}
314
315
func (x *CompositeInitializer) ProtoReflect() protoreflect.Message {
316
mi := &file_initializer_proto_msgTypes[1]
317
if protoimpl.UnsafeEnabled && x != nil {
318
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
319
if ms.LoadMessageInfo() == nil {
320
ms.StoreMessageInfo(mi)
321
}
322
return ms
323
}
324
return mi.MessageOf(x)
325
}
326
327
// Deprecated: Use CompositeInitializer.ProtoReflect.Descriptor instead.
328
func (*CompositeInitializer) Descriptor() ([]byte, []int) {
329
return file_initializer_proto_rawDescGZIP(), []int{1}
330
}
331
332
func (x *CompositeInitializer) GetInitializer() []*WorkspaceInitializer {
333
if x != nil {
334
return x.Initializer
335
}
336
return nil
337
}
338
339
// FileDownloadInitializer downloads files and uses them as workspace content.
340
type FileDownloadInitializer struct {
341
state protoimpl.MessageState
342
sizeCache protoimpl.SizeCache
343
unknownFields protoimpl.UnknownFields
344
345
Files []*FileDownloadInitializer_FileInfo `protobuf:"bytes,1,rep,name=files,proto3" json:"files,omitempty"`
346
TargetLocation string `protobuf:"bytes,2,opt,name=target_location,json=targetLocation,proto3" json:"target_location,omitempty"`
347
}
348
349
func (x *FileDownloadInitializer) Reset() {
350
*x = FileDownloadInitializer{}
351
if protoimpl.UnsafeEnabled {
352
mi := &file_initializer_proto_msgTypes[2]
353
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
354
ms.StoreMessageInfo(mi)
355
}
356
}
357
358
func (x *FileDownloadInitializer) String() string {
359
return protoimpl.X.MessageStringOf(x)
360
}
361
362
func (*FileDownloadInitializer) ProtoMessage() {}
363
364
func (x *FileDownloadInitializer) ProtoReflect() protoreflect.Message {
365
mi := &file_initializer_proto_msgTypes[2]
366
if protoimpl.UnsafeEnabled && x != nil {
367
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
368
if ms.LoadMessageInfo() == nil {
369
ms.StoreMessageInfo(mi)
370
}
371
return ms
372
}
373
return mi.MessageOf(x)
374
}
375
376
// Deprecated: Use FileDownloadInitializer.ProtoReflect.Descriptor instead.
377
func (*FileDownloadInitializer) Descriptor() ([]byte, []int) {
378
return file_initializer_proto_rawDescGZIP(), []int{2}
379
}
380
381
func (x *FileDownloadInitializer) GetFiles() []*FileDownloadInitializer_FileInfo {
382
if x != nil {
383
return x.Files
384
}
385
return nil
386
}
387
388
func (x *FileDownloadInitializer) GetTargetLocation() string {
389
if x != nil {
390
return x.TargetLocation
391
}
392
return ""
393
}
394
395
type EmptyInitializer struct {
396
state protoimpl.MessageState
397
sizeCache protoimpl.SizeCache
398
unknownFields protoimpl.UnknownFields
399
}
400
401
func (x *EmptyInitializer) Reset() {
402
*x = EmptyInitializer{}
403
if protoimpl.UnsafeEnabled {
404
mi := &file_initializer_proto_msgTypes[3]
405
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
406
ms.StoreMessageInfo(mi)
407
}
408
}
409
410
func (x *EmptyInitializer) String() string {
411
return protoimpl.X.MessageStringOf(x)
412
}
413
414
func (*EmptyInitializer) ProtoMessage() {}
415
416
func (x *EmptyInitializer) ProtoReflect() protoreflect.Message {
417
mi := &file_initializer_proto_msgTypes[3]
418
if protoimpl.UnsafeEnabled && x != nil {
419
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
420
if ms.LoadMessageInfo() == nil {
421
ms.StoreMessageInfo(mi)
422
}
423
return ms
424
}
425
return mi.MessageOf(x)
426
}
427
428
// Deprecated: Use EmptyInitializer.ProtoReflect.Descriptor instead.
429
func (*EmptyInitializer) Descriptor() ([]byte, []int) {
430
return file_initializer_proto_rawDescGZIP(), []int{3}
431
}
432
433
type GitInitializer struct {
434
state protoimpl.MessageState
435
sizeCache protoimpl.SizeCache
436
unknownFields protoimpl.UnknownFields
437
438
// remote_uri is the Git remote origin
439
RemoteUri string `protobuf:"bytes,1,opt,name=remote_uri,json=remoteUri,proto3" json:"remote_uri,omitempty"`
440
// upstream_Remote_uri is the fork upstream of a repository
441
Upstream_RemoteUri string `protobuf:"bytes,2,opt,name=upstream_Remote_uri,json=upstreamRemoteUri,proto3" json:"upstream_Remote_uri,omitempty"`
442
// the target mode determines what gets checked out
443
TargetMode CloneTargetMode `protobuf:"varint,3,opt,name=target_mode,json=targetMode,proto3,enum=contentservice.CloneTargetMode" json:"target_mode,omitempty"`
444
// the value for the clone target mode - use depends on the target mode
445
CloneTaget string `protobuf:"bytes,4,opt,name=clone_taget,json=cloneTaget,proto3" json:"clone_taget,omitempty"`
446
// a path relative to the workspace root in which the code will be checked out to
447
CheckoutLocation string `protobuf:"bytes,5,opt,name=checkout_location,json=checkoutLocation,proto3" json:"checkout_location,omitempty"`
448
// config specifies the Git configuration for this workspace
449
Config *GitConfig `protobuf:"bytes,6,opt,name=config,proto3" json:"config,omitempty"`
450
// full_clone determines if the entire repository should be cloned, instead of with `--depth=1`
451
FullClone bool `protobuf:"varint,7,opt,name=full_clone,json=fullClone,proto3" json:"full_clone,omitempty"`
452
}
453
454
func (x *GitInitializer) Reset() {
455
*x = GitInitializer{}
456
if protoimpl.UnsafeEnabled {
457
mi := &file_initializer_proto_msgTypes[4]
458
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
459
ms.StoreMessageInfo(mi)
460
}
461
}
462
463
func (x *GitInitializer) String() string {
464
return protoimpl.X.MessageStringOf(x)
465
}
466
467
func (*GitInitializer) ProtoMessage() {}
468
469
func (x *GitInitializer) ProtoReflect() protoreflect.Message {
470
mi := &file_initializer_proto_msgTypes[4]
471
if protoimpl.UnsafeEnabled && x != nil {
472
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
473
if ms.LoadMessageInfo() == nil {
474
ms.StoreMessageInfo(mi)
475
}
476
return ms
477
}
478
return mi.MessageOf(x)
479
}
480
481
// Deprecated: Use GitInitializer.ProtoReflect.Descriptor instead.
482
func (*GitInitializer) Descriptor() ([]byte, []int) {
483
return file_initializer_proto_rawDescGZIP(), []int{4}
484
}
485
486
func (x *GitInitializer) GetRemoteUri() string {
487
if x != nil {
488
return x.RemoteUri
489
}
490
return ""
491
}
492
493
func (x *GitInitializer) GetUpstream_RemoteUri() string {
494
if x != nil {
495
return x.Upstream_RemoteUri
496
}
497
return ""
498
}
499
500
func (x *GitInitializer) GetTargetMode() CloneTargetMode {
501
if x != nil {
502
return x.TargetMode
503
}
504
return CloneTargetMode_REMOTE_HEAD
505
}
506
507
func (x *GitInitializer) GetCloneTaget() string {
508
if x != nil {
509
return x.CloneTaget
510
}
511
return ""
512
}
513
514
func (x *GitInitializer) GetCheckoutLocation() string {
515
if x != nil {
516
return x.CheckoutLocation
517
}
518
return ""
519
}
520
521
func (x *GitInitializer) GetConfig() *GitConfig {
522
if x != nil {
523
return x.Config
524
}
525
return nil
526
}
527
528
func (x *GitInitializer) GetFullClone() bool {
529
if x != nil {
530
return x.FullClone
531
}
532
return false
533
}
534
535
type GitConfig struct {
536
state protoimpl.MessageState
537
sizeCache protoimpl.SizeCache
538
unknownFields protoimpl.UnknownFields
539
540
// custom config values to be set on clone provided through `.gitpod.yml`
541
CustomConfig map[string]string `protobuf:"bytes,1,rep,name=custom_config,json=customConfig,proto3" json:"custom_config,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
542
// authentication method
543
Authentication GitAuthMethod `protobuf:"varint,2,opt,name=authentication,proto3,enum=contentservice.GitAuthMethod" json:"authentication,omitempty"`
544
// auth_user is the username used to authenticate the clone
545
AuthUser string `protobuf:"bytes,3,opt,name=auth_user,json=authUser,proto3" json:"auth_user,omitempty"`
546
// auth_password is the password used to authenticate the clone (can also be an API token)
547
AuthPassword string `protobuf:"bytes,4,opt,name=auth_password,json=authPassword,proto3" json:"auth_password,omitempty"`
548
// auth_ots is a URL where one can download the authentication secret (<username>:<password>)
549
// using a GET request.
550
AuthOts string `protobuf:"bytes,5,opt,name=auth_ots,json=authOts,proto3" json:"auth_ots,omitempty"`
551
}
552
553
func (x *GitConfig) Reset() {
554
*x = GitConfig{}
555
if protoimpl.UnsafeEnabled {
556
mi := &file_initializer_proto_msgTypes[5]
557
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
558
ms.StoreMessageInfo(mi)
559
}
560
}
561
562
func (x *GitConfig) String() string {
563
return protoimpl.X.MessageStringOf(x)
564
}
565
566
func (*GitConfig) ProtoMessage() {}
567
568
func (x *GitConfig) ProtoReflect() protoreflect.Message {
569
mi := &file_initializer_proto_msgTypes[5]
570
if protoimpl.UnsafeEnabled && x != nil {
571
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
572
if ms.LoadMessageInfo() == nil {
573
ms.StoreMessageInfo(mi)
574
}
575
return ms
576
}
577
return mi.MessageOf(x)
578
}
579
580
// Deprecated: Use GitConfig.ProtoReflect.Descriptor instead.
581
func (*GitConfig) Descriptor() ([]byte, []int) {
582
return file_initializer_proto_rawDescGZIP(), []int{5}
583
}
584
585
func (x *GitConfig) GetCustomConfig() map[string]string {
586
if x != nil {
587
return x.CustomConfig
588
}
589
return nil
590
}
591
592
func (x *GitConfig) GetAuthentication() GitAuthMethod {
593
if x != nil {
594
return x.Authentication
595
}
596
return GitAuthMethod_NO_AUTH
597
}
598
599
func (x *GitConfig) GetAuthUser() string {
600
if x != nil {
601
return x.AuthUser
602
}
603
return ""
604
}
605
606
func (x *GitConfig) GetAuthPassword() string {
607
if x != nil {
608
return x.AuthPassword
609
}
610
return ""
611
}
612
613
func (x *GitConfig) GetAuthOts() string {
614
if x != nil {
615
return x.AuthOts
616
}
617
return ""
618
}
619
620
type SnapshotInitializer struct {
621
state protoimpl.MessageState
622
sizeCache protoimpl.SizeCache
623
unknownFields protoimpl.UnknownFields
624
625
// name of the snapshot to restore
626
Snapshot string `protobuf:"bytes,1,opt,name=snapshot,proto3" json:"snapshot,omitempty"`
627
// if snapshot string is volume snapshot and not GCS url
628
FromVolumeSnapshot bool `protobuf:"varint,2,opt,name=from_volume_snapshot,json=fromVolumeSnapshot,proto3" json:"from_volume_snapshot,omitempty"`
629
}
630
631
func (x *SnapshotInitializer) Reset() {
632
*x = SnapshotInitializer{}
633
if protoimpl.UnsafeEnabled {
634
mi := &file_initializer_proto_msgTypes[6]
635
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
636
ms.StoreMessageInfo(mi)
637
}
638
}
639
640
func (x *SnapshotInitializer) String() string {
641
return protoimpl.X.MessageStringOf(x)
642
}
643
644
func (*SnapshotInitializer) ProtoMessage() {}
645
646
func (x *SnapshotInitializer) ProtoReflect() protoreflect.Message {
647
mi := &file_initializer_proto_msgTypes[6]
648
if protoimpl.UnsafeEnabled && x != nil {
649
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
650
if ms.LoadMessageInfo() == nil {
651
ms.StoreMessageInfo(mi)
652
}
653
return ms
654
}
655
return mi.MessageOf(x)
656
}
657
658
// Deprecated: Use SnapshotInitializer.ProtoReflect.Descriptor instead.
659
func (*SnapshotInitializer) Descriptor() ([]byte, []int) {
660
return file_initializer_proto_rawDescGZIP(), []int{6}
661
}
662
663
func (x *SnapshotInitializer) GetSnapshot() string {
664
if x != nil {
665
return x.Snapshot
666
}
667
return ""
668
}
669
670
func (x *SnapshotInitializer) GetFromVolumeSnapshot() bool {
671
if x != nil {
672
return x.FromVolumeSnapshot
673
}
674
return false
675
}
676
677
// A prebuild initializer combines snapshots with Git: first we try the snapshot, then apply the Git clone target.
678
// If restoring the snapshot fails, we fall back to a regular Git initializer, which might be composite git initializer for multi-repo projects.
679
type PrebuildInitializer struct {
680
state protoimpl.MessageState
681
sizeCache protoimpl.SizeCache
682
unknownFields protoimpl.UnknownFields
683
684
Prebuild *SnapshotInitializer `protobuf:"bytes,1,opt,name=prebuild,proto3" json:"prebuild,omitempty"`
685
Git []*GitInitializer `protobuf:"bytes,2,rep,name=git,proto3" json:"git,omitempty"`
686
}
687
688
func (x *PrebuildInitializer) Reset() {
689
*x = PrebuildInitializer{}
690
if protoimpl.UnsafeEnabled {
691
mi := &file_initializer_proto_msgTypes[7]
692
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
693
ms.StoreMessageInfo(mi)
694
}
695
}
696
697
func (x *PrebuildInitializer) String() string {
698
return protoimpl.X.MessageStringOf(x)
699
}
700
701
func (*PrebuildInitializer) ProtoMessage() {}
702
703
func (x *PrebuildInitializer) ProtoReflect() protoreflect.Message {
704
mi := &file_initializer_proto_msgTypes[7]
705
if protoimpl.UnsafeEnabled && x != nil {
706
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
707
if ms.LoadMessageInfo() == nil {
708
ms.StoreMessageInfo(mi)
709
}
710
return ms
711
}
712
return mi.MessageOf(x)
713
}
714
715
// Deprecated: Use PrebuildInitializer.ProtoReflect.Descriptor instead.
716
func (*PrebuildInitializer) Descriptor() ([]byte, []int) {
717
return file_initializer_proto_rawDescGZIP(), []int{7}
718
}
719
720
func (x *PrebuildInitializer) GetPrebuild() *SnapshotInitializer {
721
if x != nil {
722
return x.Prebuild
723
}
724
return nil
725
}
726
727
func (x *PrebuildInitializer) GetGit() []*GitInitializer {
728
if x != nil {
729
return x.Git
730
}
731
return nil
732
}
733
734
// FromBackupInitializer initializes content from a previously made backup
735
type FromBackupInitializer struct {
736
state protoimpl.MessageState
737
sizeCache protoimpl.SizeCache
738
unknownFields protoimpl.UnknownFields
739
740
CheckoutLocation string `protobuf:"bytes,1,opt,name=checkout_location,json=checkoutLocation,proto3" json:"checkout_location,omitempty"`
741
FromVolumeSnapshot bool `protobuf:"varint,2,opt,name=from_volume_snapshot,json=fromVolumeSnapshot,proto3" json:"from_volume_snapshot,omitempty"`
742
}
743
744
func (x *FromBackupInitializer) Reset() {
745
*x = FromBackupInitializer{}
746
if protoimpl.UnsafeEnabled {
747
mi := &file_initializer_proto_msgTypes[8]
748
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
749
ms.StoreMessageInfo(mi)
750
}
751
}
752
753
func (x *FromBackupInitializer) String() string {
754
return protoimpl.X.MessageStringOf(x)
755
}
756
757
func (*FromBackupInitializer) ProtoMessage() {}
758
759
func (x *FromBackupInitializer) ProtoReflect() protoreflect.Message {
760
mi := &file_initializer_proto_msgTypes[8]
761
if protoimpl.UnsafeEnabled && x != nil {
762
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
763
if ms.LoadMessageInfo() == nil {
764
ms.StoreMessageInfo(mi)
765
}
766
return ms
767
}
768
return mi.MessageOf(x)
769
}
770
771
// Deprecated: Use FromBackupInitializer.ProtoReflect.Descriptor instead.
772
func (*FromBackupInitializer) Descriptor() ([]byte, []int) {
773
return file_initializer_proto_rawDescGZIP(), []int{8}
774
}
775
776
func (x *FromBackupInitializer) GetCheckoutLocation() string {
777
if x != nil {
778
return x.CheckoutLocation
779
}
780
return ""
781
}
782
783
func (x *FromBackupInitializer) GetFromVolumeSnapshot() bool {
784
if x != nil {
785
return x.FromVolumeSnapshot
786
}
787
return false
788
}
789
790
// GitStatus describes the current Git working copy status, akin to a combination of "git status" and "git branch"
791
type GitStatus struct {
792
state protoimpl.MessageState
793
sizeCache protoimpl.SizeCache
794
unknownFields protoimpl.UnknownFields
795
796
// branch is branch we're currently on
797
Branch string `protobuf:"bytes,1,opt,name=branch,proto3" json:"branch,omitempty"`
798
// latest_commit is the most recent commit on the current branch
799
LatestCommit string `protobuf:"bytes,2,opt,name=latest_commit,json=latestCommit,proto3" json:"latest_commit,omitempty"`
800
// uncommited_files is the number of uncommitted files, possibly truncated
801
UncommitedFiles []string `protobuf:"bytes,3,rep,name=uncommited_files,json=uncommitedFiles,proto3" json:"uncommited_files,omitempty"`
802
// the total number of uncommited files
803
TotalUncommitedFiles int64 `protobuf:"varint,6,opt,name=total_uncommited_files,json=totalUncommitedFiles,proto3" json:"total_uncommited_files,omitempty"`
804
// untracked_files is the number of untracked files in the workspace, possibly truncated
805
UntrackedFiles []string `protobuf:"bytes,4,rep,name=untracked_files,json=untrackedFiles,proto3" json:"untracked_files,omitempty"`
806
// the total number of untracked files
807
TotalUntrackedFiles int64 `protobuf:"varint,7,opt,name=total_untracked_files,json=totalUntrackedFiles,proto3" json:"total_untracked_files,omitempty"`
808
// unpushed_commits is the number of unpushed changes in the workspace, possibly truncated
809
UnpushedCommits []string `protobuf:"bytes,5,rep,name=unpushed_commits,json=unpushedCommits,proto3" json:"unpushed_commits,omitempty"`
810
// the total number of unpushed changes
811
TotalUnpushedCommits int64 `protobuf:"varint,8,opt,name=total_unpushed_commits,json=totalUnpushedCommits,proto3" json:"total_unpushed_commits,omitempty"`
812
}
813
814
func (x *GitStatus) Reset() {
815
*x = GitStatus{}
816
if protoimpl.UnsafeEnabled {
817
mi := &file_initializer_proto_msgTypes[9]
818
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
819
ms.StoreMessageInfo(mi)
820
}
821
}
822
823
func (x *GitStatus) String() string {
824
return protoimpl.X.MessageStringOf(x)
825
}
826
827
func (*GitStatus) ProtoMessage() {}
828
829
func (x *GitStatus) ProtoReflect() protoreflect.Message {
830
mi := &file_initializer_proto_msgTypes[9]
831
if protoimpl.UnsafeEnabled && x != nil {
832
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
833
if ms.LoadMessageInfo() == nil {
834
ms.StoreMessageInfo(mi)
835
}
836
return ms
837
}
838
return mi.MessageOf(x)
839
}
840
841
// Deprecated: Use GitStatus.ProtoReflect.Descriptor instead.
842
func (*GitStatus) Descriptor() ([]byte, []int) {
843
return file_initializer_proto_rawDescGZIP(), []int{9}
844
}
845
846
func (x *GitStatus) GetBranch() string {
847
if x != nil {
848
return x.Branch
849
}
850
return ""
851
}
852
853
func (x *GitStatus) GetLatestCommit() string {
854
if x != nil {
855
return x.LatestCommit
856
}
857
return ""
858
}
859
860
func (x *GitStatus) GetUncommitedFiles() []string {
861
if x != nil {
862
return x.UncommitedFiles
863
}
864
return nil
865
}
866
867
func (x *GitStatus) GetTotalUncommitedFiles() int64 {
868
if x != nil {
869
return x.TotalUncommitedFiles
870
}
871
return 0
872
}
873
874
func (x *GitStatus) GetUntrackedFiles() []string {
875
if x != nil {
876
return x.UntrackedFiles
877
}
878
return nil
879
}
880
881
func (x *GitStatus) GetTotalUntrackedFiles() int64 {
882
if x != nil {
883
return x.TotalUntrackedFiles
884
}
885
return 0
886
}
887
888
func (x *GitStatus) GetUnpushedCommits() []string {
889
if x != nil {
890
return x.UnpushedCommits
891
}
892
return nil
893
}
894
895
func (x *GitStatus) GetTotalUnpushedCommits() int64 {
896
if x != nil {
897
return x.TotalUnpushedCommits
898
}
899
return 0
900
}
901
902
type FileDownloadInitializer_FileInfo struct {
903
state protoimpl.MessageState
904
sizeCache protoimpl.SizeCache
905
unknownFields protoimpl.UnknownFields
906
907
Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
908
// file_path is relative to the target_location, e.g. if target_location is in `/workspace/myrepo`
909
// a file_path of `foobar/file` would produce a file in `/workspace/myrepo/foobar/file`.
910
// file_path must include the filename. The FileDownloadInitializer will create any parent directories
911
// necessary to place the file.
912
FilePath string `protobuf:"bytes,2,opt,name=file_path,json=filePath,proto3" json:"file_path,omitempty"`
913
// digest is a hash of the file content in the OCI digest format (see https://github.com/opencontainers/image-spec/blob/master/descriptor.md#digests).
914
// This information is used to compute subsequent
915
// content versions, and to validate the file content was downloaded correctly.
916
Digest string `protobuf:"bytes,3,opt,name=digest,proto3" json:"digest,omitempty"`
917
}
918
919
func (x *FileDownloadInitializer_FileInfo) Reset() {
920
*x = FileDownloadInitializer_FileInfo{}
921
if protoimpl.UnsafeEnabled {
922
mi := &file_initializer_proto_msgTypes[10]
923
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
924
ms.StoreMessageInfo(mi)
925
}
926
}
927
928
func (x *FileDownloadInitializer_FileInfo) String() string {
929
return protoimpl.X.MessageStringOf(x)
930
}
931
932
func (*FileDownloadInitializer_FileInfo) ProtoMessage() {}
933
934
func (x *FileDownloadInitializer_FileInfo) ProtoReflect() protoreflect.Message {
935
mi := &file_initializer_proto_msgTypes[10]
936
if protoimpl.UnsafeEnabled && x != nil {
937
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
938
if ms.LoadMessageInfo() == nil {
939
ms.StoreMessageInfo(mi)
940
}
941
return ms
942
}
943
return mi.MessageOf(x)
944
}
945
946
// Deprecated: Use FileDownloadInitializer_FileInfo.ProtoReflect.Descriptor instead.
947
func (*FileDownloadInitializer_FileInfo) Descriptor() ([]byte, []int) {
948
return file_initializer_proto_rawDescGZIP(), []int{2, 0}
949
}
950
951
func (x *FileDownloadInitializer_FileInfo) GetUrl() string {
952
if x != nil {
953
return x.Url
954
}
955
return ""
956
}
957
958
func (x *FileDownloadInitializer_FileInfo) GetFilePath() string {
959
if x != nil {
960
return x.FilePath
961
}
962
return ""
963
}
964
965
func (x *FileDownloadInitializer_FileInfo) GetDigest() string {
966
if x != nil {
967
return x.Digest
968
}
969
return ""
970
}
971
972
var File_initializer_proto protoreflect.FileDescriptor
973
974
var file_initializer_proto_rawDesc = []byte{
975
0x0a, 0x11, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x72, 0x2e, 0x70, 0x72,
976
0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x65, 0x72, 0x76,
977
0x69, 0x63, 0x65, 0x22, 0xe0, 0x03, 0x0a, 0x14, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63,
978
0x65, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x72, 0x12, 0x38, 0x0a, 0x05,
979
0x65, 0x6d, 0x70, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x63, 0x6f,
980
0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x45, 0x6d, 0x70,
981
0x74, 0x79, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x72, 0x48, 0x00, 0x52,
982
0x05, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x32, 0x0a, 0x03, 0x67, 0x69, 0x74, 0x18, 0x02, 0x20,
983
0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x65, 0x72,
984
0x76, 0x69, 0x63, 0x65, 0x2e, 0x47, 0x69, 0x74, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x69,
985
0x7a, 0x65, 0x72, 0x48, 0x00, 0x52, 0x03, 0x67, 0x69, 0x74, 0x12, 0x41, 0x0a, 0x08, 0x73, 0x6e,
986
0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x63,
987
0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x53, 0x6e,
988
0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x65,
989
0x72, 0x48, 0x00, 0x52, 0x08, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x12, 0x41, 0x0a,
990
0x08, 0x70, 0x72, 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32,
991
0x23, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
992
0x2e, 0x50, 0x72, 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c,
993
0x69, 0x7a, 0x65, 0x72, 0x48, 0x00, 0x52, 0x08, 0x70, 0x72, 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64,
994
0x12, 0x44, 0x0a, 0x09, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x65, 0x18, 0x05, 0x20,
995
0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x65, 0x72,
996
0x76, 0x69, 0x63, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x65, 0x49, 0x6e,
997
0x69, 0x74, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x72, 0x48, 0x00, 0x52, 0x09, 0x63, 0x6f, 0x6d,
998
0x70, 0x6f, 0x73, 0x69, 0x74, 0x65, 0x12, 0x45, 0x0a, 0x08, 0x64, 0x6f, 0x77, 0x6e, 0x6c, 0x6f,
999
0x61, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x65,
1000
0x6e, 0x74, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x44, 0x6f,
1001
0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x65,
1002
0x72, 0x48, 0x00, 0x52, 0x08, 0x64, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x3f, 0x0a,
1003
0x06, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e,
1004
0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x46,
1005
0x72, 0x6f, 0x6d, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c,
1006
0x69, 0x7a, 0x65, 0x72, 0x48, 0x00, 0x52, 0x06, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x42, 0x06,
1007
0x0a, 0x04, 0x73, 0x70, 0x65, 0x63, 0x22, 0x5e, 0x0a, 0x14, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x73,
1008
0x69, 0x74, 0x65, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x72, 0x12, 0x46,
1009
0x0a, 0x0b, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x72, 0x18, 0x01, 0x20,
1010
0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x65, 0x72,
1011
0x76, 0x69, 0x63, 0x65, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x49, 0x6e,
1012
0x69, 0x74, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x72, 0x52, 0x0b, 0x69, 0x6e, 0x69, 0x74, 0x69,
1013
0x61, 0x6c, 0x69, 0x7a, 0x65, 0x72, 0x22, 0xdd, 0x01, 0x0a, 0x17, 0x46, 0x69, 0x6c, 0x65, 0x44,
1014
0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x69, 0x7a,
1015
0x65, 0x72, 0x12, 0x46, 0x0a, 0x05, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28,
1016
0x0b, 0x32, 0x30, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x65, 0x72, 0x76, 0x69,
1017
0x63, 0x65, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x49,
1018
0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x72, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x49,
1019
0x6e, 0x66, 0x6f, 0x52, 0x05, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x12, 0x27, 0x0a, 0x0f, 0x74, 0x61,
1020
0x72, 0x67, 0x65, 0x74, 0x5f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20,
1021
0x01, 0x28, 0x09, 0x52, 0x0e, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x4c, 0x6f, 0x63, 0x61, 0x74,
1022
0x69, 0x6f, 0x6e, 0x1a, 0x51, 0x0a, 0x08, 0x46, 0x69, 0x6c, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12,
1023
0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72,
1024
0x6c, 0x12, 0x1b, 0x0a, 0x09, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x02,
1025
0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x50, 0x61, 0x74, 0x68, 0x12, 0x16,
1026
0x0a, 0x06, 0x64, 0x69, 0x67, 0x65, 0x73, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06,
1027
0x64, 0x69, 0x67, 0x65, 0x73, 0x74, 0x22, 0x12, 0x0a, 0x10, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x49,
1028
0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x72, 0x22, 0xc1, 0x02, 0x0a, 0x0e, 0x47,
1029
0x69, 0x74, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x72, 0x12, 0x1d, 0x0a,
1030
0x0a, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28,
1031
0x09, 0x52, 0x09, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x55, 0x72, 0x69, 0x12, 0x2e, 0x0a, 0x13,
1032
0x75, 0x70, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x5f, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x5f,
1033
0x75, 0x72, 0x69, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x75, 0x70, 0x73, 0x74, 0x72,
1034
0x65, 0x61, 0x6d, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x55, 0x72, 0x69, 0x12, 0x40, 0x0a, 0x0b,
1035
0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28,
1036
0x0e, 0x32, 0x1f, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x65, 0x72, 0x76, 0x69,
1037
0x63, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x6e, 0x65, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x4d, 0x6f,
1038
0x64, 0x65, 0x52, 0x0a, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x1f,
1039
0x0a, 0x0b, 0x63, 0x6c, 0x6f, 0x6e, 0x65, 0x5f, 0x74, 0x61, 0x67, 0x65, 0x74, 0x18, 0x04, 0x20,
1040
0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6c, 0x6f, 0x6e, 0x65, 0x54, 0x61, 0x67, 0x65, 0x74, 0x12,
1041
0x2b, 0x0a, 0x11, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x6f, 0x75, 0x74, 0x5f, 0x6c, 0x6f, 0x63, 0x61,
1042
0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x63, 0x68, 0x65, 0x63,
1043
0x6b, 0x6f, 0x75, 0x74, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x31, 0x0a, 0x06,
1044
0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63,
1045
0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x47, 0x69,
1046
0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12,
1047
0x1d, 0x0a, 0x0a, 0x66, 0x75, 0x6c, 0x6c, 0x5f, 0x63, 0x6c, 0x6f, 0x6e, 0x65, 0x18, 0x07, 0x20,
1048
0x01, 0x28, 0x08, 0x52, 0x09, 0x66, 0x75, 0x6c, 0x6c, 0x43, 0x6c, 0x6f, 0x6e, 0x65, 0x22, 0xc2,
1049
0x02, 0x0a, 0x09, 0x47, 0x69, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x50, 0x0a, 0x0d,
1050
0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01, 0x20,
1051
0x03, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x65, 0x72,
1052
0x76, 0x69, 0x63, 0x65, 0x2e, 0x47, 0x69, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x43,
1053
0x75, 0x73, 0x74, 0x6f, 0x6d, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x45, 0x6e, 0x74, 0x72, 0x79,
1054
0x52, 0x0c, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x45,
1055
0x0a, 0x0e, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e,
1056
0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1d, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74,
1057
0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x47, 0x69, 0x74, 0x41, 0x75, 0x74, 0x68, 0x4d,
1058
0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x0e, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63,
1059
0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x75, 0x73,
1060
0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x61, 0x75, 0x74, 0x68, 0x55, 0x73,
1061
0x65, 0x72, 0x12, 0x23, 0x0a, 0x0d, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x70, 0x61, 0x73, 0x73, 0x77,
1062
0x6f, 0x72, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x61, 0x75, 0x74, 0x68, 0x50,
1063
0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x61, 0x75, 0x74, 0x68, 0x5f,
1064
0x6f, 0x74, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x75, 0x74, 0x68, 0x4f,
1065
0x74, 0x73, 0x1a, 0x3f, 0x0a, 0x11, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x43, 0x6f, 0x6e, 0x66,
1066
0x69, 0x67, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01,
1067
0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c,
1068
0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a,
1069
0x02, 0x38, 0x01, 0x22, 0x63, 0x0a, 0x13, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x49,
1070
0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x6e,
1071
0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x6e,
1072
0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x12, 0x30, 0x0a, 0x14, 0x66, 0x72, 0x6f, 0x6d, 0x5f, 0x76,
1073
0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x5f, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x18, 0x02,
1074
0x20, 0x01, 0x28, 0x08, 0x52, 0x12, 0x66, 0x72, 0x6f, 0x6d, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65,
1075
0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x22, 0x88, 0x01, 0x0a, 0x13, 0x50, 0x72, 0x65,
1076
0x62, 0x75, 0x69, 0x6c, 0x64, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x72,
1077
0x12, 0x3f, 0x0a, 0x08, 0x70, 0x72, 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x18, 0x01, 0x20, 0x01,
1078
0x28, 0x0b, 0x32, 0x23, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x65, 0x72, 0x76,
1079
0x69, 0x63, 0x65, 0x2e, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x49, 0x6e, 0x69, 0x74,
1080
0x69, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x72, 0x52, 0x08, 0x70, 0x72, 0x65, 0x62, 0x75, 0x69, 0x6c,
1081
0x64, 0x12, 0x30, 0x0a, 0x03, 0x67, 0x69, 0x74, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e,
1082
0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e,
1083
0x47, 0x69, 0x74, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x72, 0x52, 0x03,
1084
0x67, 0x69, 0x74, 0x22, 0x76, 0x0a, 0x15, 0x46, 0x72, 0x6f, 0x6d, 0x42, 0x61, 0x63, 0x6b, 0x75,
1085
0x70, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x72, 0x12, 0x2b, 0x0a, 0x11,
1086
0x63, 0x68, 0x65, 0x63, 0x6b, 0x6f, 0x75, 0x74, 0x5f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f,
1087
0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x6f, 0x75,
1088
0x74, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x30, 0x0a, 0x14, 0x66, 0x72, 0x6f,
1089
0x6d, 0x5f, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x5f, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f,
1090
0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x12, 0x66, 0x72, 0x6f, 0x6d, 0x56, 0x6f, 0x6c,
1091
0x75, 0x6d, 0x65, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x22, 0xe7, 0x02, 0x0a, 0x09,
1092
0x47, 0x69, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x62, 0x72, 0x61,
1093
0x6e, 0x63, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x62, 0x72, 0x61, 0x6e, 0x63,
1094
0x68, 0x12, 0x23, 0x0a, 0x0d, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x63, 0x6f, 0x6d, 0x6d,
1095
0x69, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74,
1096
0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x12, 0x29, 0x0a, 0x10, 0x75, 0x6e, 0x63, 0x6f, 0x6d, 0x6d,
1097
0x69, 0x74, 0x65, 0x64, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09,
1098
0x52, 0x0f, 0x75, 0x6e, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x65, 0x64, 0x46, 0x69, 0x6c, 0x65,
1099
0x73, 0x12, 0x34, 0x0a, 0x16, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x75, 0x6e, 0x63, 0x6f, 0x6d,
1100
0x6d, 0x69, 0x74, 0x65, 0x64, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28,
1101
0x03, 0x52, 0x14, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x55, 0x6e, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74,
1102
0x65, 0x64, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x12, 0x27, 0x0a, 0x0f, 0x75, 0x6e, 0x74, 0x72, 0x61,
1103
0x63, 0x6b, 0x65, 0x64, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09,
1104
0x52, 0x0e, 0x75, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x6b, 0x65, 0x64, 0x46, 0x69, 0x6c, 0x65, 0x73,
1105
0x12, 0x32, 0x0a, 0x15, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x75, 0x6e, 0x74, 0x72, 0x61, 0x63,
1106
0x6b, 0x65, 0x64, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52,
1107
0x13, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x55, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x6b, 0x65, 0x64, 0x46,
1108
0x69, 0x6c, 0x65, 0x73, 0x12, 0x29, 0x0a, 0x10, 0x75, 0x6e, 0x70, 0x75, 0x73, 0x68, 0x65, 0x64,
1109
0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0f,
1110
0x75, 0x6e, 0x70, 0x75, 0x73, 0x68, 0x65, 0x64, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x12,
1111
0x34, 0x0a, 0x16, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x75, 0x6e, 0x70, 0x75, 0x73, 0x68, 0x65,
1112
0x64, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52,
1113
0x14, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x55, 0x6e, 0x70, 0x75, 0x73, 0x68, 0x65, 0x64, 0x43, 0x6f,
1114
0x6d, 0x6d, 0x69, 0x74, 0x73, 0x2a, 0x5a, 0x0a, 0x0f, 0x43, 0x6c, 0x6f, 0x6e, 0x65, 0x54, 0x61,
1115
0x72, 0x67, 0x65, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x0f, 0x0a, 0x0b, 0x52, 0x45, 0x4d, 0x4f,
1116
0x54, 0x45, 0x5f, 0x48, 0x45, 0x41, 0x44, 0x10, 0x00, 0x12, 0x11, 0x0a, 0x0d, 0x52, 0x45, 0x4d,
1117
0x4f, 0x54, 0x45, 0x5f, 0x43, 0x4f, 0x4d, 0x4d, 0x49, 0x54, 0x10, 0x01, 0x12, 0x11, 0x0a, 0x0d,
1118
0x52, 0x45, 0x4d, 0x4f, 0x54, 0x45, 0x5f, 0x42, 0x52, 0x41, 0x4e, 0x43, 0x48, 0x10, 0x02, 0x12,
1119
0x10, 0x0a, 0x0c, 0x4c, 0x4f, 0x43, 0x41, 0x4c, 0x5f, 0x42, 0x52, 0x41, 0x4e, 0x43, 0x48, 0x10,
1120
0x03, 0x2a, 0x40, 0x0a, 0x0d, 0x47, 0x69, 0x74, 0x41, 0x75, 0x74, 0x68, 0x4d, 0x65, 0x74, 0x68,
1121
0x6f, 0x64, 0x12, 0x0b, 0x0a, 0x07, 0x4e, 0x4f, 0x5f, 0x41, 0x55, 0x54, 0x48, 0x10, 0x00, 0x12,
1122
0x0e, 0x0a, 0x0a, 0x42, 0x41, 0x53, 0x49, 0x43, 0x5f, 0x41, 0x55, 0x54, 0x48, 0x10, 0x01, 0x12,
1123
0x12, 0x0a, 0x0e, 0x42, 0x41, 0x53, 0x49, 0x43, 0x5f, 0x41, 0x55, 0x54, 0x48, 0x5f, 0x4f, 0x54,
1124
0x53, 0x10, 0x02, 0x42, 0x31, 0x5a, 0x2f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f,
1125
0x6d, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2d, 0x69, 0x6f, 0x2f, 0x67, 0x69, 0x74, 0x70,
1126
0x6f, 0x64, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2d, 0x73, 0x65, 0x72, 0x76, 0x69,
1127
0x63, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
1128
}
1129
1130
var (
1131
file_initializer_proto_rawDescOnce sync.Once
1132
file_initializer_proto_rawDescData = file_initializer_proto_rawDesc
1133
)
1134
1135
func file_initializer_proto_rawDescGZIP() []byte {
1136
file_initializer_proto_rawDescOnce.Do(func() {
1137
file_initializer_proto_rawDescData = protoimpl.X.CompressGZIP(file_initializer_proto_rawDescData)
1138
})
1139
return file_initializer_proto_rawDescData
1140
}
1141
1142
var file_initializer_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
1143
var file_initializer_proto_msgTypes = make([]protoimpl.MessageInfo, 12)
1144
var file_initializer_proto_goTypes = []interface{}{
1145
(CloneTargetMode)(0), // 0: contentservice.CloneTargetMode
1146
(GitAuthMethod)(0), // 1: contentservice.GitAuthMethod
1147
(*WorkspaceInitializer)(nil), // 2: contentservice.WorkspaceInitializer
1148
(*CompositeInitializer)(nil), // 3: contentservice.CompositeInitializer
1149
(*FileDownloadInitializer)(nil), // 4: contentservice.FileDownloadInitializer
1150
(*EmptyInitializer)(nil), // 5: contentservice.EmptyInitializer
1151
(*GitInitializer)(nil), // 6: contentservice.GitInitializer
1152
(*GitConfig)(nil), // 7: contentservice.GitConfig
1153
(*SnapshotInitializer)(nil), // 8: contentservice.SnapshotInitializer
1154
(*PrebuildInitializer)(nil), // 9: contentservice.PrebuildInitializer
1155
(*FromBackupInitializer)(nil), // 10: contentservice.FromBackupInitializer
1156
(*GitStatus)(nil), // 11: contentservice.GitStatus
1157
(*FileDownloadInitializer_FileInfo)(nil), // 12: contentservice.FileDownloadInitializer.FileInfo
1158
nil, // 13: contentservice.GitConfig.CustomConfigEntry
1159
}
1160
var file_initializer_proto_depIdxs = []int32{
1161
5, // 0: contentservice.WorkspaceInitializer.empty:type_name -> contentservice.EmptyInitializer
1162
6, // 1: contentservice.WorkspaceInitializer.git:type_name -> contentservice.GitInitializer
1163
8, // 2: contentservice.WorkspaceInitializer.snapshot:type_name -> contentservice.SnapshotInitializer
1164
9, // 3: contentservice.WorkspaceInitializer.prebuild:type_name -> contentservice.PrebuildInitializer
1165
3, // 4: contentservice.WorkspaceInitializer.composite:type_name -> contentservice.CompositeInitializer
1166
4, // 5: contentservice.WorkspaceInitializer.download:type_name -> contentservice.FileDownloadInitializer
1167
10, // 6: contentservice.WorkspaceInitializer.backup:type_name -> contentservice.FromBackupInitializer
1168
2, // 7: contentservice.CompositeInitializer.initializer:type_name -> contentservice.WorkspaceInitializer
1169
12, // 8: contentservice.FileDownloadInitializer.files:type_name -> contentservice.FileDownloadInitializer.FileInfo
1170
0, // 9: contentservice.GitInitializer.target_mode:type_name -> contentservice.CloneTargetMode
1171
7, // 10: contentservice.GitInitializer.config:type_name -> contentservice.GitConfig
1172
13, // 11: contentservice.GitConfig.custom_config:type_name -> contentservice.GitConfig.CustomConfigEntry
1173
1, // 12: contentservice.GitConfig.authentication:type_name -> contentservice.GitAuthMethod
1174
8, // 13: contentservice.PrebuildInitializer.prebuild:type_name -> contentservice.SnapshotInitializer
1175
6, // 14: contentservice.PrebuildInitializer.git:type_name -> contentservice.GitInitializer
1176
15, // [15:15] is the sub-list for method output_type
1177
15, // [15:15] is the sub-list for method input_type
1178
15, // [15:15] is the sub-list for extension type_name
1179
15, // [15:15] is the sub-list for extension extendee
1180
0, // [0:15] is the sub-list for field type_name
1181
}
1182
1183
func init() { file_initializer_proto_init() }
1184
func file_initializer_proto_init() {
1185
if File_initializer_proto != nil {
1186
return
1187
}
1188
if !protoimpl.UnsafeEnabled {
1189
file_initializer_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
1190
switch v := v.(*WorkspaceInitializer); i {
1191
case 0:
1192
return &v.state
1193
case 1:
1194
return &v.sizeCache
1195
case 2:
1196
return &v.unknownFields
1197
default:
1198
return nil
1199
}
1200
}
1201
file_initializer_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
1202
switch v := v.(*CompositeInitializer); i {
1203
case 0:
1204
return &v.state
1205
case 1:
1206
return &v.sizeCache
1207
case 2:
1208
return &v.unknownFields
1209
default:
1210
return nil
1211
}
1212
}
1213
file_initializer_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
1214
switch v := v.(*FileDownloadInitializer); i {
1215
case 0:
1216
return &v.state
1217
case 1:
1218
return &v.sizeCache
1219
case 2:
1220
return &v.unknownFields
1221
default:
1222
return nil
1223
}
1224
}
1225
file_initializer_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
1226
switch v := v.(*EmptyInitializer); i {
1227
case 0:
1228
return &v.state
1229
case 1:
1230
return &v.sizeCache
1231
case 2:
1232
return &v.unknownFields
1233
default:
1234
return nil
1235
}
1236
}
1237
file_initializer_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
1238
switch v := v.(*GitInitializer); i {
1239
case 0:
1240
return &v.state
1241
case 1:
1242
return &v.sizeCache
1243
case 2:
1244
return &v.unknownFields
1245
default:
1246
return nil
1247
}
1248
}
1249
file_initializer_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
1250
switch v := v.(*GitConfig); i {
1251
case 0:
1252
return &v.state
1253
case 1:
1254
return &v.sizeCache
1255
case 2:
1256
return &v.unknownFields
1257
default:
1258
return nil
1259
}
1260
}
1261
file_initializer_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
1262
switch v := v.(*SnapshotInitializer); i {
1263
case 0:
1264
return &v.state
1265
case 1:
1266
return &v.sizeCache
1267
case 2:
1268
return &v.unknownFields
1269
default:
1270
return nil
1271
}
1272
}
1273
file_initializer_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
1274
switch v := v.(*PrebuildInitializer); i {
1275
case 0:
1276
return &v.state
1277
case 1:
1278
return &v.sizeCache
1279
case 2:
1280
return &v.unknownFields
1281
default:
1282
return nil
1283
}
1284
}
1285
file_initializer_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
1286
switch v := v.(*FromBackupInitializer); i {
1287
case 0:
1288
return &v.state
1289
case 1:
1290
return &v.sizeCache
1291
case 2:
1292
return &v.unknownFields
1293
default:
1294
return nil
1295
}
1296
}
1297
file_initializer_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
1298
switch v := v.(*GitStatus); i {
1299
case 0:
1300
return &v.state
1301
case 1:
1302
return &v.sizeCache
1303
case 2:
1304
return &v.unknownFields
1305
default:
1306
return nil
1307
}
1308
}
1309
file_initializer_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
1310
switch v := v.(*FileDownloadInitializer_FileInfo); i {
1311
case 0:
1312
return &v.state
1313
case 1:
1314
return &v.sizeCache
1315
case 2:
1316
return &v.unknownFields
1317
default:
1318
return nil
1319
}
1320
}
1321
}
1322
file_initializer_proto_msgTypes[0].OneofWrappers = []interface{}{
1323
(*WorkspaceInitializer_Empty)(nil),
1324
(*WorkspaceInitializer_Git)(nil),
1325
(*WorkspaceInitializer_Snapshot)(nil),
1326
(*WorkspaceInitializer_Prebuild)(nil),
1327
(*WorkspaceInitializer_Composite)(nil),
1328
(*WorkspaceInitializer_Download)(nil),
1329
(*WorkspaceInitializer_Backup)(nil),
1330
}
1331
type x struct{}
1332
out := protoimpl.TypeBuilder{
1333
File: protoimpl.DescBuilder{
1334
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
1335
RawDescriptor: file_initializer_proto_rawDesc,
1336
NumEnums: 2,
1337
NumMessages: 12,
1338
NumExtensions: 0,
1339
NumServices: 0,
1340
},
1341
GoTypes: file_initializer_proto_goTypes,
1342
DependencyIndexes: file_initializer_proto_depIdxs,
1343
EnumInfos: file_initializer_proto_enumTypes,
1344
MessageInfos: file_initializer_proto_msgTypes,
1345
}.Build()
1346
File_initializer_proto = out.File
1347
file_initializer_proto_rawDesc = nil
1348
file_initializer_proto_goTypes = nil
1349
file_initializer_proto_depIdxs = nil
1350
}
1351
1352