The full lawsuit can be read here:
https://www.scribd.com/document/368692388/James-Damore-LawsuitIt's even worse than I thought. The suit alleges that Google even awarded peer bonuses to employees who disagreed and disparaged Damore.
There is also more info about the Guderman part of the story:
On November 9, 2016, a few days after President Trump was elected as President, Sarmad Gilani (“Gilani”), a Google employee, posted the following message on a Dory thread (an internal forum where Google employees can ask questions that other Google employees can respond to): “As someone already targeted by the FBI (including at work) for being a Muslim, I’m worried for my personal safety and liberty. Will Google take a public stand to defend minorities and use its influence, or just issue the usual politically nuanced statements about our values.” 96.
Gudeman responded skeptically to Gilani’s claim that he was targeted solely due to his religion by asking, “In the administration of the most pro-Muslim president in history you were targeted just for being a Muslim? Why didn’t you file a civil rights suit? The Justice Department would take your side if it really happened.” 97.
Other Google employees immediately misinterpreted Gudeman’s post and responded by stating:
“‘If it really happened’? Come on David, let’s give our coworkers the benefit of the doubt here and not suggest they’re lying.”
“‘Pics or it didn’t happen’ isn’t a very constructive comment here.”
“Reminds me of that ‘why you didn’t report sexual harassment to the police?’ argument. Pfff.”
Gudeman attempted to explain that he was not suggesting that Gilani was lying, and affirmatively stated that he “would not suggest [Gilani] was lying without specific knowledge of the case.”
Gudeman further stated that at the suggestion of another Googler, he searched Gilani’s story of being profiled, and found “zero evidence for the claim that [Gilani] was targeted just for being a Muslim.” Gudeman posed more questions about the FBI’s motives for looking into Gilani such as the fact that Gilani had recently visited Pakistan, and that the FBI could have possibly found something interesting about Gilani’s trip or the region that he visited. 100.
In response to Gudeman’s legitimate questions, a fellow Google employee became hostile and stated that she had to escalate this thread, meaning that she reported it to Google HR
So obviously this is way more complicated than "he said I'm a terrorist because I'm Muslim".