https://github.com/apache/dubbo/blob/532ce72f8377abf8ff659430b86e0919c9aff562/dubbo-config/dubbo-config-api/src/main/java/org/apache/dubbo/config/ServiceConfig.java#L240-L248 

What ever user use `instance` service discovery or `interface` service discovery, we also publish service name mapping info. 
But service name mapping need metadata report dependency, so if some one just use `interface` service discovery, the user still need need metadata report dependency.

Here we add a judgement, check current service config use `instance` service discovery or not, to judge publish service name mapping or not.

/**
     * Default timeout value in milliseconds for server shutdown
     */
    int DEFAULT_SERVER_SHUTDOWN_TIMEOUT = 10000;
    String SIDE_KEY = "side";
    String PROVIDER_SIDE = "provider";
    String CONSUMER_SIDE = "consumer";
    String ANYHOST_KEY = "anyhost";
    String ANYHOST_VALUE = "0.0.0.0";
    String LOCALHOST_KEY = "localhost";
    String LOCALHOST_VALUE = "127.0.0.1";
    String METHODS_KEY = "methods";
    String METHOD_KEY = "method";
    String PID_KEY = "pid";
    String TIMESTAMP_KEY = "timestamp";
    String GROUP_KEY = "group";
    String PATH_KEY = "path";
    String INTERFACE_KEY = "interface";
    String FILE_KEY = "file";
    String DUMP_DIRECTORY = "dump.directory";
    String CLASSIFIER_KEY = "classifier";
    String VERSION_KEY = "version";
    String REVISION_KEY = "revision";
    String METADATA_KEY = "metadata-type";
    String CONFIG_MAPPING_TYPE = "config";
    String METADATA_MAPPING_TYPE = "metadata";
    String DEFAULT_METADATA_STORAGE_TYPE = "local";
    String REMOTE_METADATA_STORAGE_TYPE = "remote";
    String GENERIC_KEY = "generic";
    /**