public int getBytesInt() {
        if (bytes > Integer.MAX_VALUE) {
            throw new RuntimeException("Byte size is too large (must be smaller than 2GB)");
        }
        return (int) bytes;
    }
Parses and formats byte size representations, such as "4MB", "83GB".

<p>This class is deprecated, to be removed in plan. Any plugin should not use it.
embulk-core/src/main/java/org/embulk/spi/unit/ByteSize.java