Democratic attorney general candidate Letitia James on Tuesday was endorsed by the New York State AFL-CIO as she faces a four-way primary for the party’s nomination.

“As the Public Advocate for the City of New York, Tish James stood up for all New Yorkers,” said AFL-CIO President Mario Cilento. “She will bring that same passion statewide as our Attorney General to protect New Yorkers against the onslaught of attacks by those in Washington set out to destroy the middle class.”

The endorsement from the labor group is the capstone to the series of establishment nods James, the New York City public advocate, has received in the campaign. The AFL-CIO has endorsed Gov. Andrew Cuomo this year after sitting out the gubernatorial race in 2014; Cuomo is backing James in the attorney general race.

“For generations, the NYS AFL-CIO has led the fight for social and economic justice for millions of New Yorkers and I am honored to earn their support. As the next Attorney General, I will continue to work hand in hand with the members of the NYS AFL-CIO to ensure they have the fair wages, safe work conditions, and support they need,” James said. “I’ll never waver in my commitment to protecting the hardworking men and women of New York and will never shy away from challenging Donald Trump or any force that tries to roll back workers’ rights.”

James faces Leecia Eve, Rep. Sean Patrick Maloney and Zephyr Teachout in the Sept. 13 primary. The winner faces Republican Keith Wofford in the November general election.