| # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! |
| import grpc |
| |
| import poc_pb2 as poc__pb2 |
| |
| |
| class NotebookStub(object): |
| # missing associated documentation comment in .proto file |
| pass |
| |
| def __init__(self, channel): |
| """Constructor. |
| |
| Args: |
| channel: A grpc.Channel. |
| """ |
| self.StartNotebook = channel.unary_stream( |
| '/poc.Notebook/StartNotebook', |
| request_serializer=poc__pb2.Params.SerializeToString, |
| response_deserializer=poc__pb2.Logs.FromString, |
| ) |
| |
| |
| class NotebookServicer(object): |
| # missing associated documentation comment in .proto file |
| pass |
| |
| def StartNotebook(self, request, context): |
| # missing associated documentation comment in .proto file |
| pass |
| context.set_code(grpc.StatusCode.UNIMPLEMENTED) |
| context.set_details('Method not implemented!') |
| raise NotImplementedError('Method not implemented!') |
| |
| |
| def add_NotebookServicer_to_server(servicer, server): |
| rpc_method_handlers = { |
| 'StartNotebook': grpc.unary_stream_rpc_method_handler( |
| servicer.StartNotebook, |
| request_deserializer=poc__pb2.Params.FromString, |
| response_serializer=poc__pb2.Logs.SerializeToString, |
| ), |
| } |
| generic_handler = grpc.method_handlers_generic_handler( |
| 'poc.Notebook', rpc_method_handlers) |
| server.add_generic_rpc_handlers((generic_handler,)) |