(cls, element)
return import_mngr
Gets an import manager instance that corresponds to the class name.

    If the schema does not have a cached import manager, one is created
    and added to the cache.

    Args:
      element: (Schema) or (Api). The element we want to create an import
        manager for.
    Returns:
      The import manager instance for this schema.
Gets an import manager instance that corresponds to the class name.
Gets an import manager instance that corresponds to the class name .
def GetCachedImportManager(cls, element):
    """Gets an import manager instance that corresponds to the class name.

    If the schema does not have a cached import manager, one is created
    and added to the cache.

    Args:
      element: (Schema) or (Api). The element we want to create an import
        manager for.
    Returns:
      The import manager instance for this schema.
    """
    import_mngr = _CLASS_NAME_TO_IMPORT_MANAGER.get(element)
    if not import_mngr:
      # This class does not have an import manager yet. Instantiate it.
      import_mngr = cls(element)
      _CLASS_NAME_TO_IMPORT_MANAGER[element] = import_mngr
    return import_mngr
def GetCachedImportManager ( cls , element ) : import_mngr = _CLASS_NAME_TO_IMPORT_MANAGER . get ( element ) if not import_mngr : # This class does not have an import manager yet. Instantiate it. import_mngr = cls ( element ) _CLASS_NAME_TO_IMPORT_MANAGER [ element ] = import_mngr return import_mngr