in that case gozaimasu is used as"desu"
and it is also another form of "aru"
"gozaimasu" is used with HUMILITY
some japanese uses it to show their politeness,and in wrong ways:(
for example, "nanika syumi wa gozaimasuka?(do you have some hobbies?)" is WRONG
u must use "oaridesuka?" instead of it :)
And "irassyaru" instead of gozaimasu that means"desu",when you want to express your politeness