blob: 5bb03801dcd611383094a84bbdd47ed05113a697 [file] [log] [blame]
lloretgalleg1d2ff512020-08-01 06:05:58 +00001# Generated by the Protocol Buffers compiler. DO NOT EDIT!
2# source: osm_ee/frontend.proto
3# plugin: grpclib.plugin.main
4import abc
5import typing
6
7import grpclib.const
8import grpclib.client
garciadeblas43fc9352024-07-09 14:30:44 +02009
lloretgalleg1d2ff512020-08-01 06:05:58 +000010if typing.TYPE_CHECKING:
11 import grpclib.server
12
13import osm_ee.frontend_pb2
14
15
16class FrontendExecutorBase(abc.ABC):
17
18 @abc.abstractmethod
garciadeblas43fc9352024-07-09 14:30:44 +020019 async def RunPrimitive(
20 self,
21 stream: "grpclib.server.Stream[osm_ee.frontend_pb2.PrimitiveRequest, osm_ee.frontend_pb2.PrimitiveReply]",
22 ) -> None:
lloretgalleg1d2ff512020-08-01 06:05:58 +000023 pass
24
25 @abc.abstractmethod
garciadeblas43fc9352024-07-09 14:30:44 +020026 async def GetSshKey(
27 self,
28 stream: "grpclib.server.Stream[osm_ee.frontend_pb2.SshKeyRequest, osm_ee.frontend_pb2.SshKeyReply]",
29 ) -> None:
lloretgalleg1d2ff512020-08-01 06:05:58 +000030 pass
31
32 def __mapping__(self) -> typing.Dict[str, grpclib.const.Handler]:
33 return {
garciadeblas43fc9352024-07-09 14:30:44 +020034 "/osm_ee.FrontendExecutor/RunPrimitive": grpclib.const.Handler(
lloretgalleg1d2ff512020-08-01 06:05:58 +000035 self.RunPrimitive,
36 grpclib.const.Cardinality.UNARY_STREAM,
37 osm_ee.frontend_pb2.PrimitiveRequest,
38 osm_ee.frontend_pb2.PrimitiveReply,
39 ),
garciadeblas43fc9352024-07-09 14:30:44 +020040 "/osm_ee.FrontendExecutor/GetSshKey": grpclib.const.Handler(
lloretgalleg1d2ff512020-08-01 06:05:58 +000041 self.GetSshKey,
42 grpclib.const.Cardinality.UNARY_UNARY,
43 osm_ee.frontend_pb2.SshKeyRequest,
44 osm_ee.frontend_pb2.SshKeyReply,
45 ),
46 }
47
48
49class FrontendExecutorStub:
50
51 def __init__(self, channel: grpclib.client.Channel) -> None:
52 self.RunPrimitive = grpclib.client.UnaryStreamMethod(
53 channel,
garciadeblas43fc9352024-07-09 14:30:44 +020054 "/osm_ee.FrontendExecutor/RunPrimitive",
lloretgalleg1d2ff512020-08-01 06:05:58 +000055 osm_ee.frontend_pb2.PrimitiveRequest,
56 osm_ee.frontend_pb2.PrimitiveReply,
57 )
58 self.GetSshKey = grpclib.client.UnaryUnaryMethod(
59 channel,
garciadeblas43fc9352024-07-09 14:30:44 +020060 "/osm_ee.FrontendExecutor/GetSshKey",
lloretgalleg1d2ff512020-08-01 06:05:58 +000061 osm_ee.frontend_pb2.SshKeyRequest,
62 osm_ee.frontend_pb2.SshKeyReply,
63 )