def ParseFromString(self, text, message):
if not isinstance(text, str):<EOL><INDENT>text = text.decode('<STR_LIT:utf-8>')<EOL><DEDENT>return self.ParseLines(text.split('<STR_LIT:\n>'), message)<EOL>
Parses an text representation of a protocol message into a message.