Anyone have a better way to determine if a proto contains one and only one message set in Java? (And no, can't use OneOf yet afaik. because jspb)
Collections.frequency(Arrays.asList(
msg.hasFoo(),
msg.hasBar(),
msg.hasBaz()), Boolean.TRUE) == 1
#googplus
#googplus