People are making a crazy amount of assumptions in those threads only to defend Google and dunk on someone who was just fired.
The repo belongs to Google, the organization belongs to Google, the job of the fired dev was to produce code just like the one he was fired for, and there's 56 other repos with similar code in there, a lot of them using the same API.
Yeah, it's pretty telling that comments like the one you replied to are all over this thread, and every time a response like yours is posted, no one seems to have any rebuttal. It's pretty clear that there's plenty of precedent for what this guy did and no legitimate reason to consider it a departure from what he and his coworkers had been doing for a while.
If you only read a condensed summary of what happened, you might be able to come up with a narrative that fits those high-level details that makes the firing seem reasonable. That narrative has no basis in reality though, other than being the theoretically plausible justification they came up with for firing him.