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,101 +1,40 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: praefect.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
|
-
optional :virtual_storage, :string, 1
|
33
|
-
optional :relative_path, :string, 2
|
34
|
-
end
|
35
|
-
add_message "gitaly.GetRepositoryMetadataResponse" do
|
36
|
-
optional :repository_id, :int64, 1
|
37
|
-
optional :virtual_storage, :string, 2
|
38
|
-
optional :relative_path, :string, 3
|
39
|
-
optional :replica_path, :string, 4
|
40
|
-
optional :primary, :string, 5
|
41
|
-
optional :generation, :int64, 6
|
42
|
-
repeated :replicas, :message, 7, "gitaly.GetRepositoryMetadataResponse.Replica"
|
43
|
-
end
|
44
|
-
add_message "gitaly.GetRepositoryMetadataResponse.Replica" do
|
45
|
-
optional :storage, :string, 1
|
46
|
-
optional :assigned, :bool, 2
|
47
|
-
optional :generation, :int64, 4
|
48
|
-
optional :healthy, :bool, 5
|
49
|
-
optional :valid_primary, :bool, 6
|
50
|
-
optional :verified_at, :message, 7, "google.protobuf.Timestamp"
|
51
|
-
end
|
52
|
-
add_message "gitaly.SetReplicationFactorRequest" do
|
53
|
-
optional :virtual_storage, :string, 1
|
54
|
-
optional :relative_path, :string, 2
|
55
|
-
optional :replication_factor, :int32, 3
|
56
|
-
end
|
57
|
-
add_message "gitaly.SetReplicationFactorResponse" do
|
58
|
-
repeated :storages, :string, 1
|
59
|
-
end
|
60
|
-
add_message "gitaly.SetAuthoritativeStorageRequest" do
|
61
|
-
optional :virtual_storage, :string, 1
|
62
|
-
optional :relative_path, :string, 2
|
63
|
-
optional :authoritative_storage, :string, 3
|
64
|
-
end
|
65
|
-
add_message "gitaly.SetAuthoritativeStorageResponse" do
|
66
|
-
end
|
67
|
-
add_message "gitaly.DatalossCheckRequest" do
|
68
|
-
optional :virtual_storage, :string, 1
|
69
|
-
optional :include_partially_replicated, :bool, 2
|
70
|
-
end
|
71
|
-
add_message "gitaly.DatalossCheckResponse" do
|
72
|
-
repeated :repositories, :message, 2, "gitaly.DatalossCheckResponse.Repository"
|
73
|
-
end
|
74
|
-
add_message "gitaly.DatalossCheckResponse.Repository" do
|
75
|
-
optional :relative_path, :string, 1
|
76
|
-
repeated :storages, :message, 2, "gitaly.DatalossCheckResponse.Repository.Storage"
|
77
|
-
optional :unavailable, :bool, 3
|
78
|
-
optional :primary, :string, 4
|
79
|
-
end
|
80
|
-
add_message "gitaly.DatalossCheckResponse.Repository.Storage" do
|
81
|
-
optional :name, :string, 1
|
82
|
-
optional :behind_by, :int64, 2
|
83
|
-
optional :assigned, :bool, 3
|
84
|
-
optional :healthy, :bool, 4
|
85
|
-
optional :valid_primary, :bool, 5
|
86
|
-
end
|
87
|
-
add_message "gitaly.RepositoryReplicasRequest" do
|
88
|
-
optional :repository, :message, 1, "gitaly.Repository"
|
89
|
-
end
|
90
|
-
add_message "gitaly.RepositoryReplicasResponse" do
|
91
|
-
optional :primary, :message, 1, "gitaly.RepositoryReplicasResponse.RepositoryDetails"
|
92
|
-
repeated :replicas, :message, 2, "gitaly.RepositoryReplicasResponse.RepositoryDetails"
|
93
|
-
end
|
94
|
-
add_message "gitaly.RepositoryReplicasResponse.RepositoryDetails" do
|
95
|
-
optional :repository, :message, 1, "gitaly.Repository"
|
96
|
-
optional :checksum, :string, 2
|
11
|
+
|
12
|
+
descriptor_data = "\n\x0epraefect.proto\x12\x06gitaly\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\nlint.proto\x1a\x0cshared.proto\"\xc6\x01\n\x15MarkUnverifiedRequest\x12\x17\n\rrepository_id\x18\x01 \x01(\x03H\x00\x12\x19\n\x0fvirtual_storage\x18\x02 \x01(\tH\x00\x12\x38\n\x07storage\x18\x03 \x01(\x0b\x32%.gitaly.MarkUnverifiedRequest.StorageH\x00\x1a\x33\n\x07Storage\x12\x17\n\x0fvirtual_storage\x18\x01 \x01(\t\x12\x0f\n\x07storage\x18\x02 \x01(\tB\n\n\x08selector\"1\n\x16MarkUnverifiedResponse\x12\x17\n\x0freplicas_marked\x18\x01 \x01(\x03\"\xb3\x01\n\x1cGetRepositoryMetadataRequest\x12\x17\n\rrepository_id\x18\x01 \x01(\x03H\x00\x12\x39\n\x04path\x18\x02 \x01(\x0b\x32).gitaly.GetRepositoryMetadataRequest.PathH\x00\x1a\x36\n\x04Path\x12\x17\n\x0fvirtual_storage\x18\x01 \x01(\t\x12\x15\n\rrelative_path\x18\x02 \x01(\tB\x07\n\x05query\"\xfe\x02\n\x1dGetRepositoryMetadataResponse\x12\x15\n\rrepository_id\x18\x01 \x01(\x03\x12\x17\n\x0fvirtual_storage\x18\x02 \x01(\t\x12\x15\n\rrelative_path\x18\x03 \x01(\t\x12\x14\n\x0creplica_path\x18\x04 \x01(\t\x12\x0f\n\x07primary\x18\x05 \x01(\t\x12\x12\n\ngeneration\x18\x06 \x01(\x03\x12?\n\x08replicas\x18\x07 \x03(\x0b\x32-.gitaly.GetRepositoryMetadataResponse.Replica\x1a\x99\x01\n\x07Replica\x12\x0f\n\x07storage\x18\x01 \x01(\t\x12\x10\n\x08\x61ssigned\x18\x02 \x01(\x08\x12\x12\n\ngeneration\x18\x04 \x01(\x03\x12\x0f\n\x07healthy\x18\x05 \x01(\x08\x12\x15\n\rvalid_primary\x18\x06 \x01(\x08\x12/\n\x0bverified_at\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"i\n\x1bSetReplicationFactorRequest\x12\x17\n\x0fvirtual_storage\x18\x01 \x01(\t\x12\x15\n\rrelative_path\x18\x02 \x01(\t\x12\x1a\n\x12replication_factor\x18\x03 \x01(\x05\"0\n\x1cSetReplicationFactorResponse\x12\x10\n\x08storages\x18\x01 \x03(\t\"o\n\x1eSetAuthoritativeStorageRequest\x12\x17\n\x0fvirtual_storage\x18\x01 \x01(\t\x12\x15\n\rrelative_path\x18\x02 \x01(\t\x12\x1d\n\x15\x61uthoritative_storage\x18\x03 \x01(\t\"!\n\x1fSetAuthoritativeStorageResponse\"U\n\x14\x44\x61talossCheckRequest\x12\x17\n\x0fvirtual_storage\x18\x01 \x01(\t\x12$\n\x1cinclude_partially_replicated\x18\x02 \x01(\x08\"\xcd\x02\n\x15\x44\x61talossCheckResponse\x12>\n\x0crepositories\x18\x02 \x03(\x0b\x32(.gitaly.DatalossCheckResponse.Repository\x1a\xf3\x01\n\nRepository\x12\x15\n\rrelative_path\x18\x01 \x01(\t\x12\x42\n\x08storages\x18\x02 \x03(\x0b\x32\x30.gitaly.DatalossCheckResponse.Repository.Storage\x12\x13\n\x0bunavailable\x18\x03 \x01(\x08\x12\x0f\n\x07primary\x18\x04 \x01(\t\x1a\x64\n\x07Storage\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x11\n\tbehind_by\x18\x02 \x01(\x03\x12\x10\n\x08\x61ssigned\x18\x03 \x01(\x08\x12\x0f\n\x07healthy\x18\x04 \x01(\x08\x12\x15\n\rvalid_primary\x18\x05 \x01(\x08\"C\n\x19RepositoryReplicasRequest\x12&\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.Repository\"\xfa\x01\n\x1aRepositoryReplicasResponse\x12\x45\n\x07primary\x18\x01 \x01(\x0b\x32\x34.gitaly.RepositoryReplicasResponse.RepositoryDetails\x12\x46\n\x08replicas\x18\x02 \x03(\x0b\x32\x34.gitaly.RepositoryReplicasResponse.RepositoryDetails\x1aM\n\x11RepositoryDetails\x12&\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.Repository\x12\x10\n\x08\x63hecksum\x18\x02 \x01(\t2\xcc\x04\n\x13PraefectInfoService\x12[\n\x12RepositoryReplicas\x12!.gitaly.RepositoryReplicasRequest\x1a\".gitaly.RepositoryReplicasResponse\x12L\n\rDatalossCheck\x12\x1c.gitaly.DatalossCheckRequest\x1a\x1d.gitaly.DatalossCheckResponse\x12j\n\x17SetAuthoritativeStorage\x12&.gitaly.SetAuthoritativeStorageRequest\x1a\'.gitaly.SetAuthoritativeStorageResponse\x12O\n\x0eMarkUnverified\x12\x1d.gitaly.MarkUnverifiedRequest\x1a\x1e.gitaly.MarkUnverifiedResponse\x12\x61\n\x14SetReplicationFactor\x12#.gitaly.SetReplicationFactorRequest\x1a$.gitaly.SetReplicationFactorResponse\x12\x64\n\x15GetRepositoryMetadata\x12$.gitaly.GetRepositoryMetadataRequest\x1a%.gitaly.GetRepositoryMetadataResponse\x1a\x04\xf0\x97(\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}"
|
97
34
|
end
|
98
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."
|
99
38
|
end
|
100
39
|
|
101
40
|
module Gitaly
|
data/ruby/proto/gitaly/ref_pb.rb
CHANGED
@@ -1,244 +1,47 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: ref.proto
|
3
4
|
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
4
7
|
require 'errors_pb'
|
5
8
|
require 'google/protobuf/timestamp_pb'
|
6
9
|
require 'lint_pb'
|
7
10
|
require 'shared_pb'
|
8
|
-
require 'google/protobuf'
|
9
11
|
|
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
|
-
end
|
35
|
-
add_enum "gitaly.FindLocalBranchesRequest.SortBy" do
|
36
|
-
value :NAME, 0
|
37
|
-
value :UPDATED_ASC, 1
|
38
|
-
value :UPDATED_DESC, 2
|
39
|
-
end
|
40
|
-
add_message "gitaly.FindLocalBranchesResponse" do
|
41
|
-
repeated :branches, :message, 1, "gitaly.FindLocalBranchResponse"
|
42
|
-
repeated :local_branches, :message, 2, "gitaly.Branch"
|
43
|
-
end
|
44
|
-
add_message "gitaly.FindLocalBranchResponse" do
|
45
|
-
optional :name, :bytes, 1
|
46
|
-
optional :commit_id, :string, 2
|
47
|
-
optional :commit_subject, :bytes, 3
|
48
|
-
optional :commit_author, :message, 4, "gitaly.FindLocalBranchCommitAuthor"
|
49
|
-
optional :commit_committer, :message, 5, "gitaly.FindLocalBranchCommitAuthor"
|
50
|
-
optional :commit, :message, 6, "gitaly.GitCommit"
|
51
|
-
end
|
52
|
-
add_message "gitaly.FindLocalBranchCommitAuthor" do
|
53
|
-
optional :name, :bytes, 1
|
54
|
-
optional :email, :bytes, 2
|
55
|
-
optional :date, :message, 3, "google.protobuf.Timestamp"
|
56
|
-
optional :timezone, :bytes, 4
|
57
|
-
end
|
58
|
-
add_message "gitaly.FindAllBranchesRequest" do
|
59
|
-
optional :repository, :message, 1, "gitaly.Repository"
|
60
|
-
optional :merged_only, :bool, 2
|
61
|
-
repeated :merged_branches, :bytes, 3
|
62
|
-
end
|
63
|
-
add_message "gitaly.FindAllBranchesResponse" do
|
64
|
-
repeated :branches, :message, 1, "gitaly.FindAllBranchesResponse.Branch"
|
65
|
-
end
|
66
|
-
add_message "gitaly.FindAllBranchesResponse.Branch" do
|
67
|
-
optional :name, :bytes, 1
|
68
|
-
optional :target, :message, 2, "gitaly.GitCommit"
|
69
|
-
end
|
70
|
-
add_message "gitaly.FindTagRequest" do
|
71
|
-
optional :repository, :message, 1, "gitaly.Repository"
|
72
|
-
optional :tag_name, :bytes, 2
|
73
|
-
end
|
74
|
-
add_message "gitaly.FindTagResponse" do
|
75
|
-
optional :tag, :message, 1, "gitaly.Tag"
|
76
|
-
end
|
77
|
-
add_message "gitaly.FindTagError" do
|
78
|
-
oneof :error do
|
79
|
-
optional :tag_not_found, :message, 1, "gitaly.ReferenceNotFoundError"
|
80
|
-
end
|
81
|
-
end
|
82
|
-
add_message "gitaly.FindAllTagsRequest" do
|
83
|
-
optional :repository, :message, 1, "gitaly.Repository"
|
84
|
-
optional :sort_by, :message, 2, "gitaly.FindAllTagsRequest.SortBy"
|
85
|
-
optional :pagination_params, :message, 3, "gitaly.PaginationParameter"
|
86
|
-
end
|
87
|
-
add_message "gitaly.FindAllTagsRequest.SortBy" do
|
88
|
-
optional :key, :enum, 1, "gitaly.FindAllTagsRequest.SortBy.Key"
|
89
|
-
optional :direction, :enum, 2, "gitaly.SortDirection"
|
90
|
-
end
|
91
|
-
add_enum "gitaly.FindAllTagsRequest.SortBy.Key" do
|
92
|
-
value :REFNAME, 0
|
93
|
-
value :CREATORDATE, 1
|
94
|
-
value :VERSION_REFNAME, 2
|
95
|
-
end
|
96
|
-
add_message "gitaly.FindAllTagsResponse" do
|
97
|
-
repeated :tags, :message, 1, "gitaly.Tag"
|
98
|
-
end
|
99
|
-
add_message "gitaly.RefExistsRequest" do
|
100
|
-
optional :repository, :message, 1, "gitaly.Repository"
|
101
|
-
optional :ref, :bytes, 2
|
102
|
-
end
|
103
|
-
add_message "gitaly.RefExistsResponse" do
|
104
|
-
optional :value, :bool, 1
|
105
|
-
end
|
106
|
-
add_message "gitaly.CreateBranchRequest" do
|
107
|
-
optional :repository, :message, 1, "gitaly.Repository"
|
108
|
-
optional :name, :bytes, 2
|
109
|
-
optional :start_point, :bytes, 3
|
110
|
-
end
|
111
|
-
add_message "gitaly.CreateBranchResponse" do
|
112
|
-
optional :status, :enum, 1, "gitaly.CreateBranchResponse.Status"
|
113
|
-
optional :branch, :message, 2, "gitaly.Branch"
|
114
|
-
end
|
115
|
-
add_enum "gitaly.CreateBranchResponse.Status" do
|
116
|
-
value :OK, 0
|
117
|
-
value :ERR_EXISTS, 1
|
118
|
-
value :ERR_INVALID, 2
|
119
|
-
value :ERR_INVALID_START_POINT, 3
|
120
|
-
end
|
121
|
-
add_message "gitaly.DeleteBranchRequest" do
|
122
|
-
optional :repository, :message, 1, "gitaly.Repository"
|
123
|
-
optional :name, :bytes, 2
|
124
|
-
end
|
125
|
-
add_message "gitaly.DeleteBranchResponse" do
|
126
|
-
end
|
127
|
-
add_message "gitaly.FindBranchRequest" do
|
128
|
-
optional :repository, :message, 1, "gitaly.Repository"
|
129
|
-
optional :name, :bytes, 2
|
130
|
-
end
|
131
|
-
add_message "gitaly.FindBranchResponse" do
|
132
|
-
optional :branch, :message, 1, "gitaly.Branch"
|
133
|
-
end
|
134
|
-
add_message "gitaly.DeleteRefsRequest" do
|
135
|
-
optional :repository, :message, 1, "gitaly.Repository"
|
136
|
-
repeated :except_with_prefix, :bytes, 2
|
137
|
-
repeated :refs, :bytes, 3
|
138
|
-
end
|
139
|
-
add_message "gitaly.DeleteRefsResponse" do
|
140
|
-
optional :git_error, :string, 1
|
141
|
-
end
|
142
|
-
add_message "gitaly.DeleteRefsError" do
|
143
|
-
oneof :error do
|
144
|
-
optional :invalid_format, :message, 1, "gitaly.InvalidRefFormatError"
|
145
|
-
optional :references_locked, :message, 2, "gitaly.ReferencesLockedError"
|
146
|
-
end
|
147
|
-
end
|
148
|
-
add_message "gitaly.ListBranchNamesContainingCommitRequest" do
|
149
|
-
optional :repository, :message, 1, "gitaly.Repository"
|
150
|
-
optional :commit_id, :string, 2
|
151
|
-
optional :limit, :uint32, 3
|
152
|
-
end
|
153
|
-
add_message "gitaly.ListBranchNamesContainingCommitResponse" do
|
154
|
-
repeated :branch_names, :bytes, 2
|
155
|
-
end
|
156
|
-
add_message "gitaly.ListTagNamesContainingCommitRequest" do
|
157
|
-
optional :repository, :message, 1, "gitaly.Repository"
|
158
|
-
optional :commit_id, :string, 2
|
159
|
-
optional :limit, :uint32, 3
|
160
|
-
end
|
161
|
-
add_message "gitaly.ListTagNamesContainingCommitResponse" do
|
162
|
-
repeated :tag_names, :bytes, 2
|
163
|
-
end
|
164
|
-
add_message "gitaly.GetTagSignaturesRequest" do
|
165
|
-
optional :repository, :message, 1, "gitaly.Repository"
|
166
|
-
repeated :tag_revisions, :string, 2
|
167
|
-
end
|
168
|
-
add_message "gitaly.GetTagSignaturesResponse" do
|
169
|
-
repeated :signatures, :message, 1, "gitaly.GetTagSignaturesResponse.TagSignature"
|
170
|
-
end
|
171
|
-
add_message "gitaly.GetTagSignaturesResponse.TagSignature" do
|
172
|
-
optional :tag_id, :string, 1
|
173
|
-
optional :signature, :bytes, 2
|
174
|
-
optional :content, :bytes, 3
|
175
|
-
end
|
176
|
-
add_message "gitaly.GetTagMessagesRequest" do
|
177
|
-
optional :repository, :message, 1, "gitaly.Repository"
|
178
|
-
repeated :tag_ids, :string, 3
|
179
|
-
end
|
180
|
-
add_message "gitaly.GetTagMessagesResponse" do
|
181
|
-
optional :message, :bytes, 2
|
182
|
-
optional :tag_id, :string, 3
|
183
|
-
end
|
184
|
-
add_message "gitaly.FindAllRemoteBranchesRequest" do
|
185
|
-
optional :repository, :message, 1, "gitaly.Repository"
|
186
|
-
optional :remote_name, :string, 2
|
187
|
-
end
|
188
|
-
add_message "gitaly.FindAllRemoteBranchesResponse" do
|
189
|
-
repeated :branches, :message, 1, "gitaly.Branch"
|
190
|
-
end
|
191
|
-
add_message "gitaly.PackRefsRequest" do
|
192
|
-
optional :repository, :message, 1, "gitaly.Repository"
|
193
|
-
end
|
194
|
-
add_message "gitaly.PackRefsResponse" do
|
195
|
-
end
|
196
|
-
add_message "gitaly.ListRefsRequest" do
|
197
|
-
optional :repository, :message, 1, "gitaly.Repository"
|
198
|
-
repeated :patterns, :bytes, 2
|
199
|
-
optional :head, :bool, 3
|
200
|
-
optional :sort_by, :message, 4, "gitaly.ListRefsRequest.SortBy"
|
201
|
-
repeated :pointing_at_oids, :bytes, 5
|
202
|
-
optional :peel_tags, :bool, 6
|
203
|
-
end
|
204
|
-
add_message "gitaly.ListRefsRequest.SortBy" do
|
205
|
-
optional :key, :enum, 1, "gitaly.ListRefsRequest.SortBy.Key"
|
206
|
-
optional :direction, :enum, 2, "gitaly.SortDirection"
|
207
|
-
end
|
208
|
-
add_enum "gitaly.ListRefsRequest.SortBy.Key" do
|
209
|
-
value :REFNAME, 0
|
210
|
-
value :CREATORDATE, 1
|
211
|
-
value :AUTHORDATE, 2
|
212
|
-
value :COMMITTERDATE, 3
|
213
|
-
end
|
214
|
-
add_message "gitaly.ListRefsResponse" do
|
215
|
-
repeated :references, :message, 1, "gitaly.ListRefsResponse.Reference"
|
216
|
-
end
|
217
|
-
add_message "gitaly.ListRefsResponse.Reference" do
|
218
|
-
optional :name, :bytes, 1
|
219
|
-
optional :target, :string, 2
|
220
|
-
optional :peeled_target, :string, 3
|
221
|
-
end
|
222
|
-
add_message "gitaly.FindRefsByOIDRequest" do
|
223
|
-
optional :repository, :message, 1, "gitaly.Repository"
|
224
|
-
optional :oid, :string, 2
|
225
|
-
repeated :ref_patterns, :string, 3
|
226
|
-
optional :sort_field, :string, 4
|
227
|
-
optional :limit, :uint32, 5
|
228
|
-
end
|
229
|
-
add_message "gitaly.FindRefsByOIDResponse" do
|
230
|
-
repeated :refs, :string, 1
|
12
|
+
|
13
|
+
descriptor_data = "\n\tref.proto\x12\x06gitaly\x1a\x0c\x65rrors.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\nlint.proto\x1a\x0cshared.proto\"L\n\x1c\x46indDefaultBranchNameRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\"-\n\x1d\x46indDefaultBranchNameResponse\x12\x0c\n\x04name\x18\x01 \x01(\x0c\"\xf1\x01\n\x18\x46indLocalBranchesRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x38\n\x07sort_by\x18\x02 \x01(\x0e\x32\'.gitaly.FindLocalBranchesRequest.SortBy\x12\x36\n\x11pagination_params\x18\x03 \x01(\x0b\x32\x1b.gitaly.PaginationParameter\"5\n\x06SortBy\x12\x08\n\x04NAME\x10\x00\x12\x0f\n\x0bUPDATED_ASC\x10\x01\x12\x10\n\x0cUPDATED_DESC\x10\x02\"v\n\x19\x46indLocalBranchesResponse\x12\x31\n\x08\x62ranches\x18\x01 \x03(\x0b\x32\x1f.gitaly.FindLocalBranchResponse\x12&\n\x0elocal_branches\x18\x02 \x03(\x0b\x32\x0e.gitaly.Branch\"\xf0\x01\n\x17\x46indLocalBranchResponse\x12\x0c\n\x04name\x18\x01 \x01(\x0c\x12\x11\n\tcommit_id\x18\x02 \x01(\t\x12\x16\n\x0e\x63ommit_subject\x18\x03 \x01(\x0c\x12:\n\rcommit_author\x18\x04 \x01(\x0b\x32#.gitaly.FindLocalBranchCommitAuthor\x12=\n\x10\x63ommit_committer\x18\x05 \x01(\x0b\x32#.gitaly.FindLocalBranchCommitAuthor\x12!\n\x06\x63ommit\x18\x06 \x01(\x0b\x32\x11.gitaly.GitCommit\"v\n\x1b\x46indLocalBranchCommitAuthor\x12\x0c\n\x04name\x18\x01 \x01(\x0c\x12\r\n\x05\x65mail\x18\x02 \x01(\x0c\x12(\n\x04\x64\x61te\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x10\n\x08timezone\x18\x04 \x01(\x0c\"t\n\x16\x46indAllBranchesRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x13\n\x0bmerged_only\x18\x02 \x01(\x08\x12\x17\n\x0fmerged_branches\x18\x03 \x03(\x0c\"\x8e\x01\n\x17\x46indAllBranchesResponse\x12\x38\n\x08\x62ranches\x18\x01 \x03(\x0b\x32&.gitaly.FindAllBranchesResponse.Branch\x1a\x39\n\x06\x42ranch\x12\x0c\n\x04name\x18\x01 \x01(\x0c\x12!\n\x06target\x18\x02 \x01(\x0b\x32\x11.gitaly.GitCommit\"P\n\x0e\x46indTagRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x10\n\x08tag_name\x18\x02 \x01(\x0c\"+\n\x0f\x46indTagResponse\x12\x18\n\x03tag\x18\x01 \x01(\x0b\x32\x0b.gitaly.Tag\"P\n\x0c\x46indTagError\x12\x37\n\rtag_not_found\x18\x01 \x01(\x0b\x32\x1e.gitaly.ReferenceNotFoundErrorH\x00\x42\x07\n\x05\x65rror\"\xd1\x02\n\x12\x46indAllTagsRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x32\n\x07sort_by\x18\x02 \x01(\x0b\x32!.gitaly.FindAllTagsRequest.SortBy\x12\x36\n\x11pagination_params\x18\x03 \x01(\x0b\x32\x1b.gitaly.PaginationParameter\x1a\xa0\x01\n\x06SortBy\x12\x32\n\x03key\x18\x01 \x01(\x0e\x32%.gitaly.FindAllTagsRequest.SortBy.Key\x12(\n\tdirection\x18\x02 \x01(\x0e\x32\x15.gitaly.SortDirection\"8\n\x03Key\x12\x0b\n\x07REFNAME\x10\x00\x12\x0f\n\x0b\x43REATORDATE\x10\x01\x12\x13\n\x0fVERSION_REFNAME\x10\x02\"0\n\x13\x46indAllTagsResponse\x12\x19\n\x04tags\x18\x01 \x03(\x0b\x32\x0b.gitaly.Tag\"M\n\x10RefExistsRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x0b\n\x03ref\x18\x02 \x01(\x0c\"\"\n\x11RefExistsResponse\x12\r\n\x05value\x18\x01 \x01(\x08\"f\n\x13\x43reateBranchRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x0c\n\x04name\x18\x02 \x01(\x0c\x12\x13\n\x0bstart_point\x18\x03 \x01(\x0c\"\xbb\x01\n\x14\x43reateBranchResponse\x12\x33\n\x06status\x18\x01 \x01(\x0e\x32#.gitaly.CreateBranchResponse.Status\x12\x1e\n\x06\x62ranch\x18\x02 \x01(\x0b\x32\x0e.gitaly.Branch\"N\n\x06Status\x12\x06\n\x02OK\x10\x00\x12\x0e\n\nERR_EXISTS\x10\x01\x12\x0f\n\x0b\x45RR_INVALID\x10\x02\x12\x1b\n\x17\x45RR_INVALID_START_POINT\x10\x03\"Q\n\x13\x44\x65leteBranchRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x0c\n\x04name\x18\x02 \x01(\x0c\"\x16\n\x14\x44\x65leteBranchResponse\"O\n\x11\x46indBranchRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x0c\n\x04name\x18\x02 \x01(\x0c\"4\n\x12\x46indBranchResponse\x12\x1e\n\x06\x62ranch\x18\x01 \x01(\x0b\x32\x0e.gitaly.Branch\"k\n\x11\x44\x65leteRefsRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x1a\n\x12\x65xcept_with_prefix\x18\x02 \x03(\x0c\x12\x0c\n\x04refs\x18\x03 \x03(\x0c\"\'\n\x12\x44\x65leteRefsResponse\x12\x11\n\tgit_error\x18\x01 \x01(\t\"\x8f\x01\n\x0f\x44\x65leteRefsError\x12\x37\n\x0einvalid_format\x18\x01 \x01(\x0b\x32\x1d.gitaly.InvalidRefFormatErrorH\x00\x12:\n\x11references_locked\x18\x02 \x01(\x0b\x32\x1d.gitaly.ReferencesLockedErrorH\x00\x42\x07\n\x05\x65rror\"x\n&ListBranchNamesContainingCommitRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x11\n\tcommit_id\x18\x02 \x01(\t\x12\r\n\x05limit\x18\x03 \x01(\r\"E\n\'ListBranchNamesContainingCommitResponse\x12\x14\n\x0c\x62ranch_names\x18\x02 \x03(\x0cJ\x04\x08\x01\x10\x02\"u\n#ListTagNamesContainingCommitRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x11\n\tcommit_id\x18\x02 \x01(\t\x12\r\n\x05limit\x18\x03 \x01(\r\"?\n$ListTagNamesContainingCommitResponse\x12\x11\n\ttag_names\x18\x02 \x03(\x0cJ\x04\x08\x01\x10\x02\"^\n\x17GetTagSignaturesRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x15\n\rtag_revisions\x18\x02 \x03(\t\"\xa1\x01\n\x18GetTagSignaturesResponse\x12\x41\n\nsignatures\x18\x01 \x03(\x0b\x32-.gitaly.GetTagSignaturesResponse.TagSignature\x1a\x42\n\x0cTagSignature\x12\x0e\n\x06tag_id\x18\x01 \x01(\t\x12\x11\n\tsignature\x18\x02 \x01(\x0c\x12\x0f\n\x07\x63ontent\x18\x03 \x01(\x0c\"g\n\x15GetTagMessagesRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x0f\n\x07tag_ids\x18\x03 \x03(\tJ\x04\x08\x02\x10\x03R\ttag_names\"I\n\x16GetTagMessagesResponse\x12\x0f\n\x07message\x18\x02 \x01(\x0c\x12\x0e\n\x06tag_id\x18\x03 \x01(\tJ\x04\x08\x01\x10\x02R\x08tag_name\"a\n\x1c\x46indAllRemoteBranchesRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x13\n\x0bremote_name\x18\x02 \x01(\t\"A\n\x1d\x46indAllRemoteBranchesResponse\x12 \n\x08\x62ranches\x18\x01 \x03(\x0b\x32\x0e.gitaly.Branch\"\xeb\x02\n\x0fListRefsRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x10\n\x08patterns\x18\x02 \x03(\x0c\x12\x0c\n\x04head\x18\x03 \x01(\x08\x12/\n\x07sort_by\x18\x04 \x01(\x0b\x32\x1e.gitaly.ListRefsRequest.SortBy\x12\x18\n\x10pointing_at_oids\x18\x05 \x03(\x0c\x12\x11\n\tpeel_tags\x18\x06 \x01(\x08\x1a\xab\x01\n\x06SortBy\x12/\n\x03key\x18\x01 \x01(\x0e\x32\".gitaly.ListRefsRequest.SortBy.Key\x12(\n\tdirection\x18\x02 \x01(\x0e\x32\x15.gitaly.SortDirection\"F\n\x03Key\x12\x0b\n\x07REFNAME\x10\x00\x12\x0f\n\x0b\x43REATORDATE\x10\x01\x12\x0e\n\nAUTHORDATE\x10\x02\x12\x11\n\rCOMMITTERDATE\x10\x03\"\x8c\x01\n\x10ListRefsResponse\x12\x36\n\nreferences\x18\x01 \x03(\x0b\x32\".gitaly.ListRefsResponse.Reference\x1a@\n\tReference\x12\x0c\n\x04name\x18\x01 \x01(\x0c\x12\x0e\n\x06target\x18\x02 \x01(\t\x12\x15\n\rpeeled_target\x18\x03 \x01(\t\"\x8a\x01\n\x14\x46indRefsByOIDRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x0b\n\x03oid\x18\x02 \x01(\t\x12\x14\n\x0cref_patterns\x18\x03 \x03(\t\x12\x12\n\nsort_field\x18\x04 \x01(\t\x12\r\n\x05limit\x18\x05 \x01(\r\"%\n\x15\x46indRefsByOIDResponse\x12\x0c\n\x04refs\x18\x01 \x03(\t2\x96\x0b\n\nRefService\x12l\n\x15\x46indDefaultBranchName\x12$.gitaly.FindDefaultBranchNameRequest\x1a%.gitaly.FindDefaultBranchNameResponse\"\x06\xfa\x97(\x02\x08\x02\x12\x62\n\x11\x46indLocalBranches\x12 .gitaly.FindLocalBranchesRequest\x1a!.gitaly.FindLocalBranchesResponse\"\x06\xfa\x97(\x02\x08\x02\x30\x01\x12\\\n\x0f\x46indAllBranches\x12\x1e.gitaly.FindAllBranchesRequest\x1a\x1f.gitaly.FindAllBranchesResponse\"\x06\xfa\x97(\x02\x08\x02\x30\x01\x12P\n\x0b\x46indAllTags\x12\x1a.gitaly.FindAllTagsRequest\x1a\x1b.gitaly.FindAllTagsResponse\"\x06\xfa\x97(\x02\x08\x02\x30\x01\x12\x42\n\x07\x46indTag\x12\x16.gitaly.FindTagRequest\x1a\x17.gitaly.FindTagResponse\"\x06\xfa\x97(\x02\x08\x02\x12n\n\x15\x46indAllRemoteBranches\x12$.gitaly.FindAllRemoteBranchesRequest\x1a%.gitaly.FindAllRemoteBranchesResponse\"\x06\xfa\x97(\x02\x08\x02\x30\x01\x12H\n\tRefExists\x12\x18.gitaly.RefExistsRequest\x1a\x19.gitaly.RefExistsResponse\"\x06\xfa\x97(\x02\x08\x02\x12K\n\nFindBranch\x12\x19.gitaly.FindBranchRequest\x1a\x1a.gitaly.FindBranchResponse\"\x06\xfa\x97(\x02\x08\x02\x12K\n\nDeleteRefs\x12\x19.gitaly.DeleteRefsRequest\x1a\x1a.gitaly.DeleteRefsResponse\"\x06\xfa\x97(\x02\x08\x01\x12\x8c\x01\n\x1fListBranchNamesContainingCommit\x12..gitaly.ListBranchNamesContainingCommitRequest\x1a/.gitaly.ListBranchNamesContainingCommitResponse\"\x06\xfa\x97(\x02\x08\x02\x30\x01\x12\x83\x01\n\x1cListTagNamesContainingCommit\x12+.gitaly.ListTagNamesContainingCommitRequest\x1a,.gitaly.ListTagNamesContainingCommitResponse\"\x06\xfa\x97(\x02\x08\x02\x30\x01\x12_\n\x10GetTagSignatures\x12\x1f.gitaly.GetTagSignaturesRequest\x1a .gitaly.GetTagSignaturesResponse\"\x06\xfa\x97(\x02\x08\x02\x30\x01\x12Y\n\x0eGetTagMessages\x12\x1d.gitaly.GetTagMessagesRequest\x1a\x1e.gitaly.GetTagMessagesResponse\"\x06\xfa\x97(\x02\x08\x02\x30\x01\x12G\n\x08ListRefs\x12\x17.gitaly.ListRefsRequest\x1a\x18.gitaly.ListRefsResponse\"\x06\xfa\x97(\x02\x08\x02\x30\x01\x12T\n\rFindRefsByOID\x12\x1c.gitaly.FindRefsByOIDRequest\x1a\x1d.gitaly.FindRefsByOIDResponse\"\x06\xfa\x97(\x02\x08\x02\x42\x34Z2gitlab.com/gitlab-org/gitaly/v16/proto/go/gitalypbb\x06proto3"
|
14
|
+
|
15
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
16
|
+
|
17
|
+
begin
|
18
|
+
pool.add_serialized_file(descriptor_data)
|
19
|
+
rescue TypeError => e
|
20
|
+
# Compatibility code: will be removed in the next major version.
|
21
|
+
require 'google/protobuf/descriptor_pb'
|
22
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
23
|
+
parsed.clear_dependency
|
24
|
+
serialized = parsed.class.encode(parsed)
|
25
|
+
file = pool.add_serialized_file(serialized)
|
26
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
27
|
+
imports = [
|
28
|
+
["gitaly.Repository", "shared.proto"],
|
29
|
+
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
30
|
+
["gitaly.ReferenceNotFoundError", "errors.proto"],
|
31
|
+
]
|
32
|
+
imports.each do |type_name, expected_filename|
|
33
|
+
import_file = pool.lookup(type_name).file_descriptor
|
34
|
+
if import_file.name != expected_filename
|
35
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
231
36
|
end
|
232
37
|
end
|
38
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
39
|
+
warn "This will become an error in the next major version."
|
233
40
|
end
|
234
41
|
|
235
42
|
module Gitaly
|
236
43
|
FindDefaultBranchNameRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindDefaultBranchNameRequest").msgclass
|
237
44
|
FindDefaultBranchNameResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindDefaultBranchNameResponse").msgclass
|
238
|
-
FindAllBranchNamesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindAllBranchNamesRequest").msgclass
|
239
|
-
FindAllBranchNamesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindAllBranchNamesResponse").msgclass
|
240
|
-
FindAllTagNamesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindAllTagNamesRequest").msgclass
|
241
|
-
FindAllTagNamesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindAllTagNamesResponse").msgclass
|
242
45
|
FindLocalBranchesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindLocalBranchesRequest").msgclass
|
243
46
|
FindLocalBranchesRequest::SortBy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindLocalBranchesRequest.SortBy").enummodule
|
244
47
|
FindLocalBranchesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindLocalBranchesResponse").msgclass
|
@@ -277,8 +80,6 @@ module Gitaly
|
|
277
80
|
GetTagMessagesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GetTagMessagesResponse").msgclass
|
278
81
|
FindAllRemoteBranchesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindAllRemoteBranchesRequest").msgclass
|
279
82
|
FindAllRemoteBranchesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindAllRemoteBranchesResponse").msgclass
|
280
|
-
PackRefsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.PackRefsRequest").msgclass
|
281
|
-
PackRefsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.PackRefsResponse").msgclass
|
282
83
|
ListRefsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ListRefsRequest").msgclass
|
283
84
|
ListRefsRequest::SortBy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ListRefsRequest.SortBy").msgclass
|
284
85
|
ListRefsRequest::SortBy::Key = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ListRefsRequest.SortBy.Key").enummodule
|
@@ -17,14 +17,6 @@ module Gitaly
|
|
17
17
|
|
18
18
|
# This comment is left unintentionally blank.
|
19
19
|
rpc :FindDefaultBranchName, ::Gitaly::FindDefaultBranchNameRequest, ::Gitaly::FindDefaultBranchNameResponse
|
20
|
-
# FindAllBranchNames is deprecated in favor of ListRefs
|
21
|
-
#
|
22
|
-
# https://gitlab.com/gitlab-org/gitaly/-/issues/3966
|
23
|
-
rpc :FindAllBranchNames, ::Gitaly::FindAllBranchNamesRequest, stream(::Gitaly::FindAllBranchNamesResponse)
|
24
|
-
# FindAllTagNames is deprecated in favor of ListRefs
|
25
|
-
#
|
26
|
-
# https://gitlab.com/gitlab-org/gitaly/-/issues/3966
|
27
|
-
rpc :FindAllTagNames, ::Gitaly::FindAllTagNamesRequest, stream(::Gitaly::FindAllTagNamesResponse)
|
28
20
|
# Return a stream so we can divide the response in chunks of branches
|
29
21
|
rpc :FindLocalBranches, ::Gitaly::FindLocalBranchesRequest, stream(::Gitaly::FindLocalBranchesResponse)
|
30
22
|
# This comment is left unintentionally blank.
|
@@ -55,8 +47,6 @@ module Gitaly
|
|
55
47
|
rpc :GetTagSignatures, ::Gitaly::GetTagSignaturesRequest, stream(::Gitaly::GetTagSignaturesResponse)
|
56
48
|
# This comment is left unintentionally blank.
|
57
49
|
rpc :GetTagMessages, ::Gitaly::GetTagMessagesRequest, stream(::Gitaly::GetTagMessagesResponse)
|
58
|
-
# PackRefs is deprecated in favor of OptimizeRepository.
|
59
|
-
rpc :PackRefs, ::Gitaly::PackRefsRequest, ::Gitaly::PackRefsResponse
|
60
50
|
# ListRefs returns a stream of all references in the repository. By default, pseudo-revisions like HEAD
|
61
51
|
# will not be returned by this RPC. Any symbolic references will be resolved to the object ID it is
|
62
52
|
# pointing at.
|
@@ -1,47 +1,38 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: remote.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
|
-
end
|
31
|
-
add_message "gitaly.FindRemoteRepositoryResponse" do
|
32
|
-
optional :exists, :bool, 1
|
33
|
-
end
|
34
|
-
add_message "gitaly.FindRemoteRootRefRequest" do
|
35
|
-
optional :repository, :message, 1, "gitaly.Repository"
|
36
|
-
optional :remote_url, :string, 3
|
37
|
-
optional :http_authorization_header, :string, 4
|
38
|
-
optional :http_host, :string, 5
|
39
|
-
optional :resolved_address, :string, 6
|
40
|
-
end
|
41
|
-
add_message "gitaly.FindRemoteRootRefResponse" do
|
42
|
-
optional :ref, :string, 1
|
10
|
+
|
11
|
+
descriptor_data = "\n\x0cremote.proto\x12\x06gitaly\x1a\nlint.proto\x1a\x0cshared.proto\"\xdb\x02\n\x19UpdateRemoteMirrorRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x38\n\x06remote\x18\x07 \x01(\x0b\x32(.gitaly.UpdateRemoteMirrorRequest.Remote\x12\x1e\n\x16only_branches_matching\x18\x03 \x03(\x0c\x12\x0f\n\x07ssh_key\x18\x04 \x01(\t\x12\x13\n\x0bknown_hosts\x18\x05 \x01(\t\x12\x1b\n\x13keep_divergent_refs\x18\x06 \x01(\x08\x1a\x63\n\x06Remote\x12\x0b\n\x03url\x18\x01 \x01(\t\x12!\n\x19http_authorization_header\x18\x02 \x01(\t\x12\x18\n\x10resolved_address\x18\x04 \x01(\tJ\x04\x08\x03\x10\x04R\thttp_hostJ\x04\x08\x02\x10\x03R\x08ref_name\"4\n\x1aUpdateRemoteMirrorResponse\x12\x16\n\x0e\x64ivergent_refs\x18\x01 \x03(\x0c\"I\n\x1b\x46indRemoteRepositoryRequest\x12\x0e\n\x06remote\x18\x01 \x01(\t\x12\x1a\n\x0cstorage_name\x18\x02 \x01(\tB\x04\x88\xc6,\x01\".\n\x1c\x46indRemoteRepositoryResponse\x12\x0e\n\x06\x65xists\x18\x01 \x01(\x08\"\xb8\x01\n\x18\x46indRemoteRootRefRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x12\n\nremote_url\x18\x03 \x01(\t\x12!\n\x19http_authorization_header\x18\x04 \x01(\t\x12\x18\n\x10resolved_address\x18\x06 \x01(\tJ\x04\x08\x02\x10\x03J\x04\x08\x05\x10\x06R\x06remoteR\thttp_host\"(\n\x19\x46indRemoteRootRefResponse\x12\x0b\n\x03ref\x18\x01 \x01(\t2\xc5\x02\n\rRemoteService\x12\x65\n\x12UpdateRemoteMirror\x12!.gitaly.UpdateRemoteMirrorRequest\x1a\".gitaly.UpdateRemoteMirrorResponse\"\x06\xfa\x97(\x02\x08\x02(\x01\x12k\n\x14\x46indRemoteRepository\x12#.gitaly.FindRemoteRepositoryRequest\x1a$.gitaly.FindRemoteRepositoryResponse\"\x08\xfa\x97(\x04\x08\x02\x10\x02\x12`\n\x11\x46indRemoteRootRef\x12 .gitaly.FindRemoteRootRefRequest\x1a!.gitaly.FindRemoteRootRefResponse\"\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}"
|
43
32
|
end
|
44
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."
|
45
36
|
end
|
46
37
|
|
47
38
|
module Gitaly
|