public ProviderInfo setWeight(int weight) {
        this.weight = weight;
        return this;
    }
Gets sofa version.

@return the sofa version
core/api/src/main/java/com/alipay/sofa/rpc/client/ProviderInfo.java