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