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
data/ruby/proto/gitaly/log_pb.rb
CHANGED
@@ -1,29 +1,34 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: log.proto
|
3
4
|
|
4
5
|
require 'google/protobuf'
|
5
6
|
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
7
|
+
|
8
|
+
descriptor_data = "\n\tlog.proto\x12\x06gitaly\"\xd6\x03\n\x08LogEntry\x12;\n\x11reference_updates\x18\x01 \x03(\x0b\x32 .gitaly.LogEntry.ReferenceUpdate\x12\x43\n\x15\x64\x65\x66\x61ult_branch_update\x18\x02 \x01(\x0b\x32$.gitaly.LogEntry.DefaultBranchUpdate\x12?\n\x13\x63ustom_hooks_update\x18\x03 \x01(\x0b\x32\".gitaly.LogEntry.CustomHooksUpdate\x12\x15\n\rincludes_pack\x18\x04 \x01(\x08\x12@\n\x13repository_deletion\x18\x05 \x01(\x0b\x32#.gitaly.LogEntry.RepositoryDeletion\x1a:\n\x0fReferenceUpdate\x12\x16\n\x0ereference_name\x18\x01 \x01(\x0c\x12\x0f\n\x07new_oid\x18\x02 \x01(\x0c\x1a-\n\x13\x44\x65\x66\x61ultBranchUpdate\x12\x16\n\x0ereference_name\x18\x01 \x01(\x0c\x1a-\n\x11\x43ustomHooksUpdate\x12\x18\n\x10\x63ustom_hooks_tar\x18\x01 \x01(\x0c\x1a\x14\n\x12RepositoryDeletion\"\x1d\n\x08LogIndex\x12\x11\n\tlog_index\x18\x01 \x01(\x04\x42\x34Z2gitlab.com/gitlab-org/gitaly/v16/proto/go/gitalypbb\x06proto3"
|
9
|
+
|
10
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
11
|
+
|
12
|
+
begin
|
13
|
+
pool.add_serialized_file(descriptor_data)
|
14
|
+
rescue TypeError => e
|
15
|
+
# Compatibility code: will be removed in the next major version.
|
16
|
+
require 'google/protobuf/descriptor_pb'
|
17
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
18
|
+
parsed.clear_dependency
|
19
|
+
serialized = parsed.class.encode(parsed)
|
20
|
+
file = pool.add_serialized_file(serialized)
|
21
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
22
|
+
imports = [
|
23
|
+
]
|
24
|
+
imports.each do |type_name, expected_filename|
|
25
|
+
import_file = pool.lookup(type_name).file_descriptor
|
26
|
+
if import_file.name != expected_filename
|
27
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
25
28
|
end
|
26
29
|
end
|
30
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
31
|
+
warn "This will become an error in the next major version."
|
27
32
|
end
|
28
33
|
|
29
34
|
module Gitaly
|
@@ -31,5 +36,6 @@ module Gitaly
|
|
31
36
|
LogEntry::ReferenceUpdate = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.LogEntry.ReferenceUpdate").msgclass
|
32
37
|
LogEntry::DefaultBranchUpdate = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.LogEntry.DefaultBranchUpdate").msgclass
|
33
38
|
LogEntry::CustomHooksUpdate = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.LogEntry.CustomHooksUpdate").msgclass
|
39
|
+
LogEntry::RepositoryDeletion = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.LogEntry.RepositoryDeletion").msgclass
|
34
40
|
LogIndex = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.LogIndex").msgclass
|
35
41
|
end
|
@@ -1,38 +1,36 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: namespace.proto
|
3
4
|
|
4
|
-
require 'lint_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
|
-
end
|
31
|
-
add_message "gitaly.RemoveNamespaceResponse" do
|
32
|
-
end
|
33
|
-
add_message "gitaly.RenameNamespaceResponse" do
|
7
|
+
require 'lint_pb'
|
8
|
+
|
9
|
+
|
10
|
+
descriptor_data = "\n\x0fnamespace.proto\x12\x06gitaly\x1a\nlint.proto\"?\n\x13\x41\x64\x64NamespaceRequest\x12\x1a\n\x0cstorage_name\x18\x01 \x01(\tB\x04\x88\xc6,\x01\x12\x0c\n\x04name\x18\x02 \x01(\t\"B\n\x16RemoveNamespaceRequest\x12\x1a\n\x0cstorage_name\x18\x01 \x01(\tB\x04\x88\xc6,\x01\x12\x0c\n\x04name\x18\x02 \x01(\t\"N\n\x16RenameNamespaceRequest\x12\x1a\n\x0cstorage_name\x18\x01 \x01(\tB\x04\x88\xc6,\x01\x12\x0c\n\x04\x66rom\x18\x02 \x01(\t\x12\n\n\x02to\x18\x03 \x01(\t\"B\n\x16NamespaceExistsRequest\x12\x1a\n\x0cstorage_name\x18\x01 \x01(\tB\x04\x88\xc6,\x01\x12\x0c\n\x04name\x18\x02 \x01(\t\")\n\x17NamespaceExistsResponse\x12\x0e\n\x06\x65xists\x18\x01 \x01(\x08\"\x16\n\x14\x41\x64\x64NamespaceResponse\"\x19\n\x17RemoveNamespaceResponse\"\x19\n\x17RenameNamespaceResponse2\x81\x03\n\x10NamespaceService\x12S\n\x0c\x41\x64\x64Namespace\x12\x1b.gitaly.AddNamespaceRequest\x1a\x1c.gitaly.AddNamespaceResponse\"\x08\xfa\x97(\x04\x08\x01\x10\x02\x12\\\n\x0fRemoveNamespace\x12\x1e.gitaly.RemoveNamespaceRequest\x1a\x1f.gitaly.RemoveNamespaceResponse\"\x08\xfa\x97(\x04\x08\x01\x10\x02\x12\\\n\x0fRenameNamespace\x12\x1e.gitaly.RenameNamespaceRequest\x1a\x1f.gitaly.RenameNamespaceResponse\"\x08\xfa\x97(\x04\x08\x01\x10\x02\x12\\\n\x0fNamespaceExists\x12\x1e.gitaly.NamespaceExistsRequest\x1a\x1f.gitaly.NamespaceExistsResponse\"\x08\xfa\x97(\x04\x08\x02\x10\x02\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}"
|
34
30
|
end
|
35
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."
|
36
34
|
end
|
37
35
|
|
38
36
|
module Gitaly
|
@@ -1,52 +1,38 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: objectpool.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
|
-
add_message "gitaly.ReduplicateRepositoryResponse" do
|
31
|
-
end
|
32
|
-
add_message "gitaly.DisconnectGitAlternatesRequest" do
|
33
|
-
optional :repository, :message, 1, "gitaly.Repository"
|
34
|
-
end
|
35
|
-
add_message "gitaly.DisconnectGitAlternatesResponse" do
|
36
|
-
end
|
37
|
-
add_message "gitaly.FetchIntoObjectPoolRequest" do
|
38
|
-
optional :origin, :message, 1, "gitaly.Repository"
|
39
|
-
optional :object_pool, :message, 2, "gitaly.ObjectPool"
|
40
|
-
end
|
41
|
-
add_message "gitaly.FetchIntoObjectPoolResponse" do
|
42
|
-
end
|
43
|
-
add_message "gitaly.GetObjectPoolRequest" do
|
44
|
-
optional :repository, :message, 1, "gitaly.Repository"
|
45
|
-
end
|
46
|
-
add_message "gitaly.GetObjectPoolResponse" do
|
47
|
-
optional :object_pool, :message, 1, "gitaly.ObjectPool"
|
10
|
+
|
11
|
+
descriptor_data = "\n\x10objectpool.proto\x12\x06gitaly\x1a\nlint.proto\x1a\x0cshared.proto\"r\n\x17\x43reateObjectPoolRequest\x12-\n\x0bobject_pool\x18\x01 \x01(\x0b\x32\x12.gitaly.ObjectPoolB\x04\x98\xc6,\x01\x12(\n\x06origin\x18\x02 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\xa0\xc6,\x01\"\x1a\n\x18\x43reateObjectPoolResponse\"H\n\x17\x44\x65leteObjectPoolRequest\x12-\n\x0bobject_pool\x18\x01 \x01(\x0b\x32\x12.gitaly.ObjectPoolB\x04\x98\xc6,\x01\"\x1a\n\x18\x44\x65leteObjectPoolResponse\"\x80\x01\n!LinkRepositoryToObjectPoolRequest\x12-\n\x0bobject_pool\x18\x01 \x01(\x0b\x32\x12.gitaly.ObjectPoolB\x04\xa0\xc6,\x01\x12,\n\nrepository\x18\x02 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\"$\n\"LinkRepositoryToObjectPoolResponse\"N\n\x1e\x44isconnectGitAlternatesRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\"!\n\x1f\x44isconnectGitAlternatesResponse\"\x83\x01\n\x1a\x46\x65tchIntoObjectPoolRequest\x12(\n\x06origin\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\xa0\xc6,\x01\x12-\n\x0bobject_pool\x18\x02 \x01(\x0b\x32\x12.gitaly.ObjectPoolB\x04\x98\xc6,\x01J\x04\x08\x03\x10\x04R\x06repack\"\x1d\n\x1b\x46\x65tchIntoObjectPoolResponse\"D\n\x14GetObjectPoolRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\"@\n\x15GetObjectPoolResponse\x12\'\n\x0bobject_pool\x18\x01 \x01(\x0b\x32\x12.gitaly.ObjectPool2\x80\x05\n\x11ObjectPoolService\x12]\n\x10\x43reateObjectPool\x12\x1f.gitaly.CreateObjectPoolRequest\x1a .gitaly.CreateObjectPoolResponse\"\x06\xfa\x97(\x02\x08\x01\x12]\n\x10\x44\x65leteObjectPool\x12\x1f.gitaly.DeleteObjectPoolRequest\x1a .gitaly.DeleteObjectPoolResponse\"\x06\xfa\x97(\x02\x08\x01\x12{\n\x1aLinkRepositoryToObjectPool\x12).gitaly.LinkRepositoryToObjectPoolRequest\x1a*.gitaly.LinkRepositoryToObjectPoolResponse\"\x06\xfa\x97(\x02\x08\x01\x12r\n\x17\x44isconnectGitAlternates\x12&.gitaly.DisconnectGitAlternatesRequest\x1a\'.gitaly.DisconnectGitAlternatesResponse\"\x06\xfa\x97(\x02\x08\x01\x12\x66\n\x13\x46\x65tchIntoObjectPool\x12\".gitaly.FetchIntoObjectPoolRequest\x1a#.gitaly.FetchIntoObjectPoolResponse\"\x06\xfa\x97(\x02\x08\x01\x12T\n\rGetObjectPool\x12\x1c.gitaly.GetObjectPoolRequest\x1a\x1d.gitaly.GetObjectPoolResponse\"\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.ObjectPool", "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}"
|
48
32
|
end
|
49
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."
|
50
36
|
end
|
51
37
|
|
52
38
|
module Gitaly
|
@@ -56,8 +42,6 @@ module Gitaly
|
|
56
42
|
DeleteObjectPoolResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.DeleteObjectPoolResponse").msgclass
|
57
43
|
LinkRepositoryToObjectPoolRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.LinkRepositoryToObjectPoolRequest").msgclass
|
58
44
|
LinkRepositoryToObjectPoolResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.LinkRepositoryToObjectPoolResponse").msgclass
|
59
|
-
ReduplicateRepositoryRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ReduplicateRepositoryRequest").msgclass
|
60
|
-
ReduplicateRepositoryResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ReduplicateRepositoryResponse").msgclass
|
61
45
|
DisconnectGitAlternatesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.DisconnectGitAlternatesRequest").msgclass
|
62
46
|
DisconnectGitAlternatesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.DisconnectGitAlternatesResponse").msgclass
|
63
47
|
FetchIntoObjectPoolRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FetchIntoObjectPoolRequest").msgclass
|
@@ -47,13 +47,6 @@ module Gitaly
|
|
47
47
|
# LinkRepositoryToObjectPool links the specified repository to the object pool. Objects contained
|
48
48
|
# in the object pool will be deduplicated for this repository when repacking objects.
|
49
49
|
rpc :LinkRepositoryToObjectPool, ::Gitaly::LinkRepositoryToObjectPoolRequest, ::Gitaly::LinkRepositoryToObjectPoolResponse
|
50
|
-
# ReduplicateRepository will repack the objects in the object pool member so that the repository
|
51
|
-
# does not depend on the pool member anymore and can be removed from it. Note that this function
|
52
|
-
# is not safe for use.
|
53
|
-
#
|
54
|
-
# This RPC is deprecated. Please use DisconnectGitAlternates instead. It will be removed in
|
55
|
-
# Gitaly v16.0, refer to https://gitlab.com/gitlab-org/gitaly/-/issues/4655.
|
56
|
-
rpc :ReduplicateRepository, ::Gitaly::ReduplicateRepositoryRequest, ::Gitaly::ReduplicateRepositoryResponse
|
57
50
|
# DisconnectGitAlternates will disconnect the object pool member from its object pool. It will:
|
58
51
|
#
|
59
52
|
# 1. Link all objects from the object pool into the member repository. This essenitally
|
@@ -1,328 +1,42 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: operations.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
|
-
add_file("operations.proto", :syntax => :proto3) do
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
add_message "gitaly.UserUpdateBranchResponse" do
|
35
|
-
optional :pre_receive_error, :string, 1
|
36
|
-
end
|
37
|
-
add_message "gitaly.UserDeleteBranchRequest" do
|
38
|
-
optional :repository, :message, 1, "gitaly.Repository"
|
39
|
-
optional :branch_name, :bytes, 2
|
40
|
-
optional :user, :message, 3, "gitaly.User"
|
41
|
-
optional :expected_old_oid, :string, 4
|
42
|
-
end
|
43
|
-
add_message "gitaly.UserDeleteBranchResponse" do
|
44
|
-
optional :pre_receive_error, :string, 1
|
45
|
-
end
|
46
|
-
add_message "gitaly.UserDeleteBranchError" do
|
47
|
-
oneof :error do
|
48
|
-
optional :access_check, :message, 1, "gitaly.AccessCheckError"
|
49
|
-
optional :reference_update, :message, 2, "gitaly.ReferenceUpdateError"
|
50
|
-
optional :custom_hook, :message, 3, "gitaly.CustomHookError"
|
51
|
-
end
|
52
|
-
end
|
53
|
-
add_message "gitaly.UserDeleteTagRequest" do
|
54
|
-
optional :repository, :message, 1, "gitaly.Repository"
|
55
|
-
optional :tag_name, :bytes, 2
|
56
|
-
optional :user, :message, 3, "gitaly.User"
|
57
|
-
optional :expected_old_oid, :string, 4
|
58
|
-
end
|
59
|
-
add_message "gitaly.UserDeleteTagResponse" do
|
60
|
-
optional :pre_receive_error, :string, 1
|
61
|
-
end
|
62
|
-
add_message "gitaly.UserCreateTagRequest" do
|
63
|
-
optional :repository, :message, 1, "gitaly.Repository"
|
64
|
-
optional :tag_name, :bytes, 2
|
65
|
-
optional :user, :message, 3, "gitaly.User"
|
66
|
-
optional :target_revision, :bytes, 4
|
67
|
-
optional :message, :bytes, 5
|
68
|
-
optional :timestamp, :message, 7, "google.protobuf.Timestamp"
|
69
|
-
end
|
70
|
-
add_message "gitaly.UserCreateTagResponse" do
|
71
|
-
optional :tag, :message, 1, "gitaly.Tag"
|
72
|
-
optional :exists, :bool, 2
|
73
|
-
optional :pre_receive_error, :string, 3
|
74
|
-
end
|
75
|
-
add_message "gitaly.UserCreateTagError" do
|
76
|
-
oneof :error do
|
77
|
-
optional :access_check, :message, 1, "gitaly.AccessCheckError"
|
78
|
-
optional :reference_update, :message, 2, "gitaly.ReferenceUpdateError"
|
79
|
-
optional :custom_hook, :message, 3, "gitaly.CustomHookError"
|
80
|
-
optional :reference_exists, :message, 4, "gitaly.ReferenceExistsError"
|
81
|
-
end
|
82
|
-
end
|
83
|
-
add_message "gitaly.UserMergeBranchRequest" do
|
84
|
-
optional :repository, :message, 1, "gitaly.Repository"
|
85
|
-
optional :user, :message, 2, "gitaly.User"
|
86
|
-
optional :commit_id, :string, 3
|
87
|
-
optional :branch, :bytes, 4
|
88
|
-
optional :message, :bytes, 5
|
89
|
-
optional :timestamp, :message, 7, "google.protobuf.Timestamp"
|
90
|
-
optional :expected_old_oid, :string, 8
|
91
|
-
optional :apply, :bool, 6
|
92
|
-
end
|
93
|
-
add_message "gitaly.UserMergeBranchResponse" do
|
94
|
-
optional :commit_id, :string, 1
|
95
|
-
optional :branch_update, :message, 3, "gitaly.OperationBranchUpdate"
|
96
|
-
end
|
97
|
-
add_message "gitaly.UserMergeBranchError" do
|
98
|
-
oneof :error do
|
99
|
-
optional :access_check, :message, 1, "gitaly.AccessCheckError"
|
100
|
-
optional :reference_update, :message, 2, "gitaly.ReferenceUpdateError"
|
101
|
-
optional :custom_hook, :message, 3, "gitaly.CustomHookError"
|
102
|
-
optional :merge_conflict, :message, 4, "gitaly.MergeConflictError"
|
103
|
-
end
|
104
|
-
end
|
105
|
-
add_message "gitaly.UserMergeToRefRequest" do
|
106
|
-
optional :repository, :message, 1, "gitaly.Repository"
|
107
|
-
optional :user, :message, 2, "gitaly.User"
|
108
|
-
optional :source_sha, :string, 3
|
109
|
-
optional :branch, :bytes, 4
|
110
|
-
optional :target_ref, :bytes, 5
|
111
|
-
optional :message, :bytes, 6
|
112
|
-
optional :first_parent_ref, :bytes, 7
|
113
|
-
optional :allow_conflicts, :bool, 8
|
114
|
-
optional :timestamp, :message, 9, "google.protobuf.Timestamp"
|
115
|
-
end
|
116
|
-
add_message "gitaly.UserMergeToRefResponse" do
|
117
|
-
optional :commit_id, :string, 1
|
118
|
-
end
|
119
|
-
add_message "gitaly.OperationBranchUpdate" do
|
120
|
-
optional :commit_id, :string, 1
|
121
|
-
optional :repo_created, :bool, 2
|
122
|
-
optional :branch_created, :bool, 3
|
123
|
-
end
|
124
|
-
add_message "gitaly.UserFFBranchRequest" do
|
125
|
-
optional :repository, :message, 1, "gitaly.Repository"
|
126
|
-
optional :user, :message, 2, "gitaly.User"
|
127
|
-
optional :commit_id, :string, 3
|
128
|
-
optional :branch, :bytes, 4
|
129
|
-
optional :expected_old_oid, :string, 5
|
130
|
-
end
|
131
|
-
add_message "gitaly.UserFFBranchResponse" do
|
132
|
-
optional :branch_update, :message, 1, "gitaly.OperationBranchUpdate"
|
133
|
-
optional :pre_receive_error, :string, 2
|
134
|
-
end
|
135
|
-
add_message "gitaly.UserCherryPickRequest" do
|
136
|
-
optional :repository, :message, 1, "gitaly.Repository"
|
137
|
-
optional :user, :message, 2, "gitaly.User"
|
138
|
-
optional :commit, :message, 3, "gitaly.GitCommit"
|
139
|
-
optional :branch_name, :bytes, 4
|
140
|
-
optional :message, :bytes, 5
|
141
|
-
optional :start_branch_name, :bytes, 6
|
142
|
-
optional :start_repository, :message, 7, "gitaly.Repository"
|
143
|
-
optional :dry_run, :bool, 8
|
144
|
-
optional :timestamp, :message, 9, "google.protobuf.Timestamp"
|
145
|
-
optional :expected_old_oid, :string, 10
|
146
|
-
end
|
147
|
-
add_message "gitaly.UserCherryPickResponse" do
|
148
|
-
optional :branch_update, :message, 1, "gitaly.OperationBranchUpdate"
|
149
|
-
optional :create_tree_error, :string, 2
|
150
|
-
optional :commit_error, :string, 3
|
151
|
-
optional :pre_receive_error, :string, 4
|
152
|
-
optional :create_tree_error_code, :enum, 5, "gitaly.UserCherryPickResponse.CreateTreeError"
|
153
|
-
end
|
154
|
-
add_enum "gitaly.UserCherryPickResponse.CreateTreeError" do
|
155
|
-
value :NONE, 0
|
156
|
-
value :EMPTY, 1
|
157
|
-
value :CONFLICT, 2
|
158
|
-
end
|
159
|
-
add_message "gitaly.UserCherryPickError" do
|
160
|
-
oneof :error do
|
161
|
-
optional :cherry_pick_conflict, :message, 1, "gitaly.MergeConflictError"
|
162
|
-
optional :target_branch_diverged, :message, 2, "gitaly.NotAncestorError"
|
163
|
-
optional :changes_already_applied, :message, 3, "gitaly.ChangesAlreadyAppliedError"
|
164
|
-
optional :access_check, :message, 4, "gitaly.AccessCheckError"
|
165
|
-
end
|
166
|
-
end
|
167
|
-
add_message "gitaly.UserRevertRequest" do
|
168
|
-
optional :repository, :message, 1, "gitaly.Repository"
|
169
|
-
optional :user, :message, 2, "gitaly.User"
|
170
|
-
optional :commit, :message, 3, "gitaly.GitCommit"
|
171
|
-
optional :branch_name, :bytes, 4
|
172
|
-
optional :message, :bytes, 5
|
173
|
-
optional :start_branch_name, :bytes, 6
|
174
|
-
optional :start_repository, :message, 7, "gitaly.Repository"
|
175
|
-
optional :dry_run, :bool, 8
|
176
|
-
optional :timestamp, :message, 9, "google.protobuf.Timestamp"
|
177
|
-
optional :expected_old_oid, :string, 10
|
178
|
-
end
|
179
|
-
add_message "gitaly.UserRevertResponse" do
|
180
|
-
optional :branch_update, :message, 1, "gitaly.OperationBranchUpdate"
|
181
|
-
optional :create_tree_error, :string, 2
|
182
|
-
optional :commit_error, :string, 3
|
183
|
-
optional :pre_receive_error, :string, 4
|
184
|
-
optional :create_tree_error_code, :enum, 5, "gitaly.UserRevertResponse.CreateTreeError"
|
185
|
-
end
|
186
|
-
add_enum "gitaly.UserRevertResponse.CreateTreeError" do
|
187
|
-
value :NONE, 0
|
188
|
-
value :EMPTY, 1
|
189
|
-
value :CONFLICT, 2
|
190
|
-
end
|
191
|
-
add_message "gitaly.UserCommitFilesActionHeader" do
|
192
|
-
optional :action, :enum, 1, "gitaly.UserCommitFilesActionHeader.ActionType"
|
193
|
-
optional :file_path, :bytes, 2
|
194
|
-
optional :previous_path, :bytes, 3
|
195
|
-
optional :base64_content, :bool, 4
|
196
|
-
optional :execute_filemode, :bool, 5
|
197
|
-
optional :infer_content, :bool, 6
|
198
|
-
end
|
199
|
-
add_enum "gitaly.UserCommitFilesActionHeader.ActionType" do
|
200
|
-
value :CREATE, 0
|
201
|
-
value :CREATE_DIR, 1
|
202
|
-
value :UPDATE, 2
|
203
|
-
value :MOVE, 3
|
204
|
-
value :DELETE, 4
|
205
|
-
value :CHMOD, 5
|
206
|
-
end
|
207
|
-
add_message "gitaly.UserCommitFilesAction" do
|
208
|
-
oneof :user_commit_files_action_payload do
|
209
|
-
optional :header, :message, 1, "gitaly.UserCommitFilesActionHeader"
|
210
|
-
optional :content, :bytes, 2
|
211
|
-
end
|
212
|
-
end
|
213
|
-
add_message "gitaly.UserCommitFilesRequestHeader" do
|
214
|
-
optional :repository, :message, 1, "gitaly.Repository"
|
215
|
-
optional :user, :message, 2, "gitaly.User"
|
216
|
-
optional :branch_name, :bytes, 3
|
217
|
-
optional :commit_message, :bytes, 4
|
218
|
-
optional :commit_author_name, :bytes, 5
|
219
|
-
optional :commit_author_email, :bytes, 6
|
220
|
-
optional :start_branch_name, :bytes, 7
|
221
|
-
optional :start_repository, :message, 8, "gitaly.Repository"
|
222
|
-
optional :force, :bool, 9
|
223
|
-
optional :start_sha, :string, 10
|
224
|
-
optional :timestamp, :message, 11, "google.protobuf.Timestamp"
|
225
|
-
optional :expected_old_oid, :string, 12
|
226
|
-
end
|
227
|
-
add_message "gitaly.UserCommitFilesRequest" do
|
228
|
-
oneof :user_commit_files_request_payload do
|
229
|
-
optional :header, :message, 1, "gitaly.UserCommitFilesRequestHeader"
|
230
|
-
optional :action, :message, 2, "gitaly.UserCommitFilesAction"
|
231
|
-
end
|
232
|
-
end
|
233
|
-
add_message "gitaly.UserCommitFilesResponse" do
|
234
|
-
optional :branch_update, :message, 1, "gitaly.OperationBranchUpdate"
|
235
|
-
optional :index_error, :string, 2
|
236
|
-
optional :pre_receive_error, :string, 3
|
237
|
-
end
|
238
|
-
add_message "gitaly.UserCommitFilesError" do
|
239
|
-
oneof :error do
|
240
|
-
optional :access_check, :message, 1, "gitaly.AccessCheckError"
|
241
|
-
optional :index_update, :message, 2, "gitaly.IndexError"
|
242
|
-
optional :custom_hook, :message, 3, "gitaly.CustomHookError"
|
243
|
-
end
|
244
|
-
end
|
245
|
-
add_message "gitaly.UserRebaseConfirmableRequest" do
|
246
|
-
oneof :user_rebase_confirmable_request_payload do
|
247
|
-
optional :header, :message, 1, "gitaly.UserRebaseConfirmableRequest.Header"
|
248
|
-
optional :apply, :bool, 2
|
249
|
-
end
|
250
|
-
end
|
251
|
-
add_message "gitaly.UserRebaseConfirmableRequest.Header" do
|
252
|
-
optional :repository, :message, 1, "gitaly.Repository"
|
253
|
-
optional :user, :message, 2, "gitaly.User"
|
254
|
-
optional :rebase_id, :string, 3
|
255
|
-
optional :branch, :bytes, 4
|
256
|
-
optional :branch_sha, :string, 5
|
257
|
-
optional :remote_repository, :message, 6, "gitaly.Repository"
|
258
|
-
optional :remote_branch, :bytes, 7
|
259
|
-
repeated :git_push_options, :string, 8
|
260
|
-
optional :timestamp, :message, 9, "google.protobuf.Timestamp"
|
261
|
-
end
|
262
|
-
add_message "gitaly.UserRebaseConfirmableResponse" do
|
263
|
-
optional :pre_receive_error, :string, 3
|
264
|
-
optional :git_error, :string, 4
|
265
|
-
oneof :user_rebase_confirmable_response_payload do
|
266
|
-
optional :rebase_sha, :string, 1
|
267
|
-
optional :rebase_applied, :bool, 2
|
268
|
-
end
|
269
|
-
end
|
270
|
-
add_message "gitaly.UserSquashRequest" do
|
271
|
-
optional :repository, :message, 1, "gitaly.Repository"
|
272
|
-
optional :user, :message, 2, "gitaly.User"
|
273
|
-
optional :start_sha, :string, 5
|
274
|
-
optional :end_sha, :string, 6
|
275
|
-
optional :author, :message, 7, "gitaly.User"
|
276
|
-
optional :commit_message, :bytes, 8
|
277
|
-
optional :timestamp, :message, 9, "google.protobuf.Timestamp"
|
278
|
-
end
|
279
|
-
add_message "gitaly.UserSquashResponse" do
|
280
|
-
optional :squash_sha, :string, 1
|
281
|
-
end
|
282
|
-
add_message "gitaly.UserRebaseConfirmableError" do
|
283
|
-
oneof :error do
|
284
|
-
optional :rebase_conflict, :message, 1, "gitaly.MergeConflictError"
|
285
|
-
optional :access_check, :message, 2, "gitaly.AccessCheckError"
|
286
|
-
end
|
287
|
-
end
|
288
|
-
add_message "gitaly.UserSquashError" do
|
289
|
-
oneof :error do
|
290
|
-
optional :resolve_revision, :message, 1, "gitaly.ResolveRevisionError"
|
291
|
-
optional :rebase_conflict, :message, 2, "gitaly.MergeConflictError"
|
292
|
-
end
|
293
|
-
end
|
294
|
-
add_message "gitaly.UserApplyPatchRequest" do
|
295
|
-
oneof :user_apply_patch_request_payload do
|
296
|
-
optional :header, :message, 1, "gitaly.UserApplyPatchRequest.Header"
|
297
|
-
optional :patches, :bytes, 2
|
298
|
-
end
|
299
|
-
end
|
300
|
-
add_message "gitaly.UserApplyPatchRequest.Header" do
|
301
|
-
optional :repository, :message, 1, "gitaly.Repository"
|
302
|
-
optional :user, :message, 2, "gitaly.User"
|
303
|
-
optional :target_branch, :bytes, 3
|
304
|
-
optional :timestamp, :message, 4, "google.protobuf.Timestamp"
|
305
|
-
optional :expected_old_oid, :string, 5
|
306
|
-
end
|
307
|
-
add_message "gitaly.UserApplyPatchResponse" do
|
308
|
-
optional :branch_update, :message, 1, "gitaly.OperationBranchUpdate"
|
309
|
-
end
|
310
|
-
add_message "gitaly.UserUpdateSubmoduleRequest" do
|
311
|
-
optional :repository, :message, 1, "gitaly.Repository"
|
312
|
-
optional :user, :message, 2, "gitaly.User"
|
313
|
-
optional :commit_sha, :string, 3
|
314
|
-
optional :branch, :bytes, 4
|
315
|
-
optional :submodule, :bytes, 5
|
316
|
-
optional :commit_message, :bytes, 6
|
317
|
-
optional :timestamp, :message, 7, "google.protobuf.Timestamp"
|
318
|
-
optional :expected_old_oid, :string, 8
|
319
|
-
end
|
320
|
-
add_message "gitaly.UserUpdateSubmoduleResponse" do
|
321
|
-
optional :branch_update, :message, 1, "gitaly.OperationBranchUpdate"
|
322
|
-
optional :pre_receive_error, :string, 2
|
323
|
-
optional :commit_error, :string, 4
|
12
|
+
|
13
|
+
descriptor_data = "\n\x10operations.proto\x12\x06gitaly\x1a\x0c\x65rrors.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\nlint.proto\x1a\x0cshared.proto\"\x8d\x01\n\x17UserCreateBranchRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x13\n\x0b\x62ranch_name\x18\x02 \x01(\x0c\x12\x1a\n\x04user\x18\x03 \x01(\x0b\x32\x0c.gitaly.User\x12\x13\n\x0bstart_point\x18\x04 \x01(\x0c\"S\n\x18UserCreateBranchResponse\x12\x1e\n\x06\x62ranch\x18\x01 \x01(\x0b\x32\x0e.gitaly.BranchJ\x04\x08\x02\x10\x03R\x11pre_receive_error\"P\n\x15UserCreateBranchError\x12.\n\x0b\x63ustom_hook\x18\x01 \x01(\x0b\x32\x17.gitaly.CustomHookErrorH\x00\x42\x07\n\x05\x65rror\"\x98\x01\n\x17UserUpdateBranchRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x13\n\x0b\x62ranch_name\x18\x02 \x01(\x0c\x12\x1a\n\x04user\x18\x03 \x01(\x0b\x32\x0c.gitaly.User\x12\x0e\n\x06newrev\x18\x04 \x01(\x0c\x12\x0e\n\x06oldrev\x18\x05 \x01(\x0c\"5\n\x18UserUpdateBranchResponse\x12\x19\n\x11pre_receive_error\x18\x01 \x01(\t\"\x92\x01\n\x17UserDeleteBranchRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x13\n\x0b\x62ranch_name\x18\x02 \x01(\x0c\x12\x1a\n\x04user\x18\x03 \x01(\x0b\x32\x0c.gitaly.User\x12\x18\n\x10\x65xpected_old_oid\x18\x04 \x01(\t\"3\n\x18UserDeleteBranchResponseJ\x04\x08\x01\x10\x02R\x11pre_receive_error\"\xbc\x01\n\x15UserDeleteBranchError\x12\x30\n\x0c\x61\x63\x63\x65ss_check\x18\x01 \x01(\x0b\x32\x18.gitaly.AccessCheckErrorH\x00\x12\x38\n\x10reference_update\x18\x02 \x01(\x0b\x32\x1c.gitaly.ReferenceUpdateErrorH\x00\x12.\n\x0b\x63ustom_hook\x18\x03 \x01(\x0b\x32\x17.gitaly.CustomHookErrorH\x00\x42\x07\n\x05\x65rror\"\x8c\x01\n\x14UserDeleteTagRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x10\n\x08tag_name\x18\x02 \x01(\x0c\x12\x1a\n\x04user\x18\x03 \x01(\x0b\x32\x0c.gitaly.User\x12\x18\n\x10\x65xpected_old_oid\x18\x04 \x01(\t\"2\n\x15UserDeleteTagResponse\x12\x19\n\x11pre_receive_error\x18\x01 \x01(\t\"\xcb\x01\n\x14UserCreateTagRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x10\n\x08tag_name\x18\x02 \x01(\x0c\x12\x1a\n\x04user\x18\x03 \x01(\x0b\x32\x0c.gitaly.User\x12\x17\n\x0ftarget_revision\x18\x04 \x01(\x0c\x12\x0f\n\x07message\x18\x05 \x01(\x0c\x12-\n\ttimestamp\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"X\n\x15UserCreateTagResponse\x12\x18\n\x03tag\x18\x01 \x01(\x0b\x32\x0b.gitaly.TagJ\x04\x08\x02\x10\x03J\x04\x08\x03\x10\x04R\x06\x65xistsR\x11pre_receive_error\"\xf3\x01\n\x12UserCreateTagError\x12\x30\n\x0c\x61\x63\x63\x65ss_check\x18\x01 \x01(\x0b\x32\x18.gitaly.AccessCheckErrorH\x00\x12\x38\n\x10reference_update\x18\x02 \x01(\x0b\x32\x1c.gitaly.ReferenceUpdateErrorH\x00\x12.\n\x0b\x63ustom_hook\x18\x03 \x01(\x0b\x32\x17.gitaly.CustomHookErrorH\x00\x12\x38\n\x10reference_exists\x18\x04 \x01(\x0b\x32\x1c.gitaly.ReferenceExistsErrorH\x00\x42\x07\n\x05\x65rror\"\xee\x01\n\x16UserMergeBranchRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x1a\n\x04user\x18\x02 \x01(\x0b\x32\x0c.gitaly.User\x12\x11\n\tcommit_id\x18\x03 \x01(\t\x12\x0e\n\x06\x62ranch\x18\x04 \x01(\x0c\x12\x0f\n\x07message\x18\x05 \x01(\x0c\x12-\n\ttimestamp\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x18\n\x10\x65xpected_old_oid\x18\x08 \x01(\t\x12\r\n\x05\x61pply\x18\x06 \x01(\x08\"\x81\x01\n\x17UserMergeBranchResponse\x12\x11\n\tcommit_id\x18\x01 \x01(\t\x12\x34\n\rbranch_update\x18\x03 \x01(\x0b\x32\x1d.gitaly.OperationBranchUpdateJ\x04\x08\x02\x10\x03J\x04\x08\x04\x10\x05R\x11pre_receive_error\"\xf1\x01\n\x14UserMergeBranchError\x12\x30\n\x0c\x61\x63\x63\x65ss_check\x18\x01 \x01(\x0b\x32\x18.gitaly.AccessCheckErrorH\x00\x12\x38\n\x10reference_update\x18\x02 \x01(\x0b\x32\x1c.gitaly.ReferenceUpdateErrorH\x00\x12.\n\x0b\x63ustom_hook\x18\x03 \x01(\x0b\x32\x17.gitaly.CustomHookErrorH\x00\x12\x34\n\x0emerge_conflict\x18\x04 \x01(\x0b\x32\x1a.gitaly.MergeConflictErrorH\x00\x42\x07\n\x05\x65rror\"\x8c\x02\n\x15UserMergeToRefRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x1a\n\x04user\x18\x02 \x01(\x0b\x32\x0c.gitaly.User\x12\x12\n\nsource_sha\x18\x03 \x01(\t\x12\x0e\n\x06\x62ranch\x18\x04 \x01(\x0c\x12\x12\n\ntarget_ref\x18\x05 \x01(\x0c\x12\x0f\n\x07message\x18\x06 \x01(\x0c\x12\x18\n\x10\x66irst_parent_ref\x18\x07 \x01(\x0c\x12\x17\n\x0f\x61llow_conflicts\x18\x08 \x01(\x08\x12-\n\ttimestamp\x18\t \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"D\n\x16UserMergeToRefResponse\x12\x11\n\tcommit_id\x18\x01 \x01(\tJ\x04\x08\x02\x10\x03R\x11pre_receive_error\"X\n\x15OperationBranchUpdate\x12\x11\n\tcommit_id\x18\x01 \x01(\t\x12\x14\n\x0crepo_created\x18\x02 \x01(\x08\x12\x16\n\x0e\x62ranch_created\x18\x03 \x01(\x08\"\x9c\x01\n\x13UserFFBranchRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x1a\n\x04user\x18\x02 \x01(\x0b\x32\x0c.gitaly.User\x12\x11\n\tcommit_id\x18\x03 \x01(\t\x12\x0e\n\x06\x62ranch\x18\x04 \x01(\x0c\x12\x18\n\x10\x65xpected_old_oid\x18\x05 \x01(\t\"g\n\x14UserFFBranchResponse\x12\x34\n\rbranch_update\x18\x01 \x01(\x0b\x32\x1d.gitaly.OperationBranchUpdate\x12\x19\n\x11pre_receive_error\x18\x02 \x01(\t\"\xcd\x02\n\x15UserCherryPickRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x1a\n\x04user\x18\x02 \x01(\x0b\x32\x0c.gitaly.User\x12!\n\x06\x63ommit\x18\x03 \x01(\x0b\x32\x11.gitaly.GitCommit\x12\x13\n\x0b\x62ranch_name\x18\x04 \x01(\x0c\x12\x0f\n\x07message\x18\x05 \x01(\x0c\x12\x19\n\x11start_branch_name\x18\x06 \x01(\x0c\x12,\n\x10start_repository\x18\x07 \x01(\x0b\x32\x12.gitaly.Repository\x12\x0f\n\x07\x64ry_run\x18\x08 \x01(\x08\x12-\n\ttimestamp\x18\t \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x18\n\x10\x65xpected_old_oid\x18\n \x01(\t\"\xb2\x01\n\x16UserCherryPickResponse\x12\x34\n\rbranch_update\x18\x01 \x01(\x0b\x32\x1d.gitaly.OperationBranchUpdateJ\x04\x08\x02\x10\x03J\x04\x08\x03\x10\x04J\x04\x08\x04\x10\x05J\x04\x08\x05\x10\x06R\x11\x63reate_tree_errorR\x0c\x63ommit_errorR\x11pre_receive_errorR\x16\x63reate_tree_error_code\"\x8f\x02\n\x13UserCherryPickError\x12:\n\x14\x63herry_pick_conflict\x18\x01 \x01(\x0b\x32\x1a.gitaly.MergeConflictErrorH\x00\x12:\n\x16target_branch_diverged\x18\x02 \x01(\x0b\x32\x18.gitaly.NotAncestorErrorH\x00\x12\x45\n\x17\x63hanges_already_applied\x18\x03 \x01(\x0b\x32\".gitaly.ChangesAlreadyAppliedErrorH\x00\x12\x30\n\x0c\x61\x63\x63\x65ss_check\x18\x04 \x01(\x0b\x32\x18.gitaly.AccessCheckErrorH\x00\x42\x07\n\x05\x65rror\"\xc9\x02\n\x11UserRevertRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x1a\n\x04user\x18\x02 \x01(\x0b\x32\x0c.gitaly.User\x12!\n\x06\x63ommit\x18\x03 \x01(\x0b\x32\x11.gitaly.GitCommit\x12\x13\n\x0b\x62ranch_name\x18\x04 \x01(\x0c\x12\x0f\n\x07message\x18\x05 \x01(\x0c\x12\x19\n\x11start_branch_name\x18\x06 \x01(\x0c\x12,\n\x10start_repository\x18\x07 \x01(\x0b\x32\x12.gitaly.Repository\x12\x0f\n\x07\x64ry_run\x18\x08 \x01(\x08\x12-\n\ttimestamp\x18\t \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x18\n\x10\x65xpected_old_oid\x18\n \x01(\t\"\x98\x02\n\x12UserRevertResponse\x12\x34\n\rbranch_update\x18\x01 \x01(\x0b\x32\x1d.gitaly.OperationBranchUpdate\x12\x19\n\x11\x63reate_tree_error\x18\x02 \x01(\t\x12\x14\n\x0c\x63ommit_error\x18\x03 \x01(\t\x12\x19\n\x11pre_receive_error\x18\x04 \x01(\t\x12J\n\x16\x63reate_tree_error_code\x18\x05 \x01(\x0e\x32*.gitaly.UserRevertResponse.CreateTreeError\"4\n\x0f\x43reateTreeError\x12\x08\n\x04NONE\x10\x00\x12\t\n\x05\x45MPTY\x10\x01\x12\x0c\n\x08\x43ONFLICT\x10\x02\"\xa7\x02\n\x1bUserCommitFilesActionHeader\x12>\n\x06\x61\x63tion\x18\x01 \x01(\x0e\x32..gitaly.UserCommitFilesActionHeader.ActionType\x12\x11\n\tfile_path\x18\x02 \x01(\x0c\x12\x15\n\rprevious_path\x18\x03 \x01(\x0c\x12\x16\n\x0e\x62\x61se64_content\x18\x04 \x01(\x08\x12\x18\n\x10\x65xecute_filemode\x18\x05 \x01(\x08\x12\x15\n\rinfer_content\x18\x06 \x01(\x08\"U\n\nActionType\x12\n\n\x06\x43REATE\x10\x00\x12\x0e\n\nCREATE_DIR\x10\x01\x12\n\n\x06UPDATE\x10\x02\x12\x08\n\x04MOVE\x10\x03\x12\n\n\x06\x44\x45LETE\x10\x04\x12\t\n\x05\x43HMOD\x10\x05\"\x85\x01\n\x15UserCommitFilesAction\x12\x35\n\x06header\x18\x01 \x01(\x0b\x32#.gitaly.UserCommitFilesActionHeaderH\x00\x12\x11\n\x07\x63ontent\x18\x02 \x01(\x0cH\x00\x42\"\n user_commit_files_action_payload\"\x82\x03\n\x1cUserCommitFilesRequestHeader\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x1a\n\x04user\x18\x02 \x01(\x0b\x32\x0c.gitaly.User\x12\x13\n\x0b\x62ranch_name\x18\x03 \x01(\x0c\x12\x16\n\x0e\x63ommit_message\x18\x04 \x01(\x0c\x12\x1a\n\x12\x63ommit_author_name\x18\x05 \x01(\x0c\x12\x1b\n\x13\x63ommit_author_email\x18\x06 \x01(\x0c\x12\x19\n\x11start_branch_name\x18\x07 \x01(\x0c\x12,\n\x10start_repository\x18\x08 \x01(\x0b\x32\x12.gitaly.Repository\x12\r\n\x05\x66orce\x18\t \x01(\x08\x12\x11\n\tstart_sha\x18\n \x01(\t\x12-\n\ttimestamp\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x18\n\x10\x65xpected_old_oid\x18\x0c \x01(\t\"\xa6\x01\n\x16UserCommitFilesRequest\x12\x36\n\x06header\x18\x01 \x01(\x0b\x32$.gitaly.UserCommitFilesRequestHeaderH\x00\x12/\n\x06\x61\x63tion\x18\x02 \x01(\x0b\x32\x1d.gitaly.UserCommitFilesActionH\x00\x42#\n!user_commit_files_request_payload\"\x7f\n\x17UserCommitFilesResponse\x12\x34\n\rbranch_update\x18\x01 \x01(\x0b\x32\x1d.gitaly.OperationBranchUpdate\x12\x13\n\x0bindex_error\x18\x02 \x01(\t\x12\x19\n\x11pre_receive_error\x18\x03 \x01(\t\"\xad\x01\n\x14UserCommitFilesError\x12\x30\n\x0c\x61\x63\x63\x65ss_check\x18\x01 \x01(\x0b\x32\x18.gitaly.AccessCheckErrorH\x00\x12*\n\x0cindex_update\x18\x02 \x01(\x0b\x32\x12.gitaly.IndexErrorH\x00\x12.\n\x0b\x63ustom_hook\x18\x03 \x01(\x0b\x32\x17.gitaly.CustomHookErrorH\x00\x42\x07\n\x05\x65rror\"\xb8\x03\n\x1cUserRebaseConfirmableRequest\x12=\n\x06header\x18\x01 \x01(\x0b\x32+.gitaly.UserRebaseConfirmableRequest.HeaderH\x00\x12\x0f\n\x05\x61pply\x18\x02 \x01(\x08H\x00\x1a\x9c\x02\n\x06Header\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x1a\n\x04user\x18\x02 \x01(\x0b\x32\x0c.gitaly.User\x12\x15\n\trebase_id\x18\x03 \x01(\tB\x02\x18\x01\x12\x0e\n\x06\x62ranch\x18\x04 \x01(\x0c\x12\x12\n\nbranch_sha\x18\x05 \x01(\t\x12-\n\x11remote_repository\x18\x06 \x01(\x0b\x32\x12.gitaly.Repository\x12\x15\n\rremote_branch\x18\x07 \x01(\x0c\x12\x18\n\x10git_push_options\x18\x08 \x03(\t\x12-\n\ttimestamp\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB)\n\'user_rebase_confirmable_request_payload\"\xa9\x01\n\x1dUserRebaseConfirmableResponse\x12\x14\n\nrebase_sha\x18\x01 \x01(\tH\x00\x12\x18\n\x0erebase_applied\x18\x02 \x01(\x08H\x00\x12\x19\n\x11pre_receive_error\x18\x03 \x01(\t\x12\x11\n\tgit_error\x18\x04 \x01(\tB*\n(user_rebase_confirmable_response_payload\"\xfd\x01\n\x11UserSquashRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x1a\n\x04user\x18\x02 \x01(\x0b\x32\x0c.gitaly.User\x12\x11\n\tstart_sha\x18\x05 \x01(\t\x12\x0f\n\x07\x65nd_sha\x18\x06 \x01(\t\x12\x1c\n\x06\x61uthor\x18\x07 \x01(\x0b\x32\x0c.gitaly.User\x12\x16\n\x0e\x63ommit_message\x18\x08 \x01(\x0c\x12-\n\ttimestamp\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampJ\x04\x08\x03\x10\x04J\x04\x08\x04\x10\x05R\tsquash_id\"R\n\x12UserSquashResponse\x12\x12\n\nsquash_sha\x18\x01 \x01(\tJ\x04\x08\x02\x10\x03J\x04\x08\x03\x10\x04R\x11pre_receive_errorR\tgit_error\"\x8e\x01\n\x1aUserRebaseConfirmableError\x12\x35\n\x0frebase_conflict\x18\x01 \x01(\x0b\x32\x1a.gitaly.MergeConflictErrorH\x00\x12\x30\n\x0c\x61\x63\x63\x65ss_check\x18\x02 \x01(\x0b\x32\x18.gitaly.AccessCheckErrorH\x00\x42\x07\n\x05\x65rror\"\x8b\x01\n\x0fUserSquashError\x12\x38\n\x10resolve_revision\x18\x01 \x01(\x0b\x32\x1c.gitaly.ResolveRevisionErrorH\x00\x12\x35\n\x0frebase_conflict\x18\x02 \x01(\x0b\x32\x1a.gitaly.MergeConflictErrorH\x00\x42\x07\n\x05\x65rror\"\xbb\x02\n\x15UserApplyPatchRequest\x12\x36\n\x06header\x18\x01 \x01(\x0b\x32$.gitaly.UserApplyPatchRequest.HeaderH\x00\x12\x11\n\x07patches\x18\x02 \x01(\x0cH\x00\x1a\xb2\x01\n\x06Header\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x1a\n\x04user\x18\x02 \x01(\x0b\x32\x0c.gitaly.User\x12\x15\n\rtarget_branch\x18\x03 \x01(\x0c\x12-\n\ttimestamp\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x18\n\x10\x65xpected_old_oid\x18\x05 \x01(\tB\"\n user_apply_patch_request_payload\"N\n\x16UserApplyPatchResponse\x12\x34\n\rbranch_update\x18\x01 \x01(\x0b\x32\x1d.gitaly.OperationBranchUpdate\"\xfe\x01\n\x1aUserUpdateSubmoduleRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x1a\n\x04user\x18\x02 \x01(\x0b\x32\x0c.gitaly.User\x12\x12\n\ncommit_sha\x18\x03 \x01(\t\x12\x0e\n\x06\x62ranch\x18\x04 \x01(\x0c\x12\x11\n\tsubmodule\x18\x05 \x01(\x0c\x12\x16\n\x0e\x63ommit_message\x18\x06 \x01(\x0c\x12-\n\ttimestamp\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x18\n\x10\x65xpected_old_oid\x18\x08 \x01(\t\"\x9d\x01\n\x1bUserUpdateSubmoduleResponse\x12\x34\n\rbranch_update\x18\x01 \x01(\x0b\x32\x1d.gitaly.OperationBranchUpdate\x12\x19\n\x11pre_receive_error\x18\x02 \x01(\t\x12\x14\n\x0c\x63ommit_error\x18\x04 \x01(\tJ\x04\x08\x03\x10\x04R\x11\x63reate_tree_error2\xed\n\n\x10OperationService\x12]\n\x10UserCreateBranch\x12\x1f.gitaly.UserCreateBranchRequest\x1a .gitaly.UserCreateBranchResponse\"\x06\xfa\x97(\x02\x08\x01\x12]\n\x10UserUpdateBranch\x12\x1f.gitaly.UserUpdateBranchRequest\x1a .gitaly.UserUpdateBranchResponse\"\x06\xfa\x97(\x02\x08\x01\x12]\n\x10UserDeleteBranch\x12\x1f.gitaly.UserDeleteBranchRequest\x1a .gitaly.UserDeleteBranchResponse\"\x06\xfa\x97(\x02\x08\x01\x12T\n\rUserCreateTag\x12\x1c.gitaly.UserCreateTagRequest\x1a\x1d.gitaly.UserCreateTagResponse\"\x06\xfa\x97(\x02\x08\x01\x12T\n\rUserDeleteTag\x12\x1c.gitaly.UserDeleteTagRequest\x1a\x1d.gitaly.UserDeleteTagResponse\"\x06\xfa\x97(\x02\x08\x01\x12W\n\x0eUserMergeToRef\x12\x1d.gitaly.UserMergeToRefRequest\x1a\x1e.gitaly.UserMergeToRefResponse\"\x06\xfa\x97(\x02\x08\x01\x12^\n\x0fUserMergeBranch\x12\x1e.gitaly.UserMergeBranchRequest\x1a\x1f.gitaly.UserMergeBranchResponse\"\x06\xfa\x97(\x02\x08\x01(\x01\x30\x01\x12Q\n\x0cUserFFBranch\x12\x1b.gitaly.UserFFBranchRequest\x1a\x1c.gitaly.UserFFBranchResponse\"\x06\xfa\x97(\x02\x08\x01\x12W\n\x0eUserCherryPick\x12\x1d.gitaly.UserCherryPickRequest\x1a\x1e.gitaly.UserCherryPickResponse\"\x06\xfa\x97(\x02\x08\x01\x12\\\n\x0fUserCommitFiles\x12\x1e.gitaly.UserCommitFilesRequest\x1a\x1f.gitaly.UserCommitFilesResponse\"\x06\xfa\x97(\x02\x08\x01(\x01\x12p\n\x15UserRebaseConfirmable\x12$.gitaly.UserRebaseConfirmableRequest\x1a%.gitaly.UserRebaseConfirmableResponse\"\x06\xfa\x97(\x02\x08\x01(\x01\x30\x01\x12K\n\nUserRevert\x12\x19.gitaly.UserRevertRequest\x1a\x1a.gitaly.UserRevertResponse\"\x06\xfa\x97(\x02\x08\x01\x12K\n\nUserSquash\x12\x19.gitaly.UserSquashRequest\x1a\x1a.gitaly.UserSquashResponse\"\x06\xfa\x97(\x02\x08\x01\x12Y\n\x0eUserApplyPatch\x12\x1d.gitaly.UserApplyPatchRequest\x1a\x1e.gitaly.UserApplyPatchResponse\"\x06\xfa\x97(\x02\x08\x01(\x01\x12\x66\n\x13UserUpdateSubmodule\x12\".gitaly.UserUpdateSubmoduleRequest\x1a#.gitaly.UserUpdateSubmoduleResponse\"\x06\xfa\x97(\x02\x08\x01\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
|
+
["gitaly.CustomHookError", "errors.proto"],
|
30
|
+
["google.protobuf.Timestamp", "google/protobuf/timestamp.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}"
|
324
36
|
end
|
325
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."
|
326
40
|
end
|
327
41
|
|
328
42
|
module Gitaly
|
@@ -349,7 +63,6 @@ module Gitaly
|
|
349
63
|
UserFFBranchResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserFFBranchResponse").msgclass
|
350
64
|
UserCherryPickRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserCherryPickRequest").msgclass
|
351
65
|
UserCherryPickResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserCherryPickResponse").msgclass
|
352
|
-
UserCherryPickResponse::CreateTreeError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserCherryPickResponse.CreateTreeError").enummodule
|
353
66
|
UserCherryPickError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserCherryPickError").msgclass
|
354
67
|
UserRevertRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserRevertRequest").msgclass
|
355
68
|
UserRevertResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserRevertResponse").msgclass
|