fix NMS-6245: persist protocol for linkd discovery

Added string annotation to enumeration getProtocol