Google is very “Chinese Revolution” on the inside. You can totally have negative career and social consequences for being public at work about your conservative viewpoints and voting preferences. At the same time you can have positive consequences for signaling virtue to liberals. You could say “that’s not Google” doing this, but the thing is, Google totally supports, condones, and encourages this behavior.
But those are internal affairs, so you might argue this is irrelevant. But recently this attitude slipped outside with YouTube demonetization of conservative commentators, forced de-trending of popular conservative videos and forced trending of liberal ones?
If you want to play this ball, expect defense to get involved.