diff --git a/example-python/rmemstore_pb2.py b/example-python/rmemstore_pb2.py index a7ed873..68a05af 100644 --- a/example-python/rmemstore_pb2.py +++ b/example-python/rmemstore_pb2.py @@ -1,11 +1,22 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: rmemstore.proto +# Protobuf Python Version: 5.28.2 """Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 5, + 28, + 2, + '', + 'rmemstore.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -15,25 +26,25 @@ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0frmemstore.proto\x12\trmemstore\"Z\n\x03Rpc\x12\n\n\x02id\x18\x01 \x01(\x04\x12\x1d\n\x03put\x18\x02 \x01(\x0b\x32\x0e.rmemstore.PutH\x00\x12\x1d\n\x03get\x18\x03 \x01(\x0b\x32\x0e.rmemstore.GetH\x00\x42\t\n\x07\x63ommand\"O\n\x08Response\x12\n\n\x02id\x18\x01 \x01(\x04\x12\x0c\n\x02ok\x18\x02 \x01(\x08H\x00\x12!\n\x05value\x18\x03 \x01(\x0b\x32\x10.rmemstore.ValueH\x00\x42\x06\n\x04kind\"P\n\x05Value\x12\x0e\n\x04\x62lob\x18\x01 \x01(\x0cH\x00\x12\x10\n\x06string\x18\x02 \x01(\tH\x00\x12\x1d\n\x03map\x18\x03 \x01(\x0b\x32\x0e.rmemstore.MapH\x00\x42\x06\n\x04kind\"i\n\x03Map\x12$\n\x03map\x18\x01 \x03(\x0b\x32\x17.rmemstore.Map.MapEntry\x1a<\n\x08MapEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x1f\n\x05value\x18\x02 \x01(\x0b\x32\x10.rmemstore.Value:\x02\x38\x01\"3\n\x03Put\x12\x0b\n\x03key\x18\x01 \x01(\x0c\x12\x1f\n\x05value\x18\x02 \x01(\x0b\x32\x10.rmemstore.Value\"\x12\n\x03Get\x12\x0b\n\x03key\x18\x01 \x01(\x0c\x62\x06proto3') -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'rmemstore_pb2', globals()) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - _MAP_MAPENTRY._options = None - _MAP_MAPENTRY._serialized_options = b'8\001' - _RPC._serialized_start=30 - _RPC._serialized_end=120 - _RESPONSE._serialized_start=122 - _RESPONSE._serialized_end=201 - _VALUE._serialized_start=203 - _VALUE._serialized_end=283 - _MAP._serialized_start=285 - _MAP._serialized_end=390 - _MAP_MAPENTRY._serialized_start=330 - _MAP_MAPENTRY._serialized_end=390 - _PUT._serialized_start=392 - _PUT._serialized_end=443 - _GET._serialized_start=445 - _GET._serialized_end=463 +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'rmemstore_pb2', _globals) +if not _descriptor._USE_C_DESCRIPTORS: + DESCRIPTOR._loaded_options = None + _globals['_MAP_MAPENTRY']._loaded_options = None + _globals['_MAP_MAPENTRY']._serialized_options = b'8\001' + _globals['_RPC']._serialized_start=30 + _globals['_RPC']._serialized_end=120 + _globals['_RESPONSE']._serialized_start=122 + _globals['_RESPONSE']._serialized_end=201 + _globals['_VALUE']._serialized_start=203 + _globals['_VALUE']._serialized_end=283 + _globals['_MAP']._serialized_start=285 + _globals['_MAP']._serialized_end=390 + _globals['_MAP_MAPENTRY']._serialized_start=330 + _globals['_MAP_MAPENTRY']._serialized_end=390 + _globals['_PUT']._serialized_start=392 + _globals['_PUT']._serialized_end=443 + _globals['_GET']._serialized_start=445 + _globals['_GET']._serialized_end=463 # @@protoc_insertion_point(module_scope) diff --git a/example-python/rmemstore_pb2.pyi b/example-python/rmemstore_pb2.pyi index dcc5651..52ed4d9 100644 --- a/example-python/rmemstore_pb2.pyi +++ b/example-python/rmemstore_pb2.pyi @@ -5,16 +5,40 @@ from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Opti DESCRIPTOR: _descriptor.FileDescriptor -class Get(_message.Message): - __slots__ = ["key"] - KEY_FIELD_NUMBER: _ClassVar[int] - key: bytes - def __init__(self, key: _Optional[bytes] = ...) -> None: ... +class Rpc(_message.Message): + __slots__ = ("id", "put", "get") + ID_FIELD_NUMBER: _ClassVar[int] + PUT_FIELD_NUMBER: _ClassVar[int] + GET_FIELD_NUMBER: _ClassVar[int] + id: int + put: Put + get: Get + def __init__(self, id: _Optional[int] = ..., put: _Optional[_Union[Put, _Mapping]] = ..., get: _Optional[_Union[Get, _Mapping]] = ...) -> None: ... + +class Response(_message.Message): + __slots__ = ("id", "ok", "value") + ID_FIELD_NUMBER: _ClassVar[int] + OK_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + id: int + ok: bool + value: Value + def __init__(self, id: _Optional[int] = ..., ok: bool = ..., value: _Optional[_Union[Value, _Mapping]] = ...) -> None: ... + +class Value(_message.Message): + __slots__ = ("blob", "string", "map") + BLOB_FIELD_NUMBER: _ClassVar[int] + STRING_FIELD_NUMBER: _ClassVar[int] + MAP_FIELD_NUMBER: _ClassVar[int] + blob: bytes + string: str + map: Map + def __init__(self, blob: _Optional[bytes] = ..., string: _Optional[str] = ..., map: _Optional[_Union[Map, _Mapping]] = ...) -> None: ... class Map(_message.Message): - __slots__ = ["map"] + __slots__ = ("map",) class MapEntry(_message.Message): - __slots__ = ["key", "value"] + __slots__ = ("key", "value") KEY_FIELD_NUMBER: _ClassVar[int] VALUE_FIELD_NUMBER: _ClassVar[int] key: str @@ -25,39 +49,15 @@ class Map(_message.Message): def __init__(self, map: _Optional[_Mapping[str, Value]] = ...) -> None: ... class Put(_message.Message): - __slots__ = ["key", "value"] + __slots__ = ("key", "value") KEY_FIELD_NUMBER: _ClassVar[int] VALUE_FIELD_NUMBER: _ClassVar[int] key: bytes value: Value def __init__(self, key: _Optional[bytes] = ..., value: _Optional[_Union[Value, _Mapping]] = ...) -> None: ... -class Response(_message.Message): - __slots__ = ["id", "ok", "value"] - ID_FIELD_NUMBER: _ClassVar[int] - OK_FIELD_NUMBER: _ClassVar[int] - VALUE_FIELD_NUMBER: _ClassVar[int] - id: int - ok: bool - value: Value - def __init__(self, id: _Optional[int] = ..., ok: bool = ..., value: _Optional[_Union[Value, _Mapping]] = ...) -> None: ... - -class Rpc(_message.Message): - __slots__ = ["get", "id", "put"] - GET_FIELD_NUMBER: _ClassVar[int] - ID_FIELD_NUMBER: _ClassVar[int] - PUT_FIELD_NUMBER: _ClassVar[int] - get: Get - id: int - put: Put - def __init__(self, id: _Optional[int] = ..., put: _Optional[_Union[Put, _Mapping]] = ..., get: _Optional[_Union[Get, _Mapping]] = ...) -> None: ... - -class Value(_message.Message): - __slots__ = ["blob", "map", "string"] - BLOB_FIELD_NUMBER: _ClassVar[int] - MAP_FIELD_NUMBER: _ClassVar[int] - STRING_FIELD_NUMBER: _ClassVar[int] - blob: bytes - map: Map - string: str - def __init__(self, blob: _Optional[bytes] = ..., string: _Optional[str] = ..., map: _Optional[_Union[Map, _Mapping]] = ...) -> None: ... +class Get(_message.Message): + __slots__ = ("key",) + KEY_FIELD_NUMBER: _ClassVar[int] + key: bytes + def __init__(self, key: _Optional[bytes] = ...) -> None: ...