public int numFields() {
        return fields.size();
    }
The RawTaggedFieldWriter is used by Message subclasses to serialize their
lists of raw tags.
clients/src/main/java/org/apache/kafka/common/protocol/types/RawTaggedFieldWriter.java