# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc from proto import ocr_pb2 as proto_dot_ocr__pb2 class OcrStub(object): """Missing associated documentation comment in .proto file""" def __init__(self, channel): """Constructor. Args: channel: A grpc.Channel. """ self.Ocr = channel.unary_unary( '/proto.Ocr/Ocr', request_serializer=proto_dot_ocr__pb2.OcrRequest.SerializeToString, response_deserializer=proto_dot_ocr__pb2.OcrResponse.FromString, ) class OcrServicer(object): """Missing associated documentation comment in .proto file""" def Ocr(self, request, context): """Missing associated documentation comment in .proto file""" context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') def add_OcrServicer_to_server(servicer, server): rpc_method_handlers = { 'Ocr': grpc.unary_unary_rpc_method_handler( servicer.Ocr, request_deserializer=proto_dot_ocr__pb2.OcrRequest.FromString, response_serializer=proto_dot_ocr__pb2.OcrResponse.SerializeToString, ), } generic_handler = grpc.method_handlers_generic_handler( 'proto.Ocr', rpc_method_handlers) server.add_generic_rpc_handlers((generic_handler,)) # This class is part of an EXPERIMENTAL API. class Ocr(object): """Missing associated documentation comment in .proto file""" @staticmethod def Ocr(request, target, options=(), channel_credentials=None, call_credentials=None, compression=None, wait_for_ready=None, timeout=None, metadata=None): return grpc.experimental.unary_unary(request, target, '/proto.Ocr/Ocr', proto_dot_ocr__pb2.OcrRequest.SerializeToString, proto_dot_ocr__pb2.OcrResponse.FromString, options, channel_credentials, call_credentials, compression, wait_for_ready, timeout, metadata)