-
Notifications
You must be signed in to change notification settings - Fork 13
/
repository.pb.go
3706 lines (3558 loc) · 87 KB
/
repository.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: gitopia/repository.proto
package types
import (
fmt "fmt"
_ "github.com/gogo/protobuf/gogoproto"
proto "github.com/gogo/protobuf/proto"
io "io"
math "math"
math_bits "math/bits"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
type RepositoryCollaborator_Permission int32
const (
RepositoryCollaborator_READ RepositoryCollaborator_Permission = 0
RepositoryCollaborator_TRIAGE RepositoryCollaborator_Permission = 1
RepositoryCollaborator_WRITE RepositoryCollaborator_Permission = 2
RepositoryCollaborator_MAINTAIN RepositoryCollaborator_Permission = 3
RepositoryCollaborator_ADMIN RepositoryCollaborator_Permission = 4
)
var RepositoryCollaborator_Permission_name = map[int32]string{
0: "READ",
1: "TRIAGE",
2: "WRITE",
3: "MAINTAIN",
4: "ADMIN",
}
var RepositoryCollaborator_Permission_value = map[string]int32{
"READ": 0,
"TRIAGE": 1,
"WRITE": 2,
"MAINTAIN": 3,
"ADMIN": 4,
}
func (x RepositoryCollaborator_Permission) String() string {
return proto.EnumName(RepositoryCollaborator_Permission_name, int32(x))
}
func (RepositoryCollaborator_Permission) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_771033d6361900fa, []int{6, 0}
}
type RepositoryBackup_Store int32
const (
RepositoryBackup_IPFS RepositoryBackup_Store = 0
RepositoryBackup_ARWEAVE RepositoryBackup_Store = 1
)
var RepositoryBackup_Store_name = map[int32]string{
0: "IPFS",
1: "ARWEAVE",
}
var RepositoryBackup_Store_value = map[string]int32{
"IPFS": 0,
"ARWEAVE": 1,
}
func (x RepositoryBackup_Store) String() string {
return proto.EnumName(RepositoryBackup_Store_name, int32(x))
}
func (RepositoryBackup_Store) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_771033d6361900fa, []int{9, 0}
}
type Repository struct {
Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
Owner *RepositoryOwner `protobuf:"bytes,4,opt,name=owner,proto3" json:"owner,omitempty"`
Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`
Forks []uint64 `protobuf:"varint,6,rep,packed,name=forks,proto3" json:"forks,omitempty"`
Subscribers string `protobuf:"bytes,7,opt,name=subscribers,proto3" json:"subscribers,omitempty"`
Commits string `protobuf:"bytes,8,opt,name=commits,proto3" json:"commits,omitempty"`
IssuesCount uint64 `protobuf:"varint,9,opt,name=issuesCount,proto3" json:"issuesCount,omitempty"`
PullsCount uint64 `protobuf:"varint,10,opt,name=pullsCount,proto3" json:"pullsCount,omitempty"`
Labels []*RepositoryLabel `protobuf:"bytes,11,rep,name=labels,proto3" json:"labels,omitempty"`
LabelsCount uint64 `protobuf:"varint,12,opt,name=labelsCount,proto3" json:"labelsCount,omitempty"`
Releases []*RepositoryRelease `protobuf:"bytes,13,rep,name=releases,proto3" json:"releases,omitempty"`
CreatedAt int64 `protobuf:"varint,14,opt,name=createdAt,proto3" json:"createdAt,omitempty"`
UpdatedAt int64 `protobuf:"varint,15,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"`
PushedAt int64 `protobuf:"varint,16,opt,name=pushedAt,proto3" json:"pushedAt,omitempty"`
Stargazers []uint64 `protobuf:"varint,17,rep,packed,name=stargazers,proto3" json:"stargazers,omitempty"`
Archived bool `protobuf:"varint,18,opt,name=archived,proto3" json:"archived,omitempty"`
License string `protobuf:"bytes,19,opt,name=license,proto3" json:"license,omitempty"`
DefaultBranch string `protobuf:"bytes,20,opt,name=defaultBranch,proto3" json:"defaultBranch,omitempty"`
Parent uint64 `protobuf:"varint,21,opt,name=parent,proto3" json:"parent,omitempty"`
Fork bool `protobuf:"varint,22,opt,name=fork,proto3" json:"fork,omitempty"`
Collaborators []*RepositoryCollaborator `protobuf:"bytes,23,rep,name=collaborators,proto3" json:"collaborators,omitempty"`
AllowForking bool `protobuf:"varint,24,opt,name=allowForking,proto3" json:"allowForking,omitempty"`
Backups []*RepositoryBackup `protobuf:"bytes,25,rep,name=backups,proto3" json:"backups,omitempty"`
EnableArweaveBackup bool `protobuf:"varint,26,opt,name=enableArweaveBackup,proto3" json:"enableArweaveBackup,omitempty"`
}
func (m *Repository) Reset() { *m = Repository{} }
func (m *Repository) String() string { return proto.CompactTextString(m) }
func (*Repository) ProtoMessage() {}
func (*Repository) Descriptor() ([]byte, []int) {
return fileDescriptor_771033d6361900fa, []int{0}
}
func (m *Repository) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *Repository) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_Repository.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *Repository) XXX_Merge(src proto.Message) {
xxx_messageInfo_Repository.Merge(m, src)
}
func (m *Repository) XXX_Size() int {
return m.Size()
}
func (m *Repository) XXX_DiscardUnknown() {
xxx_messageInfo_Repository.DiscardUnknown(m)
}
var xxx_messageInfo_Repository proto.InternalMessageInfo
func (m *Repository) GetCreator() string {
if m != nil {
return m.Creator
}
return ""
}
func (m *Repository) GetId() uint64 {
if m != nil {
return m.Id
}
return 0
}
func (m *Repository) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *Repository) GetOwner() *RepositoryOwner {
if m != nil {
return m.Owner
}
return nil
}
func (m *Repository) GetDescription() string {
if m != nil {
return m.Description
}
return ""
}
func (m *Repository) GetForks() []uint64 {
if m != nil {
return m.Forks
}
return nil
}
func (m *Repository) GetSubscribers() string {
if m != nil {
return m.Subscribers
}
return ""
}
func (m *Repository) GetCommits() string {
if m != nil {
return m.Commits
}
return ""
}
func (m *Repository) GetIssuesCount() uint64 {
if m != nil {
return m.IssuesCount
}
return 0
}
func (m *Repository) GetPullsCount() uint64 {
if m != nil {
return m.PullsCount
}
return 0
}
func (m *Repository) GetLabels() []*RepositoryLabel {
if m != nil {
return m.Labels
}
return nil
}
func (m *Repository) GetLabelsCount() uint64 {
if m != nil {
return m.LabelsCount
}
return 0
}
func (m *Repository) GetReleases() []*RepositoryRelease {
if m != nil {
return m.Releases
}
return nil
}
func (m *Repository) GetCreatedAt() int64 {
if m != nil {
return m.CreatedAt
}
return 0
}
func (m *Repository) GetUpdatedAt() int64 {
if m != nil {
return m.UpdatedAt
}
return 0
}
func (m *Repository) GetPushedAt() int64 {
if m != nil {
return m.PushedAt
}
return 0
}
func (m *Repository) GetStargazers() []uint64 {
if m != nil {
return m.Stargazers
}
return nil
}
func (m *Repository) GetArchived() bool {
if m != nil {
return m.Archived
}
return false
}
func (m *Repository) GetLicense() string {
if m != nil {
return m.License
}
return ""
}
func (m *Repository) GetDefaultBranch() string {
if m != nil {
return m.DefaultBranch
}
return ""
}
func (m *Repository) GetParent() uint64 {
if m != nil {
return m.Parent
}
return 0
}
func (m *Repository) GetFork() bool {
if m != nil {
return m.Fork
}
return false
}
func (m *Repository) GetCollaborators() []*RepositoryCollaborator {
if m != nil {
return m.Collaborators
}
return nil
}
func (m *Repository) GetAllowForking() bool {
if m != nil {
return m.AllowForking
}
return false
}
func (m *Repository) GetBackups() []*RepositoryBackup {
if m != nil {
return m.Backups
}
return nil
}
func (m *Repository) GetEnableArweaveBackup() bool {
if m != nil {
return m.EnableArweaveBackup
}
return false
}
type RepositoryId struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
}
func (m *RepositoryId) Reset() { *m = RepositoryId{} }
func (m *RepositoryId) String() string { return proto.CompactTextString(m) }
func (*RepositoryId) ProtoMessage() {}
func (*RepositoryId) Descriptor() ([]byte, []int) {
return fileDescriptor_771033d6361900fa, []int{1}
}
func (m *RepositoryId) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *RepositoryId) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_RepositoryId.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *RepositoryId) XXX_Merge(src proto.Message) {
xxx_messageInfo_RepositoryId.Merge(m, src)
}
func (m *RepositoryId) XXX_Size() int {
return m.Size()
}
func (m *RepositoryId) XXX_DiscardUnknown() {
xxx_messageInfo_RepositoryId.DiscardUnknown(m)
}
var xxx_messageInfo_RepositoryId proto.InternalMessageInfo
func (m *RepositoryId) GetId() string {
if m != nil {
return m.Id
}
return ""
}
func (m *RepositoryId) GetName() string {
if m != nil {
return m.Name
}
return ""
}
type BaseRepositoryKey struct {
Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
}
func (m *BaseRepositoryKey) Reset() { *m = BaseRepositoryKey{} }
func (m *BaseRepositoryKey) String() string { return proto.CompactTextString(m) }
func (*BaseRepositoryKey) ProtoMessage() {}
func (*BaseRepositoryKey) Descriptor() ([]byte, []int) {
return fileDescriptor_771033d6361900fa, []int{2}
}
func (m *BaseRepositoryKey) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *BaseRepositoryKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_BaseRepositoryKey.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *BaseRepositoryKey) XXX_Merge(src proto.Message) {
xxx_messageInfo_BaseRepositoryKey.Merge(m, src)
}
func (m *BaseRepositoryKey) XXX_Size() int {
return m.Size()
}
func (m *BaseRepositoryKey) XXX_DiscardUnknown() {
xxx_messageInfo_BaseRepositoryKey.DiscardUnknown(m)
}
var xxx_messageInfo_BaseRepositoryKey proto.InternalMessageInfo
func (m *BaseRepositoryKey) GetId() uint64 {
if m != nil {
return m.Id
}
return 0
}
func (m *BaseRepositoryKey) GetAddress() string {
if m != nil {
return m.Address
}
return ""
}
func (m *BaseRepositoryKey) GetName() string {
if m != nil {
return m.Name
}
return ""
}
type RepositoryOwner struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Type OwnerType `protobuf:"varint,2,opt,name=type,proto3,enum=gitopia.gitopia.gitopia.OwnerType" json:"type,omitempty"`
}
func (m *RepositoryOwner) Reset() { *m = RepositoryOwner{} }
func (m *RepositoryOwner) String() string { return proto.CompactTextString(m) }
func (*RepositoryOwner) ProtoMessage() {}
func (*RepositoryOwner) Descriptor() ([]byte, []int) {
return fileDescriptor_771033d6361900fa, []int{3}
}
func (m *RepositoryOwner) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *RepositoryOwner) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_RepositoryOwner.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *RepositoryOwner) XXX_Merge(src proto.Message) {
xxx_messageInfo_RepositoryOwner.Merge(m, src)
}
func (m *RepositoryOwner) XXX_Size() int {
return m.Size()
}
func (m *RepositoryOwner) XXX_DiscardUnknown() {
xxx_messageInfo_RepositoryOwner.DiscardUnknown(m)
}
var xxx_messageInfo_RepositoryOwner proto.InternalMessageInfo
func (m *RepositoryOwner) GetId() string {
if m != nil {
return m.Id
}
return ""
}
func (m *RepositoryOwner) GetType() OwnerType {
if m != nil {
return m.Type
}
return OwnerType_USER
}
type IssueIid struct {
Iid uint64 `protobuf:"varint,1,opt,name=iid,proto3" json:"iid,omitempty"`
Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
}
func (m *IssueIid) Reset() { *m = IssueIid{} }
func (m *IssueIid) String() string { return proto.CompactTextString(m) }
func (*IssueIid) ProtoMessage() {}
func (*IssueIid) Descriptor() ([]byte, []int) {
return fileDescriptor_771033d6361900fa, []int{4}
}
func (m *IssueIid) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *IssueIid) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_IssueIid.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *IssueIid) XXX_Merge(src proto.Message) {
xxx_messageInfo_IssueIid.Merge(m, src)
}
func (m *IssueIid) XXX_Size() int {
return m.Size()
}
func (m *IssueIid) XXX_DiscardUnknown() {
xxx_messageInfo_IssueIid.DiscardUnknown(m)
}
var xxx_messageInfo_IssueIid proto.InternalMessageInfo
func (m *IssueIid) GetIid() uint64 {
if m != nil {
return m.Iid
}
return 0
}
func (m *IssueIid) GetId() uint64 {
if m != nil {
return m.Id
}
return 0
}
type PullRequestIid struct {
Iid uint64 `protobuf:"varint,1,opt,name=iid,proto3" json:"iid,omitempty"`
Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
}
func (m *PullRequestIid) Reset() { *m = PullRequestIid{} }
func (m *PullRequestIid) String() string { return proto.CompactTextString(m) }
func (*PullRequestIid) ProtoMessage() {}
func (*PullRequestIid) Descriptor() ([]byte, []int) {
return fileDescriptor_771033d6361900fa, []int{5}
}
func (m *PullRequestIid) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *PullRequestIid) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_PullRequestIid.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *PullRequestIid) XXX_Merge(src proto.Message) {
xxx_messageInfo_PullRequestIid.Merge(m, src)
}
func (m *PullRequestIid) XXX_Size() int {
return m.Size()
}
func (m *PullRequestIid) XXX_DiscardUnknown() {
xxx_messageInfo_PullRequestIid.DiscardUnknown(m)
}
var xxx_messageInfo_PullRequestIid proto.InternalMessageInfo
func (m *PullRequestIid) GetIid() uint64 {
if m != nil {
return m.Iid
}
return 0
}
func (m *PullRequestIid) GetId() uint64 {
if m != nil {
return m.Id
}
return 0
}
type RepositoryCollaborator struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Permission RepositoryCollaborator_Permission `protobuf:"varint,2,opt,name=permission,proto3,enum=gitopia.gitopia.gitopia.RepositoryCollaborator_Permission" json:"permission,omitempty"`
}
func (m *RepositoryCollaborator) Reset() { *m = RepositoryCollaborator{} }
func (m *RepositoryCollaborator) String() string { return proto.CompactTextString(m) }
func (*RepositoryCollaborator) ProtoMessage() {}
func (*RepositoryCollaborator) Descriptor() ([]byte, []int) {
return fileDescriptor_771033d6361900fa, []int{6}
}
func (m *RepositoryCollaborator) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *RepositoryCollaborator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_RepositoryCollaborator.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *RepositoryCollaborator) XXX_Merge(src proto.Message) {
xxx_messageInfo_RepositoryCollaborator.Merge(m, src)
}
func (m *RepositoryCollaborator) XXX_Size() int {
return m.Size()
}
func (m *RepositoryCollaborator) XXX_DiscardUnknown() {
xxx_messageInfo_RepositoryCollaborator.DiscardUnknown(m)
}
var xxx_messageInfo_RepositoryCollaborator proto.InternalMessageInfo
func (m *RepositoryCollaborator) GetId() string {
if m != nil {
return m.Id
}
return ""
}
func (m *RepositoryCollaborator) GetPermission() RepositoryCollaborator_Permission {
if m != nil {
return m.Permission
}
return RepositoryCollaborator_READ
}
type RepositoryLabel struct {
Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
Color string `protobuf:"bytes,3,opt,name=color,proto3" json:"color,omitempty"`
Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
}
func (m *RepositoryLabel) Reset() { *m = RepositoryLabel{} }
func (m *RepositoryLabel) String() string { return proto.CompactTextString(m) }
func (*RepositoryLabel) ProtoMessage() {}
func (*RepositoryLabel) Descriptor() ([]byte, []int) {
return fileDescriptor_771033d6361900fa, []int{7}
}
func (m *RepositoryLabel) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *RepositoryLabel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_RepositoryLabel.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *RepositoryLabel) XXX_Merge(src proto.Message) {
xxx_messageInfo_RepositoryLabel.Merge(m, src)
}
func (m *RepositoryLabel) XXX_Size() int {
return m.Size()
}
func (m *RepositoryLabel) XXX_DiscardUnknown() {
xxx_messageInfo_RepositoryLabel.DiscardUnknown(m)
}
var xxx_messageInfo_RepositoryLabel proto.InternalMessageInfo
func (m *RepositoryLabel) GetId() uint64 {
if m != nil {
return m.Id
}
return 0
}
func (m *RepositoryLabel) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *RepositoryLabel) GetColor() string {
if m != nil {
return m.Color
}
return ""
}
func (m *RepositoryLabel) GetDescription() string {
if m != nil {
return m.Description
}
return ""
}
type RepositoryRelease struct {
Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
TagName string `protobuf:"bytes,2,opt,name=tagName,proto3" json:"tagName,omitempty"`
}
func (m *RepositoryRelease) Reset() { *m = RepositoryRelease{} }
func (m *RepositoryRelease) String() string { return proto.CompactTextString(m) }
func (*RepositoryRelease) ProtoMessage() {}
func (*RepositoryRelease) Descriptor() ([]byte, []int) {
return fileDescriptor_771033d6361900fa, []int{8}
}
func (m *RepositoryRelease) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *RepositoryRelease) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_RepositoryRelease.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *RepositoryRelease) XXX_Merge(src proto.Message) {
xxx_messageInfo_RepositoryRelease.Merge(m, src)
}
func (m *RepositoryRelease) XXX_Size() int {
return m.Size()
}
func (m *RepositoryRelease) XXX_DiscardUnknown() {
xxx_messageInfo_RepositoryRelease.DiscardUnknown(m)
}
var xxx_messageInfo_RepositoryRelease proto.InternalMessageInfo
func (m *RepositoryRelease) GetId() uint64 {
if m != nil {
return m.Id
}
return 0
}
func (m *RepositoryRelease) GetTagName() string {
if m != nil {
return m.TagName
}
return ""
}
type RepositoryBackup struct {
Store RepositoryBackup_Store `protobuf:"varint,1,opt,name=store,proto3,enum=gitopia.gitopia.gitopia.RepositoryBackup_Store" json:"store,omitempty"`
Refs []string `protobuf:"bytes,2,rep,name=refs,proto3" json:"refs,omitempty"`
}
func (m *RepositoryBackup) Reset() { *m = RepositoryBackup{} }
func (m *RepositoryBackup) String() string { return proto.CompactTextString(m) }
func (*RepositoryBackup) ProtoMessage() {}
func (*RepositoryBackup) Descriptor() ([]byte, []int) {
return fileDescriptor_771033d6361900fa, []int{9}
}
func (m *RepositoryBackup) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *RepositoryBackup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_RepositoryBackup.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *RepositoryBackup) XXX_Merge(src proto.Message) {
xxx_messageInfo_RepositoryBackup.Merge(m, src)
}
func (m *RepositoryBackup) XXX_Size() int {
return m.Size()
}
func (m *RepositoryBackup) XXX_DiscardUnknown() {
xxx_messageInfo_RepositoryBackup.DiscardUnknown(m)
}
var xxx_messageInfo_RepositoryBackup proto.InternalMessageInfo
func (m *RepositoryBackup) GetStore() RepositoryBackup_Store {
if m != nil {
return m.Store
}
return RepositoryBackup_IPFS
}
func (m *RepositoryBackup) GetRefs() []string {
if m != nil {
return m.Refs
}
return nil
}
func init() {
proto.RegisterEnum("gitopia.gitopia.gitopia.RepositoryCollaborator_Permission", RepositoryCollaborator_Permission_name, RepositoryCollaborator_Permission_value)
proto.RegisterEnum("gitopia.gitopia.gitopia.RepositoryBackup_Store", RepositoryBackup_Store_name, RepositoryBackup_Store_value)
proto.RegisterType((*Repository)(nil), "gitopia.gitopia.gitopia.Repository")
proto.RegisterType((*RepositoryId)(nil), "gitopia.gitopia.gitopia.RepositoryId")
proto.RegisterType((*BaseRepositoryKey)(nil), "gitopia.gitopia.gitopia.BaseRepositoryKey")
proto.RegisterType((*RepositoryOwner)(nil), "gitopia.gitopia.gitopia.RepositoryOwner")
proto.RegisterType((*IssueIid)(nil), "gitopia.gitopia.gitopia.IssueIid")
proto.RegisterType((*PullRequestIid)(nil), "gitopia.gitopia.gitopia.PullRequestIid")
proto.RegisterType((*RepositoryCollaborator)(nil), "gitopia.gitopia.gitopia.RepositoryCollaborator")
proto.RegisterType((*RepositoryLabel)(nil), "gitopia.gitopia.gitopia.RepositoryLabel")
proto.RegisterType((*RepositoryRelease)(nil), "gitopia.gitopia.gitopia.RepositoryRelease")
proto.RegisterType((*RepositoryBackup)(nil), "gitopia.gitopia.gitopia.RepositoryBackup")
}
func init() { proto.RegisterFile("gitopia/repository.proto", fileDescriptor_771033d6361900fa) }
var fileDescriptor_771033d6361900fa = []byte{
// 881 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x55, 0x4f, 0x6f, 0xe3, 0x44,
0x14, 0x8f, 0xf3, 0xbf, 0xaf, 0x6d, 0xd6, 0x9d, 0x96, 0xee, 0x50, 0xa1, 0x28, 0xb2, 0x38, 0x04,
0x04, 0x09, 0xea, 0x4a, 0x1c, 0x90, 0x40, 0xb8, 0xdd, 0x74, 0x65, 0xc1, 0x96, 0x32, 0x5b, 0x58,
0xb1, 0xb7, 0x89, 0x3d, 0x4d, 0xac, 0x3a, 0x1e, 0x33, 0x63, 0xb7, 0x94, 0xef, 0x80, 0xc4, 0xc7,
0xe2, 0xc0, 0x61, 0x8f, 0x9c, 0x10, 0x6a, 0xbf, 0x08, 0x9a, 0x19, 0xc7, 0x71, 0x93, 0xac, 0x94,
0x3d, 0x79, 0xde, 0x9f, 0xdf, 0xfb, 0xff, 0x9e, 0x01, 0x4f, 0xc2, 0x94, 0x27, 0x21, 0x1d, 0x0a,
0x96, 0x70, 0x19, 0xa6, 0x5c, 0xdc, 0x0d, 0x12, 0xc1, 0x53, 0x8e, 0x9e, 0xe6, 0x92, 0xc1, 0xd2,
0xf7, 0xe8, 0x60, 0xc2, 0x27, 0x5c, 0xeb, 0x0c, 0xd5, 0xcb, 0xa8, 0x1f, 0xed, 0xcf, 0x0d, 0xdd,
0x4e, 0x79, 0x28, 0x0d, 0xd3, 0xf9, 0xb7, 0x05, 0x40, 0x0a, 0xc3, 0x08, 0x43, 0xcb, 0x17, 0x8c,
0xa6, 0x5c, 0x60, 0xab, 0x67, 0xf5, 0xb7, 0xc8, 0x9c, 0x44, 0x1d, 0xa8, 0x86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xe5, 0x5e, 0xe8, 0x4b, 0xb4, 0xd2, 0xdc,
0x35, 0x53, 0xa1, 0x6e, 0xaf, 0xcf, 0x23, 0x2e, 0xf2, 0xbe, 0x1a, 0x62, 0xf9, 0x66, 0xd7, 0x57,
0x6e, 0xb6, 0xf3, 0x35, 0xec, 0xad, 0x9c, 0xa4, 0x75, 0xd3, 0x94, 0xd2, 0xc9, 0xf9, 0xc2, 0xe7,
0x9c, 0x74, 0xfe, 0xb0, 0xc0, 0x5e, 0x5e, 0x08, 0x34, 0x82, 0x86, 0x4c, 0xb9, 0x60, 0xda, 0x42,
0x67, 0xa3, 0xfd, 0x35, 0xc8, 0xc1, 0x2b, 0x05, 0x23, 0x06, 0xad, 0xd2, 0x14, 0xec, 0x4a, 0x0d,
0x70, 0x4d, 0xa5, 0xa9, 0xde, 0x4e, 0x17, 0x1a, 0x5a, 0x47, 0x15, 0xd8, 0xbb, 0x38, 0x7b, 0x65,
0x57, 0xd0, 0x36, 0xb4, 0x5c, 0xf2, 0x7a, 0xe4, 0xfe, 0x3c, 0xb2, 0xad, 0x93, 0x17, 0x7f, 0xdd,
0x77, 0xad, 0xb7, 0xf7, 0x5d, 0xeb, 0xbf, 0xfb, 0xae, 0xf5, 0xe7, 0x43, 0xb7, 0xf2, 0xf6, 0xa1,
0x5b, 0xf9, 0xe7, 0xa1, 0x5b, 0x79, 0xf3, 0xf9, 0x24, 0x4c, 0xa7, 0xd9, 0x78, 0xe0, 0xf3, 0xd9,
0x70, 0xfe, 0xaf, 0x9d, 0x7f, 0x6f, 0x9e, 0x0d, 0x7f, 0x2b, 0x08, 0x35, 0xb6, 0x72, 0xdc, 0xd4,
0x7f, 0xe0, 0x67, 0xff, 0x07, 0x00, 0x00, 0xff, 0xff, 0x30, 0xfc, 0xd5, 0xc8, 0xe1, 0x07, 0x00,
0x00,
}
func (m *Repository) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *Repository) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *Repository) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.EnableArweaveBackup {
i--
if m.EnableArweaveBackup {
dAtA[i] = 1
} else {
dAtA[i] = 0
}
i--
dAtA[i] = 0x1
i--
dAtA[i] = 0xd0
}
if len(m.Backups) > 0 {
for iNdEx := len(m.Backups) - 1; iNdEx >= 0; iNdEx-- {
{
size, err := m.Backups[iNdEx].MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintRepository(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0x1
i--
dAtA[i] = 0xca
}
}
if m.AllowForking {
i--
if m.AllowForking {
dAtA[i] = 1
} else {
dAtA[i] = 0
}
i--
dAtA[i] = 0x1
i--
dAtA[i] = 0xc0
}
if len(m.Collaborators) > 0 {
for iNdEx := len(m.Collaborators) - 1; iNdEx >= 0; iNdEx-- {
{
size, err := m.Collaborators[iNdEx].MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintRepository(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0x1
i--
dAtA[i] = 0xba
}
}
if m.Fork {
i--
if m.Fork {
dAtA[i] = 1
} else {
dAtA[i] = 0
}
i--
dAtA[i] = 0x1
i--
dAtA[i] = 0xb0
}
if m.Parent != 0 {
i = encodeVarintRepository(dAtA, i, uint64(m.Parent))
i--
dAtA[i] = 0x1
i--
dAtA[i] = 0xa8
}
if len(m.DefaultBranch) > 0 {
i -= len(m.DefaultBranch)
copy(dAtA[i:], m.DefaultBranch)
i = encodeVarintRepository(dAtA, i, uint64(len(m.DefaultBranch)))
i--
dAtA[i] = 0x1
i--
dAtA[i] = 0xa2