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