A federal judge in Texas advised a group of new United States citizens that if they don't like the election of Donald Trump, they are free to leave.

"I can assure you that whether you voted for him or you did not vote for him, if you are a citizen of the United States, he is your president," Federal Magistrate Judge John Primomo said at the citizenship ceremony in San Antonio. "He will be your president and if you do not like that, you need to go to another country."

Primomo, who said he didn't vote for President-elect Trump, later told a local TV station that he intended the message to be one of unification. He also criticized protesters who declare that Trump isn't their president and said he "detests" NFL players taking a knee during the national anthem.

"You can protest things that happen in this country; you have every right to. [But] you don't do that by offending national symbols like the national anthem and the flag of the United States," he said.

The ceremony was also marked by positive messages from those who had just become Americans.

"The essence of Americans is that you have the right to vote and choose who you want to represent you,” said a man who came to the U.S. legally from Mexico.

Watch the report from KENS-TV above.

'You're All Hypocrites!': Judge Jeanine Tears Into 'Hamilton' Cast

Jon Stewart's First Post-Election Comments May Surprise You

Gutfeld Rips 'Emotional Arsonists' for Post-Election Fear Mongering

Sessions' Former Counsel Rejects Charges of Racism Against Trump's AG Pick