public static PayloadChecksums fromPayload(Payload payload) {
        return new PayloadChecksums()
                .add(new PayloadChecksum(ConfigUtils.getMd5(payload.getData()), MD5))
                .add(new PayloadChecksum(ConfigUtils.getXxhash64(payload.getData()), XXHASH64));
    }
Checksums for config payload, typically 1 for each PayloadChecksum type (md5 and xxhash64).
Initialized with empty checksum for each existing type.

@author hmusum
config/src/main/java/com/yahoo/vespa/config/PayloadChecksums.java