@Override
    public int hashCode() {
        int result = protocol != null ? protocol.hashCode() : 0;
        result = 31 * result + (hops != null ? hops.hashCode() : 0);
        result = 31 * result + (routes != null ? routes.hashCode() : 0);
        result = 31 * result + (verify ? 1 : 0);
        return result;
    }
Appends the content of this to the given config string builder.

@param cfg    The config to add to.
@param prefix The prefix to use for each add.
messagebus/src/main/java/com/yahoo/messagebus/routing/RoutingTableSpec.java