public static DisconnectReason forNumber(int value) {
        return switch (value) {
            case 0 -> UNKNOWN_REASON;
            case 1 -> CLIENT_INITIATED;
            case 2 -> DUPLICATE_IDENTITY;
            case 3 -> SERVER_SHUTDOWN;
            case 4 -> PARTICIPANT_REMOVED;
            case 5 -> ROOM_DELETED;
            case 6 -> STATE_MISMATCH;
            case 7 -> JOIN_FAILURE;
            case 8 -> MIGRATION;
            case 9 -> SIGNAL_CLOSE;
            default -> null;
        };
    }
@param value The numeric wire value of the corresponding enum entry.
@return The enum associated with the given numeric wire value.
turms-plugins/turms-plugin-livekit/src/main/java/im/turms/plugin/livekit/core/proto/models/DisconnectReason.java