public S setMethods(Map<String, MethodConfig> methods) {
        this.methods = methods;
        return castThis();
    }
Sets register.

@param register the register
@return the register
core/api/src/main/java/com/alipay/sofa/rpc/config/AbstractInterfaceConfig.java