(unused_message_descriptor, cls)
Helper for _AddMessageMethods().
Helper for _AddMessageMethods().
Helper for _AddMessageMethods () .
def _AddUnicodeMethod(unused_message_descriptor, cls):
  """Helper for _AddMessageMethods()."""

  def __unicode__(self):
    return text_format.MessageToString(self, as_utf8=True).decode('utf-8')
  cls.__unicode__ = __unicode__
def _AddUnicodeMethod ( unused_message_descriptor , cls ) : def __unicode__ ( self ) : return text_format . MessageToString ( self , as_utf8 = True ) . decode ( 'utf-8' ) cls . __unicode__ = __unicode__