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