@Override
 public byte[] encode(MarketUpdate message) throws IOException {
   return message.toByteArray();
 }
 @Override
 public MarketUpdate decode(byte[] bytes) throws IOException {
   return MarketUpdate.parseFrom(bytes);
 }