I'm sorry, but that isn't correct. California employment law is the most liberal around when it comes to protecting an employees right to perform works on their own time. As long as you don't build a competing search engine, write a competitor to Google mail, etc you're fine. In fact, even if you did, it is likely that Google won't care and won't sue, because the law leans towards the employee in this case.