Employees at Google (and many other tech companies) are often privy to what would be considered "inside information" about the company's future plans and performance. Making statements about the stock price's relative valuation can be seen as a form of making tips based on that material non-public information. It's not a good idea to go around making statements (positive or negative) about the current valuation.
So is there a specific policy in writing regarding what you can and can't say? The issue certainly isn't revealing non-public information of a specific nature which is fairly obvious to keep under wraps.
I believe what matters is the amount of specificity. For example you can't say "Our earnings will be up this quarter so buy the stock". But you could say "I think we are doing well so I am buying the stock". Salesman, selling a product for a company, say, airplanes for Boeing are definitely able to make general sales like statements that could or could not be interpreted as a stock buying signal.
Generally, the employee handbook of any public company will explicitly forbid employees from making statements that connect to either future performance or other major non-public info such as products or hiring. (If for no other reason than to protect the company itself from accusations that it's letting its people "pump" it's stock.)
I don't know of anything in particular that would prevent an employee of a company from posting a comment here or in a blog reply anywhere simply saying they thought it was a good idea to buy the stock that would warrant any action.
But lets say (since I don't have time to fully research this I'm basing my answer on many years in business and dealing with the Federal Government, lawyers etc.) that there is some law that makes this "illegal". The chance of the federal government, SEC or anybody caring about a comment like this is nil.