Initialize with schema enum, and data in byte array or NSData.