Can you explain why you need this type?
Aren't those used from different separate tests?
Wouldn't it be enough with one temporaryServerAddresses variant for tcp and one for udp?