Added isRequired and isValid methods to ProtoBase.