def _AddClearMethod(message_descriptor, cls):
 def Clear(self):
  self._fields = {}
  self._unknown_fields = ()
  self._Modified()
 cls.Clear = Clear

def _AddClearMethod ( message_descriptor , cls ) : def Clear ( self ) : self . _fields = { } self . _unknown_fields = ( ) self . _Modified ( ) cls . Clear = Clear
helper for _addmessagemethods() .