Read about our upcoming Code of Conduct on this issue

Commit c2b6480d authored by Georges Racinet's avatar Georges Racinet 🦑
Browse files

MercurialRepositoryService, initial definition

This is the first definition of Mercurial (or Heptapod)
gRPC methods. It takes the form of a dedicated service,
in a separate `hgitaly` protobuf package.

## About the separate package

The protobufs `package` directive translates directly into a
the module name in Ruby generated code. This doesn't happen with
Python because Python modules and packages names are derived from
the file system layout, wich is obviously out of control of the
code generation.

Upstream's Ruby generated code is packaged in a separate gem,
historically from the `gitaly-proto` project, and soon to be
built from the bundled proto files within Gitaly. We are not
not going to fork either of those, and hence we need our own
package.

At some point, we may also need to generate a Go library,
which require a `option go_package` statement that we couldn't
provide right away because it means choosing the appropriate
full path (see examples in upstream GitLab proto files).

A consequence of using our own protobuf package for the declaration
itself is that we need to reference the Gitaly types with their
fully qualified name (`.gitaly.SomeType` in absolute form). Same applies
to the options.

References:

- https://developers.google.com/protocol-buffers/docs/proto3#packages

- https://developers.google.com/protocol-buffers/docs/proto#customoptions
  Quote: "Note that if you want to use a custom option in a package other
  than the one in which it was defined, you must prefix the option name
  with the package name, just as you would for type names." (example
  follows)

## About MercurialRepositoryService itself

This service is for Mercurial specific methods
that are considered to be global with respect to a given
repository.

It should cover the needs of #60 and #62

This follows the general Gitaly style: each method gets its own pair
of request/response messages, even if that looks to be redundant.
The main advantage should be to give unlimited room for future change
that would introduce actual changes.

