diff options
author | Patrick Steinhardt <psteinhardt@gitlab.com> | 2022-10-27 12:07:53 +0300 |
---|---|---|
committer | Patrick Steinhardt <psteinhardt@gitlab.com> | 2022-10-28 09:10:16 +0300 |
commit | 3269131686815320d4648a86531543fb13016d68 (patch) | |
tree | bbb67b856db833bc2e1d63660936b8b64d6e9969 /ruby | |
parent | 9f3a9eb9501d6b488be2cbef29f609d8a0bb249f (diff) |
ruby: Remove stale generated Protobuf code
Now that we stopped updating our Ruby code generated from the Protobuf
definitions in favor of ad-hoc generating it when building a new Gem it
does not make sense to carry these files around anymore:
- They are stale and will not be updated anymore.
- Most of these files are unused anyway.
- It is not expected that there will be any changes in the generated
code that is relevant to our Ruby sidecar anymore. There is only a
single RPC served by it nowadays which is in the process of being
migrated to Go.
Remove the Protobuf definitions and use the `gitaly` Gem instead.
Diffstat (limited to 'ruby')
43 files changed, 7 insertions, 3626 deletions
diff --git a/ruby/Gemfile b/ruby/Gemfile index 47b4086dc..26608e43a 100644 --- a/ruby/Gemfile +++ b/ruby/Gemfile @@ -10,6 +10,10 @@ gem 'sentry-raven', '~> 3.0', require: false gem 'faraday', '~> 1.0' gem 'rbtrace', require: false +# The Gitaly Gem contains the Protobuf and gRPC definitions required by the +# Ruby sidecar. +gem 'gitaly', '~> 15.5.0' + # Labkit provides observability functionality gem 'gitlab-labkit', '~> 0.26' diff --git a/ruby/Gemfile.lock b/ruby/Gemfile.lock index a83cdff51..9759bbf0e 100644 --- a/ruby/Gemfile.lock +++ b/ruby/Gemfile.lock @@ -46,6 +46,8 @@ GEM faraday (1.0.1) multipart-post (>= 1.2, < 3) ffi (1.15.5) + gitaly (15.5.0) + grpc (~> 1.0) github-linguist (7.20.0) charlock_holmes (~> 0.7.7) escape_utils (~> 1.2.0) @@ -204,6 +206,7 @@ DEPENDENCIES activesupport (~> 6.1.6.1) factory_bot faraday (~> 1.0) + gitaly (~> 15.5.0) github-linguist (~> 7.20.0) gitlab-labkit (~> 0.26) gitlab-license_finder diff --git a/ruby/proto/gitaly.rb b/ruby/proto/gitaly.rb deleted file mode 100644 index 234ad7ffb..000000000 --- a/ruby/proto/gitaly.rb +++ /dev/null @@ -1,41 +0,0 @@ -# This file is generated by generate-proto-ruby. Do not edit. -$:.unshift(File.expand_path('../gitaly', __FILE__)) - -require 'gitaly/version' - -require 'gitaly/blob_services_pb' - -require 'gitaly/cleanup_services_pb' - -require 'gitaly/commit_services_pb' - -require 'gitaly/conflicts_services_pb' - -require 'gitaly/diff_services_pb' - -require 'gitaly/hook_services_pb' - -require 'gitaly/internal_services_pb' - -require 'gitaly/namespace_services_pb' - -require 'gitaly/objectpool_services_pb' - -require 'gitaly/operations_services_pb' - -require 'gitaly/praefect_services_pb' - -require 'gitaly/ref_services_pb' - -require 'gitaly/remote_services_pb' - -require 'gitaly/repository_services_pb' - -require 'gitaly/server_services_pb' - -require 'gitaly/smarthttp_services_pb' - -require 'gitaly/ssh_services_pb' - -require 'gitaly/transaction_services_pb' - diff --git a/ruby/proto/gitaly/blob_pb.rb b/ruby/proto/gitaly/blob_pb.rb deleted file mode 100644 index bd4c225e6..000000000 --- a/ruby/proto/gitaly/blob_pb.rb +++ /dev/null @@ -1,123 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: blob.proto - -require 'lint_pb' -require 'shared_pb' -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("blob.proto", :syntax => :proto3) do - add_message "gitaly.GetBlobRequest" do - optional :repository, :message, 1, "gitaly.Repository" - optional :oid, :string, 2 - optional :limit, :int64, 3 - end - add_message "gitaly.GetBlobResponse" do - optional :size, :int64, 1 - optional :data, :bytes, 2 - optional :oid, :string, 3 - end - add_message "gitaly.GetBlobsRequest" do - optional :repository, :message, 1, "gitaly.Repository" - repeated :revision_paths, :message, 2, "gitaly.GetBlobsRequest.RevisionPath" - optional :limit, :int64, 3 - end - add_message "gitaly.GetBlobsRequest.RevisionPath" do - optional :revision, :string, 1 - optional :path, :bytes, 2 - end - add_message "gitaly.GetBlobsResponse" do - optional :size, :int64, 1 - optional :data, :bytes, 2 - optional :oid, :string, 3 - optional :is_submodule, :bool, 4 - optional :mode, :int32, 5 - optional :revision, :string, 6 - optional :path, :bytes, 7 - optional :type, :enum, 8, "gitaly.ObjectType" - end - add_message "gitaly.ListBlobsRequest" do - optional :repository, :message, 1, "gitaly.Repository" - repeated :revisions, :string, 2 - optional :limit, :uint32, 3 - optional :bytes_limit, :int64, 4 - optional :with_paths, :bool, 5 - end - add_message "gitaly.ListBlobsResponse" do - repeated :blobs, :message, 1, "gitaly.ListBlobsResponse.Blob" - end - add_message "gitaly.ListBlobsResponse.Blob" do - optional :oid, :string, 1 - optional :size, :int64, 2 - optional :data, :bytes, 3 - optional :path, :bytes, 4 - end - add_message "gitaly.ListAllBlobsRequest" do - optional :repository, :message, 1, "gitaly.Repository" - optional :limit, :uint32, 2 - optional :bytes_limit, :int64, 3 - end - add_message "gitaly.ListAllBlobsResponse" do - repeated :blobs, :message, 1, "gitaly.ListAllBlobsResponse.Blob" - end - add_message "gitaly.ListAllBlobsResponse.Blob" do - optional :oid, :string, 1 - optional :size, :int64, 2 - optional :data, :bytes, 3 - end - add_message "gitaly.LFSPointer" do - optional :size, :int64, 1 - optional :data, :bytes, 2 - optional :oid, :string, 3 - end - add_message "gitaly.NewBlobObject" do - optional :size, :int64, 1 - optional :oid, :string, 2 - optional :path, :bytes, 3 - end - add_message "gitaly.GetLFSPointersRequest" do - optional :repository, :message, 1, "gitaly.Repository" - repeated :blob_ids, :string, 2 - end - add_message "gitaly.GetLFSPointersResponse" do - repeated :lfs_pointers, :message, 1, "gitaly.LFSPointer" - end - add_message "gitaly.ListLFSPointersRequest" do - optional :repository, :message, 1, "gitaly.Repository" - repeated :revisions, :string, 2 - optional :limit, :int32, 3 - end - add_message "gitaly.ListLFSPointersResponse" do - repeated :lfs_pointers, :message, 1, "gitaly.LFSPointer" - end - add_message "gitaly.ListAllLFSPointersRequest" do - optional :repository, :message, 1, "gitaly.Repository" - optional :limit, :int32, 3 - end - add_message "gitaly.ListAllLFSPointersResponse" do - repeated :lfs_pointers, :message, 1, "gitaly.LFSPointer" - end - end -end - -module Gitaly - GetBlobRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GetBlobRequest").msgclass - GetBlobResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GetBlobResponse").msgclass - GetBlobsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GetBlobsRequest").msgclass - GetBlobsRequest::RevisionPath = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GetBlobsRequest.RevisionPath").msgclass - GetBlobsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GetBlobsResponse").msgclass - ListBlobsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ListBlobsRequest").msgclass - ListBlobsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ListBlobsResponse").msgclass - ListBlobsResponse::Blob = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ListBlobsResponse.Blob").msgclass - ListAllBlobsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ListAllBlobsRequest").msgclass - ListAllBlobsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ListAllBlobsResponse").msgclass - ListAllBlobsResponse::Blob = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ListAllBlobsResponse.Blob").msgclass - LFSPointer = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.LFSPointer").msgclass - NewBlobObject = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.NewBlobObject").msgclass - GetLFSPointersRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GetLFSPointersRequest").msgclass - GetLFSPointersResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GetLFSPointersResponse").msgclass - ListLFSPointersRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ListLFSPointersRequest").msgclass - ListLFSPointersResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ListLFSPointersResponse").msgclass - ListAllLFSPointersRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ListAllLFSPointersRequest").msgclass - ListAllLFSPointersResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ListAllLFSPointersResponse").msgclass -end diff --git a/ruby/proto/gitaly/blob_services_pb.rb b/ruby/proto/gitaly/blob_services_pb.rb deleted file mode 100644 index aaea1d0ef..000000000 --- a/ruby/proto/gitaly/blob_services_pb.rb +++ /dev/null @@ -1,50 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: blob.proto for package 'gitaly' - -require 'grpc' -require 'blob_pb' - -module Gitaly - module BlobService - # BlobService is a service which provides RPCs to retrieve Git blobs from a - # specific repository. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'gitaly.BlobService' - - # GetBlob returns the contents of a blob object referenced by its object - # ID. We use a stream to return a chunked arbitrarily large binary - # response - rpc :GetBlob, ::Gitaly::GetBlobRequest, stream(::Gitaly::GetBlobResponse) - # This comment is left unintentionally blank. - rpc :GetBlobs, ::Gitaly::GetBlobsRequest, stream(::Gitaly::GetBlobsResponse) - # ListBlobs will list all blobs reachable from a given set of revisions by - # doing a graph walk. It is not valid to pass revisions which do not resolve - # to an existing object. - rpc :ListBlobs, ::Gitaly::ListBlobsRequest, stream(::Gitaly::ListBlobsResponse) - # ListAllBlobs retrieves all blobs pointers in the repository, including - # those not reachable by any reference. - rpc :ListAllBlobs, ::Gitaly::ListAllBlobsRequest, stream(::Gitaly::ListAllBlobsResponse) - # GetLFSPointers retrieves LFS pointers from a given set of object IDs. - # This RPC filters all requested objects and only returns those which refer - # to a valid LFS pointer. - rpc :GetLFSPointers, ::Gitaly::GetLFSPointersRequest, stream(::Gitaly::GetLFSPointersResponse) - # ListLFSPointers retrieves LFS pointers reachable from a given set of - # revisions by doing a graph walk. This includes both normal revisions like - # an object ID or branch, but also the pseudo-revisions "--all" and "--not" - # as documented in git-rev-parse(1). Revisions which don't directly or - # transitively reference any LFS pointers are ignored. It is not valid to - # pass revisions which do not resolve to an existing object. - rpc :ListLFSPointers, ::Gitaly::ListLFSPointersRequest, stream(::Gitaly::ListLFSPointersResponse) - # ListAllLFSPointers retrieves all LFS pointers in the repository, including - # those not reachable by any reference. - rpc :ListAllLFSPointers, ::Gitaly::ListAllLFSPointersRequest, stream(::Gitaly::ListAllLFSPointersResponse) - end - - Stub = Service.rpc_stub_class - end -end diff --git a/ruby/proto/gitaly/cleanup_pb.rb b/ruby/proto/gitaly/cleanup_pb.rb deleted file mode 100644 index f37081c68..000000000 --- a/ruby/proto/gitaly/cleanup_pb.rb +++ /dev/null @@ -1,29 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: cleanup.proto - -require 'lint_pb' -require 'shared_pb' -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("cleanup.proto", :syntax => :proto3) do - add_message "gitaly.ApplyBfgObjectMapStreamRequest" do - optional :repository, :message, 1, "gitaly.Repository" - optional :object_map, :bytes, 2 - end - add_message "gitaly.ApplyBfgObjectMapStreamResponse" do - repeated :entries, :message, 1, "gitaly.ApplyBfgObjectMapStreamResponse.Entry" - end - add_message "gitaly.ApplyBfgObjectMapStreamResponse.Entry" do - optional :type, :enum, 1, "gitaly.ObjectType" - optional :old_oid, :string, 2 - optional :new_oid, :string, 3 - end - end -end - -module Gitaly - ApplyBfgObjectMapStreamRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ApplyBfgObjectMapStreamRequest").msgclass - ApplyBfgObjectMapStreamResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ApplyBfgObjectMapStreamResponse").msgclass - ApplyBfgObjectMapStreamResponse::Entry = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ApplyBfgObjectMapStreamResponse.Entry").msgclass -end diff --git a/ruby/proto/gitaly/cleanup_services_pb.rb b/ruby/proto/gitaly/cleanup_services_pb.rb deleted file mode 100644 index 54a0d9fa5..000000000 --- a/ruby/proto/gitaly/cleanup_services_pb.rb +++ /dev/null @@ -1,24 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: cleanup.proto for package 'gitaly' - -require 'grpc' -require 'cleanup_pb' - -module Gitaly - module CleanupService - # CleanupService provides RPCs to clean up a repository's contents. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'gitaly.CleanupService' - - # This comment is left unintentionally blank. - rpc :ApplyBfgObjectMapStream, stream(::Gitaly::ApplyBfgObjectMapStreamRequest), stream(::Gitaly::ApplyBfgObjectMapStreamResponse) - end - - Stub = Service.rpc_stub_class - end -end diff --git a/ruby/proto/gitaly/commit_pb.rb b/ruby/proto/gitaly/commit_pb.rb deleted file mode 100644 index 4c798267a..000000000 --- a/ruby/proto/gitaly/commit_pb.rb +++ /dev/null @@ -1,374 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: commit.proto - -require 'google/protobuf/timestamp_pb' -require 'lint_pb' -require 'shared_pb' -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("commit.proto", :syntax => :proto3) do - add_message "gitaly.ListCommitsRequest" do - optional :repository, :message, 1, "gitaly.Repository" - repeated :revisions, :string, 2 - optional :pagination_params, :message, 3, "gitaly.PaginationParameter" - optional :order, :enum, 4, "gitaly.ListCommitsRequest.Order" - optional :reverse, :bool, 11 - optional :max_parents, :uint32, 5 - optional :disable_walk, :bool, 6 - optional :first_parent, :bool, 7 - optional :after, :message, 8, "google.protobuf.Timestamp" - optional :before, :message, 9, "google.protobuf.Timestamp" - optional :author, :bytes, 10 - optional :ignore_case, :bool, 12 - repeated :commit_message_patterns, :bytes, 13 - end - add_enum "gitaly.ListCommitsRequest.Order" do - value :NONE, 0 - value :TOPO, 1 - value :DATE, 2 - end - add_message "gitaly.ListCommitsResponse" do - repeated :commits, :message, 1, "gitaly.GitCommit" - end - add_message "gitaly.ListAllCommitsRequest" do - optional :repository, :message, 1, "gitaly.Repository" - optional :pagination_params, :message, 2, "gitaly.PaginationParameter" - end - add_message "gitaly.ListAllCommitsResponse" do - repeated :commits, :message, 1, "gitaly.GitCommit" - end - add_message "gitaly.CommitStatsRequest" do - optional :repository, :message, 1, "gitaly.Repository" - optional :revision, :bytes, 2 - end - add_message "gitaly.CommitStatsResponse" do - optional :oid, :string, 1 - optional :additions, :int32, 2 - optional :deletions, :int32, 3 - end - add_message "gitaly.CommitIsAncestorRequest" do - optional :repository, :message, 1, "gitaly.Repository" - optional :ancestor_id, :string, 2 - optional :child_id, :string, 3 - end - add_message "gitaly.CommitIsAncestorResponse" do - optional :value, :bool, 1 - end - add_message "gitaly.TreeEntryRequest" do - optional :repository, :message, 1, "gitaly.Repository" - optional :revision, :bytes, 2 - optional :path, :bytes, 3 - optional :limit, :int64, 4 - optional :max_size, :int64, 5 - end - add_message "gitaly.TreeEntryResponse" do - optional :type, :enum, 1, "gitaly.TreeEntryResponse.ObjectType" - optional :oid, :string, 2 - optional :size, :int64, 3 - optional :mode, :int32, 4 - optional :data, :bytes, 5 - end - add_enum "gitaly.TreeEntryResponse.ObjectType" do - value :COMMIT, 0 - value :BLOB, 1 - value :TREE, 2 - value :TAG, 3 - end - add_message "gitaly.CountCommitsRequest" do - optional :repository, :message, 1, "gitaly.Repository" - optional :revision, :bytes, 2 - optional :after, :message, 3, "google.protobuf.Timestamp" - optional :before, :message, 4, "google.protobuf.Timestamp" - optional :path, :bytes, 5 - optional :max_count, :int32, 6 - optional :all, :bool, 7 - optional :first_parent, :bool, 8 - optional :global_options, :message, 9, "gitaly.GlobalOptions" - end - add_message "gitaly.CountCommitsResponse" do - optional :count, :int32, 1 - end - add_message "gitaly.CountDivergingCommitsRequest" do - optional :repository, :message, 1, "gitaly.Repository" - optional :from, :bytes, 2 - optional :to, :bytes, 3 - optional :max_count, :int32, 7 - end - add_message "gitaly.CountDivergingCommitsResponse" do - optional :left_count, :int32, 1 - optional :right_count, :int32, 2 - end - add_message "gitaly.TreeEntry" do - optional :oid, :string, 1 - optional :root_oid, :string, 2 - optional :path, :bytes, 3 - optional :type, :enum, 4, "gitaly.TreeEntry.EntryType" - optional :mode, :int32, 5 - optional :commit_oid, :string, 6 - optional :flat_path, :bytes, 7 - end - add_enum "gitaly.TreeEntry.EntryType" do - value :BLOB, 0 - value :TREE, 1 - value :COMMIT, 3 - end - add_message "gitaly.GetTreeEntriesRequest" do - optional :repository, :message, 1, "gitaly.Repository" - optional :revision, :bytes, 2 - optional :path, :bytes, 3 - optional :recursive, :bool, 4 - optional :sort, :enum, 5, "gitaly.GetTreeEntriesRequest.SortBy" - optional :pagination_params, :message, 6, "gitaly.PaginationParameter" - optional :skip_flat_paths, :bool, 7 - end - add_enum "gitaly.GetTreeEntriesRequest.SortBy" do - value :DEFAULT, 0 - value :TREES_FIRST, 1 - end - add_message "gitaly.GetTreeEntriesResponse" do - repeated :entries, :message, 1, "gitaly.TreeEntry" - optional :pagination_cursor, :message, 2, "gitaly.PaginationCursor" - end - add_message "gitaly.ListFilesRequest" do - optional :repository, :message, 1, "gitaly.Repository" - optional :revision, :bytes, 2 - end - add_message "gitaly.ListFilesResponse" do - repeated :paths, :bytes, 1 - end - add_message "gitaly.FindCommitRequest" do - optional :repository, :message, 1, "gitaly.Repository" - optional :revision, :bytes, 2 - optional :trailers, :bool, 3 - end - add_message "gitaly.FindCommitResponse" do - optional :commit, :message, 1, "gitaly.GitCommit" - end - add_message "gitaly.ListCommitsByOidRequest" do - optional :repository, :message, 1, "gitaly.Repository" - repeated :oid, :string, 2 - end - add_message "gitaly.ListCommitsByOidResponse" do - repeated :commits, :message, 1, "gitaly.GitCommit" - end - add_message "gitaly.ListCommitsByRefNameRequest" do - optional :repository, :message, 1, "gitaly.Repository" - repeated :ref_names, :bytes, 2 - end - add_message "gitaly.ListCommitsByRefNameResponse" do - repeated :commit_refs, :message, 2, "gitaly.ListCommitsByRefNameResponse.CommitForRef" - end - add_message "gitaly.ListCommitsByRefNameResponse.CommitForRef" do - optional :commit, :message, 1, "gitaly.GitCommit" - optional :ref_name, :bytes, 2 - end - add_message "gitaly.FindAllCommitsRequest" do - optional :repository, :message, 1, "gitaly.Repository" - optional :revision, :bytes, 2 - optional :max_count, :int32, 3 - optional :skip, :int32, 4 - optional :order, :enum, 5, "gitaly.FindAllCommitsRequest.Order" - end - add_enum "gitaly.FindAllCommitsRequest.Order" do - value :NONE, 0 - value :TOPO, 1 - value :DATE, 2 - end - add_message "gitaly.FindAllCommitsResponse" do - repeated :commits, :message, 1, "gitaly.GitCommit" - end - add_message "gitaly.FindCommitsRequest" do - optional :repository, :message, 1, "gitaly.Repository" - optional :revision, :bytes, 2 - optional :limit, :int32, 3 - optional :offset, :int32, 4 - repeated :paths, :bytes, 5 - optional :follow, :bool, 6 - optional :skip_merges, :bool, 7 - optional :disable_walk, :bool, 8 - optional :after, :message, 9, "google.protobuf.Timestamp" - optional :before, :message, 10, "google.protobuf.Timestamp" - optional :all, :bool, 11 - optional :first_parent, :bool, 12 - optional :author, :bytes, 13 - optional :order, :enum, 14, "gitaly.FindCommitsRequest.Order" - optional :global_options, :message, 15, "gitaly.GlobalOptions" - optional :trailers, :bool, 16 - optional :include_shortstat, :bool, 17 - end - add_enum "gitaly.FindCommitsRequest.Order" do - value :NONE, 0 - value :TOPO, 1 - end - add_message "gitaly.FindCommitsResponse" do - repeated :commits, :message, 1, "gitaly.GitCommit" - end - add_message "gitaly.CommitLanguagesRequest" do - optional :repository, :message, 1, "gitaly.Repository" - optional :revision, :bytes, 2 - end - add_message "gitaly.CommitLanguagesResponse" do - repeated :languages, :message, 1, "gitaly.CommitLanguagesResponse.Language" - end - add_message "gitaly.CommitLanguagesResponse.Language" do - optional :name, :string, 1 - optional :share, :float, 2 - optional :color, :string, 3 - optional :file_count, :uint32, 4 - optional :bytes, :uint64, 5 - end - add_message "gitaly.RawBlameRequest" do - optional :repository, :message, 1, "gitaly.Repository" - optional :revision, :bytes, 2 - optional :path, :bytes, 3 - optional :range, :bytes, 4 - end - add_message "gitaly.RawBlameResponse" do - optional :data, :bytes, 1 - end - add_message "gitaly.LastCommitForPathRequest" do - optional :repository, :message, 1, "gitaly.Repository" - optional :revision, :bytes, 2 - optional :path, :bytes, 3 - optional :literal_pathspec, :bool, 4 - optional :global_options, :message, 5, "gitaly.GlobalOptions" - end - add_message "gitaly.LastCommitForPathResponse" do - optional :commit, :message, 1, "gitaly.GitCommit" - end - add_message "gitaly.ListLastCommitsForTreeRequest" do - optional :repository, :message, 1, "gitaly.Repository" - optional :revision, :string, 2 - optional :path, :bytes, 3 - optional :limit, :int32, 4 - optional :offset, :int32, 5 - optional :literal_pathspec, :bool, 6 - optional :global_options, :message, 7, "gitaly.GlobalOptions" - end - add_message "gitaly.ListLastCommitsForTreeResponse" do - repeated :commits, :message, 1, "gitaly.ListLastCommitsForTreeResponse.CommitForTree" - end - add_message "gitaly.ListLastCommitsForTreeResponse.CommitForTree" do - optional :commit, :message, 2, "gitaly.GitCommit" - optional :path_bytes, :bytes, 4 - end - add_message "gitaly.CommitsByMessageRequest" do - optional :repository, :message, 1, "gitaly.Repository" - optional :revision, :bytes, 2 - optional :offset, :int32, 3 - optional :limit, :int32, 4 - optional :path, :bytes, 5 - optional :query, :string, 6 - optional :global_options, :message, 7, "gitaly.GlobalOptions" - end - add_message "gitaly.CommitsByMessageResponse" do - repeated :commits, :message, 1, "gitaly.GitCommit" - end - add_message "gitaly.FilterShasWithSignaturesRequest" do - optional :repository, :message, 1, "gitaly.Repository" - repeated :shas, :bytes, 2 - end - add_message "gitaly.FilterShasWithSignaturesResponse" do - repeated :shas, :bytes, 1 - end - add_message "gitaly.ExtractCommitSignatureRequest" do - optional :repository, :message, 1, "gitaly.Repository" - optional :commit_id, :string, 2 - end - add_message "gitaly.ExtractCommitSignatureResponse" do - optional :signature, :bytes, 1 - optional :signed_text, :bytes, 2 - end - add_message "gitaly.GetCommitSignaturesRequest" do - optional :repository, :message, 1, "gitaly.Repository" - repeated :commit_ids, :string, 2 - end - add_message "gitaly.GetCommitSignaturesResponse" do - optional :commit_id, :string, 1 - optional :signature, :bytes, 2 - optional :signed_text, :bytes, 3 - end - add_message "gitaly.GetCommitMessagesRequest" do - optional :repository, :message, 1, "gitaly.Repository" - repeated :commit_ids, :string, 2 - end - add_message "gitaly.GetCommitMessagesResponse" do - optional :commit_id, :string, 1 - optional :message, :bytes, 2 - end - add_message "gitaly.CheckObjectsExistRequest" do - optional :repository, :message, 1, "gitaly.Repository" - repeated :revisions, :bytes, 2 - end - add_message "gitaly.CheckObjectsExistResponse" do - repeated :revisions, :message, 1, "gitaly.CheckObjectsExistResponse.RevisionExistence" - end - add_message "gitaly.CheckObjectsExistResponse.RevisionExistence" do - optional :name, :bytes, 1 - optional :exists, :bool, 2 - end - end -end - -module Gitaly - ListCommitsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ListCommitsRequest").msgclass - ListCommitsRequest::Order = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ListCommitsRequest.Order").enummodule - ListCommitsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ListCommitsResponse").msgclass - ListAllCommitsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ListAllCommitsRequest").msgclass - ListAllCommitsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ListAllCommitsResponse").msgclass - CommitStatsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CommitStatsRequest").msgclass - CommitStatsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CommitStatsResponse").msgclass - CommitIsAncestorRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CommitIsAncestorRequest").msgclass - CommitIsAncestorResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CommitIsAncestorResponse").msgclass - TreeEntryRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.TreeEntryRequest").msgclass - TreeEntryResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.TreeEntryResponse").msgclass - TreeEntryResponse::ObjectType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.TreeEntryResponse.ObjectType").enummodule - CountCommitsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CountCommitsRequest").msgclass - CountCommitsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CountCommitsResponse").msgclass - CountDivergingCommitsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CountDivergingCommitsRequest").msgclass - CountDivergingCommitsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CountDivergingCommitsResponse").msgclass - TreeEntry = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.TreeEntry").msgclass - TreeEntry::EntryType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.TreeEntry.EntryType").enummodule - GetTreeEntriesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GetTreeEntriesRequest").msgclass - GetTreeEntriesRequest::SortBy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GetTreeEntriesRequest.SortBy").enummodule - GetTreeEntriesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GetTreeEntriesResponse").msgclass - ListFilesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ListFilesRequest").msgclass - ListFilesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ListFilesResponse").msgclass - FindCommitRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindCommitRequest").msgclass - FindCommitResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindCommitResponse").msgclass - ListCommitsByOidRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ListCommitsByOidRequest").msgclass - ListCommitsByOidResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ListCommitsByOidResponse").msgclass - ListCommitsByRefNameRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ListCommitsByRefNameRequest").msgclass - ListCommitsByRefNameResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ListCommitsByRefNameResponse").msgclass - ListCommitsByRefNameResponse::CommitForRef = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ListCommitsByRefNameResponse.CommitForRef").msgclass - FindAllCommitsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindAllCommitsRequest").msgclass - FindAllCommitsRequest::Order = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindAllCommitsRequest.Order").enummodule - FindAllCommitsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindAllCommitsResponse").msgclass - FindCommitsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindCommitsRequest").msgclass - FindCommitsRequest::Order = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindCommitsRequest.Order").enummodule - FindCommitsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindCommitsResponse").msgclass - CommitLanguagesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CommitLanguagesRequest").msgclass - CommitLanguagesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CommitLanguagesResponse").msgclass - CommitLanguagesResponse::Language = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CommitLanguagesResponse.Language").msgclass - RawBlameRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.RawBlameRequest").msgclass - RawBlameResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.RawBlameResponse").msgclass - LastCommitForPathRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.LastCommitForPathRequest").msgclass - LastCommitForPathResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.LastCommitForPathResponse").msgclass - ListLastCommitsForTreeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ListLastCommitsForTreeRequest").msgclass - ListLastCommitsForTreeResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ListLastCommitsForTreeResponse").msgclass - ListLastCommitsForTreeResponse::CommitForTree = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ListLastCommitsForTreeResponse.CommitForTree").msgclass - CommitsByMessageRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CommitsByMessageRequest").msgclass - CommitsByMessageResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CommitsByMessageResponse").msgclass - FilterShasWithSignaturesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FilterShasWithSignaturesRequest").msgclass - FilterShasWithSignaturesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FilterShasWithSignaturesResponse").msgclass - ExtractCommitSignatureRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ExtractCommitSignatureRequest").msgclass - ExtractCommitSignatureResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ExtractCommitSignatureResponse").msgclass - GetCommitSignaturesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GetCommitSignaturesRequest").msgclass - GetCommitSignaturesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GetCommitSignaturesResponse").msgclass - GetCommitMessagesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GetCommitMessagesRequest").msgclass - GetCommitMessagesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GetCommitMessagesResponse").msgclass - CheckObjectsExistRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CheckObjectsExistRequest").msgclass - CheckObjectsExistResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CheckObjectsExistResponse").msgclass - CheckObjectsExistResponse::RevisionExistence = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CheckObjectsExistResponse.RevisionExistence").msgclass -end diff --git a/ruby/proto/gitaly/commit_services_pb.rb b/ruby/proto/gitaly/commit_services_pb.rb deleted file mode 100644 index c99e663fb..000000000 --- a/ruby/proto/gitaly/commit_services_pb.rb +++ /dev/null @@ -1,76 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: commit.proto for package 'gitaly' - -require 'grpc' -require 'commit_pb' - -module Gitaly - module CommitService - # CommitService is a service which provides RPCs that interact with Git - # commits. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'gitaly.CommitService' - - # ListCommits lists all commits reachable via a set of references by doing a - # graph walk. This deprecates FindAllCommits and FindCommits (except Follow - # is not yet supported). Any unknown revisions will cause the RPC to fail. - rpc :ListCommits, ::Gitaly::ListCommitsRequest, stream(::Gitaly::ListCommitsResponse) - # ListAllCommits lists all commits present in the repository, including - # those not reachable by any reference. - rpc :ListAllCommits, ::Gitaly::ListAllCommitsRequest, stream(::Gitaly::ListAllCommitsResponse) - # This comment is left unintentionally blank. - rpc :CommitIsAncestor, ::Gitaly::CommitIsAncestorRequest, ::Gitaly::CommitIsAncestorResponse - # This comment is left unintentionally blank. - rpc :TreeEntry, ::Gitaly::TreeEntryRequest, stream(::Gitaly::TreeEntryResponse) - # This comment is left unintentionally blank. - rpc :CountCommits, ::Gitaly::CountCommitsRequest, ::Gitaly::CountCommitsResponse - # This comment is left unintentionally blank. - rpc :CountDivergingCommits, ::Gitaly::CountDivergingCommitsRequest, ::Gitaly::CountDivergingCommitsResponse - # This comment is left unintentionally blank. - rpc :GetTreeEntries, ::Gitaly::GetTreeEntriesRequest, stream(::Gitaly::GetTreeEntriesResponse) - # This comment is left unintentionally blank. - rpc :ListFiles, ::Gitaly::ListFilesRequest, stream(::Gitaly::ListFilesResponse) - # This comment is left unintentionally blank. - rpc :FindCommit, ::Gitaly::FindCommitRequest, ::Gitaly::FindCommitResponse - # This comment is left unintentionally blank. - rpc :CommitStats, ::Gitaly::CommitStatsRequest, ::Gitaly::CommitStatsResponse - # Use a stream to paginate the result set - rpc :FindAllCommits, ::Gitaly::FindAllCommitsRequest, stream(::Gitaly::FindAllCommitsResponse) - # This comment is left unintentionally blank. - rpc :FindCommits, ::Gitaly::FindCommitsRequest, stream(::Gitaly::FindCommitsResponse) - # CommitLanguages detects the source code languages of the whole tree for a - # given commit. Returns an error in case no languages could be detected. - rpc :CommitLanguages, ::Gitaly::CommitLanguagesRequest, ::Gitaly::CommitLanguagesResponse - # This comment is left unintentionally blank. - rpc :RawBlame, ::Gitaly::RawBlameRequest, stream(::Gitaly::RawBlameResponse) - # This comment is left unintentionally blank. - rpc :LastCommitForPath, ::Gitaly::LastCommitForPathRequest, ::Gitaly::LastCommitForPathResponse - # This comment is left unintentionally blank. - rpc :ListLastCommitsForTree, ::Gitaly::ListLastCommitsForTreeRequest, stream(::Gitaly::ListLastCommitsForTreeResponse) - # This comment is left unintentionally blank. - rpc :CommitsByMessage, ::Gitaly::CommitsByMessageRequest, stream(::Gitaly::CommitsByMessageResponse) - # This comment is left unintentionally blank. - rpc :ListCommitsByOid, ::Gitaly::ListCommitsByOidRequest, stream(::Gitaly::ListCommitsByOidResponse) - # This comment is left unintentionally blank. - rpc :ListCommitsByRefName, ::Gitaly::ListCommitsByRefNameRequest, stream(::Gitaly::ListCommitsByRefNameResponse) - # This comment is left unintentionally blank. - rpc :FilterShasWithSignatures, stream(::Gitaly::FilterShasWithSignaturesRequest), stream(::Gitaly::FilterShasWithSignaturesResponse) - # This comment is left unintentionally blank. - rpc :GetCommitSignatures, ::Gitaly::GetCommitSignaturesRequest, stream(::Gitaly::GetCommitSignaturesResponse) - # This comment is left unintentionally blank. - rpc :GetCommitMessages, ::Gitaly::GetCommitMessagesRequest, stream(::Gitaly::GetCommitMessagesResponse) - # CheckObjectsExist will check for the existence of revisions against a - # repository. It returns two sets of data. An array containing the revisions - # fromm the input that it found on the repository, and an array that contains all - # revisions from the input it did not find on the repository. - rpc :CheckObjectsExist, stream(::Gitaly::CheckObjectsExistRequest), stream(::Gitaly::CheckObjectsExistResponse) - end - - Stub = Service.rpc_stub_class - end -end diff --git a/ruby/proto/gitaly/conflicts_pb.rb b/ruby/proto/gitaly/conflicts_pb.rb deleted file mode 100644 index 1dcc1cdbe..000000000 --- a/ruby/proto/gitaly/conflicts_pb.rb +++ /dev/null @@ -1,64 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: conflicts.proto - -require 'google/protobuf/timestamp_pb' -require 'lint_pb' -require 'shared_pb' -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("conflicts.proto", :syntax => :proto3) do - add_message "gitaly.ListConflictFilesRequest" do - optional :repository, :message, 1, "gitaly.Repository" - optional :our_commit_oid, :string, 2 - optional :their_commit_oid, :string, 3 - optional :allow_tree_conflicts, :bool, 4 - end - add_message "gitaly.ConflictFileHeader" do - optional :commit_oid, :string, 2 - optional :their_path, :bytes, 3 - optional :our_path, :bytes, 4 - optional :our_mode, :int32, 5 - optional :ancestor_path, :bytes, 6 - end - add_message "gitaly.ConflictFile" do - oneof :conflict_file_payload do - optional :header, :message, 1, "gitaly.ConflictFileHeader" - optional :content, :bytes, 2 - end - end - add_message "gitaly.ListConflictFilesResponse" do - repeated :files, :message, 1, "gitaly.ConflictFile" - end - add_message "gitaly.ResolveConflictsRequestHeader" do - optional :repository, :message, 1, "gitaly.Repository" - optional :our_commit_oid, :string, 2 - optional :target_repository, :message, 3, "gitaly.Repository" - optional :their_commit_oid, :string, 4 - optional :source_branch, :bytes, 5 - optional :target_branch, :bytes, 6 - optional :commit_message, :bytes, 7 - optional :user, :message, 8, "gitaly.User" - optional :timestamp, :message, 9, "google.protobuf.Timestamp" - end - add_message "gitaly.ResolveConflictsRequest" do - oneof :resolve_conflicts_request_payload do - optional :header, :message, 1, "gitaly.ResolveConflictsRequestHeader" - optional :files_json, :bytes, 2 - end - end - add_message "gitaly.ResolveConflictsResponse" do - optional :resolution_error, :string, 1 - end - end -end - -module Gitaly - ListConflictFilesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ListConflictFilesRequest").msgclass - ConflictFileHeader = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ConflictFileHeader").msgclass - ConflictFile = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ConflictFile").msgclass - ListConflictFilesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ListConflictFilesResponse").msgclass - ResolveConflictsRequestHeader = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ResolveConflictsRequestHeader").msgclass - ResolveConflictsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ResolveConflictsRequest").msgclass - ResolveConflictsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ResolveConflictsResponse").msgclass -end diff --git a/ruby/proto/gitaly/conflicts_services_pb.rb b/ruby/proto/gitaly/conflicts_services_pb.rb deleted file mode 100644 index 245cdd2eb..000000000 --- a/ruby/proto/gitaly/conflicts_services_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: conflicts.proto for package 'gitaly' - -require 'grpc' -require 'conflicts_pb' - -module Gitaly - module ConflictsService - # ConflictsService is a service which provides RPCs to interact with conflicts - # resulting from a merge. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'gitaly.ConflictsService' - - # ListConflictFiles returns all conflicting files which result from a merge - # of two specified commit objects. - rpc :ListConflictFiles, ::Gitaly::ListConflictFilesRequest, stream(::Gitaly::ListConflictFilesResponse) - # ResolveConflicts tries to resolve a conflicting merge with a set of - # user-provided merge resolutions. If resolving the conflict succeeds, the - # result will be a new merge commit. - rpc :ResolveConflicts, stream(::Gitaly::ResolveConflictsRequest), ::Gitaly::ResolveConflictsResponse - end - - Stub = Service.rpc_stub_class - end -end diff --git a/ruby/proto/gitaly/diff_pb.rb b/ruby/proto/gitaly/diff_pb.rb deleted file mode 100644 index 5018218b5..000000000 --- a/ruby/proto/gitaly/diff_pb.rb +++ /dev/null @@ -1,151 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: diff.proto - -require 'lint_pb' -require 'shared_pb' -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("diff.proto", :syntax => :proto3) do - add_message "gitaly.CommitDiffRequest" do - optional :repository, :message, 1, "gitaly.Repository" - optional :left_commit_id, :string, 2 - optional :right_commit_id, :string, 3 - optional :ignore_whitespace_change, :bool, 4 - repeated :paths, :bytes, 5 - optional :collapse_diffs, :bool, 6 - optional :enforce_limits, :bool, 7 - optional :max_files, :int32, 8 - optional :max_lines, :int32, 9 - optional :max_bytes, :int32, 10 - optional :max_patch_bytes, :int32, 14 - optional :safe_max_files, :int32, 11 - optional :safe_max_lines, :int32, 12 - optional :safe_max_bytes, :int32, 13 - optional :diff_mode, :enum, 15, "gitaly.CommitDiffRequest.DiffMode" - end - add_enum "gitaly.CommitDiffRequest.DiffMode" do - value :DEFAULT, 0 - value :WORDDIFF, 1 - end - add_message "gitaly.CommitDiffResponse" do - optional :from_path, :bytes, 1 - optional :to_path, :bytes, 2 - optional :from_id, :string, 3 - optional :to_id, :string, 4 - optional :old_mode, :int32, 5 - optional :new_mode, :int32, 6 - optional :binary, :bool, 7 - optional :raw_patch_data, :bytes, 9 - optional :end_of_patch, :bool, 10 - optional :overflow_marker, :bool, 11 - optional :collapsed, :bool, 12 - optional :too_large, :bool, 13 - end - add_message "gitaly.CommitDeltaRequest" do - optional :repository, :message, 1, "gitaly.Repository" - optional :left_commit_id, :string, 2 - optional :right_commit_id, :string, 3 - repeated :paths, :bytes, 4 - end - add_message "gitaly.CommitDelta" do - optional :from_path, :bytes, 1 - optional :to_path, :bytes, 2 - optional :from_id, :string, 3 - optional :to_id, :string, 4 - optional :old_mode, :int32, 5 - optional :new_mode, :int32, 6 - end - add_message "gitaly.CommitDeltaResponse" do - repeated :deltas, :message, 1, "gitaly.CommitDelta" - end - add_message "gitaly.RawDiffRequest" do - optional :repository, :message, 1, "gitaly.Repository" - optional :left_commit_id, :string, 2 - optional :right_commit_id, :string, 3 - end - add_message "gitaly.RawDiffResponse" do - optional :data, :bytes, 1 - end - add_message "gitaly.RawPatchRequest" do - optional :repository, :message, 1, "gitaly.Repository" - optional :left_commit_id, :string, 2 - optional :right_commit_id, :string, 3 - end - add_message "gitaly.RawPatchResponse" do - optional :data, :bytes, 1 - end - add_message "gitaly.DiffStatsRequest" do - optional :repository, :message, 1, "gitaly.Repository" - optional :left_commit_id, :string, 2 - optional :right_commit_id, :string, 3 - end - add_message "gitaly.DiffStats" do - optional :path, :bytes, 1 - optional :additions, :int32, 2 - optional :deletions, :int32, 3 - optional :old_path, :bytes, 4 - end - add_message "gitaly.DiffStatsResponse" do - repeated :stats, :message, 1, "gitaly.DiffStats" - end - add_message "gitaly.FindChangedPathsRequest" do - optional :repository, :message, 1, "gitaly.Repository" - repeated :commits, :string, 2 - repeated :requests, :message, 3, "gitaly.FindChangedPathsRequest.Request" - end - add_message "gitaly.FindChangedPathsRequest.Request" do - oneof :type do - optional :tree_request, :message, 1, "gitaly.FindChangedPathsRequest.Request.TreeRequest" - optional :commit_request, :message, 2, "gitaly.FindChangedPathsRequest.Request.CommitRequest" - end - end - add_message "gitaly.FindChangedPathsRequest.Request.TreeRequest" do - optional :left_tree_revision, :string, 1 - optional :right_tree_revision, :string, 2 - end - add_message "gitaly.FindChangedPathsRequest.Request.CommitRequest" do - optional :commit_revision, :string, 1 - repeated :parent_commit_revisions, :string, 2 - end - add_message "gitaly.FindChangedPathsResponse" do - repeated :paths, :message, 1, "gitaly.ChangedPaths" - end - add_message "gitaly.ChangedPaths" do - optional :path, :bytes, 1 - optional :status, :enum, 2, "gitaly.ChangedPaths.Status" - optional :old_mode, :int32, 3 - optional :new_mode, :int32, 4 - end - add_enum "gitaly.ChangedPaths.Status" do - value :ADDED, 0 - value :MODIFIED, 1 - value :DELETED, 2 - value :TYPE_CHANGE, 3 - value :COPIED, 4 - end - end -end - -module Gitaly - CommitDiffRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CommitDiffRequest").msgclass - CommitDiffRequest::DiffMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CommitDiffRequest.DiffMode").enummodule - CommitDiffResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CommitDiffResponse").msgclass - CommitDeltaRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CommitDeltaRequest").msgclass - CommitDelta = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CommitDelta").msgclass - CommitDeltaResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CommitDeltaResponse").msgclass - RawDiffRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.RawDiffRequest").msgclass - RawDiffResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.RawDiffResponse").msgclass - RawPatchRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.RawPatchRequest").msgclass - RawPatchResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.RawPatchResponse").msgclass - DiffStatsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.DiffStatsRequest").msgclass - DiffStats = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.DiffStats").msgclass - DiffStatsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.DiffStatsResponse").msgclass - FindChangedPathsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindChangedPathsRequest").msgclass - FindChangedPathsRequest::Request = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindChangedPathsRequest.Request").msgclass - FindChangedPathsRequest::Request::TreeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindChangedPathsRequest.Request.TreeRequest").msgclass - FindChangedPathsRequest::Request::CommitRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindChangedPathsRequest.Request.CommitRequest").msgclass - FindChangedPathsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindChangedPathsResponse").msgclass - ChangedPaths = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ChangedPaths").msgclass - ChangedPaths::Status = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ChangedPaths.Status").enummodule -end diff --git a/ruby/proto/gitaly/diff_services_pb.rb b/ruby/proto/gitaly/diff_services_pb.rb deleted file mode 100644 index c325ed65e..000000000 --- a/ruby/proto/gitaly/diff_services_pb.rb +++ /dev/null @@ -1,35 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: diff.proto for package 'gitaly' - -require 'grpc' -require 'diff_pb' - -module Gitaly - module DiffService - # DiffService is a service which provides RPCs to inspect differences - # introduced between a set of commits. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'gitaly.DiffService' - - # Returns stream of CommitDiffResponse with patches chunked over messages - rpc :CommitDiff, ::Gitaly::CommitDiffRequest, stream(::Gitaly::CommitDiffResponse) - # Return a stream so we can divide the response in chunks of deltas - rpc :CommitDelta, ::Gitaly::CommitDeltaRequest, stream(::Gitaly::CommitDeltaResponse) - # This comment is left unintentionally blank. - rpc :RawDiff, ::Gitaly::RawDiffRequest, stream(::Gitaly::RawDiffResponse) - # This comment is left unintentionally blank. - rpc :RawPatch, ::Gitaly::RawPatchRequest, stream(::Gitaly::RawPatchResponse) - # This comment is left unintentionally blank. - rpc :DiffStats, ::Gitaly::DiffStatsRequest, stream(::Gitaly::DiffStatsResponse) - # Return a list of files changed along with the status of each file - rpc :FindChangedPaths, ::Gitaly::FindChangedPathsRequest, stream(::Gitaly::FindChangedPathsResponse) - end - - Stub = Service.rpc_stub_class - end -end diff --git a/ruby/proto/gitaly/errors_pb.rb b/ruby/proto/gitaly/errors_pb.rb deleted file mode 100644 index 77600fbf7..000000000 --- a/ruby/proto/gitaly/errors_pb.rb +++ /dev/null @@ -1,93 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: errors.proto - -require 'google/protobuf/duration_pb' -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("errors.proto", :syntax => :proto3) do - add_message "gitaly.AccessCheckError" do - optional :error_message, :string, 1 - optional :protocol, :string, 2 - optional :user_id, :string, 3 - optional :changes, :bytes, 4 - end - add_message "gitaly.IndexError" do - optional :path, :bytes, 1 - optional :error_type, :enum, 2, "gitaly.IndexError.ErrorType" - end - add_enum "gitaly.IndexError.ErrorType" do - value :ERROR_TYPE_UNSPECIFIED, 0 - value :ERROR_TYPE_EMPTY_PATH, 1 - value :ERROR_TYPE_INVALID_PATH, 2 - value :ERROR_TYPE_DIRECTORY_EXISTS, 3 - value :ERROR_TYPE_DIRECTORY_TRAVERSAL, 4 - value :ERROR_TYPE_FILE_EXISTS, 5 - value :ERROR_TYPE_FILE_NOT_FOUND, 6 - end - add_message "gitaly.InvalidRefFormatError" do - repeated :refs, :bytes, 2 - end - add_message "gitaly.NotAncestorError" do - optional :parent_revision, :bytes, 1 - optional :child_revision, :bytes, 2 - end - add_message "gitaly.ChangesAlreadyAppliedError" do - end - add_message "gitaly.MergeConflictError" do - repeated :conflicting_files, :bytes, 1 - repeated :conflicting_commit_ids, :string, 2 - end - add_message "gitaly.ReferencesLockedError" do - repeated :refs, :bytes, 1 - end - add_message "gitaly.ReferenceExistsError" do - optional :reference_name, :bytes, 1 - optional :oid, :string, 2 - end - add_message "gitaly.ReferenceNotFoundError" do - optional :reference_name, :bytes, 1 - end - add_message "gitaly.ReferenceUpdateError" do - optional :reference_name, :bytes, 1 - optional :old_oid, :string, 2 - optional :new_oid, :string, 3 - end - add_message "gitaly.ResolveRevisionError" do - optional :revision, :bytes, 1 - end - add_message "gitaly.LimitError" do - optional :error_message, :string, 1 - optional :retry_after, :message, 2, "google.protobuf.Duration" - end - add_message "gitaly.CustomHookError" do - optional :stdout, :bytes, 1 - optional :stderr, :bytes, 2 - optional :hook_type, :enum, 3, "gitaly.CustomHookError.HookType" - end - add_enum "gitaly.CustomHookError.HookType" do - value :HOOK_TYPE_UNSPECIFIED, 0 - value :HOOK_TYPE_PRERECEIVE, 1 - value :HOOK_TYPE_UPDATE, 2 - value :HOOK_TYPE_POSTRECEIVE, 3 - end - end -end - -module Gitaly - AccessCheckError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.AccessCheckError").msgclass - IndexError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.IndexError").msgclass - IndexError::ErrorType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.IndexError.ErrorType").enummodule - InvalidRefFormatError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.InvalidRefFormatError").msgclass - NotAncestorError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.NotAncestorError").msgclass - ChangesAlreadyAppliedError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ChangesAlreadyAppliedError").msgclass - MergeConflictError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.MergeConflictError").msgclass - ReferencesLockedError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ReferencesLockedError").msgclass - ReferenceExistsError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ReferenceExistsError").msgclass - ReferenceNotFoundError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ReferenceNotFoundError").msgclass - ReferenceUpdateError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ReferenceUpdateError").msgclass - ResolveRevisionError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ResolveRevisionError").msgclass - LimitError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.LimitError").msgclass - CustomHookError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CustomHookError").msgclass - CustomHookError::HookType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CustomHookError.HookType").enummodule -end diff --git a/ruby/proto/gitaly/hook_pb.rb b/ruby/proto/gitaly/hook_pb.rb deleted file mode 100644 index 811749589..000000000 --- a/ruby/proto/gitaly/hook_pb.rb +++ /dev/null @@ -1,84 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: hook.proto - -require 'lint_pb' -require 'shared_pb' -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("hook.proto", :syntax => :proto3) do - add_message "gitaly.PreReceiveHookRequest" do - optional :repository, :message, 1, "gitaly.Repository" - repeated :environment_variables, :string, 2 - optional :stdin, :bytes, 4 - repeated :git_push_options, :string, 5 - end - add_message "gitaly.PreReceiveHookResponse" do - optional :stdout, :bytes, 1 - optional :stderr, :bytes, 2 - optional :exit_status, :message, 3, "gitaly.ExitStatus" - end - add_message "gitaly.PostReceiveHookRequest" do - optional :repository, :message, 1, "gitaly.Repository" - repeated :environment_variables, :string, 2 - optional :stdin, :bytes, 3 - repeated :git_push_options, :string, 4 - end - add_message "gitaly.PostReceiveHookResponse" do - optional :stdout, :bytes, 1 - optional :stderr, :bytes, 2 - optional :exit_status, :message, 3, "gitaly.ExitStatus" - end - add_message "gitaly.UpdateHookRequest" do - optional :repository, :message, 1, "gitaly.Repository" - repeated :environment_variables, :string, 2 - optional :ref, :bytes, 3 - optional :old_value, :string, 4 - optional :new_value, :string, 5 - end - add_message "gitaly.UpdateHookResponse" do - optional :stdout, :bytes, 1 - optional :stderr, :bytes, 2 - optional :exit_status, :message, 3, "gitaly.ExitStatus" - end - add_message "gitaly.ReferenceTransactionHookRequest" do - optional :repository, :message, 1, "gitaly.Repository" - repeated :environment_variables, :string, 2 - optional :stdin, :bytes, 3 - optional :state, :enum, 4, "gitaly.ReferenceTransactionHookRequest.State" - end - add_enum "gitaly.ReferenceTransactionHookRequest.State" do - value :PREPARED, 0 - value :COMMITTED, 1 - value :ABORTED, 2 - end - add_message "gitaly.ReferenceTransactionHookResponse" do - optional :stdout, :bytes, 1 - optional :stderr, :bytes, 2 - optional :exit_status, :message, 3, "gitaly.ExitStatus" - end - add_message "gitaly.PackObjectsHookWithSidechannelRequest" do - optional :repository, :message, 1, "gitaly.Repository" - repeated :args, :string, 2 - optional :gl_id, :string, 3 - optional :gl_username, :string, 5 - optional :git_protocol, :string, 6 - end - add_message "gitaly.PackObjectsHookWithSidechannelResponse" do - end - end -end - -module Gitaly - PreReceiveHookRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.PreReceiveHookRequest").msgclass - PreReceiveHookResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.PreReceiveHookResponse").msgclass - PostReceiveHookRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.PostReceiveHookRequest").msgclass - PostReceiveHookResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.PostReceiveHookResponse").msgclass - UpdateHookRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UpdateHookRequest").msgclass - UpdateHookResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UpdateHookResponse").msgclass - ReferenceTransactionHookRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ReferenceTransactionHookRequest").msgclass - ReferenceTransactionHookRequest::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ReferenceTransactionHookRequest.State").enummodule - ReferenceTransactionHookResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ReferenceTransactionHookResponse").msgclass - PackObjectsHookWithSidechannelRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.PackObjectsHookWithSidechannelRequest").msgclass - PackObjectsHookWithSidechannelResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.PackObjectsHookWithSidechannelResponse").msgclass -end diff --git a/ruby/proto/gitaly/hook_services_pb.rb b/ruby/proto/gitaly/hook_services_pb.rb deleted file mode 100644 index 0854e819a..000000000 --- a/ruby/proto/gitaly/hook_services_pb.rb +++ /dev/null @@ -1,35 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: hook.proto for package 'gitaly' - -require 'grpc' -require 'hook_pb' - -module Gitaly - module HookService - # HookService is a service which provides the implementation of a subset of - # Git hooks. These are typically invoked via the `gitaly-hooks` binary to - # ensure that the actual hook logic is executed in the context of the server. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'gitaly.HookService' - - # This comment is left unintentionally blank. - rpc :PreReceiveHook, stream(::Gitaly::PreReceiveHookRequest), stream(::Gitaly::PreReceiveHookResponse) - # This comment is left unintentionally blank. - rpc :PostReceiveHook, stream(::Gitaly::PostReceiveHookRequest), stream(::Gitaly::PostReceiveHookResponse) - # This comment is left unintentionally blank. - rpc :UpdateHook, ::Gitaly::UpdateHookRequest, stream(::Gitaly::UpdateHookResponse) - # This comment is left unintentionally blank. - rpc :ReferenceTransactionHook, stream(::Gitaly::ReferenceTransactionHookRequest), stream(::Gitaly::ReferenceTransactionHookResponse) - # PackObjectsHookWithSidechannel is an optimized version of PackObjectsHook that uses - # a unix socket side channel. - rpc :PackObjectsHookWithSidechannel, ::Gitaly::PackObjectsHookWithSidechannelRequest, ::Gitaly::PackObjectsHookWithSidechannelResponse - end - - Stub = Service.rpc_stub_class - end -end diff --git a/ruby/proto/gitaly/internal_pb.rb b/ruby/proto/gitaly/internal_pb.rb deleted file mode 100644 index 6c6902907..000000000 --- a/ruby/proto/gitaly/internal_pb.rb +++ /dev/null @@ -1,23 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: internal.proto - -require 'google/protobuf/timestamp_pb' -require 'lint_pb' -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("internal.proto", :syntax => :proto3) do - add_message "gitaly.WalkReposRequest" do - optional :storage_name, :string, 1 - end - add_message "gitaly.WalkReposResponse" do - optional :relative_path, :string, 1 - optional :modification_time, :message, 2, "google.protobuf.Timestamp" - end - end -end - -module Gitaly - WalkReposRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.WalkReposRequest").msgclass - WalkReposResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.WalkReposResponse").msgclass -end diff --git a/ruby/proto/gitaly/internal_services_pb.rb b/ruby/proto/gitaly/internal_services_pb.rb deleted file mode 100644 index 07d4b2e12..000000000 --- a/ruby/proto/gitaly/internal_services_pb.rb +++ /dev/null @@ -1,26 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: internal.proto for package 'gitaly' - -require 'grpc' -require 'internal_pb' - -module Gitaly - module InternalGitaly - # InternalGitaly is a gRPC service meant to be served by a Gitaly node, but - # only reachable by Praefect or other Gitalies - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'gitaly.InternalGitaly' - - # WalkRepos walks the storage and streams back all known git repos on the - # requested storage - rpc :WalkRepos, ::Gitaly::WalkReposRequest, stream(::Gitaly::WalkReposResponse) - end - - Stub = Service.rpc_stub_class - end -end diff --git a/ruby/proto/gitaly/lint_pb.rb b/ruby/proto/gitaly/lint_pb.rb deleted file mode 100644 index 2cfe612e0..000000000 --- a/ruby/proto/gitaly/lint_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: lint.proto - -require 'google/protobuf/descriptor_pb' -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("lint.proto", :syntax => :proto3) do - add_message "gitaly.OperationMsg" do - optional :op, :enum, 1, "gitaly.OperationMsg.Operation" - optional :scope_level, :enum, 2, "gitaly.OperationMsg.Scope" - end - add_enum "gitaly.OperationMsg.Operation" do - value :UNKNOWN, 0 - value :MUTATOR, 1 - value :ACCESSOR, 2 - value :MAINTENANCE, 3 - end - add_enum "gitaly.OperationMsg.Scope" do - value :REPOSITORY, 0 - value :STORAGE, 2 - end - end -end - -module Gitaly - OperationMsg = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.OperationMsg").msgclass - OperationMsg::Operation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.OperationMsg.Operation").enummodule - OperationMsg::Scope = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.OperationMsg.Scope").enummodule -end diff --git a/ruby/proto/gitaly/namespace_pb.rb b/ruby/proto/gitaly/namespace_pb.rb deleted file mode 100644 index e07a04ba8..000000000 --- a/ruby/proto/gitaly/namespace_pb.rb +++ /dev/null @@ -1,47 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: namespace.proto - -require 'lint_pb' -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("namespace.proto", :syntax => :proto3) do - add_message "gitaly.AddNamespaceRequest" do - optional :storage_name, :string, 1 - optional :name, :string, 2 - end - add_message "gitaly.RemoveNamespaceRequest" do - optional :storage_name, :string, 1 - optional :name, :string, 2 - end - add_message "gitaly.RenameNamespaceRequest" do - optional :storage_name, :string, 1 - optional :from, :string, 2 - optional :to, :string, 3 - end - add_message "gitaly.NamespaceExistsRequest" do - optional :storage_name, :string, 1 - optional :name, :string, 2 - end - add_message "gitaly.NamespaceExistsResponse" do - optional :exists, :bool, 1 - end - add_message "gitaly.AddNamespaceResponse" do - end - add_message "gitaly.RemoveNamespaceResponse" do - end - add_message "gitaly.RenameNamespaceResponse" do - end - end -end - -module Gitaly - AddNamespaceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.AddNamespaceRequest").msgclass - RemoveNamespaceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.RemoveNamespaceRequest").msgclass - RenameNamespaceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.RenameNamespaceRequest").msgclass - NamespaceExistsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.NamespaceExistsRequest").msgclass - NamespaceExistsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.NamespaceExistsResponse").msgclass - AddNamespaceResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.AddNamespaceResponse").msgclass - RemoveNamespaceResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.RemoveNamespaceResponse").msgclass - RenameNamespaceResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.RenameNamespaceResponse").msgclass -end diff --git a/ruby/proto/gitaly/namespace_services_pb.rb b/ruby/proto/gitaly/namespace_services_pb.rb deleted file mode 100644 index ce0a0c2a8..000000000 --- a/ruby/proto/gitaly/namespace_services_pb.rb +++ /dev/null @@ -1,32 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: namespace.proto for package 'gitaly' - -require 'grpc' -require 'namespace_pb' - -module Gitaly - module NamespaceService - # NamespaceService is a service which provides RPCs to manage namespaces of a - # storage. Namespaces had been used before Gitaly migrated to hashed storages - # and shouldn't be used nowadays anymore. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'gitaly.NamespaceService' - - # This comment is left unintentionally blank. - rpc :AddNamespace, ::Gitaly::AddNamespaceRequest, ::Gitaly::AddNamespaceResponse - # This comment is left unintentionally blank. - rpc :RemoveNamespace, ::Gitaly::RemoveNamespaceRequest, ::Gitaly::RemoveNamespaceResponse - # This comment is left unintentionally blank. - rpc :RenameNamespace, ::Gitaly::RenameNamespaceRequest, ::Gitaly::RenameNamespaceResponse - # This comment is left unintentionally blank. - rpc :NamespaceExists, ::Gitaly::NamespaceExistsRequest, ::Gitaly::NamespaceExistsResponse - end - - Stub = Service.rpc_stub_class - end -end diff --git a/ruby/proto/gitaly/objectpool_pb.rb b/ruby/proto/gitaly/objectpool_pb.rb deleted file mode 100644 index f022a19d6..000000000 --- a/ruby/proto/gitaly/objectpool_pb.rb +++ /dev/null @@ -1,67 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: objectpool.proto - -require 'lint_pb' -require 'shared_pb' -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("objectpool.proto", :syntax => :proto3) do - add_message "gitaly.CreateObjectPoolRequest" do - optional :object_pool, :message, 1, "gitaly.ObjectPool" - optional :origin, :message, 2, "gitaly.Repository" - end - add_message "gitaly.CreateObjectPoolResponse" do - end - add_message "gitaly.DeleteObjectPoolRequest" do - optional :object_pool, :message, 1, "gitaly.ObjectPool" - end - add_message "gitaly.DeleteObjectPoolResponse" do - end - add_message "gitaly.LinkRepositoryToObjectPoolRequest" do - optional :object_pool, :message, 1, "gitaly.ObjectPool" - optional :repository, :message, 2, "gitaly.Repository" - end - add_message "gitaly.LinkRepositoryToObjectPoolResponse" do - end - add_message "gitaly.ReduplicateRepositoryRequest" do - optional :repository, :message, 1, "gitaly.Repository" - end - add_message "gitaly.ReduplicateRepositoryResponse" do - end - add_message "gitaly.DisconnectGitAlternatesRequest" do - optional :repository, :message, 1, "gitaly.Repository" - end - add_message "gitaly.DisconnectGitAlternatesResponse" do - end - add_message "gitaly.FetchIntoObjectPoolRequest" do - optional :origin, :message, 1, "gitaly.Repository" - optional :object_pool, :message, 2, "gitaly.ObjectPool" - end - add_message "gitaly.FetchIntoObjectPoolResponse" do - end - add_message "gitaly.GetObjectPoolRequest" do - optional :repository, :message, 1, "gitaly.Repository" - end - add_message "gitaly.GetObjectPoolResponse" do - optional :object_pool, :message, 1, "gitaly.ObjectPool" - end - end -end - -module Gitaly - CreateObjectPoolRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CreateObjectPoolRequest").msgclass - CreateObjectPoolResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CreateObjectPoolResponse").msgclass - DeleteObjectPoolRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.DeleteObjectPoolRequest").msgclass - DeleteObjectPoolResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.DeleteObjectPoolResponse").msgclass - LinkRepositoryToObjectPoolRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.LinkRepositoryToObjectPoolRequest").msgclass - LinkRepositoryToObjectPoolResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.LinkRepositoryToObjectPoolResponse").msgclass - ReduplicateRepositoryRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ReduplicateRepositoryRequest").msgclass - ReduplicateRepositoryResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ReduplicateRepositoryResponse").msgclass - DisconnectGitAlternatesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.DisconnectGitAlternatesRequest").msgclass - DisconnectGitAlternatesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.DisconnectGitAlternatesResponse").msgclass - FetchIntoObjectPoolRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FetchIntoObjectPoolRequest").msgclass - FetchIntoObjectPoolResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FetchIntoObjectPoolResponse").msgclass - GetObjectPoolRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GetObjectPoolRequest").msgclass - GetObjectPoolResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GetObjectPoolResponse").msgclass -end diff --git a/ruby/proto/gitaly/objectpool_services_pb.rb b/ruby/proto/gitaly/objectpool_services_pb.rb deleted file mode 100644 index fe12b6ab2..000000000 --- a/ruby/proto/gitaly/objectpool_services_pb.rb +++ /dev/null @@ -1,42 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: objectpool.proto for package 'gitaly' - -require 'grpc' -require 'objectpool_pb' - -module Gitaly - module ObjectPoolService - # ObjectPoolService is a service containing RPCs to manipulate object pools. - # An object pool is a separate repository that can be linked to from multiple - # satellite repositories in order to deduplicate common objects between them. - # This is mostly used in the contexet of repository forks. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'gitaly.ObjectPoolService' - - # This comment is left unintentionally blank. - rpc :CreateObjectPool, ::Gitaly::CreateObjectPoolRequest, ::Gitaly::CreateObjectPoolResponse - # This comment is left unintentionally blank. - rpc :DeleteObjectPool, ::Gitaly::DeleteObjectPoolRequest, ::Gitaly::DeleteObjectPoolResponse - # Repositories are assumed to be stored on the same disk - rpc :LinkRepositoryToObjectPool, ::Gitaly::LinkRepositoryToObjectPoolRequest, ::Gitaly::LinkRepositoryToObjectPoolResponse - # This comment is left unintentionally blank. - rpc :ReduplicateRepository, ::Gitaly::ReduplicateRepositoryRequest, ::Gitaly::ReduplicateRepositoryResponse - # This comment is left unintentionally blank. - rpc :DisconnectGitAlternates, ::Gitaly::DisconnectGitAlternatesRequest, ::Gitaly::DisconnectGitAlternatesResponse - # FetchIntoObjectPool fetches all references from a pool member into an object pool so that - # objects shared between this repository and other pool members can be deduplicated. This RPC - # will perform housekeeping tasks after the object pool has been updated to ensure that the pool - # is in an optimal state. - rpc :FetchIntoObjectPool, ::Gitaly::FetchIntoObjectPoolRequest, ::Gitaly::FetchIntoObjectPoolResponse - # This comment is left unintentionally blank. - rpc :GetObjectPool, ::Gitaly::GetObjectPoolRequest, ::Gitaly::GetObjectPoolResponse - end - - Stub = Service.rpc_stub_class - end -end diff --git a/ruby/proto/gitaly/operations_pb.rb b/ruby/proto/gitaly/operations_pb.rb deleted file mode 100644 index de5149965..000000000 --- a/ruby/proto/gitaly/operations_pb.rb +++ /dev/null @@ -1,367 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: operations.proto - -require 'errors_pb' -require 'google/protobuf/timestamp_pb' -require 'lint_pb' -require 'shared_pb' -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("operations.proto", :syntax => :proto3) do - add_message "gitaly.UserCreateBranchRequest" do - optional :repository, :message, 1, "gitaly.Repository" - optional :branch_name, :bytes, 2 - optional :user, :message, 3, "gitaly.User" - optional :start_point, :bytes, 4 - end - add_message "gitaly.UserCreateBranchResponse" do - optional :branch, :message, 1, "gitaly.Branch" - optional :pre_receive_error, :string, 2 - end - add_message "gitaly.UserCreateBranchError" do - oneof :error do - optional :custom_hook, :message, 1, "gitaly.CustomHookError" - end - end - add_message "gitaly.UserUpdateBranchRequest" do - optional :repository, :message, 1, "gitaly.Repository" - optional :branch_name, :bytes, 2 - optional :user, :message, 3, "gitaly.User" - optional :newrev, :bytes, 4 - optional :oldrev, :bytes, 5 - end - add_message "gitaly.UserUpdateBranchResponse" do - optional :pre_receive_error, :string, 1 - end - add_message "gitaly.UserDeleteBranchRequest" do - optional :repository, :message, 1, "gitaly.Repository" - optional :branch_name, :bytes, 2 - optional :user, :message, 3, "gitaly.User" - end - add_message "gitaly.UserDeleteBranchResponse" do - optional :pre_receive_error, :string, 1 - end - add_message "gitaly.UserDeleteBranchError" do - oneof :error do - optional :access_check, :message, 1, "gitaly.AccessCheckError" - optional :reference_update, :message, 2, "gitaly.ReferenceUpdateError" - optional :custom_hook, :message, 3, "gitaly.CustomHookError" - end - end - add_message "gitaly.UserDeleteTagRequest" do - optional :repository, :message, 1, "gitaly.Repository" - optional :tag_name, :bytes, 2 - optional :user, :message, 3, "gitaly.User" - end - add_message "gitaly.UserDeleteTagResponse" do - optional :pre_receive_error, :string, 1 - end - add_message "gitaly.UserCreateTagRequest" do - optional :repository, :message, 1, "gitaly.Repository" - optional :tag_name, :bytes, 2 - optional :user, :message, 3, "gitaly.User" - optional :target_revision, :bytes, 4 - optional :message, :bytes, 5 - optional :timestamp, :message, 7, "google.protobuf.Timestamp" - end - add_message "gitaly.UserCreateTagResponse" do - optional :tag, :message, 1, "gitaly.Tag" - optional :exists, :bool, 2 - optional :pre_receive_error, :string, 3 - end - add_message "gitaly.UserCreateTagError" do - oneof :error do - optional :access_check, :message, 1, "gitaly.AccessCheckError" - optional :reference_update, :message, 2, "gitaly.ReferenceUpdateError" - optional :custom_hook, :message, 3, "gitaly.CustomHookError" - optional :reference_exists, :message, 4, "gitaly.ReferenceExistsError" - end - end - add_message "gitaly.UserMergeBranchRequest" do - optional :repository, :message, 1, "gitaly.Repository" - optional :user, :message, 2, "gitaly.User" - optional :commit_id, :string, 3 - optional :branch, :bytes, 4 - optional :message, :bytes, 5 - optional :timestamp, :message, 7, "google.protobuf.Timestamp" - optional :apply, :bool, 6 - end - add_message "gitaly.UserMergeBranchResponse" do - optional :commit_id, :string, 1 - optional :branch_update, :message, 3, "gitaly.OperationBranchUpdate" - end - add_message "gitaly.UserMergeBranchError" do - oneof :error do - optional :access_check, :message, 1, "gitaly.AccessCheckError" - optional :reference_update, :message, 2, "gitaly.ReferenceUpdateError" - optional :custom_hook, :message, 3, "gitaly.CustomHookError" - optional :merge_conflict, :message, 4, "gitaly.MergeConflictError" - end - end - add_message "gitaly.UserMergeToRefRequest" do - optional :repository, :message, 1, "gitaly.Repository" - optional :user, :message, 2, "gitaly.User" - optional :source_sha, :string, 3 - optional :branch, :bytes, 4 - optional :target_ref, :bytes, 5 - optional :message, :bytes, 6 - optional :first_parent_ref, :bytes, 7 - optional :allow_conflicts, :bool, 8 - optional :timestamp, :message, 9, "google.protobuf.Timestamp" - end - add_message "gitaly.UserMergeToRefResponse" do - optional :commit_id, :string, 1 - end - add_message "gitaly.OperationBranchUpdate" do - optional :commit_id, :string, 1 - optional :repo_created, :bool, 2 - optional :branch_created, :bool, 3 - end - add_message "gitaly.UserFFBranchRequest" do - optional :repository, :message, 1, "gitaly.Repository" - optional :user, :message, 2, "gitaly.User" - optional :commit_id, :string, 3 - optional :branch, :bytes, 4 - end - add_message "gitaly.UserFFBranchResponse" do - optional :branch_update, :message, 1, "gitaly.OperationBranchUpdate" - optional :pre_receive_error, :string, 2 - end - add_message "gitaly.UserCherryPickRequest" do - optional :repository, :message, 1, "gitaly.Repository" - optional :user, :message, 2, "gitaly.User" - optional :commit, :message, 3, "gitaly.GitCommit" - optional :branch_name, :bytes, 4 - optional :message, :bytes, 5 - optional :start_branch_name, :bytes, 6 - optional :start_repository, :message, 7, "gitaly.Repository" - optional :dry_run, :bool, 8 - optional :timestamp, :message, 9, "google.protobuf.Timestamp" - end - add_message "gitaly.UserCherryPickResponse" do - optional :branch_update, :message, 1, "gitaly.OperationBranchUpdate" - optional :create_tree_error, :string, 2 - optional :commit_error, :string, 3 - optional :pre_receive_error, :string, 4 - optional :create_tree_error_code, :enum, 5, "gitaly.UserCherryPickResponse.CreateTreeError" - end - add_enum "gitaly.UserCherryPickResponse.CreateTreeError" do - value :NONE, 0 - value :EMPTY, 1 - value :CONFLICT, 2 - end - add_message "gitaly.UserCherryPickError" do - oneof :error do - optional :cherry_pick_conflict, :message, 1, "gitaly.MergeConflictError" - optional :target_branch_diverged, :message, 2, "gitaly.NotAncestorError" - optional :changes_already_applied, :message, 3, "gitaly.ChangesAlreadyAppliedError" - optional :access_check, :message, 4, "gitaly.AccessCheckError" - end - end - add_message "gitaly.UserRevertRequest" do - optional :repository, :message, 1, "gitaly.Repository" - optional :user, :message, 2, "gitaly.User" - optional :commit, :message, 3, "gitaly.GitCommit" - optional :branch_name, :bytes, 4 - optional :message, :bytes, 5 - optional :start_branch_name, :bytes, 6 - optional :start_repository, :message, 7, "gitaly.Repository" - optional :dry_run, :bool, 8 - optional :timestamp, :message, 9, "google.protobuf.Timestamp" - end - add_message "gitaly.UserRevertResponse" do - optional :branch_update, :message, 1, "gitaly.OperationBranchUpdate" - optional :create_tree_error, :string, 2 - optional :commit_error, :string, 3 - optional :pre_receive_error, :string, 4 - optional :create_tree_error_code, :enum, 5, "gitaly.UserRevertResponse.CreateTreeError" - end - add_enum "gitaly.UserRevertResponse.CreateTreeError" do - value :NONE, 0 - value :EMPTY, 1 - value :CONFLICT, 2 - end - add_message "gitaly.UserCommitFilesActionHeader" do - optional :action, :enum, 1, "gitaly.UserCommitFilesActionHeader.ActionType" - optional :file_path, :bytes, 2 - optional :previous_path, :bytes, 3 - optional :base64_content, :bool, 4 - optional :execute_filemode, :bool, 5 - optional :infer_content, :bool, 6 - end - add_enum "gitaly.UserCommitFilesActionHeader.ActionType" do - value :CREATE, 0 - value :CREATE_DIR, 1 - value :UPDATE, 2 - value :MOVE, 3 - value :DELETE, 4 - value :CHMOD, 5 - end - add_message "gitaly.UserCommitFilesAction" do - oneof :user_commit_files_action_payload do - optional :header, :message, 1, "gitaly.UserCommitFilesActionHeader" - optional :content, :bytes, 2 - end - end - add_message "gitaly.UserCommitFilesRequestHeader" do - optional :repository, :message, 1, "gitaly.Repository" - optional :user, :message, 2, "gitaly.User" - optional :branch_name, :bytes, 3 - optional :commit_message, :bytes, 4 - optional :commit_author_name, :bytes, 5 - optional :commit_author_email, :bytes, 6 - optional :start_branch_name, :bytes, 7 - optional :start_repository, :message, 8, "gitaly.Repository" - optional :force, :bool, 9 - optional :start_sha, :string, 10 - optional :timestamp, :message, 11, "google.protobuf.Timestamp" - end - add_message "gitaly.UserCommitFilesRequest" do - oneof :user_commit_files_request_payload do - optional :header, :message, 1, "gitaly.UserCommitFilesRequestHeader" - optional :action, :message, 2, "gitaly.UserCommitFilesAction" - end - end - add_message "gitaly.UserCommitFilesResponse" do - optional :branch_update, :message, 1, "gitaly.OperationBranchUpdate" - optional :index_error, :string, 2 - optional :pre_receive_error, :string, 3 - end - add_message "gitaly.UserCommitFilesError" do - oneof :error do - optional :access_check, :message, 1, "gitaly.AccessCheckError" - optional :index_update, :message, 2, "gitaly.IndexError" - optional :custom_hook, :message, 3, "gitaly.CustomHookError" - end - end - add_message "gitaly.UserRebaseConfirmableRequest" do - oneof :user_rebase_confirmable_request_payload do - optional :header, :message, 1, "gitaly.UserRebaseConfirmableRequest.Header" - optional :apply, :bool, 2 - end - end - add_message "gitaly.UserRebaseConfirmableRequest.Header" do - optional :repository, :message, 1, "gitaly.Repository" - optional :user, :message, 2, "gitaly.User" - optional :rebase_id, :string, 3 - optional :branch, :bytes, 4 - optional :branch_sha, :string, 5 - optional :remote_repository, :message, 6, "gitaly.Repository" - optional :remote_branch, :bytes, 7 - repeated :git_push_options, :string, 8 - optional :timestamp, :message, 9, "google.protobuf.Timestamp" - end - add_message "gitaly.UserRebaseConfirmableResponse" do - optional :pre_receive_error, :string, 3 - optional :git_error, :string, 4 - oneof :user_rebase_confirmable_response_payload do - optional :rebase_sha, :string, 1 - optional :rebase_applied, :bool, 2 - end - end - add_message "gitaly.UserSquashRequest" do - optional :repository, :message, 1, "gitaly.Repository" - optional :user, :message, 2, "gitaly.User" - optional :start_sha, :string, 5 - optional :end_sha, :string, 6 - optional :author, :message, 7, "gitaly.User" - optional :commit_message, :bytes, 8 - optional :timestamp, :message, 9, "google.protobuf.Timestamp" - end - add_message "gitaly.UserSquashResponse" do - optional :squash_sha, :string, 1 - end - add_message "gitaly.UserRebaseConfirmableError" do - oneof :error do - optional :rebase_conflict, :message, 1, "gitaly.MergeConflictError" - optional :access_check, :message, 2, "gitaly.AccessCheckError" - end - end - add_message "gitaly.UserSquashError" do - oneof :error do - optional :resolve_revision, :message, 1, "gitaly.ResolveRevisionError" - optional :rebase_conflict, :message, 2, "gitaly.MergeConflictError" - end - end - add_message "gitaly.UserApplyPatchRequest" do - oneof :user_apply_patch_request_payload do - optional :header, :message, 1, "gitaly.UserApplyPatchRequest.Header" - optional :patches, :bytes, 2 - end - end - add_message "gitaly.UserApplyPatchRequest.Header" do - optional :repository, :message, 1, "gitaly.Repository" - optional :user, :message, 2, "gitaly.User" - optional :target_branch, :bytes, 3 - optional :timestamp, :message, 4, "google.protobuf.Timestamp" - end - add_message "gitaly.UserApplyPatchResponse" do - optional :branch_update, :message, 1, "gitaly.OperationBranchUpdate" - end - add_message "gitaly.UserUpdateSubmoduleRequest" do - optional :repository, :message, 1, "gitaly.Repository" - optional :user, :message, 2, "gitaly.User" - optional :commit_sha, :string, 3 - optional :branch, :bytes, 4 - optional :submodule, :bytes, 5 - optional :commit_message, :bytes, 6 - optional :timestamp, :message, 7, "google.protobuf.Timestamp" - end - add_message "gitaly.UserUpdateSubmoduleResponse" do - optional :branch_update, :message, 1, "gitaly.OperationBranchUpdate" - optional :pre_receive_error, :string, 2 - optional :commit_error, :string, 4 - end - end -end - -module Gitaly - UserCreateBranchRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserCreateBranchRequest").msgclass - UserCreateBranchResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserCreateBranchResponse").msgclass - UserCreateBranchError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserCreateBranchError").msgclass - UserUpdateBranchRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserUpdateBranchRequest").msgclass - UserUpdateBranchResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserUpdateBranchResponse").msgclass - UserDeleteBranchRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserDeleteBranchRequest").msgclass - UserDeleteBranchResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserDeleteBranchResponse").msgclass - UserDeleteBranchError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserDeleteBranchError").msgclass - UserDeleteTagRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserDeleteTagRequest").msgclass - UserDeleteTagResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserDeleteTagResponse").msgclass - UserCreateTagRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserCreateTagRequest").msgclass - UserCreateTagResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserCreateTagResponse").msgclass - UserCreateTagError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserCreateTagError").msgclass - UserMergeBranchRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserMergeBranchRequest").msgclass - UserMergeBranchResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserMergeBranchResponse").msgclass - UserMergeBranchError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserMergeBranchError").msgclass - UserMergeToRefRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserMergeToRefRequest").msgclass - UserMergeToRefResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserMergeToRefResponse").msgclass - OperationBranchUpdate = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.OperationBranchUpdate").msgclass - UserFFBranchRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserFFBranchRequest").msgclass - UserFFBranchResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserFFBranchResponse").msgclass - UserCherryPickRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserCherryPickRequest").msgclass - UserCherryPickResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserCherryPickResponse").msgclass - UserCherryPickResponse::CreateTreeError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserCherryPickResponse.CreateTreeError").enummodule - UserCherryPickError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserCherryPickError").msgclass - UserRevertRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserRevertRequest").msgclass - UserRevertResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserRevertResponse").msgclass - UserRevertResponse::CreateTreeError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserRevertResponse.CreateTreeError").enummodule - UserCommitFilesActionHeader = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserCommitFilesActionHeader").msgclass - UserCommitFilesActionHeader::ActionType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserCommitFilesActionHeader.ActionType").enummodule - UserCommitFilesAction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserCommitFilesAction").msgclass - UserCommitFilesRequestHeader = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserCommitFilesRequestHeader").msgclass - UserCommitFilesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserCommitFilesRequest").msgclass - UserCommitFilesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserCommitFilesResponse").msgclass - UserCommitFilesError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserCommitFilesError").msgclass - UserRebaseConfirmableRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserRebaseConfirmableRequest").msgclass - UserRebaseConfirmableRequest::Header = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserRebaseConfirmableRequest.Header").msgclass - UserRebaseConfirmableResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserRebaseConfirmableResponse").msgclass - UserSquashRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserSquashRequest").msgclass - UserSquashResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserSquashResponse").msgclass - UserRebaseConfirmableError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserRebaseConfirmableError").msgclass - UserSquashError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserSquashError").msgclass - UserApplyPatchRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserApplyPatchRequest").msgclass - UserApplyPatchRequest::Header = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserApplyPatchRequest.Header").msgclass - UserApplyPatchResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserApplyPatchResponse").msgclass - UserUpdateSubmoduleRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserUpdateSubmoduleRequest").msgclass - UserUpdateSubmoduleResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UserUpdateSubmoduleResponse").msgclass -end diff --git a/ruby/proto/gitaly/operations_services_pb.rb b/ruby/proto/gitaly/operations_services_pb.rb deleted file mode 100644 index f2a427687..000000000 --- a/ruby/proto/gitaly/operations_services_pb.rb +++ /dev/null @@ -1,98 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: operations.proto for package 'gitaly' - -require 'grpc' -require 'operations_pb' - -module Gitaly - module OperationService - # OperationService provides an interface for performing mutating git - # operations on a repository on behalf of a user. The user's operation is - # treated as untrusted. Any reference update is thus checked against GitLab's - # '/allowed' endpoint. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'gitaly.OperationService' - - # This comment is left unintentionally blank. - rpc :UserCreateBranch, ::Gitaly::UserCreateBranchRequest, ::Gitaly::UserCreateBranchResponse - # This comment is left unintentionally blank. - rpc :UserUpdateBranch, ::Gitaly::UserUpdateBranchRequest, ::Gitaly::UserUpdateBranchResponse - # UserDeleteBranch force-deletes a single branch in the context of a specific user. It executes - # hooks and contacts Rails to verify that the user is indeed allowed to delete that branch. The - # following known error conditions may happen: - # - # - Returns `InvalidArgument` in case either the branch name or user are not set. - # - Returns `FailedPrecondition` in case the branch does not exist. - # - Returns `OK` with a `PreReceiveError` in case custom hooks refused the update. If the - # `gitaly_user_delete_branch_structured_errors` feature flag is enabled this error case will - # instead return `PermissionDenied` with either a `CustomHook` or AccessCheck` structured - # error. - # - Returns `FailedPrecondition` in case updating the reference fails because - # of a concurrent write to the same reference. If the - # `gitaly_user_delete_branch_structured_errors` feature flag is set this error case will - # instead return `FailedPrecondition` with a `ReferenceUpdate` structured error. - rpc :UserDeleteBranch, ::Gitaly::UserDeleteBranchRequest, ::Gitaly::UserDeleteBranchResponse - # UserCreateTag creates a new tag. This RPC knows to create both lightweight and annotated tags - # depending on whether a message is set. - rpc :UserCreateTag, ::Gitaly::UserCreateTagRequest, ::Gitaly::UserCreateTagResponse - # This comment is left unintentionally blank. - rpc :UserDeleteTag, ::Gitaly::UserDeleteTagRequest, ::Gitaly::UserDeleteTagResponse - # UserMergeRef creates a merge commit and updates target_ref to point to that - # new commit. The first parent of the merge commit (the main line) is taken - # from first_parent_ref. The second parent is specified by its commit ID in source_sha. - # If target_ref already exists it will be overwritten. - rpc :UserMergeToRef, ::Gitaly::UserMergeToRefRequest, ::Gitaly::UserMergeToRefResponse - # UserMergeBranch tries to merge the given commit into the target branch. - # The merge commit is created with the given user as author/committer and - # the given message. - # - # This RPC requires confirmation to make any user-visible changes to the - # repository. The first request sent shall contain details about the - # requested merge, which will result in a response with the created merge - # commit ID. Only if a second message with `apply = true` is sent will the - # merge be applied. - rpc :UserMergeBranch, stream(::Gitaly::UserMergeBranchRequest), stream(::Gitaly::UserMergeBranchResponse) - # UserFFBranch tries to perform a fast-forward merge of the given branch to - # the given commit. If the merge is not a fast-forward merge, the request - # will fail. The RPC will return an empty response in case updating the - # reference fails e.g. because of a race. - rpc :UserFFBranch, ::Gitaly::UserFFBranchRequest, ::Gitaly::UserFFBranchResponse - # UserCherryPick tries to perform a cherry-pick of a given commit onto a - # branch. - rpc :UserCherryPick, ::Gitaly::UserCherryPickRequest, ::Gitaly::UserCherryPickResponse - # UserCommitFiles builds a commit from a stream of actions and updates the target branch to point to it. - # UserCommitFilesRequest with a UserCommitFilesRequestHeader must be sent as the first message of the stream. - # Following that, a variable number of actions can be sent to build a new commit. Each action consists of - # a header followed by content if used by the action. - rpc :UserCommitFiles, stream(::Gitaly::UserCommitFilesRequest), ::Gitaly::UserCommitFilesResponse - # UserRebaseConfirmable rebases the given remote branch onto a target - # branch. The remote branch may be part of another repository. - # - # This RPC requires confirmation to make any user-visible changes to the - # repository. The first request sent shall contains details about the - # requested rebase, which will result in a response with the created rebase - # commit ID. Only if a second message with `apply = true` is sent will the - # rebase be applied. - rpc :UserRebaseConfirmable, stream(::Gitaly::UserRebaseConfirmableRequest), stream(::Gitaly::UserRebaseConfirmableResponse) - # UserRevert tries to perform a revert of a given commit onto a branch. - rpc :UserRevert, ::Gitaly::UserRevertRequest, ::Gitaly::UserRevertResponse - # UserSquash squashes a range of commits into a single commit. If - # successful, it returns the object ID of the newly created squash commit. - # On error, it returns a gRPC error. Some specific errors will have an - # embedded UserSquashError such that clients can deduce what exactly has - # failed. - rpc :UserSquash, ::Gitaly::UserSquashRequest, ::Gitaly::UserSquashResponse - # UserApplyPatch applies patches to a given branch. - rpc :UserApplyPatch, stream(::Gitaly::UserApplyPatchRequest), ::Gitaly::UserApplyPatchResponse - # UserUpdateSubmodule updates a submodule to point to a new commit. - rpc :UserUpdateSubmodule, ::Gitaly::UserUpdateSubmoduleRequest, ::Gitaly::UserUpdateSubmoduleResponse - end - - Stub = Service.rpc_stub_class - end -end diff --git a/ruby/proto/gitaly/praefect_pb.rb b/ruby/proto/gitaly/praefect_pb.rb deleted file mode 100644 index 7031b6043..000000000 --- a/ruby/proto/gitaly/praefect_pb.rb +++ /dev/null @@ -1,120 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: praefect.proto - -require 'google/protobuf/timestamp_pb' -require 'lint_pb' -require 'shared_pb' -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("praefect.proto", :syntax => :proto3) do - add_message "gitaly.MarkUnverifiedRequest" do - oneof :selector do - optional :repository_id, :int64, 1 - optional :virtual_storage, :string, 2 - optional :storage, :message, 3, "gitaly.MarkUnverifiedRequest.Storage" - end - end - add_message "gitaly.MarkUnverifiedRequest.Storage" do - optional :virtual_storage, :string, 1 - optional :storage, :string, 2 - end - add_message "gitaly.MarkUnverifiedResponse" do - optional :replicas_marked, :int64, 1 - end - add_message "gitaly.GetRepositoryMetadataRequest" do - oneof :query do - optional :repository_id, :int64, 1 - optional :path, :message, 2, "gitaly.GetRepositoryMetadataRequest.Path" - end - end - add_message "gitaly.GetRepositoryMetadataRequest.Path" do - optional :virtual_storage, :string, 1 - optional :relative_path, :string, 2 - end - add_message "gitaly.GetRepositoryMetadataResponse" do - optional :repository_id, :int64, 1 - optional :virtual_storage, :string, 2 - optional :relative_path, :string, 3 - optional :replica_path, :string, 4 - optional :primary, :string, 5 - optional :generation, :int64, 6 - repeated :replicas, :message, 7, "gitaly.GetRepositoryMetadataResponse.Replica" - end - add_message "gitaly.GetRepositoryMetadataResponse.Replica" do - optional :storage, :string, 1 - optional :assigned, :bool, 2 - optional :generation, :int64, 4 - optional :healthy, :bool, 5 - optional :valid_primary, :bool, 6 - optional :verified_at, :message, 7, "google.protobuf.Timestamp" - end - add_message "gitaly.SetReplicationFactorRequest" do - optional :virtual_storage, :string, 1 - optional :relative_path, :string, 2 - optional :replication_factor, :int32, 3 - end - add_message "gitaly.SetReplicationFactorResponse" do - repeated :storages, :string, 1 - end - add_message "gitaly.SetAuthoritativeStorageRequest" do - optional :virtual_storage, :string, 1 - optional :relative_path, :string, 2 - optional :authoritative_storage, :string, 3 - end - add_message "gitaly.SetAuthoritativeStorageResponse" do - end - add_message "gitaly.DatalossCheckRequest" do - optional :virtual_storage, :string, 1 - optional :include_partially_replicated, :bool, 2 - end - add_message "gitaly.DatalossCheckResponse" do - repeated :repositories, :message, 2, "gitaly.DatalossCheckResponse.Repository" - end - add_message "gitaly.DatalossCheckResponse.Repository" do - optional :relative_path, :string, 1 - repeated :storages, :message, 2, "gitaly.DatalossCheckResponse.Repository.Storage" - optional :unavailable, :bool, 3 - optional :primary, :string, 4 - end - add_message "gitaly.DatalossCheckResponse.Repository.Storage" do - optional :name, :string, 1 - optional :behind_by, :int64, 2 - optional :assigned, :bool, 3 - optional :healthy, :bool, 4 - optional :valid_primary, :bool, 5 - end - add_message "gitaly.RepositoryReplicasRequest" do - optional :repository, :message, 1, "gitaly.Repository" - end - add_message "gitaly.RepositoryReplicasResponse" do - optional :primary, :message, 1, "gitaly.RepositoryReplicasResponse.RepositoryDetails" - repeated :replicas, :message, 2, "gitaly.RepositoryReplicasResponse.RepositoryDetails" - end - add_message "gitaly.RepositoryReplicasResponse.RepositoryDetails" do - optional :repository, :message, 1, "gitaly.Repository" - optional :checksum, :string, 2 - end - end -end - -module Gitaly - MarkUnverifiedRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.MarkUnverifiedRequest").msgclass - MarkUnverifiedRequest::Storage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.MarkUnverifiedRequest.Storage").msgclass - MarkUnverifiedResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.MarkUnverifiedResponse").msgclass - GetRepositoryMetadataRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GetRepositoryMetadataRequest").msgclass - GetRepositoryMetadataRequest::Path = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GetRepositoryMetadataRequest.Path").msgclass - GetRepositoryMetadataResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GetRepositoryMetadataResponse").msgclass - GetRepositoryMetadataResponse::Replica = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GetRepositoryMetadataResponse.Replica").msgclass - SetReplicationFactorRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.SetReplicationFactorRequest").msgclass - SetReplicationFactorResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.SetReplicationFactorResponse").msgclass - SetAuthoritativeStorageRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.SetAuthoritativeStorageRequest").msgclass - SetAuthoritativeStorageResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.SetAuthoritativeStorageResponse").msgclass - DatalossCheckRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.DatalossCheckRequest").msgclass - DatalossCheckResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.DatalossCheckResponse").msgclass - DatalossCheckResponse::Repository = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.DatalossCheckResponse.Repository").msgclass - DatalossCheckResponse::Repository::Storage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.DatalossCheckResponse.Repository.Storage").msgclass - RepositoryReplicasRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.RepositoryReplicasRequest").msgclass - RepositoryReplicasResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.RepositoryReplicasResponse").msgclass - RepositoryReplicasResponse::RepositoryDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.RepositoryReplicasResponse.RepositoryDetails").msgclass -end diff --git a/ruby/proto/gitaly/praefect_services_pb.rb b/ruby/proto/gitaly/praefect_services_pb.rb deleted file mode 100644 index 9ead16a48..000000000 --- a/ruby/proto/gitaly/praefect_services_pb.rb +++ /dev/null @@ -1,45 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: praefect.proto for package 'gitaly' - -require 'grpc' -require 'praefect_pb' - -module Gitaly - module PraefectInfoService - # PraefectInfoService is a service which provides RPCs to query and modify - # Praefect-specific parameters. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'gitaly.PraefectInfoService' - - # This comment is left unintentionally blank. - rpc :RepositoryReplicas, ::Gitaly::RepositoryReplicasRequest, ::Gitaly::RepositoryReplicasResponse - # DatalossCheck checks for unavailable repositories. - rpc :DatalossCheck, ::Gitaly::DatalossCheckRequest, ::Gitaly::DatalossCheckResponse - # SetAuthoritativeStorage sets the authoritative storage for a repository on a given virtual storage. - # This causes the current version of the repository on the authoritative storage to be considered the - # latest and overwrite any other version on the virtual storage. - rpc :SetAuthoritativeStorage, ::Gitaly::SetAuthoritativeStorageRequest, ::Gitaly::SetAuthoritativeStorageResponse - # MarkUnverified marks replicas as unverified. This will trigger verification as Praefect's metadata - # verifier prioritizes unverified replicas. - rpc :MarkUnverified, ::Gitaly::MarkUnverifiedRequest, ::Gitaly::MarkUnverifiedResponse - # SetReplicationFactor assigns or unassigns host nodes from the repository to meet the desired replication factor. - # SetReplicationFactor returns an error when trying to set a replication factor that exceeds the storage node count - # in the virtual storage. An error is also returned when trying to set a replication factor below one. The primary node - # won't be unassigned as it needs a copy of the repository to accept writes. Likewise, the primary is the first storage - # that gets assigned when setting a replication factor for a repository. Assignments of unconfigured storages are ignored. - # This might cause the actual replication factor to be higher than desired if the replication factor is set during an upgrade - # from a Praefect node that does not yet know about a new node. As assignments of unconfigured storages are ignored, replication - # factor of repositories assigned to a storage node removed from the cluster is effectively decreased. - rpc :SetReplicationFactor, ::Gitaly::SetReplicationFactorRequest, ::Gitaly::SetReplicationFactorResponse - # GetRepositoryMetadata returns the cluster metadata for a repository. Returns NotFound if the repository does not exist. - rpc :GetRepositoryMetadata, ::Gitaly::GetRepositoryMetadataRequest, ::Gitaly::GetRepositoryMetadataResponse - end - - Stub = Service.rpc_stub_class - end -end diff --git a/ruby/proto/gitaly/ref_pb.rb b/ruby/proto/gitaly/ref_pb.rb deleted file mode 100644 index 4159a6982..000000000 --- a/ruby/proto/gitaly/ref_pb.rb +++ /dev/null @@ -1,286 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: ref.proto - -require 'errors_pb' -require 'google/protobuf/timestamp_pb' -require 'lint_pb' -require 'shared_pb' -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("ref.proto", :syntax => :proto3) do - add_message "gitaly.FindDefaultBranchNameRequest" do - optional :repository, :message, 1, "gitaly.Repository" - end - add_message "gitaly.FindDefaultBranchNameResponse" do - optional :name, :bytes, 1 - end - add_message "gitaly.FindAllBranchNamesRequest" do - optional :repository, :message, 1, "gitaly.Repository" - end - add_message "gitaly.FindAllBranchNamesResponse" do - repeated :names, :bytes, 1 - end - add_message "gitaly.FindAllTagNamesRequest" do - optional :repository, :message, 1, "gitaly.Repository" - end - add_message "gitaly.FindAllTagNamesResponse" do - repeated :names, :bytes, 1 - end - add_message "gitaly.FindLocalBranchesRequest" do - optional :repository, :message, 1, "gitaly.Repository" - optional :sort_by, :enum, 2, "gitaly.FindLocalBranchesRequest.SortBy" - optional :pagination_params, :message, 3, "gitaly.PaginationParameter" - end - add_enum "gitaly.FindLocalBranchesRequest.SortBy" do - value :NAME, 0 - value :UPDATED_ASC, 1 - value :UPDATED_DESC, 2 - end - add_message "gitaly.FindLocalBranchesResponse" do - repeated :branches, :message, 1, "gitaly.FindLocalBranchResponse" - repeated :local_branches, :message, 2, "gitaly.Branch" - end - add_message "gitaly.FindLocalBranchResponse" do - optional :name, :bytes, 1 - optional :commit_id, :string, 2 - optional :commit_subject, :bytes, 3 - optional :commit_author, :message, 4, "gitaly.FindLocalBranchCommitAuthor" - optional :commit_committer, :message, 5, "gitaly.FindLocalBranchCommitAuthor" - optional :commit, :message, 6, "gitaly.GitCommit" - end - add_message "gitaly.FindLocalBranchCommitAuthor" do - optional :name, :bytes, 1 - optional :email, :bytes, 2 - optional :date, :message, 3, "google.protobuf.Timestamp" - optional :timezone, :bytes, 4 - end - add_message "gitaly.FindAllBranchesRequest" do - optional :repository, :message, 1, "gitaly.Repository" - optional :merged_only, :bool, 2 - repeated :merged_branches, :bytes, 3 - end - add_message "gitaly.FindAllBranchesResponse" do - repeated :branches, :message, 1, "gitaly.FindAllBranchesResponse.Branch" - end - add_message "gitaly.FindAllBranchesResponse.Branch" do - optional :name, :bytes, 1 - optional :target, :message, 2, "gitaly.GitCommit" - end - add_message "gitaly.FindTagRequest" do - optional :repository, :message, 1, "gitaly.Repository" - optional :tag_name, :bytes, 2 - end - add_message "gitaly.FindTagResponse" do - optional :tag, :message, 1, "gitaly.Tag" - end - add_message "gitaly.FindTagError" do - oneof :error do - optional :tag_not_found, :message, 1, "gitaly.ReferenceNotFoundError" - end - end - add_message "gitaly.FindAllTagsRequest" do - optional :repository, :message, 1, "gitaly.Repository" - optional :sort_by, :message, 2, "gitaly.FindAllTagsRequest.SortBy" - optional :pagination_params, :message, 3, "gitaly.PaginationParameter" - end - add_message "gitaly.FindAllTagsRequest.SortBy" do - optional :key, :enum, 1, "gitaly.FindAllTagsRequest.SortBy.Key" - optional :direction, :enum, 2, "gitaly.SortDirection" - end - add_enum "gitaly.FindAllTagsRequest.SortBy.Key" do - value :REFNAME, 0 - value :CREATORDATE, 1 - value :VERSION_REFNAME, 2 - end - add_message "gitaly.FindAllTagsResponse" do - repeated :tags, :message, 1, "gitaly.Tag" - end - add_message "gitaly.RefExistsRequest" do - optional :repository, :message, 1, "gitaly.Repository" - optional :ref, :bytes, 2 - end - add_message "gitaly.RefExistsResponse" do - optional :value, :bool, 1 - end - add_message "gitaly.CreateBranchRequest" do - optional :repository, :message, 1, "gitaly.Repository" - optional :name, :bytes, 2 - optional :start_point, :bytes, 3 - end - add_message "gitaly.CreateBranchResponse" do - optional :status, :enum, 1, "gitaly.CreateBranchResponse.Status" - optional :branch, :message, 2, "gitaly.Branch" - end - add_enum "gitaly.CreateBranchResponse.Status" do - value :OK, 0 - value :ERR_EXISTS, 1 - value :ERR_INVALID, 2 - value :ERR_INVALID_START_POINT, 3 - end - add_message "gitaly.DeleteBranchRequest" do - optional :repository, :message, 1, "gitaly.Repository" - optional :name, :bytes, 2 - end - add_message "gitaly.DeleteBranchResponse" do - end - add_message "gitaly.FindBranchRequest" do - optional :repository, :message, 1, "gitaly.Repository" - optional :name, :bytes, 2 - end - add_message "gitaly.FindBranchResponse" do - optional :branch, :message, 1, "gitaly.Branch" - end - add_message "gitaly.DeleteRefsRequest" do - optional :repository, :message, 1, "gitaly.Repository" - repeated :except_with_prefix, :bytes, 2 - repeated :refs, :bytes, 3 - end - add_message "gitaly.DeleteRefsResponse" do - optional :git_error, :string, 1 - end - add_message "gitaly.DeleteRefsError" do - oneof :error do - optional :invalid_format, :message, 1, "gitaly.InvalidRefFormatError" - optional :references_locked, :message, 2, "gitaly.ReferencesLockedError" - end - end - add_message "gitaly.ListBranchNamesContainingCommitRequest" do - optional :repository, :message, 1, "gitaly.Repository" - optional :commit_id, :string, 2 - optional :limit, :uint32, 3 - end - add_message "gitaly.ListBranchNamesContainingCommitResponse" do - repeated :branch_names, :bytes, 2 - end - add_message "gitaly.ListTagNamesContainingCommitRequest" do - optional :repository, :message, 1, "gitaly.Repository" - optional :commit_id, :string, 2 - optional :limit, :uint32, 3 - end - add_message "gitaly.ListTagNamesContainingCommitResponse" do - repeated :tag_names, :bytes, 2 - end - add_message "gitaly.GetTagSignaturesRequest" do - optional :repository, :message, 1, "gitaly.Repository" - repeated :tag_revisions, :string, 2 - end - add_message "gitaly.GetTagSignaturesResponse" do - repeated :signatures, :message, 1, "gitaly.GetTagSignaturesResponse.TagSignature" - end - add_message "gitaly.GetTagSignaturesResponse.TagSignature" do - optional :tag_id, :string, 1 - optional :signature, :bytes, 2 - optional :content, :bytes, 3 - end - add_message "gitaly.GetTagMessagesRequest" do - optional :repository, :message, 1, "gitaly.Repository" - repeated :tag_ids, :string, 3 - end - add_message "gitaly.GetTagMessagesResponse" do - optional :message, :bytes, 2 - optional :tag_id, :string, 3 - end - add_message "gitaly.FindAllRemoteBranchesRequest" do - optional :repository, :message, 1, "gitaly.Repository" - optional :remote_name, :string, 2 - end - add_message "gitaly.FindAllRemoteBranchesResponse" do - repeated :branches, :message, 1, "gitaly.Branch" - end - add_message "gitaly.PackRefsRequest" do - optional :repository, :message, 1, "gitaly.Repository" - end - add_message "gitaly.PackRefsResponse" do - end - add_message "gitaly.ListRefsRequest" do - optional :repository, :message, 1, "gitaly.Repository" - repeated :patterns, :bytes, 2 - optional :head, :bool, 3 - optional :sort_by, :message, 4, "gitaly.ListRefsRequest.SortBy" - end - add_message "gitaly.ListRefsRequest.SortBy" do - optional :key, :enum, 1, "gitaly.ListRefsRequest.SortBy.Key" - optional :direction, :enum, 2, "gitaly.SortDirection" - end - add_enum "gitaly.ListRefsRequest.SortBy.Key" do - value :REFNAME, 0 - value :CREATORDATE, 1 - value :AUTHORDATE, 2 - value :COMMITTERDATE, 3 - end - add_message "gitaly.ListRefsResponse" do - repeated :references, :message, 1, "gitaly.ListRefsResponse.Reference" - end - add_message "gitaly.ListRefsResponse.Reference" do - optional :name, :bytes, 1 - optional :target, :string, 2 - end - add_message "gitaly.FindRefsByOIDRequest" do - optional :repository, :message, 1, "gitaly.Repository" - optional :oid, :string, 2 - repeated :ref_patterns, :string, 3 - optional :sort_field, :string, 4 - optional :limit, :uint32, 5 - end - add_message "gitaly.FindRefsByOIDResponse" do - repeated :refs, :string, 1 - end - end -end - -module Gitaly - FindDefaultBranchNameRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindDefaultBranchNameRequest").msgclass - FindDefaultBranchNameResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindDefaultBranchNameResponse").msgclass - FindAllBranchNamesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindAllBranchNamesRequest").msgclass - FindAllBranchNamesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindAllBranchNamesResponse").msgclass - FindAllTagNamesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindAllTagNamesRequest").msgclass - FindAllTagNamesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindAllTagNamesResponse").msgclass - FindLocalBranchesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindLocalBranchesRequest").msgclass - FindLocalBranchesRequest::SortBy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindLocalBranchesRequest.SortBy").enummodule - FindLocalBranchesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindLocalBranchesResponse").msgclass - FindLocalBranchResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindLocalBranchResponse").msgclass - FindLocalBranchCommitAuthor = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindLocalBranchCommitAuthor").msgclass - FindAllBranchesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindAllBranchesRequest").msgclass - FindAllBranchesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindAllBranchesResponse").msgclass - FindAllBranchesResponse::Branch = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindAllBranchesResponse.Branch").msgclass - FindTagRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindTagRequest").msgclass - FindTagResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindTagResponse").msgclass - FindTagError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindTagError").msgclass - FindAllTagsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindAllTagsRequest").msgclass - FindAllTagsRequest::SortBy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindAllTagsRequest.SortBy").msgclass - FindAllTagsRequest::SortBy::Key = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindAllTagsRequest.SortBy.Key").enummodule - FindAllTagsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindAllTagsResponse").msgclass - RefExistsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.RefExistsRequest").msgclass - RefExistsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.RefExistsResponse").msgclass - CreateBranchRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CreateBranchRequest").msgclass - CreateBranchResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CreateBranchResponse").msgclass - CreateBranchResponse::Status = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CreateBranchResponse.Status").enummodule - DeleteBranchRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.DeleteBranchRequest").msgclass - DeleteBranchResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.DeleteBranchResponse").msgclass - FindBranchRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindBranchRequest").msgclass - FindBranchResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindBranchResponse").msgclass - DeleteRefsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.DeleteRefsRequest").msgclass - DeleteRefsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.DeleteRefsResponse").msgclass - DeleteRefsError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.DeleteRefsError").msgclass - ListBranchNamesContainingCommitRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ListBranchNamesContainingCommitRequest").msgclass - ListBranchNamesContainingCommitResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ListBranchNamesContainingCommitResponse").msgclass - ListTagNamesContainingCommitRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ListTagNamesContainingCommitRequest").msgclass - ListTagNamesContainingCommitResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ListTagNamesContainingCommitResponse").msgclass - GetTagSignaturesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GetTagSignaturesRequest").msgclass - GetTagSignaturesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GetTagSignaturesResponse").msgclass - GetTagSignaturesResponse::TagSignature = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GetTagSignaturesResponse.TagSignature").msgclass - GetTagMessagesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GetTagMessagesRequest").msgclass - GetTagMessagesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GetTagMessagesResponse").msgclass - FindAllRemoteBranchesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindAllRemoteBranchesRequest").msgclass - FindAllRemoteBranchesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindAllRemoteBranchesResponse").msgclass - PackRefsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.PackRefsRequest").msgclass - PackRefsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.PackRefsResponse").msgclass - ListRefsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ListRefsRequest").msgclass - ListRefsRequest::SortBy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ListRefsRequest.SortBy").msgclass - ListRefsRequest::SortBy::Key = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ListRefsRequest.SortBy.Key").enummodule - ListRefsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ListRefsResponse").msgclass - ListRefsResponse::Reference = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ListRefsResponse.Reference").msgclass - FindRefsByOIDRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindRefsByOIDRequest").msgclass - FindRefsByOIDResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindRefsByOIDResponse").msgclass -end diff --git a/ruby/proto/gitaly/ref_services_pb.rb b/ruby/proto/gitaly/ref_services_pb.rb deleted file mode 100644 index ac905cd7b..000000000 --- a/ruby/proto/gitaly/ref_services_pb.rb +++ /dev/null @@ -1,68 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: ref.proto for package 'gitaly' - -require 'grpc' -require 'ref_pb' - -module Gitaly - module RefService - # RefService is a service that provides RPCs to list and modify Git references. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'gitaly.RefService' - - # This comment is left unintentionally blank. - rpc :FindDefaultBranchName, ::Gitaly::FindDefaultBranchNameRequest, ::Gitaly::FindDefaultBranchNameResponse - # This comment is left unintentionally blank. - rpc :FindAllBranchNames, ::Gitaly::FindAllBranchNamesRequest, stream(::Gitaly::FindAllBranchNamesResponse) - # This comment is left unintentionally blank. - rpc :FindAllTagNames, ::Gitaly::FindAllTagNamesRequest, stream(::Gitaly::FindAllTagNamesResponse) - # Return a stream so we can divide the response in chunks of branches - rpc :FindLocalBranches, ::Gitaly::FindLocalBranchesRequest, stream(::Gitaly::FindLocalBranchesResponse) - # This comment is left unintentionally blank. - rpc :FindAllBranches, ::Gitaly::FindAllBranchesRequest, stream(::Gitaly::FindAllBranchesResponse) - # Returns a stream of tags repository has. - rpc :FindAllTags, ::Gitaly::FindAllTagsRequest, stream(::Gitaly::FindAllTagsResponse) - # FindTag looks up a tag by its name and returns it to the caller if it exists. This RPC supports - # both lightweight and annotated tags. Note: this RPC returns an `Internal` error if the tag was - # not found. - rpc :FindTag, ::Gitaly::FindTagRequest, ::Gitaly::FindTagResponse - # This comment is left unintentionally blank. - rpc :FindAllRemoteBranches, ::Gitaly::FindAllRemoteBranchesRequest, stream(::Gitaly::FindAllRemoteBranchesResponse) - # This comment is left unintentionally blank. - rpc :RefExists, ::Gitaly::RefExistsRequest, ::Gitaly::RefExistsResponse - # FindBranch finds a branch by its unqualified name (like "master") and - # returns the commit it currently points to. - rpc :FindBranch, ::Gitaly::FindBranchRequest, ::Gitaly::FindBranchResponse - # This comment is left unintentionally blank. - rpc :DeleteRefs, ::Gitaly::DeleteRefsRequest, ::Gitaly::DeleteRefsResponse - # This comment is left unintentionally blank. - rpc :ListBranchNamesContainingCommit, ::Gitaly::ListBranchNamesContainingCommitRequest, stream(::Gitaly::ListBranchNamesContainingCommitResponse) - # This comment is left unintentionally blank. - rpc :ListTagNamesContainingCommit, ::Gitaly::ListTagNamesContainingCommitRequest, stream(::Gitaly::ListTagNamesContainingCommitResponse) - # GetTagSignatures returns signatures for annotated tags resolved from a set of revisions. Revisions - # which don't resolve to an annotated tag are silently discarded. Revisions which cannot be resolved - # result in an error. Tags which are annotated but not signed will return a TagSignature response - # which has no signature, but its unsigned contents will still be returned. - rpc :GetTagSignatures, ::Gitaly::GetTagSignaturesRequest, stream(::Gitaly::GetTagSignaturesResponse) - # This comment is left unintentionally blank. - rpc :GetTagMessages, ::Gitaly::GetTagMessagesRequest, stream(::Gitaly::GetTagMessagesResponse) - # PackRefs is deprecated in favor of OptimizeRepository. - rpc :PackRefs, ::Gitaly::PackRefsRequest, ::Gitaly::PackRefsResponse - # ListRefs returns a stream of all references in the repository. By default, pseudo-revisions like HEAD - # will not be returned by this RPC. Any symbolic references will be resolved to the object ID it is - # pointing at. - rpc :ListRefs, ::Gitaly::ListRefsRequest, stream(::Gitaly::ListRefsResponse) - # FindRefsByOID returns an array of fully qualified reference names that point to an object ID. - # It returns nothing if the object ID doesn't exist, or doesn't point to - # any branches or tags. Prefixes can be also be used as the object ID. - rpc :FindRefsByOID, ::Gitaly::FindRefsByOIDRequest, ::Gitaly::FindRefsByOIDResponse - end - - Stub = Service.rpc_stub_class - end -end diff --git a/ruby/proto/gitaly/remote_pb.rb b/ruby/proto/gitaly/remote_pb.rb deleted file mode 100644 index 277808c7a..000000000 --- a/ruby/proto/gitaly/remote_pb.rb +++ /dev/null @@ -1,53 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: remote.proto - -require 'lint_pb' -require 'shared_pb' -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("remote.proto", :syntax => :proto3) do - add_message "gitaly.UpdateRemoteMirrorRequest" do - optional :repository, :message, 1, "gitaly.Repository" - optional :remote, :message, 7, "gitaly.UpdateRemoteMirrorRequest.Remote" - repeated :only_branches_matching, :bytes, 3 - optional :ssh_key, :string, 4 - optional :known_hosts, :string, 5 - optional :keep_divergent_refs, :bool, 6 - end - add_message "gitaly.UpdateRemoteMirrorRequest.Remote" do - optional :url, :string, 1 - optional :http_authorization_header, :string, 2 - optional :http_host, :string, 3 - end - add_message "gitaly.UpdateRemoteMirrorResponse" do - repeated :divergent_refs, :bytes, 1 - end - add_message "gitaly.FindRemoteRepositoryRequest" do - optional :remote, :string, 1 - optional :storage_name, :string, 2 - end - add_message "gitaly.FindRemoteRepositoryResponse" do - optional :exists, :bool, 1 - end - add_message "gitaly.FindRemoteRootRefRequest" do - optional :repository, :message, 1, "gitaly.Repository" - optional :remote_url, :string, 3 - optional :http_authorization_header, :string, 4 - optional :http_host, :string, 5 - end - add_message "gitaly.FindRemoteRootRefResponse" do - optional :ref, :string, 1 - end - end -end - -module Gitaly - UpdateRemoteMirrorRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UpdateRemoteMirrorRequest").msgclass - UpdateRemoteMirrorRequest::Remote = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UpdateRemoteMirrorRequest.Remote").msgclass - UpdateRemoteMirrorResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.UpdateRemoteMirrorResponse").msgclass - FindRemoteRepositoryRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindRemoteRepositoryRequest").msgclass - FindRemoteRepositoryResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindRemoteRepositoryResponse").msgclass - FindRemoteRootRefRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindRemoteRootRefRequest").msgclass - FindRemoteRootRefResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindRemoteRootRefResponse").msgclass -end diff --git a/ruby/proto/gitaly/remote_services_pb.rb b/ruby/proto/gitaly/remote_services_pb.rb deleted file mode 100644 index 08f7ed80d..000000000 --- a/ruby/proto/gitaly/remote_services_pb.rb +++ /dev/null @@ -1,37 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: remote.proto for package 'gitaly' - -require 'grpc' -require 'remote_pb' - -module Gitaly - module RemoteService - # RemoteService is a service providing RPCs to interact with a remote - # repository that is hosted on another Git server. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'gitaly.RemoteService' - - # UpdateRemoteMirror compares the references in the target repository and its remote mirror - # repository. Any differences in the references are then addressed by pushing the differing - # references to the mirror. Created and modified references are updated, removed references are - # deleted from the mirror. UpdateRemoteMirror updates all tags. Branches are updated if they match - # the patterns specified in the requests. - rpc :UpdateRemoteMirror, stream(::Gitaly::UpdateRemoteMirrorRequest), ::Gitaly::UpdateRemoteMirrorResponse - # This comment is left unintentionally blank. - rpc :FindRemoteRepository, ::Gitaly::FindRemoteRepositoryRequest, ::Gitaly::FindRemoteRepositoryResponse - # FindRemoteRootRef tries to find the root reference of a remote - # repository. The root reference is the default branch as pointed to by - # the remotes HEAD reference. Returns an InvalidArgument error if the - # specified remote does not exist and a NotFound error in case no HEAD - # branch was found. - rpc :FindRemoteRootRef, ::Gitaly::FindRemoteRootRefRequest, ::Gitaly::FindRemoteRootRefResponse - end - - Stub = Service.rpc_stub_class - end -end diff --git a/ruby/proto/gitaly/repository_pb.rb b/ruby/proto/gitaly/repository_pb.rb deleted file mode 100644 index eb69510d8..000000000 --- a/ruby/proto/gitaly/repository_pb.rb +++ /dev/null @@ -1,429 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: repository.proto - -require 'lint_pb' -require 'shared_pb' -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("repository.proto", :syntax => :proto3) do - add_message "gitaly.RepositoryExistsRequest" do - optional :repository, :message, 1, "gitaly.Repository" - end - add_message "gitaly.RepositoryExistsResponse" do - optional :exists, :bool, 1 - end - add_message "gitaly.RepackIncrementalRequest" do - optional :repository, :message, 1, "gitaly.Repository" - end - add_message "gitaly.RepackIncrementalResponse" do - end - add_message "gitaly.RepackFullRequest" do - optional :repository, :message, 1, "gitaly.Repository" - optional :create_bitmap, :bool, 2 - end - add_message "gitaly.RepackFullResponse" do - end - add_message "gitaly.MidxRepackRequest" do - optional :repository, :message, 1, "gitaly.Repository" - end - add_message "gitaly.MidxRepackResponse" do - end - add_message "gitaly.GarbageCollectRequest" do - optional :repository, :message, 1, "gitaly.Repository" - optional :create_bitmap, :bool, 2 - optional :prune, :bool, 3 - end - add_message "gitaly.GarbageCollectResponse" do - end - add_message "gitaly.WriteCommitGraphRequest" do - optional :repository, :message, 1, "gitaly.Repository" - optional :splitStrategy, :enum, 2, "gitaly.WriteCommitGraphRequest.SplitStrategy" - end - add_enum "gitaly.WriteCommitGraphRequest.SplitStrategy" do - value :SizeMultiple, 0 - end - add_message "gitaly.WriteCommitGraphResponse" do - end - add_message "gitaly.CleanupRequest" do - optional :repository, :message, 1, "gitaly.Repository" - end - add_message "gitaly.CleanupResponse" do - end - add_message "gitaly.RepositorySizeRequest" do - optional :repository, :message, 1, "gitaly.Repository" - end - add_message "gitaly.RepositorySizeResponse" do - optional :size, :int64, 1 - end - add_message "gitaly.ApplyGitattributesRequest" do - optional :repository, :message, 1, "gitaly.Repository" - optional :revision, :bytes, 2 - end - add_message "gitaly.ApplyGitattributesResponse" do - end - add_message "gitaly.FetchBundleRequest" do - optional :repository, :message, 1, "gitaly.Repository" - optional :data, :bytes, 2 - optional :update_head, :bool, 3 - end - add_message "gitaly.FetchBundleResponse" do - end - add_message "gitaly.FetchRemoteRequest" do - optional :repository, :message, 1, "gitaly.Repository" - optional :force, :bool, 3 - optional :no_tags, :bool, 4 - optional :timeout, :int32, 5 - optional :ssh_key, :string, 6 - optional :known_hosts, :string, 7 - optional :no_prune, :bool, 9 - optional :remote_params, :message, 10, "gitaly.Remote" - optional :check_tags_changed, :bool, 11 - end - add_message "gitaly.FetchRemoteResponse" do - optional :tags_changed, :bool, 1 - end - add_message "gitaly.CreateRepositoryRequest" do - optional :repository, :message, 1, "gitaly.Repository" - optional :default_branch, :bytes, 2 - end - add_message "gitaly.CreateRepositoryResponse" do - end - add_message "gitaly.GetArchiveRequest" do - optional :repository, :message, 1, "gitaly.Repository" - optional :commit_id, :string, 2 - optional :prefix, :string, 3 - optional :format, :enum, 4, "gitaly.GetArchiveRequest.Format" - optional :path, :bytes, 5 - repeated :exclude, :bytes, 6 - optional :elide_path, :bool, 7 - optional :include_lfs_blobs, :bool, 8 - end - add_enum "gitaly.GetArchiveRequest.Format" do - value :ZIP, 0 - value :TAR, 1 - value :TAR_GZ, 2 - value :TAR_BZ2, 3 - end - add_message "gitaly.GetArchiveResponse" do - optional :data, :bytes, 1 - end - add_message "gitaly.HasLocalBranchesRequest" do - optional :repository, :message, 1, "gitaly.Repository" - end - add_message "gitaly.HasLocalBranchesResponse" do - optional :value, :bool, 1 - end - add_message "gitaly.FetchSourceBranchRequest" do - optional :repository, :message, 1, "gitaly.Repository" - optional :source_repository, :message, 2, "gitaly.Repository" - optional :source_branch, :bytes, 3 - optional :target_ref, :bytes, 4 - end - add_message "gitaly.FetchSourceBranchResponse" do - optional :result, :bool, 1 - end - add_message "gitaly.FsckRequest" do - optional :repository, :message, 1, "gitaly.Repository" - end - add_message "gitaly.FsckResponse" do - optional :error, :bytes, 1 - end - add_message "gitaly.WriteRefRequest" do - optional :repository, :message, 1, "gitaly.Repository" - optional :ref, :bytes, 2 - optional :revision, :bytes, 3 - optional :old_revision, :bytes, 4 - optional :force, :bool, 5 - end - add_message "gitaly.WriteRefResponse" do - end - add_message "gitaly.FindMergeBaseRequest" do - optional :repository, :message, 1, "gitaly.Repository" - repeated :revisions, :bytes, 2 - end - add_message "gitaly.FindMergeBaseResponse" do - optional :base, :string, 1 - end - add_message "gitaly.CreateForkRequest" do - optional :repository, :message, 1, "gitaly.Repository" - optional :source_repository, :message, 2, "gitaly.Repository" - end - add_message "gitaly.CreateForkResponse" do - end - add_message "gitaly.CreateRepositoryFromURLRequest" do - optional :repository, :message, 1, "gitaly.Repository" - optional :url, :string, 2 - optional :http_host, :string, 3 - optional :http_authorization_header, :string, 4 - optional :mirror, :bool, 5 - end - add_message "gitaly.CreateRepositoryFromURLResponse" do - end - add_message "gitaly.CreateBundleRequest" do - optional :repository, :message, 1, "gitaly.Repository" - end - add_message "gitaly.CreateBundleResponse" do - optional :data, :bytes, 1 - end - add_message "gitaly.CreateBundleFromRefListRequest" do - optional :repository, :message, 1, "gitaly.Repository" - repeated :patterns, :bytes, 2 - end - add_message "gitaly.CreateBundleFromRefListResponse" do - optional :data, :bytes, 1 - end - add_message "gitaly.GetConfigRequest" do - optional :repository, :message, 1, "gitaly.Repository" - end - add_message "gitaly.GetConfigResponse" do - optional :data, :bytes, 1 - end - add_message "gitaly.RestoreCustomHooksRequest" do - optional :repository, :message, 1, "gitaly.Repository" - optional :data, :bytes, 2 - end - add_message "gitaly.RestoreCustomHooksResponse" do - end - add_message "gitaly.BackupCustomHooksRequest" do - optional :repository, :message, 1, "gitaly.Repository" - end - add_message "gitaly.BackupCustomHooksResponse" do - optional :data, :bytes, 1 - end - add_message "gitaly.CreateRepositoryFromBundleRequest" do - optional :repository, :message, 1, "gitaly.Repository" - optional :data, :bytes, 2 - end - add_message "gitaly.CreateRepositoryFromBundleResponse" do - end - add_message "gitaly.FindLicenseRequest" do - optional :repository, :message, 1, "gitaly.Repository" - end - add_message "gitaly.FindLicenseResponse" do - optional :license_short_name, :string, 1 - optional :license_name, :string, 2 - optional :license_url, :string, 3 - optional :license_path, :string, 4 - optional :license_nickname, :string, 5 - end - add_message "gitaly.GetInfoAttributesRequest" do - optional :repository, :message, 1, "gitaly.Repository" - end - add_message "gitaly.GetInfoAttributesResponse" do - optional :attributes, :bytes, 1 - end - add_message "gitaly.CalculateChecksumRequest" do - optional :repository, :message, 1, "gitaly.Repository" - end - add_message "gitaly.CalculateChecksumResponse" do - optional :checksum, :string, 1 - end - add_message "gitaly.GetSnapshotRequest" do - optional :repository, :message, 1, "gitaly.Repository" - end - add_message "gitaly.GetSnapshotResponse" do - optional :data, :bytes, 1 - end - add_message "gitaly.CreateRepositoryFromSnapshotRequest" do - optional :repository, :message, 1, "gitaly.Repository" - optional :http_url, :string, 2 - optional :http_auth, :string, 3 - optional :http_host, :string, 4 - end - add_message "gitaly.CreateRepositoryFromSnapshotResponse" do - end - add_message "gitaly.GetRawChangesRequest" do - optional :repository, :message, 1, "gitaly.Repository" - optional :from_revision, :string, 2 - optional :to_revision, :string, 3 - end - add_message "gitaly.GetRawChangesResponse" do - repeated :raw_changes, :message, 1, "gitaly.GetRawChangesResponse.RawChange" - end - add_message "gitaly.GetRawChangesResponse.RawChange" do - optional :blob_id, :string, 1 - optional :size, :int64, 2 - optional :operation, :enum, 5, "gitaly.GetRawChangesResponse.RawChange.Operation" - optional :raw_operation, :string, 6 - optional :old_mode, :int32, 7 - optional :new_mode, :int32, 8 - optional :new_path_bytes, :bytes, 9 - optional :old_path_bytes, :bytes, 10 - end - add_enum "gitaly.GetRawChangesResponse.RawChange.Operation" do - value :UNKNOWN, 0 - value :ADDED, 1 - value :COPIED, 2 - value :DELETED, 3 - value :MODIFIED, 4 - value :RENAMED, 5 - value :TYPE_CHANGED, 6 - end - add_message "gitaly.SearchFilesByNameRequest" do - optional :repository, :message, 1, "gitaly.Repository" - optional :query, :string, 2 - optional :ref, :bytes, 3 - optional :filter, :string, 4 - optional :limit, :uint32, 5 - optional :offset, :uint32, 6 - end - add_message "gitaly.SearchFilesByNameResponse" do - repeated :files, :bytes, 1 - end - add_message "gitaly.SearchFilesByContentRequest" do - optional :repository, :message, 1, "gitaly.Repository" - optional :query, :string, 2 - optional :ref, :bytes, 3 - optional :chunked_response, :bool, 4 - end - add_message "gitaly.SearchFilesByContentResponse" do - repeated :matches, :bytes, 1 - optional :match_data, :bytes, 2 - optional :end_of_match, :bool, 3 - end - add_message "gitaly.Remote" do - optional :url, :string, 1 - optional :http_authorization_header, :string, 3 - repeated :mirror_refmaps, :string, 4 - optional :http_host, :string, 5 - end - add_message "gitaly.GetObjectDirectorySizeRequest" do - optional :repository, :message, 1, "gitaly.Repository" - end - add_message "gitaly.GetObjectDirectorySizeResponse" do - optional :size, :int64, 1 - end - add_message "gitaly.RemoveRepositoryRequest" do - optional :repository, :message, 1, "gitaly.Repository" - end - add_message "gitaly.RemoveRepositoryResponse" do - end - add_message "gitaly.RenameRepositoryRequest" do - optional :repository, :message, 1, "gitaly.Repository" - optional :relative_path, :string, 2 - end - add_message "gitaly.RenameRepositoryResponse" do - end - add_message "gitaly.ReplicateRepositoryRequest" do - optional :repository, :message, 1, "gitaly.Repository" - optional :source, :message, 2, "gitaly.Repository" - end - add_message "gitaly.ReplicateRepositoryResponse" do - end - add_message "gitaly.OptimizeRepositoryRequest" do - optional :repository, :message, 1, "gitaly.Repository" - end - add_message "gitaly.OptimizeRepositoryResponse" do - end - add_message "gitaly.PruneUnreachableObjectsRequest" do - optional :repository, :message, 1, "gitaly.Repository" - end - add_message "gitaly.PruneUnreachableObjectsResponse" do - end - add_message "gitaly.SetFullPathRequest" do - optional :repository, :message, 1, "gitaly.Repository" - optional :path, :string, 2 - end - add_message "gitaly.SetFullPathResponse" do - end - add_message "gitaly.FullPathRequest" do - optional :repository, :message, 1, "gitaly.Repository" - end - add_message "gitaly.FullPathResponse" do - optional :path, :string, 1 - end - end -end - -module Gitaly - RepositoryExistsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.RepositoryExistsRequest").msgclass - RepositoryExistsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.RepositoryExistsResponse").msgclass - RepackIncrementalRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.RepackIncrementalRequest").msgclass - RepackIncrementalResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.RepackIncrementalResponse").msgclass - RepackFullRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.RepackFullRequest").msgclass - RepackFullResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.RepackFullResponse").msgclass - MidxRepackRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.MidxRepackRequest").msgclass - MidxRepackResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.MidxRepackResponse").msgclass - GarbageCollectRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GarbageCollectRequest").msgclass - GarbageCollectResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GarbageCollectResponse").msgclass - WriteCommitGraphRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.WriteCommitGraphRequest").msgclass - WriteCommitGraphRequest::SplitStrategy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.WriteCommitGraphRequest.SplitStrategy").enummodule - WriteCommitGraphResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.WriteCommitGraphResponse").msgclass - CleanupRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CleanupRequest").msgclass - CleanupResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CleanupResponse").msgclass - RepositorySizeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.RepositorySizeRequest").msgclass - RepositorySizeResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.RepositorySizeResponse").msgclass - ApplyGitattributesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ApplyGitattributesRequest").msgclass - ApplyGitattributesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ApplyGitattributesResponse").msgclass - FetchBundleRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FetchBundleRequest").msgclass - FetchBundleResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FetchBundleResponse").msgclass - FetchRemoteRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FetchRemoteRequest").msgclass - FetchRemoteResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FetchRemoteResponse").msgclass - CreateRepositoryRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CreateRepositoryRequest").msgclass - CreateRepositoryResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CreateRepositoryResponse").msgclass - GetArchiveRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GetArchiveRequest").msgclass - GetArchiveRequest::Format = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GetArchiveRequest.Format").enummodule - GetArchiveResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GetArchiveResponse").msgclass - HasLocalBranchesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.HasLocalBranchesRequest").msgclass - HasLocalBranchesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.HasLocalBranchesResponse").msgclass - FetchSourceBranchRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FetchSourceBranchRequest").msgclass - FetchSourceBranchResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FetchSourceBranchResponse").msgclass - FsckRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FsckRequest").msgclass - FsckResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FsckResponse").msgclass - WriteRefRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.WriteRefRequest").msgclass - WriteRefResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.WriteRefResponse").msgclass - FindMergeBaseRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindMergeBaseRequest").msgclass - FindMergeBaseResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindMergeBaseResponse").msgclass - CreateForkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CreateForkRequest").msgclass - CreateForkResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CreateForkResponse").msgclass - CreateRepositoryFromURLRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CreateRepositoryFromURLRequest").msgclass - CreateRepositoryFromURLResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CreateRepositoryFromURLResponse").msgclass - CreateBundleRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CreateBundleRequest").msgclass - CreateBundleResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CreateBundleResponse").msgclass - CreateBundleFromRefListRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CreateBundleFromRefListRequest").msgclass - CreateBundleFromRefListResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CreateBundleFromRefListResponse").msgclass - GetConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GetConfigRequest").msgclass - GetConfigResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GetConfigResponse").msgclass - RestoreCustomHooksRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.RestoreCustomHooksRequest").msgclass - RestoreCustomHooksResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.RestoreCustomHooksResponse").msgclass - BackupCustomHooksRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.BackupCustomHooksRequest").msgclass - BackupCustomHooksResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.BackupCustomHooksResponse").msgclass - CreateRepositoryFromBundleRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CreateRepositoryFromBundleRequest").msgclass - CreateRepositoryFromBundleResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CreateRepositoryFromBundleResponse").msgclass - FindLicenseRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindLicenseRequest").msgclass - FindLicenseResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindLicenseResponse").msgclass - GetInfoAttributesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GetInfoAttributesRequest").msgclass - GetInfoAttributesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GetInfoAttributesResponse").msgclass - CalculateChecksumRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CalculateChecksumRequest").msgclass - CalculateChecksumResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CalculateChecksumResponse").msgclass - GetSnapshotRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GetSnapshotRequest").msgclass - GetSnapshotResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GetSnapshotResponse").msgclass - CreateRepositoryFromSnapshotRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CreateRepositoryFromSnapshotRequest").msgclass - CreateRepositoryFromSnapshotResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CreateRepositoryFromSnapshotResponse").msgclass - GetRawChangesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GetRawChangesRequest").msgclass - GetRawChangesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GetRawChangesResponse").msgclass - GetRawChangesResponse::RawChange = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GetRawChangesResponse.RawChange").msgclass - GetRawChangesResponse::RawChange::Operation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GetRawChangesResponse.RawChange.Operation").enummodule - SearchFilesByNameRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.SearchFilesByNameRequest").msgclass - SearchFilesByNameResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.SearchFilesByNameResponse").msgclass - SearchFilesByContentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.SearchFilesByContentRequest").msgclass - SearchFilesByContentResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.SearchFilesByContentResponse").msgclass - Remote = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.Remote").msgclass - GetObjectDirectorySizeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GetObjectDirectorySizeRequest").msgclass - GetObjectDirectorySizeResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GetObjectDirectorySizeResponse").msgclass - RemoveRepositoryRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.RemoveRepositoryRequest").msgclass - RemoveRepositoryResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.RemoveRepositoryResponse").msgclass - RenameRepositoryRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.RenameRepositoryRequest").msgclass - RenameRepositoryResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.RenameRepositoryResponse").msgclass - ReplicateRepositoryRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ReplicateRepositoryRequest").msgclass - ReplicateRepositoryResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ReplicateRepositoryResponse").msgclass - OptimizeRepositoryRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.OptimizeRepositoryRequest").msgclass - OptimizeRepositoryResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.OptimizeRepositoryResponse").msgclass - PruneUnreachableObjectsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.PruneUnreachableObjectsRequest").msgclass - PruneUnreachableObjectsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.PruneUnreachableObjectsResponse").msgclass - SetFullPathRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.SetFullPathRequest").msgclass - SetFullPathResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.SetFullPathResponse").msgclass - FullPathRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FullPathRequest").msgclass - FullPathResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FullPathResponse").msgclass -end diff --git a/ruby/proto/gitaly/repository_services_pb.rb b/ruby/proto/gitaly/repository_services_pb.rb deleted file mode 100644 index 57cc9199a..000000000 --- a/ruby/proto/gitaly/repository_services_pb.rb +++ /dev/null @@ -1,133 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: repository.proto for package 'gitaly' - -require 'grpc' -require 'repository_pb' - -module Gitaly - module RepositoryService - # RepositoryService is a service providing RPCs accessing repositories as a whole. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'gitaly.RepositoryService' - - # This comment is left unintentionally blank. - rpc :RepositoryExists, ::Gitaly::RepositoryExistsRequest, ::Gitaly::RepositoryExistsResponse - # RepackIncremental is deprecated in favor of OptimizeRepository. - rpc :RepackIncremental, ::Gitaly::RepackIncrementalRequest, ::Gitaly::RepackIncrementalResponse - # RepackFull is deprecated in favor of OptimizeRepository. - rpc :RepackFull, ::Gitaly::RepackFullRequest, ::Gitaly::RepackFullResponse - # MidxRepack is deprecated in favor of OptimizeRepository. - rpc :MidxRepack, ::Gitaly::MidxRepackRequest, ::Gitaly::MidxRepackResponse - # GarbageCollect is deprecated in favor of OptimizeRepository. - rpc :GarbageCollect, ::Gitaly::GarbageCollectRequest, ::Gitaly::GarbageCollectResponse - # WriteCommitGraph is deprecated in favor of OptimizeRepository. - rpc :WriteCommitGraph, ::Gitaly::WriteCommitGraphRequest, ::Gitaly::WriteCommitGraphResponse - # This comment is left unintentionally blank. - rpc :RepositorySize, ::Gitaly::RepositorySizeRequest, ::Gitaly::RepositorySizeResponse - # This comment is left unintentionally blank. - rpc :ApplyGitattributes, ::Gitaly::ApplyGitattributesRequest, ::Gitaly::ApplyGitattributesResponse - # FetchRemote fetches references from a remote repository into the local - # repository. - rpc :FetchRemote, ::Gitaly::FetchRemoteRequest, ::Gitaly::FetchRemoteResponse - # This comment is left unintentionally blank. - rpc :CreateRepository, ::Gitaly::CreateRepositoryRequest, ::Gitaly::CreateRepositoryResponse - # This comment is left unintentionally blank. - rpc :GetArchive, ::Gitaly::GetArchiveRequest, stream(::Gitaly::GetArchiveResponse) - # This comment is left unintentionally blank. - rpc :HasLocalBranches, ::Gitaly::HasLocalBranchesRequest, ::Gitaly::HasLocalBranchesResponse - # FetchSourceBranch fetches a branch from a second (potentially remote) - # repository into the given repository. - rpc :FetchSourceBranch, ::Gitaly::FetchSourceBranchRequest, ::Gitaly::FetchSourceBranchResponse - # This comment is left unintentionally blank. - rpc :Fsck, ::Gitaly::FsckRequest, ::Gitaly::FsckResponse - # This comment is left unintentionally blank. - rpc :WriteRef, ::Gitaly::WriteRefRequest, ::Gitaly::WriteRefResponse - # This comment is left unintentionally blank. - rpc :FindMergeBase, ::Gitaly::FindMergeBaseRequest, ::Gitaly::FindMergeBaseResponse - # This comment is left unintentionally blank. - rpc :CreateFork, ::Gitaly::CreateForkRequest, ::Gitaly::CreateForkResponse - # This comment is left unintentionally blank. - rpc :CreateRepositoryFromURL, ::Gitaly::CreateRepositoryFromURLRequest, ::Gitaly::CreateRepositoryFromURLResponse - # CreateBundle creates a bundle from all refs - rpc :CreateBundle, ::Gitaly::CreateBundleRequest, stream(::Gitaly::CreateBundleResponse) - # CreateBundleFromRefList creates a bundle from a stream of ref patterns. - # When the bundle would be empty the FailedPrecondition error code is returned. - rpc :CreateBundleFromRefList, stream(::Gitaly::CreateBundleFromRefListRequest), stream(::Gitaly::CreateBundleFromRefListResponse) - # FetchBundle fetches references from a bundle into the local repository. - # Refs will be mirrored to the target repository with the refspec - # "+refs/*:refs/*" and refs that do not exist in the bundle will be removed. - rpc :FetchBundle, stream(::Gitaly::FetchBundleRequest), ::Gitaly::FetchBundleResponse - # This comment is left unintentionally blank. - rpc :CreateRepositoryFromBundle, stream(::Gitaly::CreateRepositoryFromBundleRequest), ::Gitaly::CreateRepositoryFromBundleResponse - # GetConfig reads the target repository's gitconfig and streams its contents - # back. Returns a NotFound error in case no gitconfig was found. - rpc :GetConfig, ::Gitaly::GetConfigRequest, stream(::Gitaly::GetConfigResponse) - # This comment is left unintentionally blank. - rpc :FindLicense, ::Gitaly::FindLicenseRequest, ::Gitaly::FindLicenseResponse - # This comment is left unintentionally blank. - rpc :GetInfoAttributes, ::Gitaly::GetInfoAttributesRequest, stream(::Gitaly::GetInfoAttributesResponse) - # This comment is left unintentionally blank. - rpc :CalculateChecksum, ::Gitaly::CalculateChecksumRequest, ::Gitaly::CalculateChecksumResponse - # Cleanup is deprecated in favor of OptimizeRepository. - rpc :Cleanup, ::Gitaly::CleanupRequest, ::Gitaly::CleanupResponse - # This comment is left unintentionally blank. - rpc :GetSnapshot, ::Gitaly::GetSnapshotRequest, stream(::Gitaly::GetSnapshotResponse) - # This comment is left unintentionally blank. - rpc :CreateRepositoryFromSnapshot, ::Gitaly::CreateRepositoryFromSnapshotRequest, ::Gitaly::CreateRepositoryFromSnapshotResponse - # This comment is left unintentionally blank. - rpc :GetRawChanges, ::Gitaly::GetRawChangesRequest, stream(::Gitaly::GetRawChangesResponse) - # This comment is left unintentionally blank. - rpc :SearchFilesByContent, ::Gitaly::SearchFilesByContentRequest, stream(::Gitaly::SearchFilesByContentResponse) - # This comment is left unintentionally blank. - rpc :SearchFilesByName, ::Gitaly::SearchFilesByNameRequest, stream(::Gitaly::SearchFilesByNameResponse) - # This comment is left unintentionally blank. - rpc :RestoreCustomHooks, stream(::Gitaly::RestoreCustomHooksRequest), ::Gitaly::RestoreCustomHooksResponse - # This comment is left unintentionally blank. - rpc :BackupCustomHooks, ::Gitaly::BackupCustomHooksRequest, stream(::Gitaly::BackupCustomHooksResponse) - # This comment is left unintentionally blank. - rpc :GetObjectDirectorySize, ::Gitaly::GetObjectDirectorySizeRequest, ::Gitaly::GetObjectDirectorySizeResponse - # RemoveRepository will move the repository to `+gitaly/tmp/<relative_path>_removed` and - # eventually remove it. This ensures that even on networked filesystems the - # data is actually removed even if there's someone still handling the data. - rpc :RemoveRepository, ::Gitaly::RemoveRepositoryRequest, ::Gitaly::RemoveRepositoryResponse - # This comment is left unintentionally blank. - rpc :RenameRepository, ::Gitaly::RenameRepositoryRequest, ::Gitaly::RenameRepositoryResponse - # This comment is left unintentionally blank. - rpc :ReplicateRepository, ::Gitaly::ReplicateRepositoryRequest, ::Gitaly::ReplicateRepositoryResponse - # OptimizeRepository performs all maintenance tasks in a repository to keep - # it in an efficient state. It cleans up stale data, repacks objects, - # updates auxiliary caches like commit-graphs and packs references. The - # optimizations performed are based on heuristics and will adapt to the - # repository's size. This RPC call is designed as a black-box such that - # Gitaly has complete control of the on-disk state of repositories. - rpc :OptimizeRepository, ::Gitaly::OptimizeRepositoryRequest, ::Gitaly::OptimizeRepositoryResponse - # PruneUnreachableObjects will prune all objects which aren't reachable from - # the repository's current set of references. Because pruning can only - # happen for objects which aren't packed, you are required to first run - # OptimizeRepository to explode any unreachable objects into loose objects. - # - # Furthermore, this RPC call has a grace period of 30 minutes: any - # unreachable loose objects must not have been accessed or modified in the - # last 30 minutes. This is a hard requirement to avoid repository corruption. - # - # To make proper use of this RPC you thus need to call OptimizeRepository, - # wait 30 minutes, and then call PruneUnreachableObjects. - rpc :PruneUnreachableObjects, ::Gitaly::PruneUnreachableObjectsRequest, ::Gitaly::PruneUnreachableObjectsResponse - # SetFullPath writes the "gitlab.fullpath" configuration into the - # repository's gitconfig. This is mainly to help debugging purposes in case - # an admin inspects the repository's gitconfig such that he can easily see - # what the repository name is. - rpc :SetFullPath, ::Gitaly::SetFullPathRequest, ::Gitaly::SetFullPathResponse - # FullPath reads the "gitlab.fullpath" configuration from the repository's - # gitconfig. Returns an error in case the full path has not been configured. - rpc :FullPath, ::Gitaly::FullPathRequest, ::Gitaly::FullPathResponse - end - - Stub = Service.rpc_stub_class - end -end diff --git a/ruby/proto/gitaly/server_pb.rb b/ruby/proto/gitaly/server_pb.rb deleted file mode 100644 index 06f5eec96..000000000 --- a/ruby/proto/gitaly/server_pb.rb +++ /dev/null @@ -1,77 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: server.proto - -require 'google/protobuf/duration_pb' -require 'lint_pb' -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("server.proto", :syntax => :proto3) do - add_message "gitaly.ServerInfoRequest" do - end - add_message "gitaly.ServerInfoResponse" do - optional :server_version, :string, 1 - optional :git_version, :string, 2 - repeated :storage_statuses, :message, 3, "gitaly.ServerInfoResponse.StorageStatus" - end - add_message "gitaly.ServerInfoResponse.StorageStatus" do - optional :storage_name, :string, 1 - optional :readable, :bool, 2 - optional :writeable, :bool, 3 - optional :fs_type, :string, 4 - optional :filesystem_id, :string, 5 - optional :replication_factor, :uint32, 6 - end - add_message "gitaly.DiskStatisticsRequest" do - end - add_message "gitaly.DiskStatisticsResponse" do - repeated :storage_statuses, :message, 1, "gitaly.DiskStatisticsResponse.StorageStatus" - end - add_message "gitaly.DiskStatisticsResponse.StorageStatus" do - optional :storage_name, :string, 1 - optional :available, :int64, 2 - optional :used, :int64, 3 - end - add_message "gitaly.ClockSyncedRequest" do - optional :ntp_host, :string, 1 - optional :drift_threshold, :message, 3, "google.protobuf.Duration" - end - add_message "gitaly.ClockSyncedResponse" do - optional :synced, :bool, 1 - end - add_message "gitaly.ReadinessCheckRequest" do - optional :timeout, :message, 1, "google.protobuf.Duration" - end - add_message "gitaly.ReadinessCheckResponse" do - oneof :Result do - optional :ok_response, :message, 1, "gitaly.ReadinessCheckResponse.Ok" - optional :failure_response, :message, 2, "gitaly.ReadinessCheckResponse.Failure" - end - end - add_message "gitaly.ReadinessCheckResponse.Ok" do - end - add_message "gitaly.ReadinessCheckResponse.Failure" do - repeated :failed_checks, :message, 1, "gitaly.ReadinessCheckResponse.Failure.Response" - end - add_message "gitaly.ReadinessCheckResponse.Failure.Response" do - optional :name, :string, 1 - optional :error_message, :string, 2 - end - end -end - -module Gitaly - ServerInfoRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ServerInfoRequest").msgclass - ServerInfoResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ServerInfoResponse").msgclass - ServerInfoResponse::StorageStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ServerInfoResponse.StorageStatus").msgclass - DiskStatisticsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.DiskStatisticsRequest").msgclass - DiskStatisticsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.DiskStatisticsResponse").msgclass - DiskStatisticsResponse::StorageStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.DiskStatisticsResponse.StorageStatus").msgclass - ClockSyncedRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ClockSyncedRequest").msgclass - ClockSyncedResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ClockSyncedResponse").msgclass - ReadinessCheckRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ReadinessCheckRequest").msgclass - ReadinessCheckResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ReadinessCheckResponse").msgclass - ReadinessCheckResponse::Ok = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ReadinessCheckResponse.Ok").msgclass - ReadinessCheckResponse::Failure = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ReadinessCheckResponse.Failure").msgclass - ReadinessCheckResponse::Failure::Response = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ReadinessCheckResponse.Failure.Response").msgclass -end diff --git a/ruby/proto/gitaly/server_services_pb.rb b/ruby/proto/gitaly/server_services_pb.rb deleted file mode 100644 index 2e7ba45f2..000000000 --- a/ruby/proto/gitaly/server_services_pb.rb +++ /dev/null @@ -1,31 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: server.proto for package 'gitaly' - -require 'grpc' -require 'server_pb' - -module Gitaly - module ServerService - # ServerService is a service that provides information about a Gitaly server. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'gitaly.ServerService' - - # This comment is left unintentionally blank. - rpc :ServerInfo, ::Gitaly::ServerInfoRequest, ::Gitaly::ServerInfoResponse - # This comment is left unintentionally blank. - rpc :DiskStatistics, ::Gitaly::DiskStatisticsRequest, ::Gitaly::DiskStatisticsResponse - # ClockSynced checks if machine clock is synced - # (the offset is less that the one passed in the request). - rpc :ClockSynced, ::Gitaly::ClockSyncedRequest, ::Gitaly::ClockSyncedResponse - # ReadinessCheck runs the set of the checks to make sure service is in operational state. - rpc :ReadinessCheck, ::Gitaly::ReadinessCheckRequest, ::Gitaly::ReadinessCheckResponse - end - - Stub = Service.rpc_stub_class - end -end diff --git a/ruby/proto/gitaly/shared_pb.rb b/ruby/proto/gitaly/shared_pb.rb deleted file mode 100644 index 4481fca60..000000000 --- a/ruby/proto/gitaly/shared_pb.rb +++ /dev/null @@ -1,119 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: shared.proto - -require 'google/protobuf/timestamp_pb' -require 'lint_pb' -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("shared.proto", :syntax => :proto3) do - add_message "gitaly.Repository" do - optional :storage_name, :string, 2 - optional :relative_path, :string, 3 - optional :git_object_directory, :string, 4 - repeated :git_alternate_object_directories, :string, 5 - optional :gl_repository, :string, 6 - optional :gl_project_path, :string, 8 - end - add_message "gitaly.CommitTrailer" do - optional :key, :bytes, 1 - optional :value, :bytes, 2 - end - add_message "gitaly.CommitStatInfo" do - optional :additions, :int32, 1 - optional :deletions, :int32, 2 - optional :changed_files, :int32, 3 - end - add_message "gitaly.GitCommit" do - optional :id, :string, 1 - optional :subject, :bytes, 2 - optional :body, :bytes, 3 - optional :author, :message, 4, "gitaly.CommitAuthor" - optional :committer, :message, 5, "gitaly.CommitAuthor" - repeated :parent_ids, :string, 6 - optional :body_size, :int64, 7 - optional :signature_type, :enum, 8, "gitaly.SignatureType" - optional :tree_id, :string, 9 - repeated :trailers, :message, 10, "gitaly.CommitTrailer" - optional :short_stats, :message, 11, "gitaly.CommitStatInfo" - end - add_message "gitaly.CommitAuthor" do - optional :name, :bytes, 1 - optional :email, :bytes, 2 - optional :date, :message, 3, "google.protobuf.Timestamp" - optional :timezone, :bytes, 4 - end - add_message "gitaly.ExitStatus" do - optional :value, :int32, 1 - end - add_message "gitaly.Branch" do - optional :name, :bytes, 1 - optional :target_commit, :message, 2, "gitaly.GitCommit" - end - add_message "gitaly.Tag" do - optional :name, :bytes, 1 - optional :id, :string, 2 - optional :target_commit, :message, 3, "gitaly.GitCommit" - optional :message, :bytes, 4 - optional :message_size, :int64, 5 - optional :tagger, :message, 6, "gitaly.CommitAuthor" - optional :signature_type, :enum, 7, "gitaly.SignatureType" - end - add_message "gitaly.User" do - optional :gl_id, :string, 1 - optional :name, :bytes, 2 - optional :email, :bytes, 3 - optional :gl_username, :string, 4 - optional :timezone, :string, 5 - end - add_message "gitaly.ObjectPool" do - optional :repository, :message, 1, "gitaly.Repository" - end - add_message "gitaly.PaginationParameter" do - optional :page_token, :string, 1 - optional :limit, :int32, 2 - end - add_message "gitaly.PaginationCursor" do - optional :next_cursor, :string, 1 - end - add_message "gitaly.GlobalOptions" do - optional :literal_pathspecs, :bool, 1 - end - add_enum "gitaly.ObjectType" do - value :UNKNOWN, 0 - value :COMMIT, 1 - value :BLOB, 2 - value :TREE, 3 - value :TAG, 4 - end - add_enum "gitaly.SignatureType" do - value :NONE, 0 - value :PGP, 1 - value :X509, 2 - value :SSH, 3 - end - add_enum "gitaly.SortDirection" do - value :ASCENDING, 0 - value :DESCENDING, 1 - end - end -end - -module Gitaly - Repository = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.Repository").msgclass - CommitTrailer = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CommitTrailer").msgclass - CommitStatInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CommitStatInfo").msgclass - GitCommit = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GitCommit").msgclass - CommitAuthor = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.CommitAuthor").msgclass - ExitStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ExitStatus").msgclass - Branch = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.Branch").msgclass - Tag = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.Tag").msgclass - User = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.User").msgclass - ObjectPool = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ObjectPool").msgclass - PaginationParameter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.PaginationParameter").msgclass - PaginationCursor = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.PaginationCursor").msgclass - GlobalOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GlobalOptions").msgclass - ObjectType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ObjectType").enummodule - SignatureType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.SignatureType").enummodule - SortDirection = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.SortDirection").enummodule -end diff --git a/ruby/proto/gitaly/smarthttp_pb.rb b/ruby/proto/gitaly/smarthttp_pb.rb deleted file mode 100644 index 378fc5496..000000000 --- a/ruby/proto/gitaly/smarthttp_pb.rb +++ /dev/null @@ -1,58 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: smarthttp.proto - -require 'lint_pb' -require 'shared_pb' -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("smarthttp.proto", :syntax => :proto3) do - add_message "gitaly.InfoRefsRequest" do - optional :repository, :message, 1, "gitaly.Repository" - repeated :git_config_options, :string, 2 - optional :git_protocol, :string, 3 - end - add_message "gitaly.InfoRefsResponse" do - optional :data, :bytes, 1 - end - add_message "gitaly.PostUploadPackRequest" do - optional :repository, :message, 1, "gitaly.Repository" - optional :data, :bytes, 2 - repeated :git_config_options, :string, 3 - optional :git_protocol, :string, 4 - end - add_message "gitaly.PostUploadPackResponse" do - optional :data, :bytes, 1 - end - add_message "gitaly.PostUploadPackWithSidechannelRequest" do - optional :repository, :message, 1, "gitaly.Repository" - repeated :git_config_options, :string, 2 - optional :git_protocol, :string, 3 - end - add_message "gitaly.PostUploadPackWithSidechannelResponse" do - end - add_message "gitaly.PostReceivePackRequest" do - optional :repository, :message, 1, "gitaly.Repository" - optional :data, :bytes, 2 - optional :gl_id, :string, 3 - optional :gl_repository, :string, 4 - optional :gl_username, :string, 5 - optional :git_protocol, :string, 6 - repeated :git_config_options, :string, 7 - end - add_message "gitaly.PostReceivePackResponse" do - optional :data, :bytes, 1 - end - end -end - -module Gitaly - InfoRefsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.InfoRefsRequest").msgclass - InfoRefsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.InfoRefsResponse").msgclass - PostUploadPackRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.PostUploadPackRequest").msgclass - PostUploadPackResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.PostUploadPackResponse").msgclass - PostUploadPackWithSidechannelRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.PostUploadPackWithSidechannelRequest").msgclass - PostUploadPackWithSidechannelResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.PostUploadPackWithSidechannelResponse").msgclass - PostReceivePackRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.PostReceivePackRequest").msgclass - PostReceivePackResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.PostReceivePackResponse").msgclass -end diff --git a/ruby/proto/gitaly/smarthttp_services_pb.rb b/ruby/proto/gitaly/smarthttp_services_pb.rb deleted file mode 100644 index 688d4e00f..000000000 --- a/ruby/proto/gitaly/smarthttp_services_pb.rb +++ /dev/null @@ -1,37 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: smarthttp.proto for package 'gitaly' - -require 'grpc' -require 'smarthttp_pb' - -module Gitaly - module SmartHTTPService - # SmartHTTPService is a service that provides RPCs required for HTTP-based Git - # clones via the smart HTTP protocol. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'gitaly.SmartHTTPService' - - # The response body for GET /info/refs?service=git-upload-pack - # Will be invoked when the user executes a `git fetch`, meaning the server - # will upload the packs to that user. The user doesn't upload new objects. - rpc :InfoRefsUploadPack, ::Gitaly::InfoRefsRequest, stream(::Gitaly::InfoRefsResponse) - # The response body for GET /info/refs?service=git-receive-pack - # Will be invoked when the user executes a `git push`, but only advertises - # references to the user. - rpc :InfoRefsReceivePack, ::Gitaly::InfoRefsRequest, stream(::Gitaly::InfoRefsResponse) - # Request and response body for POST /upload-pack - rpc :PostUploadPack, stream(::Gitaly::PostUploadPackRequest), stream(::Gitaly::PostUploadPackResponse) - # Request and response body for POST /upload-pack using sidechannel protocol - rpc :PostUploadPackWithSidechannel, ::Gitaly::PostUploadPackWithSidechannelRequest, ::Gitaly::PostUploadPackWithSidechannelResponse - # Request and response body for POST /receive-pack - rpc :PostReceivePack, stream(::Gitaly::PostReceivePackRequest), stream(::Gitaly::PostReceivePackResponse) - end - - Stub = Service.rpc_stub_class - end -end diff --git a/ruby/proto/gitaly/ssh_pb.rb b/ruby/proto/gitaly/ssh_pb.rb deleted file mode 100644 index 49e65cc14..000000000 --- a/ruby/proto/gitaly/ssh_pb.rb +++ /dev/null @@ -1,63 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: ssh.proto - -require 'lint_pb' -require 'shared_pb' -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("ssh.proto", :syntax => :proto3) do - add_message "gitaly.SSHUploadPackRequest" do - optional :repository, :message, 1, "gitaly.Repository" - optional :stdin, :bytes, 2 - repeated :git_config_options, :string, 4 - optional :git_protocol, :string, 5 - end - add_message "gitaly.SSHUploadPackResponse" do - optional :stdout, :bytes, 1 - optional :stderr, :bytes, 2 - optional :exit_status, :message, 3, "gitaly.ExitStatus" - end - add_message "gitaly.SSHUploadPackWithSidechannelRequest" do - optional :repository, :message, 1, "gitaly.Repository" - repeated :git_config_options, :string, 2 - optional :git_protocol, :string, 3 - end - add_message "gitaly.SSHUploadPackWithSidechannelResponse" do - end - add_message "gitaly.SSHReceivePackRequest" do - optional :repository, :message, 1, "gitaly.Repository" - optional :stdin, :bytes, 2 - optional :gl_id, :string, 3 - optional :gl_repository, :string, 4 - optional :gl_username, :string, 5 - optional :git_protocol, :string, 6 - repeated :git_config_options, :string, 7 - end - add_message "gitaly.SSHReceivePackResponse" do - optional :stdout, :bytes, 1 - optional :stderr, :bytes, 2 - optional :exit_status, :message, 3, "gitaly.ExitStatus" - end - add_message "gitaly.SSHUploadArchiveRequest" do - optional :repository, :message, 1, "gitaly.Repository" - optional :stdin, :bytes, 2 - end - add_message "gitaly.SSHUploadArchiveResponse" do - optional :stdout, :bytes, 1 - optional :stderr, :bytes, 2 - optional :exit_status, :message, 3, "gitaly.ExitStatus" - end - end -end - -module Gitaly - SSHUploadPackRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.SSHUploadPackRequest").msgclass - SSHUploadPackResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.SSHUploadPackResponse").msgclass - SSHUploadPackWithSidechannelRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.SSHUploadPackWithSidechannelRequest").msgclass - SSHUploadPackWithSidechannelResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.SSHUploadPackWithSidechannelResponse").msgclass - SSHReceivePackRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.SSHReceivePackRequest").msgclass - SSHReceivePackResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.SSHReceivePackResponse").msgclass - SSHUploadArchiveRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.SSHUploadArchiveRequest").msgclass - SSHUploadArchiveResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.SSHUploadArchiveResponse").msgclass -end diff --git a/ruby/proto/gitaly/ssh_services_pb.rb b/ruby/proto/gitaly/ssh_services_pb.rb deleted file mode 100644 index d630bcb81..000000000 --- a/ruby/proto/gitaly/ssh_services_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: ssh.proto for package 'gitaly' - -require 'grpc' -require 'ssh_pb' - -module Gitaly - module SSHService - # SSHService is a service that provides RPCs required for SSH-based Git clones. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'gitaly.SSHService' - - # To forward 'git upload-pack' to Gitaly for SSH sessions - rpc :SSHUploadPack, stream(::Gitaly::SSHUploadPackRequest), stream(::Gitaly::SSHUploadPackResponse) - # To forward 'git upload-pack' to Gitaly for SSH sessions, via sidechannels - rpc :SSHUploadPackWithSidechannel, ::Gitaly::SSHUploadPackWithSidechannelRequest, ::Gitaly::SSHUploadPackWithSidechannelResponse - # To forward 'git receive-pack' to Gitaly for SSH sessions - rpc :SSHReceivePack, stream(::Gitaly::SSHReceivePackRequest), stream(::Gitaly::SSHReceivePackResponse) - # To forward 'git upload-archive' to Gitaly for SSH sessions - rpc :SSHUploadArchive, stream(::Gitaly::SSHUploadArchiveRequest), stream(::Gitaly::SSHUploadArchiveResponse) - end - - Stub = Service.rpc_stub_class - end -end diff --git a/ruby/proto/gitaly/transaction_pb.rb b/ruby/proto/gitaly/transaction_pb.rb deleted file mode 100644 index b96b8fb0b..000000000 --- a/ruby/proto/gitaly/transaction_pb.rb +++ /dev/null @@ -1,46 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: transaction.proto - -require 'lint_pb' -require 'shared_pb' -require 'google/protobuf' - -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("transaction.proto", :syntax => :proto3) do - add_message "gitaly.VoteTransactionRequest" do - optional :repository, :message, 1, "gitaly.Repository" - optional :transaction_id, :uint64, 2 - optional :node, :string, 3 - optional :reference_updates_hash, :bytes, 4 - optional :phase, :enum, 5, "gitaly.VoteTransactionRequest.Phase" - end - add_enum "gitaly.VoteTransactionRequest.Phase" do - value :UNKNOWN_PHASE, 0 - value :PREPARED_PHASE, 1 - value :COMMITTED_PHASE, 2 - end - add_message "gitaly.VoteTransactionResponse" do - optional :state, :enum, 1, "gitaly.VoteTransactionResponse.TransactionState" - end - add_enum "gitaly.VoteTransactionResponse.TransactionState" do - value :COMMIT, 0 - value :ABORT, 1 - value :STOP, 2 - end - add_message "gitaly.StopTransactionRequest" do - optional :repository, :message, 1, "gitaly.Repository" - optional :transaction_id, :uint64, 2 - end - add_message "gitaly.StopTransactionResponse" do - end - end -end - -module Gitaly - VoteTransactionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.VoteTransactionRequest").msgclass - VoteTransactionRequest::Phase = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.VoteTransactionRequest.Phase").enummodule - VoteTransactionResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.VoteTransactionResponse").msgclass - VoteTransactionResponse::TransactionState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.VoteTransactionResponse.TransactionState").enummodule - StopTransactionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.StopTransactionRequest").msgclass - StopTransactionResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.StopTransactionResponse").msgclass -end diff --git a/ruby/proto/gitaly/transaction_services_pb.rb b/ruby/proto/gitaly/transaction_services_pb.rb deleted file mode 100644 index 639d465bc..000000000 --- a/ruby/proto/gitaly/transaction_services_pb.rb +++ /dev/null @@ -1,49 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: transaction.proto for package 'gitaly' - -require 'grpc' -require 'transaction_pb' - -module Gitaly - module RefTransaction - # RefTransaction is a service which provides RPCs to interact with reference - # transactions. Reference transactions are used in the context of Gitaly - # Cluster to ensure that all nodes part of a single transaction perform the - # same change: given a set of changes, the changes are hashed and the hash is - # then voted on. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'gitaly.RefTransaction' - - # VoteTransaction casts a vote on a transaction to establish whether the - # node is doing the same change as all the other nodes part of the - # transaction. This RPC blocks until quorum has been reached, which may be - # _before_ all nodes have cast a vote. - # - # This RPC may return one of the following error codes: - # - # - `NotFound` in case the transaction could not be found. - # - `Canceled` in case the transaction has been canceled before quorum was - # reached. - rpc :VoteTransaction, ::Gitaly::VoteTransactionRequest, ::Gitaly::VoteTransactionResponse - # StopTransaction gracefully stops a transaction. This RPC can be used if - # only a subset of nodes executes specific code which may cause the - # transaction to fail. One such example is Git hooks, which only execute on - # the primary Gitaly noded. Other nodes which vote on this transaction will - # get a response with the `STOP` state being set. - # - # This RPC may return one of the following error codes: - # - # - `NotFound` in case the transaction could not be found. - # - `Canceled` in case the transaction has been canceled before quorum was - # reached. - rpc :StopTransaction, ::Gitaly::StopTransactionRequest, ::Gitaly::StopTransactionResponse - end - - Stub = Service.rpc_stub_class - end -end diff --git a/ruby/proto/gitaly/version.rb b/ruby/proto/gitaly/version.rb deleted file mode 100644 index 45d43cd6f..000000000 --- a/ruby/proto/gitaly/version.rb +++ /dev/null @@ -1,4 +0,0 @@ -# This file is generated by generate-proto-ruby. Do not edit. -module Gitaly - VERSION = '15.4.0-rc2' -end |