Debian Codegraph @

test/generated/testproto/grpc/dummy_pb2_grpc.pyi

raw
1 """
2 @generated by mypy-protobuf. Do not edit manually!
3 isort:skip_file
4 """
5 import abc
6 import grpc
7 import testproto.grpc.dummy_pb2
8 import typing
9
10 class DummyServiceStub:
11 """DummyService"""
12 def __init__(self, channel: grpc.Channel) -> None: ...
13 UnaryUnary: grpc.UnaryUnaryMultiCallable[
14 testproto.grpc.dummy_pb2.DummyRequest,
15 testproto.grpc.dummy_pb2.DummyReply]
16 """UnaryUnary"""
17
18 UnaryStream: grpc.UnaryStreamMultiCallable[
19 testproto.grpc.dummy_pb2.DummyRequest,
20 testproto.grpc.dummy_pb2.DummyReply]
21 """UnaryStream"""
22
23 StreamUnary: grpc.StreamUnaryMultiCallable[
24 testproto.grpc.dummy_pb2.DummyRequest,
25 testproto.grpc.dummy_pb2.DummyReply]
26 """StreamUnary"""
27
28 StreamStream: grpc.StreamStreamMultiCallable[
29 testproto.grpc.dummy_pb2.DummyRequest,
30 testproto.grpc.dummy_pb2.DummyReply]
31 """StreamStream"""
32
33
34 class DummyServiceServicer(metaclass=abc.ABCMeta):
35 """DummyService"""
36 @abc.abstractmethod
37 def UnaryUnary(self,
38 request: testproto.grpc.dummy_pb2.DummyRequest,
39 context: grpc.ServicerContext,
40 ) -> testproto.grpc.dummy_pb2.DummyReply:
41 """UnaryUnary"""
42 pass
43
44 @abc.abstractmethod
45 def UnaryStream(self,
46 request: testproto.grpc.dummy_pb2.DummyRequest,
47 context: grpc.ServicerContext,
48 ) -> typing.Iterator[testproto.grpc.dummy_pb2.DummyReply]:
49 """UnaryStream"""
50 pass
51
52 @abc.abstractmethod
53 def StreamUnary(self,
54 request_iterator: typing.Iterator[testproto.grpc.dummy_pb2.DummyRequest],
55 context: grpc.ServicerContext,
56 ) -> testproto.grpc.dummy_pb2.DummyReply:
57 """StreamUnary"""
58 pass
59
60 @abc.abstractmethod
61 def StreamStream(self,
62 request_iterator: typing.Iterator[testproto.grpc.dummy_pb2.DummyRequest],
63 context: grpc.ServicerContext,
64 ) -> typing.Iterator[testproto.grpc.dummy_pb2.DummyReply]:
65 """StreamStream"""
66 pass
67
68
69 def add_DummyServiceServicer_to_server(servicer: DummyServiceServicer, server: grpc.Server) -> None: ...