Reference: https://gitlab.com/gitlab-org/gitaly/blob/master/proto/README.md#design-decisions
parent 2139fafefdff
......@@ -5,7 +5,7 @@
PROTOS_DIR=./protos
STUBS_DIR=hgitaly/stub
for PROTO in lint shared blob commit diff ref repository-service server; do
for PROTO in lint shared blob commit diff ref repository-service server mercurial-repository; do
python -m grpc_tools.protoc \
-I${PROTOS_DIR} \
--python_out=${STUBS_DIR} \
......
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: mercurial-repository.proto
"""Generated protocol buffer code."""
from google.protobuf.internal import enum_type_wrapper
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
from . import lint_pb2 as lint__pb2
from . import shared_pb2 as shared__pb2
DESCRIPTOR = _descriptor.FileDescriptor(
name='mercurial-repository.proto',
package='hgitaly',
syntax='proto3',
serialized_options=None,
create_key=_descriptor._internal_create_key,
serialized_pb=b'\n\x1amercurial-repository.proto\x12\x07hgitaly\x1a\nlint.proto\x1a\x0cshared.proto\"Y\n\x11InitConfigRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x16\n\x0enamespace_path\x18\x02 \x01(\t\"\x14\n\x12InitConfigResponse\"\xc8\x01\n\x15HeptapodConfigSection\x12\x1c\n\x14\x61llow_multiple_heads\x18\x02 \x01(\x08\x12\x17\n\x0f\x61llow_bookmarks\x18\x03 \x01(\x08\x12@\n\x0c\x61uto_publish\x18\x04 \x01(\x0e\x32*.hgitaly.HeptapodConfigSection.AutoPublish\"6\n\x0b\x41utoPublish\x12\x11\n\rWITHOUT_TOPIC\x10\x00\x12\x0b\n\x07NOTHING\x10\x01\x12\x07\n\x03\x41LL\x10\x02\"V\n\x17GetManagedConfigRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\r\n\x05local\x18\x02 \x01(\x08\"]\n\x18GetManagedConfigResponse\x12\x0f\n\x07inherit\x18\x01 \x01(\x08\x12\x30\n\x08heptapod\x18\x02 \x01(\x0b\x32\x1e.hgitaly.HeptapodConfigSection\"\x8a\x01\n\x17SetManagedConfigRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12\x0f\n\x07inherit\x18\x02 \x01(\x08\x12\x30\n\x08heptapod\x18\x03 \x01(\x0b\x32\x1e.hgitaly.HeptapodConfigSection\"\x1a\n\x18SetManagedConfigResponse\"\x8d\x01\n\x14GetConfigItemRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\x12(\n\x07\x61s_type\x18\x02 \x01(\x0e\x32\x17.hgitaly.ConfigItemType\x12\x0f\n\x07section\x18\x03 \x01(\t\x12\x0c\n\x04name\x18\x04 \x01(\t\"H\n\x15GetConfigItemResponse\x12\x13\n\tas_string\x18\x01 \x01(\tH\x00\x12\x11\n\x07\x61s_bool\x18\x02 \x01(\x08H\x00\x42\x07\n\x05value\">\n\x0eRecoverRequest\x12,\n\nrepository\x18\x01 \x01(\x0b\x32\x12.gitaly.RepositoryB\x04\x98\xc6,\x01\"%\n\x0fRecoverResponse\x12\x12\n\nnot_needed\x18\x01 \x01(\x08*&\n\x0e\x43onfigItemType\x12\n\n\x06STRING\x10\x00\x12\x08\n\x04\x42OOL\x10\x01\x32\x85\x03\n\x1aMercurialRepositoryService\x12M\n\nInitConfig\x12\x1a.hgitaly.InitConfigRequest\x1a\x1b.hgitaly.InitConfigResponse\"\x06\xfa\x97(\x02\x08\x01\x12V\n\rGetConfigItem\x12\x1d.hgitaly.GetConfigItemRequest\x1a\x1e.hgitaly.GetConfigItemResponse\"\x06\xfa\x97(\x02\x08\x02\x12_\n\x10GetManagedConfig\x12 .hgitaly.GetManagedConfigRequest\x1a!.hgitaly.GetManagedConfigResponse\"\x06\xfa\x97(\x02\x08\x02\x12_\n\x10SetManagedConfig\x12 .hgitaly.SetManagedConfigRequest\x1a!.hgitaly.SetManagedConfigResponse\"\x06\xfa\x97(\x02\x08\x01\x62\x06proto3'
,
dependencies=[lint__pb2.DESCRIPTOR,shared__pb2.DESCRIPTOR,])
_CONFIGITEMTYPE = _descriptor.EnumDescriptor(
name='ConfigItemType',
full_name='hgitaly.ConfigItemType',
filename=None,
file=DESCRIPTOR,
create_key=_descriptor._internal_create_key,
values=[
_descriptor.EnumValueDescriptor(
name='STRING', index=0, number=0,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='BOOL', index=1, number=1,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
],
containing_type=None,
serialized_options=None,
serialized_start=1054,
serialized_end=1092,
)
_sym_db.RegisterEnumDescriptor(_CONFIGITEMTYPE)
ConfigItemType = enum_type_wrapper.EnumTypeWrapper(_CONFIGITEMTYPE)
STRING = 0
BOOL = 1
_HEPTAPODCONFIGSECTION_AUTOPUBLISH = _descriptor.EnumDescriptor(
name='AutoPublish',
full_name='hgitaly.HeptapodConfigSection.AutoPublish',
filename=None,
file=DESCRIPTOR,
create_key=_descriptor._internal_create_key,
values=[
_descriptor.EnumValueDescriptor(
name='WITHOUT_TOPIC', index=0, number=0,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='NOTHING', index=1, number=1,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='ALL', index=2, number=2,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
],
containing_type=None,
serialized_options=None,
serialized_start=325,
serialized_end=379,
)
_sym_db.RegisterEnumDescriptor(_HEPTAPODCONFIGSECTION_AUTOPUBLISH)
_INITCONFIGREQUEST = _descriptor.Descriptor(
name='InitConfigRequest',
full_name='hgitaly.InitConfigRequest',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='repository', full_name='hgitaly.InitConfigRequest.repository', index=0,
number=1, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=b'\230\306,\001', file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='namespace_path', full_name='hgitaly.InitConfigRequest.namespace_path', index=1,
number=2, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=65,
serialized_end=154,
)
_INITCONFIGRESPONSE = _descriptor.Descriptor(
name='InitConfigResponse',
full_name='hgitaly.InitConfigResponse',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=156,
serialized_end=176,
)
_HEPTAPODCONFIGSECTION = _descriptor.Descriptor(
name='HeptapodConfigSection',
full_name='hgitaly.HeptapodConfigSection',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='allow_multiple_heads', full_name='hgitaly.HeptapodConfigSection.allow_multiple_heads', index=0,
number=2, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='allow_bookmarks', full_name='hgitaly.HeptapodConfigSection.allow_bookmarks', index=1,
number=3, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='auto_publish', full_name='hgitaly.HeptapodConfigSection.auto_publish', index=2,
number=4, type=14, cpp_type=8, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
_HEPTAPODCONFIGSECTION_AUTOPUBLISH,
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=179,
serialized_end=379,
)
_GETMANAGEDCONFIGREQUEST = _descriptor.Descriptor(
name='GetManagedConfigRequest',
full_name='hgitaly.GetManagedConfigRequest',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='repository', full_name='hgitaly.GetManagedConfigRequest.repository', index=0,
number=1, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=b'\230\306,\001', file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='local', full_name='hgitaly.GetManagedConfigRequest.local', index=1,
number=2, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=381,
serialized_end=467,
)
_GETMANAGEDCONFIGRESPONSE = _descriptor.Descriptor(
name='GetManagedConfigResponse',
full_name='hgitaly.GetManagedConfigResponse',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='inherit', full_name='hgitaly.GetManagedConfigResponse.inherit', index=0,
number=1, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='heptapod', full_name='hgitaly.GetManagedConfigResponse.heptapod', index=1,
number=2, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=469,
serialized_end=562,
)
_SETMANAGEDCONFIGREQUEST = _descriptor.Descriptor(
name='SetManagedConfigRequest',
full_name='hgitaly.SetManagedConfigRequest',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='repository', full_name='hgitaly.SetManagedConfigRequest.repository', index=0,
number=1, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=b'\230\306,\001', file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='inherit', full_name='hgitaly.SetManagedConfigRequest.inherit', index=1,
number=2, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='heptapod', full_name='hgitaly.SetManagedConfigRequest.heptapod', index=2,
number=3, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=565,
serialized_end=703,
)
_SETMANAGEDCONFIGRESPONSE = _descriptor.Descriptor(
name='SetManagedConfigResponse',
full_name='hgitaly.SetManagedConfigResponse',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=705,
serialized_end=731,
)
_GETCONFIGITEMREQUEST = _descriptor.Descriptor(
name='GetConfigItemRequest',
full_name='hgitaly.GetConfigItemRequest',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='repository', full_name='hgitaly.GetConfigItemRequest.repository', index=0,
number=1, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=b'\230\306,\001', file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='as_type', full_name='hgitaly.GetConfigItemRequest.as_type', index=1,
number=2, type=14, cpp_type=8, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='section', full_name='hgitaly.GetConfigItemRequest.section', index=2,
number=3, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='name', full_name='hgitaly.GetConfigItemRequest.name', index=3,
number=4, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=734,
serialized_end=875,
)
_GETCONFIGITEMRESPONSE = _descriptor.Descriptor(
name='GetConfigItemResponse',
full_name='hgitaly.GetConfigItemResponse',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='as_string', full_name='hgitaly.GetConfigItemResponse.as_string', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='as_bool', full_name='hgitaly.GetConfigItemResponse.as_bool', index=1,
number=2, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
_descriptor.OneofDescriptor(
name='value', full_name='hgitaly.GetConfigItemResponse.value',
index=0, containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[]),
],
serialized_start=877,
serialized_end=949,
)
_RECOVERREQUEST = _descriptor.Descriptor(
name='RecoverRequest',
full_name='hgitaly.RecoverRequest',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='repository', full_name='hgitaly.RecoverRequest.repository', index=0,
number=1, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=b'\230\306,\001', file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=951,
serialized_end=1013,
)
_RECOVERRESPONSE = _descriptor.Descriptor(
name='RecoverResponse',
full_name='hgitaly.RecoverResponse',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='not_needed', full_name='hgitaly.RecoverResponse.not_needed', index=0,
number=1, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=1015,
serialized_end=1052,
)
_INITCONFIGREQUEST.fields_by_name['repository'].message_type = shared__pb2._REPOSITORY
_HEPTAPODCONFIGSECTION.fields_by_name['auto_publish'].enum_type = _HEPTAPODCONFIGSECTION_AUTOPUBLISH
_HEPTAPODCONFIGSECTION_AUTOPUBLISH.containing_type = _HEPTAPODCONFIGSECTION
_GETMANAGEDCONFIGREQUEST.fields_by_name['repository'].message_type = shared__pb2._REPOSITORY
_GETMANAGEDCONFIGRESPONSE.fields_by_name['heptapod'].message_type = _HEPTAPODCONFIGSECTION
_SETMANAGEDCONFIGREQUEST.fields_by_name['repository'].message_type = shared__pb2._REPOSITORY
_SETMANAGEDCONFIGREQUEST.fields_by_name['heptapod'].message_type = _HEPTAPODCONFIGSECTION
_GETCONFIGITEMREQUEST.fields_by_name['repository'].message_type = shared__pb2._REPOSITORY
_GETCONFIGITEMREQUEST.fields_by_name['as_type'].enum_type = _CONFIGITEMTYPE
_GETCONFIGITEMRESPONSE.oneofs_by_name['value'].fields.append(
_GETCONFIGITEMRESPONSE.fields_by_name['as_string'])
_GETCONFIGITEMRESPONSE.fields_by_name['as_string'].containing_oneof = _GETCONFIGITEMRESPONSE.oneofs_by_name['value']
_GETCONFIGITEMRESPONSE.oneofs_by_name['value'].fields.append(
_GETCONFIGITEMRESPONSE.fields_by_name['as_bool'])
_GETCONFIGITEMRESPONSE.fields_by_name['as_bool'].containing_oneof = _GETCONFIGITEMRESPONSE.oneofs_by_name['value']
_RECOVERREQUEST.fields_by_name['repository'].message_type = shared__pb2._REPOSITORY
DESCRIPTOR.message_types_by_name['InitConfigRequest'] = _INITCONFIGREQUEST
DESCRIPTOR.message_types_by_name['InitConfigResponse'] = _INITCONFIGRESPONSE
DESCRIPTOR.message_types_by_name['HeptapodConfigSection'] = _HEPTAPODCONFIGSECTION
DESCRIPTOR.message_types_by_name['GetManagedConfigRequest'] = _GETMANAGEDCONFIGREQUEST
DESCRIPTOR.message_types_by_name['GetManagedConfigResponse'] = _GETMANAGEDCONFIGRESPONSE
DESCRIPTOR.message_types_by_name['SetManagedConfigRequest'] = _SETMANAGEDCONFIGREQUEST
DESCRIPTOR.message_types_by_name['SetManagedConfigResponse'] = _SETMANAGEDCONFIGRESPONSE
DESCRIPTOR.message_types_by_name['GetConfigItemRequest'] = _GETCONFIGITEMREQUEST
DESCRIPTOR.message_types_by_name['GetConfigItemResponse'] = _GETCONFIGITEMRESPONSE
DESCRIPTOR.message_types_by_name['RecoverRequest'] = _RECOVERREQUEST
DESCRIPTOR.message_types_by_name['RecoverResponse'] = _RECOVERRESPONSE
DESCRIPTOR.enum_types_by_name['ConfigItemType'] = _CONFIGITEMTYPE
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
InitConfigRequest = _reflection.GeneratedProtocolMessageType('InitConfigRequest', (_message.Message,), {
'DESCRIPTOR' : _INITCONFIGREQUEST,
'__module__' : 'mercurial_repository_pb2'
# @@protoc_insertion_point(class_scope:hgitaly.InitConfigRequest)
})
_sym_db.RegisterMessage(InitConfigRequest)
InitConfigResponse = _reflection.GeneratedProtocolMessageType('InitConfigResponse', (_message.Message,), {
'DESCRIPTOR' : _INITCONFIGRESPONSE,
'__module__' : 'mercurial_repository_pb2'
# @@protoc_insertion_point(class_scope:hgitaly.InitConfigResponse)
})
_sym_db.RegisterMessage(InitConfigResponse)
HeptapodConfigSection = _reflection.GeneratedProtocolMessageType('HeptapodConfigSection', (_message.Message,), {
'DESCRIPTOR' : _HEPTAPODCONFIGSECTION,
'__module__' : 'mercurial_repository_pb2'
# @@protoc_insertion_point(class_scope:hgitaly.HeptapodConfigSection)
})
_sym_db.RegisterMessage(HeptapodConfigSection)
GetManagedConfigRequest = _reflection.GeneratedProtocolMessageType('GetManagedConfigRequest', (_message.Message,), {
'DESCRIPTOR' : _GETMANAGEDCONFIGREQUEST,
'__module__' : 'mercurial_repository_pb2'
# @@protoc_insertion_point(class_scope:hgitaly.GetManagedConfigRequest)
})
_sym_db.RegisterMessage(GetManagedConfigRequest)
GetManagedConfigResponse = _reflection.GeneratedProtocolMessageType('GetManagedConfigResponse', (_message.Message,), {
'DESCRIPTOR' : _GETMANAGEDCONFIGRESPONSE,
'__module__' : 'mercurial_repository_pb2'
# @@protoc_insertion_point(class_scope:hgitaly.GetManagedConfigResponse)
})
_sym_db.RegisterMessage(GetManagedConfigResponse)
SetManagedConfigRequest = _reflection.GeneratedProtocolMessageType('SetManagedConfigRequest', (_message.Message,), {
'DESCRIPTOR' : _SETMANAGEDCONFIGREQUEST,
'__module__' : 'mercurial_repository_pb2'