(message_descriptor, cls)
Helper for _AddMessageMethods().
Helper for _AddMessageMethods().
Helper for _AddMessageMethods () .
def _AddStrMethod(message_descriptor, cls):
  """Helper for _AddMessageMethods()."""
  def __str__(self):
    return text_format.MessageToString(self)
  cls.__str__ = __str__
def _AddStrMethod ( message_descriptor , cls ) : def __str__ ( self ) : return text_format . MessageToString ( self ) cls . __str__ = __str__