parameters: (message_descriptor, cls)
docstring: Helper for _AddMessageMethods().
docstring_summary: Helper for _AddMessageMethods().
docstring_tokens: Helper for _AddMessageMethods () .
function: def _AddClearMethod(message_descriptor, cls):
    """Helper for _AddMessageMethods()."""
    def Clear(self):
      # Clear fields.
      self._fields = {}
      self._Modified()
    cls.Clear = Clear
function_tokens: def _AddClearMethod ( message_descriptor , cls ) : def Clear ( self ) : # Clear fields. self . _fields = { } self . _Modified ( ) cls . Clear = Clear