Debian Codegraph @

test/generated/testproto/grpc/import_pb2_grpc.pyi

raw
1 """
2 @generated by mypy-protobuf. Do not edit manually!
3 isort:skip_file
4 """
5 import abc
6 import google.protobuf.empty_pb2
7 import grpc
8 import testproto.test_pb2
9
10 class SimpleServiceStub:
11 """SimpleService"""
12 def __init__(self, channel: grpc.Channel) -> None: ...
13 UnaryUnary: grpc.UnaryUnaryMultiCallable[
14 google.protobuf.empty_pb2.Empty,
15 testproto.test_pb2.Simple1]
16 """UnaryUnary"""
17
18 UnaryStream: grpc.UnaryUnaryMultiCallable[
19 testproto.test_pb2.Simple1,
20 google.protobuf.empty_pb2.Empty]
21 """UnaryStream"""
22
23 NoComment: grpc.UnaryUnaryMultiCallable[
24 testproto.test_pb2.Simple1,
25 google.protobuf.empty_pb2.Empty]
26
27
28 class SimpleServiceServicer(metaclass=abc.ABCMeta):
29 """SimpleService"""
30 @abc.abstractmethod
31 def UnaryUnary(self,
32 request: google.protobuf.empty_pb2.Empty,
33 context: grpc.ServicerContext,
34 ) -> testproto.test_pb2.Simple1:
35 """UnaryUnary"""
36 pass
37
38 @abc.abstractmethod
39 def UnaryStream(self,
40 request: testproto.test_pb2.Simple1,
41 context: grpc.ServicerContext,
42 ) -> google.protobuf.empty_pb2.Empty:
43 """UnaryStream"""
44 pass
45
46 @abc.abstractmethod
47 def NoComment(self,
48 request: testproto.test_pb2.Simple1,
49 context: grpc.ServicerContext,
50 ) -> google.protobuf.empty_pb2.Empty: ...
51
52
53 def add_SimpleServiceServicer_to_server(servicer: SimpleServiceServicer, server: grpc.Server) -> None: ...