gitaly 15.11.0.pre.rc1 → 16.1.0.pre.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ruby/proto/gitaly/blob_pb.rb +27 -92
- data/ruby/proto/gitaly/cleanup_pb.rb +27 -14
- data/ruby/proto/gitaly/commit_pb.rb +28 -302
- data/ruby/proto/gitaly/conflicts_pb.rb +28 -44
- data/ruby/proto/gitaly/diff_pb.rb +27 -140
- data/ruby/proto/gitaly/errors_pb.rb +27 -67
- data/ruby/proto/gitaly/hook_pb.rb +27 -62
- data/ruby/proto/gitaly/internal_pb.rb +32 -9
- data/ruby/proto/gitaly/internal_services_pb.rb +3 -0
- data/ruby/proto/gitaly/lint_pb.rb +26 -16
- data/ruby/proto/gitaly/log_pb.rb +25 -19
- data/ruby/proto/gitaly/namespace_pb.rb +26 -28
- data/ruby/proto/gitaly/objectpool_pb.rb +27 -43
- data/ruby/proto/gitaly/objectpool_services_pb.rb +0 -7
- data/ruby/proto/gitaly/operations_pb.rb +29 -316
- data/ruby/proto/gitaly/praefect_pb.rb +28 -89
- data/ruby/proto/gitaly/ref_pb.rb +29 -228
- data/ruby/proto/gitaly/ref_services_pb.rb +0 -10
- data/ruby/proto/gitaly/remote_pb.rb +27 -36
- data/ruby/proto/gitaly/repository_pb.rb +27 -392
- data/ruby/proto/gitaly/repository_services_pb.rb +7 -13
- data/ruby/proto/gitaly/server_pb.rb +27 -52
- data/ruby/proto/gitaly/service_config_pb.rb +28 -35
- data/ruby/proto/gitaly/shared_pb.rb +27 -98
- data/ruby/proto/gitaly/smarthttp_pb.rb +27 -29
- data/ruby/proto/gitaly/ssh_pb.rb +27 -43
- data/ruby/proto/gitaly/transaction_pb.rb +27 -28
- data/ruby/proto/gitaly/version.rb +1 -1
- metadata +6 -6
@@ -1,56 +1,40 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: conflicts.proto
|
3
4
|
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
4
7
|
require 'google/protobuf/timestamp_pb'
|
5
8
|
require 'lint_pb'
|
6
9
|
require 'shared_pb'
|
7
|
-
require 'google/protobuf'
|
8
10
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
end
|
33
|
-
add_message "gitaly.ResolveConflictsRequestHeader" do
|
34
|
-
optional :repository, :message, 1, "gitaly.Repository"
|
35
|
-
optional :our_commit_oid, :string, 2
|
36
|
-
optional :target_repository, :message, 3, "gitaly.Repository"
|
37
|
-
optional :their_commit_oid, :string, 4
|
38
|
-
optional :source_branch, :bytes, 5
|
39
|
-
optional :target_branch, :bytes, 6
|
40
|
-
optional :commit_message, :bytes, 7
|
41
|
-
optional :user, :message, 8, "gitaly.User"
|
42
|
-
optional :timestamp, :message, 9, "google.protobuf.Timestamp"
|
43
|
-
end
|
44
|
-
add_message "gitaly.ResolveConflictsRequest" do
|
45
|
-
oneof :resolve_conflicts_request_payload do
|
46
|
-
optional :header, :message, 1, "gitaly.ResolveConflictsRequestHeader"
|
47
|
-
optional :files_json, :bytes, 2
|
48
|
-
end
|
49
|
-
end
|
50
|
-
add_message "gitaly.ResolveConflictsResponse" do
|
51
|
-
optional :resolution_error, :string, 1
|
11
|
+
|
12
|
+
descriptor_data = "\n\x0f\x63onflicts.proto\x12\x06gitaly\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\nlint.proto\x1a\x0cshared.proto\"\x98\x01\n\x18ListConflictFilesRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x16\n\x0eour_commit_oid\x18\x02 \x01(\t\x12\x18\n\x10their_commit_oid\x18\x03 \x01(\t\x12\x1c\n\x14\x61llow_tree_conflicts\x18\x04 \x01(\x08\"}\n\x12\x43onflictFileHeader\x12\x12\n\ncommit_oid\x18\x02 \x01(\t\x12\x12\n\ntheir_path\x18\x03 \x01(\x0c\x12\x10\n\x08our_path\x18\x04 \x01(\x0c\x12\x10\n\x08our_mode\x18\x05 \x01(\x05\x12\x15\n\rancestor_path\x18\x06 \x01(\x0cJ\x04\x08\x01\x10\x02\"h\n\x0c\x43onflictFile\x12,\n\x06header\x18\x01 \x01(\x0b\x32\x1a.gitaly.ConflictFileHeaderH\x00\x12\x11\n\x07\x63ontent\x18\x02 \x01(\x0cH\x00\x42\x17\n\x15\x63onflict_file_payload\"@\n\x19ListConflictFilesResponse\x12#\n\x05\x66iles\x18\x01 \x03(\x0b\x32\x14.gitaly.ConflictFile\"\xbf\x02\n\x1dResolveConflictsRequestHeader\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x16\n\x0eour_commit_oid\x18\x02 \x01(\t\x12-\n\x11target_repository\x18\x03 \x01(\x0b\x32\x12.gitaly.Repository\x12\x18\n\x10their_commit_oid\x18\x04 \x01(\t\x12\x15\n\rsource_branch\x18\x05 \x01(\x0c\x12\x15\n\rtarget_branch\x18\x06 \x01(\x0c\x12\x16\n\x0e\x63ommit_message\x18\x07 \x01(\x0c\x12\x1a\n\x04user\x18\x08 \x01(\x0b\x32\x0c.gitaly.User\x12-\n\ttimestamp\x18\t \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\x8d\x01\n\x17ResolveConflictsRequest\x12\x37\n\x06header\x18\x01 \x01(\x0b\x32%.gitaly.ResolveConflictsRequestHeaderH\x00\x12\x14\n\nfiles_json\x18\x02 \x01(\x0cH\x00\x42#\n!resolve_conflicts_request_payload\"4\n\x18ResolveConflictsResponse\x12\x18\n\x10resolution_error\x18\x01 \x01(\t2\xd7\x01\n\x10\x43onflictsService\x12\x62\n\x11ListConflictFiles\x12 .gitaly.ListConflictFilesRequest\x1a!.gitaly.ListConflictFilesResponse\"\x06\xfa\x97(\x02\x08\x02\x30\x01\x12_\n\x10ResolveConflicts\x12\x1f.gitaly.ResolveConflictsRequest\x1a .gitaly.ResolveConflictsResponse\"\x06\xfa\x97(\x02\x08\x01(\x01\x42\x34Z2gitlab.com/gitlab-org/gitaly/v16/proto/go/gitalypbb\x06proto3"
|
13
|
+
|
14
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
15
|
+
|
16
|
+
begin
|
17
|
+
pool.add_serialized_file(descriptor_data)
|
18
|
+
rescue TypeError => e
|
19
|
+
# Compatibility code: will be removed in the next major version.
|
20
|
+
require 'google/protobuf/descriptor_pb'
|
21
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
22
|
+
parsed.clear_dependency
|
23
|
+
serialized = parsed.class.encode(parsed)
|
24
|
+
file = pool.add_serialized_file(serialized)
|
25
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
26
|
+
imports = [
|
27
|
+
["gitaly.Repository", "shared.proto"],
|
28
|
+
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
29
|
+
]
|
30
|
+
imports.each do |type_name, expected_filename|
|
31
|
+
import_file = pool.lookup(type_name).file_descriptor
|
32
|
+
if import_file.name != expected_filename
|
33
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
52
34
|
end
|
53
35
|
end
|
36
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
37
|
+
warn "This will become an error in the next major version."
|
54
38
|
end
|
55
39
|
|
56
40
|
module Gitaly
|
@@ -1,151 +1,38 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: diff.proto
|
3
4
|
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
4
7
|
require 'lint_pb'
|
5
8
|
require 'shared_pb'
|
6
|
-
require 'google/protobuf'
|
7
9
|
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
value :DEFAULT, 0
|
31
|
-
value :WORDDIFF, 1
|
32
|
-
end
|
33
|
-
add_enum "gitaly.CommitDiffRequest.WhitespaceChanges" do
|
34
|
-
value :WHITESPACE_CHANGES_UNSPECIFIED, 0
|
35
|
-
value :WHITESPACE_CHANGES_IGNORE, 1
|
36
|
-
value :WHITESPACE_CHANGES_IGNORE_ALL, 2
|
37
|
-
end
|
38
|
-
add_message "gitaly.CommitDiffResponse" do
|
39
|
-
optional :from_path, :bytes, 1
|
40
|
-
optional :to_path, :bytes, 2
|
41
|
-
optional :from_id, :string, 3
|
42
|
-
optional :to_id, :string, 4
|
43
|
-
optional :old_mode, :int32, 5
|
44
|
-
optional :new_mode, :int32, 6
|
45
|
-
optional :binary, :bool, 7
|
46
|
-
optional :raw_patch_data, :bytes, 9
|
47
|
-
optional :end_of_patch, :bool, 10
|
48
|
-
optional :overflow_marker, :bool, 11
|
49
|
-
optional :collapsed, :bool, 12
|
50
|
-
optional :too_large, :bool, 13
|
51
|
-
end
|
52
|
-
add_message "gitaly.CommitDeltaRequest" do
|
53
|
-
optional :repository, :message, 1, "gitaly.Repository"
|
54
|
-
optional :left_commit_id, :string, 2
|
55
|
-
optional :right_commit_id, :string, 3
|
56
|
-
repeated :paths, :bytes, 4
|
57
|
-
end
|
58
|
-
add_message "gitaly.CommitDelta" do
|
59
|
-
optional :from_path, :bytes, 1
|
60
|
-
optional :to_path, :bytes, 2
|
61
|
-
optional :from_id, :string, 3
|
62
|
-
optional :to_id, :string, 4
|
63
|
-
optional :old_mode, :int32, 5
|
64
|
-
optional :new_mode, :int32, 6
|
65
|
-
end
|
66
|
-
add_message "gitaly.CommitDeltaResponse" do
|
67
|
-
repeated :deltas, :message, 1, "gitaly.CommitDelta"
|
68
|
-
end
|
69
|
-
add_message "gitaly.RawDiffRequest" do
|
70
|
-
optional :repository, :message, 1, "gitaly.Repository"
|
71
|
-
optional :left_commit_id, :string, 2
|
72
|
-
optional :right_commit_id, :string, 3
|
73
|
-
end
|
74
|
-
add_message "gitaly.RawDiffResponse" do
|
75
|
-
optional :data, :bytes, 1
|
76
|
-
end
|
77
|
-
add_message "gitaly.RawPatchRequest" do
|
78
|
-
optional :repository, :message, 1, "gitaly.Repository"
|
79
|
-
optional :left_commit_id, :string, 2
|
80
|
-
optional :right_commit_id, :string, 3
|
81
|
-
end
|
82
|
-
add_message "gitaly.RawPatchResponse" do
|
83
|
-
optional :data, :bytes, 1
|
84
|
-
end
|
85
|
-
add_message "gitaly.DiffStatsRequest" do
|
86
|
-
optional :repository, :message, 1, "gitaly.Repository"
|
87
|
-
optional :left_commit_id, :string, 2
|
88
|
-
optional :right_commit_id, :string, 3
|
89
|
-
end
|
90
|
-
add_message "gitaly.DiffStats" do
|
91
|
-
optional :path, :bytes, 1
|
92
|
-
optional :additions, :int32, 2
|
93
|
-
optional :deletions, :int32, 3
|
94
|
-
optional :old_path, :bytes, 4
|
95
|
-
end
|
96
|
-
add_message "gitaly.DiffStatsResponse" do
|
97
|
-
repeated :stats, :message, 1, "gitaly.DiffStats"
|
98
|
-
end
|
99
|
-
add_message "gitaly.FindChangedPathsRequest" do
|
100
|
-
optional :repository, :message, 1, "gitaly.Repository"
|
101
|
-
repeated :commits, :string, 2
|
102
|
-
repeated :requests, :message, 3, "gitaly.FindChangedPathsRequest.Request"
|
103
|
-
optional :merge_commit_diff_mode, :enum, 4, "gitaly.FindChangedPathsRequest.MergeCommitDiffMode"
|
104
|
-
end
|
105
|
-
add_message "gitaly.FindChangedPathsRequest.Request" do
|
106
|
-
oneof :type do
|
107
|
-
optional :tree_request, :message, 1, "gitaly.FindChangedPathsRequest.Request.TreeRequest"
|
108
|
-
optional :commit_request, :message, 2, "gitaly.FindChangedPathsRequest.Request.CommitRequest"
|
109
|
-
end
|
110
|
-
end
|
111
|
-
add_message "gitaly.FindChangedPathsRequest.Request.TreeRequest" do
|
112
|
-
optional :left_tree_revision, :string, 1
|
113
|
-
optional :right_tree_revision, :string, 2
|
114
|
-
end
|
115
|
-
add_message "gitaly.FindChangedPathsRequest.Request.CommitRequest" do
|
116
|
-
optional :commit_revision, :string, 1
|
117
|
-
repeated :parent_commit_revisions, :string, 2
|
118
|
-
end
|
119
|
-
add_enum "gitaly.FindChangedPathsRequest.MergeCommitDiffMode" do
|
120
|
-
value :MERGE_COMMIT_DIFF_MODE_UNSPECIFIED, 0
|
121
|
-
value :MERGE_COMMIT_DIFF_MODE_INCLUDE_MERGES, 1
|
122
|
-
value :MERGE_COMMIT_DIFF_MODE_ALL_PARENTS, 2
|
123
|
-
end
|
124
|
-
add_message "gitaly.FindChangedPathsResponse" do
|
125
|
-
repeated :paths, :message, 1, "gitaly.ChangedPaths"
|
126
|
-
end
|
127
|
-
add_message "gitaly.ChangedPaths" do
|
128
|
-
optional :path, :bytes, 1
|
129
|
-
optional :status, :enum, 2, "gitaly.ChangedPaths.Status"
|
130
|
-
optional :old_mode, :int32, 3
|
131
|
-
optional :new_mode, :int32, 4
|
132
|
-
end
|
133
|
-
add_enum "gitaly.ChangedPaths.Status" do
|
134
|
-
value :ADDED, 0
|
135
|
-
value :MODIFIED, 1
|
136
|
-
value :DELETED, 2
|
137
|
-
value :TYPE_CHANGE, 3
|
138
|
-
value :COPIED, 4
|
139
|
-
end
|
140
|
-
add_message "gitaly.GetPatchIDRequest" do
|
141
|
-
optional :repository, :message, 1, "gitaly.Repository"
|
142
|
-
optional :old_revision, :bytes, 2
|
143
|
-
optional :new_revision, :bytes, 3
|
144
|
-
end
|
145
|
-
add_message "gitaly.GetPatchIDResponse" do
|
146
|
-
optional :patch_id, :string, 1
|
10
|
+
|
11
|
+
descriptor_data = "\n\ndiff.proto\x12\x06gitaly\x1a\nlint.proto\x1a\x0cshared.proto\"\xc3\x06\n\x11\x43ommitDiffRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x16\n\x0eleft_commit_id\x18\x02 \x01(\t\x12\x17\n\x0fright_commit_id\x18\x03 \x01(\t\x12$\n\x18ignore_whitespace_change\x18\x04 \x01(\x08\x42\x02\x18\x01\x12\r\n\x05paths\x18\x05 \x03(\x0c\x12\x16\n\x0e\x63ollapse_diffs\x18\x06 \x01(\x08\x12\x16\n\x0e\x65nforce_limits\x18\x07 \x01(\x08\x12\x11\n\tmax_files\x18\x08 \x01(\x05\x12\x11\n\tmax_lines\x18\t \x01(\x05\x12\x11\n\tmax_bytes\x18\n \x01(\x05\x12\x17\n\x0fmax_patch_bytes\x18\x0e \x01(\x05\x12\x16\n\x0esafe_max_files\x18\x0b \x01(\x05\x12\x16\n\x0esafe_max_lines\x18\x0c \x01(\x05\x12\x16\n\x0esafe_max_bytes\x18\r \x01(\x05\x12\x35\n\tdiff_mode\x18\x0f \x01(\x0e\x32\".gitaly.CommitDiffRequest.DiffMode\x12h\n\"max_patch_bytes_for_file_extension\x18\x10 \x03(\x0b\x32<.gitaly.CommitDiffRequest.MaxPatchBytesForFileExtensionEntry\x12G\n\x12whitespace_changes\x18\x11 \x01(\x0e\x32+.gitaly.CommitDiffRequest.WhitespaceChanges\x1a\x44\n\"MaxPatchBytesForFileExtensionEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x05:\x02\x38\x01\"%\n\x08\x44iffMode\x12\x0b\n\x07\x44\x45\x46\x41ULT\x10\x00\x12\x0c\n\x08WORDDIFF\x10\x01\"y\n\x11WhitespaceChanges\x12\"\n\x1eWHITESPACE_CHANGES_UNSPECIFIED\x10\x00\x12\x1d\n\x19WHITESPACE_CHANGES_IGNORE\x10\x01\x12!\n\x1dWHITESPACE_CHANGES_IGNORE_ALL\x10\x02\"\xff\x01\n\x12\x43ommitDiffResponse\x12\x11\n\tfrom_path\x18\x01 \x01(\x0c\x12\x0f\n\x07to_path\x18\x02 \x01(\x0c\x12\x0f\n\x07\x66rom_id\x18\x03 \x01(\t\x12\r\n\x05to_id\x18\x04 \x01(\t\x12\x10\n\x08old_mode\x18\x05 \x01(\x05\x12\x10\n\x08new_mode\x18\x06 \x01(\x05\x12\x0e\n\x06\x62inary\x18\x07 \x01(\x08\x12\x16\n\x0eraw_patch_data\x18\t \x01(\x0c\x12\x14\n\x0c\x65nd_of_patch\x18\n \x01(\x08\x12\x17\n\x0foverflow_marker\x18\x0b \x01(\x08\x12\x11\n\tcollapsed\x18\x0c \x01(\x08\x12\x11\n\ttoo_large\x18\r \x01(\x08J\x04\x08\x08\x10\t\"\x82\x01\n\x12\x43ommitDeltaRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x16\n\x0eleft_commit_id\x18\x02 \x01(\t\x12\x17\n\x0fright_commit_id\x18\x03 \x01(\t\x12\r\n\x05paths\x18\x04 \x03(\x0c\"u\n\x0b\x43ommitDelta\x12\x11\n\tfrom_path\x18\x01 \x01(\x0c\x12\x0f\n\x07to_path\x18\x02 \x01(\x0c\x12\x0f\n\x07\x66rom_id\x18\x03 \x01(\t\x12\r\n\x05to_id\x18\x04 \x01(\t\x12\x10\n\x08old_mode\x18\x05 \x01(\x05\x12\x10\n\x08new_mode\x18\x06 \x01(\x05\":\n\x13\x43ommitDeltaResponse\x12#\n\x06\x64\x65ltas\x18\x01 \x03(\x0b\x32\x13.gitaly.CommitDelta\"o\n\x0eRawDiffRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x16\n\x0eleft_commit_id\x18\x02 \x01(\t\x12\x17\n\x0fright_commit_id\x18\x03 \x01(\t\"\x1f\n\x0fRawDiffResponse\x12\x0c\n\x04\x64\x61ta\x18\x01 \x01(\x0c\"p\n\x0fRawPatchRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x16\n\x0eleft_commit_id\x18\x02 \x01(\t\x12\x17\n\x0fright_commit_id\x18\x03 \x01(\t\" \n\x10RawPatchResponse\x12\x0c\n\x04\x64\x61ta\x18\x01 \x01(\x0c\"q\n\x10\x44iffStatsRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x16\n\x0eleft_commit_id\x18\x02 \x01(\t\x12\x17\n\x0fright_commit_id\x18\x03 \x01(\t\"Q\n\tDiffStats\x12\x0c\n\x04path\x18\x01 \x01(\x0c\x12\x11\n\tadditions\x18\x02 \x01(\x05\x12\x11\n\tdeletions\x18\x03 \x01(\x05\x12\x10\n\x08old_path\x18\x04 \x01(\x0c\"5\n\x11\x44iffStatsResponse\x12 \n\x05stats\x18\x01 \x03(\x0b\x32\x11.gitaly.DiffStats\"\xc4\x05\n\x17\x46indChangedPathsRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x13\n\x07\x63ommits\x18\x02 \x03(\tB\x02\x18\x01\x12\x39\n\x08requests\x18\x03 \x03(\x0b\x32\'.gitaly.FindChangedPathsRequest.Request\x12S\n\x16merge_commit_diff_mode\x18\x04 \x01(\x0e\x32\x33.gitaly.FindChangedPathsRequest.MergeCommitDiffMode\x1a\xc2\x02\n\x07Request\x12K\n\x0ctree_request\x18\x01 \x01(\x0b\x32\x33.gitaly.FindChangedPathsRequest.Request.TreeRequestH\x00\x12O\n\x0e\x63ommit_request\x18\x02 \x01(\x0b\x32\x35.gitaly.FindChangedPathsRequest.Request.CommitRequestH\x00\x1a\x46\n\x0bTreeRequest\x12\x1a\n\x12left_tree_revision\x18\x01 \x01(\t\x12\x1b\n\x13right_tree_revision\x18\x02 \x01(\t\x1aI\n\rCommitRequest\x12\x17\n\x0f\x63ommit_revision\x18\x01 \x01(\t\x12\x1f\n\x17parent_commit_revisions\x18\x02 \x03(\tB\x06\n\x04type\"\x90\x01\n\x13MergeCommitDiffMode\x12&\n\"MERGE_COMMIT_DIFF_MODE_UNSPECIFIED\x10\x00\x12)\n%MERGE_COMMIT_DIFF_MODE_INCLUDE_MERGES\x10\x01\x12&\n\"MERGE_COMMIT_DIFF_MODE_ALL_PARENTS\x10\x02\"?\n\x18\x46indChangedPathsResponse\x12#\n\x05paths\x18\x01 \x03(\x0b\x32\x14.gitaly.ChangedPaths\"\xba\x01\n\x0c\x43hangedPaths\x12\x0c\n\x04path\x18\x01 \x01(\x0c\x12+\n\x06status\x18\x02 \x01(\x0e\x32\x1b.gitaly.ChangedPaths.Status\x12\x10\n\x08old_mode\x18\x03 \x01(\x05\x12\x10\n\x08new_mode\x18\x04 \x01(\x05\"K\n\x06Status\x12\t\n\x05\x41\x44\x44\x45\x44\x10\x00\x12\x0c\n\x08MODIFIED\x10\x01\x12\x0b\n\x07\x44\x45LETED\x10\x02\x12\x0f\n\x0bTYPE_CHANGE\x10\x03\x12\n\n\x06\x43OPIED\x10\x04\"m\n\x11GetPatchIDRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x14\n\x0cold_revision\x18\x02 \x01(\x0c\x12\x14\n\x0cnew_revision\x18\x03 \x01(\x0c\"&\n\x12GetPatchIDResponse\x12\x10\n\x08patch_id\x18\x01 \x01(\t2\xb7\x04\n\x0b\x44iffService\x12M\n\nCommitDiff\x12\x19.gitaly.CommitDiffRequest\x1a\x1a.gitaly.CommitDiffResponse\"\x06\xfa\x97(\x02\x08\x02\x30\x01\x12P\n\x0b\x43ommitDelta\x12\x1a.gitaly.CommitDeltaRequest\x1a\x1b.gitaly.CommitDeltaResponse\"\x06\xfa\x97(\x02\x08\x02\x30\x01\x12\x44\n\x07RawDiff\x12\x16.gitaly.RawDiffRequest\x1a\x17.gitaly.RawDiffResponse\"\x06\xfa\x97(\x02\x08\x02\x30\x01\x12G\n\x08RawPatch\x12\x17.gitaly.RawPatchRequest\x1a\x18.gitaly.RawPatchResponse\"\x06\xfa\x97(\x02\x08\x02\x30\x01\x12J\n\tDiffStats\x12\x18.gitaly.DiffStatsRequest\x1a\x19.gitaly.DiffStatsResponse\"\x06\xfa\x97(\x02\x08\x02\x30\x01\x12_\n\x10\x46indChangedPaths\x12\x1f.gitaly.FindChangedPathsRequest\x1a .gitaly.FindChangedPathsResponse\"\x06\xfa\x97(\x02\x08\x02\x30\x01\x12K\n\nGetPatchID\x12\x19.gitaly.GetPatchIDRequest\x1a\x1a.gitaly.GetPatchIDResponse\"\x06\xfa\x97(\x02\x08\x02\x42\x34Z2gitlab.com/gitlab-org/gitaly/v16/proto/go/gitalypbb\x06proto3"
|
12
|
+
|
13
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
14
|
+
|
15
|
+
begin
|
16
|
+
pool.add_serialized_file(descriptor_data)
|
17
|
+
rescue TypeError => e
|
18
|
+
# Compatibility code: will be removed in the next major version.
|
19
|
+
require 'google/protobuf/descriptor_pb'
|
20
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
21
|
+
parsed.clear_dependency
|
22
|
+
serialized = parsed.class.encode(parsed)
|
23
|
+
file = pool.add_serialized_file(serialized)
|
24
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
25
|
+
imports = [
|
26
|
+
["gitaly.Repository", "shared.proto"],
|
27
|
+
]
|
28
|
+
imports.each do |type_name, expected_filename|
|
29
|
+
import_file = pool.lookup(type_name).file_descriptor
|
30
|
+
if import_file.name != expected_filename
|
31
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
147
32
|
end
|
148
33
|
end
|
34
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
35
|
+
warn "This will become an error in the next major version."
|
149
36
|
end
|
150
37
|
|
151
38
|
module Gitaly
|
@@ -1,77 +1,37 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: errors.proto
|
3
4
|
|
4
|
-
require 'google/protobuf/duration_pb'
|
5
5
|
require 'google/protobuf'
|
6
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
|
-
add_message "gitaly.NotAncestorError" do
|
32
|
-
optional :parent_revision, :bytes, 1
|
33
|
-
optional :child_revision, :bytes, 2
|
34
|
-
end
|
35
|
-
add_message "gitaly.ChangesAlreadyAppliedError" do
|
36
|
-
end
|
37
|
-
add_message "gitaly.MergeConflictError" do
|
38
|
-
repeated :conflicting_files, :bytes, 1
|
39
|
-
repeated :conflicting_commit_ids, :string, 2
|
40
|
-
end
|
41
|
-
add_message "gitaly.ReferencesLockedError" do
|
42
|
-
repeated :refs, :bytes, 1
|
43
|
-
end
|
44
|
-
add_message "gitaly.ReferenceExistsError" do
|
45
|
-
optional :reference_name, :bytes, 1
|
46
|
-
optional :oid, :string, 2
|
47
|
-
end
|
48
|
-
add_message "gitaly.ReferenceNotFoundError" do
|
49
|
-
optional :reference_name, :bytes, 1
|
50
|
-
end
|
51
|
-
add_message "gitaly.ReferenceUpdateError" do
|
52
|
-
optional :reference_name, :bytes, 1
|
53
|
-
optional :old_oid, :string, 2
|
54
|
-
optional :new_oid, :string, 3
|
55
|
-
end
|
56
|
-
add_message "gitaly.ResolveRevisionError" do
|
57
|
-
optional :revision, :bytes, 1
|
58
|
-
end
|
59
|
-
add_message "gitaly.LimitError" do
|
60
|
-
optional :error_message, :string, 1
|
61
|
-
optional :retry_after, :message, 2, "google.protobuf.Duration"
|
62
|
-
end
|
63
|
-
add_message "gitaly.CustomHookError" do
|
64
|
-
optional :stdout, :bytes, 1
|
65
|
-
optional :stderr, :bytes, 2
|
66
|
-
optional :hook_type, :enum, 3, "gitaly.CustomHookError.HookType"
|
67
|
-
end
|
68
|
-
add_enum "gitaly.CustomHookError.HookType" do
|
69
|
-
value :HOOK_TYPE_UNSPECIFIED, 0
|
70
|
-
value :HOOK_TYPE_PRERECEIVE, 1
|
71
|
-
value :HOOK_TYPE_UPDATE, 2
|
72
|
-
value :HOOK_TYPE_POSTRECEIVE, 3
|
7
|
+
require 'google/protobuf/duration_pb'
|
8
|
+
|
9
|
+
|
10
|
+
descriptor_data = "\n\x0c\x65rrors.proto\x12\x06gitaly\x1a\x1egoogle/protobuf/duration.proto\"]\n\x10\x41\x63\x63\x65ssCheckError\x12\x15\n\rerror_message\x18\x01 \x01(\t\x12\x10\n\x08protocol\x18\x02 \x01(\t\x12\x0f\n\x07user_id\x18\x03 \x01(\t\x12\x0f\n\x07\x63hanges\x18\x04 \x01(\x0c\"\xae\x02\n\nIndexError\x12\x0c\n\x04path\x18\x01 \x01(\x0c\x12\x30\n\nerror_type\x18\x02 \x01(\x0e\x32\x1c.gitaly.IndexError.ErrorType\"\xdf\x01\n\tErrorType\x12\x1a\n\x16\x45RROR_TYPE_UNSPECIFIED\x10\x00\x12\x19\n\x15\x45RROR_TYPE_EMPTY_PATH\x10\x01\x12\x1b\n\x17\x45RROR_TYPE_INVALID_PATH\x10\x02\x12\x1f\n\x1b\x45RROR_TYPE_DIRECTORY_EXISTS\x10\x03\x12\"\n\x1e\x45RROR_TYPE_DIRECTORY_TRAVERSAL\x10\x04\x12\x1a\n\x16\x45RROR_TYPE_FILE_EXISTS\x10\x05\x12\x1d\n\x19\x45RROR_TYPE_FILE_NOT_FOUND\x10\x06\"%\n\x15InvalidRefFormatError\x12\x0c\n\x04refs\x18\x02 \x03(\x0c\"C\n\x10NotAncestorError\x12\x17\n\x0fparent_revision\x18\x01 \x01(\x0c\x12\x16\n\x0e\x63hild_revision\x18\x02 \x01(\x0c\"\x1c\n\x1a\x43hangesAlreadyAppliedError\"O\n\x12MergeConflictError\x12\x19\n\x11\x63onflicting_files\x18\x01 \x03(\x0c\x12\x1e\n\x16\x63onflicting_commit_ids\x18\x02 \x03(\t\"%\n\x15ReferencesLockedError\x12\x0c\n\x04refs\x18\x01 \x03(\x0c\";\n\x14ReferenceExistsError\x12\x16\n\x0ereference_name\x18\x01 \x01(\x0c\x12\x0b\n\x03oid\x18\x02 \x01(\t\"0\n\x16ReferenceNotFoundError\x12\x16\n\x0ereference_name\x18\x01 \x01(\x0c\"P\n\x14ReferenceUpdateError\x12\x16\n\x0ereference_name\x18\x01 \x01(\x0c\x12\x0f\n\x07old_oid\x18\x02 \x01(\t\x12\x0f\n\x07new_oid\x18\x03 \x01(\t\"(\n\x14ResolveRevisionError\x12\x10\n\x08revision\x18\x01 \x01(\x0c\"S\n\nLimitError\x12\x15\n\rerror_message\x18\x01 \x01(\t\x12.\n\x0bretry_after\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\"\xd8\x01\n\x0f\x43ustomHookError\x12\x0e\n\x06stdout\x18\x01 \x01(\x0c\x12\x0e\n\x06stderr\x18\x02 \x01(\x0c\x12\x33\n\thook_type\x18\x03 \x01(\x0e\x32 .gitaly.CustomHookError.HookType\"p\n\x08HookType\x12\x19\n\x15HOOK_TYPE_UNSPECIFIED\x10\x00\x12\x18\n\x14HOOK_TYPE_PRERECEIVE\x10\x01\x12\x14\n\x10HOOK_TYPE_UPDATE\x10\x02\x12\x19\n\x15HOOK_TYPE_POSTRECEIVE\x10\x03\x42\x34Z2gitlab.com/gitlab-org/gitaly/v16/proto/go/gitalypbb\x06proto3"
|
11
|
+
|
12
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
13
|
+
|
14
|
+
begin
|
15
|
+
pool.add_serialized_file(descriptor_data)
|
16
|
+
rescue TypeError => e
|
17
|
+
# Compatibility code: will be removed in the next major version.
|
18
|
+
require 'google/protobuf/descriptor_pb'
|
19
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
20
|
+
parsed.clear_dependency
|
21
|
+
serialized = parsed.class.encode(parsed)
|
22
|
+
file = pool.add_serialized_file(serialized)
|
23
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
24
|
+
imports = [
|
25
|
+
["google.protobuf.Duration", "google/protobuf/duration.proto"],
|
26
|
+
]
|
27
|
+
imports.each do |type_name, expected_filename|
|
28
|
+
import_file = pool.lookup(type_name).file_descriptor
|
29
|
+
if import_file.name != expected_filename
|
30
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
73
31
|
end
|
74
32
|
end
|
33
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
34
|
+
warn "This will become an error in the next major version."
|
75
35
|
end
|
76
36
|
|
77
37
|
module Gitaly
|
@@ -1,73 +1,38 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: hook.proto
|
3
4
|
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
4
7
|
require 'lint_pb'
|
5
8
|
require 'shared_pb'
|
6
|
-
require 'google/protobuf'
|
7
9
|
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
optional :exit_status, :message, 3, "gitaly.ExitStatus"
|
31
|
-
end
|
32
|
-
add_message "gitaly.UpdateHookRequest" do
|
33
|
-
optional :repository, :message, 1, "gitaly.Repository"
|
34
|
-
repeated :environment_variables, :string, 2
|
35
|
-
optional :ref, :bytes, 3
|
36
|
-
optional :old_value, :string, 4
|
37
|
-
optional :new_value, :string, 5
|
38
|
-
end
|
39
|
-
add_message "gitaly.UpdateHookResponse" do
|
40
|
-
optional :stdout, :bytes, 1
|
41
|
-
optional :stderr, :bytes, 2
|
42
|
-
optional :exit_status, :message, 3, "gitaly.ExitStatus"
|
43
|
-
end
|
44
|
-
add_message "gitaly.ReferenceTransactionHookRequest" do
|
45
|
-
optional :repository, :message, 1, "gitaly.Repository"
|
46
|
-
repeated :environment_variables, :string, 2
|
47
|
-
optional :stdin, :bytes, 3
|
48
|
-
optional :state, :enum, 4, "gitaly.ReferenceTransactionHookRequest.State"
|
49
|
-
end
|
50
|
-
add_enum "gitaly.ReferenceTransactionHookRequest.State" do
|
51
|
-
value :PREPARED, 0
|
52
|
-
value :COMMITTED, 1
|
53
|
-
value :ABORTED, 2
|
54
|
-
end
|
55
|
-
add_message "gitaly.ReferenceTransactionHookResponse" do
|
56
|
-
optional :stdout, :bytes, 1
|
57
|
-
optional :stderr, :bytes, 2
|
58
|
-
optional :exit_status, :message, 3, "gitaly.ExitStatus"
|
59
|
-
end
|
60
|
-
add_message "gitaly.PackObjectsHookWithSidechannelRequest" do
|
61
|
-
optional :repository, :message, 1, "gitaly.Repository"
|
62
|
-
repeated :args, :string, 2
|
63
|
-
optional :gl_id, :string, 3
|
64
|
-
optional :gl_username, :string, 5
|
65
|
-
optional :git_protocol, :string, 6
|
66
|
-
optional :remote_ip, :string, 7
|
67
|
-
end
|
68
|
-
add_message "gitaly.PackObjectsHookWithSidechannelResponse" do
|
10
|
+
|
11
|
+
descriptor_data = "\n\nhook.proto\x12\x06gitaly\x1a\nlint.proto\x1a\x0cshared.proto\"\x8d\x01\n\x15PreReceiveHookRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x1d\n\x15\x65nvironment_variables\x18\x02 \x03(\t\x12\r\n\x05stdin\x18\x04 \x01(\x0c\x12\x18\n\x10git_push_options\x18\x05 \x03(\t\"a\n\x16PreReceiveHookResponse\x12\x0e\n\x06stdout\x18\x01 \x01(\x0c\x12\x0e\n\x06stderr\x18\x02 \x01(\x0c\x12\'\n\x0b\x65xit_status\x18\x03 \x01(\x0b\x32\x12.gitaly.ExitStatus\"\x8e\x01\n\x16PostReceiveHookRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x1d\n\x15\x65nvironment_variables\x18\x02 \x03(\t\x12\r\n\x05stdin\x18\x03 \x01(\x0c\x12\x18\n\x10git_push_options\x18\x04 \x03(\t\"b\n\x17PostReceiveHookResponse\x12\x0e\n\x06stdout\x18\x01 \x01(\x0c\x12\x0e\n\x06stderr\x18\x02 \x01(\x0c\x12\'\n\x0b\x65xit_status\x18\x03 \x01(\x0b\x32\x12.gitaly.ExitStatus\"\x93\x01\n\x11UpdateHookRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x1d\n\x15\x65nvironment_variables\x18\x02 \x03(\t\x12\x0b\n\x03ref\x18\x03 \x01(\x0c\x12\x11\n\told_value\x18\x04 \x01(\t\x12\x11\n\tnew_value\x18\x05 \x01(\t\"]\n\x12UpdateHookResponse\x12\x0e\n\x06stdout\x18\x01 \x01(\x0c\x12\x0e\n\x06stderr\x18\x02 \x01(\x0c\x12\'\n\x0b\x65xit_status\x18\x03 \x01(\x0b\x32\x12.gitaly.ExitStatus\"\xee\x01\n\x1fReferenceTransactionHookRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x1d\n\x15\x65nvironment_variables\x18\x02 \x03(\t\x12\r\n\x05stdin\x18\x03 \x01(\x0c\x12<\n\x05state\x18\x04 \x01(\x0e\x32-.gitaly.ReferenceTransactionHookRequest.State\"1\n\x05State\x12\x0c\n\x08PREPARED\x10\x00\x12\r\n\tCOMMITTED\x10\x01\x12\x0b\n\x07\x41\x42ORTED\x10\x02\"k\n ReferenceTransactionHookResponse\x12\x0e\n\x06stdout\x18\x01 \x01(\x0c\x12\x0e\n\x06stderr\x18\x02 \x01(\x0c\x12\'\n\x0b\x65xit_status\x18\x03 \x01(\x0b\x32\x12.gitaly.ExitStatus\"\xb0\x01\n%PackObjectsHookWithSidechannelRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x0c\n\x04\x61rgs\x18\x02 \x03(\t\x12\r\n\x05gl_id\x18\x03 \x01(\t\x12\x13\n\x0bgl_username\x18\x05 \x01(\t\x12\x14\n\x0cgit_protocol\x18\x06 \x01(\t\x12\x11\n\tremote_ip\x18\x07 \x01(\t\"(\n&PackObjectsHookWithSidechannelResponse2\x9e\x04\n\x0bHookService\x12[\n\x0ePreReceiveHook\x12\x1d.gitaly.PreReceiveHookRequest\x1a\x1e.gitaly.PreReceiveHookResponse\"\x06\xfa\x97(\x02\x08\x02(\x01\x30\x01\x12^\n\x0fPostReceiveHook\x12\x1e.gitaly.PostReceiveHookRequest\x1a\x1f.gitaly.PostReceiveHookResponse\"\x06\xfa\x97(\x02\x08\x02(\x01\x30\x01\x12M\n\nUpdateHook\x12\x19.gitaly.UpdateHookRequest\x1a\x1a.gitaly.UpdateHookResponse\"\x06\xfa\x97(\x02\x08\x02\x30\x01\x12y\n\x18ReferenceTransactionHook\x12\'.gitaly.ReferenceTransactionHookRequest\x1a(.gitaly.ReferenceTransactionHookResponse\"\x06\xfa\x97(\x02\x08\x02(\x01\x30\x01\x12\x87\x01\n\x1ePackObjectsHookWithSidechannel\x12-.gitaly.PackObjectsHookWithSidechannelRequest\x1a..gitaly.PackObjectsHookWithSidechannelResponse\"\x06\xfa\x97(\x02\x08\x02\x42\x34Z2gitlab.com/gitlab-org/gitaly/v16/proto/go/gitalypbb\x06proto3"
|
12
|
+
|
13
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
14
|
+
|
15
|
+
begin
|
16
|
+
pool.add_serialized_file(descriptor_data)
|
17
|
+
rescue TypeError => e
|
18
|
+
# Compatibility code: will be removed in the next major version.
|
19
|
+
require 'google/protobuf/descriptor_pb'
|
20
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
21
|
+
parsed.clear_dependency
|
22
|
+
serialized = parsed.class.encode(parsed)
|
23
|
+
file = pool.add_serialized_file(serialized)
|
24
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
25
|
+
imports = [
|
26
|
+
["gitaly.Repository", "shared.proto"],
|
27
|
+
]
|
28
|
+
imports.each do |type_name, expected_filename|
|
29
|
+
import_file = pool.lookup(type_name).file_descriptor
|
30
|
+
if import_file.name != expected_filename
|
31
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
69
32
|
end
|
70
33
|
end
|
34
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
35
|
+
warn "This will become an error in the next major version."
|
71
36
|
end
|
72
37
|
|
73
38
|
module Gitaly
|
@@ -1,23 +1,46 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: internal.proto
|
3
4
|
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
4
7
|
require 'google/protobuf/timestamp_pb'
|
5
8
|
require 'lint_pb'
|
6
|
-
require '
|
9
|
+
require 'shared_pb'
|
7
10
|
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
11
|
+
|
12
|
+
descriptor_data = "\n\x0einternal.proto\x12\x06gitaly\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\nlint.proto\x1a\x0cshared.proto\".\n\x10WalkReposRequest\x12\x1a\n\x0cstorage_name\x18\x01 \x01(\tB\x04\x88\xc6,\x01\"a\n\x11WalkReposResponse\x12\x15\n\rrelative_path\x18\x01 \x01(\t\x12\x35\n\x11modification_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xa9\x01\n\x12\x42\x61\x63kupReposRequest\x12\x31\n\x06header\x18\x01 \x01(\x0b\x32!.gitaly.BackupReposRequest.Header\x12.\n\x0crepositories\x18\x02 \x03(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x1a\x30\n\x06Header\x12\x11\n\tbackup_id\x18\x01 \x01(\t\x12\x13\n\x0bstorage_url\x18\x02 \x01(\t\"\x15\n\x13\x42\x61\x63kupReposResponse2\xb0\x01\n\x0eInternalGitaly\x12L\n\tWalkRepos\x12\x18.gitaly.WalkReposRequest\x1a\x19.gitaly.WalkReposResponse\"\x08\xfa\x97(\x04\x08\x02\x10\x02\x30\x01\x12P\n\x0b\x42\x61\x63kupRepos\x12\x1a.gitaly.BackupReposRequest\x1a\x1b.gitaly.BackupReposResponse\"\x06\xfa\x97(\x02\x08\x02(\x01\x42\x34Z2gitlab.com/gitlab-org/gitaly/v16/proto/go/gitalypbb\x06proto3"
|
13
|
+
|
14
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
15
|
+
|
16
|
+
begin
|
17
|
+
pool.add_serialized_file(descriptor_data)
|
18
|
+
rescue TypeError => e
|
19
|
+
# Compatibility code: will be removed in the next major version.
|
20
|
+
require 'google/protobuf/descriptor_pb'
|
21
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
22
|
+
parsed.clear_dependency
|
23
|
+
serialized = parsed.class.encode(parsed)
|
24
|
+
file = pool.add_serialized_file(serialized)
|
25
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
26
|
+
imports = [
|
27
|
+
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
28
|
+
["gitaly.Repository", "shared.proto"],
|
29
|
+
]
|
30
|
+
imports.each do |type_name, expected_filename|
|
31
|
+
import_file = pool.lookup(type_name).file_descriptor
|
32
|
+
if import_file.name != expected_filename
|
33
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
16
34
|
end
|
17
35
|
end
|
36
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
37
|
+
warn "This will become an error in the next major version."
|
18
38
|
end
|
19
39
|
|
20
40
|
module Gitaly
|
21
41
|
WalkReposRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.WalkReposRequest").msgclass
|
22
42
|
WalkReposResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.WalkReposResponse").msgclass
|
43
|
+
BackupReposRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.BackupReposRequest").msgclass
|
44
|
+
BackupReposRequest::Header = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.BackupReposRequest.Header").msgclass
|
45
|
+
BackupReposResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.BackupReposResponse").msgclass
|
23
46
|
end
|
@@ -19,6 +19,9 @@ module Gitaly
|
|
19
19
|
# WalkRepos walks the storage and streams back all known git repos on the
|
20
20
|
# requested storage
|
21
21
|
rpc :WalkRepos, ::Gitaly::WalkReposRequest, stream(::Gitaly::WalkReposResponse)
|
22
|
+
# BackupRepos triggers a backup for each repository in the stream. This RPC
|
23
|
+
# is intended to be used to coordinate backups within the gitaly cluster.
|
24
|
+
rpc :BackupRepos, stream(::Gitaly::BackupReposRequest), ::Gitaly::BackupReposResponse
|
22
25
|
end
|
23
26
|
|
24
27
|
Stub = Service.rpc_stub_class
|
@@ -1,26 +1,36 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: lint.proto
|
3
4
|
|
4
|
-
require 'google/protobuf/descriptor_pb'
|
5
5
|
require 'google/protobuf'
|
6
6
|
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
7
|
+
require 'google/protobuf/descriptor_pb'
|
8
|
+
|
9
|
+
|
10
|
+
descriptor_data = "\n\nlint.proto\x12\x06gitaly\x1a google/protobuf/descriptor.proto\"\xe5\x01\n\x0cOperationMsg\x12*\n\x02op\x18\x01 \x01(\x0e\x32\x1e.gitaly.OperationMsg.Operation\x12/\n\x0bscope_level\x18\x02 \x01(\x0e\x32\x1a.gitaly.OperationMsg.Scope\"D\n\tOperation\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x0b\n\x07MUTATOR\x10\x01\x12\x0c\n\x08\x41\x43\x43\x45SSOR\x10\x02\x12\x0f\n\x0bMAINTENANCE\x10\x03\"2\n\x05Scope\x12\x0e\n\nREPOSITORY\x10\x00\x12\x0b\n\x07STORAGE\x10\x02\"\x04\x08\x01\x10\x01*\x06SERVER:6\n\x0bintercepted\x12\x1f.google.protobuf.ServiceOptions\x18\xfe\x82\x05 \x01(\x08:G\n\x07op_type\x12\x1e.google.protobuf.MethodOptions\x18\xff\x82\x05 \x01(\x0b\x32\x14.gitaly.OperationMsg:<\n\x12intercepted_method\x12\x1e.google.protobuf.MethodOptions\x18\x80\x83\x05 \x01(\x08:0\n\x07storage\x12\x1d.google.protobuf.FieldOptions\x18\xe1\xc8\x05 \x01(\x08:3\n\nrepository\x12\x1d.google.protobuf.FieldOptions\x18\xe2\xc8\x05 \x01(\x08::\n\x11target_repository\x12\x1d.google.protobuf.FieldOptions\x18\xe3\xc8\x05 \x01(\x08:>\n\x15\x61\x64\x64itional_repository\x12\x1d.google.protobuf.FieldOptions\x18\xe4\xc8\x05 \x01(\x08\x42\x34Z2gitlab.com/gitlab-org/gitaly/v16/proto/go/gitalypbb\x06proto3"
|
11
|
+
|
12
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
13
|
+
|
14
|
+
begin
|
15
|
+
pool.add_serialized_file(descriptor_data)
|
16
|
+
rescue TypeError => e
|
17
|
+
# Compatibility code: will be removed in the next major version.
|
18
|
+
require 'google/protobuf/descriptor_pb'
|
19
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
20
|
+
parsed.clear_dependency
|
21
|
+
serialized = parsed.class.encode(parsed)
|
22
|
+
file = pool.add_serialized_file(serialized)
|
23
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
24
|
+
imports = [
|
25
|
+
]
|
26
|
+
imports.each do |type_name, expected_filename|
|
27
|
+
import_file = pool.lookup(type_name).file_descriptor
|
28
|
+
if import_file.name != expected_filename
|
29
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
22
30
|
end
|
23
31
|
end
|
32
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
33
|
+
warn "This will become an error in the next major version."
|
24
34
|
end
|
25
35
|
|
26
36
|
module Gitaly
|