Google’s cloud unit has been among its fastest-growing businesses, but it’s not immune from the companywide job cuts.