def _AddUnicodeMethod(unused_message_descriptor, cls):
def __unicode__(self):<EOL><INDENT>return text_format.MessageToString(self, as_utf8=True).decode('<STR_LIT:utf-8>')<EOL><DEDENT>cls.__unicode__ = __unicode__<EOL>
Helper for _AddMessageMethods().