What they said.
Also, you have to define longevity, a VW diesel, as is part of it's charm, can continue to be a useful tool long after it's pretty well "worn out".
Keep dumping oil in it, keep managing to get it started if it gets cold where you live, keep timing belts intact, and it'll run for ages.
Eventually they will have a "runaway" but even that can be mitigated to a degree with a few methods.
A better question might be how long do they last till they are annoying and/or embarrassing to live with on a daily bases.
To that I'd say, a very loose average given proper maintenance and habit from new, 350K give or take 50K.
With a headgasket somewhere in there and every other sort of maintenance procedure you can think of a time or two.
I also am strongly suspect of "rebuilt" motors, and completely due to the tolerances of the machine work and quality of the replacement parts,
not the builders ability so much. A virgin motor in good order to me is something to be cherished and cared for still, or even more so, than in the past.