If you have problems with people naming Google together with the likes of Apple and Microsoft in terms of data sharing with the NSA, perhaps you should reconsider your choices regarding your employer.
To be clear, I’m quite neutral towards Google, but I don’t think you have any right to be offended by OP’s comment.
If the inmates built the prison and moonlit as prison guards, yes. The unfortunate truth is that Google has built the modern surveillance state’s technical apparatus.
Yes, they have at times pushed back. But many may not see that enough.
They designed all their systems for commercial surveillance (to sell ads), knowing full well they would hand the data over to surveillance agencies.
What would be better for them?
But I'm not sure I really agree. At this point "bedfellows" seems like an apt description, given how feeble and ineffective their opposition (certainly publicly, anyway) to it seems to have been.
It's a metaphor, following the example of "bedfellows", which doesn't mean they are literally in bed together.
Inmates and busineses alike are required to obey the government under threat of force.