Nobody is restricting Google from doing anything. They are expressing--in a way that is part of, and frankly should be expected of being a member of, one of those "free societies" you mention--that Google is
unwelcome, and no, nobody is obligated to make you feel
welcome. There are cases where not making somebody welcome kinda makes you an asshole, but that does not, frankly, apply to anybody who's got a stock ticker symbol.
This is "you piss in the pool wherever you go, please stay away from our pool." This isn't NIMBY in any meaningful way and the comparison is downright mendacious.