code: def ParseFromString(self, text, message):
      
      if not isinstance(text, str):
        text = text.decode('utf-8')
      return self.ParseLines(text.split('\n'), message)
docs: Parses a text representation of a protocol message into a message.