parameters: (cls)
docstring: Helper for _AddMessageMethods().
docstring_summary: Helper for _AddMessageMethods().
docstring_tokens: Helper for _AddMessageMethods () .
function: def _AddClearExtensionMethod(cls):
    """Helper for _AddMessageMethods()."""
    def ClearExtension(self, extension_handle):
      _VerifyExtensionHandle(self, extension_handle)
  
      # Similar to ClearField(), above.
      if extension_handle in self._fields:
        del self._fields[extension_handle]
      self._Modified()
    cls.ClearExtension = ClearExtension
function_tokens: def _AddClearExtensionMethod ( cls ) : def ClearExtension ( self , extension_handle ) : _VerifyExtensionHandle ( self , extension_handle ) # Similar to ClearField(), above. if extension_handle in self . _fields : del self . _fields [ extension_handle ] self . _Modified ( ) cls . ClearExtension = ClearExtension