public S setMock(boolean mock) {
        this.mock = mock;
        return castThis();
    }
Sets compress.

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