public CompressionType compressionType() {
        return CompressionType.forId(buffer.get(ATTRIBUTES_OFFSET) & COMPRESSION_CODEC_MASK);
    }
The compression type used with this record
clients/src/main/java/org/apache/kafka/common/record/LegacyRecord.java