This repository has no description
1// Code generated by protoc-gen-go. DO NOT EDIT.
2// versions:
3// protoc-gen-go v1.36.11
4// protoc (unknown)
5// source: gitmirror/v1/gitmirror.proto
6
7package gitmirrorv1
8
9import (
10 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
11 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
12 timestamppb "google.golang.org/protobuf/types/known/timestamppb"
13 reflect "reflect"
14 sync "sync"
15 unsafe "unsafe"
16)
17
18const (
19 // Verify that this generated code is sufficiently up-to-date.
20 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
21 // Verify that runtime/protoimpl is sufficiently up-to-date.
22 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
23)
24
25type DiffRequest_ComparisonType int32
26
27const (
28 DiffRequest_COMPARISON_TYPE_UNSPECIFIED DiffRequest_ComparisonType = 0
29 // Corresponds to the BASE..HEAD syntax that only returns any commits that
30 // are in HEAD but not in BASE.
31 DiffRequest_COMPARISON_TYPE_ONLY_IN_HEAD DiffRequest_ComparisonType = 1
32 // Corresponds to the BASE...HEAD syntax that returns any commits that are
33 // not in both BASE and HEAD.
34 DiffRequest_COMPARISON_TYPE_INTERSECTION DiffRequest_ComparisonType = 2
35)
36
37// Enum value maps for DiffRequest_ComparisonType.
38var (
39 DiffRequest_ComparisonType_name = map[int32]string{
40 0: "COMPARISON_TYPE_UNSPECIFIED",
41 1: "COMPARISON_TYPE_ONLY_IN_HEAD",
42 2: "COMPARISON_TYPE_INTERSECTION",
43 }
44 DiffRequest_ComparisonType_value = map[string]int32{
45 "COMPARISON_TYPE_UNSPECIFIED": 0,
46 "COMPARISON_TYPE_ONLY_IN_HEAD": 1,
47 "COMPARISON_TYPE_INTERSECTION": 2,
48 }
49)
50
51func (x DiffRequest_ComparisonType) Enum() *DiffRequest_ComparisonType {
52 p := new(DiffRequest_ComparisonType)
53 *p = x
54 return p
55}
56
57func (x DiffRequest_ComparisonType) String() string {
58 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
59}
60
61func (DiffRequest_ComparisonType) Descriptor() protoreflect.EnumDescriptor {
62 return file_gitmirror_v1_gitmirror_proto_enumTypes[0].Descriptor()
63}
64
65func (DiffRequest_ComparisonType) Type() protoreflect.EnumType {
66 return &file_gitmirror_v1_gitmirror_proto_enumTypes[0]
67}
68
69func (x DiffRequest_ComparisonType) Number() protoreflect.EnumNumber {
70 return protoreflect.EnumNumber(x)
71}
72
73// Deprecated: Use DiffRequest_ComparisonType.Descriptor instead.
74func (DiffRequest_ComparisonType) EnumDescriptor() ([]byte, []int) {
75 return file_gitmirror_v1_gitmirror_proto_rawDescGZIP(), []int{10, 0}
76}
77
78type ResolveRevRequest struct {
79 state protoimpl.MessageState `protogen:"open.v1"`
80 // repo carries the DID as a string.
81 Repo string `protobuf:"bytes,1,opt,name=repo,proto3" json:"repo,omitempty"`
82 // rev is a SIMPLE revspec: a branch name, tag name, or short/full commit oid.
83 // HEAD and revspec navigation (HEAD~2, foo^, ref@{...}, a..b, path:file) are rejected.
84 Rev []byte `protobuf:"bytes,2,opt,name=rev,proto3" json:"rev,omitempty"`
85 unknownFields protoimpl.UnknownFields
86 sizeCache protoimpl.SizeCache
87}
88
89func (x *ResolveRevRequest) Reset() {
90 *x = ResolveRevRequest{}
91 mi := &file_gitmirror_v1_gitmirror_proto_msgTypes[0]
92 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
93 ms.StoreMessageInfo(mi)
94}
95
96func (x *ResolveRevRequest) String() string {
97 return protoimpl.X.MessageStringOf(x)
98}
99
100func (*ResolveRevRequest) ProtoMessage() {}
101
102func (x *ResolveRevRequest) ProtoReflect() protoreflect.Message {
103 mi := &file_gitmirror_v1_gitmirror_proto_msgTypes[0]
104 if x != nil {
105 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
106 if ms.LoadMessageInfo() == nil {
107 ms.StoreMessageInfo(mi)
108 }
109 return ms
110 }
111 return mi.MessageOf(x)
112}
113
114// Deprecated: Use ResolveRevRequest.ProtoReflect.Descriptor instead.
115func (*ResolveRevRequest) Descriptor() ([]byte, []int) {
116 return file_gitmirror_v1_gitmirror_proto_rawDescGZIP(), []int{0}
117}
118
119func (x *ResolveRevRequest) GetRepo() string {
120 if x != nil {
121 return x.Repo
122 }
123 return ""
124}
125
126func (x *ResolveRevRequest) GetRev() []byte {
127 if x != nil {
128 return x.Rev
129 }
130 return nil
131}
132
133type ResolveRevResponse struct {
134 state protoimpl.MessageState `protogen:"open.v1"`
135 // commit is the resolved commit object id, hex-encoded.
136 Commit string `protobuf:"bytes,1,opt,name=commit,proto3" json:"commit,omitempty"`
137 unknownFields protoimpl.UnknownFields
138 sizeCache protoimpl.SizeCache
139}
140
141func (x *ResolveRevResponse) Reset() {
142 *x = ResolveRevResponse{}
143 mi := &file_gitmirror_v1_gitmirror_proto_msgTypes[1]
144 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
145 ms.StoreMessageInfo(mi)
146}
147
148func (x *ResolveRevResponse) String() string {
149 return protoimpl.X.MessageStringOf(x)
150}
151
152func (*ResolveRevResponse) ProtoMessage() {}
153
154func (x *ResolveRevResponse) ProtoReflect() protoreflect.Message {
155 mi := &file_gitmirror_v1_gitmirror_proto_msgTypes[1]
156 if x != nil {
157 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
158 if ms.LoadMessageInfo() == nil {
159 ms.StoreMessageInfo(mi)
160 }
161 return ms
162 }
163 return mi.MessageOf(x)
164}
165
166// Deprecated: Use ResolveRevResponse.ProtoReflect.Descriptor instead.
167func (*ResolveRevResponse) Descriptor() ([]byte, []int) {
168 return file_gitmirror_v1_gitmirror_proto_rawDescGZIP(), []int{1}
169}
170
171func (x *ResolveRevResponse) GetCommit() string {
172 if x != nil {
173 return x.Commit
174 }
175 return ""
176}
177
178// A commit in a specific repo, addressed by the repo's DID.
179type RepoCommit struct {
180 state protoimpl.MessageState `protogen:"open.v1"`
181 // repo carries the DID as a string.
182 Repo string `protobuf:"bytes,1,opt,name=repo,proto3" json:"repo,omitempty"`
183 // commit is a full commit object id, hex-encoded (NOT a revspec/branch/tag).
184 Commit []byte `protobuf:"bytes,2,opt,name=commit,proto3" json:"commit,omitempty"`
185 unknownFields protoimpl.UnknownFields
186 sizeCache protoimpl.SizeCache
187}
188
189func (x *RepoCommit) Reset() {
190 *x = RepoCommit{}
191 mi := &file_gitmirror_v1_gitmirror_proto_msgTypes[2]
192 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
193 ms.StoreMessageInfo(mi)
194}
195
196func (x *RepoCommit) String() string {
197 return protoimpl.X.MessageStringOf(x)
198}
199
200func (*RepoCommit) ProtoMessage() {}
201
202func (x *RepoCommit) ProtoReflect() protoreflect.Message {
203 mi := &file_gitmirror_v1_gitmirror_proto_msgTypes[2]
204 if x != nil {
205 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
206 if ms.LoadMessageInfo() == nil {
207 ms.StoreMessageInfo(mi)
208 }
209 return ms
210 }
211 return mi.MessageOf(x)
212}
213
214// Deprecated: Use RepoCommit.ProtoReflect.Descriptor instead.
215func (*RepoCommit) Descriptor() ([]byte, []int) {
216 return file_gitmirror_v1_gitmirror_proto_rawDescGZIP(), []int{2}
217}
218
219func (x *RepoCommit) GetRepo() string {
220 if x != nil {
221 return x.Repo
222 }
223 return ""
224}
225
226func (x *RepoCommit) GetCommit() []byte {
227 if x != nil {
228 return x.Commit
229 }
230 return nil
231}
232
233type MergeCheckRequest struct {
234 state protoimpl.MessageState `protogen:"open.v1"`
235 // Branch/commit being merged into (the "ours" side of the 3-way merge).
236 Target *RepoCommit `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"`
237 // PR head being merged (the "theirs" side of the 3-way merge).
238 Source *RepoCommit `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"`
239 unknownFields protoimpl.UnknownFields
240 sizeCache protoimpl.SizeCache
241}
242
243func (x *MergeCheckRequest) Reset() {
244 *x = MergeCheckRequest{}
245 mi := &file_gitmirror_v1_gitmirror_proto_msgTypes[3]
246 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
247 ms.StoreMessageInfo(mi)
248}
249
250func (x *MergeCheckRequest) String() string {
251 return protoimpl.X.MessageStringOf(x)
252}
253
254func (*MergeCheckRequest) ProtoMessage() {}
255
256func (x *MergeCheckRequest) ProtoReflect() protoreflect.Message {
257 mi := &file_gitmirror_v1_gitmirror_proto_msgTypes[3]
258 if x != nil {
259 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
260 if ms.LoadMessageInfo() == nil {
261 ms.StoreMessageInfo(mi)
262 }
263 return ms
264 }
265 return mi.MessageOf(x)
266}
267
268// Deprecated: Use MergeCheckRequest.ProtoReflect.Descriptor instead.
269func (*MergeCheckRequest) Descriptor() ([]byte, []int) {
270 return file_gitmirror_v1_gitmirror_proto_rawDescGZIP(), []int{3}
271}
272
273func (x *MergeCheckRequest) GetTarget() *RepoCommit {
274 if x != nil {
275 return x.Target
276 }
277 return nil
278}
279
280func (x *MergeCheckRequest) GetSource() *RepoCommit {
281 if x != nil {
282 return x.Source
283 }
284 return nil
285}
286
287type MergeCheckResponse struct {
288 state protoimpl.MessageState `protogen:"open.v1"`
289 // Whether the 3-way merge has unresolved conflicts.
290 IsConflicted bool `protobuf:"varint,1,opt,name=is_conflicted,json=isConflicted,proto3" json:"is_conflicted,omitempty"`
291 // One entry per conflicted file.
292 Conflicts []*MergeConflict `protobuf:"bytes,2,rep,name=conflicts,proto3" json:"conflicts,omitempty"`
293 // Optional human-readable summary of the merge check.
294 Message *string `protobuf:"bytes,3,opt,name=message,proto3,oneof" json:"message,omitempty"`
295 unknownFields protoimpl.UnknownFields
296 sizeCache protoimpl.SizeCache
297}
298
299func (x *MergeCheckResponse) Reset() {
300 *x = MergeCheckResponse{}
301 mi := &file_gitmirror_v1_gitmirror_proto_msgTypes[4]
302 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
303 ms.StoreMessageInfo(mi)
304}
305
306func (x *MergeCheckResponse) String() string {
307 return protoimpl.X.MessageStringOf(x)
308}
309
310func (*MergeCheckResponse) ProtoMessage() {}
311
312func (x *MergeCheckResponse) ProtoReflect() protoreflect.Message {
313 mi := &file_gitmirror_v1_gitmirror_proto_msgTypes[4]
314 if x != nil {
315 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
316 if ms.LoadMessageInfo() == nil {
317 ms.StoreMessageInfo(mi)
318 }
319 return ms
320 }
321 return mi.MessageOf(x)
322}
323
324// Deprecated: Use MergeCheckResponse.ProtoReflect.Descriptor instead.
325func (*MergeCheckResponse) Descriptor() ([]byte, []int) {
326 return file_gitmirror_v1_gitmirror_proto_rawDescGZIP(), []int{4}
327}
328
329func (x *MergeCheckResponse) GetIsConflicted() bool {
330 if x != nil {
331 return x.IsConflicted
332 }
333 return false
334}
335
336func (x *MergeCheckResponse) GetConflicts() []*MergeConflict {
337 if x != nil {
338 return x.Conflicts
339 }
340 return nil
341}
342
343func (x *MergeCheckResponse) GetMessage() string {
344 if x != nil && x.Message != nil {
345 return *x.Message
346 }
347 return ""
348}
349
350type MergeConflict struct {
351 state protoimpl.MessageState `protogen:"open.v1"`
352 Filename string `protobuf:"bytes,1,opt,name=filename,proto3" json:"filename,omitempty"`
353 Reason string `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"`
354 unknownFields protoimpl.UnknownFields
355 sizeCache protoimpl.SizeCache
356}
357
358func (x *MergeConflict) Reset() {
359 *x = MergeConflict{}
360 mi := &file_gitmirror_v1_gitmirror_proto_msgTypes[5]
361 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
362 ms.StoreMessageInfo(mi)
363}
364
365func (x *MergeConflict) String() string {
366 return protoimpl.X.MessageStringOf(x)
367}
368
369func (*MergeConflict) ProtoMessage() {}
370
371func (x *MergeConflict) ProtoReflect() protoreflect.Message {
372 mi := &file_gitmirror_v1_gitmirror_proto_msgTypes[5]
373 if x != nil {
374 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
375 if ms.LoadMessageInfo() == nil {
376 ms.StoreMessageInfo(mi)
377 }
378 return ms
379 }
380 return mi.MessageOf(x)
381}
382
383// Deprecated: Use MergeConflict.ProtoReflect.Descriptor instead.
384func (*MergeConflict) Descriptor() ([]byte, []int) {
385 return file_gitmirror_v1_gitmirror_proto_rawDescGZIP(), []int{5}
386}
387
388func (x *MergeConflict) GetFilename() string {
389 if x != nil {
390 return x.Filename
391 }
392 return ""
393}
394
395func (x *MergeConflict) GetReason() string {
396 if x != nil {
397 return x.Reason
398 }
399 return ""
400}
401
402type CommitLogRequest struct {
403 state protoimpl.MessageState `protogen:"open.v1"`
404 // repo DID
405 Repo string `protobuf:"bytes,1,opt,name=repo,proto3" json:"repo,omitempty"`
406 // Ranges to include in the git log (revspec, "A..B", "A...B", etc.).
407 // At least one range, or all_refs must be specified.
408 Ranges [][]byte `protobuf:"bytes,2,rep,name=ranges,proto3" json:"ranges,omitempty"`
409 // If true, all refs are searched for commits.
410 // Must not be true when ranges are given.
411 AllRefs bool `protobuf:"varint,3,opt,name=all_refs,json=allRefs,proto3" json:"all_refs,omitempty"`
412 // After is an optional parameter to specify the earliest commit to consider.
413 After *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=after,proto3" json:"after,omitempty"`
414 // Before is an optional parameter to specify the latest commit to consider.
415 Before *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=before,proto3" json:"before,omitempty"`
416 // MaxCommits is an optional parameter to specify the maximum number of commits
417 // to return. If max_commits is 0, all commits that match the criteria will be
418 // returned.
419 MaxCommits uint32 `protobuf:"varint,6,opt,name=max_commits,json=maxCommits,proto3" json:"max_commits,omitempty"`
420 // Skip is an optional parameter to specify the number of commits to skip.
421 // This can be used to implement a poor mans pagination.
422 Skip uint32 `protobuf:"varint,7,opt,name=skip,proto3" json:"skip,omitempty"`
423 unknownFields protoimpl.UnknownFields
424 sizeCache protoimpl.SizeCache
425}
426
427func (x *CommitLogRequest) Reset() {
428 *x = CommitLogRequest{}
429 mi := &file_gitmirror_v1_gitmirror_proto_msgTypes[6]
430 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
431 ms.StoreMessageInfo(mi)
432}
433
434func (x *CommitLogRequest) String() string {
435 return protoimpl.X.MessageStringOf(x)
436}
437
438func (*CommitLogRequest) ProtoMessage() {}
439
440func (x *CommitLogRequest) ProtoReflect() protoreflect.Message {
441 mi := &file_gitmirror_v1_gitmirror_proto_msgTypes[6]
442 if x != nil {
443 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
444 if ms.LoadMessageInfo() == nil {
445 ms.StoreMessageInfo(mi)
446 }
447 return ms
448 }
449 return mi.MessageOf(x)
450}
451
452// Deprecated: Use CommitLogRequest.ProtoReflect.Descriptor instead.
453func (*CommitLogRequest) Descriptor() ([]byte, []int) {
454 return file_gitmirror_v1_gitmirror_proto_rawDescGZIP(), []int{6}
455}
456
457func (x *CommitLogRequest) GetRepo() string {
458 if x != nil {
459 return x.Repo
460 }
461 return ""
462}
463
464func (x *CommitLogRequest) GetRanges() [][]byte {
465 if x != nil {
466 return x.Ranges
467 }
468 return nil
469}
470
471func (x *CommitLogRequest) GetAllRefs() bool {
472 if x != nil {
473 return x.AllRefs
474 }
475 return false
476}
477
478func (x *CommitLogRequest) GetAfter() *timestamppb.Timestamp {
479 if x != nil {
480 return x.After
481 }
482 return nil
483}
484
485func (x *CommitLogRequest) GetBefore() *timestamppb.Timestamp {
486 if x != nil {
487 return x.Before
488 }
489 return nil
490}
491
492func (x *CommitLogRequest) GetMaxCommits() uint32 {
493 if x != nil {
494 return x.MaxCommits
495 }
496 return 0
497}
498
499func (x *CommitLogRequest) GetSkip() uint32 {
500 if x != nil {
501 return x.Skip
502 }
503 return 0
504}
505
506type CommitLogResponse struct {
507 state protoimpl.MessageState `protogen:"open.v1"`
508 Commits []*GitCommit `protobuf:"bytes,1,rep,name=commits,proto3" json:"commits,omitempty"`
509 unknownFields protoimpl.UnknownFields
510 sizeCache protoimpl.SizeCache
511}
512
513func (x *CommitLogResponse) Reset() {
514 *x = CommitLogResponse{}
515 mi := &file_gitmirror_v1_gitmirror_proto_msgTypes[7]
516 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
517 ms.StoreMessageInfo(mi)
518}
519
520func (x *CommitLogResponse) String() string {
521 return protoimpl.X.MessageStringOf(x)
522}
523
524func (*CommitLogResponse) ProtoMessage() {}
525
526func (x *CommitLogResponse) ProtoReflect() protoreflect.Message {
527 mi := &file_gitmirror_v1_gitmirror_proto_msgTypes[7]
528 if x != nil {
529 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
530 if ms.LoadMessageInfo() == nil {
531 ms.StoreMessageInfo(mi)
532 }
533 return ms
534 }
535 return mi.MessageOf(x)
536}
537
538// Deprecated: Use CommitLogResponse.ProtoReflect.Descriptor instead.
539func (*CommitLogResponse) Descriptor() ([]byte, []int) {
540 return file_gitmirror_v1_gitmirror_proto_rawDescGZIP(), []int{7}
541}
542
543func (x *CommitLogResponse) GetCommits() []*GitCommit {
544 if x != nil {
545 return x.Commits
546 }
547 return nil
548}
549
550type GetBlobRequest struct {
551 state protoimpl.MessageState `protogen:"open.v1"`
552 // repo carries the DID as a string.
553 Repo string `protobuf:"bytes,1,opt,name=repo,proto3" json:"repo,omitempty"`
554 // oid is the blob object id (hex).
555 Oid string `protobuf:"bytes,2,opt,name=oid,proto3" json:"oid,omitempty"`
556 unknownFields protoimpl.UnknownFields
557 sizeCache protoimpl.SizeCache
558}
559
560func (x *GetBlobRequest) Reset() {
561 *x = GetBlobRequest{}
562 mi := &file_gitmirror_v1_gitmirror_proto_msgTypes[8]
563 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
564 ms.StoreMessageInfo(mi)
565}
566
567func (x *GetBlobRequest) String() string {
568 return protoimpl.X.MessageStringOf(x)
569}
570
571func (*GetBlobRequest) ProtoMessage() {}
572
573func (x *GetBlobRequest) ProtoReflect() protoreflect.Message {
574 mi := &file_gitmirror_v1_gitmirror_proto_msgTypes[8]
575 if x != nil {
576 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
577 if ms.LoadMessageInfo() == nil {
578 ms.StoreMessageInfo(mi)
579 }
580 return ms
581 }
582 return mi.MessageOf(x)
583}
584
585// Deprecated: Use GetBlobRequest.ProtoReflect.Descriptor instead.
586func (*GetBlobRequest) Descriptor() ([]byte, []int) {
587 return file_gitmirror_v1_gitmirror_proto_rawDescGZIP(), []int{8}
588}
589
590func (x *GetBlobRequest) GetRepo() string {
591 if x != nil {
592 return x.Repo
593 }
594 return ""
595}
596
597func (x *GetBlobRequest) GetOid() string {
598 if x != nil {
599 return x.Oid
600 }
601 return ""
602}
603
604type BlobChunk struct {
605 state protoimpl.MessageState `protogen:"open.v1"`
606 Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
607 unknownFields protoimpl.UnknownFields
608 sizeCache protoimpl.SizeCache
609}
610
611func (x *BlobChunk) Reset() {
612 *x = BlobChunk{}
613 mi := &file_gitmirror_v1_gitmirror_proto_msgTypes[9]
614 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
615 ms.StoreMessageInfo(mi)
616}
617
618func (x *BlobChunk) String() string {
619 return protoimpl.X.MessageStringOf(x)
620}
621
622func (*BlobChunk) ProtoMessage() {}
623
624func (x *BlobChunk) ProtoReflect() protoreflect.Message {
625 mi := &file_gitmirror_v1_gitmirror_proto_msgTypes[9]
626 if x != nil {
627 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
628 if ms.LoadMessageInfo() == nil {
629 ms.StoreMessageInfo(mi)
630 }
631 return ms
632 }
633 return mi.MessageOf(x)
634}
635
636// Deprecated: Use BlobChunk.ProtoReflect.Descriptor instead.
637func (*BlobChunk) Descriptor() ([]byte, []int) {
638 return file_gitmirror_v1_gitmirror_proto_rawDescGZIP(), []int{9}
639}
640
641func (x *BlobChunk) GetData() []byte {
642 if x != nil {
643 return x.Data
644 }
645 return nil
646}
647
648type DiffRequest struct {
649 state protoimpl.MessageState `protogen:"open.v1"`
650 Base *RepoCommit `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"`
651 Head *RepoCommit `protobuf:"bytes,2,opt,name=head,proto3" json:"head,omitempty"`
652 ComparisonType DiffRequest_ComparisonType `protobuf:"varint,3,opt,name=comparison_type,json=comparisonType,proto3,enum=gitmirror.v1.DiffRequest_ComparisonType" json:"comparison_type,omitempty"`
653 unknownFields protoimpl.UnknownFields
654 sizeCache protoimpl.SizeCache
655}
656
657func (x *DiffRequest) Reset() {
658 *x = DiffRequest{}
659 mi := &file_gitmirror_v1_gitmirror_proto_msgTypes[10]
660 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
661 ms.StoreMessageInfo(mi)
662}
663
664func (x *DiffRequest) String() string {
665 return protoimpl.X.MessageStringOf(x)
666}
667
668func (*DiffRequest) ProtoMessage() {}
669
670func (x *DiffRequest) ProtoReflect() protoreflect.Message {
671 mi := &file_gitmirror_v1_gitmirror_proto_msgTypes[10]
672 if x != nil {
673 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
674 if ms.LoadMessageInfo() == nil {
675 ms.StoreMessageInfo(mi)
676 }
677 return ms
678 }
679 return mi.MessageOf(x)
680}
681
682// Deprecated: Use DiffRequest.ProtoReflect.Descriptor instead.
683func (*DiffRequest) Descriptor() ([]byte, []int) {
684 return file_gitmirror_v1_gitmirror_proto_rawDescGZIP(), []int{10}
685}
686
687func (x *DiffRequest) GetBase() *RepoCommit {
688 if x != nil {
689 return x.Base
690 }
691 return nil
692}
693
694func (x *DiffRequest) GetHead() *RepoCommit {
695 if x != nil {
696 return x.Head
697 }
698 return nil
699}
700
701func (x *DiffRequest) GetComparisonType() DiffRequest_ComparisonType {
702 if x != nil {
703 return x.ComparisonType
704 }
705 return DiffRequest_COMPARISON_TYPE_UNSPECIFIED
706}
707
708type InterdiffRequest struct {
709 state protoimpl.MessageState `protogen:"open.v1"`
710 // repo carries the DID as a string.
711 Repo string `protobuf:"bytes,1,opt,name=repo,proto3" json:"repo,omitempty"`
712 // Old patch range (from_base..from_head) and new patch range (to_base..to_head).
713 FromBase []byte `protobuf:"bytes,2,opt,name=from_base,json=fromBase,proto3" json:"from_base,omitempty"`
714 FromHead []byte `protobuf:"bytes,3,opt,name=from_head,json=fromHead,proto3" json:"from_head,omitempty"`
715 ToBase []byte `protobuf:"bytes,4,opt,name=to_base,json=toBase,proto3" json:"to_base,omitempty"`
716 ToHead []byte `protobuf:"bytes,5,opt,name=to_head,json=toHead,proto3" json:"to_head,omitempty"`
717 unknownFields protoimpl.UnknownFields
718 sizeCache protoimpl.SizeCache
719}
720
721func (x *InterdiffRequest) Reset() {
722 *x = InterdiffRequest{}
723 mi := &file_gitmirror_v1_gitmirror_proto_msgTypes[11]
724 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
725 ms.StoreMessageInfo(mi)
726}
727
728func (x *InterdiffRequest) String() string {
729 return protoimpl.X.MessageStringOf(x)
730}
731
732func (*InterdiffRequest) ProtoMessage() {}
733
734func (x *InterdiffRequest) ProtoReflect() protoreflect.Message {
735 mi := &file_gitmirror_v1_gitmirror_proto_msgTypes[11]
736 if x != nil {
737 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
738 if ms.LoadMessageInfo() == nil {
739 ms.StoreMessageInfo(mi)
740 }
741 return ms
742 }
743 return mi.MessageOf(x)
744}
745
746// Deprecated: Use InterdiffRequest.ProtoReflect.Descriptor instead.
747func (*InterdiffRequest) Descriptor() ([]byte, []int) {
748 return file_gitmirror_v1_gitmirror_proto_rawDescGZIP(), []int{11}
749}
750
751func (x *InterdiffRequest) GetRepo() string {
752 if x != nil {
753 return x.Repo
754 }
755 return ""
756}
757
758func (x *InterdiffRequest) GetFromBase() []byte {
759 if x != nil {
760 return x.FromBase
761 }
762 return nil
763}
764
765func (x *InterdiffRequest) GetFromHead() []byte {
766 if x != nil {
767 return x.FromHead
768 }
769 return nil
770}
771
772func (x *InterdiffRequest) GetToBase() []byte {
773 if x != nil {
774 return x.ToBase
775 }
776 return nil
777}
778
779func (x *InterdiffRequest) GetToHead() []byte {
780 if x != nil {
781 return x.ToHead
782 }
783 return nil
784}
785
786type FileContent struct {
787 state protoimpl.MessageState `protogen:"open.v1"`
788 Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
789 Oid string `protobuf:"bytes,2,opt,name=oid,proto3" json:"oid,omitempty"`
790 Size uint64 `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"`
791 IsBinary bool `protobuf:"varint,4,opt,name=is_binary,json=isBinary,proto3" json:"is_binary,omitempty"`
792 IsSubmodule bool `protobuf:"varint,5,opt,name=is_submodule,json=isSubmodule,proto3" json:"is_submodule,omitempty"`
793 // Raw file bytes, inlined when the oid is not fetchable by the client
794 // (e.g. interdiff)
795 Content []byte `protobuf:"bytes,6,opt,name=content,proto3,oneof" json:"content,omitempty"`
796 unknownFields protoimpl.UnknownFields
797 sizeCache protoimpl.SizeCache
798}
799
800func (x *FileContent) Reset() {
801 *x = FileContent{}
802 mi := &file_gitmirror_v1_gitmirror_proto_msgTypes[12]
803 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
804 ms.StoreMessageInfo(mi)
805}
806
807func (x *FileContent) String() string {
808 return protoimpl.X.MessageStringOf(x)
809}
810
811func (*FileContent) ProtoMessage() {}
812
813func (x *FileContent) ProtoReflect() protoreflect.Message {
814 mi := &file_gitmirror_v1_gitmirror_proto_msgTypes[12]
815 if x != nil {
816 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
817 if ms.LoadMessageInfo() == nil {
818 ms.StoreMessageInfo(mi)
819 }
820 return ms
821 }
822 return mi.MessageOf(x)
823}
824
825// Deprecated: Use FileContent.ProtoReflect.Descriptor instead.
826func (*FileContent) Descriptor() ([]byte, []int) {
827 return file_gitmirror_v1_gitmirror_proto_rawDescGZIP(), []int{12}
828}
829
830func (x *FileContent) GetPath() string {
831 if x != nil {
832 return x.Path
833 }
834 return ""
835}
836
837func (x *FileContent) GetOid() string {
838 if x != nil {
839 return x.Oid
840 }
841 return ""
842}
843
844func (x *FileContent) GetSize() uint64 {
845 if x != nil {
846 return x.Size
847 }
848 return 0
849}
850
851func (x *FileContent) GetIsBinary() bool {
852 if x != nil {
853 return x.IsBinary
854 }
855 return false
856}
857
858func (x *FileContent) GetIsSubmodule() bool {
859 if x != nil {
860 return x.IsSubmodule
861 }
862 return false
863}
864
865func (x *FileContent) GetContent() []byte {
866 if x != nil {
867 return x.Content
868 }
869 return nil
870}
871
872// One aligned line pair; a side is absent (None) when unset.
873type LinePair struct {
874 state protoimpl.MessageState `protogen:"open.v1"`
875 Lhs *uint32 `protobuf:"varint,1,opt,name=lhs,proto3,oneof" json:"lhs,omitempty"`
876 Rhs *uint32 `protobuf:"varint,2,opt,name=rhs,proto3,oneof" json:"rhs,omitempty"`
877 unknownFields protoimpl.UnknownFields
878 sizeCache protoimpl.SizeCache
879}
880
881func (x *LinePair) Reset() {
882 *x = LinePair{}
883 mi := &file_gitmirror_v1_gitmirror_proto_msgTypes[13]
884 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
885 ms.StoreMessageInfo(mi)
886}
887
888func (x *LinePair) String() string {
889 return protoimpl.X.MessageStringOf(x)
890}
891
892func (*LinePair) ProtoMessage() {}
893
894func (x *LinePair) ProtoReflect() protoreflect.Message {
895 mi := &file_gitmirror_v1_gitmirror_proto_msgTypes[13]
896 if x != nil {
897 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
898 if ms.LoadMessageInfo() == nil {
899 ms.StoreMessageInfo(mi)
900 }
901 return ms
902 }
903 return mi.MessageOf(x)
904}
905
906// Deprecated: Use LinePair.ProtoReflect.Descriptor instead.
907func (*LinePair) Descriptor() ([]byte, []int) {
908 return file_gitmirror_v1_gitmirror_proto_rawDescGZIP(), []int{13}
909}
910
911func (x *LinePair) GetLhs() uint32 {
912 if x != nil && x.Lhs != nil {
913 return *x.Lhs
914 }
915 return 0
916}
917
918func (x *LinePair) GetRhs() uint32 {
919 if x != nil && x.Rhs != nil {
920 return *x.Rhs
921 }
922 return 0
923}
924
925type Hunk struct {
926 state protoimpl.MessageState `protogen:"open.v1"`
927 // LineNumber (u32) sets containing novel content per side.
928 NovelLhs []uint32 `protobuf:"varint,1,rep,packed,name=novel_lhs,json=novelLhs,proto3" json:"novel_lhs,omitempty"`
929 NovelRhs []uint32 `protobuf:"varint,2,rep,packed,name=novel_rhs,json=novelRhs,proto3" json:"novel_rhs,omitempty"`
930 Lines []*LinePair `protobuf:"bytes,3,rep,name=lines,proto3" json:"lines,omitempty"`
931 unknownFields protoimpl.UnknownFields
932 sizeCache protoimpl.SizeCache
933}
934
935func (x *Hunk) Reset() {
936 *x = Hunk{}
937 mi := &file_gitmirror_v1_gitmirror_proto_msgTypes[14]
938 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
939 ms.StoreMessageInfo(mi)
940}
941
942func (x *Hunk) String() string {
943 return protoimpl.X.MessageStringOf(x)
944}
945
946func (*Hunk) ProtoMessage() {}
947
948func (x *Hunk) ProtoReflect() protoreflect.Message {
949 mi := &file_gitmirror_v1_gitmirror_proto_msgTypes[14]
950 if x != nil {
951 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
952 if ms.LoadMessageInfo() == nil {
953 ms.StoreMessageInfo(mi)
954 }
955 return ms
956 }
957 return mi.MessageOf(x)
958}
959
960// Deprecated: Use Hunk.ProtoReflect.Descriptor instead.
961func (*Hunk) Descriptor() ([]byte, []int) {
962 return file_gitmirror_v1_gitmirror_proto_rawDescGZIP(), []int{14}
963}
964
965func (x *Hunk) GetNovelLhs() []uint32 {
966 if x != nil {
967 return x.NovelLhs
968 }
969 return nil
970}
971
972func (x *Hunk) GetNovelRhs() []uint32 {
973 if x != nil {
974 return x.NovelRhs
975 }
976 return nil
977}
978
979func (x *Hunk) GetLines() []*LinePair {
980 if x != nil {
981 return x.Lines
982 }
983 return nil
984}
985
986// Number of bytes per side when the files differ (Rust Option<(usize, usize)>).
987type ByteChanges struct {
988 state protoimpl.MessageState `protogen:"open.v1"`
989 Lhs uint64 `protobuf:"varint,1,opt,name=lhs,proto3" json:"lhs,omitempty"`
990 Rhs uint64 `protobuf:"varint,2,opt,name=rhs,proto3" json:"rhs,omitempty"`
991 unknownFields protoimpl.UnknownFields
992 sizeCache protoimpl.SizeCache
993}
994
995func (x *ByteChanges) Reset() {
996 *x = ByteChanges{}
997 mi := &file_gitmirror_v1_gitmirror_proto_msgTypes[15]
998 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
999 ms.StoreMessageInfo(mi)
1000}
1001
1002func (x *ByteChanges) String() string {
1003 return protoimpl.X.MessageStringOf(x)
1004}
1005
1006func (*ByteChanges) ProtoMessage() {}
1007
1008func (x *ByteChanges) ProtoReflect() protoreflect.Message {
1009 mi := &file_gitmirror_v1_gitmirror_proto_msgTypes[15]
1010 if x != nil {
1011 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1012 if ms.LoadMessageInfo() == nil {
1013 ms.StoreMessageInfo(mi)
1014 }
1015 return ms
1016 }
1017 return mi.MessageOf(x)
1018}
1019
1020// Deprecated: Use ByteChanges.ProtoReflect.Descriptor instead.
1021func (*ByteChanges) Descriptor() ([]byte, []int) {
1022 return file_gitmirror_v1_gitmirror_proto_rawDescGZIP(), []int{15}
1023}
1024
1025func (x *ByteChanges) GetLhs() uint64 {
1026 if x != nil {
1027 return x.Lhs
1028 }
1029 return 0
1030}
1031
1032func (x *ByteChanges) GetRhs() uint64 {
1033 if x != nil {
1034 return x.Rhs
1035 }
1036 return 0
1037}
1038
1039type FileDiff struct {
1040 state protoimpl.MessageState `protogen:"open.v1"`
1041 LhsSrc *FileContent `protobuf:"bytes,1,opt,name=lhs_src,json=lhsSrc,proto3" json:"lhs_src,omitempty"`
1042 RhsSrc *FileContent `protobuf:"bytes,2,opt,name=rhs_src,json=rhsSrc,proto3" json:"rhs_src,omitempty"`
1043 Hunks []*Hunk `protobuf:"bytes,3,rep,name=hunks,proto3" json:"hunks,omitempty"`
1044 HasByteChanges *ByteChanges `protobuf:"bytes,4,opt,name=has_byte_changes,json=hasByteChanges,proto3,oneof" json:"has_byte_changes,omitempty"`
1045 HasSyntacticChanges bool `protobuf:"varint,5,opt,name=has_syntactic_changes,json=hasSyntacticChanges,proto3" json:"has_syntactic_changes,omitempty"` // TODO: lhs_positions & rhs_positions
1046 unknownFields protoimpl.UnknownFields
1047 sizeCache protoimpl.SizeCache
1048}
1049
1050func (x *FileDiff) Reset() {
1051 *x = FileDiff{}
1052 mi := &file_gitmirror_v1_gitmirror_proto_msgTypes[16]
1053 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1054 ms.StoreMessageInfo(mi)
1055}
1056
1057func (x *FileDiff) String() string {
1058 return protoimpl.X.MessageStringOf(x)
1059}
1060
1061func (*FileDiff) ProtoMessage() {}
1062
1063func (x *FileDiff) ProtoReflect() protoreflect.Message {
1064 mi := &file_gitmirror_v1_gitmirror_proto_msgTypes[16]
1065 if x != nil {
1066 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1067 if ms.LoadMessageInfo() == nil {
1068 ms.StoreMessageInfo(mi)
1069 }
1070 return ms
1071 }
1072 return mi.MessageOf(x)
1073}
1074
1075// Deprecated: Use FileDiff.ProtoReflect.Descriptor instead.
1076func (*FileDiff) Descriptor() ([]byte, []int) {
1077 return file_gitmirror_v1_gitmirror_proto_rawDescGZIP(), []int{16}
1078}
1079
1080func (x *FileDiff) GetLhsSrc() *FileContent {
1081 if x != nil {
1082 return x.LhsSrc
1083 }
1084 return nil
1085}
1086
1087func (x *FileDiff) GetRhsSrc() *FileContent {
1088 if x != nil {
1089 return x.RhsSrc
1090 }
1091 return nil
1092}
1093
1094func (x *FileDiff) GetHunks() []*Hunk {
1095 if x != nil {
1096 return x.Hunks
1097 }
1098 return nil
1099}
1100
1101func (x *FileDiff) GetHasByteChanges() *ByteChanges {
1102 if x != nil {
1103 return x.HasByteChanges
1104 }
1105 return nil
1106}
1107
1108func (x *FileDiff) GetHasSyntacticChanges() bool {
1109 if x != nil {
1110 return x.HasSyntacticChanges
1111 }
1112 return false
1113}
1114
1115type GitCommit struct {
1116 state protoimpl.MessageState `protogen:"open.v1"`
1117 Oid string `protobuf:"bytes,1,opt,name=oid,proto3" json:"oid,omitempty"`
1118 Author *GitSignature `protobuf:"bytes,2,opt,name=author,proto3" json:"author,omitempty"`
1119 Committer *GitSignature `protobuf:"bytes,3,opt,name=committer,proto3" json:"committer,omitempty"`
1120 Message []byte `protobuf:"bytes,4,opt,name=message,proto3" json:"message,omitempty"`
1121 Parents []string `protobuf:"bytes,5,rep,name=parents,proto3" json:"parents,omitempty"`
1122 ExtraHeaders map[string]string `protobuf:"bytes,6,rep,name=extra_headers,json=extraHeaders,proto3" json:"extra_headers,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
1123 unknownFields protoimpl.UnknownFields
1124 sizeCache protoimpl.SizeCache
1125}
1126
1127func (x *GitCommit) Reset() {
1128 *x = GitCommit{}
1129 mi := &file_gitmirror_v1_gitmirror_proto_msgTypes[17]
1130 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1131 ms.StoreMessageInfo(mi)
1132}
1133
1134func (x *GitCommit) String() string {
1135 return protoimpl.X.MessageStringOf(x)
1136}
1137
1138func (*GitCommit) ProtoMessage() {}
1139
1140func (x *GitCommit) ProtoReflect() protoreflect.Message {
1141 mi := &file_gitmirror_v1_gitmirror_proto_msgTypes[17]
1142 if x != nil {
1143 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1144 if ms.LoadMessageInfo() == nil {
1145 ms.StoreMessageInfo(mi)
1146 }
1147 return ms
1148 }
1149 return mi.MessageOf(x)
1150}
1151
1152// Deprecated: Use GitCommit.ProtoReflect.Descriptor instead.
1153func (*GitCommit) Descriptor() ([]byte, []int) {
1154 return file_gitmirror_v1_gitmirror_proto_rawDescGZIP(), []int{17}
1155}
1156
1157func (x *GitCommit) GetOid() string {
1158 if x != nil {
1159 return x.Oid
1160 }
1161 return ""
1162}
1163
1164func (x *GitCommit) GetAuthor() *GitSignature {
1165 if x != nil {
1166 return x.Author
1167 }
1168 return nil
1169}
1170
1171func (x *GitCommit) GetCommitter() *GitSignature {
1172 if x != nil {
1173 return x.Committer
1174 }
1175 return nil
1176}
1177
1178func (x *GitCommit) GetMessage() []byte {
1179 if x != nil {
1180 return x.Message
1181 }
1182 return nil
1183}
1184
1185func (x *GitCommit) GetParents() []string {
1186 if x != nil {
1187 return x.Parents
1188 }
1189 return nil
1190}
1191
1192func (x *GitCommit) GetExtraHeaders() map[string]string {
1193 if x != nil {
1194 return x.ExtraHeaders
1195 }
1196 return nil
1197}
1198
1199type GitSignature struct {
1200 state protoimpl.MessageState `protogen:"open.v1"`
1201 Name []byte `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
1202 Email []byte `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
1203 Date *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=date,proto3" json:"date,omitempty"`
1204 unknownFields protoimpl.UnknownFields
1205 sizeCache protoimpl.SizeCache
1206}
1207
1208func (x *GitSignature) Reset() {
1209 *x = GitSignature{}
1210 mi := &file_gitmirror_v1_gitmirror_proto_msgTypes[18]
1211 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1212 ms.StoreMessageInfo(mi)
1213}
1214
1215func (x *GitSignature) String() string {
1216 return protoimpl.X.MessageStringOf(x)
1217}
1218
1219func (*GitSignature) ProtoMessage() {}
1220
1221func (x *GitSignature) ProtoReflect() protoreflect.Message {
1222 mi := &file_gitmirror_v1_gitmirror_proto_msgTypes[18]
1223 if x != nil {
1224 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1225 if ms.LoadMessageInfo() == nil {
1226 ms.StoreMessageInfo(mi)
1227 }
1228 return ms
1229 }
1230 return mi.MessageOf(x)
1231}
1232
1233// Deprecated: Use GitSignature.ProtoReflect.Descriptor instead.
1234func (*GitSignature) Descriptor() ([]byte, []int) {
1235 return file_gitmirror_v1_gitmirror_proto_rawDescGZIP(), []int{18}
1236}
1237
1238func (x *GitSignature) GetName() []byte {
1239 if x != nil {
1240 return x.Name
1241 }
1242 return nil
1243}
1244
1245func (x *GitSignature) GetEmail() []byte {
1246 if x != nil {
1247 return x.Email
1248 }
1249 return nil
1250}
1251
1252func (x *GitSignature) GetDate() *timestamppb.Timestamp {
1253 if x != nil {
1254 return x.Date
1255 }
1256 return nil
1257}
1258
1259var File_gitmirror_v1_gitmirror_proto protoreflect.FileDescriptor
1260
1261const file_gitmirror_v1_gitmirror_proto_rawDesc = "" +
1262 "\n" +
1263 "\x1cgitmirror/v1/gitmirror.proto\x12\fgitmirror.v1\x1a\x1fgoogle/protobuf/timestamp.proto\"9\n" +
1264 "\x11ResolveRevRequest\x12\x12\n" +
1265 "\x04repo\x18\x01 \x01(\tR\x04repo\x12\x10\n" +
1266 "\x03rev\x18\x02 \x01(\fR\x03rev\",\n" +
1267 "\x12ResolveRevResponse\x12\x16\n" +
1268 "\x06commit\x18\x01 \x01(\tR\x06commit\"8\n" +
1269 "\n" +
1270 "RepoCommit\x12\x12\n" +
1271 "\x04repo\x18\x01 \x01(\tR\x04repo\x12\x16\n" +
1272 "\x06commit\x18\x02 \x01(\fR\x06commit\"w\n" +
1273 "\x11MergeCheckRequest\x120\n" +
1274 "\x06target\x18\x01 \x01(\v2\x18.gitmirror.v1.RepoCommitR\x06target\x120\n" +
1275 "\x06source\x18\x02 \x01(\v2\x18.gitmirror.v1.RepoCommitR\x06source\"\x9f\x01\n" +
1276 "\x12MergeCheckResponse\x12#\n" +
1277 "\ris_conflicted\x18\x01 \x01(\bR\fisConflicted\x129\n" +
1278 "\tconflicts\x18\x02 \x03(\v2\x1b.gitmirror.v1.MergeConflictR\tconflicts\x12\x1d\n" +
1279 "\amessage\x18\x03 \x01(\tH\x00R\amessage\x88\x01\x01B\n" +
1280 "\n" +
1281 "\b_message\"C\n" +
1282 "\rMergeConflict\x12\x1a\n" +
1283 "\bfilename\x18\x01 \x01(\tR\bfilename\x12\x16\n" +
1284 "\x06reason\x18\x02 \x01(\tR\x06reason\"\xf4\x01\n" +
1285 "\x10CommitLogRequest\x12\x12\n" +
1286 "\x04repo\x18\x01 \x01(\tR\x04repo\x12\x16\n" +
1287 "\x06ranges\x18\x02 \x03(\fR\x06ranges\x12\x19\n" +
1288 "\ball_refs\x18\x03 \x01(\bR\aallRefs\x120\n" +
1289 "\x05after\x18\x04 \x01(\v2\x1a.google.protobuf.TimestampR\x05after\x122\n" +
1290 "\x06before\x18\x05 \x01(\v2\x1a.google.protobuf.TimestampR\x06before\x12\x1f\n" +
1291 "\vmax_commits\x18\x06 \x01(\rR\n" +
1292 "maxCommits\x12\x12\n" +
1293 "\x04skip\x18\a \x01(\rR\x04skip\"F\n" +
1294 "\x11CommitLogResponse\x121\n" +
1295 "\acommits\x18\x01 \x03(\v2\x17.gitmirror.v1.GitCommitR\acommits\"6\n" +
1296 "\x0eGetBlobRequest\x12\x12\n" +
1297 "\x04repo\x18\x01 \x01(\tR\x04repo\x12\x10\n" +
1298 "\x03oid\x18\x02 \x01(\tR\x03oid\"\x1f\n" +
1299 "\tBlobChunk\x12\x12\n" +
1300 "\x04data\x18\x01 \x01(\fR\x04data\"\xb3\x02\n" +
1301 "\vDiffRequest\x12,\n" +
1302 "\x04base\x18\x01 \x01(\v2\x18.gitmirror.v1.RepoCommitR\x04base\x12,\n" +
1303 "\x04head\x18\x02 \x01(\v2\x18.gitmirror.v1.RepoCommitR\x04head\x12Q\n" +
1304 "\x0fcomparison_type\x18\x03 \x01(\x0e2(.gitmirror.v1.DiffRequest.ComparisonTypeR\x0ecomparisonType\"u\n" +
1305 "\x0eComparisonType\x12\x1f\n" +
1306 "\x1bCOMPARISON_TYPE_UNSPECIFIED\x10\x00\x12 \n" +
1307 "\x1cCOMPARISON_TYPE_ONLY_IN_HEAD\x10\x01\x12 \n" +
1308 "\x1cCOMPARISON_TYPE_INTERSECTION\x10\x02\"\x92\x01\n" +
1309 "\x10InterdiffRequest\x12\x12\n" +
1310 "\x04repo\x18\x01 \x01(\tR\x04repo\x12\x1b\n" +
1311 "\tfrom_base\x18\x02 \x01(\fR\bfromBase\x12\x1b\n" +
1312 "\tfrom_head\x18\x03 \x01(\fR\bfromHead\x12\x17\n" +
1313 "\ato_base\x18\x04 \x01(\fR\x06toBase\x12\x17\n" +
1314 "\ato_head\x18\x05 \x01(\fR\x06toHead\"\xb2\x01\n" +
1315 "\vFileContent\x12\x12\n" +
1316 "\x04path\x18\x01 \x01(\tR\x04path\x12\x10\n" +
1317 "\x03oid\x18\x02 \x01(\tR\x03oid\x12\x12\n" +
1318 "\x04size\x18\x03 \x01(\x04R\x04size\x12\x1b\n" +
1319 "\tis_binary\x18\x04 \x01(\bR\bisBinary\x12!\n" +
1320 "\fis_submodule\x18\x05 \x01(\bR\visSubmodule\x12\x1d\n" +
1321 "\acontent\x18\x06 \x01(\fH\x00R\acontent\x88\x01\x01B\n" +
1322 "\n" +
1323 "\b_content\"H\n" +
1324 "\bLinePair\x12\x15\n" +
1325 "\x03lhs\x18\x01 \x01(\rH\x00R\x03lhs\x88\x01\x01\x12\x15\n" +
1326 "\x03rhs\x18\x02 \x01(\rH\x01R\x03rhs\x88\x01\x01B\x06\n" +
1327 "\x04_lhsB\x06\n" +
1328 "\x04_rhs\"n\n" +
1329 "\x04Hunk\x12\x1b\n" +
1330 "\tnovel_lhs\x18\x01 \x03(\rR\bnovelLhs\x12\x1b\n" +
1331 "\tnovel_rhs\x18\x02 \x03(\rR\bnovelRhs\x12,\n" +
1332 "\x05lines\x18\x03 \x03(\v2\x16.gitmirror.v1.LinePairR\x05lines\"1\n" +
1333 "\vByteChanges\x12\x10\n" +
1334 "\x03lhs\x18\x01 \x01(\x04R\x03lhs\x12\x10\n" +
1335 "\x03rhs\x18\x02 \x01(\x04R\x03rhs\"\xaf\x02\n" +
1336 "\bFileDiff\x122\n" +
1337 "\alhs_src\x18\x01 \x01(\v2\x19.gitmirror.v1.FileContentR\x06lhsSrc\x122\n" +
1338 "\arhs_src\x18\x02 \x01(\v2\x19.gitmirror.v1.FileContentR\x06rhsSrc\x12(\n" +
1339 "\x05hunks\x18\x03 \x03(\v2\x12.gitmirror.v1.HunkR\x05hunks\x12H\n" +
1340 "\x10has_byte_changes\x18\x04 \x01(\v2\x19.gitmirror.v1.ByteChangesH\x00R\x0ehasByteChanges\x88\x01\x01\x122\n" +
1341 "\x15has_syntactic_changes\x18\x05 \x01(\bR\x13hasSyntacticChangesB\x13\n" +
1342 "\x11_has_byte_changes\"\xd0\x02\n" +
1343 "\tGitCommit\x12\x10\n" +
1344 "\x03oid\x18\x01 \x01(\tR\x03oid\x122\n" +
1345 "\x06author\x18\x02 \x01(\v2\x1a.gitmirror.v1.GitSignatureR\x06author\x128\n" +
1346 "\tcommitter\x18\x03 \x01(\v2\x1a.gitmirror.v1.GitSignatureR\tcommitter\x12\x18\n" +
1347 "\amessage\x18\x04 \x01(\fR\amessage\x12\x18\n" +
1348 "\aparents\x18\x05 \x03(\tR\aparents\x12N\n" +
1349 "\rextra_headers\x18\x06 \x03(\v2).gitmirror.v1.GitCommit.ExtraHeadersEntryR\fextraHeaders\x1a?\n" +
1350 "\x11ExtraHeadersEntry\x12\x10\n" +
1351 "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
1352 "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"h\n" +
1353 "\fGitSignature\x12\x12\n" +
1354 "\x04name\x18\x01 \x01(\fR\x04name\x12\x14\n" +
1355 "\x05email\x18\x02 \x01(\fR\x05email\x12.\n" +
1356 "\x04date\x18\x03 \x01(\v2\x1a.google.protobuf.TimestampR\x04date2\xcc\x03\n" +
1357 "\x10GitMirrorService\x12N\n" +
1358 "\tCommitLog\x12\x1e.gitmirror.v1.CommitLogRequest\x1a\x1f.gitmirror.v1.CommitLogResponse0\x01\x12B\n" +
1359 "\aGetBlob\x12\x1c.gitmirror.v1.GetBlobRequest\x1a\x17.gitmirror.v1.BlobChunk0\x01\x12;\n" +
1360 "\x04Diff\x12\x19.gitmirror.v1.DiffRequest\x1a\x16.gitmirror.v1.FileDiff0\x01\x12E\n" +
1361 "\tInterdiff\x12\x1e.gitmirror.v1.InterdiffRequest\x1a\x16.gitmirror.v1.FileDiff0\x01\x12O\n" +
1362 "\n" +
1363 "MergeCheck\x12\x1f.gitmirror.v1.MergeCheckRequest\x1a .gitmirror.v1.MergeCheckResponse\x12O\n" +
1364 "\n" +
1365 "ResolveRev\x12\x1f.gitmirror.v1.ResolveRevRequest\x1a .gitmirror.v1.ResolveRevResponseB2Z0tangled.org/core/gitmirror/proto/gen;gitmirrorv1b\x06proto3"
1366
1367var (
1368 file_gitmirror_v1_gitmirror_proto_rawDescOnce sync.Once
1369 file_gitmirror_v1_gitmirror_proto_rawDescData []byte
1370)
1371
1372func file_gitmirror_v1_gitmirror_proto_rawDescGZIP() []byte {
1373 file_gitmirror_v1_gitmirror_proto_rawDescOnce.Do(func() {
1374 file_gitmirror_v1_gitmirror_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_gitmirror_v1_gitmirror_proto_rawDesc), len(file_gitmirror_v1_gitmirror_proto_rawDesc)))
1375 })
1376 return file_gitmirror_v1_gitmirror_proto_rawDescData
1377}
1378
1379var file_gitmirror_v1_gitmirror_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
1380var file_gitmirror_v1_gitmirror_proto_msgTypes = make([]protoimpl.MessageInfo, 20)
1381var file_gitmirror_v1_gitmirror_proto_goTypes = []any{
1382 (DiffRequest_ComparisonType)(0), // 0: gitmirror.v1.DiffRequest.ComparisonType
1383 (*ResolveRevRequest)(nil), // 1: gitmirror.v1.ResolveRevRequest
1384 (*ResolveRevResponse)(nil), // 2: gitmirror.v1.ResolveRevResponse
1385 (*RepoCommit)(nil), // 3: gitmirror.v1.RepoCommit
1386 (*MergeCheckRequest)(nil), // 4: gitmirror.v1.MergeCheckRequest
1387 (*MergeCheckResponse)(nil), // 5: gitmirror.v1.MergeCheckResponse
1388 (*MergeConflict)(nil), // 6: gitmirror.v1.MergeConflict
1389 (*CommitLogRequest)(nil), // 7: gitmirror.v1.CommitLogRequest
1390 (*CommitLogResponse)(nil), // 8: gitmirror.v1.CommitLogResponse
1391 (*GetBlobRequest)(nil), // 9: gitmirror.v1.GetBlobRequest
1392 (*BlobChunk)(nil), // 10: gitmirror.v1.BlobChunk
1393 (*DiffRequest)(nil), // 11: gitmirror.v1.DiffRequest
1394 (*InterdiffRequest)(nil), // 12: gitmirror.v1.InterdiffRequest
1395 (*FileContent)(nil), // 13: gitmirror.v1.FileContent
1396 (*LinePair)(nil), // 14: gitmirror.v1.LinePair
1397 (*Hunk)(nil), // 15: gitmirror.v1.Hunk
1398 (*ByteChanges)(nil), // 16: gitmirror.v1.ByteChanges
1399 (*FileDiff)(nil), // 17: gitmirror.v1.FileDiff
1400 (*GitCommit)(nil), // 18: gitmirror.v1.GitCommit
1401 (*GitSignature)(nil), // 19: gitmirror.v1.GitSignature
1402 nil, // 20: gitmirror.v1.GitCommit.ExtraHeadersEntry
1403 (*timestamppb.Timestamp)(nil), // 21: google.protobuf.Timestamp
1404}
1405var file_gitmirror_v1_gitmirror_proto_depIdxs = []int32{
1406 3, // 0: gitmirror.v1.MergeCheckRequest.target:type_name -> gitmirror.v1.RepoCommit
1407 3, // 1: gitmirror.v1.MergeCheckRequest.source:type_name -> gitmirror.v1.RepoCommit
1408 6, // 2: gitmirror.v1.MergeCheckResponse.conflicts:type_name -> gitmirror.v1.MergeConflict
1409 21, // 3: gitmirror.v1.CommitLogRequest.after:type_name -> google.protobuf.Timestamp
1410 21, // 4: gitmirror.v1.CommitLogRequest.before:type_name -> google.protobuf.Timestamp
1411 18, // 5: gitmirror.v1.CommitLogResponse.commits:type_name -> gitmirror.v1.GitCommit
1412 3, // 6: gitmirror.v1.DiffRequest.base:type_name -> gitmirror.v1.RepoCommit
1413 3, // 7: gitmirror.v1.DiffRequest.head:type_name -> gitmirror.v1.RepoCommit
1414 0, // 8: gitmirror.v1.DiffRequest.comparison_type:type_name -> gitmirror.v1.DiffRequest.ComparisonType
1415 14, // 9: gitmirror.v1.Hunk.lines:type_name -> gitmirror.v1.LinePair
1416 13, // 10: gitmirror.v1.FileDiff.lhs_src:type_name -> gitmirror.v1.FileContent
1417 13, // 11: gitmirror.v1.FileDiff.rhs_src:type_name -> gitmirror.v1.FileContent
1418 15, // 12: gitmirror.v1.FileDiff.hunks:type_name -> gitmirror.v1.Hunk
1419 16, // 13: gitmirror.v1.FileDiff.has_byte_changes:type_name -> gitmirror.v1.ByteChanges
1420 19, // 14: gitmirror.v1.GitCommit.author:type_name -> gitmirror.v1.GitSignature
1421 19, // 15: gitmirror.v1.GitCommit.committer:type_name -> gitmirror.v1.GitSignature
1422 20, // 16: gitmirror.v1.GitCommit.extra_headers:type_name -> gitmirror.v1.GitCommit.ExtraHeadersEntry
1423 21, // 17: gitmirror.v1.GitSignature.date:type_name -> google.protobuf.Timestamp
1424 7, // 18: gitmirror.v1.GitMirrorService.CommitLog:input_type -> gitmirror.v1.CommitLogRequest
1425 9, // 19: gitmirror.v1.GitMirrorService.GetBlob:input_type -> gitmirror.v1.GetBlobRequest
1426 11, // 20: gitmirror.v1.GitMirrorService.Diff:input_type -> gitmirror.v1.DiffRequest
1427 12, // 21: gitmirror.v1.GitMirrorService.Interdiff:input_type -> gitmirror.v1.InterdiffRequest
1428 4, // 22: gitmirror.v1.GitMirrorService.MergeCheck:input_type -> gitmirror.v1.MergeCheckRequest
1429 1, // 23: gitmirror.v1.GitMirrorService.ResolveRev:input_type -> gitmirror.v1.ResolveRevRequest
1430 8, // 24: gitmirror.v1.GitMirrorService.CommitLog:output_type -> gitmirror.v1.CommitLogResponse
1431 10, // 25: gitmirror.v1.GitMirrorService.GetBlob:output_type -> gitmirror.v1.BlobChunk
1432 17, // 26: gitmirror.v1.GitMirrorService.Diff:output_type -> gitmirror.v1.FileDiff
1433 17, // 27: gitmirror.v1.GitMirrorService.Interdiff:output_type -> gitmirror.v1.FileDiff
1434 5, // 28: gitmirror.v1.GitMirrorService.MergeCheck:output_type -> gitmirror.v1.MergeCheckResponse
1435 2, // 29: gitmirror.v1.GitMirrorService.ResolveRev:output_type -> gitmirror.v1.ResolveRevResponse
1436 24, // [24:30] is the sub-list for method output_type
1437 18, // [18:24] is the sub-list for method input_type
1438 18, // [18:18] is the sub-list for extension type_name
1439 18, // [18:18] is the sub-list for extension extendee
1440 0, // [0:18] is the sub-list for field type_name
1441}
1442
1443func init() { file_gitmirror_v1_gitmirror_proto_init() }
1444func file_gitmirror_v1_gitmirror_proto_init() {
1445 if File_gitmirror_v1_gitmirror_proto != nil {
1446 return
1447 }
1448 file_gitmirror_v1_gitmirror_proto_msgTypes[4].OneofWrappers = []any{}
1449 file_gitmirror_v1_gitmirror_proto_msgTypes[12].OneofWrappers = []any{}
1450 file_gitmirror_v1_gitmirror_proto_msgTypes[13].OneofWrappers = []any{}
1451 file_gitmirror_v1_gitmirror_proto_msgTypes[16].OneofWrappers = []any{}
1452 type x struct{}
1453 out := protoimpl.TypeBuilder{
1454 File: protoimpl.DescBuilder{
1455 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
1456 RawDescriptor: unsafe.Slice(unsafe.StringData(file_gitmirror_v1_gitmirror_proto_rawDesc), len(file_gitmirror_v1_gitmirror_proto_rawDesc)),
1457 NumEnums: 1,
1458 NumMessages: 20,
1459 NumExtensions: 0,
1460 NumServices: 1,
1461 },
1462 GoTypes: file_gitmirror_v1_gitmirror_proto_goTypes,
1463 DependencyIndexes: file_gitmirror_v1_gitmirror_proto_depIdxs,
1464 EnumInfos: file_gitmirror_v1_gitmirror_proto_enumTypes,
1465 MessageInfos: file_gitmirror_v1_gitmirror_proto_msgTypes,
1466 }.Build()
1467 File_gitmirror_v1_gitmirror_proto = out.File
1468 file_gitmirror_v1_gitmirror_proto_goTypes = nil
1469 file_gitmirror_v1_gitmirror_proto_depIdxs = nil
1470}