@Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (!(o instanceof ImportResult)) {
      return false;
    }
    ImportResult that = (ImportResult) o;
    return type == that.type &&
        Objects.equals(throwable, that.throwable) &&
        Objects.equals(counts, that.counts) &&
        Objects.equals(bytes, that.bytes);
  }
Creates a shallow copy of the current ImportResult but with the bytes field set to the value
given as an argument
portability-spi-transfer/src/main/java/org/datatransferproject/spi/transfer/provider/ImportResult.java