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