

package org.apache.skywalking.oap.server.core.query.enumeration;

public enum Language {
    UNKNOWN, JAVA, DOTNET, NODEJS, PYTHON, RUBY, GO, LUA, PHP;

    public static Language value(String language) {
        switch (language) {
            case "java":
                return Language.JAVA;
            case ".net":
                return Language.DOTNET;
            case "nodejs":
                return Language.NODEJS;
            case "python":
                return Language.PYTHON;
            case "ruby":
                return Language.RUBY;
            case "go":
                return Language.GO;
            case "lua":
                return Language.LUA;
            case "php":
                return Language.PHP;
            default:
                return Language.UNKNOWN;
        }
    }
}
