Commit 15e6f376 authored by Georges Racinet's avatar Georges Racinet 🦑
Browse files

Ruby library: generated for the first time

First committed run of `generate-grpc-lib`
parent 5ecbdbbf3749
# This file is generated by generate-grpc-lib. Do not edit.
$:.unshift(File.expand_path('../hgitaly', __FILE__))
require 'hgitaly/version'
require 'hgitaly/mercurial-repository_services_pb'
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: mercurial-repository.proto
require 'google/protobuf'
require 'lint_pb'
require 'shared_pb'
Google::Protobuf::DescriptorPool.generated_pool.build do
add_file("mercurial-repository.proto", :syntax => :proto3) do
add_message "hgitaly.InitConfigRequest" do
optional :repository, :message, 1, "gitaly.Repository"
optional :namespace_path, :string, 2
end
add_message "hgitaly.InitConfigResponse" do
end
add_message "hgitaly.HeptapodConfigSection" do
optional :allow_multiple_heads, :bool, 2
optional :allow_bookmarks, :bool, 3
optional :auto_publish, :enum, 4, "hgitaly.HeptapodConfigSection.AutoPublish"
end
add_enum "hgitaly.HeptapodConfigSection.AutoPublish" do
value :WITHOUT_TOPIC, 0
value :NOTHING, 1
value :ALL, 2
end
add_message "hgitaly.GetManagedConfigRequest" do
optional :repository, :message, 1, "gitaly.Repository"
optional :local, :bool, 2
end
add_message "hgitaly.GetManagedConfigResponse" do
optional :inherit, :bool, 1
optional :heptapod, :message, 2, "hgitaly.HeptapodConfigSection"
end
add_message "hgitaly.SetManagedConfigRequest" do
optional :repository, :message, 1, "gitaly.Repository"
optional :inherit, :bool, 2
optional :heptapod, :message, 3, "hgitaly.HeptapodConfigSection"
end
add_message "hgitaly.SetManagedConfigResponse" do
end
add_message "hgitaly.GetConfigItemRequest" do
optional :repository, :message, 1, "gitaly.Repository"
optional :as_type, :enum, 2, "hgitaly.ConfigItemType"
optional :section, :string, 3
optional :name, :string, 4
end
add_message "hgitaly.GetConfigItemResponse" do
oneof :value do
optional :as_string, :string, 1
optional :as_bool, :bool, 2
end
end
add_message "hgitaly.RecoverRequest" do
optional :repository, :message, 1, "gitaly.Repository"
end
add_message "hgitaly.RecoverResponse" do
optional :not_needed, :bool, 1
end
add_enum "hgitaly.ConfigItemType" do
value :STRING, 0
value :BOOL, 1
end
end
end
module Hgitaly
InitConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hgitaly.InitConfigRequest").msgclass
InitConfigResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hgitaly.InitConfigResponse").msgclass
HeptapodConfigSection = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hgitaly.HeptapodConfigSection").msgclass
HeptapodConfigSection::AutoPublish = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hgitaly.HeptapodConfigSection.AutoPublish").enummodule
GetManagedConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hgitaly.GetManagedConfigRequest").msgclass
GetManagedConfigResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hgitaly.GetManagedConfigResponse").msgclass
SetManagedConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hgitaly.SetManagedConfigRequest").msgclass
SetManagedConfigResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hgitaly.SetManagedConfigResponse").msgclass
GetConfigItemRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hgitaly.GetConfigItemRequest").msgclass
GetConfigItemResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hgitaly.GetConfigItemResponse").msgclass
RecoverRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hgitaly.RecoverRequest").msgclass
RecoverResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hgitaly.RecoverResponse").msgclass
ConfigItemType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hgitaly.ConfigItemType").enummodule
end
# Generated by the protocol buffer compiler. DO NOT EDIT!
# Source: mercurial-repository.proto for package 'hgitaly'
require 'grpc'
require 'mercurial-repository_pb'
module Hgitaly
module MercurialRepositoryService
class Service
include GRPC::GenericService
self.marshal_class_method = :encode
self.unmarshal_class_method = :decode
self.service_name = 'hgitaly.MercurialRepositoryService'
# Will back Rails method `hg_create_repository`,
# currently implemented on `Gitlab::Mercurial::HgGitRepository`
# Together with `RepositoryService.CreateRepository` (see hgitaly!64)
rpc :InitConfig, Hgitaly::InitConfigRequest, Hgitaly::InitConfigResponse
# Will back Rails method `hg_config_item_bool?` currently
# implemented on `Gitlab::Mercurial::HgGitRepository`
rpc :GetConfigItem, Hgitaly::GetConfigItemRequest, Hgitaly::GetConfigItemResponse
#
# Managed configuration methods.
#
#
# These are about the part of the repository-local configuration that is
# entirely managed by Heptapod
# (implemented as of this writing with the separate `.hg/hgrc.managed` file)
#
# Will back Rails methods `get_hgrc` and `get_hg_heptapod_config` currently
# implemented on `Gitlab::Mercurial::HgGitRepository`
rpc :GetManagedConfig, Hgitaly::GetManagedConfigRequest, Hgitaly::GetManagedConfigResponse
# Will back Rails methods `set_hgrc` currently implemented on
# `Gitlab::Mercurial::HgGitRepository` (but will be more restrictive,
# handling a closed list of sections and items, which is currently
# implemented by the upper layers of the Rails application).
rpc :SetManagedConfig, Hgitaly::SetManagedConfigRequest, Hgitaly::SetManagedConfigResponse
end
Stub = Service.rpc_stub_class
end
end
# This file is generated by generate-grpc-lib. Do not edit.
module Hgitaly
VERSION = '0.14.2dev0'
end
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment