private byte[] createPayload(List<SinglePointMetric> emittedMetrics) {
            MetricsData.Builder builder = MetricsData.newBuilder();
            emittedMetrics.forEach(metric -> {
                Metric m = metric.builder().build();
                ResourceMetrics rm = buildMetric(m);
                builder.addResourceMetrics(rm);
            });
            return builder.build().toByteArray();
        }
Updates the {@link #intervalMs}, {@link #lastRequestMs} and {@link #enabled}.
<p>
The contents of the method are guarded by the {@link #lock}.
clients/src/main/java/org/apache/kafka/common/telemetry/internals/ClientTelemetryReporter.java