@Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Payload other = (Payload) o;
        return this.compressionInfo.equals(other.compressionInfo) && this.data.equals(other.data);
    }
Returns a copy of this payload where the data is compressed using the given compression
config/src/main/java/com/yahoo/vespa/config/protocol/Payload.java