public static JpsRemoteProto.Message.UUID toProtoUUID(UUID requestId) { return JpsRemoteProto.Message.UUID .newBuilder() .setMostSigBits(requestId.getMostSignificantBits()) .setLeastSigBits(requestId.getLeastSignificantBits()) .build(); }
public static UUID fromProtoUUID(JpsRemoteProto.Message.UUID uuid) { return new UUID(uuid.getMostSigBits(), uuid.getLeastSigBits()); }