# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc from . import result0_pb2 as ifs_dot_result0_dot_result0__pb2 class Result0SrvStub(object): # missing associated documentation comment in .proto file pass def __init__(self, channel): """Constructor. Args: channel: A grpc.Channel. """ self.Find = channel.unary_unary( '/ifs.result0.Result0Srv/Find', request_serializer=ifs_dot_result0_dot_result0__pb2.FindResult0Req.SerializeToString, response_deserializer=ifs_dot_result0_dot_result0__pb2.FindResult0Resp.FromString, ) self.Get = channel.unary_unary( '/ifs.result0.Result0Srv/Get', request_serializer=ifs_dot_result0_dot_result0__pb2.GetResult0Req.SerializeToString, response_deserializer=ifs_dot_result0_dot_result0__pb2.GetResult0Resp.FromString, ) self.Read = channel.unary_stream( '/ifs.result0.Result0Srv/Read', request_serializer=ifs_dot_result0_dot_result0__pb2.ReadResult0Req.SerializeToString, response_deserializer=ifs_dot_result0_dot_result0__pb2.ReadResult0Resp.FromString, ) self.Write = channel.stream_unary( '/ifs.result0.Result0Srv/Write', request_serializer=ifs_dot_result0_dot_result0__pb2.WriteResult0Req.SerializeToString, response_deserializer=ifs_dot_result0_dot_result0__pb2.WriteResult0Resp.FromString, ) class Result0SrvServicer(object): # missing associated documentation comment in .proto file pass def Find(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 Get(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 Read(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 Write(self, request_iterator, 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_Result0SrvServicer_to_server(servicer, server): rpc_method_handlers = { 'Find': grpc.unary_unary_rpc_method_handler( servicer.Find, request_deserializer=ifs_dot_result0_dot_result0__pb2.FindResult0Req.FromString, response_serializer=ifs_dot_result0_dot_result0__pb2.FindResult0Resp.SerializeToString, ), 'Get': grpc.unary_unary_rpc_method_handler( servicer.Get, request_deserializer=ifs_dot_result0_dot_result0__pb2.GetResult0Req.FromString, response_serializer=ifs_dot_result0_dot_result0__pb2.GetResult0Resp.SerializeToString, ), 'Read': grpc.unary_stream_rpc_method_handler( servicer.Read, request_deserializer=ifs_dot_result0_dot_result0__pb2.ReadResult0Req.FromString, response_serializer=ifs_dot_result0_dot_result0__pb2.ReadResult0Resp.SerializeToString, ), 'Write': grpc.stream_unary_rpc_method_handler( servicer.Write, request_deserializer=ifs_dot_result0_dot_result0__pb2.WriteResult0Req.FromString, response_serializer=ifs_dot_result0_dot_result0__pb2.WriteResult0Resp.SerializeToString, ), } generic_handler = grpc.method_handlers_generic_handler( 'ifs.result0.Result0Srv', rpc_method_handlers) server.add_generic_rpc_handlers((generic_handler,))