I will preface this by saying I have never worked at google and have not seen their employment contract so perhaps they've found a way around it but from what I understand, California has well established laws in place protecting moonlighting. As long as you aren't coding up a search engine or something that directly competes with the company, you should be ok.