Irn-Bru maker AG Barr has said it will continue to defend its trademarks after a competitor failed in a court battle to annex the name of its flagship brand.