The parent company of Google, which employs thousands of local workers, plans to lay off 12,000 jobs.