public static UUID convert(Messages.UUID uuid) { return new UUID(uuid.getMostSignificantBits(), uuid.getLeastSignificantBits()); }
public static Messages.UUID convert(UUID uuid) { Messages.UUID.Builder builder = Messages.UUID.newBuilder(); builder.setLeastSignificantBits(uuid.getLeastSignificantBits()); builder.setMostSignificantBits(uuid.getMostSignificantBits()); return builder.build(); }