def _to_base_type(self, msg):
ent = _message_to_entity(msg, self._modelclass)<EOL>ent.blob_ = self._protocol_impl.encode_message(msg)<EOL>return ent<EOL>
Convert a Message value to a Model instance (entity).