The layoffs at Google follow similarly huge cuts at Microsoft, Amazon and Salesforce. Tech companies who hired rapidly during the pandemic now face fears of recession.