def Greet(self, request, context):
    try:
        name = (request.name if request.name else None)
        with_error = request.withError
        logger.info(f'Received Greet request with name={name} and withError={with_error}')
        reply = f'Hello {name}!!'
        return service_messages.GreetResult(reply=reply)
    except Exception as e:
        (code, details) = GrpcExceptionHandler.toGrpcError(e)
        context.set_code(code)
        context.set_details(details)
        return service_messages.GreetResult()
def Greet(self, request, context):
    try:
        name = (request.name if request.name else None)
        with_error = request.withError
        logger.info(f'Received Greet request with name={name} and withError={with_error}')
        reply = f'Hello {name}!!'
        return service_messages.GreetResult(reply=reply)
    except Exception as e:
        (code, details) = GrpcExceptionHandler.toGrpcError(e)
        context.set_code(code)
        context.set_details(details)
        return service_messages.GreetResult()