title: Protocol buffer objects generated at runtime
body: <p>a colleague of mine came with an idea of generating protocol buffers classes at runtime. Meaning:</p>
  
  <ul>
  <li>There is C++ server application and Java client application communicating over TCP/IP via protocol buffers messages.</li>
  <li>The C++ application may have different schema in different versions and this is not necessarily backward compatible</li>
  <li>There is Java application communicating with this server which should support all possible server versions.</li>
  </ul>
  
  <p>The idea is that the server sends the protocol buffer's definition as part of the initial handshake and the java application generates the class at runtime and use it for communication with the server.</p>
  
  <p>I wonder whether this is even vital idea and if there is possibly some utility for such use case.</p>
  
  <p>Thanks</p>