Ted Cruz and John Kasich have a message for Donald J. Trump: They don’t care if they are not invited to speak at his convention.

As Mr. Trump tries to plan a convention that will run as smoothly as possible, he said in an interview with The New York Times last week that he would not invite either Mr. Cruz or Mr. Kasich, both former rivals for the Republican presidential nomination, to speak at the Republican National Convention in Cleveland unless they endorsed him.

That is fine, both said on Monday. A spokeswoman for Mr. Cruz, Catherine Frazier, said the Texas senator did not have any expectation about receiving a speaking slot. A spokesman for Mr. Kasich, the governor of Ohio, was similarly indifferent.

“We have not sought nor are we expecting a speaking slot at the convention,” said the spokesman, Chris Schrimpf.