Modify ProtocolBuffersSerialize