public Builder setNodeId(int nodeId) {
            this.nodeId = nodeId;
            return this;
        }
A metadata publisher that generates snapshots when appropriate.
metadata/src/main/java/org/apache/kafka/image/publisher/SnapshotGenerator.java