Gosling, who represents the federal Darwin-based seat of Solomon, has been charged with two counts of assault.
The 54-year-old denies the allegations he assaulted NT Administrator David Connolly earlier in July.
He faced the Darwin Local Court on Friday where a number of bail conditions were imposed.
Gosling is banned from going within 50 metres of the NT's Government House building and must give the administrator's office 48 hours notice before attending any event where the two men would be present.
If they are at an event together, Gosling is not to be within 15m of Mr Connolly.
Speaking outside court, Gosling confirmed he had spoken with Prime Minister Anthony Albanese.
"Just being clear that I'm going to contest these allegations and that I will continue to serve," he told reporters.
"I can understand why people are ... asking a lot of questions about how this is rolled out and how it's been handled, but this issue's before the court, so I won't be commenting."
The alleged incident reportedly occurred at the NT Thailand Grand Festival in Darwin on July 18, with Gosling posting photos from the event on social media that day.
Opposition politicians have called on Prime Minister Anthony Albanese to strip Gosling of his role as special envoy for defence, veterans' affairs and northern Australia.
"This is a test of leadership for him," Opposition Leader Angus Taylor said.
"The prime minister needs to step up."
Mr Albanese is on leave, with deputy prime minister Richard Marles acting in his place.
Nationals senator Bridget McKenzie said Gosling should stand aside from the special envoy role until legal proceedings had concluded.
"It's an important part of our democracy of keeping integrity within our Westminster system that the prime minister does do the right thing and stand Mr Gosling aside until his name is cleared or until the matter is dealt with in court," Senator McKenzie told News 24.
Attorney-General Michelle Rowland would not be drawn on whether her colleague should move aside.
"As you can appreciate, because the matter is before the court, I'm limited in what I can say," she told Channel Nine.
"The commentary around this matter needs to be handled very seriously."
NT Labor senator Malarndirri McCarthy told ABC Radio she was upset by the news, as she had found Gosling to be a "very good and decent person".
She said conversations about whether he should step down would need to be between Gosling and the prime minister.
Gosling's case will next be heard in court on September 1.