|
| 1 | +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! |
| 2 | +"""Client and server classes corresponding to protobuf-defined services.""" |
| 3 | +import grpc |
| 4 | + |
| 5 | +from kikimr.public.api.grpc.draft import dummy_pb2 as kikimr_dot_public_dot_api_dot_grpc_dot_draft_dot_dummy__pb2 |
| 6 | + |
| 7 | + |
| 8 | +class DummyServiceStub(object): |
| 9 | + """Missing associated documentation comment in .proto file.""" |
| 10 | + |
| 11 | + def __init__(self, channel): |
| 12 | + """Constructor. |
| 13 | +
|
| 14 | + Args: |
| 15 | + channel: A grpc.Channel. |
| 16 | + """ |
| 17 | + self.Ping = channel.unary_unary( |
| 18 | + '/Draft.Dummy.DummyService/Ping', |
| 19 | + request_serializer=kikimr_dot_public_dot_api_dot_grpc_dot_draft_dot_dummy__pb2.PingRequest.SerializeToString, |
| 20 | + response_deserializer=kikimr_dot_public_dot_api_dot_grpc_dot_draft_dot_dummy__pb2.PingResponse.FromString, |
| 21 | + ) |
| 22 | + self.Infinite = channel.unary_unary( |
| 23 | + '/Draft.Dummy.DummyService/Infinite', |
| 24 | + request_serializer=kikimr_dot_public_dot_api_dot_grpc_dot_draft_dot_dummy__pb2.InfiniteRequest.SerializeToString, |
| 25 | + response_deserializer=kikimr_dot_public_dot_api_dot_grpc_dot_draft_dot_dummy__pb2.InfiniteResponse.FromString, |
| 26 | + ) |
| 27 | + self.BiStreamPing = channel.stream_stream( |
| 28 | + '/Draft.Dummy.DummyService/BiStreamPing', |
| 29 | + request_serializer=kikimr_dot_public_dot_api_dot_grpc_dot_draft_dot_dummy__pb2.PingRequest.SerializeToString, |
| 30 | + response_deserializer=kikimr_dot_public_dot_api_dot_grpc_dot_draft_dot_dummy__pb2.PingResponse.FromString, |
| 31 | + ) |
| 32 | + |
| 33 | + |
| 34 | +class DummyServiceServicer(object): |
| 35 | + """Missing associated documentation comment in .proto file.""" |
| 36 | + |
| 37 | + def Ping(self, request, context): |
| 38 | + """Missing associated documentation comment in .proto file.""" |
| 39 | + context.set_code(grpc.StatusCode.UNIMPLEMENTED) |
| 40 | + context.set_details('Method not implemented!') |
| 41 | + raise NotImplementedError('Method not implemented!') |
| 42 | + |
| 43 | + def Infinite(self, request, context): |
| 44 | + """Missing associated documentation comment in .proto file.""" |
| 45 | + context.set_code(grpc.StatusCode.UNIMPLEMENTED) |
| 46 | + context.set_details('Method not implemented!') |
| 47 | + raise NotImplementedError('Method not implemented!') |
| 48 | + |
| 49 | + def BiStreamPing(self, request_iterator, context): |
| 50 | + """Missing associated documentation comment in .proto file.""" |
| 51 | + context.set_code(grpc.StatusCode.UNIMPLEMENTED) |
| 52 | + context.set_details('Method not implemented!') |
| 53 | + raise NotImplementedError('Method not implemented!') |
| 54 | + |
| 55 | + |
| 56 | +def add_DummyServiceServicer_to_server(servicer, server): |
| 57 | + rpc_method_handlers = { |
| 58 | + 'Ping': grpc.unary_unary_rpc_method_handler( |
| 59 | + servicer.Ping, |
| 60 | + request_deserializer=kikimr_dot_public_dot_api_dot_grpc_dot_draft_dot_dummy__pb2.PingRequest.FromString, |
| 61 | + response_serializer=kikimr_dot_public_dot_api_dot_grpc_dot_draft_dot_dummy__pb2.PingResponse.SerializeToString, |
| 62 | + ), |
| 63 | + 'Infinite': grpc.unary_unary_rpc_method_handler( |
| 64 | + servicer.Infinite, |
| 65 | + request_deserializer=kikimr_dot_public_dot_api_dot_grpc_dot_draft_dot_dummy__pb2.InfiniteRequest.FromString, |
| 66 | + response_serializer=kikimr_dot_public_dot_api_dot_grpc_dot_draft_dot_dummy__pb2.InfiniteResponse.SerializeToString, |
| 67 | + ), |
| 68 | + 'BiStreamPing': grpc.stream_stream_rpc_method_handler( |
| 69 | + servicer.BiStreamPing, |
| 70 | + request_deserializer=kikimr_dot_public_dot_api_dot_grpc_dot_draft_dot_dummy__pb2.PingRequest.FromString, |
| 71 | + response_serializer=kikimr_dot_public_dot_api_dot_grpc_dot_draft_dot_dummy__pb2.PingResponse.SerializeToString, |
| 72 | + ), |
| 73 | + } |
| 74 | + generic_handler = grpc.method_handlers_generic_handler( |
| 75 | + 'Draft.Dummy.DummyService', rpc_method_handlers) |
| 76 | + server.add_generic_rpc_handlers((generic_handler,)) |
| 77 | + |
| 78 | + |
| 79 | + # This class is part of an EXPERIMENTAL API. |
| 80 | +class DummyService(object): |
| 81 | + """Missing associated documentation comment in .proto file.""" |
| 82 | + |
| 83 | + @staticmethod |
| 84 | + def Ping(request, |
| 85 | + target, |
| 86 | + options=(), |
| 87 | + channel_credentials=None, |
| 88 | + call_credentials=None, |
| 89 | + insecure=False, |
| 90 | + compression=None, |
| 91 | + wait_for_ready=None, |
| 92 | + timeout=None, |
| 93 | + metadata=None): |
| 94 | + return grpc.experimental.unary_unary(request, target, '/Draft.Dummy.DummyService/Ping', |
| 95 | + kikimr_dot_public_dot_api_dot_grpc_dot_draft_dot_dummy__pb2.PingRequest.SerializeToString, |
| 96 | + kikimr_dot_public_dot_api_dot_grpc_dot_draft_dot_dummy__pb2.PingResponse.FromString, |
| 97 | + options, channel_credentials, |
| 98 | + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) |
| 99 | + |
| 100 | + @staticmethod |
| 101 | + def Infinite(request, |
| 102 | + target, |
| 103 | + options=(), |
| 104 | + channel_credentials=None, |
| 105 | + call_credentials=None, |
| 106 | + insecure=False, |
| 107 | + compression=None, |
| 108 | + wait_for_ready=None, |
| 109 | + timeout=None, |
| 110 | + metadata=None): |
| 111 | + return grpc.experimental.unary_unary(request, target, '/Draft.Dummy.DummyService/Infinite', |
| 112 | + kikimr_dot_public_dot_api_dot_grpc_dot_draft_dot_dummy__pb2.InfiniteRequest.SerializeToString, |
| 113 | + kikimr_dot_public_dot_api_dot_grpc_dot_draft_dot_dummy__pb2.InfiniteResponse.FromString, |
| 114 | + options, channel_credentials, |
| 115 | + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) |
| 116 | + |
| 117 | + @staticmethod |
| 118 | + def BiStreamPing(request_iterator, |
| 119 | + target, |
| 120 | + options=(), |
| 121 | + channel_credentials=None, |
| 122 | + call_credentials=None, |
| 123 | + insecure=False, |
| 124 | + compression=None, |
| 125 | + wait_for_ready=None, |
| 126 | + timeout=None, |
| 127 | + metadata=None): |
| 128 | + return grpc.experimental.stream_stream(request_iterator, target, '/Draft.Dummy.DummyService/BiStreamPing', |
| 129 | + kikimr_dot_public_dot_api_dot_grpc_dot_draft_dot_dummy__pb2.PingRequest.SerializeToString, |
| 130 | + kikimr_dot_public_dot_api_dot_grpc_dot_draft_dot_dummy__pb2.PingResponse.FromString, |
| 131 | + options, channel_credentials, |
| 132 | + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) |
0 commit comments