Implemented remaining message field methods and fixed build errors.