@Override
    public boolean equals(final Object o) {
        if (this == o) {
            return true;
        }
        if (!(o instanceof DubboUpstream)) {
            return false;
        }
        DubboUpstream that = (DubboUpstream) o;
        return port == that.port
                && Objects.equals(registry, that.registry)
                && Objects.equals(appName, that.appName)
                && Objects.equals(this.getProtocol(), that.getProtocol())
                && Objects.equals(this.getUpstreamUrl(), that.getUpstreamUrl())
                && Objects.equals(this.isGray(), that.isGray())
                && Objects.equals(group, that.group)
                && Objects.equals(version, that.version);
    }
Sets the version.

@param version version
shenyu-common/src/main/java/org/apache/shenyu/common/dto/convert/selector/DubboUpstream.java