="java"><span class="line"><span class="cl"><span class="c1">// Create producer with Struct schema and send messages</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w"></span><span class="n">Producer</span><span class="o">&lt;</span><span class="n">User</span><span class="o">&gt;</span><span class="w"> </span><span class="n">producer</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">client</span><span class="p">.</span>