summaryrefslogblamecommitdiffstats
path: root/Dozentenmodulserver/src/server/Server.java
blob: 18362ab7ed7f74bfc22c88a83078c3894e165024 (plain) (tree)
1
2
3
4
5
6
7
8
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135






                                                                   
 


                                               
 
                                            

















                                                            










                                                                               











                                                                                                                                                                                                                                                                                     

                                                                                  
                                                                                                                    
 


                                                                                                                                                                                      
 



                               



                                                                                                                                          
                                                                                                                                           
 
                                                                                                                                                                                                                                                                                               
 
                                                                                                                            
 
                                                                                                                        
 
                                                                                                                                                              
 
                                                                                                                                                                                                                                                                                                                                             
 
                                                                                                                                          
 
                                                                                                                                                                 
 


                                                                                                                                                                                                                                              



































































                                                                                                                                                        






























































































































































                                                                                                                                                                                                                                                                                      






















                                                                                                                                                        
                                                                                                                   
     
                                               


                                 
                                                                                                          

                                                       

                                         












                                                                                                                                                       
                                                                                                                                                                                     
     
                                                                                    


                                    
                                                                                                                                                                                       







                                                             

                               












                                                                                                                                                          






















                                                                                                                                                         

















                                                                                                                                                                                                             
                                                                                                                           





                                                                                                               

                                                                                                                                                                                                                                                                                                    



















                                                                                                                                                            
                                                                                                                                           





                                                                                                                           
                                                                                             
                          
                                                                                                                                                                                                                                                                                                                    





















                                                                                                                                                            
                                                                                                                                            





                                                                                                                             
                                                                                              
                          
                                                                                                                                                                                                                                                                                                                     




























                                                                                                                                                                                                                                                                                                
                                                                                           










                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                         









































                                                                                                                                                            
                                                                                                                             





                                                                                                                   

                                                                                                                                                                                                                                                                                                      



















                                                                                                                                                            
                                                                                                                         


































































































































                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       































                                                                                                                                                                                                                                                                                                                    
                                                                                                                                                                  
                   
                                                                                                                                          




                                                                                            


                                                                                                                                                                                                                                                                                                                                           
                                                                        

                                         




                                                                                                                                         

                                           













                                                                                                                                                            
                                                                                                                                                                                                                                               
                   
                                                                                                                                                                                  










                                                                                               


                                                                                                                                                                                                                                                                                                                                                                                                                        






                                                                        

                               










                                                                                                                                            

                                 













                                                                                                                                                            































                                                                                                                                                                                                                                                                                                                            














                                                                                                                                                                                                                                              





                                                                 


                                                               
                                                             











































                                                                                                                         

























































































































                                                                                                                                                                                                                                  



































                                                                                                                         
                                                                             


















                                                                                                                             
                                                                                                                                                




                                     



















                                                                                                                           














                                                                                                                                                                                                                                                                  





                                                                 


                                                               
                                                             









































































































                                                                                                                                                                 



















































































































































































































































































































                                                                                                                                                                                                                               



                                                                                                                                            
 


                                                        
 
































                                                                                                                                                                 
 


                                    
 



                                                                                                                                                 
 



                                                                                                                                                     
 

                                                       

       





































                                                                                                                                                                 
                                                                          


















































                                                                                                                                                                 



















































                                                                                                                                                                 































                                                                                                                                                                                    





































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































                                                                                                                                                                                                        

                                                                                                                                                                                                    
 
                                                                                                                                                                               


                                                                                                                                       

                                                                                        

     
                                   


                                                                                                                    
                              













                                                                                        

                          





































                                                                                                       

                           


                                                                                                                                                      

                                                                                                                                      
                                                        
                                                                                                             

     







                                  




                                            



                                                           

     

                                           



                         
























                                                                                            



                                                            







                                 




                                                


                         










                                                                                                                

                           







                                        

                                                      


                   
                                                     


                       









                                                           







                           
                                                     





                                                                          









                                                                                        
















                                                                                                       
                                                                   

                           






                              
























                                                                                                                        


                                                                                            


       
                                                                                                        
 
                                                                                                                                    








                                                                           







                                                                                       










                                                                                                     
                                                                                                                                     


                                            




                                                 





                               


                                                                                         


       
                                                                                                  

               
                                                                                                                                    
                                                     







                                         


               
                                                                                                                                   
                                                     




                                              




       

                                                                                                                                                                                                            
 
                                                                                                                                                                                    


                                                                                                                                       

                                                                                          

     
                                      































































                                                                                                                                                      
                                                                                                        
                                                        
                                                                                                               

     
                                    

     

                                 







                                            
                                                               
                                 
                                     


       

                                             






                          
                                


                          
                                                             
























                                                                                               
                                    































                                                                                                                

                                                        


                   
                                                       




















                                                                 
                                                       
































                                                                                                       
                                                                     

































                                                                                                                        


                                                                                              


       
                                                                                                            
 
                                                                                                                                      









                                                                           

                                                                                















                                                                                                     
                                                                                                                                       




                                                    
                                            







                                


                                                                                           


       
                                                                                                      

               
                                                                                                                                      






                                                     
                                            



               
                                                                                                                                     


                                                     
                                              






                                       

                                                                                                                                                                                        
 










                                                                                                                                                                                           


                                                                                                                                       

                                                                                     

     










                                         


                                                                                                                    










                                          













                                                                                        





















                                







































                                                                                                       




                                                     


                                                                                                                                                      








                                                                                                                                                  
                                                                                                        











                                                                                                                                              
                                                        
                                                                                                          

     
                               

     











                            

             














                                   




                                            


















                                                     
       






                                     

     

                                        



                         














                              

     

                                  

     

                                                            


                  

                                  

     


                                                                                                 

     
                                                  
                   
                              


       


                                  
 


                                                            

     


                                  
 


                                                                                                 

     


                                                  
       
     
 

                                 

     


                                                          

     


                                 
 







                                                                                                
       
     
 

                                   

     


                                                              

     


                                   
 



                                                                                                  
 


                                                   
       

     

                             

     


                                                  

     

                             

     


                                                                                            

     



                                             

     

                            

     


                                                

     

                            

     



                                                                                           
 


                                            
       
     
 

                            

     


                                                

     


                            
 



                                                                                           
 


                                            


       

                                

     




                                                         
 


                                                                                      
 



                                                                                               
 


                                                                                           
 


                                 
 




                                                           
 

                                                                                       

     


                                                                                                

     

                                                                                            

     

                          

     



                                              

     

                                                                                  

     


                                                                                           

     

                                                                                       

     

                          

     



                                              

     

                                                                                  

     






                                                                                           



                                                            
                     
                            
                           
                
















































































                                       







                                                































                                             











                                                                                                                





















                                 







                                        

                                                   


                   
                                                  


                       



                                                                     
                       
                                                   


                       






                                                                     

       







                                                                   
 






                                                                       
       







                                                           
       
 







                                                         
 







                                                         
 






                                                            

       








































































































































































                                                                                                       
                              
                                                                

                           

                                   

                          
















































                                    

                    















                                  


















                                                                                                                        

                                                                                                                                      





                                                                                                                      


                                                                                         


       
                                                                                                  
 
                                                                                                                                 








                                                                           
                                 
                                                                                

















































































                                                                                       














                                                                                                     
                                                                                                                                  


                                            












































                                                       







                                


                                                                                      


       
                                                                                            

               
                                                                                                                                 

                                                     
                                      

                           






























































                                               



               
                                                                                                                                
                                                     
                                               
                              

                                                
         
























































                                                                                                                                                                                                


                                                                                                                    
                                   













                                                                                        

                            







































                                                                                                       
                                                    



                                                                                                                                                      
                                                                                                                                            
                                                                                                      
                                                        
                                                                                                            

     
                                 

     

                              

             

                             




                                            
                                                         
                                                
                                   

     

                                          



                         

                             

     

                                

     


                                                           


                  

                                                                                      

     


                                                                                               

     

                                                                                           

     








                                                            
 
       

     






                                                

     




                                                                                                                
 


                              
       
                                        

     






                                                     

     


                                                    
 









                                                            

     


                           

     



                                                                          
       
 
                             
 










                                                                                              

     

                                             

     

                                                                                                      

     

                                                                                                       
       
 



                                                                  
 




                              

     


                                                                

     




                                                                                                                        


       







                                                                                                                                      

     



                                                                                           

     
                                                                                                      
 























                                                                                                                                   
 

                                                                                                     
       
 

                                                                                                                                    
 








                                                    
 

     



                                                                                        

     












                                                                                                                                   
       
 








                                                                                                                                  

     
   
 

                                                                                                                                                                                            
 
 



                                                                                                                                       

     
 


                                                                                                                    
 
                                                                                        
 




                                                            
 








                                                                                  
 








                                                                                                       
 





                                                                               
 

                                      
 



                                                 
 


                                       
 








                                                                                                                                                      

     
                                

     



                                                       

     

                                         

     

                         



                                                            




                                                










                                                                                                                







                                        

                                                    


                   
                                                   


                       








                           
                                                   





                                                                          
















                                                                                                       
                                                                 

                           













                                                                                                                        
       






                                                                                                                      


       


                                                                                          


       
                                                                                                    
 
                                                                                                                                  








                                                                           










                                                                                                     
                                                                                                                                   


                                            





                               


                                                                                       


       
                                                                                              

               
                                                                                                                                  
                                                     


               
                                                                                                                                 
                                                     




       

                                                                                                                                                                                                    
 
                                                                                                                                                                                  


                                                                                                                                       

                                                                                        

     
                                           



























































                                                                                                                    



                                                                                                                                                      

                                                                                                                      
                                                        
                                                                                                             

     
                                  

     

                               


                             




                                            







                                                                                 

     

                                           



                         
                          

     















                                                                     


                          
                                                                
                             



                                
                          



                                                                                               
                                  


                                                


                            







                                                            
                                         








                                                
                            





















                                                                                                                

                                                      


                   
                                                     


                       

                                                                 


                                                            
                                               











                           
                                                     
































                                                                                                       
                                                                   


                            




                                 



















                                                                                                                        





                                                                                                                      


                                                                                            


       
                                                                                                        
 
                                                                                                                                    









                                                                           












                                                                                  















                                                                                                     
                                                                                                                                     


                                            
                                     
                                                    







                                                                                                                                       







                                


                                                                                         


       
                                                                                                  

               
                                                                                                                                    






                                                     






                                                  



               
                                                                                                                                   


                                                     










                                                                                                                                                     






                                       

                                                                                                                                                                            



                                                                                                                                       

                                                                                  





























































                                                                                                                                                      
                                                                                                       

     
                            




                                            
                                               

     

                                     































                                                                                                                

                                                


                   
                                               











                           
                                               






















                                                                                                       
                                                             


























                                                                                                                        


                                                                                      


       
                                                                                            
 
                                                                                                                              



















                                                                                                     
                                                                                                                               








                                            


                                                                                   


       
                                                                                      

               
                                                                                                                              



                                                     
                                                                                                                             





                                                     

                                                                                                                                                                                    




                                                                                                                                                                                  

                                                                                    

     
                                            
































































                                                                                                                                                      
                                                                                                             
                                                        
                                                                                                         

     
                              

     

                           







                                            
                                                   
                                 
                                                                            



                                       

                                       










                                                              
                                                            


                                                                     
                                           
                                 
                                               



                             
                                      


                          
                                                             
























                                                                                               
                                          































                                                                                                                

                                                  


                   
                                                 




















                                                                 
                                                 
































                                                                                                       
                                                               

































                                                                                                                        


                                                                                        


       
                                                                                                
 
                                                                                                                                












                                                                                  
                                                                      

                                                             

                                                 



















                                                                                                     
                                                                                                                                 





                                                    

                                                                                                                                       
             
                                         










                                 


                                                                                     


       
                                                                                          

               
                                                                                                                                








                                                     
                                                 
             
                                         





               
                                                                                                                               



                                                     

                                                                                                                                                      

                                                           

                                           









                                          

                                                                                                                                                                                                
 

                                                                                                                                                                                       


                                                                                                                                       

                                                                                       

     

                                       


                                                                                                                    

                                      













                                                                                        



                              





































                                                                                                       

                           


                                                                                                                                                      



                                                                                                                                              
                                                        
                                                                                                            

     









                                 




                                            






                                                         

     

                                          



                         

















































                                                                                                



                                                            















                                     




                                                





                             










                                                                                                                



                               







                                        

                                                     


                   
                                                    


                       






















                                                                   



               
                                                    





                                                                          



















                                                                                                
















                                                                                                       
                                                                  

                           














                                  
























                                                                                                                        


                                                                                           


       
                                                                                                      
 
                                                                                                                                   








                                                                           















                                                                                       










                                                                                                     
                                                                                                                                    


                                            









                                                     





                               


                                                                                        


       
                                                                                                

               
                                                                                                                                   
                                                     













                                             


               
                                                                                                                                  
                                                     








                                               




       

                                                                                                                                                                                                        
 
                                                                                                                                                                                 


                                                                                                                                       

                                                                                         

     
                                                  































































                                                                                                                                                      

                                                                                                           

                                                                                                             
                                                                                                              

     
                                   

     

                                 







                                            
                                                             
                                 
                                                                                       



                                       

                                            










                                                              
                                                      
                                 
                                                    
       
                                 

     
                                            


                          
                                                                        
























                                                                                               
                                                































                                                                                                                

                                                       


                   
                                                      




















                                                                 
                                                      
































                                                                                                       
                                                                    

































                                                                                                                        


                                                                                             


       
                                                                                                          
 
                                                                                                                                     









                                                                           
                                                                             
                 


                                                                                
                   




                                                       
                   
                                     
















                                                                                                     
                                                                                                                                      





                                                    

                                                                                                                                                                              
             

                                                    
             
                                








                                


                                                                                          


       
                                                                                                    

               
                                                                                                                                     








                                                     
                                                                               
             

                                                    





               
                                                                                                                                    



                                                     


                                                                                                                                                                                            
             




                                                 








                                       

                                                                                                                                                                                                            
 












                                                                                                                                                                                            


                                                                                                                                       

                                                                                          

     






























                                                                                                                    











                                                                                  

























                                 







































                                                                                                       

                                                     


                                                                                                                                                      
                                                                                                                                      
                                                                                                        






















                                                                                                                                                  

                                                                                                        
                                                                                                               

     
                                    

     













                                 

             













                                   




                                            



                                                               
       
































                                           


       

                                             



                         













                              

     

                             

     

                                                       


                  

                             

     


                                                                                            

     
                                             
                   
                         


       

                                  

     

                                                                 


                  

                                  

     


                                                                                                 

     
                                                  
                   
                              


       


                             
 


                                                       

     


                             
 


                                                                                            

     


                                             
       
     
 

                                  

     


                                                                 

     


                                  
 



                                                                                                 
 


                                                  
       
     
 

                                

     


                                                             

     


                                
 



                                                                                               
 


                                                
       

     

                                 

     



                                                                

     

                                                                                       

     


                                                                                                

     

                                                                                            

     

                                  

     


                                                                 

     

                                  

     



                                                                                                 
 


                                                  
       
     
 


                                  
 


                                                                 

     

                                  

     



                                                                                                 
 


                                                  


       

                                 

     



                                                               
 


                                 
 



                                                                                                
 


                                                 
       
     
 


                                   
 



                                                                   
 


                                   
 



                                                                                                  
 


                                                   
       
     
 

                             

     


                                                       

     

                             

     


                                                                                            

     


                                             


       

                            

     


                                                     

     

                            

     







                                                                                           
       

     

                            

     

                                                     


                  

                            

     


                                                                                           

     
                                            
                   
                        




                                                            
                
                            
                      
                
                                 


              






                                      
 






                                 
 














































































                                       
 
       
     
 
                                                
                      











































































                                                                                                                







                                        

                                                        


                   
                                                       


                       



                                                           
                       
                                         


                       






                                                                     

       







                                                           
 






                                                                     
       







                                                                 
       
 







                                                              
 







                                                                     
 






                                                                     

       







                                                                   
 











































































































































































































                                                                                                       

                          




























































































                                    




















                                                                                                                        

                                                                                                                                      





                                                                                                                      


                                                                                              


       
                                                                                                            
 
                                                                                                                                      








                                                                           



































































































                                                                                       














                                                                                                     
                                                                                                                                       


                                            




























































                                                       







                                


                                                                                           


       
                                                                                                      

               
                                                                                                                                      

                                                     
                                 

                           










































































                                               



               
                                                                                                                                     
                                                     
                                               
                              

















































                                                 





         

                                                                                                                                                                                                                    
 
                                                                                                                                                                                  


                                                                                                                                       

                                                                                            

     
                                       


                                                                                                                    
                                   













                                                                                        

                            







































                                                                                                       
                                                    



                                                                                                                                                      

                                                                                                                                            
                                                        
                                                                                                                 

     
                                      

     

                                   

             

                             




                                            
                                                                   
                                                
                                   

     

                                               



                         

                             

     

                                

     


                                                                


                  

                                                                                      

     


                                                                                               

     













                                                                                           


       






                                                

     










                                                                                                                

     






                                                          

     













                                                            

     





















                                                                                              
       
               

     

                                             

     

                                                                                                      

     













                                                                                                       

     




















                                                                                                                                      

     


                                                                                                


       
                                                                                                                
 























                                                                                                                                        
 


                                                                                                     
 

                                                                                                                                         
 







                                                    
       
 

     



                                                                                             

     
                                                                                                          
 











                                                                                                                                        
 







                                                                                                                                       


       
   
 

                                                                                                                                                                                                
 
                                                                                                                                                                               
 



                                                                                                                                       

     
                                   
 


                                                                                                                    
 
                                                                                        
 




                                                            
 










                                                                                  
 







                                                                                                       
       
 





                                                                               
 

                                      
 



                                                 
 


                                       
 

                                    


       







                                                                                                                                                      

     
                                 

     




                              

     






                                                         

     

                                          

     






                             

     

                                                    


                  

                             

     


                                                                                            

     
                                             
                   
                         


       








                                                            
 
       

     



                                                
 

                                        

     



                                                                                                                
       
 




                                        

     






                                                     

     













                                                           

     


                           

     



                                                                          
       
 












                                                                                        

     

                                             

     

                                                                                                      

     

                                                                                                       

     









                                                                  
       


                           

     



                                                                
 






                                                                                                                        
 






                                                                                                                      
 




                                                                                           
 
                                                                                                      
 





















                                                                                                                                   
         
                              
 


                                                                                                     
 







                                                                                                                                    
         


                               
 
     
 




                                                                                        
 
                                                                                                
 





                                                                                                                                   
         


                                         
         
       
 







                                                                                                                                  


       
   
 

                                                                                                                                                                                                        
 
                                                                                                                                                                                  
 




                                                                                                                                       
 
                                       
 


                                                                                                                    
 
                                                                                        
 




                                                            
 










                                                                                  
 








                                                                                                       
 





                                                                               
 

                                      
 


                                                 
       
 

                                       

       

                                    
       


































                                                                                                                                                      


             


                             

     


                                
 




                                                             
 


                                                                                      
 



                                                                                               
 


                                                                                           
 








                                                            
 
       
     
 



                                                
 
       

                                        
 



                                                                                                                

       


                              
       

                                        
 







                                                       
 


                                                      
 



                                                            
                       
                                         











                           
                                                      
                                                 
                                                                          
       



                                                                                       


                                

                                                                                              
















                                                                                                       
       


                              
                                                                    

                           

                              



                           













































                                                                                                                                      














                                                                                                     
                                                                                                                                      


                                            


                                                    







                                


                                                                                          


       
                                                                                                    

               
                                                                                                                                     

                                                     
                                    

                           


                                          



               
                                                                                                                                    
                                                     



                                              





         

                                                                                                                                                                                            
 

                                                                                                                                                                                               


                                                                                                                                       

                                                                                      

     

                                           


                                                                                                                    

                                              













                                                                                        



                                  







































                                                                                                       


                                                                                                                                                      



                                                                                                                                                      
                                                        
                                                                                                           

     
                                

     


                             

             

                                       




                                            






                                                       

     

                                         



                         

                               

     

                                

     

                                                         


                  

                                

     


                                                                                               

     



























                                                                                                    



                                                            
                   
                            
                         
                








                                         







                                                




                                 











                                                                                                                



                                   







                                        

                                                    


                   
                                                   


                       



                                                                 
                       









                                                                           











                           
                                                   





                                                                          
                                                                                       


                                











                                                                                                        
















                                                                                                       
     


                              
                                                                 

                           













                                      



















                                                                                                                        





                                                                                                                      


                                                                                          


       
                                                                                                    
 
                                                                                                                                  








                                                                           











                                                                                       














                                                                                                     
                                                                                                                                   


                                            







                                                         







                                


                                                                                       


       
                                                                                              

               
                                                                                                                                  

                                                     
                                    

                           








                                                 



               
                                                                                                                                 
                                                     
                                              
                              





                                                   





         

                                                                                                                                                                                                    
 
                                                                                                                                                                                 


                                                                                                                                       

                                                                                        

     
                                                  


                                                                                                                    
                                   













                                                                                        

                            










































                                                                                                                                                      



                                                                                                                                            
                                                        
                                                                                                             

     
                                  

     

                                 

             
                             




                                            



                                                                                       


       

                                           



                         
                          

     

                                                              

     












                                                                       


                  

                                

     


                                                                                               

     
                                                
                   
                            




                                                            
                   
                            
                         
                
                                                







                                                

                            











                                                                                                                

                              







                                        

                                                      


                   
                                                     


                       



                                                                 
                       
                                               











                           
                                                     





                                                                          
                                                                                       


                                

                                                                                              
















                                                                                                       
       


                              
                                                                   

                           

                                 

                          
                                


























                                                                                                                        


                                                                                            


       
                                                                                                        
 
                                                                                                                                    








                                                                           















                                                                                














                                                                                                     
                                                                                                                                     


                                            










                                                                                                                                                                              







                                


                                                                                         


       
                                                                                                  

               
                                                                                                                                    

                                                     
                                    


                                        








                                                                               



               
                                                                                                                                   


                                                     












                                                                                                                                                                                            





         

                                                                                                                                                                                                        
 







                                                                                                                                                                                      


                                                                                                                                       

                                                                                         

     







                                        


                                                                                                                    







                                      













                                                                                        

















                              
         
       
 







                                                                                                       
       
 








                                                                               
 


                                                 
       
 

                                       

       

                                    
       

     


























                                                                                                                                                      

     
                                   

     






















                                

     






                                                             
       

                                     
       








                                     
       

     

                                            

     
             













                              
 

                             

     


                                                      

     

                             

     


                                                                                            

     


                                             


       


                                
 



                                                            
 


                                
 



                                                                                               
 


                                                
       

     

                                

     




                                                             
 


                                                                                      
 


                                                                                               

     


                                                                                           
 


                                 
 




                                                               
 

                                                                                       

     



                                                                                                
 


                                                                                            
 


                          
 




                                                  
 


                                                                                  
 



                                                                                           
 


                                                                                       
 


                          
 




                                                  
 


                                                                                  
 


                                                                                           

     

                                                                                       

     

                           

     


                                                  

     

                           

     


                                                                                          

     



                                           

     

                                

     

                                                            


                  

                                

     








                                                                                               

     
























































                                                            
 
                   
                            
                         
                
                                    







                                                






















                                             











                                                                                                                















                               







                                        

                                                       


                   
                                                      


                       



                                                           
                       































































                                                                 











                           
                                                      





                                                                          
                                                                                 


                                







































































                                                                                                




















                                                                                                       
                                                                    

                           

                              

                          








































                                  




















                                                                                                                        

                                                                                                                                      





                                                                                                                      


                                                                                             


       
                                                                                                          
 
                                                                                                                                     








                                                                           
















































                                                                                       
                                                                                









                                                                                       














                                                                                                     
                                                                                                                                      


                                            





























                                                     







                                


                                                                                          


       
                                                                                                    

               
                                                                                                                                     

                                                     
                                 

                           












































                                            



               
                                                                                                                                    
                                                     
                                              
                              





























                                              





         

                                                                                                                                                                                                                
 
                                                                                                                                                                                  


                                                                                                                                       

                                                                                           

     
                                       



























































                                                                                                                    

                                                    



                                                                                                                                                      
                                                                                                      
                                                        
                                                                                                                

     
                                     

     

                                  


                             
                            




                                            


                                                                 

     

                                              



                         

                             

     
                                


                          
                                                               
                             
                            



                                
                                                                                      



                                                                                               
                                                                         


                                                
                                                                                           







                                                            
                                     








                                                
                                            





















                                                                                                                

                                                         


                   
                                                        


                       

                                          


                                                            
                                         











                           
                                                        
































                                                                                                       
                                                                      


                            
                              



















                                                                                                                        

                                                                                                                                      





                                                                                                                      


                                                                                               


       
                                                                                                              
 
                                                                                                                                       









                                                                           

                                                                              















                                                                                                     
                                                                                                                                        


                                            
                                    
                                                    
                                          







                                


                                                                                            


       
                                                                                                        

               
                                                                                                                                       






                                                     
                                          



               
                                                                                                                                      


                                                     
                                            






                                       

                                                                                                                                                                                                    
 
                                                                                                                                                                                             


                                                                                                                                       

                                                                                        

     
                                          


                                                                                                                    
                                            













                                                                                        

                                 


































                                                                                                       

                          

     







                                                                                                                                                      

     
                                  

     




                                     

     






                                                           

     

                                           

     


                              

     

                                    

     

                                                                   


                  

                                    

     


                                                                                                   

     



                                                    



                                                            
                       
                            
                             
                
                                        







                                                

                                











                                                                                                                

                                  







                                        

                                                      


                   
                                                     


                       



                                                                         
                       
                                                       











                           
                                                     





                                                                          
                                                                                               


                                

                                                                                                      




















                                                                                                       
                                                                   
                           






                                     



















                                                                                                                        





                                                                                                                      


                                                                                            


       
                                                                                                        
 
                                                                                                                                    








                                                                           
                                   
                                                                                

                                                        














                                                                                                     
                                                                                                                                     


                                            


                                                        







                                


                                                                                         


       
                                                                                                  

               
                                                                                                                                    

                                                     
                                        

                           


                                                



               
                                                                                                                                   
                                                     
                                              
                              

                                                  





         

                                                                                                                                                                                                            
 
                                                                                                                                                                                 


                                                                                                                                       

                                                                                          

     
                                                  



























































                                                                                                                    



                                                                                                                                                      


                                                                                                             
                                                        
                                                                                                               

     
                                    

     

                                 


                             




                                            




                                                                                       

     

                                             



                         
                          

     











                                                              


                          
                                                                         
                             



                                
                          



                                                                                               
                                  


                                                


                            







                                                            
                                                








                                                
                            





















                                                                                                                

                                                        


                   
                                                       


                       

                                                                 


                                                            
                                               











                           
                                                       
































                                                                                                       
                                                                     


                            




                                 



















                                                                                                                        





                                                                                                                      


                                                                                              


       
                                                                                                            
 
                                                                                                                                      









                                                                           













                                                                                















                                                                                                     
                                                                                                                                       


                                            
                                     
                                                    








                                                                                                                                                                              







                                


                                                                                           


       
                                                                                                      

               
                                                                                                                                      






                                                     







                                                                               



               
                                                                                                                                     


                                                     











                                                                                                                                                                                            






                                       
 
/**
 * Autogenerated by Thrift Compiler (0.9.1)
 *
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
 *  @generated
 */
package server;

import org.apache.thrift.scheme.IScheme;
import org.apache.thrift.scheme.SchemeFactory;
import org.apache.thrift.scheme.StandardScheme;

import org.apache.thrift.scheme.TupleScheme;
import org.apache.thrift.protocol.TTupleProtocol;
import org.apache.thrift.protocol.TProtocolException;
import org.apache.thrift.EncodingUtils;
import org.apache.thrift.TException;
import org.apache.thrift.async.AsyncMethodCallback;
import org.apache.thrift.server.AbstractNonblockingServer.*;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.util.HashMap;
import java.util.EnumMap;
import java.util.Set;
import java.util.HashSet;
import java.util.EnumSet;
import java.util.Collections;
import java.util.BitSet;
import java.nio.ByteBuffer;
import java.util.Arrays;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class Server {

  public interface Iface {

    public User getFtpUser() throws org.apache.thrift.TException;

    public long DeleteFtpUser(String user) throws org.apache.thrift.TException;

    public String getPathOfImage(String name) throws org.apache.thrift.TException;

    public boolean writeVLdata(String imagename, String firstname, String lastname, String university, String Mail, String Tel, String Fak, boolean license, boolean internet, long ram, long cpu) throws org.apache.thrift.TException;

    public List<Image> getImageList() throws org.apache.thrift.TException;

    public List<String> getAllOS() throws org.apache.thrift.TException;

    public Map<String,String> getPersonData(String Vorname, String Nachname) throws org.apache.thrift.TException;

    public boolean writeLecturedata(String name, String shortdesc, String desc, String startDate, String endDate, boolean isActive, String imagename, String firstname, String lastname, String university, String Mail, String Tel, String Fak) throws org.apache.thrift.TException;

    public boolean startFileCopy(String file) throws org.apache.thrift.TException;

    public Map<String,String> getImageData(String imageid, String imageversion) throws org.apache.thrift.TException;

    public boolean updateImageData(String name, String newName, boolean license, boolean internet, long ram, long cpu, String id, String version) throws org.apache.thrift.TException;

    public Map<String,String> getLectureData(String lecturename) throws org.apache.thrift.TException;

  }

  public interface AsyncIface {

    public void getFtpUser(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;

    public void DeleteFtpUser(String user, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;

    public void getPathOfImage(String name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;

    public void writeVLdata(String imagename, String firstname, String lastname, String university, String Mail, String Tel, String Fak, boolean license, boolean internet, long ram, long cpu, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;

    public void getImageList(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;

    public void getAllOS(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;

    public void getPersonData(String Vorname, String Nachname, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;

    public void writeLecturedata(String name, String shortdesc, String desc, String startDate, String endDate, boolean isActive, String imagename, String firstname, String lastname, String university, String Mail, String Tel, String Fak, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;

    public void startFileCopy(String file, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;

    public void getImageData(String imageid, String imageversion, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;

    public void updateImageData(String name, String newName, boolean license, boolean internet, long ram, long cpu, String id, String version, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;

    public void getLectureData(String lecturename, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;

  }

  public static class Client extends org.apache.thrift.TServiceClient implements Iface {
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
      public Factory() {}
      public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
        return new Client(prot);
      }
      public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
        return new Client(iprot, oprot);
      }
    }

    public Client(org.apache.thrift.protocol.TProtocol prot)
    {
      super(prot, prot);
    }

    public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
      super(iprot, oprot);
    }

    public User getFtpUser() throws org.apache.thrift.TException
    {
      send_getFtpUser();
      return recv_getFtpUser();
    }

    public void send_getFtpUser() throws org.apache.thrift.TException
    {
      getFtpUser_args args = new getFtpUser_args();
      sendBase("getFtpUser", args);
    }

    public User recv_getFtpUser() throws org.apache.thrift.TException
    {
      getFtpUser_result result = new getFtpUser_result();
      receiveBase(result, "getFtpUser");
      if (result.isSetSuccess()) {
        return result.success;
      }
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getFtpUser failed: unknown result");
    }

    public long DeleteFtpUser(String user) throws org.apache.thrift.TException
    {
      send_DeleteFtpUser(user);
      return recv_DeleteFtpUser();
    }

    public void send_DeleteFtpUser(String user) throws org.apache.thrift.TException
    {
      DeleteFtpUser_args args = new DeleteFtpUser_args();
      args.setUser(user);
      sendBase("DeleteFtpUser", args);
    }

    public long recv_DeleteFtpUser() throws org.apache.thrift.TException
    {
      DeleteFtpUser_result result = new DeleteFtpUser_result();
      receiveBase(result, "DeleteFtpUser");
      if (result.isSetSuccess()) {
        return result.success;
      }
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "DeleteFtpUser failed: unknown result");
    }

    public String getPathOfImage(String name) throws org.apache.thrift.TException
    {
      send_getPathOfImage(name);
      return recv_getPathOfImage();
    }

    public void send_getPathOfImage(String name) throws org.apache.thrift.TException
    {
      getPathOfImage_args args = new getPathOfImage_args();
      args.setName(name);
      sendBase("getPathOfImage", args);
    }

    public String recv_getPathOfImage() throws org.apache.thrift.TException
    {
      getPathOfImage_result result = new getPathOfImage_result();
      receiveBase(result, "getPathOfImage");
      if (result.isSetSuccess()) {
        return result.success;
      }
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPathOfImage failed: unknown result");
    }

    public boolean writeVLdata(String imagename, String firstname, String lastname, String university, String Mail, String Tel, String Fak, boolean license, boolean internet, long ram, long cpu) throws org.apache.thrift.TException
    {
      send_writeVLdata(imagename, firstname, lastname, university, Mail, Tel, Fak, license, internet, ram, cpu);
      return recv_writeVLdata();
    }

    public void send_writeVLdata(String imagename, String firstname, String lastname, String university, String Mail, String Tel, String Fak, boolean license, boolean internet, long ram, long cpu) throws org.apache.thrift.TException
    {
      writeVLdata_args args = new writeVLdata_args();
      args.setImagename(imagename);
      args.setFirstname(firstname);
      args.setLastname(lastname);
      args.setUniversity(university);
      args.setMail(Mail);
      args.setTel(Tel);
      args.setFak(Fak);
      args.setLicense(license);
      args.setInternet(internet);
      args.setRam(ram);
      args.setCpu(cpu);
      sendBase("writeVLdata", args);
    }

    public boolean recv_writeVLdata() throws org.apache.thrift.TException
    {
      writeVLdata_result result = new writeVLdata_result();
      receiveBase(result, "writeVLdata");
      if (result.isSetSuccess()) {
        return result.success;
      }
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "writeVLdata failed: unknown result");
    }

    public List<Image> getImageList() throws org.apache.thrift.TException
    {
      send_getImageList();
      return recv_getImageList();
    }

    public void send_getImageList() throws org.apache.thrift.TException
    {
      getImageList_args args = new getImageList_args();
      sendBase("getImageList", args);
    }

    public List<Image> recv_getImageList() throws org.apache.thrift.TException
    {
      getImageList_result result = new getImageList_result();
      receiveBase(result, "getImageList");
      if (result.isSetSuccess()) {
        return result.success;
      }
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getImageList failed: unknown result");
    }

    public List<String> getAllOS() throws org.apache.thrift.TException
    {
      send_getAllOS();
      return recv_getAllOS();
    }

    public void send_getAllOS() throws org.apache.thrift.TException
    {
      getAllOS_args args = new getAllOS_args();
      sendBase("getAllOS", args);
    }

    public List<String> recv_getAllOS() throws org.apache.thrift.TException
    {
      getAllOS_result result = new getAllOS_result();
      receiveBase(result, "getAllOS");
      if (result.isSetSuccess()) {
        return result.success;
      }
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllOS failed: unknown result");
    }

    public Map<String,String> getPersonData(String Vorname, String Nachname) throws org.apache.thrift.TException
    {
      send_getPersonData(Vorname, Nachname);
      return recv_getPersonData();
    }

    public void send_getPersonData(String Vorname, String Nachname) throws org.apache.thrift.TException
    {
      getPersonData_args args = new getPersonData_args();
      args.setVorname(Vorname);
      args.setNachname(Nachname);
      sendBase("getPersonData", args);
    }

    public Map<String,String> recv_getPersonData() throws org.apache.thrift.TException
    {
      getPersonData_result result = new getPersonData_result();
      receiveBase(result, "getPersonData");
      if (result.isSetSuccess()) {
        return result.success;
      }
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPersonData failed: unknown result");
    }

    public boolean writeLecturedata(String name, String shortdesc, String desc, String startDate, String endDate, boolean isActive, String imagename, String firstname, String lastname, String university, String Mail, String Tel, String Fak) throws org.apache.thrift.TException
    {
      send_writeLecturedata(name, shortdesc, desc, startDate, endDate, isActive, imagename, firstname, lastname, university, Mail, Tel, Fak);
      return recv_writeLecturedata();
    }

    public void send_writeLecturedata(String name, String shortdesc, String desc, String startDate, String endDate, boolean isActive, String imagename, String firstname, String lastname, String university, String Mail, String Tel, String Fak) throws org.apache.thrift.TException
    {
      writeLecturedata_args args = new writeLecturedata_args();
      args.setName(name);
      args.setShortdesc(shortdesc);
      args.setDesc(desc);
      args.setStartDate(startDate);
      args.setEndDate(endDate);
      args.setIsActive(isActive);
      args.setImagename(imagename);
      args.setFirstname(firstname);
      args.setLastname(lastname);
      args.setUniversity(university);
      args.setMail(Mail);
      args.setTel(Tel);
      args.setFak(Fak);
      sendBase("writeLecturedata", args);
    }

    public boolean recv_writeLecturedata() throws org.apache.thrift.TException
    {
      writeLecturedata_result result = new writeLecturedata_result();
      receiveBase(result, "writeLecturedata");
      if (result.isSetSuccess()) {
        return result.success;
      }
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "writeLecturedata failed: unknown result");
    }

    public boolean startFileCopy(String file) throws org.apache.thrift.TException
    {
      send_startFileCopy(file);
      return recv_startFileCopy();
    }

    public void send_startFileCopy(String file) throws org.apache.thrift.TException
    {
      startFileCopy_args args = new startFileCopy_args();
      args.setFile(file);
      sendBase("startFileCopy", args);
    }

    public boolean recv_startFileCopy() throws org.apache.thrift.TException
    {
      startFileCopy_result result = new startFileCopy_result();
      receiveBase(result, "startFileCopy");
      if (result.isSetSuccess()) {
        return result.success;
      }
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "startFileCopy failed: unknown result");
    }

    public Map<String,String> getImageData(String imageid, String imageversion) throws org.apache.thrift.TException
    {
      send_getImageData(imageid, imageversion);
      return recv_getImageData();
    }

    public void send_getImageData(String imageid, String imageversion) throws org.apache.thrift.TException
    {
      getImageData_args args = new getImageData_args();
      args.setImageid(imageid);
      args.setImageversion(imageversion);
      sendBase("getImageData", args);
    }

    public Map<String,String> recv_getImageData() throws org.apache.thrift.TException
    {
      getImageData_result result = new getImageData_result();
      receiveBase(result, "getImageData");
      if (result.isSetSuccess()) {
        return result.success;
      }
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getImageData failed: unknown result");
    }

    public boolean updateImageData(String name, String newName, boolean license, boolean internet, long ram, long cpu, String id, String version) throws org.apache.thrift.TException
    {
      send_updateImageData(name, newName, license, internet, ram, cpu, id, version);
      return recv_updateImageData();
    }

    public void send_updateImageData(String name, String newName, boolean license, boolean internet, long ram, long cpu, String id, String version) throws org.apache.thrift.TException
    {
      updateImageData_args args = new updateImageData_args();
      args.setName(name);
      args.setNewName(newName);
      args.setLicense(license);
      args.setInternet(internet);
      args.setRam(ram);
      args.setCpu(cpu);
      args.setId(id);
      args.setVersion(version);
      sendBase("updateImageData", args);
    }

    public boolean recv_updateImageData() throws org.apache.thrift.TException
    {
      updateImageData_result result = new updateImageData_result();
      receiveBase(result, "updateImageData");
      if (result.isSetSuccess()) {
        return result.success;
      }
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updateImageData failed: unknown result");
    }

    public Map<String,String> getLectureData(String lecturename) throws org.apache.thrift.TException
    {
      send_getLectureData(lecturename);
      return recv_getLectureData();
    }

    public void send_getLectureData(String lecturename) throws org.apache.thrift.TException
    {
      getLectureData_args args = new getLectureData_args();
      args.setLecturename(lecturename);
      sendBase("getLectureData", args);
    }

    public Map<String,String> recv_getLectureData() throws org.apache.thrift.TException
    {
      getLectureData_result result = new getLectureData_result();
      receiveBase(result, "getLectureData");
      if (result.isSetSuccess()) {
        return result.success;
      }
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLectureData failed: unknown result");
    }

  }
  public static class AsyncClient extends org.apache.thrift.async.TAsyncClient implements AsyncIface {
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
      private org.apache.thrift.async.TAsyncClientManager clientManager;
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
      public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
        this.clientManager = clientManager;
        this.protocolFactory = protocolFactory;
      }
      public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
        return new AsyncClient(protocolFactory, clientManager, transport);
      }
    }

    public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
      super(protocolFactory, clientManager, transport);
    }

    public void getFtpUser(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
      checkReady();
      getFtpUser_call method_call = new getFtpUser_call(resultHandler, this, ___protocolFactory, ___transport);
      this.___currentMethod = method_call;
      ___manager.call(method_call);
    }

    public static class getFtpUser_call extends org.apache.thrift.async.TAsyncMethodCall {
      public getFtpUser_call(org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
        super(client, protocolFactory, transport, resultHandler, false);
      }

      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getFtpUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
        getFtpUser_args args = new getFtpUser_args();
        args.write(prot);
        prot.writeMessageEnd();
      }

      public User getResult() throws org.apache.thrift.TException {
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
          throw new IllegalStateException("Method call not finished!");
        }
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
        return (new Client(prot)).recv_getFtpUser();
      }
    }

    public void DeleteFtpUser(String user, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
      checkReady();
      DeleteFtpUser_call method_call = new DeleteFtpUser_call(user, resultHandler, this, ___protocolFactory, ___transport);
      this.___currentMethod = method_call;
      ___manager.call(method_call);
    }

    public static class DeleteFtpUser_call extends org.apache.thrift.async.TAsyncMethodCall {
      private String user;
      public DeleteFtpUser_call(String user, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
        super(client, protocolFactory, transport, resultHandler, false);
        this.user = user;
      }

      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("DeleteFtpUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
        DeleteFtpUser_args args = new DeleteFtpUser_args();
        args.setUser(user);
        args.write(prot);
        prot.writeMessageEnd();
      }

      public long getResult() throws org.apache.thrift.TException {
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
          throw new IllegalStateException("Method call not finished!");
        }
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
        return (new Client(prot)).recv_DeleteFtpUser();
      }
    }

    public void getPathOfImage(String name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
      checkReady();
      getPathOfImage_call method_call = new getPathOfImage_call(name, resultHandler, this, ___protocolFactory, ___transport);
      this.___currentMethod = method_call;
      ___manager.call(method_call);
    }

    public static class getPathOfImage_call extends org.apache.thrift.async.TAsyncMethodCall {
      private String name;
      public getPathOfImage_call(String name, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
        super(client, protocolFactory, transport, resultHandler, false);
        this.name = name;
      }

      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPathOfImage", org.apache.thrift.protocol.TMessageType.CALL, 0));
        getPathOfImage_args args = new getPathOfImage_args();
        args.setName(name);
        args.write(prot);
        prot.writeMessageEnd();
      }

      public String getResult() throws org.apache.thrift.TException {
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
          throw new IllegalStateException("Method call not finished!");
        }
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
        return (new Client(prot)).recv_getPathOfImage();
      }
    }

    public void writeVLdata(String imagename, String firstname, String lastname, String university, String Mail, String Tel, String Fak, boolean license, boolean internet, long ram, long cpu, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
      checkReady();
      writeVLdata_call method_call = new writeVLdata_call(imagename, firstname, lastname, university, Mail, Tel, Fak, license, internet, ram, cpu, resultHandler, this, ___protocolFactory, ___transport);
      this.___currentMethod = method_call;
      ___manager.call(method_call);
    }

    public static class writeVLdata_call extends org.apache.thrift.async.TAsyncMethodCall {
      private String imagename;
      private String firstname;
      private String lastname;
      private String university;
      private String Mail;
      private String Tel;
      private String Fak;
      private boolean license;
      private boolean internet;
      private long ram;
      private long cpu;
      public writeVLdata_call(String imagename, String firstname, String lastname, String university, String Mail, String Tel, String Fak, boolean license, boolean internet, long ram, long cpu, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
        super(client, protocolFactory, transport, resultHandler, false);
        this.imagename = imagename;
        this.firstname = firstname;
        this.lastname = lastname;
        this.university = university;
        this.Mail = Mail;
        this.Tel = Tel;
        this.Fak = Fak;
        this.license = license;
        this.internet = internet;
        this.ram = ram;
        this.cpu = cpu;
      }

      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("writeVLdata", org.apache.thrift.protocol.TMessageType.CALL, 0));
        writeVLdata_args args = new writeVLdata_args();
        args.setImagename(imagename);
        args.setFirstname(firstname);
        args.setLastname(lastname);
        args.setUniversity(university);
        args.setMail(Mail);
        args.setTel(Tel);
        args.setFak(Fak);
        args.setLicense(license);
        args.setInternet(internet);
        args.setRam(ram);
        args.setCpu(cpu);
        args.write(prot);
        prot.writeMessageEnd();
      }

      public boolean getResult() throws org.apache.thrift.TException {
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
          throw new IllegalStateException("Method call not finished!");
        }
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
        return (new Client(prot)).recv_writeVLdata();
      }
    }

    public void getImageList(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
      checkReady();
      getImageList_call method_call = new getImageList_call(resultHandler, this, ___protocolFactory, ___transport);
      this.___currentMethod = method_call;
      ___manager.call(method_call);
    }

    public static class getImageList_call extends org.apache.thrift.async.TAsyncMethodCall {
      public getImageList_call(org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
        super(client, protocolFactory, transport, resultHandler, false);
      }

      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getImageList", org.apache.thrift.protocol.TMessageType.CALL, 0));
        getImageList_args args = new getImageList_args();
        args.write(prot);
        prot.writeMessageEnd();
      }

      public List<Image> getResult() throws org.apache.thrift.TException {
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
          throw new IllegalStateException("Method call not finished!");
        }
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
        return (new Client(prot)).recv_getImageList();
      }
    }

    public void getAllOS(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
      checkReady();
      getAllOS_call method_call = new getAllOS_call(resultHandler, this, ___protocolFactory, ___transport);
      this.___currentMethod = method_call;
      ___manager.call(method_call);
    }

    public static class getAllOS_call extends org.apache.thrift.async.TAsyncMethodCall {
      public getAllOS_call(org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
        super(client, protocolFactory, transport, resultHandler, false);
      }

      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllOS", org.apache.thrift.protocol.TMessageType.CALL, 0));
        getAllOS_args args = new getAllOS_args();
        args.write(prot);
        prot.writeMessageEnd();
      }

      public List<String> getResult() throws org.apache.thrift.TException {
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
          throw new IllegalStateException("Method call not finished!");
        }
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
        return (new Client(prot)).recv_getAllOS();
      }
    }

    public void getPersonData(String Vorname, String Nachname, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
      checkReady();
      getPersonData_call method_call = new getPersonData_call(Vorname, Nachname, resultHandler, this, ___protocolFactory, ___transport);
      this.___currentMethod = method_call;
      ___manager.call(method_call);
    }

    public static class getPersonData_call extends org.apache.thrift.async.TAsyncMethodCall {
      private String Vorname;
      private String Nachname;
      public getPersonData_call(String Vorname, String Nachname, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
        super(client, protocolFactory, transport, resultHandler, false);
        this.Vorname = Vorname;
        this.Nachname = Nachname;
      }

      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPersonData", org.apache.thrift.protocol.TMessageType.CALL, 0));
        getPersonData_args args = new getPersonData_args();
        args.setVorname(Vorname);
        args.setNachname(Nachname);
        args.write(prot);
        prot.writeMessageEnd();
      }

      public Map<String,String> getResult() throws org.apache.thrift.TException {
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
          throw new IllegalStateException("Method call not finished!");
        }
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
        return (new Client(prot)).recv_getPersonData();
      }
    }

    public void writeLecturedata(String name, String shortdesc, String desc, String startDate, String endDate, boolean isActive, String imagename, String firstname, String lastname, String university, String Mail, String Tel, String Fak, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
      checkReady();
      writeLecturedata_call method_call = new writeLecturedata_call(name, shortdesc, desc, startDate, endDate, isActive, imagename, firstname, lastname, university, Mail, Tel, Fak, resultHandler, this, ___protocolFactory, ___transport);
      this.___currentMethod = method_call;
      ___manager.call(method_call);
    }

    public static class writeLecturedata_call extends org.apache.thrift.async.TAsyncMethodCall {
      private String name;
      private String shortdesc;
      private String desc;
      private String startDate;
      private String endDate;
      private boolean isActive;
      private String imagename;
      private String firstname;
      private String lastname;
      private String university;
      private String Mail;
      private String Tel;
      private String Fak;
      public writeLecturedata_call(String name, String shortdesc, String desc, String startDate, String endDate, boolean isActive, String imagename, String firstname, String lastname, String university, String Mail, String Tel, String Fak, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
        super(client, protocolFactory, transport, resultHandler, false);
        this.name = name;
        this.shortdesc = shortdesc;
        this.desc = desc;
        this.startDate = startDate;
        this.endDate = endDate;
        this.isActive = isActive;
        this.imagename = imagename;
        this.firstname = firstname;
        this.lastname = lastname;
        this.university = university;
        this.Mail = Mail;
        this.Tel = Tel;
        this.Fak = Fak;
      }

      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("writeLecturedata", org.apache.thrift.protocol.TMessageType.CALL, 0));
        writeLecturedata_args args = new writeLecturedata_args();
        args.setName(name);
        args.setShortdesc(shortdesc);
        args.setDesc(desc);
        args.setStartDate(startDate);
        args.setEndDate(endDate);
        args.setIsActive(isActive);
        args.setImagename(imagename);
        args.setFirstname(firstname);
        args.setLastname(lastname);
        args.setUniversity(university);
        args.setMail(Mail);
        args.setTel(Tel);
        args.setFak(Fak);
        args.write(prot);
        prot.writeMessageEnd();
      }

      public boolean getResult() throws org.apache.thrift.TException {
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
          throw new IllegalStateException("Method call not finished!");
        }
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
        return (new Client(prot)).recv_writeLecturedata();
      }
    }

    public void startFileCopy(String file, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
      checkReady();
      startFileCopy_call method_call = new startFileCopy_call(file, resultHandler, this, ___protocolFactory, ___transport);
      this.___currentMethod = method_call;
      ___manager.call(method_call);
    }

    public static class startFileCopy_call extends org.apache.thrift.async.TAsyncMethodCall {
      private String file;
      public startFileCopy_call(String file, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
        super(client, protocolFactory, transport, resultHandler, false);
        this.file = file;
      }

      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("startFileCopy", org.apache.thrift.protocol.TMessageType.CALL, 0));
        startFileCopy_args args = new startFileCopy_args();
        args.setFile(file);
        args.write(prot);
        prot.writeMessageEnd();
      }

      public boolean getResult() throws org.apache.thrift.TException {
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
          throw new IllegalStateException("Method call not finished!");
        }
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
        return (new Client(prot)).recv_startFileCopy();
      }
    }

    public void getImageData(String imageid, String imageversion, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
      checkReady();
      getImageData_call method_call = new getImageData_call(imageid, imageversion, resultHandler, this, ___protocolFactory, ___transport);
      this.___currentMethod = method_call;
      ___manager.call(method_call);
    }

    public static class getImageData_call extends org.apache.thrift.async.TAsyncMethodCall {
      private String imageid;
      private String imageversion;
      public getImageData_call(String imageid, String imageversion, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
        super(client, protocolFactory, transport, resultHandler, false);
        this.imageid = imageid;
        this.imageversion = imageversion;
      }

      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getImageData", org.apache.thrift.protocol.TMessageType.CALL, 0));
        getImageData_args args = new getImageData_args();
        args.setImageid(imageid);
        args.setImageversion(imageversion);
        args.write(prot);
        prot.writeMessageEnd();
      }

      public Map<String,String> getResult() throws org.apache.thrift.TException {
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
          throw new IllegalStateException("Method call not finished!");
        }
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
        return (new Client(prot)).recv_getImageData();
      }
    }

    public void updateImageData(String name, String newName, boolean license, boolean internet, long ram, long cpu, String id, String version, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
      checkReady();
      updateImageData_call method_call = new updateImageData_call(name, newName, license, internet, ram, cpu, id, version, resultHandler, this, ___protocolFactory, ___transport);
      this.___currentMethod = method_call;
      ___manager.call(method_call);
    }

    public static class updateImageData_call extends org.apache.thrift.async.TAsyncMethodCall {
      private String name;
      private String newName;
      private boolean license;
      private boolean internet;
      private long ram;
      private long cpu;
      private String id;
      private String version;
      public updateImageData_call(String name, String newName, boolean license, boolean internet, long ram, long cpu, String id, String version, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
        super(client, protocolFactory, transport, resultHandler, false);
        this.name = name;
        this.newName = newName;
        this.license = license;
        this.internet = internet;
        this.ram = ram;
        this.cpu = cpu;
        this.id = id;
        this.version = version;
      }

      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateImageData", org.apache.thrift.protocol.TMessageType.CALL, 0));
        updateImageData_args args = new updateImageData_args();
        args.setName(name);
        args.setNewName(newName);
        args.setLicense(license);
        args.setInternet(internet);
        args.setRam(ram);
        args.setCpu(cpu);
        args.setId(id);
        args.setVersion(version);
        args.write(prot);
        prot.writeMessageEnd();
      }

      public boolean getResult() throws org.apache.thrift.TException {
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
          throw new IllegalStateException("Method call not finished!");
        }
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
        return (new Client(prot)).recv_updateImageData();
      }
    }

    public void getLectureData(String lecturename, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
      checkReady();
      getLectureData_call method_call = new getLectureData_call(lecturename, resultHandler, this, ___protocolFactory, ___transport);
      this.___currentMethod = method_call;
      ___manager.call(method_call);
    }

    public static class getLectureData_call extends org.apache.thrift.async.TAsyncMethodCall {
      private String lecturename;
      public getLectureData_call(String lecturename, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
        super(client, protocolFactory, transport, resultHandler, false);
        this.lecturename = lecturename;
      }

      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLectureData", org.apache.thrift.protocol.TMessageType.CALL, 0));
        getLectureData_args args = new getLectureData_args();
        args.setLecturename(lecturename);
        args.write(prot);
        prot.writeMessageEnd();
      }

      public Map<String,String> getResult() throws org.apache.thrift.TException {
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
          throw new IllegalStateException("Method call not finished!");
        }
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
        return (new Client(prot)).recv_getLectureData();
      }
    }

  }

  public static class Processor<I extends Iface> extends org.apache.thrift.TBaseProcessor<I> implements org.apache.thrift.TProcessor {
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
    public Processor(I iface) {
      super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
    }

    protected Processor(I iface, Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
      super(iface, getProcessMap(processMap));
    }

    private static <I extends Iface> Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> getProcessMap(Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
      processMap.put("getFtpUser", new getFtpUser());
      processMap.put("DeleteFtpUser", new DeleteFtpUser());
      processMap.put("getPathOfImage", new getPathOfImage());
      processMap.put("writeVLdata", new writeVLdata());
      processMap.put("getImageList", new getImageList());
      processMap.put("getAllOS", new getAllOS());
      processMap.put("getPersonData", new getPersonData());
      processMap.put("writeLecturedata", new writeLecturedata());
      processMap.put("startFileCopy", new startFileCopy());
      processMap.put("getImageData", new getImageData());
      processMap.put("updateImageData", new updateImageData());
      processMap.put("getLectureData", new getLectureData());
      return processMap;
    }

    public static class getFtpUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getFtpUser_args> {
      public getFtpUser() {
        super("getFtpUser");
      }

      public getFtpUser_args getEmptyArgsInstance() {
        return new getFtpUser_args();
      }

      protected boolean isOneway() {
        return false;
      }

      public getFtpUser_result getResult(I iface, getFtpUser_args args) throws org.apache.thrift.TException {
        getFtpUser_result result = new getFtpUser_result();
        result.success = iface.getFtpUser();
        return result;
      }
    }

    public static class DeleteFtpUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, DeleteFtpUser_args> {
      public DeleteFtpUser() {
        super("DeleteFtpUser");
      }

      public DeleteFtpUser_args getEmptyArgsInstance() {
        return new DeleteFtpUser_args();
      }

      protected boolean isOneway() {
        return false;
      }

      public DeleteFtpUser_result getResult(I iface, DeleteFtpUser_args args) throws org.apache.thrift.TException {
        DeleteFtpUser_result result = new DeleteFtpUser_result();
        result.success = iface.DeleteFtpUser(args.user);
        result.setSuccessIsSet(true);
        return result;
      }
    }

    public static class getPathOfImage<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPathOfImage_args> {
      public getPathOfImage() {
        super("getPathOfImage");
      }

      public getPathOfImage_args getEmptyArgsInstance() {
        return new getPathOfImage_args();
      }

      protected boolean isOneway() {
        return false;
      }

      public getPathOfImage_result getResult(I iface, getPathOfImage_args args) throws org.apache.thrift.TException {
        getPathOfImage_result result = new getPathOfImage_result();
        result.success = iface.getPathOfImage(args.name);
        return result;
      }
    }

    public static class writeVLdata<I extends Iface> extends org.apache.thrift.ProcessFunction<I, writeVLdata_args> {
      public writeVLdata() {
        super("writeVLdata");
      }

      public writeVLdata_args getEmptyArgsInstance() {
        return new writeVLdata_args();
      }

      protected boolean isOneway() {
        return false;
      }

      public writeVLdata_result getResult(I iface, writeVLdata_args args) throws org.apache.thrift.TException {
        writeVLdata_result result = new writeVLdata_result();
        result.success = iface.writeVLdata(args.imagename, args.firstname, args.lastname, args.university, args.Mail, args.Tel, args.Fak, args.license, args.internet, args.ram, args.cpu);
        result.setSuccessIsSet(true);
        return result;
      }
    }

    public static class getImageList<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getImageList_args> {
      public getImageList() {
        super("getImageList");
      }

      public getImageList_args getEmptyArgsInstance() {
        return new getImageList_args();
      }

      protected boolean isOneway() {
        return false;
      }

      public getImageList_result getResult(I iface, getImageList_args args) throws org.apache.thrift.TException {
        getImageList_result result = new getImageList_result();
        result.success = iface.getImageList();
        return result;
      }
    }

    public static class getAllOS<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllOS_args> {
      public getAllOS() {
        super("getAllOS");
      }

      public getAllOS_args getEmptyArgsInstance() {
        return new getAllOS_args();
      }

      protected boolean isOneway() {
        return false;
      }

      public getAllOS_result getResult(I iface, getAllOS_args args) throws org.apache.thrift.TException {
        getAllOS_result result = new getAllOS_result();
        result.success = iface.getAllOS();
        return result;
      }
    }

    public static class getPersonData<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPersonData_args> {
      public getPersonData() {
        super("getPersonData");
      }

      public getPersonData_args getEmptyArgsInstance() {
        return new getPersonData_args();
      }

      protected boolean isOneway() {
        return false;
      }

      public getPersonData_result getResult(I iface, getPersonData_args args) throws org.apache.thrift.TException {
        getPersonData_result result = new getPersonData_result();
        result.success = iface.getPersonData(args.Vorname, args.Nachname);
        return result;
      }
    }

    public static class writeLecturedata<I extends Iface> extends org.apache.thrift.ProcessFunction<I, writeLecturedata_args> {
      public writeLecturedata() {
        super("writeLecturedata");
      }

      public writeLecturedata_args getEmptyArgsInstance() {
        return new writeLecturedata_args();
      }

      protected boolean isOneway() {
        return false;
      }

      public writeLecturedata_result getResult(I iface, writeLecturedata_args args) throws org.apache.thrift.TException {
        writeLecturedata_result result = new writeLecturedata_result();
        result.success = iface.writeLecturedata(args.name, args.shortdesc, args.desc, args.startDate, args.endDate, args.isActive, args.imagename, args.firstname, args.lastname, args.university, args.Mail, args.Tel, args.Fak);
        result.setSuccessIsSet(true);
        return result;
      }
    }

    public static class startFileCopy<I extends Iface> extends org.apache.thrift.ProcessFunction<I, startFileCopy_args> {
      public startFileCopy() {
        super("startFileCopy");
      }

      public startFileCopy_args getEmptyArgsInstance() {
        return new startFileCopy_args();
      }

      protected boolean isOneway() {
        return false;
      }

      public startFileCopy_result getResult(I iface, startFileCopy_args args) throws org.apache.thrift.TException {
        startFileCopy_result result = new startFileCopy_result();
        result.success = iface.startFileCopy(args.file);
        result.setSuccessIsSet(true);
        return result;
      }
    }

    public static class getImageData<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getImageData_args> {
      public getImageData() {
        super("getImageData");
      }

      public getImageData_args getEmptyArgsInstance() {
        return new getImageData_args();
      }

      protected boolean isOneway() {
        return false;
      }

      public getImageData_result getResult(I iface, getImageData_args args) throws org.apache.thrift.TException {
        getImageData_result result = new getImageData_result();
        result.success = iface.getImageData(args.imageid, args.imageversion);
        return result;
      }
    }

    public static class updateImageData<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateImageData_args> {
      public updateImageData() {
        super("updateImageData");
      }

      public updateImageData_args getEmptyArgsInstance() {
        return new updateImageData_args();
      }

      protected boolean isOneway() {
        return false;
      }

      public updateImageData_result getResult(I iface, updateImageData_args args) throws org.apache.thrift.TException {
        updateImageData_result result = new updateImageData_result();
        result.success = iface.updateImageData(args.name, args.newName, args.license, args.internet, args.ram, args.cpu, args.id, args.version);
        result.setSuccessIsSet(true);
        return result;
      }
    }

    public static class getLectureData<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLectureData_args> {
      public getLectureData() {
        super("getLectureData");
      }

      public getLectureData_args getEmptyArgsInstance() {
        return new getLectureData_args();
      }

      protected boolean isOneway() {
        return false;
      }

      public getLectureData_result getResult(I iface, getLectureData_args args) throws org.apache.thrift.TException {
        getLectureData_result result = new getLectureData_result();
        result.success = iface.getLectureData(args.lecturename);
        return result;
      }
    }

  }

  public static class AsyncProcessor<I extends AsyncIface> extends org.apache.thrift.TBaseAsyncProcessor<I> {
    private static final Logger LOGGER = LoggerFactory.getLogger(AsyncProcessor.class.getName());
    public AsyncProcessor(I iface) {
      super(iface, getProcessMap(new HashMap<String, org.apache.thrift.AsyncProcessFunction<I, ? extends org.apache.thrift.TBase, ?>>()));
    }

    protected AsyncProcessor(I iface, Map<String,  org.apache.thrift.AsyncProcessFunction<I, ? extends  org.apache.thrift.TBase, ?>> processMap) {
      super(iface, getProcessMap(processMap));
    }

    private static <I extends AsyncIface> Map<String,  org.apache.thrift.AsyncProcessFunction<I, ? extends  org.apache.thrift.TBase,?>> getProcessMap(Map<String,  org.apache.thrift.AsyncProcessFunction<I, ? extends  org.apache.thrift.TBase, ?>> processMap) {
      processMap.put("getFtpUser", new getFtpUser());
      processMap.put("DeleteFtpUser", new DeleteFtpUser());
      processMap.put("getPathOfImage", new getPathOfImage());
      processMap.put("writeVLdata", new writeVLdata());
      processMap.put("getImageList", new getImageList());
      processMap.put("getAllOS", new getAllOS());
      processMap.put("getPersonData", new getPersonData());
      processMap.put("writeLecturedata", new writeLecturedata());
      processMap.put("startFileCopy", new startFileCopy());
      processMap.put("getImageData", new getImageData());
      processMap.put("updateImageData", new updateImageData());
      processMap.put("getLectureData", new getLectureData());
      return processMap;
    }

    public static class getFtpUser<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getFtpUser_args, User> {
      public getFtpUser() {
        super("getFtpUser");
      }

      public getFtpUser_args getEmptyArgsInstance() {
        return new getFtpUser_args();
      }

      public AsyncMethodCallback<User> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
        final org.apache.thrift.AsyncProcessFunction fcall = this;
        return new AsyncMethodCallback<User>() { 
          public void onComplete(User o) {
            getFtpUser_result result = new getFtpUser_result();
            result.success = o;
            try {
              fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
              return;
            } catch (Exception e) {
              LOGGER.error("Exception writing to internal frame buffer", e);
            }
            fb.close();
          }
          public void onError(Exception e) {
            byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
            org.apache.thrift.TBase msg;
            getFtpUser_result result = new getFtpUser_result();
            {
              msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
              msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
            }
            try {
              fcall.sendResponse(fb,msg,msgType,seqid);
              return;
            } catch (Exception ex) {
              LOGGER.error("Exception writing to internal frame buffer", ex);
            }
            fb.close();
          }
        };
      }

      protected boolean isOneway() {
        return false;
      }

      public void start(I iface, getFtpUser_args args, org.apache.thrift.async.AsyncMethodCallback<User> resultHandler) throws TException {
        iface.getFtpUser(resultHandler);
      }
    }

    public static class DeleteFtpUser<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, DeleteFtpUser_args, Long> {
      public DeleteFtpUser() {
        super("DeleteFtpUser");
      }

      public DeleteFtpUser_args getEmptyArgsInstance() {
        return new DeleteFtpUser_args();
      }

      public AsyncMethodCallback<Long> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
        final org.apache.thrift.AsyncProcessFunction fcall = this;
        return new AsyncMethodCallback<Long>() { 
          public void onComplete(Long o) {
            DeleteFtpUser_result result = new DeleteFtpUser_result();
            result.success = o;
            result.setSuccessIsSet(true);
            try {
              fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
              return;
            } catch (Exception e) {
              LOGGER.error("Exception writing to internal frame buffer", e);
            }
            fb.close();
          }
          public void onError(Exception e) {
            byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
            org.apache.thrift.TBase msg;
            DeleteFtpUser_result result = new DeleteFtpUser_result();
            {
              msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
              msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
            }
            try {
              fcall.sendResponse(fb,msg,msgType,seqid);
              return;
            } catch (Exception ex) {
              LOGGER.error("Exception writing to internal frame buffer", ex);
            }
            fb.close();
          }
        };
      }

      protected boolean isOneway() {
        return false;
      }

      public void start(I iface, DeleteFtpUser_args args, org.apache.thrift.async.AsyncMethodCallback<Long> resultHandler) throws TException {
        iface.DeleteFtpUser(args.user,resultHandler);
      }
    }

    public static class getPathOfImage<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getPathOfImage_args, String> {
      public getPathOfImage() {
        super("getPathOfImage");
      }

      public getPathOfImage_args getEmptyArgsInstance() {
        return new getPathOfImage_args();
      }

      public AsyncMethodCallback<String> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
        final org.apache.thrift.AsyncProcessFunction fcall = this;
        return new AsyncMethodCallback<String>() { 
          public void onComplete(String o) {
            getPathOfImage_result result = new getPathOfImage_result();
            result.success = o;
            try {
              fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
              return;
            } catch (Exception e) {
              LOGGER.error("Exception writing to internal frame buffer", e);
            }
            fb.close();
          }
          public void onError(Exception e) {
            byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
            org.apache.thrift.TBase msg;
            getPathOfImage_result result = new getPathOfImage_result();
            {
              msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
              msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
            }
            try {
              fcall.sendResponse(fb,msg,msgType,seqid);
              return;
            } catch (Exception ex) {
              LOGGER.error("Exception writing to internal frame buffer", ex);
            }
            fb.close();
          }
        };
      }

      protected boolean isOneway() {
        return false;
      }

      public void start(I iface, getPathOfImage_args args, org.apache.thrift.async.AsyncMethodCallback<String> resultHandler) throws TException {
        iface.getPathOfImage(args.name,resultHandler);
      }
    }

    public static class writeVLdata<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, writeVLdata_args, Boolean> {
      public writeVLdata() {
        super("writeVLdata");
      }

      public writeVLdata_args getEmptyArgsInstance() {
        return new writeVLdata_args();
      }

      public AsyncMethodCallback<Boolean> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
        final org.apache.thrift.AsyncProcessFunction fcall = this;
        return new AsyncMethodCallback<Boolean>() { 
          public void onComplete(Boolean o) {
            writeVLdata_result result = new writeVLdata_result();
            result.success = o;
            result.setSuccessIsSet(true);
            try {
              fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
              return;
            } catch (Exception e) {
              LOGGER.error("Exception writing to internal frame buffer", e);
            }
            fb.close();
          }
          public void onError(Exception e) {
            byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
            org.apache.thrift.TBase msg;
            writeVLdata_result result = new writeVLdata_result();
            {
              msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
              msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
            }
            try {
              fcall.sendResponse(fb,msg,msgType,seqid);
              return;
            } catch (Exception ex) {
              LOGGER.error("Exception writing to internal frame buffer", ex);
            }
            fb.close();
          }
        };
      }

      protected boolean isOneway() {
        return false;
      }

      public void start(I iface, writeVLdata_args args, org.apache.thrift.async.AsyncMethodCallback<Boolean> resultHandler) throws TException {
        iface.writeVLdata(args.imagename, args.firstname, args.lastname, args.university, args.Mail, args.Tel, args.Fak, args.license, args.internet, args.ram, args.cpu,resultHandler);
      }
    }

    public static class getImageList<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getImageList_args, List<Image>> {
      public getImageList() {
        super("getImageList");
      }

      public getImageList_args getEmptyArgsInstance() {
        return new getImageList_args();
      }

      public AsyncMethodCallback<List<Image>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
        final org.apache.thrift.AsyncProcessFunction fcall = this;
        return new AsyncMethodCallback<List<Image>>() { 
          public void onComplete(List<Image> o) {
            getImageList_result result = new getImageList_result();
            result.success = o;
            try {
              fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
              return;
            } catch (Exception e) {
              LOGGER.error("Exception writing to internal frame buffer", e);
            }
            fb.close();
          }
          public void onError(Exception e) {
            byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
            org.apache.thrift.TBase msg;
            getImageList_result result = new getImageList_result();
            {
              msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
              msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
            }
            try {
              fcall.sendResponse(fb,msg,msgType,seqid);
              return;
            } catch (Exception ex) {
              LOGGER.error("Exception writing to internal frame buffer", ex);
            }
            fb.close();
          }
        };
      }

      protected boolean isOneway() {
        return false;
      }

      public void start(I iface, getImageList_args args, org.apache.thrift.async.AsyncMethodCallback<List<Image>> resultHandler) throws TException {
        iface.getImageList(resultHandler);
      }
    }

    public static class getAllOS<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getAllOS_args, List<String>> {
      public getAllOS() {
        super("getAllOS");
      }

      public getAllOS_args getEmptyArgsInstance() {
        return new getAllOS_args();
      }

      public AsyncMethodCallback<List<String>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
        final org.apache.thrift.AsyncProcessFunction fcall = this;
        return new AsyncMethodCallback<List<String>>() { 
          public void onComplete(List<String> o) {
            getAllOS_result result = new getAllOS_result();
            result.success = o;
            try {
              fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
              return;
            } catch (Exception e) {
              LOGGER.error("Exception writing to internal frame buffer", e);
            }
            fb.close();
          }
          public void onError(Exception e) {
            byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
            org.apache.thrift.TBase msg;
            getAllOS_result result = new getAllOS_result();
            {
              msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
              msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
            }
            try {
              fcall.sendResponse(fb,msg,msgType,seqid);
              return;
            } catch (Exception ex) {
              LOGGER.error("Exception writing to internal frame buffer", ex);
            }
            fb.close();
          }
        };
      }

      protected boolean isOneway() {
        return false;
      }

      public void start(I iface, getAllOS_args args, org.apache.thrift.async.AsyncMethodCallback<List<String>> resultHandler) throws TException {
        iface.getAllOS(resultHandler);
      }
    }

    public static class getPersonData<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getPersonData_args, Map<String,String>> {
      public getPersonData() {
        super("getPersonData");
      }

      public getPersonData_args getEmptyArgsInstance() {
        return new getPersonData_args();
      }

      public AsyncMethodCallback<Map<String,String>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
        final org.apache.thrift.AsyncProcessFunction fcall = this;
        return new AsyncMethodCallback<Map<String,String>>() { 
          public void onComplete(Map<String,String> o) {
            getPersonData_result result = new getPersonData_result();
            result.success = o;
            try {
              fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
              return;
            } catch (Exception e) {
              LOGGER.error("Exception writing to internal frame buffer", e);
            }
            fb.close();
          }
          public void onError(Exception e) {
            byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
            org.apache.thrift.TBase msg;
            getPersonData_result result = new getPersonData_result();
            {
              msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
              msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
            }
            try {
              fcall.sendResponse(fb,msg,msgType,seqid);
              return;
            } catch (Exception ex) {
              LOGGER.error("Exception writing to internal frame buffer", ex);
            }
            fb.close();
          }
        };
      }

      protected boolean isOneway() {
        return false;
      }

      public void start(I iface, getPersonData_args args, org.apache.thrift.async.AsyncMethodCallback<Map<String,String>> resultHandler) throws TException {
        iface.getPersonData(args.Vorname, args.Nachname,resultHandler);
      }
    }

    public static class writeLecturedata<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, writeLecturedata_args, Boolean> {
      public writeLecturedata() {
        super("writeLecturedata");
      }

      public writeLecturedata_args getEmptyArgsInstance() {
        return new writeLecturedata_args();
      }

      public AsyncMethodCallback<Boolean> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
        final org.apache.thrift.AsyncProcessFunction fcall = this;
        return new AsyncMethodCallback<Boolean>() { 
          public void onComplete(Boolean o) {
            writeLecturedata_result result = new writeLecturedata_result();
            result.success = o;
            result.setSuccessIsSet(true);
            try {
              fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
              return;
            } catch (Exception e) {
              LOGGER.error("Exception writing to internal frame buffer", e);
            }
            fb.close();
          }
          public void onError(Exception e) {
            byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
            org.apache.thrift.TBase msg;
            writeLecturedata_result result = new writeLecturedata_result();
            {
              msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
              msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
            }
            try {
              fcall.sendResponse(fb,msg,msgType,seqid);
              return;
            } catch (Exception ex) {
              LOGGER.error("Exception writing to internal frame buffer", ex);
            }
            fb.close();
          }
        };
      }

      protected boolean isOneway() {
        return false;
      }

      public void start(I iface, writeLecturedata_args args, org.apache.thrift.async.AsyncMethodCallback<Boolean> resultHandler) throws TException {
        iface.writeLecturedata(args.name, args.shortdesc, args.desc, args.startDate, args.endDate, args.isActive, args.imagename, args.firstname, args.lastname, args.university, args.Mail, args.Tel, args.Fak,resultHandler);
      }
    }

    public static class startFileCopy<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, startFileCopy_args, Boolean> {
      public startFileCopy() {
        super("startFileCopy");
      }

      public startFileCopy_args getEmptyArgsInstance() {
        return new startFileCopy_args();
      }

      public AsyncMethodCallback<Boolean> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
        final org.apache.thrift.AsyncProcessFunction fcall = this;
        return new AsyncMethodCallback<Boolean>() { 
          public void onComplete(Boolean o) {
            startFileCopy_result result = new startFileCopy_result();
            result.success = o;
            result.setSuccessIsSet(true);
            try {
              fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
              return;
            } catch (Exception e) {
              LOGGER.error("Exception writing to internal frame buffer", e);
            }
            fb.close();
          }
          public void onError(Exception e) {
            byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
            org.apache.thrift.TBase msg;
            startFileCopy_result result = new startFileCopy_result();
            {
              msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
              msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
            }
            try {
              fcall.sendResponse(fb,msg,msgType,seqid);
              return;
            } catch (Exception ex) {
              LOGGER.error("Exception writing to internal frame buffer", ex);
            }
            fb.close();
          }
        };
      }

      protected boolean isOneway() {
        return false;
      }

      public void start(I iface, startFileCopy_args args, org.apache.thrift.async.AsyncMethodCallback<Boolean> resultHandler) throws TException {
        iface.startFileCopy(args.file,resultHandler);
      }
    }

    public static class getImageData<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getImageData_args, Map<String,String>> {
      public getImageData() {
        super("getImageData");
      }

      public getImageData_args getEmptyArgsInstance() {
        return new getImageData_args();
      }

      public AsyncMethodCallback<Map<String,String>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
        final org.apache.thrift.AsyncProcessFunction fcall = this;
        return new AsyncMethodCallback<Map<String,String>>() { 
          public void onComplete(Map<String,String> o) {
            getImageData_result result = new getImageData_result();
            result.success = o;
            try {
              fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
              return;
            } catch (Exception e) {
              LOGGER.error("Exception writing to internal frame buffer", e);
            }
            fb.close();
          }
          public void onError(Exception e) {
            byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
            org.apache.thrift.TBase msg;
            getImageData_result result = new getImageData_result();
            {
              msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
              msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
            }
            try {
              fcall.sendResponse(fb,msg,msgType,seqid);
              return;
            } catch (Exception ex) {
              LOGGER.error("Exception writing to internal frame buffer", ex);
            }
            fb.close();
          }
        };
      }

      protected boolean isOneway() {
        return false;
      }

      public void start(I iface, getImageData_args args, org.apache.thrift.async.AsyncMethodCallback<Map<String,String>> resultHandler) throws TException {
        iface.getImageData(args.imageid, args.imageversion,resultHandler);
      }
    }

    public static class updateImageData<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, updateImageData_args, Boolean> {
      public updateImageData() {
        super("updateImageData");
      }

      public updateImageData_args getEmptyArgsInstance() {
        return new updateImageData_args();
      }

      public AsyncMethodCallback<Boolean> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
        final org.apache.thrift.AsyncProcessFunction fcall = this;
        return new AsyncMethodCallback<Boolean>() { 
          public void onComplete(Boolean o) {
            updateImageData_result result = new updateImageData_result();
            result.success = o;
            result.setSuccessIsSet(true);
            try {
              fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
              return;
            } catch (Exception e) {
              LOGGER.error("Exception writing to internal frame buffer", e);
            }
            fb.close();
          }
          public void onError(Exception e) {
            byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
            org.apache.thrift.TBase msg;
            updateImageData_result result = new updateImageData_result();
            {
              msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
              msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
            }
            try {
              fcall.sendResponse(fb,msg,msgType,seqid);
              return;
            } catch (Exception ex) {
              LOGGER.error("Exception writing to internal frame buffer", ex);
            }
            fb.close();
          }
        };
      }

      protected boolean isOneway() {
        return false;
      }

      public void start(I iface, updateImageData_args args, org.apache.thrift.async.AsyncMethodCallback<Boolean> resultHandler) throws TException {
        iface.updateImageData(args.name, args.newName, args.license, args.internet, args.ram, args.cpu, args.id, args.version,resultHandler);
      }
    }

    public static class getLectureData<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getLectureData_args, Map<String,String>> {
      public getLectureData() {
        super("getLectureData");
      }

      public getLectureData_args getEmptyArgsInstance() {
        return new getLectureData_args();
      }

      public AsyncMethodCallback<Map<String,String>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
        final org.apache.thrift.AsyncProcessFunction fcall = this;
        return new AsyncMethodCallback<Map<String,String>>() { 
          public void onComplete(Map<String,String> o) {
            getLectureData_result result = new getLectureData_result();
            result.success = o;
            try {
              fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
              return;
            } catch (Exception e) {
              LOGGER.error("Exception writing to internal frame buffer", e);
            }
            fb.close();
          }
          public void onError(Exception e) {
            byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
            org.apache.thrift.TBase msg;
            getLectureData_result result = new getLectureData_result();
            {
              msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
              msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
            }
            try {
              fcall.sendResponse(fb,msg,msgType,seqid);
              return;
            } catch (Exception ex) {
              LOGGER.error("Exception writing to internal frame buffer", ex);
            }
            fb.close();
          }
        };
      }

      protected boolean isOneway() {
        return false;
      }

      public void start(I iface, getLectureData_args args, org.apache.thrift.async.AsyncMethodCallback<Map<String,String>> resultHandler) throws TException {
        iface.getLectureData(args.lecturename,resultHandler);
      }
    }

  }

  public static class getFtpUser_args implements org.apache.thrift.TBase<getFtpUser_args, getFtpUser_args._Fields>, java.io.Serializable, Cloneable, Comparable<getFtpUser_args>   {
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFtpUser_args");


    private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
    static {
      schemes.put(StandardScheme.class, new getFtpUser_argsStandardSchemeFactory());
      schemes.put(TupleScheme.class, new getFtpUser_argsTupleSchemeFactory());
    }


    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
;

      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();

      static {
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
          byName.put(field.getFieldName(), field);
        }
      }

      /**
       * Find the _Fields constant that matches fieldId, or null if its not found.
       */
      public static _Fields findByThriftId(int fieldId) {
        switch(fieldId) {
          default:
            return null;
        }
      }

      /**
       * Find the _Fields constant that matches fieldId, throwing an exception
       * if it is not found.
       */
      public static _Fields findByThriftIdOrThrow(int fieldId) {
        _Fields fields = findByThriftId(fieldId);
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
        return fields;
      }

      /**
       * Find the _Fields constant that matches name, or null if its not found.
       */
      public static _Fields findByName(String name) {
        return byName.get(name);
      }

      private final short _thriftId;
      private final String _fieldName;

      _Fields(short thriftId, String fieldName) {
        _thriftId = thriftId;
        _fieldName = fieldName;
      }

      public short getThriftFieldId() {
        return _thriftId;
      }

      public String getFieldName() {
        return _fieldName;
      }
    }
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
    static {
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
      metaDataMap = Collections.unmodifiableMap(tmpMap);
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFtpUser_args.class, metaDataMap);
    }

    public getFtpUser_args() {
    }

    /**
     * Performs a deep copy on <i>other</i>.
     */
    public getFtpUser_args(getFtpUser_args other) {
    }

    public getFtpUser_args deepCopy() {
      return new getFtpUser_args(this);
    }

    @Override
    public void clear() {
    }

    public void setFieldValue(_Fields field, Object value) {
      switch (field) {
      }
    }

    public Object getFieldValue(_Fields field) {
      switch (field) {
      }
      throw new IllegalStateException();
    }

    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
    public boolean isSet(_Fields field) {
      if (field == null) {
        throw new IllegalArgumentException();
      }

      switch (field) {
      }
      throw new IllegalStateException();
    }

    @Override
    public boolean equals(Object that) {
      if (that == null)
        return false;
      if (that instanceof getFtpUser_args)
        return this.equals((getFtpUser_args)that);
      return false;
    }

    public boolean equals(getFtpUser_args that) {
      if (that == null)
        return false;

      return true;
    }

    @Override
    public int hashCode() {
      return 0;
    }

    @Override
    public int compareTo(getFtpUser_args other) {
      if (!getClass().equals(other.getClass())) {
        return getClass().getName().compareTo(other.getClass().getName());
      }

      int lastComparison = 0;

      return 0;
    }

    public _Fields fieldForId(int fieldId) {
      return _Fields.findByThriftId(fieldId);
    }

    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
      schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
    }

    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
      schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
    }

    @Override
    public String toString() {
      StringBuilder sb = new StringBuilder("getFtpUser_args(");
      boolean first = true;

      sb.append(")");
      return sb.toString();
    }

    public void validate() throws org.apache.thrift.TException {
      // check for required fields
      // check for sub-struct validity
    }

    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
      try {
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
      } catch (org.apache.thrift.TException te) {
        throw new java.io.IOException(te);
      }
    }

    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
      try {
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
      } catch (org.apache.thrift.TException te) {
        throw new java.io.IOException(te);
      }
    }

    private static class getFtpUser_argsStandardSchemeFactory implements SchemeFactory {
      public getFtpUser_argsStandardScheme getScheme() {
        return new getFtpUser_argsStandardScheme();
      }
    }

    private static class getFtpUser_argsStandardScheme extends StandardScheme<getFtpUser_args> {

      public void read(org.apache.thrift.protocol.TProtocol iprot, getFtpUser_args struct) throws org.apache.thrift.TException {
        org.apache.thrift.protocol.TField schemeField;
        iprot.readStructBegin();
        while (true)
        {
          schemeField = iprot.readFieldBegin();
          if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
            break;
          }
          switch (schemeField.id) {
            default:
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
          }
          iprot.readFieldEnd();
        }
        iprot.readStructEnd();

        // check for required fields of primitive type, which can't be checked in the validate method
        struct.validate();
      }

      public void write(org.apache.thrift.protocol.TProtocol oprot, getFtpUser_args struct) throws org.apache.thrift.TException {
        struct.validate();

        oprot.writeStructBegin(STRUCT_DESC);
        oprot.writeFieldStop();
        oprot.writeStructEnd();
      }

    }

    private static class getFtpUser_argsTupleSchemeFactory implements SchemeFactory {
      public getFtpUser_argsTupleScheme getScheme() {
        return new getFtpUser_argsTupleScheme();
      }
    }

    private static class getFtpUser_argsTupleScheme extends TupleScheme<getFtpUser_args> {

      @Override
      public void write(org.apache.thrift.protocol.TProtocol prot, getFtpUser_args struct) throws org.apache.thrift.TException {
        TTupleProtocol oprot = (TTupleProtocol) prot;
      }

      @Override
      public void read(org.apache.thrift.protocol.TProtocol prot, getFtpUser_args struct) throws org.apache.thrift.TException {
        TTupleProtocol iprot = (TTupleProtocol) prot;
      }
    }

  }

  public static class getFtpUser_result implements org.apache.thrift.TBase<getFtpUser_result, getFtpUser_result._Fields>, java.io.Serializable, Cloneable, Comparable<getFtpUser_result>   {
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFtpUser_result");

    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);

    private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
    static {
      schemes.put(StandardScheme.class, new getFtpUser_resultStandardSchemeFactory());
      schemes.put(TupleScheme.class, new getFtpUser_resultTupleSchemeFactory());
    }

    public User success; // required

    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
      SUCCESS((short)0, "success");

      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();

      static {
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
          byName.put(field.getFieldName(), field);
        }
      }

      /**
       * Find the _Fields constant that matches fieldId, or null if its not found.
       */
      public static _Fields findByThriftId(int fieldId) {
        switch(fieldId) {
          case 0: // SUCCESS
            return SUCCESS;
          default:
            return null;
        }
      }

      /**
       * Find the _Fields constant that matches fieldId, throwing an exception
       * if it is not found.
       */
      public static _Fields findByThriftIdOrThrow(int fieldId) {
        _Fields fields = findByThriftId(fieldId);
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
        return fields;
      }

      /**
       * Find the _Fields constant that matches name, or null if its not found.
       */
      public static _Fields findByName(String name) {
        return byName.get(name);
      }

      private final short _thriftId;
      private final String _fieldName;

      _Fields(short thriftId, String fieldName) {
        _thriftId = thriftId;
        _fieldName = fieldName;
      }

      public short getThriftFieldId() {
        return _thriftId;
      }

      public String getFieldName() {
        return _fieldName;
      }
    }

    // isset id assignments
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
    static {
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, User.class)));
      metaDataMap = Collections.unmodifiableMap(tmpMap);
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFtpUser_result.class, metaDataMap);
    }

    public getFtpUser_result() {
    }

    public getFtpUser_result(
      User success)
    {
      this();
      this.success = success;
    }

    /**
     * Performs a deep copy on <i>other</i>.
     */
    public getFtpUser_result(getFtpUser_result other) {
      if (other.isSetSuccess()) {
        this.success = new User(other.success);
      }
    }

    public getFtpUser_result deepCopy() {
      return new getFtpUser_result(this);
    }

    @Override
    public void clear() {
      this.success = null;
    }

    public User getSuccess() {
      return this.success;
    }

    public getFtpUser_result setSuccess(User success) {
      this.success = success;
      return this;
    }

    public void unsetSuccess() {
      this.success = null;
    }

    /** Returns true if field success is set (has been assigned a value) and false otherwise */
    public boolean isSetSuccess() {
      return this.success != null;
    }

    public void setSuccessIsSet(boolean value) {
      if (!value) {
        this.success = null;
      }
    }

    public void setFieldValue(_Fields field, Object value) {
      switch (field) {
      case SUCCESS:
        if (value == null) {
          unsetSuccess();
        } else {
          setSuccess((User)value);
        }
        break;

      }
    }

    public Object getFieldValue(_Fields field) {
      switch (field) {
      case SUCCESS:
        return getSuccess();

      }
      throw new IllegalStateException();
    }

    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
    public boolean isSet(_Fields field) {
      if (field == null) {
        throw new IllegalArgumentException();
      }

      switch (field) {
      case SUCCESS:
        return isSetSuccess();
      }
      throw new IllegalStateException();
    }

    @Override
    public boolean equals(Object that) {
      if (that == null)
        return false;
      if (that instanceof getFtpUser_result)
        return this.equals((getFtpUser_result)that);
      return false;
    }

    public boolean equals(getFtpUser_result that) {
      if (that == null)
        return false;

      boolean this_present_success = true && this.isSetSuccess();
      boolean that_present_success = true && that.isSetSuccess();
      if (this_present_success || that_present_success) {
        if (!(this_present_success && that_present_success))
          return false;
        if (!this.success.equals(that.success))
          return false;
      }

      return true;
    }

    @Override
    public int hashCode() {
      return 0;
    }

    @Override
    public int compareTo(getFtpUser_result other) {
      if (!getClass().equals(other.getClass())) {
        return getClass().getName().compareTo(other.getClass().getName());
      }

      int lastComparison = 0;

      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
      if (lastComparison != 0) {
        return lastComparison;
      }
      if (isSetSuccess()) {
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
        if (lastComparison != 0) {
          return lastComparison;
        }
      }
      return 0;
    }

    public _Fields fieldForId(int fieldId) {
      return _Fields.findByThriftId(fieldId);
    }

    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
      schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
    }

    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
      schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
      }

    @Override
    public String toString() {
      StringBuilder sb = new StringBuilder("getFtpUser_result(");
      boolean first = true;

      sb.append("success:");
      if (this.success == null) {
        sb.append("null");
      } else {
        sb.append(this.success);
      }
      first = false;
      sb.append(")");
      return sb.toString();
    }

    public void validate() throws org.apache.thrift.TException {
      // check for required fields
      // check for sub-struct validity
      if (success != null) {
        success.validate();
      }
    }

    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
      try {
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
      } catch (org.apache.thrift.TException te) {
        throw new java.io.IOException(te);
      }
    }

    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
      try {
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
      } catch (org.apache.thrift.TException te) {
        throw new java.io.IOException(te);
      }
    }

    private static class getFtpUser_resultStandardSchemeFactory implements SchemeFactory {
      public getFtpUser_resultStandardScheme getScheme() {
        return new getFtpUser_resultStandardScheme();
      }
    }

    private static class getFtpUser_resultStandardScheme extends StandardScheme<getFtpUser_result> {

      public void read(org.apache.thrift.protocol.TProtocol iprot, getFtpUser_result struct) throws org.apache.thrift.TException {
        org.apache.thrift.protocol.TField schemeField;
        iprot.readStructBegin();
        while (true)
        {
          schemeField = iprot.readFieldBegin();
          if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
            break;
          }
          switch (schemeField.id) {
            case 0: // SUCCESS
              if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
                struct.success = new User();
                struct.success.read(iprot);
                struct.setSuccessIsSet(true);
              } else { 
                org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
              }
              break;
            default:
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
          }
          iprot.readFieldEnd();
        }
        iprot.readStructEnd();

        // check for required fields of primitive type, which can't be checked in the validate method
        struct.validate();
      }

      public void write(org.apache.thrift.protocol.TProtocol oprot, getFtpUser_result struct) throws org.apache.thrift.TException {
        struct.validate();

        oprot.writeStructBegin(STRUCT_DESC);
        if (struct.success != null) {
          oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
          struct.success.write(oprot);
          oprot.writeFieldEnd();
        }
        oprot.writeFieldStop();
        oprot.writeStructEnd();
      }

    }

    private static class getFtpUser_resultTupleSchemeFactory implements SchemeFactory {
      public getFtpUser_resultTupleScheme getScheme() {
        return new getFtpUser_resultTupleScheme();
      }
    }

    private static class getFtpUser_resultTupleScheme extends TupleScheme<getFtpUser_result> {

      @Override
      public void write(org.apache.thrift.protocol.TProtocol prot, getFtpUser_result struct) throws org.apache.thrift.TException {
        TTupleProtocol oprot = (TTupleProtocol) prot;
        BitSet optionals = new BitSet();
        if (struct.isSetSuccess()) {
          optionals.set(0);
        }
        oprot.writeBitSet(optionals, 1);
        if (struct.isSetSuccess()) {
          struct.success.write(oprot);
        }
      }

      @Override
      public void read(org.apache.thrift.protocol.TProtocol prot, getFtpUser_result struct) throws org.apache.thrift.TException {
        TTupleProtocol iprot = (TTupleProtocol) prot;
        BitSet incoming = iprot.readBitSet(1);
        if (incoming.get(0)) {
          struct.success = new User();
          struct.success.read(iprot);
          struct.setSuccessIsSet(true);
        }
      }
    }

  }

  public static class DeleteFtpUser_args implements org.apache.thrift.TBase<DeleteFtpUser_args, DeleteFtpUser_args._Fields>, java.io.Serializable, Cloneable, Comparable<DeleteFtpUser_args>   {
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("DeleteFtpUser_args");

    private static final org.apache.thrift.protocol.TField USER_FIELD_DESC = new org.apache.thrift.protocol.TField("user", org.apache.thrift.protocol.TType.STRING, (short)-1);

    private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
    static {
      schemes.put(StandardScheme.class, new DeleteFtpUser_argsStandardSchemeFactory());
      schemes.put(TupleScheme.class, new DeleteFtpUser_argsTupleSchemeFactory());
    }

    public String user; // required

    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
      USER((short)-1, "user");

      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();

      static {
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
          byName.put(field.getFieldName(), field);
        }
      }

      /**
       * Find the _Fields constant that matches fieldId, or null if its not found.
       */
      public static _Fields findByThriftId(int fieldId) {
        switch(fieldId) {
          case -1: // USER
            return USER;
          default:
            return null;
        }
      }

      /**
       * Find the _Fields constant that matches fieldId, throwing an exception
       * if it is not found.
       */
      public static _Fields findByThriftIdOrThrow(int fieldId) {
        _Fields fields = findByThriftId(fieldId);
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
        return fields;
      }

      /**
       * Find the _Fields constant that matches name, or null if its not found.
       */
      public static _Fields findByName(String name) {
        return byName.get(name);
      }

      private final short _thriftId;
      private final String _fieldName;

      _Fields(short thriftId, String fieldName) {
        _thriftId = thriftId;
        _fieldName = fieldName;
      }

      public short getThriftFieldId() {
        return _thriftId;
      }

      public String getFieldName() {
        return _fieldName;
      }
    }

    // isset id assignments
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
    static {
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
      tmpMap.put(_Fields.USER, new org.apache.thrift.meta_data.FieldMetaData("user", org.apache.thrift.TFieldRequirementType.DEFAULT, 
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
      metaDataMap = Collections.unmodifiableMap(tmpMap);
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(DeleteFtpUser_args.class, metaDataMap);
    }

    public DeleteFtpUser_args() {
    }

    public DeleteFtpUser_args(
      String user)
    {
      this();
      this.user = user;
    }

    /**
     * Performs a deep copy on <i>other</i>.
     */
    public DeleteFtpUser_args(DeleteFtpUser_args other) {
      if (other.isSetUser()) {
        this.user = other.user;
      }
    }

    public DeleteFtpUser_args deepCopy() {
      return new DeleteFtpUser_args(this);
    }

    @Override
    public void clear() {
      this.user = null;
    }

    public String getUser() {
      return this.user;
    }

    public DeleteFtpUser_args setUser(String user) {
      this.user = user;
      return this;
    }

    public void unsetUser() {
      this.user = null;
    }

    /** Returns true if field user is set (has been assigned a value) and false otherwise */
    public boolean isSetUser() {
      return this.user != null;
    }

    public void setUserIsSet(boolean value) {
      if (!value) {
        this.user = null;
      }
    }

    public void setFieldValue(_Fields field, Object value) {
      switch (field) {
      case USER:
        if (value == null) {
          unsetUser();
        } else {
          setUser((String)value);
        }
        break;

      }
    }

    public Object getFieldValue(_Fields field) {
      switch (field) {
      case USER:
        return getUser();

      }
      throw new IllegalStateException();
    }

    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
    public boolean isSet(_Fields field) {
      if (field == null) {
        throw new IllegalArgumentException();
      }

      switch (field) {
      case USER:
        return isSetUser();
      }
      throw new IllegalStateException();
    }

    @Override
    public boolean equals(Object that) {
      if (that == null)
        return false;
      if (that instanceof DeleteFtpUser_args)
        return this.equals((DeleteFtpUser_args)that);
      return false;
    }

    public boolean equals(DeleteFtpUser_args that) {
      if (that == null)
        return false;

      boolean this_present_user = true && this.isSetUser();
      boolean that_present_user = true && that.isSetUser();
      if (this_present_user || that_present_user) {
        if (!(this_present_user && that_present_user))
          return false;
        if (!this.user.equals(that.user))
          return false;
      }

      return true;
    }

    @Override
    public int hashCode() {
      return 0;
    }

    @Override
    public int compareTo(DeleteFtpUser_args other) {
      if (!getClass().equals(other.getClass())) {
        return getClass().getName().compareTo(other.getClass().getName());
      }

      int lastComparison = 0;

      lastComparison = Boolean.valueOf(isSetUser()).compareTo(other.isSetUser());
      if (lastComparison != 0) {
        return lastComparison;
      }
      if (isSetUser()) {
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.user, other.user);
        if (lastComparison != 0) {
          return lastComparison;
        }
      }
      return 0;
    }

    public _Fields fieldForId(int fieldId) {
      return _Fields.findByThriftId(fieldId);
    }

    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
      schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
    }

    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
      schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
    }

    @Override
    public String toString() {
      StringBuilder sb = new StringBuilder("DeleteFtpUser_args(");
      boolean first = true;

      sb.append("user:");
      if (this.user == null) {
        sb.append("null");
      } else {
        sb.append(this.user);
      }
      first = false;
      sb.append(")");
      return sb.toString();
    }

    public void validate() throws org.apache.thrift.TException {
      // check for required fields
      // check for sub-struct validity
    }

    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
      try {
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
      } catch (org.apache.thrift.TException te) {
        throw new java.io.IOException(te);
      }
    }

    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
      try {
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
      } catch (org.apache.thrift.TException te) {
        throw new java.io.IOException(te);
      }
    }

    private static class DeleteFtpUser_argsStandardSchemeFactory implements SchemeFactory {
      public DeleteFtpUser_argsStandardScheme getScheme() {
        return new DeleteFtpUser_argsStandardScheme();
      }
    }

    private static class DeleteFtpUser_argsStandardScheme extends StandardScheme<DeleteFtpUser_args> {

      public void read(org.apache.thrift.protocol.TProtocol iprot, DeleteFtpUser_args struct) throws org.apache.thrift.TException {
        org.apache.thrift.protocol.TField schemeField;
        iprot.readStructBegin();
        while (true)
        {
          schemeField = iprot.readFieldBegin();
          if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
            break;
          }
          switch (schemeField.id) {
            case -1: // USER
              if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
                struct.user = iprot.readString();
                struct.setUserIsSet(true);
              } else { 
                org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
              }
              break;
            default:
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
          }
          iprot.readFieldEnd();
        }
        iprot.readStructEnd();

        // check for required fields of primitive type, which can't be checked in the validate method
        struct.validate();
      }

      public void write(org.apache.thrift.protocol.TProtocol oprot, DeleteFtpUser_args struct) throws org.apache.thrift.TException {
        struct.validate();

        oprot.writeStructBegin(STRUCT_DESC);
        if (struct.user != null) {
          oprot.writeFieldBegin(USER_FIELD_DESC);
          oprot.writeString(struct.user);
          oprot.writeFieldEnd();
        }
        oprot.writeFieldStop();
        oprot.writeStructEnd();
      }

    }

    private static class DeleteFtpUser_argsTupleSchemeFactory implements SchemeFactory {
      public DeleteFtpUser_argsTupleScheme getScheme() {
        return new DeleteFtpUser_argsTupleScheme();
      }
    }

    private static class DeleteFtpUser_argsTupleScheme extends TupleScheme<DeleteFtpUser_args> {

      @Override
      public void write(org.apache.thrift.protocol.TProtocol prot, DeleteFtpUser_args struct) throws org.apache.thrift.TException {
        TTupleProtocol oprot = (TTupleProtocol) prot;
        BitSet optionals = new BitSet();
        if (struct.isSetUser()) {
          optionals.set(0);
        }
        oprot.writeBitSet(optionals, 1);
        if (struct.isSetUser()) {
          oprot.writeString(struct.user);
        }
      }

      @Override
      public void read(org.apache.thrift.protocol.TProtocol prot, DeleteFtpUser_args struct) throws org.apache.thrift.TException {
        TTupleProtocol iprot = (TTupleProtocol) prot;
        BitSet incoming = iprot.readBitSet(1);
        if (incoming.get(0)) {
          struct.user = iprot.readString();
          struct.setUserIsSet(true);
        }
      }
    }

  }

  public static class DeleteFtpUser_result implements org.apache.thrift.TBase<DeleteFtpUser_result, DeleteFtpUser_result._Fields>, java.io.Serializable, Cloneable, Comparable<DeleteFtpUser_result>   {
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("DeleteFtpUser_result");

    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I64, (short)0);

    private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
    static {
      schemes.put(StandardScheme.class, new DeleteFtpUser_resultStandardSchemeFactory());
      schemes.put(TupleScheme.class, new DeleteFtpUser_resultTupleSchemeFactory());
    }

    public long success; // required

    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
      SUCCESS((short)0, "success");

      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();

      static {
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
          byName.put(field.getFieldName(), field);
        }
      }

      /**
       * Find the _Fields constant that matches fieldId, or null if its not found.
       */
      public static _Fields findByThriftId(int fieldId) {
        switch(fieldId) {
          case 0: // SUCCESS
            return SUCCESS;
          default:
            return null;
        }
      }

      /**
       * Find the _Fields constant that matches fieldId, throwing an exception
       * if it is not found.
       */
      public static _Fields findByThriftIdOrThrow(int fieldId) {
        _Fields fields = findByThriftId(fieldId);
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
        return fields;
      }

      /**
       * Find the _Fields constant that matches name, or null if its not found.
       */
      public static _Fields findByName(String name) {
        return byName.get(name);
      }

      private final short _thriftId;
      private final String _fieldName;

      _Fields(short thriftId, String fieldName) {
        _thriftId = thriftId;
        _fieldName = fieldName;
      }

      public short getThriftFieldId() {
        return _thriftId;
      }

      public String getFieldName() {
        return _fieldName;
      }
    }

    // isset id assignments
    private static final int __SUCCESS_ISSET_ID = 0;
    private byte __isset_bitfield = 0;
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
    static {
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64          , "int")));
      metaDataMap = Collections.unmodifiableMap(tmpMap);
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(DeleteFtpUser_result.class, metaDataMap);
    }

    public DeleteFtpUser_result() {
    }

    public DeleteFtpUser_result(
      long success)
    {
      this();
      this.success = success;
      setSuccessIsSet(true);
    }

    /**
     * Performs a deep copy on <i>other</i>.
     */
    public DeleteFtpUser_result(DeleteFtpUser_result other) {
      __isset_bitfield = other.__isset_bitfield;
      this.success = other.success;
    }

    public DeleteFtpUser_result deepCopy() {
      return new DeleteFtpUser_result(this);
    }

    @Override
    public void clear() {
      setSuccessIsSet(false);
      this.success = 0;
    }

    public long getSuccess() {
      return this.success;
    }

    public DeleteFtpUser_result setSuccess(long success) {
      this.success = success;
      setSuccessIsSet(true);
      return this;
    }

    public void unsetSuccess() {
      __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
    }

    /** Returns true if field success is set (has been assigned a value) and false otherwise */
    public boolean isSetSuccess() {
      return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
    }

    public void setSuccessIsSet(boolean value) {
      __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
    }

    public void setFieldValue(_Fields field, Object value) {
      switch (field) {
      case SUCCESS:
        if (value == null) {
          unsetSuccess();
        } else {
          setSuccess((Long)value);
        }
        break;

      }
    }

    public Object getFieldValue(_Fields field) {
      switch (field) {
      case SUCCESS:
        return Long.valueOf(getSuccess());

      }
      throw new IllegalStateException();
    }

    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
    public boolean isSet(_Fields field) {
      if (field == null) {
        throw new IllegalArgumentException();
      }

      switch (field) {
      case SUCCESS:
        return isSetSuccess();
      }
      throw new IllegalStateException();
    }

    @Override
    public boolean equals(Object that) {
      if (that == null)
        return false;
      if (that instanceof DeleteFtpUser_result)
        return this.equals((DeleteFtpUser_result)that);
      return false;
    }

    public boolean equals(DeleteFtpUser_result that) {
      if (that == null)
        return false;

      boolean this_present_success = true;
      boolean that_present_success = true;
      if (this_present_success || that_present_success) {
        if (!(this_present_success && that_present_success))
          return false;
        if (this.success != that.success)
          return false;
      }

      return true;
    }

    @Override
    public int hashCode() {
      return 0;
    }

    @Override
    public int compareTo(DeleteFtpUser_result other) {
      if (!getClass().equals(other.getClass())) {
        return getClass().getName().compareTo(other.getClass().getName());
      }

      int lastComparison = 0;

      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
      if (lastComparison != 0) {
        return lastComparison;
      }
      if (isSetSuccess()) {
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
        if (lastComparison != 0) {
          return lastComparison;
        }
      }
      return 0;
    }

    public _Fields fieldForId(int fieldId) {
      return _Fields.findByThriftId(fieldId);
    }

    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
      schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
    }

    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
      schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
      }

    @Override
    public String toString() {
      StringBuilder sb = new StringBuilder("DeleteFtpUser_result(");
      boolean first = true;

      sb.append("success:");
      sb.append(this.success);
      first = false;
      sb.append(")");
      return sb.toString();
    }

    public void validate() throws org.apache.thrift.TException {
      // check for required fields
      // check for sub-struct validity
    }

    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
      try {
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
      } catch (org.apache.thrift.TException te) {
        throw new java.io.IOException(te);
      }
    }

    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
      try {
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
        __isset_bitfield = 0;
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
      } catch (org.apache.thrift.TException te) {
        throw new java.io.IOException(te);
      }
    }

    private static class DeleteFtpUser_resultStandardSchemeFactory implements SchemeFactory {
      public DeleteFtpUser_resultStandardScheme getScheme() {
        return new DeleteFtpUser_resultStandardScheme();
      }
    }

    private static class DeleteFtpUser_resultStandardScheme extends StandardScheme<DeleteFtpUser_result> {

      public void read(org.apache.thrift.protocol.TProtocol iprot, DeleteFtpUser_result struct) throws org.apache.thrift.TException {
        org.apache.thrift.protocol.TField schemeField;
        iprot.readStructBegin();
        while (true)
        {
          schemeField = iprot.readFieldBegin();
          if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
            break;
          }
          switch (schemeField.id) {
            case 0: // SUCCESS
              if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
                struct.success = iprot.readI64();
                struct.setSuccessIsSet(true);
              } else { 
                org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
              }
              break;
            default:
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
          }
          iprot.readFieldEnd();
        }
        iprot.readStructEnd();

        // check for required fields of primitive type, which can't be checked in the validate method
        struct.validate();
      }

      public void write(org.apache.thrift.protocol.TProtocol oprot, DeleteFtpUser_result struct) throws org.apache.thrift.TException {
        struct.validate();

        oprot.writeStructBegin(STRUCT_DESC);
        if (struct.isSetSuccess()) {
          oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
          oprot.writeI64(struct.success);
          oprot.writeFieldEnd();
        }
        oprot.writeFieldStop();
        oprot.writeStructEnd();
      }

    }

    private static class DeleteFtpUser_resultTupleSchemeFactory implements SchemeFactory {
      public DeleteFtpUser_resultTupleScheme getScheme() {
        return new DeleteFtpUser_resultTupleScheme();
      }
    }

    private static class DeleteFtpUser_resultTupleScheme extends TupleScheme<DeleteFtpUser_result> {

      @Override
      public void write(org.apache.thrift.protocol.TProtocol prot, DeleteFtpUser_result struct) throws org.apache.thrift.TException {
        TTupleProtocol oprot = (TTupleProtocol) prot;
        BitSet optionals = new BitSet();
        if (struct.isSetSuccess()) {
          optionals.set(0);
        }
        oprot.writeBitSet(optionals, 1);
        if (struct.isSetSuccess()) {
          oprot.writeI64(struct.success);
        }
      }

      @Override
      public void read(org.apache.thrift.protocol.TProtocol prot, DeleteFtpUser_result struct) throws org.apache.thrift.TException {
        TTupleProtocol iprot = (TTupleProtocol) prot;
        BitSet incoming = iprot.readBitSet(1);
        if (incoming.get(0)) {
          struct.success = iprot.readI64();
          struct.setSuccessIsSet(true);
        }
      }
    }

  }

  public static class getPathOfImage_args implements org.apache.thrift.TBase<getPathOfImage_args, getPathOfImage_args._Fields>, java.io.Serializable, Cloneable, Comparable<getPathOfImage_args>   {
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPathOfImage_args");

    private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)-1);

    private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
    static {
      schemes.put(StandardScheme.class, new getPathOfImage_argsStandardSchemeFactory());
      schemes.put(TupleScheme.class, new getPathOfImage_argsTupleSchemeFactory());
    }

    public String name; // required

    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
      NAME((short)-1, "name");

      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();

      static {
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
          byName.put(field.getFieldName(), field);
        }
      }

      /**
       * Find the _Fields constant that matches fieldId, or null if its not found.
       */
      public static _Fields findByThriftId(int fieldId) {
        switch(fieldId) {
          case -1: // NAME
            return NAME;
          default:
            return null;
        }
      }

      /**
       * Find the _Fields constant that matches fieldId, throwing an exception
       * if it is not found.
       */
      public static _Fields findByThriftIdOrThrow(int fieldId) {
        _Fields fields = findByThriftId(fieldId);
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
        return fields;
      }

      /**
       * Find the _Fields constant that matches name, or null if its not found.
       */
      public static _Fields findByName(String name) {
        return byName.get(name);
      }

      private final short _thriftId;
      private final String _fieldName;

      _Fields(short thriftId, String fieldName) {
        _thriftId = thriftId;
        _fieldName = fieldName;
      }

      public short getThriftFieldId() {
        return _thriftId;
      }

      public String getFieldName() {
        return _fieldName;
      }
    }

    // isset id assignments
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
    static {
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
      tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT, 
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
      metaDataMap = Collections.unmodifiableMap(tmpMap);
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPathOfImage_args.class, metaDataMap);
    }

    public getPathOfImage_args() {
    }

    public getPathOfImage_args(
      String name)
    {
      this();
      this.name = name;
    }

    /**
     * Performs a deep copy on <i>other</i>.
     */
    public getPathOfImage_args(getPathOfImage_args other) {
      if (other.isSetName()) {
        this.name = other.name;
      }
    }

    public getPathOfImage_args deepCopy() {
      return new getPathOfImage_args(this);
    }

    @Override
    public void clear() {
      this.name = null;
    }

    public String getName() {
      return this.name;
    }

    public getPathOfImage_args setName(String name) {
      this.name = name;
      return this;
    }

    public void unsetName() {
      this.name = null;
    }

    /** Returns true if field name is set (has been assigned a value) and false otherwise */
    public boolean isSetName() {
      return this.name != null;
    }

    public void setNameIsSet(boolean value) {
      if (!value) {
        this.name = null;
      }
    }

    public void setFieldValue(_Fields field, Object value) {
      switch (field) {
      case NAME:
        if (value == null) {
          unsetName();
        } else {
          setName((String)value);
        }
        break;

      }
    }

    public Object getFieldValue(_Fields field) {
      switch (field) {
      case NAME:
        return getName();

      }
      throw new IllegalStateException();
    }

    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
    public boolean isSet(_Fields field) {
      if (field == null) {
        throw new IllegalArgumentException();
      }

      switch (field) {
      case NAME:
        return isSetName();
      }
      throw new IllegalStateException();
    }

    @Override
    public boolean equals(Object that) {
      if (that == null)
        return false;
      if (that instanceof getPathOfImage_args)
        return this.equals((getPathOfImage_args)that);
      return false;
    }

    public boolean equals(getPathOfImage_args that) {
      if (that == null)
        return false;

      boolean this_present_name = true && this.isSetName();
      boolean that_present_name = true && that.isSetName();
      if (this_present_name || that_present_name) {
        if (!(this_present_name && that_present_name))
          return false;
        if (!this.name.equals(that.name))
          return false;
      }

      return true;
    }

    @Override
    public int hashCode() {
      return 0;
    }

    @Override
    public int compareTo(getPathOfImage_args other) {
      if (!getClass().equals(other.getClass())) {
        return getClass().getName().compareTo(other.getClass().getName());
      }

      int lastComparison = 0;

      lastComparison = Boolean.valueOf(isSetName()).compareTo(other.isSetName());
      if (lastComparison != 0) {
        return lastComparison;
      }
      if (isSetName()) {
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, other.name);
        if (lastComparison != 0) {
          return lastComparison;
        }
      }
      return 0;
    }

    public _Fields fieldForId(int fieldId) {
      return _Fields.findByThriftId(fieldId);
    }

    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
      schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
    }

    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
      schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
    }

    @Override
    public String toString() {
      StringBuilder sb = new StringBuilder("getPathOfImage_args(");
      boolean first = true;

      sb.append("name:");
      if (this.name == null) {
        sb.append("null");
      } else {
        sb.append(this.name);
      }
      first = false;
      sb.append(")");
      return sb.toString();
    }

    public void validate() throws org.apache.thrift.TException {
      // check for required fields
      // check for sub-struct validity
    }

    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
      try {
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
      } catch (org.apache.thrift.TException te) {
        throw new java.io.IOException(te);
      }
    }

    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
      try {
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
      } catch (org.apache.thrift.TException te) {
        throw new java.io.IOException(te);
      }
    }

    private static class getPathOfImage_argsStandardSchemeFactory implements SchemeFactory {
      public getPathOfImage_argsStandardScheme getScheme() {
        return new getPathOfImage_argsStandardScheme();
      }
    }

    private static class getPathOfImage_argsStandardScheme extends StandardScheme<getPathOfImage_args> {

      public void read(org.apache.thrift.protocol.TProtocol iprot, getPathOfImage_args struct) throws org.apache.thrift.TException {
        org.apache.thrift.protocol.TField schemeField;
        iprot.readStructBegin();
        while (true)
        {
          schemeField = iprot.readFieldBegin();
          if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
            break;
          }
          switch (schemeField.id) {
            case -1: // NAME
              if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
                struct.name = iprot.readString();
                struct.setNameIsSet(true);
              } else { 
                org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
              }
              break;
            default:
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
          }
          iprot.readFieldEnd();
        }
        iprot.readStructEnd();

        // check for required fields of primitive type, which can't be checked in the validate method
        struct.validate();
      }

      public void write(org.apache.thrift.protocol.TProtocol oprot, getPathOfImage_args struct) throws org.apache.thrift.TException {
        struct.validate();

        oprot.writeStructBegin(STRUCT_DESC);
        if (struct.name != null) {
          oprot.writeFieldBegin(NAME_FIELD_DESC);
          oprot.writeString(struct.name);
          oprot.writeFieldEnd();
        }
        oprot.writeFieldStop();
        oprot.writeStructEnd();
      }

    }

    private static class getPathOfImage_argsTupleSchemeFactory implements SchemeFactory {
      public getPathOfImage_argsTupleScheme getScheme() {
        return new getPathOfImage_argsTupleScheme();
      }
    }

    private static class getPathOfImage_argsTupleScheme extends TupleScheme<getPathOfImage_args> {

      @Override
      public void write(org.apache.thrift.protocol.TProtocol prot, getPathOfImage_args struct) throws org.apache.thrift.TException {
        TTupleProtocol oprot = (TTupleProtocol) prot;
        BitSet optionals = new BitSet();
        if (struct.isSetName()) {
          optionals.set(0);
        }
        oprot.writeBitSet(optionals, 1);
        if (struct.isSetName()) {
          oprot.writeString(struct.name);
        }
      }

      @Override
      public void read(org.apache.thrift.protocol.TProtocol prot, getPathOfImage_args struct) throws org.apache.thrift.TException {
        TTupleProtocol iprot = (TTupleProtocol) prot;
        BitSet incoming = iprot.readBitSet(1);
        if (incoming.get(0)) {
          struct.name = iprot.readString();
          struct.setNameIsSet(true);
        }
      }
    }

  }

  public static class getPathOfImage_result implements org.apache.thrift.TBase<getPathOfImage_result, getPathOfImage_result._Fields>, java.io.Serializable, Cloneable, Comparable<getPathOfImage_result>   {
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPathOfImage_result");

    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRING, (short)0);

    private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
    static {
      schemes.put(StandardScheme.class, new getPathOfImage_resultStandardSchemeFactory());
      schemes.put(TupleScheme.class, new getPathOfImage_resultTupleSchemeFactory());
    }

    public String success; // required

    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
      SUCCESS((short)0, "success");

      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();

      static {
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
          byName.put(field.getFieldName(), field);
        }
      }

      /**
       * Find the _Fields constant that matches fieldId, or null if its not found.
       */
      public static _Fields findByThriftId(int fieldId) {
        switch(fieldId) {
          case 0: // SUCCESS
            return SUCCESS;
          default:
            return null;
        }
      }

      /**
       * Find the _Fields constant that matches fieldId, throwing an exception
       * if it is not found.
       */
      public static _Fields findByThriftIdOrThrow(int fieldId) {
        _Fields fields = findByThriftId(fieldId);
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
        return fields;
      }

      /**
       * Find the _Fields constant that matches name, or null if its not found.
       */
      public static _Fields findByName(String name) {
        return byName.get(name);
      }

      private final short _thriftId;
      private final String _fieldName;

      _Fields(short thriftId, String fieldName) {
        _thriftId = thriftId;
        _fieldName = fieldName;
      }

      public short getThriftFieldId() {
        return _thriftId;
      }

      public String getFieldName() {
        return _fieldName;
      }
    }

    // isset id assignments
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
    static {
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
      metaDataMap = Collections.unmodifiableMap(tmpMap);
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPathOfImage_result.class, metaDataMap);
    }

    public getPathOfImage_result() {
    }

    public getPathOfImage_result(
      String success)
    {
      this();
      this.success = success;
    }

    /**
     * Performs a deep copy on <i>other</i>.
     */
    public getPathOfImage_result(getPathOfImage_result other) {
      if (other.isSetSuccess()) {
        this.success = other.success;
      }
    }

    public getPathOfImage_result deepCopy() {
      return new getPathOfImage_result(this);
    }

    @Override
    public void clear() {
      this.success = null;
    }

    public String getSuccess() {
      return this.success;
    }

    public getPathOfImage_result setSuccess(String success) {
      this.success = success;
      return this;
    }

    public void unsetSuccess() {
      this.success = null;
    }

    /** Returns true if field success is set (has been assigned a value) and false otherwise */
    public boolean isSetSuccess() {
      return this.success != null;
    }

    public void setSuccessIsSet(boolean value) {
      if (!value) {
        this.success = null;
      }
    }

    public void setFieldValue(_Fields field, Object value) {
      switch (field) {
      case SUCCESS:
        if (value == null) {
          unsetSuccess();
        } else {
          setSuccess((String)value);
        }
        break;

      }
    }

    public Object getFieldValue(_Fields field) {
      switch (field) {
      case SUCCESS:
        return getSuccess();

      }
      throw new IllegalStateException();
    }

    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
    public boolean isSet(_Fields field) {
      if (field == null) {
        throw new IllegalArgumentException();
      }

      switch (field) {
      case SUCCESS:
        return isSetSuccess();
      }
      throw new IllegalStateException();
    }

    @Override
    public boolean equals(Object that) {
      if (that == null)
        return false;
      if (that instanceof getPathOfImage_result)
        return this.equals((getPathOfImage_result)that);
      return false;
    }

    public boolean equals(getPathOfImage_result that) {
      if (that == null)
        return false;

      boolean this_present_success = true && this.isSetSuccess();
      boolean that_present_success = true && that.isSetSuccess();
      if (this_present_success || that_present_success) {
        if (!(this_present_success && that_present_success))
          return false;
        if (!this.success.equals(that.success))
          return false;
      }

      return true;
    }

    @Override
    public int hashCode() {
      return 0;
    }

    @Override
    public int compareTo(getPathOfImage_result other) {
      if (!getClass().equals(other.getClass())) {
        return getClass().getName().compareTo(other.getClass().getName());
      }

      int lastComparison = 0;

      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
      if (lastComparison != 0) {
        return lastComparison;
      }
      if (isSetSuccess()) {
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
        if (lastComparison != 0) {
          return lastComparison;
        }
      }
      return 0;
    }

    public _Fields fieldForId(int fieldId) {
      return _Fields.findByThriftId(fieldId);
    }

    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
      schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
    }

    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
      schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
      }

    @Override
    public String toString() {
      StringBuilder sb = new StringBuilder("getPathOfImage_result(");
      boolean first = true;

      sb.append("success:");
      if (this.success == null) {
        sb.append("null");
      } else {
        sb.append(this.success);
      }
      first = false;
      sb.append(")");
      return sb.toString();
    }

    public void validate() throws org.apache.thrift.TException {
      // check for required fields
      // check for sub-struct validity
    }

    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
      try {
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
      } catch (org.apache.thrift.TException te) {
        throw new java.io.IOException(te);
      }
    }

    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
      try {
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
      } catch (org.apache.thrift.TException te) {
        throw new java.io.IOException(te);
      }
    }

    private static class getPathOfImage_resultStandardSchemeFactory implements SchemeFactory {
      public getPathOfImage_resultStandardScheme getScheme() {
        return new getPathOfImage_resultStandardScheme();
      }
    }

    private static class getPathOfImage_resultStandardScheme extends StandardScheme<getPathOfImage_result> {

      public void read(org.apache.thrift.protocol.TProtocol iprot, getPathOfImage_result struct) throws org.apache.thrift.TException {
        org.apache.thrift.protocol.TField schemeField;
        iprot.readStructBegin();
        while (true)
        {
          schemeField = iprot.readFieldBegin();
          if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
            break;
          }
          switch (schemeField.id) {
            case 0: // SUCCESS
              if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
                struct.success = iprot.readString();
                struct.setSuccessIsSet(true);
              } else { 
                org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
              }
              break;
            default:
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
          }
          iprot.readFieldEnd();
        }
        iprot.readStructEnd();

        // check for required fields of primitive type, which can't be checked in the validate method
        struct.validate();
      }

      public void write(org.apache.thrift.protocol.TProtocol oprot, getPathOfImage_result struct) throws org.apache.thrift.TException {
        struct.validate();

        oprot.writeStructBegin(STRUCT_DESC);
        if (struct.success != null) {
          oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
          oprot.writeString(struct.success);
          oprot.writeFieldEnd();
        }
        oprot.writeFieldStop();
        oprot.writeStructEnd();
      }

    }

    private static class getPathOfImage_resultTupleSchemeFactory implements SchemeFactory {
      public getPathOfImage_resultTupleScheme getScheme() {
        return new getPathOfImage_resultTupleScheme();
      }
    }

    private static class getPathOfImage_resultTupleScheme extends TupleScheme<getPathOfImage_result> {

      @Override
      public void write(org.apache.thrift.protocol.TProtocol prot, getPathOfImage_result struct) throws org.apache.thrift.TException {
        TTupleProtocol oprot = (TTupleProtocol) prot;
        BitSet optionals = new BitSet();
        if (struct.isSetSuccess()) {
          optionals.set(0);
        }
        oprot.writeBitSet(optionals, 1);
        if (struct.isSetSuccess()) {
          oprot.writeString(struct.success);
        }
      }

      @Override
      public void read(org.apache.thrift.protocol.TProtocol prot, getPathOfImage_result struct) throws org.apache.thrift.TException {
        TTupleProtocol iprot = (TTupleProtocol) prot;
        BitSet incoming = iprot.readBitSet(1);
        if (incoming.get(0)) {
          struct.success = iprot.readString();
          struct.setSuccessIsSet(true);
        }
      }
    }

  }

  public static class writeVLdata_args implements org.apache.thrift.TBase<writeVLdata_args, writeVLdata_args._Fields>, java.io.Serializable, Cloneable, Comparable<writeVLdata_args>   {
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("writeVLdata_args");

    private static final org.apache.thrift.protocol.TField IMAGENAME_FIELD_DESC = new org.apache.thrift.protocol.TField("imagename", org.apache.thrift.protocol.TType.STRING, (short)-1);
    private static final org.apache.thrift.protocol.TField FIRSTNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("firstname", org.apache.thrift.protocol.TType.STRING, (short)-2);
    private static final org.apache.thrift.protocol.TField LASTNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("lastname", org.apache.thrift.protocol.TType.STRING, (short)-3);
    private static final org.apache.thrift.protocol.TField UNIVERSITY_FIELD_DESC = new org.apache.thrift.protocol.TField("university", org.apache.thrift.protocol.TType.STRING, (short)-4);
    private static final org.apache.thrift.protocol.TField MAIL_FIELD_DESC = new org.apache.thrift.protocol.TField("Mail", org.apache.thrift.protocol.TType.STRING, (short)-5);
    private static final org.apache.thrift.protocol.TField TEL_FIELD_DESC = new org.apache.thrift.protocol.TField("Tel", org.apache.thrift.protocol.TType.STRING, (short)-6);
    private static final org.apache.thrift.protocol.TField FAK_FIELD_DESC = new org.apache.thrift.protocol.TField("Fak", org.apache.thrift.protocol.TType.STRING, (short)-7);
    private static final org.apache.thrift.protocol.TField LICENSE_FIELD_DESC = new org.apache.thrift.protocol.TField("license", org.apache.thrift.protocol.TType.BOOL, (short)-8);
    private static final org.apache.thrift.protocol.TField INTERNET_FIELD_DESC = new org.apache.thrift.protocol.TField("internet", org.apache.thrift.protocol.TType.BOOL, (short)-9);
    private static final org.apache.thrift.protocol.TField RAM_FIELD_DESC = new org.apache.thrift.protocol.TField("ram", org.apache.thrift.protocol.TType.I64, (short)-10);
    private static final org.apache.thrift.protocol.TField CPU_FIELD_DESC = new org.apache.thrift.protocol.TField("cpu", org.apache.thrift.protocol.TType.I64, (short)-11);

    private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
    static {
      schemes.put(StandardScheme.class, new writeVLdata_argsStandardSchemeFactory());
      schemes.put(TupleScheme.class, new writeVLdata_argsTupleSchemeFactory());
    }

    public String imagename; // required
    public String firstname; // required
    public String lastname; // required
    public String university; // required
    public String Mail; // required
    public String Tel; // required
    public String Fak; // required
    public boolean license; // required
    public boolean internet; // required
    public long ram; // required
    public long cpu; // required

    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
      IMAGENAME((short)-1, "imagename"),
      FIRSTNAME((short)-2, "firstname"),
      LASTNAME((short)-3, "lastname"),
      UNIVERSITY((short)-4, "university"),
      MAIL((short)-5, "Mail"),
      TEL((short)-6, "Tel"),
      FAK((short)-7, "Fak"),
      LICENSE((short)-8, "license"),
      INTERNET((short)-9, "internet"),
      RAM((short)-10, "ram"),
      CPU((short)-11, "cpu");

      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();

      static {
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
          byName.put(field.getFieldName(), field);
        }
      }

      /**
       * Find the _Fields constant that matches fieldId, or null if its not found.
       */
      public static _Fields findByThriftId(int fieldId) {
        switch(fieldId) {
          case -1: // IMAGENAME
            return IMAGENAME;
          case -2: // FIRSTNAME
            return FIRSTNAME;
          case -3: // LASTNAME
            return LASTNAME;
          case -4: // UNIVERSITY
            return UNIVERSITY;
          case -5: // MAIL
            return MAIL;
          case -6: // TEL
            return TEL;
          case -7: // FAK
            return FAK;
          case -8: // LICENSE
            return LICENSE;
          case -9: // INTERNET
            return INTERNET;
          case -10: // RAM
            return RAM;
          case -11: // CPU
            return CPU;
          default:
            return null;
        }
      }

      /**
       * Find the _Fields constant that matches fieldId, throwing an exception
       * if it is not found.
       */
      public static _Fields findByThriftIdOrThrow(int fieldId) {
        _Fields fields = findByThriftId(fieldId);
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
        return fields;
      }

      /**
       * Find the _Fields constant that matches name, or null if its not found.
       */
      public static _Fields findByName(String name) {
        return byName.get(name);
      }

      private final short _thriftId;
      private final String _fieldName;

      _Fields(short thriftId, String fieldName) {
        _thriftId = thriftId;
        _fieldName = fieldName;
      }

      public short getThriftFieldId() {
        return _thriftId;
      }

      public String getFieldName() {
        return _fieldName;
      }
    }

    // isset id assignments
    private static final int __LICENSE_ISSET_ID = 0;
    private static final int __INTERNET_ISSET_ID = 1;
    private static final int __RAM_ISSET_ID = 2;
    private static final int __CPU_ISSET_ID = 3;
    private byte __isset_bitfield = 0;
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
    static {
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
      tmpMap.put(_Fields.IMAGENAME, new org.apache.thrift.meta_data.FieldMetaData("imagename", org.apache.thrift.TFieldRequirementType.DEFAULT, 
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
      tmpMap.put(_Fields.FIRSTNAME, new org.apache.thrift.meta_data.FieldMetaData("firstname", org.apache.thrift.TFieldRequirementType.DEFAULT, 
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
      tmpMap.put(_Fields.LASTNAME, new org.apache.thrift.meta_data.FieldMetaData("lastname", org.apache.thrift.TFieldRequirementType.DEFAULT, 
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
      tmpMap.put(_Fields.UNIVERSITY, new org.apache.thrift.meta_data.FieldMetaData("university", org.apache.thrift.TFieldRequirementType.DEFAULT, 
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
      tmpMap.put(_Fields.MAIL, new org.apache.thrift.meta_data.FieldMetaData("Mail", org.apache.thrift.TFieldRequirementType.DEFAULT, 
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
      tmpMap.put(_Fields.TEL, new org.apache.thrift.meta_data.FieldMetaData("Tel", org.apache.thrift.TFieldRequirementType.DEFAULT, 
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
      tmpMap.put(_Fields.FAK, new org.apache.thrift.meta_data.FieldMetaData("Fak", org.apache.thrift.TFieldRequirementType.DEFAULT, 
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
      tmpMap.put(_Fields.LICENSE, new org.apache.thrift.meta_data.FieldMetaData("license", org.apache.thrift.TFieldRequirementType.DEFAULT, 
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
      tmpMap.put(_Fields.INTERNET, new org.apache.thrift.meta_data.FieldMetaData("internet", org.apache.thrift.TFieldRequirementType.DEFAULT, 
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
      tmpMap.put(_Fields.RAM, new org.apache.thrift.meta_data.FieldMetaData("ram", org.apache.thrift.TFieldRequirementType.DEFAULT, 
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64          , "int")));
      tmpMap.put(_Fields.CPU, new org.apache.thrift.meta_data.FieldMetaData("cpu", org.apache.thrift.TFieldRequirementType.DEFAULT, 
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64          , "int")));
      metaDataMap = Collections.unmodifiableMap(tmpMap);
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(writeVLdata_args.class, metaDataMap);
    }

    public writeVLdata_args() {
    }

    public writeVLdata_args(
      String imagename,
      String firstname,
      String lastname,
      String university,
      String Mail,
      String Tel,
      String Fak,
      boolean license,
      boolean internet,
      long ram,
      long cpu)
    {
      this();
      this.imagename = imagename;
      this.firstname = firstname;
      this.lastname = lastname;
      this.university = university;
      this.Mail = Mail;
      this.Tel = Tel;
      this.Fak = Fak;
      this.license = license;
      setLicenseIsSet(true);
      this.internet = internet;
      setInternetIsSet(true);
      this.ram = ram;
      setRamIsSet(true);
      this.cpu = cpu;
      setCpuIsSet(true);
    }

    /**
     * Performs a deep copy on <i>other</i>.
     */
    public writeVLdata_args(writeVLdata_args other) {
      __isset_bitfield = other.__isset_bitfield;
      if (other.isSetImagename()) {
        this.imagename = other.imagename;
      }
      if (other.isSetFirstname()) {
        this.firstname = other.firstname;
      }
      if (other.isSetLastname()) {
        this.lastname = other.lastname;
      }
      if (other.isSetUniversity()) {
        this.university = other.university;
      }
      if (other.isSetMail()) {
        this.Mail = other.Mail;
      }
      if (other.isSetTel()) {
        this.Tel = other.Tel;
      }
      if (other.isSetFak()) {
        this.Fak = other.Fak;
      }
      this.license = other.license;
      this.internet = other.internet;
      this.ram = other.ram;
      this.cpu = other.cpu;
    }

    public writeVLdata_args deepCopy() {
      return new writeVLdata_args(this);
    }

    @Override
    public void clear() {
      this.imagename = null;
      this.firstname = null;
      this.lastname = null;
      this.university = null;
      this.Mail = null;
      this.Tel = null;
      this.Fak = null;
      setLicenseIsSet(false);
      this.license = false;
      setInternetIsSet(false);
      this.internet = false;
      setRamIsSet(false);
      this.ram = 0;
      setCpuIsSet(false);
      this.cpu = 0;
    }

    public String getImagename() {
      return this.imagename;
    }

    public writeVLdata_args setImagename(String imagename) {
      this.imagename = imagename;
      return this;
    }

    public void unsetImagename() {
      this.imagename = null;
    }

    /** Returns true if field imagename is set (has been assigned a value) and false otherwise */
    public boolean isSetImagename() {
      return this.imagename != null;
    }

    public void setImagenameIsSet(boolean value) {
      if (!value) {
        this.imagename = null;
      }
    }

    public String getFirstname() {
      return this.firstname;
    }

    public writeVLdata_args setFirstname(String firstname) {
      this.firstname = firstname;
      return this;
    }

    public void unsetFirstname() {
      this.firstname = null;
    }

    /** Returns true if field firstname is set (has been assigned a value) and false otherwise */
    public boolean isSetFirstname() {
      return this.firstname != null;
    }

    public void setFirstnameIsSet(boolean value) {
      if (!value) {
        this.firstname = null;
      }
    }

    public String getLastname() {
      return this.lastname;
    }

    public writeVLdata_args setLastname(String lastname) {
      this.lastname = lastname;
      return this;
    }

    public void unsetLastname() {
      this.lastname = null;
    }

    /** Returns true if field lastname is set (has been assigned a value) and false otherwise */
    public boolean isSetLastname() {
      return this.lastname != null;
    }

    public void setLastnameIsSet(boolean value) {
      if (!value) {
        this.lastname = null;
      }
    }

    public String getUniversity() {
      return this.university;
    }

    public writeVLdata_args setUniversity(String university) {
      this.university = university;
      return this;
    }

    public void unsetUniversity() {
      this.university = null;
    }

    /** Returns true if field university is set (has been assigned a value) and false otherwise */
    public boolean isSetUniversity() {
      return this.university != null;
    }

    public void setUniversityIsSet(boolean value) {
      if (!value) {
        this.university = null;
      }
    }

    public String getMail() {
      return this.Mail;
    }

    public writeVLdata_args setMail(String Mail) {
      this.Mail = Mail;
      return this;
    }

    public void unsetMail() {
      this.Mail = null;
    }

    /** Returns true if field Mail is set (has been assigned a value) and false otherwise */
    public boolean isSetMail() {
      return this.Mail != null;
    }

    public void setMailIsSet(boolean value) {
      if (!value) {
        this.Mail = null;
      }
    }

    public String getTel() {
      return this.Tel;
    }

    public writeVLdata_args setTel(String Tel) {
      this.Tel = Tel;
      return this;
    }

    public void unsetTel() {
      this.Tel = null;
    }

    /** Returns true if field Tel is set (has been assigned a value) and false otherwise */
    public boolean isSetTel() {
      return this.Tel != null;
    }

    public void setTelIsSet(boolean value) {
      if (!value) {
        this.Tel = null;
      }
    }

    public String getFak() {
      return this.Fak;
    }

    public writeVLdata_args setFak(String Fak) {
      this.Fak = Fak;
      return this;
    }

    public void unsetFak() {
      this.Fak = null;
    }

    /** Returns true if field Fak is set (has been assigned a value) and false otherwise */
    public boolean isSetFak() {
      return this.Fak != null;
    }

    public void setFakIsSet(boolean value) {
      if (!value) {
        this.Fak = null;
      }
    }

    public boolean isLicense() {
      return this.license;
    }

    public writeVLdata_args setLicense(boolean license) {
      this.license = license;
      setLicenseIsSet(true);
      return this;
    }

    public void unsetLicense() {
      __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __LICENSE_ISSET_ID);
    }

    /** Returns true if field license is set (has been assigned a value) and false otherwise */
    public boolean isSetLicense() {
      return EncodingUtils.testBit(__isset_bitfield, __LICENSE_ISSET_ID);
    }

    public void setLicenseIsSet(boolean value) {
      __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __LICENSE_ISSET_ID, value);
    }

    public boolean isInternet() {
      return this.internet;
    }

    public writeVLdata_args setInternet(boolean internet) {
      this.internet = internet;
      setInternetIsSet(true);
      return this;
    }

    public void unsetInternet() {
      __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __INTERNET_ISSET_ID);
    }

    /** Returns true if field internet is set (has been assigned a value) and false otherwise */
    public boolean isSetInternet() {
      return EncodingUtils.testBit(__isset_bitfield, __INTERNET_ISSET_ID);
    }

    public void setInternetIsSet(boolean value) {
      __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __INTERNET_ISSET_ID, value);
    }

    public long getRam() {
      return this.ram;
    }

    public writeVLdata_args setRam(long ram) {
      this.ram = ram;
      setRamIsSet(true);
      return this;
    }

    public void unsetRam() {
      __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RAM_ISSET_ID);
    }

    /** Returns true if field ram is set (has been assigned a value) and false otherwise */
    public boolean isSetRam() {
      return EncodingUtils.testBit(__isset_bitfield, __RAM_ISSET_ID);
    }

    public void setRamIsSet(boolean value) {
      __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RAM_ISSET_ID, value);
    }

    public long getCpu() {
      return this.cpu;
    }

    public writeVLdata_args setCpu(long cpu) {
      this.cpu = cpu;
      setCpuIsSet(true);
      return this;
    }

    public void unsetCpu() {
      __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __CPU_ISSET_ID);
    }

    /** Returns true if field cpu is set (has been assigned a value) and false otherwise */
    public boolean isSetCpu() {
      return EncodingUtils.testBit(__isset_bitfield, __CPU_ISSET_ID);
    }

    public void setCpuIsSet(boolean value) {
      __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __CPU_ISSET_ID, value);
    }

    public void setFieldValue(_Fields field, Object value) {
      switch (field) {
      case IMAGENAME:
        if (value == null) {
          unsetImagename();
        } else {
          setImagename((String)value);
        }
        break;

      case FIRSTNAME:
        if (value == null) {
          unsetFirstname();
        } else {
          setFirstname((String)value);
        }
        break;

      case LASTNAME:
        if (value == null) {
          unsetLastname();
        } else {
          setLastname((String)value);
        }
        break;

      case UNIVERSITY:
        if (value == null) {
          unsetUniversity();
        } else {
          setUniversity((String)value);
        }
        break;

      case MAIL:
        if (value == null) {
          unsetMail();
        } else {
          setMail((String)value);
        }
        break;

      case TEL:
        if (value == null) {
          unsetTel();
        } else {
          setTel((String)value);
        }
        break;

      case FAK:
        if (value == null) {
          unsetFak();
        } else {
          setFak((String)value);
        }
        break;

      case LICENSE:
        if (value == null) {
          unsetLicense();
        } else {
          setLicense((Boolean)value);
        }
        break;

      case INTERNET:
        if (value == null) {
          unsetInternet();
        } else {
          setInternet((Boolean)value);
        }
        break;

      case RAM:
        if (value == null) {
          unsetRam();
        } else {
          setRam((Long)value);
        }
        break;

      case CPU:
        if (value == null) {
          unsetCpu();
        } else {
          setCpu((Long)value);
        }
        break;

      }
    }

    public Object getFieldValue(_Fields field) {
      switch (field) {
      case IMAGENAME:
        return getImagename();

      case FIRSTNAME:
        return getFirstname();

      case LASTNAME:
        return getLastname();

      case UNIVERSITY:
        return getUniversity();

      case MAIL:
        return getMail();

      case TEL:
        return getTel();

      case FAK:
        return getFak();

      case LICENSE:
        return Boolean.valueOf(isLicense());

      case INTERNET:
        return Boolean.valueOf(isInternet());

      case RAM:
        return Long.valueOf(getRam());

      case CPU:
        return Long.valueOf(getCpu());

      }
      throw new IllegalStateException();
    }

    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
    public boolean isSet(_Fields field) {
      if (field == null) {
        throw new IllegalArgumentException();
      }

      switch (field) {
      case IMAGENAME:
        return isSetImagename();
      case FIRSTNAME:
        return isSetFirstname();
      case LASTNAME:
        return isSetLastname();
      case UNIVERSITY:
        return isSetUniversity();
      case MAIL:
        return isSetMail();
      case TEL:
        return isSetTel();
      case FAK:
        return isSetFak();
      case LICENSE:
        return isSetLicense();
      case INTERNET:
        return isSetInternet();
      case RAM:
        return isSetRam();
      case CPU:
        return isSetCpu();
      }
      throw new IllegalStateException();
    }

    @Override
    public boolean equals(Object that) {
      if (that == null)
        return false;
      if (that instanceof writeVLdata_args)
        return this.equals((writeVLdata_args)that);
      return false;
    }

    public boolean equals(writeVLdata_args that) {
      if (that == null)
        return false;

      boolean this_present_imagename = true && this.isSetImagename();
      boolean that_present_imagename = true && that.isSetImagename();
      if (this_present_imagename || that_present_imagename) {
        if (!(this_present_imagename && that_present_imagename))
          return false;
        if (!this.imagename.equals(that.imagename))
          return false;
      }

      boolean this_present_firstname = true && this.isSetFirstname();
      boolean that_present_firstname = true && that.isSetFirstname();
      if (this_present_firstname || that_present_firstname) {
        if (!(this_present_firstname && that_present_firstname))
          return false;
        if (!this.firstname.equals(that.firstname))
          return false;
      }

      boolean this_present_lastname = true && this.isSetLastname();
      boolean that_present_lastname = true && that.isSetLastname();
      if (this_present_lastname || that_present_lastname) {
        if (!(this_present_lastname && that_present_lastname))
          return false;
        if (!this.lastname.equals(that.lastname))
          return false;
      }

      boolean this_present_university = true && this.isSetUniversity();
      boolean that_present_university = true && that.isSetUniversity();
      if (this_present_university || that_present_university) {
        if (!(this_present_university && that_present_university))
          return false;
        if (!this.university.equals(that.university))
          return false;
      }

      boolean this_present_Mail = true && this.isSetMail();
      boolean that_present_Mail = true && that.isSetMail();
      if (this_present_Mail || that_present_Mail) {
        if (!(this_present_Mail && that_present_Mail))
          return false;
        if (!this.Mail.equals(that.Mail))
          return false;
      }

      boolean this_present_Tel = true && this.isSetTel();
      boolean that_present_Tel = true && that.isSetTel();
      if (this_present_Tel || that_present_Tel) {
        if (!(this_present_Tel && that_present_Tel))
          return false;
        if (!this.Tel.equals(that.Tel))
          return false;
      }

      boolean this_present_Fak = true && this.isSetFak();
      boolean that_present_Fak = true && that.isSetFak();
      if (this_present_Fak || that_present_Fak) {
        if (!(this_present_Fak && that_present_Fak))
          return false;
        if (!this.Fak.equals(that.Fak))
          return false;
      }

      boolean this_present_license = true;
      boolean that_present_license = true;
      if (this_present_license || that_present_license) {
        if (!(this_present_license && that_present_license))
          return false;
        if (this.license != that.license)
          return false;
      }

      boolean this_present_internet = true;
      boolean that_present_internet = true;
      if (this_present_internet || that_present_internet) {
        if (!(this_present_internet && that_present_internet))
          return false;
        if (this.internet != that.internet)
          return false;
      }

      boolean this_present_ram = true;
      boolean that_present_ram = true;
      if (this_present_ram || that_present_ram) {
        if (!(this_present_ram && that_present_ram))
          return false;
        if (this.ram != that.ram)
          return false;
      }

      boolean this_present_cpu = true;
      boolean that_present_cpu = true;
      if (this_present_cpu || that_present_cpu) {
        if (!(this_present_cpu && that_present_cpu))
          return false;
        if (this.cpu != that.cpu)
          return false;
      }

      return true;
    }

    @Override
    public int hashCode() {
      return 0;
    }

    @Override
    public int compareTo(writeVLdata_args other) {
      if (!getClass().equals(other.getClass())) {
        return getClass().getName().compareTo(other.getClass().getName());
      }

      int lastComparison = 0;

      lastComparison = Boolean.valueOf(isSetImagename()).compareTo(other.isSetImagename());
      if (lastComparison != 0) {
        return lastComparison;
      }
      if (isSetImagename()) {
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imagename, other.imagename);
        if (lastComparison != 0) {
          return lastComparison;
        }
      }
      lastComparison = Boolean.valueOf(isSetFirstname()).compareTo(other.isSetFirstname());
      if (lastComparison != 0) {
        return lastComparison;
      }
      if (isSetFirstname()) {
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.firstname, other.firstname);
        if (lastComparison != 0) {
          return lastComparison;
        }
      }
      lastComparison = Boolean.valueOf(isSetLastname()).compareTo(other.isSetLastname());
      if (lastComparison != 0) {
        return lastComparison;
      }
      if (isSetLastname()) {
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastname, other.lastname);
        if (lastComparison != 0) {
          return lastComparison;
        }
      }
      lastComparison = Boolean.valueOf(isSetUniversity()).compareTo(other.isSetUniversity());
      if (lastComparison != 0) {
        return lastComparison;
      }
      if (isSetUniversity()) {
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.university, other.university);
        if (lastComparison != 0) {
          return lastComparison;
        }
      }
      lastComparison = Boolean.valueOf(isSetMail()).compareTo(other.isSetMail());
      if (lastComparison != 0) {
        return lastComparison;
      }
      if (isSetMail()) {
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.Mail, other.Mail);
        if (lastComparison != 0) {
          return lastComparison;
        }
      }
      lastComparison = Boolean.valueOf(isSetTel()).compareTo(other.isSetTel());
      if (lastComparison != 0) {
        return lastComparison;
      }
      if (isSetTel()) {
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.Tel, other.Tel);
        if (lastComparison != 0) {
          return lastComparison;
        }
      }
      lastComparison = Boolean.valueOf(isSetFak()).compareTo(other.isSetFak());
      if (lastComparison != 0) {
        return lastComparison;
      }
      if (isSetFak()) {
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.Fak, other.Fak);
        if (lastComparison != 0) {
          return lastComparison;
        }
      }
      lastComparison = Boolean.valueOf(isSetLicense()).compareTo(other.isSetLicense());
      if (lastComparison != 0) {
        return lastComparison;
      }
      if (isSetLicense()) {
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.license, other.license);
        if (lastComparison != 0) {
          return lastComparison;
        }
      }
      lastComparison = Boolean.valueOf(isSetInternet()).compareTo(other.isSetInternet());
      if (lastComparison != 0) {
        return lastComparison;
      }
      if (isSetInternet()) {
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.internet, other.internet);
        if (lastComparison != 0) {
          return lastComparison;
        }
      }
      lastComparison = Boolean.valueOf(isSetRam()).compareTo(other.isSetRam());
      if (lastComparison != 0) {
        return lastComparison;
      }
      if (isSetRam()) {
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ram, other.ram);
        if (lastComparison != 0) {
          return lastComparison;
        }
      }
      lastComparison = Boolean.valueOf(isSetCpu()).compareTo(other.isSetCpu());
      if (lastComparison != 0) {
        return lastComparison;
      }
      if (isSetCpu()) {
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cpu, other.cpu);
        if (lastComparison != 0) {
          return lastComparison;
        }
      }
      return 0;
    }

    public _Fields fieldForId(int fieldId) {
      return _Fields.findByThriftId(fieldId);
    }

    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
      schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
    }

    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
      schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
    }

    @Override
    public String toString() {
      StringBuilder sb = new StringBuilder("writeVLdata_args(");
      boolean first = true;

      sb.append("imagename:");
      if (this.imagename == null) {
        sb.append("null");
      } else {
        sb.append(this.imagename);
      }
      first = false;
      if (!first) sb.append(", ");
      sb.append("firstname:");
      if (this.firstname == null) {
        sb.append("null");
      } else {
        sb.append(this.firstname);
      }
      first = false;
      if (!first) sb.append(", ");
      sb.append("lastname:");
      if (this.lastname == null) {
        sb.append("null");
      } else {
        sb.append(this.lastname);
      }
      first = false;
      if (!first) sb.append(", ");
      sb.append("university:");
      if (this.university == null) {
        sb.append("null");
      } else {
        sb.append(this.university);
      }
      first = false;
      if (!first) sb.append(", ");
      sb.append("Mail:");
      if (this.Mail == null) {
        sb.append("null");
      } else {
        sb.append(this.Mail);
      }
      first = false;
      if (!first) sb.append(", ");
      sb.append("Tel:");
      if (this.Tel == null) {
        sb.append("null");
      } else {
        sb.append(this.Tel);
      }
      first = false;
      if (!first) sb.append(", ");
      sb.append("Fak:");
      if (this.Fak == null) {
        sb.append("null");
      } else {
        sb.append(this.Fak);
      }
      first = false;
      if (!first) sb.append(", ");
      sb.append("license:");
      sb.append(this.license);
      first = false;
      if (!first) sb.append(", ");
      sb.append("internet:");
      sb.append(this.internet);
      first = false;
      if (!first) sb.append(", ");
      sb.append("ram:");
      sb.append(this.ram);
      first = false;
      if (!first) sb.append(", ");
      sb.append("cpu:");
      sb.append(this.cpu);
      first = false;
      sb.append(")");
      return sb.toString();
    }

    public void validate() throws org.apache.thrift.TException {
      // check for required fields
      // check for sub-struct validity
    }

    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
      try {
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
      } catch (org.apache.thrift.TException te) {
        throw new java.io.IOException(te);
      }
    }

    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
      try {
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
        __isset_bitfield = 0;
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
      } catch (org.apache.thrift.TException te) {
        throw new java.io.IOException(te);
      }
    }

    private static class writeVLdata_argsStandardSchemeFactory implements SchemeFactory {
      public writeVLdata_argsStandardScheme getScheme() {
        return new writeVLdata_argsStandardScheme();
      }
    }

    private static class writeVLdata_argsStandardScheme extends StandardScheme<writeVLdata_args> {

      public void read(org.apache.thrift.protocol.TProtocol iprot, writeVLdata_args struct) throws org.apache.thrift.TException {
        org.apache.thrift.protocol.TField schemeField;
        iprot.readStructBegin();
        while (true)
        {
          schemeField = iprot.readFieldBegin();
          if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
            break;
          }
          switch (schemeField.id) {
            case -1: // IMAGENAME
              if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
                struct.imagename = iprot.readString();
                struct.setImagenameIsSet(true);
              } else { 
                org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
              }
              break;
            case -2: // FIRSTNAME
              if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
                struct.firstname = iprot.readString();
                struct.setFirstnameIsSet(true);
              } else { 
                org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
              }
              break;
            case -3: // LASTNAME
              if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
                struct.lastname = iprot.readString();
                struct.setLastnameIsSet(true);
              } else { 
                org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
              }
              break;
            case -4: // UNIVERSITY
              if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
                struct.university = iprot.readString();
                struct.setUniversityIsSet(true);
              } else { 
                org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
              }
              break;
            case -5: // MAIL
              if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
                struct.Mail = iprot.readString();
                struct.setMailIsSet(true);
              } else { 
                org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
              }
              break;
            case -6: // TEL
              if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
                struct.Tel = iprot.readString();
                struct.setTelIsSet(true);
              } else { 
                org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
              }
              break;
            case -7: // FAK
              if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
                struct.Fak = iprot.readString();
                struct.setFakIsSet(true);
              } else { 
                org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
              }
              break;
            case -8: // LICENSE
              if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) {
                struct.license = iprot.readBool();
                struct.setLicenseIsSet(true);
              } else { 
                org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
              }
              break;
            case -9: // INTERNET
              if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) {
                struct.internet = iprot.readBool();
                struct.setInternetIsSet(true);
              } else { 
                org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
              }
              break;
            case -10: // RAM
              if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
                struct.ram = iprot.readI64();
                struct.setRamIsSet(true);
              } else { 
                org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
              }
              break;
            case -11: // CPU
              if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
                struct.cpu = iprot.readI64();
                struct.setCpuIsSet(true);
              } else { 
                org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
              }
              break;
            default:
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
          }
          iprot.readFieldEnd();
        }
        iprot.readStructEnd();

        // check for required fields of primitive type, which can't be checked in the validate method
        struct.validate();
      }

      public void write(org.apache.thrift.protocol.TProtocol oprot, writeVLdata_args struct) throws org.apache.thrift.TException {
        struct.validate();

        oprot.writeStructBegin(STRUCT_DESC);
        oprot.writeFieldBegin(CPU_FIELD_DESC);
        oprot.writeI64(struct.cpu);
        oprot.writeFieldEnd();
        oprot.writeFieldBegin(RAM_FIELD_DESC);
        oprot.writeI64(struct.ram);
        oprot.writeFieldEnd();
        oprot.writeFieldBegin(INTERNET_FIELD_DESC);
        oprot.writeBool(struct.internet);
        oprot.writeFieldEnd();
        oprot.writeFieldBegin(LICENSE_FIELD_DESC);
        oprot.writeBool(struct.license);
        oprot.writeFieldEnd();
        if (struct.Fak != null) {
          oprot.writeFieldBegin(FAK_FIELD_DESC);
          oprot.writeString(struct.Fak);
          oprot.writeFieldEnd();
        }
        if (struct.Tel != null) {
          oprot.writeFieldBegin(TEL_FIELD_DESC);
          oprot.writeString(struct.Tel);
          oprot.writeFieldEnd();
        }
        if (struct.Mail != null) {
          oprot.writeFieldBegin(MAIL_FIELD_DESC);
          oprot.writeString(struct.Mail);
          oprot.writeFieldEnd();
        }
        if (struct.university != null) {
          oprot.writeFieldBegin(UNIVERSITY_FIELD_DESC);
          oprot.writeString(struct.university);
          oprot.writeFieldEnd();
        }
        if (struct.lastname != null) {
          oprot.writeFieldBegin(LASTNAME_FIELD_DESC);
          oprot.writeString(struct.lastname);
          oprot.writeFieldEnd();
        }
        if (struct.firstname != null) {
          oprot.writeFieldBegin(FIRSTNAME_FIELD_DESC);
          oprot.writeString(struct.firstname);
          oprot.writeFieldEnd();
        }
        if (struct.imagename != null) {
          oprot.writeFieldBegin(IMAGENAME_FIELD_DESC);
          oprot.writeString(struct.imagename);
          oprot.writeFieldEnd();
        }
        oprot.writeFieldStop();
        oprot.writeStructEnd();
      }

    }

    private static class writeVLdata_argsTupleSchemeFactory implements SchemeFactory {
      public writeVLdata_argsTupleScheme getScheme() {
        return new writeVLdata_argsTupleScheme();
      }
    }

    private static class writeVLdata_argsTupleScheme extends TupleScheme<writeVLdata_args> {

      @Override
      public void write(org.apache.thrift.protocol.TProtocol prot, writeVLdata_args struct) throws org.apache.thrift.TException {
        TTupleProtocol oprot = (TTupleProtocol) prot;
        BitSet optionals = new BitSet();
        if (struct.isSetImagename()) {
          optionals.set(0);
        }
        if (struct.isSetFirstname()) {
          optionals.set(1);
        }
        if (struct.isSetLastname()) {
          optionals.set(2);
        }
        if (struct.isSetUniversity()) {
          optionals.set(3);
        }
        if (struct.isSetMail()) {
          optionals.set(4);
        }
        if (struct.isSetTel()) {
          optionals.set(5);
        }
        if (struct.isSetFak()) {
          optionals.set(6);
        }
        if (struct.isSetLicense()) {
          optionals.set(7);
        }
        if (struct.isSetInternet()) {
          optionals.set(8);
        }
        if (struct.isSetRam()) {
          optionals.set(9);
        }
        if (struct.isSetCpu()) {
          optionals.set(10);
        }
        oprot.writeBitSet(optionals, 11);
        if (struct.isSetImagename()) {
          oprot.writeString(struct.imagename);
        }
        if (struct.isSetFirstname()) {
          oprot.writeString(struct.firstname);
        }
        if (struct.isSetLastname()) {
          oprot.writeString(struct.lastname);
        }
        if (struct.isSetUniversity()) {
          oprot.writeString(struct.university);
        }
        if (struct.isSetMail()) {
          oprot.writeString(struct.Mail);
        }
        if (struct.isSetTel()) {
          oprot.writeString(struct.Tel);
        }
        if (struct.isSetFak()) {
          oprot.writeString(struct.Fak);
        }
        if (struct.isSetLicense()) {
          oprot.writeBool(struct.license);
        }
        if (struct.isSetInternet()) {
          oprot.writeBool(struct.internet);
        }
        if (struct.isSetRam()) {
          oprot.writeI64(struct.ram);
        }
        if (struct.isSetCpu()) {
          oprot.writeI64(struct.cpu);
        }
      }

      @Override
      public void read(org.apache.thrift.protocol.TProtocol prot, writeVLdata_args struct) throws org.apache.thrift.TException {
        TTupleProtocol iprot = (TTupleProtocol) prot;
        BitSet incoming = iprot.readBitSet(11);
        if (incoming.get(0)) {
          struct.imagename = iprot.readString();
          struct.setImagenameIsSet(true);
        }
        if (incoming.get(1)) {
          struct.firstname = iprot.readString();
          struct.setFirstnameIsSet(true);
        }
        if (incoming.get(2)) {
          struct.lastname = iprot.readString();
          struct.setLastnameIsSet(true);
        }
        if (incoming.get(3)) {
          struct.university = iprot.readString();
          struct.setUniversityIsSet(true);
        }
        if (incoming.get(4)) {
          struct.Mail = iprot.readString();
          struct.setMailIsSet(true);
        }
        if (incoming.get(5)) {
          struct.Tel = iprot.readString();
          struct.setTelIsSet(true);
        }
        if (incoming.get(6)) {
          struct.Fak = iprot.readString();
          struct.setFakIsSet(true);
        }
        if (incoming.get(7)) {
          struct.license = iprot.readBool();
          struct.setLicenseIsSet(true);
        }
        if (incoming.get(8)) {
          struct.internet = iprot.readBool();
          struct.setInternetIsSet(true);
        }
        if (incoming.get(9)) {
          struct.ram = iprot.readI64();
          struct.setRamIsSet(true);
        }
        if (incoming.get(10)) {
          struct.cpu = iprot.readI64();
          struct.setCpuIsSet(true);
        }
      }
    }

  }

  public static class writeVLdata_result implements org.apache.thrift.TBase<writeVLdata_result, writeVLdata_result._Fields>, java.io.Serializable, Cloneable, Comparable<writeVLdata_result>   {
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("writeVLdata_result");

    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);

    private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
    static {
      schemes.put(StandardScheme.class, new writeVLdata_resultStandardSchemeFactory());
      schemes.put(TupleScheme.class, new writeVLdata_resultTupleSchemeFactory());
    }

    public boolean success; // required

    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
      SUCCESS((short)0, "success");

      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();

      static {
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
          byName.put(field.getFieldName(), field);
        }
      }

      /**
       * Find the _Fields constant that matches fieldId, or null if its not found.
       */
      public static _Fields findByThriftId(int fieldId) {
        switch(fieldId) {
          case 0: // SUCCESS
            return SUCCESS;
          default:
            return null;
        }
      }

      /**
       * Find the _Fields constant that matches fieldId, throwing an exception
       * if it is not found.
       */
      public static _Fields findByThriftIdOrThrow(int fieldId) {
        _Fields fields = findByThriftId(fieldId);
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
        return fields;
      }

      /**
       * Find the _Fields constant that matches name, or null if its not found.
       */
      public static _Fields findByName(String name) {
        return byName.get(name);
      }

      private final short _thriftId;
      private final String _fieldName;

      _Fields(short thriftId, String fieldName) {
        _thriftId = thriftId;
        _fieldName = fieldName;
      }

      public short getThriftFieldId() {
        return _thriftId;
      }

      public String getFieldName() {
        return _fieldName;
      }
    }

    // isset id assignments
    private static final int __SUCCESS_ISSET_ID = 0;
    private byte __isset_bitfield = 0;
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
    static {
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
      metaDataMap = Collections.unmodifiableMap(tmpMap);
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(writeVLdata_result.class, metaDataMap);
    }

    public writeVLdata_result() {
    }

    public writeVLdata_result(
      boolean success)
    {
      this();
      this.success = success;
      setSuccessIsSet(true);
    }

    /**
     * Performs a deep copy on <i>other</i>.
     */
    public writeVLdata_result(writeVLdata_result other) {
      __isset_bitfield = other.__isset_bitfield;
      this.success = other.success;
    }

    public writeVLdata_result deepCopy() {
      return new writeVLdata_result(this);
    }

    @Override
    public void clear() {
      setSuccessIsSet(false);
      this.success = false;
    }

    public boolean isSuccess() {
      return this.success;
    }

    public writeVLdata_result setSuccess(boolean success) {
      this.success = success;
      setSuccessIsSet(true);
      return this;
    }

    public void unsetSuccess() {
      __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
    }

    /** Returns true if field success is set (has been assigned a value) and false otherwise */
    public boolean isSetSuccess() {
      return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
    }

    public void setSuccessIsSet(boolean value) {
      __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
    }

    public void setFieldValue(_Fields field, Object value) {
      switch (field) {
      case SUCCESS:
        if (value == null) {
          unsetSuccess();
        } else {
          setSuccess((Boolean)value);
        }
        break;

      }
    }

    public Object getFieldValue(_Fields field) {
      switch (field) {
      case SUCCESS:
        return Boolean.valueOf(isSuccess());

      }
      throw new IllegalStateException();
    }

    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
    public boolean isSet(_Fields field) {
      if (field == null) {
        throw new IllegalArgumentException();
      }

      switch (field) {
      case SUCCESS:
        return isSetSuccess();
      }
      throw new IllegalStateException();
    }

    @Override
    public boolean equals(Object that) {
      if (that == null)
        return false;
      if (that instanceof writeVLdata_result)
        return this.equals((writeVLdata_result)that);
      return false;
    }

    public boolean equals(writeVLdata_result that) {
      if (that == null)
        return false;

      boolean this_present_success = true;
      boolean that_present_success = true;
      if (this_present_success || that_present_success) {
        if (!(this_present_success && that_present_success))
          return false;
        if (this.success != that.success)
          return false;
      }

      return true;
    }

    @Override
    public int hashCode() {
      return 0;
    }

    @Override
    public int compareTo(writeVLdata_result other) {
      if (!getClass().equals(other.getClass())) {
        return getClass().getName().compareTo(other.getClass().getName());
      }

      int lastComparison = 0;

      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
      if (lastComparison != 0) {
        return lastComparison;
      }
      if (isSetSuccess()) {
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
        if (lastComparison != 0) {
          return lastComparison;
        }
      }
      return 0;
    }

    public _Fields fieldForId(int fieldId) {
      return _Fields.findByThriftId(fieldId);
    }

    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
      schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
    }

    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
      schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
      }

    @Override
    public String toString() {
      StringBuilder sb = new StringBuilder("writeVLdata_result(");
      boolean first = true;

      sb.append("success:");
      sb.append(this.success);
      first = false;
      sb.append(")");
      return sb.toString();
    }

    public void validate() throws org.apache.thrift.TException {
      // check for required fields
      // check for sub-struct validity
    }

    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
      try {
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
      } catch (org.apache.thrift.TException te) {
        throw new java.io.IOException(te);
      }
    }

    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
      try {
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
        __isset_bitfield = 0;
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
      } catch (org.apache.thrift.TException te) {
        throw new java.io.IOException(te);
      }
    }

    private static class writeVLdata_resultStandardSchemeFactory implements SchemeFactory {
      public writeVLdata_resultStandardScheme getScheme() {
        return new writeVLdata_resultStandardScheme();
      }
    }

    private static class writeVLdata_resultStandardScheme extends StandardScheme<writeVLdata_result> {

      public void read(org.apache.thrift.protocol.TProtocol iprot, writeVLdata_result struct) throws org.apache.thrift.TException {
        org.apache.thrift.protocol.TField schemeField;
        iprot.readStructBegin();
        while (true)
        {
          schemeField = iprot.readFieldBegin();
          if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
            break;
          }
          switch (schemeField.id) {
            case 0: // SUCCESS
              if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) {
                struct.success = iprot.readBool();
                struct.setSuccessIsSet(true);
              } else { 
                org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
              }
              break;
            default:
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
          }
          iprot.readFieldEnd();
        }
        iprot.readStructEnd();

        // check for required fields of primitive type, which can't be checked in the validate method
        struct.validate();
      }

      public void write(org.apache.thrift.protocol.TProtocol oprot, writeVLdata_result struct) throws org.apache.thrift.TException {
        struct.validate();

        oprot.writeStructBegin(STRUCT_DESC);
        if (struct.isSetSuccess()) {
          oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
          oprot.writeBool(struct.success);
          oprot.writeFieldEnd();
        }
        oprot.writeFieldStop();
        oprot.writeStructEnd();
      }

    }

    private static class writeVLdata_resultTupleSchemeFactory implements SchemeFactory {
      public writeVLdata_resultTupleScheme getScheme() {
        return new writeVLdata_resultTupleScheme();
      }
    }

    private static class writeVLdata_resultTupleScheme extends TupleScheme<writeVLdata_result> {

      @Override
      public void write(org.apache.thrift.protocol.TProtocol prot, writeVLdata_result struct) throws org.apache.thrift.TException {
        TTupleProtocol oprot = (TTupleProtocol) prot;
        BitSet optionals = new BitSet();
        if (struct.isSetSuccess()) {
          optionals.set(0);
        }
        oprot.writeBitSet(optionals, 1);
        if (struct.isSetSuccess()) {
          oprot.writeBool(struct.success);
        }
      }

      @Override
      public void read(org.apache.thrift.protocol.TProtocol prot, writeVLdata_result struct) throws org.apache.thrift.TException {
        TTupleProtocol iprot = (TTupleProtocol) prot;
        BitSet incoming = iprot.readBitSet(1);
        if (incoming.get(0)) {
          struct.success = iprot.readBool();
          struct.setSuccessIsSet(true);
        }
      }
    }

  }

  public static class getImageList_args implements org.apache.thrift.TBase<getImageList_args, getImageList_args._Fields>, java.io.Serializable, Cloneable, Comparable<getImageList_args>   {
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getImageList_args");


    private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
    static {
      schemes.put(StandardScheme.class, new getImageList_argsStandardSchemeFactory());
      schemes.put(TupleScheme.class, new getImageList_argsTupleSchemeFactory());
    }


    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
;

      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();

      static {
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
          byName.put(field.getFieldName(), field);
        }
      }

      /**
       * Find the _Fields constant that matches fieldId, or null if its not found.
       */
      public static _Fields findByThriftId(int fieldId) {
        switch(fieldId) {
          default:
            return null;
        }
      }

      /**
       * Find the _Fields constant that matches fieldId, throwing an exception
       * if it is not found.
       */
      public static _Fields findByThriftIdOrThrow(int fieldId) {
        _Fields fields = findByThriftId(fieldId);
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
        return fields;
      }

      /**
       * Find the _Fields constant that matches name, or null if its not found.
       */
      public static _Fields findByName(String name) {
        return byName.get(name);
      }

      private final short _thriftId;
      private final String _fieldName;

      _Fields(short thriftId, String fieldName) {
        _thriftId = thriftId;
        _fieldName = fieldName;
      }

      public short getThriftFieldId() {
        return _thriftId;
      }

      public String getFieldName() {
        return _fieldName;
      }
    }
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
    static {
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
      metaDataMap = Collections.unmodifiableMap(tmpMap);
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImageList_args.class, metaDataMap);
    }

    public getImageList_args() {
    }

    /**
     * Performs a deep copy on <i>other</i>.
     */
    public getImageList_args(getImageList_args other) {
    }

    public getImageList_args deepCopy() {
      return new getImageList_args(this);
    }

    @Override
    public void clear() {
    }

    public void setFieldValue(_Fields field, Object value) {
      switch (field) {
      }
    }

    public Object getFieldValue(_Fields field) {
      switch (field) {
      }
      throw new IllegalStateException();
    }

    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
    public boolean isSet(_Fields field) {
      if (field == null) {
        throw new IllegalArgumentException();
      }

      switch (field) {
      }
      throw new IllegalStateException();
    }

    @Override
    public boolean equals(Object that) {
      if (that == null)
        return false;
      if (that instanceof getImageList_args)
        return this.equals((getImageList_args)that);
      return false;
    }

    public boolean equals(getImageList_args that) {
      if (that == null)
        return false;

      return true;
    }

    @Override
    public int hashCode() {
      return 0;
    }

    @Override
    public int compareTo(getImageList_args other) {
      if (!getClass().equals(other.getClass())) {
        return getClass().getName().compareTo(other.getClass().getName());
      }

      int lastComparison = 0;

      return 0;
    }

    public _Fields fieldForId(int fieldId) {
      return _Fields.findByThriftId(fieldId);
    }

    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
      schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
    }

    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
      schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
    }

    @Override
    public String toString() {
      StringBuilder sb = new StringBuilder("getImageList_args(");
      boolean first = true;

      sb.append(")");
      return sb.toString();
    }

    public void validate() throws org.apache.thrift.TException {
      // check for required fields
      // check for sub-struct validity
    }

    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
      try {
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
      } catch (org.apache.thrift.TException te) {
        throw new java.io.IOException(te);
      }
    }

    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
      try {
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
      } catch (org.apache.thrift.TException te) {
        throw new java.io.IOException(te);
      }
    }

    private static class getImageList_argsStandardSchemeFactory implements SchemeFactory {
      public getImageList_argsStandardScheme getScheme() {
        return new getImageList_argsStandardScheme();
      }
    }

    private static class getImageList_argsStandardScheme extends StandardScheme<getImageList_args> {

      public void read(org.apache.thrift.protocol.TProtocol iprot, getImageList_args struct) throws org.apache.thrift.TException {
        org.apache.thrift.protocol.TField schemeField;
        iprot.readStructBegin();
        while (true)
        {
          schemeField = iprot.readFieldBegin();
          if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
            break;
          }
          switch (schemeField.id) {
            default:
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
          }
          iprot.readFieldEnd();
        }
        iprot.readStructEnd();

        // check for required fields of primitive type, which can't be checked in the validate method
        struct.validate();
      }

      public void write(org.apache.thrift.protocol.TProtocol oprot, getImageList_args struct) throws org.apache.thrift.TException {
        struct.validate();

        oprot.writeStructBegin(STRUCT_DESC);
        oprot.writeFieldStop();
        oprot.writeStructEnd();
      }

    }

    private static class getImageList_argsTupleSchemeFactory implements SchemeFactory {
      public getImageList_argsTupleScheme getScheme() {
        return new getImageList_argsTupleScheme();
      }
    }

    private static class getImageList_argsTupleScheme extends TupleScheme<getImageList_args> {

      @Override
      public void write(org.apache.thrift.protocol.TProtocol prot, getImageList_args struct) throws org.apache.thrift.TException {
        TTupleProtocol oprot = (TTupleProtocol) prot;
      }

      @Override
      public void read(org.apache.thrift.protocol.TProtocol prot, getImageList_args struct) throws org.apache.thrift.TException {
        TTupleProtocol iprot = (TTupleProtocol) prot;
      }
    }

  }

  public static class getImageList_result implements org.apache.thrift.TBase<getImageList_result, getImageList_result._Fields>, java.io.Serializable, Cloneable, Comparable<getImageList_result>   {
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getImageList_result");

    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);

    private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
    static {
      schemes.put(StandardScheme.class, new getImageList_resultStandardSchemeFactory());
      schemes.put(TupleScheme.class, new getImageList_resultTupleSchemeFactory());
    }

    public List<Image> success; // required

    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
      SUCCESS((short)0, "success");

      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();

      static {
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
          byName.put(field.getFieldName(), field);
        }
      }

      /**
       * Find the _Fields constant that matches fieldId, or null if its not found.
       */
      public static _Fields findByThriftId(int fieldId) {
        switch(fieldId) {
          case 0: // SUCCESS
            return SUCCESS;
          default:
            return null;
        }
      }

      /**
       * Find the _Fields constant that matches fieldId, throwing an exception
       * if it is not found.
       */
      public static _Fields findByThriftIdOrThrow(int fieldId) {
        _Fields fields = findByThriftId(fieldId);
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
        return fields;
      }

      /**
       * Find the _Fields constant that matches name, or null if its not found.
       */
      public static _Fields findByName(String name) {
        return byName.get(name);
      }

      private final short _thriftId;
      private final String _fieldName;

      _Fields(short thriftId, String fieldName) {
        _thriftId = thriftId;
        _fieldName = fieldName;
      }

      public short getThriftFieldId() {
        return _thriftId;
      }

      public String getFieldName() {
        return _fieldName;
      }
    }

    // isset id assignments
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
    static {
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Image.class))));
      metaDataMap = Collections.unmodifiableMap(tmpMap);
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImageList_result.class, metaDataMap);
    }

    public getImageList_result() {
    }

    public getImageList_result(
      List<Image> success)
    {
      this();
      this.success = success;
    }

    /**
     * Performs a deep copy on <i>other</i>.
     */
    public getImageList_result(getImageList_result other) {
      if (other.isSetSuccess()) {
        List<Image> __this__success = new ArrayList<Image>(other.success.size());
        for (Image other_element : other.success) {
          __this__success.add(new Image(other_element));
        }
        this.success = __this__success;
      }
    }

    public getImageList_result deepCopy() {
      return new getImageList_result(this);
    }

    @Override
    public void clear() {
      this.success = null;
    }

    public int getSuccessSize() {
      return (this.success == null) ? 0 : this.success.size();
    }

    public java.util.Iterator<Image> getSuccessIterator() {
      return (this.success == null) ? null : this.success.iterator();
    }

    public void addToSuccess(Image elem) {
      if (this.success == null) {
        this.success = new ArrayList<Image>();
      }
      this.success.add(elem);
    }

    public List<Image> getSuccess() {
      return this.success;
    }

    public getImageList_result setSuccess(List<Image> success) {
      this.success = success;
      return this;
    }

    public void unsetSuccess() {
      this.success = null;
    }

    /** Returns true if field success is set (has been assigned a value) and false otherwise */
    public boolean isSetSuccess() {
      return this.success != null;
    }

    public void setSuccessIsSet(boolean value) {
      if (!value) {
        this.success = null;
      }
    }

    public void setFieldValue(_Fields field, Object value) {
      switch (field) {
      case SUCCESS:
        if (value == null) {
          unsetSuccess();
        } else {
          setSuccess((List<Image>)value);
        }
        break;

      }
    }

    public Object getFieldValue(_Fields field) {
      switch (field) {
      case SUCCESS:
        return getSuccess();

      }
      throw new IllegalStateException();
    }

    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
    public boolean isSet(_Fields field) {
      if (field == null) {
        throw new IllegalArgumentException();
      }

      switch (field) {
      case SUCCESS:
        return isSetSuccess();
      }
      throw new IllegalStateException();
    }

    @Override
    public boolean equals(Object that) {
      if (that == null)
        return false;
      if (that instanceof getImageList_result)
        return this.equals((getImageList_result)that);
      return false;
    }

    public boolean equals(getImageList_result that) {
      if (that == null)
        return false;

      boolean this_present_success = true && this.isSetSuccess();
      boolean that_present_success = true && that.isSetSuccess();
      if (this_present_success || that_present_success) {
        if (!(this_present_success && that_present_success))
          return false;
        if (!this.success.equals(that.success))
          return false;
      }

      return true;
    }

    @Override
    public int hashCode() {
      return 0;
    }

    @Override
    public int compareTo(getImageList_result other) {
      if (!getClass().equals(other.getClass())) {
        return getClass().getName().compareTo(other.getClass().getName());
      }

      int lastComparison = 0;

      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
      if (lastComparison != 0) {
        return lastComparison;
      }
      if (isSetSuccess()) {
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
        if (lastComparison != 0) {
          return lastComparison;
        }
      }
      return 0;
    }

    public _Fields fieldForId(int fieldId) {
      return _Fields.findByThriftId(fieldId);
    }

    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
      schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
    }

    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
      schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
      }

    @Override
    public String toString() {
      StringBuilder sb = new StringBuilder("getImageList_result(");
      boolean first = true;

      sb.append("success:");
      if (this.success == null) {
        sb.append("null");
      } else {
        sb.append(this.success);
      }
      first = false;
      sb.append(")");
      return sb.toString();
    }

    public void validate() throws org.apache.thrift.TException {
      // check for required fields
      // check for sub-struct validity
    }

    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
      try {
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
      } catch (org.apache.thrift.TException te) {
        throw new java.io.IOException(te);
      }
    }

    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
      try {
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
      } catch (org.apache.thrift.TException te) {
        throw new java.io.IOException(te);
      }
    }

    private static class getImageList_resultStandardSchemeFactory implements SchemeFactory {
      public getImageList_resultStandardScheme getScheme() {
        return new getImageList_resultStandardScheme();
      }
    }

    private static class getImageList_resultStandardScheme extends StandardScheme<getImageList_result> {

      public void read(org.apache.thrift.protocol.TProtocol iprot, getImageList_result struct) throws org.apache.thrift.TException {
        org.apache.thrift.protocol.TField schemeField;
        iprot.readStructBegin();
        while (true)
        {
          schemeField = iprot.readFieldBegin();
          if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
            break;
          }
          switch (schemeField.id) {
            case 0: // SUCCESS
              if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
                {
                  org.apache.thrift.protocol.TList _list0 = iprot.readListBegin();
                  struct.success = new ArrayList<Image>(_list0.size);
                  for (int _i1 = 0; _i1 < _list0.size; ++_i1)
                  {
                    Image _elem2;
                    _elem2 = new Image();
                    _elem2.read(iprot);
                    struct.success.add(_elem2);
                  }
                  iprot.readListEnd();
                }
                struct.setSuccessIsSet(true);
              } else { 
                org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
              }
              break;
            default:
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
          }
          iprot.readFieldEnd();
        }
        iprot.readStructEnd();

        // check for required fields of primitive type, which can't be checked in the validate method
        struct.validate();
      }

      public void write(org.apache.thrift.protocol.TProtocol oprot, getImageList_result struct) throws org.apache.thrift.TException {
        struct.validate();

        oprot.writeStructBegin(STRUCT_DESC);
        if (struct.success != null) {
          oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
          {
            oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size()));
            for (Image _iter3 : struct.success)
            {
              _iter3.write(oprot);
            }
            oprot.writeListEnd();
          }
          oprot.writeFieldEnd();
        }
        oprot.writeFieldStop();
        oprot.writeStructEnd();
      }

    }

    private static class getImageList_resultTupleSchemeFactory implements SchemeFactory {
      public getImageList_resultTupleScheme getScheme() {
        return new getImageList_resultTupleScheme();
      }
    }

    private static class getImageList_resultTupleScheme extends TupleScheme<getImageList_result> {

      @Override
      public void write(org.apache.thrift.protocol.TProtocol prot, getImageList_result struct) throws org.apache.thrift.TException {
        TTupleProtocol oprot = (TTupleProtocol) prot;
        BitSet optionals = new BitSet();
        if (struct.isSetSuccess()) {
          optionals.set(0);
        }
        oprot.writeBitSet(optionals, 1);
        if (struct.isSetSuccess()) {
          {
            oprot.writeI32(struct.success.size());
            for (Image _iter4 : struct.success)
            {
              _iter4.write(oprot);
            }
          }
        }
      }

      @Override
      public void read(org.apache.thrift.protocol.TProtocol prot, getImageList_result struct) throws org.apache.thrift.TException {
        TTupleProtocol iprot = (TTupleProtocol) prot;
        BitSet incoming = iprot.readBitSet(1);
        if (incoming.get(0)) {
          {
            org.apache.thrift.protocol.TList _list5 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
            struct.success = new ArrayList<Image>(_list5.size);
            for (int _i6 = 0; _i6 < _list5.size; ++_i6)
            {
              Image _elem7;
              _elem7 = new Image();
              _elem7.read(iprot);
              struct.success.add(_elem7);
            }
          }
          struct.setSuccessIsSet(true);
        }
      }
    }

  }

  public static class getAllOS_args implements org.apache.thrift.TBase<getAllOS_args, getAllOS_args._Fields>, java.io.Serializable, Cloneable, Comparable<getAllOS_args>   {
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllOS_args");


    private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
    static {
      schemes.put(StandardScheme.class, new getAllOS_argsStandardSchemeFactory());
      schemes.put(TupleScheme.class, new getAllOS_argsTupleSchemeFactory());
    }


    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
;

      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();

      static {
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
          byName.put(field.getFieldName(), field);
        }
      }

      /**
       * Find the _Fields constant that matches fieldId, or null if its not found.
       */
      public static _Fields findByThriftId(int fieldId) {
        switch(fieldId) {
          default:
            return null;
        }
      }

      /**
       * Find the _Fields constant that matches fieldId, throwing an exception
       * if it is not found.
       */
      public static _Fields findByThriftIdOrThrow(int fieldId) {
        _Fields fields = findByThriftId(fieldId);
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
        return fields;
      }

      /**
       * Find the _Fields constant that matches name, or null if its not found.
       */
      public static _Fields findByName(String name) {
        return byName.get(name);
      }

      private final short _thriftId;
      private final String _fieldName;

      _Fields(short thriftId, String fieldName) {
        _thriftId = thriftId;
        _fieldName = fieldName;
      }

      public short getThriftFieldId() {
        return _thriftId;
      }

      public String getFieldName() {
        return _fieldName;
      }
    }
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
    static {
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
      metaDataMap = Collections.unmodifiableMap(tmpMap);
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllOS_args.class, metaDataMap);
    }

    public getAllOS_args() {
    }

    /**
     * Performs a deep copy on <i>other</i>.
     */
    public getAllOS_args(getAllOS_args other) {
    }

    public getAllOS_args deepCopy() {
      return new getAllOS_args(this);
    }

    @Override
    public void clear() {
    }

    public void setFieldValue(_Fields field, Object value) {
      switch (field) {
      }
    }

    public Object getFieldValue(_Fields field) {
      switch (field) {
      }
      throw new IllegalStateException();
    }

    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
    public boolean isSet(_Fields field) {
      if (field == null) {
        throw new IllegalArgumentException();
      }

      switch (field) {
      }
      throw new IllegalStateException();
    }

    @Override
    public boolean equals(Object that) {
      if (that == null)
        return false;
      if (that instanceof getAllOS_args)
        return this.equals((getAllOS_args)that);
      return false;
    }

    public boolean equals(getAllOS_args that) {
      if (that == null)
        return false;

      return true;
    }

    @Override
    public int hashCode() {
      return 0;
    }

    @Override
    public int compareTo(getAllOS_args other) {
      if (!getClass().equals(other.getClass())) {
        return getClass().getName().compareTo(other.getClass().getName());
      }

      int lastComparison = 0;

      return 0;
    }

    public _Fields fieldForId(int fieldId) {
      return _Fields.findByThriftId(fieldId);
    }

    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
      schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
    }

    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
      schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
    }

    @Override
    public String toString() {
      StringBuilder sb = new StringBuilder("getAllOS_args(");
      boolean first = true;

      sb.append(")");
      return sb.toString();
    }

    public void validate() throws org.apache.thrift.TException {
      // check for required fields
      // check for sub-struct validity
    }

    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
      try {
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
      } catch (org.apache.thrift.TException te) {
        throw new java.io.IOException(te);
      }
    }

    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
      try {
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
      } catch (org.apache.thrift.TException te) {
        throw new java.io.IOException(te);
      }
    }

    private static class getAllOS_argsStandardSchemeFactory implements SchemeFactory {
      public getAllOS_argsStandardScheme getScheme() {
        return new getAllOS_argsStandardScheme();
      }
    }

    private static class getAllOS_argsStandardScheme extends StandardScheme<getAllOS_args> {

      public void read(org.apache.thrift.protocol.TProtocol iprot, getAllOS_args struct) throws org.apache.thrift.TException {
        org.apache.thrift.protocol.TField schemeField;
        iprot.readStructBegin();
        while (true)
        {
          schemeField = iprot.readFieldBegin();
          if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
            break;
          }
          switch (schemeField.id) {
            default:
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
          }
          iprot.readFieldEnd();
        }
        iprot.readStructEnd();

        // check for required fields of primitive type, which can't be checked in the validate method
        struct.validate();
      }

      public void write(org.apache.thrift.protocol.TProtocol oprot, getAllOS_args struct) throws org.apache.thrift.TException {
        struct.validate();

        oprot.writeStructBegin(STRUCT_DESC);
        oprot.writeFieldStop();
        oprot.writeStructEnd();
      }

    }

    private static class getAllOS_argsTupleSchemeFactory implements SchemeFactory {
      public getAllOS_argsTupleScheme getScheme() {
        return new getAllOS_argsTupleScheme();
      }
    }

    private static class getAllOS_argsTupleScheme extends TupleScheme<getAllOS_args> {

      @Override
      public void write(org.apache.thrift.protocol.TProtocol prot, getAllOS_args struct) throws org.apache.thrift.TException {
        TTupleProtocol oprot = (TTupleProtocol) prot;
      }

      @Override
      public void read(org.apache.thrift.protocol.TProtocol prot, getAllOS_args struct) throws org.apache.thrift.TException {
        TTupleProtocol iprot = (TTupleProtocol) prot;
      }
    }

  }

  public static class getAllOS_result implements org.apache.thrift.TBase<getAllOS_result, getAllOS_result._Fields>, java.io.Serializable, Cloneable, Comparable<getAllOS_result>   {
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllOS_result");

    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);

    private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
    static {
      schemes.put(StandardScheme.class, new getAllOS_resultStandardSchemeFactory());
      schemes.put(TupleScheme.class, new getAllOS_resultTupleSchemeFactory());
    }

    public List<String> success; // required

    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
      SUCCESS((short)0, "success");

      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();

      static {
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
          byName.put(field.getFieldName(), field);
        }
      }

      /**
       * Find the _Fields constant that matches fieldId, or null if its not found.
       */
      public static _Fields findByThriftId(int fieldId) {
        switch(fieldId) {
          case 0: // SUCCESS
            return SUCCESS;
          default:
            return null;
        }
      }

      /**
       * Find the _Fields constant that matches fieldId, throwing an exception
       * if it is not found.
       */
      public static _Fields findByThriftIdOrThrow(int fieldId) {
        _Fields fields = findByThriftId(fieldId);
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
        return fields;
      }

      /**
       * Find the _Fields constant that matches name, or null if its not found.
       */
      public static _Fields findByName(String name) {
        return byName.get(name);
      }

      private final short _thriftId;
      private final String _fieldName;

      _Fields(short thriftId, String fieldName) {
        _thriftId = thriftId;
        _fieldName = fieldName;
      }

      public short getThriftFieldId() {
        return _thriftId;
      }

      public String getFieldName() {
        return _fieldName;
      }
    }

    // isset id assignments
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
    static {
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
      metaDataMap = Collections.unmodifiableMap(tmpMap);
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllOS_result.class, metaDataMap);
    }

    public getAllOS_result() {
    }

    public getAllOS_result(
      List<String> success)
    {
      this();
      this.success = success;
    }

    /**
     * Performs a deep copy on <i>other</i>.
     */
    public getAllOS_result(getAllOS_result other) {
      if (other.isSetSuccess()) {
        List<String> __this__success = new ArrayList<String>(other.success);
        this.success = __this__success;
      }
    }

    public getAllOS_result deepCopy() {
      return new getAllOS_result(this);
    }

    @Override
    public void clear() {
      this.success = null;
    }

    public int getSuccessSize() {
      return (this.success == null) ? 0 : this.success.size();
    }

    public java.util.Iterator<String> getSuccessIterator() {
      return (this.success == null) ? null : this.success.iterator();
    }

    public void addToSuccess(String elem) {
      if (this.success == null) {
        this.success = new ArrayList<String>();
      }
      this.success.add(elem);
    }

    public List<String> getSuccess() {
      return this.success;
    }

    public getAllOS_result setSuccess(List<String> success) {
      this.success = success;
      return this;
    }

    public void unsetSuccess() {
      this.success = null;
    }

    /** Returns true if field success is set (has been assigned a value) and false otherwise */
    public boolean isSetSuccess() {
      return this.success != null;
    }

    public void setSuccessIsSet(boolean value) {
      if (!value) {
        this.success = null;
      }
    }

    public void setFieldValue(_Fields field, Object value) {
      switch (field) {
      case SUCCESS:
        if (value == null) {
          unsetSuccess();
        } else {
          setSuccess((List<String>)value);
        }
        break;

      }
    }

    public Object getFieldValue(_Fields field) {
      switch (field) {
      case SUCCESS:
        return getSuccess();

      }
      throw new IllegalStateException();
    }

    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
    public boolean isSet(_Fields field) {
      if (field == null) {
        throw new IllegalArgumentException();
      }

      switch (field) {
      case SUCCESS:
        return isSetSuccess();
      }
      throw new IllegalStateException();
    }

    @Override
    public boolean equals(Object that) {
      if (that == null)
        return false;
      if (that instanceof getAllOS_result)
        return this.equals((getAllOS_result)that);
      return false;
    }

    public boolean equals(getAllOS_result that) {
      if (that == null)
        return false;

      boolean this_present_success = true && this.isSetSuccess();
      boolean that_present_success = true && that.isSetSuccess();
      if (this_present_success || that_present_success) {
        if (!(this_present_success && that_present_success))
          return false;
        if (!this.success.equals(that.success))
          return false;
      }

      return true;
    }

    @Override
    public int hashCode() {
      return 0;
    }

    @Override
    public int compareTo(getAllOS_result other) {
      if (!getClass().equals(other.getClass())) {
        return getClass().getName().compareTo(other.getClass().getName());
      }

      int lastComparison = 0;

      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
      if (lastComparison != 0) {
        return lastComparison;
      }
      if (isSetSuccess()) {
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
        if (lastComparison != 0) {
          return lastComparison;
        }
      }
      return 0;
    }

    public _Fields fieldForId(int fieldId) {
      return _Fields.findByThriftId(fieldId);
    }

    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
      schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
    }

    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
      schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
      }

    @Override
    public String toString() {
      StringBuilder sb = new StringBuilder("getAllOS_result(");
      boolean first = true;

      sb.append("success:");
      if (this.success == null) {
        sb.append("null");
      } else {
        sb.append(this.success);
      }
      first = false;
      sb.append(")");
      return sb.toString();
    }

    public void validate() throws org.apache.thrift.TException {
      // check for required fields
      // check for sub-struct validity
    }

    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
      try {
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
      } catch (org.apache.thrift.TException te) {
        throw new java.io.IOException(te);
      }
    }

    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
      try {
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
      } catch (org.apache.thrift.TException te) {
        throw new java.io.IOException(te);
      }
    }

    private static class getAllOS_resultStandardSchemeFactory implements SchemeFactory {
      public getAllOS_resultStandardScheme getScheme() {
        return new getAllOS_resultStandardScheme();
      }
    }

    private static class getAllOS_resultStandardScheme extends StandardScheme<getAllOS_result> {

      public void read(org.apache.thrift.protocol.TProtocol iprot, getAllOS_result struct) throws org.apache.thrift.TException {
        org.apache.thrift.protocol.TField schemeField;
        iprot.readStructBegin();
        while (true)
        {
          schemeField = iprot.readFieldBegin();
          if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
            break;
          }
          switch (schemeField.id) {
            case 0: // SUCCESS
              if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
                {
                  org.apache.thrift.protocol.TList _list8 = iprot.readListBegin();
                  struct.success = new ArrayList<String>(_list8.size);
                  for (int _i9 = 0; _i9 < _list8.size; ++_i9)
                  {
                    String _elem10;
                    _elem10 = iprot.readString();
                    struct.success.add(_elem10);
                  }
                  iprot.readListEnd();
                }
                struct.setSuccessIsSet(true);
              } else { 
                org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
              }
              break;
            default:
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
          }
          iprot.readFieldEnd();
        }
        iprot.readStructEnd();

        // check for required fields of primitive type, which can't be checked in the validate method
        struct.validate();
      }

      public void write(org.apache.thrift.protocol.TProtocol oprot, getAllOS_result struct) throws org.apache.thrift.TException {
        struct.validate();

        oprot.writeStructBegin(STRUCT_DESC);
        if (struct.success != null) {
          oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
          {
            oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size()));
            for (String _iter11 : struct.success)
            {
              oprot.writeString(_iter11);
            }
            oprot.writeListEnd();
          }
          oprot.writeFieldEnd();
        }
        oprot.writeFieldStop();
        oprot.writeStructEnd();
      }

    }

    private static class getAllOS_resultTupleSchemeFactory implements SchemeFactory {
      public getAllOS_resultTupleScheme getScheme() {
        return new getAllOS_resultTupleScheme();
      }
    }

    private static class getAllOS_resultTupleScheme extends TupleScheme<getAllOS_result> {

      @Override
      public void write(org.apache.thrift.protocol.TProtocol prot, getAllOS_result struct) throws org.apache.thrift.TException {
        TTupleProtocol oprot = (TTupleProtocol) prot;
        BitSet optionals = new BitSet();
        if (struct.isSetSuccess()) {
          optionals.set(0);
        }
        oprot.writeBitSet(optionals, 1);
        if (struct.isSetSuccess()) {
          {
            oprot.writeI32(struct.success.size());
            for (String _iter12 : struct.success)
            {
              oprot.writeString(_iter12);
            }
          }
        }
      }

      @Override
      public void read(org.apache.thrift.protocol.TProtocol prot, getAllOS_result struct) throws org.apache.thrift.TException {
        TTupleProtocol iprot = (TTupleProtocol) prot;
        BitSet incoming = iprot.readBitSet(1);
        if (incoming.get(0)) {
          {
            org.apache.thrift.protocol.TList _list13 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
            struct.success = new ArrayList<String>(_list13.size);
            for (int _i14 = 0; _i14 < _list13.size; ++_i14)
            {
              String _elem15;
              _elem15 = iprot.readString();
              struct.success.add(_elem15);
            }
          }
          struct.setSuccessIsSet(true);
        }
      }
    }

  }

  public static class getPersonData_args implements org.apache.thrift.TBase<getPersonData_args, getPersonData_args._Fields>, java.io.Serializable, Cloneable, Comparable<getPersonData_args>   {
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPersonData_args");

    private static final org.apache.thrift.protocol.TField VORNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("Vorname", org.apache.thrift.protocol.TType.STRING, (short)-1);
    private static final org.apache.thrift.protocol.TField NACHNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("Nachname", org.apache.thrift.protocol.TType.STRING, (short)-2);

    private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
    static {
      schemes.put(StandardScheme.class, new getPersonData_argsStandardSchemeFactory());
      schemes.put(TupleScheme.class, new getPersonData_argsTupleSchemeFactory());
    }

    public String Vorname; // required
    public String Nachname; // required

    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
      VORNAME((short)-1, "Vorname"),
      NACHNAME((short)-2, "Nachname");

      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();

      static {
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
          byName.put(field.getFieldName(), field);
        }
      }

      /**
       * Find the _Fields constant that matches fieldId, or null if its not found.
       */
      public static _Fields findByThriftId(int fieldId) {
        switch(fieldId) {
          case -1: // VORNAME
            return VORNAME;
          case -2: // NACHNAME
            return NACHNAME;
          default:
            return null;
        }
      }

      /**
       * Find the _Fields constant that matches fieldId, throwing an exception
       * if it is not found.
       */
      public static _Fields findByThriftIdOrThrow(int fieldId) {
        _Fields fields = findByThriftId(fieldId);
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
        return fields;
      }

      /**
       * Find the _Fields constant that matches name, or null if its not found.
       */
      public static _Fields findByName(String name) {
        return byName.get(name);
      }

      private final short _thriftId;
      private final String _fieldName;

      _Fields(short thriftId, String fieldName) {
        _thriftId = thriftId;
        _fieldName = fieldName;
      }

      public short getThriftFieldId() {
        return _thriftId;
      }

      public String getFieldName() {
        return _fieldName;
      }
    }

    // isset id assignments
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
    static {
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
      tmpMap.put(_Fields.VORNAME, new org.apache.thrift.meta_data.FieldMetaData("Vorname", org.apache.thrift.TFieldRequirementType.DEFAULT, 
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
      tmpMap.put(_Fields.NACHNAME, new org.apache.thrift.meta_data.FieldMetaData("Nachname", org.apache.thrift.TFieldRequirementType.DEFAULT, 
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
      metaDataMap = Collections.unmodifiableMap(tmpMap);
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPersonData_args.class, metaDataMap);
    }

    public getPersonData_args() {
    }

    public getPersonData_args(
      String Vorname,
      String Nachname)
    {
      this();
      this.Vorname = Vorname;
      this.Nachname = Nachname;
    }

    /**
     * Performs a deep copy on <i>other</i>.
     */
    public getPersonData_args(getPersonData_args other) {
      if (other.isSetVorname()) {
        this.Vorname = other.Vorname;
      }
      if (other.isSetNachname()) {
        this.Nachname = other.Nachname;
      }
    }

    public getPersonData_args deepCopy() {
      return new getPersonData_args(this);
    }

    @Override
    public void clear() {
      this.Vorname = null;
      this.Nachname = null;
    }

    public String getVorname() {
      return this.Vorname;
    }

    public getPersonData_args setVorname(String Vorname) {
      this.Vorname = Vorname;
      return this;
    }

    public void unsetVorname() {
      this.Vorname = null;
    }

    /** Returns true if field Vorname is set (has been assigned a value) and false otherwise */
    public boolean isSetVorname() {
      return this.Vorname != null;
    }

    public void setVornameIsSet(boolean value) {
      if (!value) {
        this.Vorname = null;
      }
    }

    public String getNachname() {
      return this.Nachname;
    }

    public getPersonData_args setNachname(String Nachname) {
      this.Nachname = Nachname;
      return this;
    }

    public void unsetNachname() {
      this.Nachname = null;
    }

    /** Returns true if field Nachname is set (has been assigned a value) and false otherwise */
    public boolean isSetNachname() {
      return this.Nachname != null;
    }

    public void setNachnameIsSet(boolean value) {
      if (!value) {
        this.Nachname = null;
      }
    }

    public void setFieldValue(_Fields field, Object value) {
      switch (field) {
      case VORNAME:
        if (value == null) {
          unsetVorname();
        } else {
          setVorname((String)value);
        }
        break;

      case NACHNAME:
        if (value == null) {
          unsetNachname();
        } else {
          setNachname((String)value);
        }
        break;

      }
    }

    public Object getFieldValue(_Fields field) {
      switch (field) {
      case VORNAME:
        return getVorname();

      case NACHNAME:
        return getNachname();

      }
      throw new IllegalStateException();
    }

    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
    public boolean isSet(_Fields field) {
      if (field == null) {
        throw new IllegalArgumentException();
      }

      switch (field) {
      case VORNAME:
        return isSetVorname();
      case NACHNAME:
        return isSetNachname();
      }
      throw new IllegalStateException();
    }

    @Override
    public boolean equals(Object that) {
      if (that == null)
        return false;
      if (that instanceof getPersonData_args)
        return this.equals((getPersonData_args)that);
      return false;
    }

    public boolean equals(getPersonData_args that) {
      if (that == null)
        return false;

      boolean this_present_Vorname = true && this.isSetVorname();
      boolean that_present_Vorname = true && that.isSetVorname();
      if (this_present_Vorname || that_present_Vorname) {
        if (!(this_present_Vorname && that_present_Vorname))
          return false;
        if (!this.Vorname.equals(that.Vorname))
          return false;
      }

      boolean this_present_Nachname = true && this.isSetNachname();
      boolean that_present_Nachname = true && that.isSetNachname();
      if (this_present_Nachname || that_present_Nachname) {
        if (!(this_present_Nachname && that_present_Nachname))
          return false;
        if (!this.Nachname.equals(that.Nachname))
          return false;
      }

      return true;
    }

    @Override
    public int hashCode() {
      return 0;
    }

    @Override
    public int compareTo(getPersonData_args other) {
      if (!getClass().equals(other.getClass())) {
        return getClass().getName().compareTo(other.getClass().getName());
      }

      int lastComparison = 0;

      lastComparison = Boolean.valueOf(isSetVorname()).compareTo(other.isSetVorname());
      if (lastComparison != 0) {
        return lastComparison;
      }
      if (isSetVorname()) {
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.Vorname, other.Vorname);
        if (lastComparison != 0) {
          return lastComparison;
        }
      }
      lastComparison = Boolean.valueOf(isSetNachname()).compareTo(other.isSetNachname());
      if (lastComparison != 0) {
        return lastComparison;
      }
      if (isSetNachname()) {
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.Nachname, other.Nachname);
        if (lastComparison != 0) {
          return lastComparison;
        }
      }
      return 0;
    }

    public _Fields fieldForId(int fieldId) {
      return _Fields.findByThriftId(fieldId);
    }

    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
      schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
    }

    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
      schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
    }

    @Override
    public String toString() {
      StringBuilder sb = new StringBuilder("getPersonData_args(");
      boolean first = true;

      sb.append("Vorname:");
      if (this.Vorname == null) {
        sb.append("null");
      } else {
        sb.append(this.Vorname);
      }
      first = false;
      if (!first) sb.append(", ");
      sb.append("Nachname:");
      if (this.Nachname == null) {
        sb.append("null");
      } else {
        sb.append(this.Nachname);
      }
      first = false;
      sb.append(")");
      return sb.toString();
    }

    public void validate() throws org.apache.thrift.TException {
      // check for required fields
      // check for sub-struct validity
    }

    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
      try {
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
      } catch (org.apache.thrift.TException te) {
        throw new java.io.IOException(te);
      }
    }

    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
      try {
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
      } catch (org.apache.thrift.TException te) {
        throw new java.io.IOException(te);
      }
    }

    private static class getPersonData_argsStandardSchemeFactory implements SchemeFactory {
      public getPersonData_argsStandardScheme getScheme() {
        return new getPersonData_argsStandardScheme();
      }
    }

    private static class getPersonData_argsStandardScheme extends StandardScheme<getPersonData_args> {

      public void read(org.apache.thrift.protocol.TProtocol iprot, getPersonData_args struct) throws org.apache.thrift.TException {
        org.apache.thrift.protocol.TField schemeField;
        iprot.readStructBegin();
        while (true)
        {
          schemeField = iprot.readFieldBegin();
          if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
            break;
          }
          switch (schemeField.id) {
            case -1: // VORNAME
              if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
                struct.Vorname = iprot.readString();
                struct.setVornameIsSet(true);
              } else { 
                org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
              }
              break;
            case -2: // NACHNAME
              if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
                struct.Nachname = iprot.readString();
                struct.setNachnameIsSet(true);
              } else { 
                org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
              }
              break;
            default:
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
          }
          iprot.readFieldEnd();
        }
        iprot.readStructEnd();

        // check for required fields of primitive type, which can't be checked in the validate method
        struct.validate();
      }

      public void write(org.apache.thrift.protocol.TProtocol oprot, getPersonData_args struct) throws org.apache.thrift.TException {
        struct.validate();

        oprot.writeStructBegin(STRUCT_DESC);
        if (struct.Nachname != null) {
          oprot.writeFieldBegin(NACHNAME_FIELD_DESC);
          oprot.writeString(struct.Nachname);
          oprot.writeFieldEnd();
        }
        if (struct.Vorname != null) {
          oprot.writeFieldBegin(VORNAME_FIELD_DESC);
          oprot.writeString(struct.Vorname);
          oprot.writeFieldEnd();
        }
        oprot.writeFieldStop();
        oprot.writeStructEnd();
      }

    }

    private static class getPersonData_argsTupleSchemeFactory implements SchemeFactory {
      public getPersonData_argsTupleScheme getScheme() {
        return new getPersonData_argsTupleScheme();
      }
    }

    private static class getPersonData_argsTupleScheme extends TupleScheme<getPersonData_args> {

      @Override
      public void write(org.apache.thrift.protocol.TProtocol prot, getPersonData_args struct) throws org.apache.thrift.TException {
        TTupleProtocol oprot = (TTupleProtocol) prot;
        BitSet optionals = new BitSet();
        if (struct.isSetVorname()) {
          optionals.set(0);
        }
        if (struct.isSetNachname()) {
          optionals.set(1);
        }
        oprot.writeBitSet(optionals, 2);
        if (struct.isSetVorname()) {
          oprot.writeString(struct.Vorname);
        }
        if (struct.isSetNachname()) {
          oprot.writeString(struct.Nachname);
        }
      }

      @Override
      public void read(org.apache.thrift.protocol.TProtocol prot, getPersonData_args struct) throws org.apache.thrift.TException {
        TTupleProtocol iprot = (TTupleProtocol) prot;
        BitSet incoming = iprot.readBitSet(2);
        if (incoming.get(0)) {
          struct.Vorname = iprot.readString();
          struct.setVornameIsSet(true);
        }
        if (incoming.get(1)) {
          struct.Nachname = iprot.readString();
          struct.setNachnameIsSet(true);
        }
      }
    }

  }

  public static class getPersonData_result implements org.apache.thrift.TBase<getPersonData_result, getPersonData_result._Fields>, java.io.Serializable, Cloneable, Comparable<getPersonData_result>   {
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPersonData_result");

    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0);

    private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
    static {
      schemes.put(StandardScheme.class, new getPersonData_resultStandardSchemeFactory());
      schemes.put(TupleScheme.class, new getPersonData_resultTupleSchemeFactory());
    }

    public Map<String,String> success; // required

    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
      SUCCESS((short)0, "success");

      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();

      static {
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
          byName.put(field.getFieldName(), field);
        }
      }

      /**
       * Find the _Fields constant that matches fieldId, or null if its not found.
       */
      public static _Fields findByThriftId(int fieldId) {
        switch(fieldId) {
          case 0: // SUCCESS
            return SUCCESS;
          default:
            return null;
        }
      }

      /**
       * Find the _Fields constant that matches fieldId, throwing an exception
       * if it is not found.
       */
      public static _Fields findByThriftIdOrThrow(int fieldId) {
        _Fields fields = findByThriftId(fieldId);
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
        return fields;
      }

      /**
       * Find the _Fields constant that matches name, or null if its not found.
       */
      public static _Fields findByName(String name) {
        return byName.get(name);
      }

      private final short _thriftId;
      private final String _fieldName;

      _Fields(short thriftId, String fieldName) {
        _thriftId = thriftId;
        _fieldName = fieldName;
      }

      public short getThriftFieldId() {
        return _thriftId;
      }

      public String getFieldName() {
        return _fieldName;
      }
    }

    // isset id assignments
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
    static {
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), 
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
      metaDataMap = Collections.unmodifiableMap(tmpMap);
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPersonData_result.class, metaDataMap);
    }

    public getPersonData_result() {
    }

    public getPersonData_result(
      Map<String,String> success)
    {
      this();
      this.success = success;
    }

    /**
     * Performs a deep copy on <i>other</i>.
     */
    public getPersonData_result(getPersonData_result other) {
      if (other.isSetSuccess()) {
        Map<String,String> __this__success = new HashMap<String,String>(other.success);
        this.success = __this__success;
      }
    }

    public getPersonData_result deepCopy() {
      return new getPersonData_result(this);
    }

    @Override
    public void clear() {
      this.success = null;
    }

    public int getSuccessSize() {
      return (this.success == null) ? 0 : this.success.size();
    }

    public void putToSuccess(String key, String val) {
      if (this.success == null) {
        this.success = new HashMap<String,String>();
      }
      this.success.put(key, val);
    }

    public Map<String,String> getSuccess() {
      return this.success;
    }

    public getPersonData_result setSuccess(Map<String,String> success) {
      this.success = success;
      return this;
    }

    public void unsetSuccess() {
      this.success = null;
    }

    /** Returns true if field success is set (has been assigned a value) and false otherwise */
    public boolean isSetSuccess() {
      return this.success != null;
    }

    public void setSuccessIsSet(boolean value) {
      if (!value) {
        this.success = null;
      }
    }

    public void setFieldValue(_Fields field, Object value) {
      switch (field) {
      case SUCCESS:
        if (value == null) {
          unsetSuccess();
        } else {
          setSuccess((Map<String,String>)value);
        }
        break;

      }
    }

    public Object getFieldValue(_Fields field) {
      switch (field) {
      case SUCCESS:
        return getSuccess();

      }
      throw new IllegalStateException();
    }

    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
    public boolean isSet(_Fields field) {
      if (field == null) {
        throw new IllegalArgumentException();
      }

      switch (field) {
      case SUCCESS:
        return isSetSuccess();
      }
      throw new IllegalStateException();
    }

    @Override
    public boolean equals(Object that) {
      if (that == null)
        return false;
      if (that instanceof getPersonData_result)
        return this.equals((getPersonData_result)that);
      return false;
    }

    public boolean equals(getPersonData_result that) {
      if (that == null)
        return false;

      boolean this_present_success = true && this.isSetSuccess();
      boolean that_present_success = true && that.isSetSuccess();
      if (this_present_success || that_present_success) {
        if (!(this_present_success && that_present_success))
          return false;
        if (!this.success.equals(that.success))
          return false;
      }

      return true;
    }

    @Override
    public int hashCode() {
      return 0;
    }

    @Override
    public int compareTo(getPersonData_result other) {
      if (!getClass().equals(other.getClass())) {
        return getClass().getName().compareTo(other.getClass().getName());
      }

      int lastComparison = 0;

      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
      if (lastComparison != 0) {
        return lastComparison;
      }
      if (isSetSuccess()) {
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
        if (lastComparison != 0) {
          return lastComparison;
        }
      }
      return 0;
    }

    public _Fields fieldForId(int fieldId) {
      return _Fields.findByThriftId(fieldId);
    }

    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
      schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
    }

    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
      schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
      }

    @Override
    public String toString() {
      StringBuilder sb = new StringBuilder("getPersonData_result(");
      boolean first = true;

      sb.append("success:");
      if (this.success == null) {
        sb.append("null");
      } else {
        sb.append(this.success);
      }
      first = false;
      sb.append(")");
      return sb.toString();
    }

    public void validate() throws org.apache.thrift.TException {
      // check for required fields
      // check for sub-struct validity
    }

    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
      try {
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
      } catch (org.apache.thrift.TException te) {
        throw new java.io.IOException(te);
      }
    }

    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
      try {
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
      } catch (org.apache.thrift.TException te) {
        throw new java.io.IOException(te);
      }
    }

    private static class getPersonData_resultStandardSchemeFactory implements SchemeFactory {
      public getPersonData_resultStandardScheme getScheme() {
        return new getPersonData_resultStandardScheme();
      }
    }

    private static class getPersonData_resultStandardScheme extends StandardScheme<getPersonData_result> {

      public void read(org.apache.thrift.protocol.TProtocol iprot, getPersonData_result struct) throws org.apache.thrift.TException {
        org.apache.thrift.protocol.TField schemeField;
        iprot.readStructBegin();
        while (true)
        {
          schemeField = iprot.readFieldBegin();
          if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
            break;
          }
          switch (schemeField.id) {
            case 0: // SUCCESS
              if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
                {
                  org.apache.thrift.protocol.TMap _map16 = iprot.readMapBegin();
                  struct.success = new HashMap<String,String>(2*_map16.size);
                  for (int _i17 = 0; _i17 < _map16.size; ++_i17)
                  {
                    String _key18;
                    String _val19;
                    _key18 = iprot.readString();
                    _val19 = iprot.readString();
                    struct.success.put(_key18, _val19);
                  }
                  iprot.readMapEnd();
                }
                struct.setSuccessIsSet(true);
              } else { 
                org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
              }
              break;
            default:
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
          }
          iprot.readFieldEnd();
        }
        iprot.readStructEnd();

        // check for required fields of primitive type, which can't be checked in the validate method
        struct.validate();
      }

      public void write(org.apache.thrift.protocol.TProtocol oprot, getPersonData_result struct) throws org.apache.thrift.TException {
        struct.validate();

        oprot.writeStructBegin(STRUCT_DESC);
        if (struct.success != null) {
          oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
          {
            oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.success.size()));
            for (Map.Entry<String, String> _iter20 : struct.success.entrySet())
            {
              oprot.writeString(_iter20.getKey());
              oprot.writeString(_iter20.getValue());
            }
            oprot.writeMapEnd();
          }
          oprot.writeFieldEnd();
        }
        oprot.writeFieldStop();
        oprot.writeStructEnd();
      }

    }

    private static class getPersonData_resultTupleSchemeFactory implements SchemeFactory {
      public getPersonData_resultTupleScheme getScheme() {
        return new getPersonData_resultTupleScheme();
      }
    }

    private static class getPersonData_resultTupleScheme extends TupleScheme<getPersonData_result> {

      @Override
      public void write(org.apache.thrift.protocol.TProtocol prot, getPersonData_result struct) throws org.apache.thrift.TException {
        TTupleProtocol oprot = (TTupleProtocol) prot;
        BitSet optionals = new BitSet();
        if (struct.isSetSuccess()) {
          optionals.set(0);
        }
        oprot.writeBitSet(optionals, 1);
        if (struct.isSetSuccess()) {
          {
            oprot.writeI32(struct.success.size());
            for (Map.Entry<String, String> _iter21 : struct.success.entrySet())
            {
              oprot.writeString(_iter21.getKey());
              oprot.writeString(_iter21.getValue());
            }
          }
        }
      }

      @Override
      public void read(org.apache.thrift.protocol.TProtocol prot, getPersonData_result struct) throws org.apache.thrift.TException {
        TTupleProtocol iprot = (TTupleProtocol) prot;
        BitSet incoming = iprot.readBitSet(1);
        if (incoming.get(0)) {
          {
            org.apache.thrift.protocol.TMap _map22 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32());
            struct.success = new HashMap<String,String>(2*_map22.size);
            for (int _i23 = 0; _i23 < _map22.size; ++_i23)
            {
              String _key24;
              String _val25;
              _key24 = iprot.readString();
              _val25 = iprot.readString();
              struct.success.put(_key24, _val25);
            }
          }
          struct.setSuccessIsSet(true);
        }
      }
    }

  }

  public static class writeLecturedata_args implements org.apache.thrift.TBase<writeLecturedata_args, writeLecturedata_args._Fields>, java.io.Serializable, Cloneable, Comparable<writeLecturedata_args>   {
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("writeLecturedata_args");

    private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)-1);
    private static final org.apache.thrift.protocol.TField SHORTDESC_FIELD_DESC = new org.apache.thrift.protocol.TField("shortdesc", org.apache.thrift.protocol.TType.STRING, (short)-2);
    private static final org.apache.thrift.protocol.TField DESC_FIELD_DESC = new org.apache.thrift.protocol.TField("desc", org.apache.thrift.protocol.TType.STRING, (short)-3);
    private static final org.apache.thrift.protocol.TField START_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("startDate", org.apache.thrift.protocol.TType.STRING, (short)-4);
    private static final org.apache.thrift.protocol.TField END_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("endDate", org.apache.thrift.protocol.TType.STRING, (short)-5);
    private static final org.apache.thrift.protocol.TField IS_ACTIVE_FIELD_DESC = new org.apache.thrift.protocol.TField("isActive", org.apache.thrift.protocol.TType.BOOL, (short)-6);
    private static final org.apache.thrift.protocol.TField IMAGENAME_FIELD_DESC = new org.apache.thrift.protocol.TField("imagename", org.apache.thrift.protocol.TType.STRING, (short)-7);
    private static final org.apache.thrift.protocol.TField FIRSTNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("firstname", org.apache.thrift.protocol.TType.STRING, (short)-8);
    private static final org.apache.thrift.protocol.TField LASTNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("lastname", org.apache.thrift.protocol.TType.STRING, (short)-9);
    private static final org.apache.thrift.protocol.TField UNIVERSITY_FIELD_DESC = new org.apache.thrift.protocol.TField("university", org.apache.thrift.protocol.TType.STRING, (short)-10);
    private static final org.apache.thrift.protocol.TField MAIL_FIELD_DESC = new org.apache.thrift.protocol.TField("Mail", org.apache.thrift.protocol.TType.STRING, (short)-11);
    private static final org.apache.thrift.protocol.TField TEL_FIELD_DESC = new org.apache.thrift.protocol.TField("Tel", org.apache.thrift.protocol.TType.STRING, (short)-12);
    private static final org.apache.thrift.protocol.TField FAK_FIELD_DESC = new org.apache.thrift.protocol.TField("Fak", org.apache.thrift.protocol.TType.STRING, (short)-13);

    private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
    static {
      schemes.put(StandardScheme.class, new writeLecturedata_argsStandardSchemeFactory());
      schemes.put(TupleScheme.class, new writeLecturedata_argsTupleSchemeFactory());
    }

    public String name; // required
    public String shortdesc; // required
    public String desc; // required
    public String startDate; // required
    public String endDate; // required
    public boolean isActive; // required
    public String imagename; // required
    public String firstname; // required
    public String lastname; // required
    public String university; // required
    public String Mail; // required
    public String Tel; // required
    public String Fak; // required

    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
      NAME((short)-1, "name"),
      SHORTDESC((short)-2, "shortdesc"),
      DESC((short)-3, "desc"),
      START_DATE((short)-4, "startDate"),
      END_DATE((short)-5, "endDate"),
      IS_ACTIVE((short)-6, "isActive"),
      IMAGENAME((short)-7, "imagename"),
      FIRSTNAME((short)-8, "firstname"),
      LASTNAME((short)-9, "lastname"),
      UNIVERSITY((short)-10, "university"),
      MAIL((short)-11, "Mail"),
      TEL((short)-12, "Tel"),
      FAK((short)-13, "Fak");

      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();

      static {
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
          byName.put(field.getFieldName(), field);
        }
      }

      /**
       * Find the _Fields constant that matches fieldId, or null if its not found.
       */
      public static _Fields findByThriftId(int fieldId) {
        switch(fieldId) {
          case -1: // NAME
            return NAME;
          case -2: // SHORTDESC
            return SHORTDESC;
          case -3: // DESC
            return DESC;
          case -4: // START_DATE
            return START_DATE;
          case -5: // END_DATE
            return END_DATE;
          case -6: // IS_ACTIVE
            return IS_ACTIVE;
          case -7: // IMAGENAME
            return IMAGENAME;
          case -8: // FIRSTNAME
            return FIRSTNAME;
          case -9: // LASTNAME
            return LASTNAME;
          case -10: // UNIVERSITY
            return UNIVERSITY;
          case -11: // MAIL
            return MAIL;
          case -12: // TEL
            return TEL;
          case -13: // FAK
            return FAK;
          default:
            return null;
        }
      }

      /**
       * Find the _Fields constant that matches fieldId, throwing an exception
       * if it is not found.
       */
      public static _Fields findByThriftIdOrThrow(int fieldId) {
        _Fields fields = findByThriftId(fieldId);
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
        return fields;
      }

      /**
       * Find the _Fields constant that matches name, or null if its not found.
       */
      public static _Fields findByName(String name) {
        return byName.get(name);
      }

      private final short _thriftId;
      private final String _fieldName;

      _Fields(short thriftId, String fieldName) {
        _thriftId = thriftId;
        _fieldName = fieldName;
      }

      public short getThriftFieldId() {
        return _thriftId;
      }

      public String getFieldName() {
        return _fieldName;
      }
    }

    // isset id assignments
    private static final int __ISACTIVE_ISSET_ID = 0;
    private byte __isset_bitfield = 0;
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
    static {
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
      tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT, 
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
      tmpMap.put(_Fields.SHORTDESC, new org.apache.thrift.meta_data.FieldMetaData("shortdesc", org.apache.thrift.TFieldRequirementType.DEFAULT, 
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
      tmpMap.put(_Fields.DESC, new org.apache.thrift.meta_data.FieldMetaData("desc", org.apache.thrift.TFieldRequirementType.DEFAULT, 
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
      tmpMap.put(_Fields.START_DATE, new org.apache.thrift.meta_data.FieldMetaData("startDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
      tmpMap.put(_Fields.END_DATE, new org.apache.thrift.meta_data.FieldMetaData("endDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
      tmpMap.put(_Fields.IS_ACTIVE, new org.apache.thrift.meta_data.FieldMetaData("isActive", org.apache.thrift.TFieldRequirementType.DEFAULT, 
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
      tmpMap.put(_Fields.IMAGENAME, new org.apache.thrift.meta_data.FieldMetaData("imagename", org.apache.thrift.TFieldRequirementType.DEFAULT, 
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
      tmpMap.put(_Fields.FIRSTNAME, new org.apache.thrift.meta_data.FieldMetaData("firstname", org.apache.thrift.TFieldRequirementType.DEFAULT, 
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
      tmpMap.put(_Fields.LASTNAME, new org.apache.thrift.meta_data.FieldMetaData("lastname", org.apache.thrift.TFieldRequirementType.DEFAULT, 
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
      tmpMap.put(_Fields.UNIVERSITY, new org.apache.thrift.meta_data.FieldMetaData("university", org.apache.thrift.TFieldRequirementType.DEFAULT, 
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
      tmpMap.put(_Fields.MAIL, new org.apache.thrift.meta_data.FieldMetaData("Mail", org.apache.thrift.TFieldRequirementType.DEFAULT, 
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
      tmpMap.put(_Fields.TEL, new org.apache.thrift.meta_data.FieldMetaData("Tel", org.apache.thrift.TFieldRequirementType.DEFAULT, 
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
      tmpMap.put(_Fields.FAK, new org.apache.thrift.meta_data.FieldMetaData("Fak", org.apache.thrift.TFieldRequirementType.DEFAULT, 
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
      metaDataMap = Collections.unmodifiableMap(tmpMap);
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(writeLecturedata_args.class, metaDataMap);
    }

    public writeLecturedata_args() {
    }

    public writeLecturedata_args(
      String name,
      String shortdesc,
      String desc,
      String startDate,
      String endDate,
      boolean isActive,
      String imagename,
      String firstname,
      String lastname,
      String university,
      String Mail,
      String Tel,
      String Fak)
    {
      this();
      this.name = name;
      this.shortdesc = shortdesc;
      this.desc = desc;
      this.startDate = startDate;
      this.endDate = endDate;
      this.isActive = isActive;
      setIsActiveIsSet(true);
      this.imagename = imagename;
      this.firstname = firstname;
      this.lastname = lastname;
      this.university = university;
      this.Mail = Mail;
      this.Tel = Tel;
      this.Fak = Fak;
    }

    /**
     * Performs a deep copy on <i>other</i>.
     */
    public writeLecturedata_args(writeLecturedata_args other) {
      __isset_bitfield = other.__isset_bitfield;
      if (other.isSetName()) {
        this.name = other.name;
      }
      if (other.isSetShortdesc()) {
        this.shortdesc = other.shortdesc;
      }
      if (other.isSetDesc()) {
        this.desc = other.desc;
      }
      if (other.isSetStartDate()) {
        this.startDate = other.startDate;
      }
      if (other.isSetEndDate()) {
        this.endDate = other.endDate;
      }
      this.isActive = other.isActive;
      if (other.isSetImagename()) {
        this.imagename = other.imagename;
      }
      if (other.isSetFirstname()) {
        this.firstname = other.firstname;
      }
      if (other.isSetLastname()) {
        this.lastname = other.lastname;
      }
      if (other.isSetUniversity()) {
        this.university = other.university;
      }
      if (other.isSetMail()) {
        this.Mail = other.Mail;
      }
      if (other.isSetTel()) {
        this.Tel = other.Tel;
      }
      if (other.isSetFak()) {
        this.Fak = other.Fak;
      }
    }

    public writeLecturedata_args deepCopy() {
      return new writeLecturedata_args(this);
    }

    @Override
    public void clear() {
      this.name = null;
      this.shortdesc = null;
      this.desc = null;
      this.startDate = null;
      this.endDate = null;
      setIsActiveIsSet(false);
      this.isActive = false;
      this.imagename = null;
      this.firstname = null;
      this.lastname = null;
      this.university = null;
      this.Mail = null;
      this.Tel = null;
      this.Fak = null;
    }

    public String getName() {
      return this.name;
    }

    public writeLecturedata_args setName(String name) {
      this.name = name;
      return this;
    }

    public void unsetName() {
      this.name = null;
    }

    /** Returns true if field name is set (has been assigned a value) and false otherwise */
    public boolean isSetName() {
      return this.name != null;
    }

    public void setNameIsSet(boolean value) {
      if (!value) {
        this.name = null;
      }
    }

    public String getShortdesc() {
      return this.shortdesc;
    }

    public writeLecturedata_args setShortdesc(String shortdesc) {
      this.shortdesc = shortdesc;
      return this;
    }

    public void unsetShortdesc() {
      this.shortdesc = null;
    }

    /** Returns true if field shortdesc is set (has been assigned a value) and false otherwise */
    public boolean isSetShortdesc() {
      return this.shortdesc != null;
    }

    public void setShortdescIsSet(boolean value) {
      if (!value) {
        this.shortdesc = null;
      }
    }

    public String getDesc() {
      return this.desc;
    }

    public writeLecturedata_args setDesc(String desc) {
      this.desc = desc;
      return this;
    }

    public void unsetDesc() {
      this.desc = null;
    }

    /** Returns true if field desc is set (has been assigned a value) and false otherwise */
    public boolean isSetDesc() {
      return this.desc != null;
    }

    public void setDescIsSet(boolean value) {
      if (!value) {
        this.desc = null;
      }
    }

    public String getStartDate() {
      return this.startDate;
    }

    public writeLecturedata_args setStartDate(String startDate) {
      this.startDate = startDate;
      return this;
    }

    public void unsetStartDate() {
      this.startDate = null;
    }

    /** Returns true if field startDate is set (has been assigned a value) and false otherwise */
    public boolean isSetStartDate() {
      return this.startDate != null;
    }

    public void setStartDateIsSet(boolean value) {
      if (!value) {
        this.startDate = null;
      }
    }

    public String getEndDate() {
      return this.endDate;
    }

    public writeLecturedata_args setEndDate(String endDate) {
      this.endDate = endDate;
      return this;
    }

    public void unsetEndDate() {
      this.endDate = null;
    }

    /** Returns true if field endDate is set (has been assigned a value) and false otherwise */
    public boolean isSetEndDate() {
      return this.endDate != null;
    }

    public void setEndDateIsSet(boolean value) {
      if (!value) {
        this.endDate = null;
      }
    }

    public boolean isIsActive() {
      return this.isActive;
    }

    public writeLecturedata_args setIsActive(boolean isActive) {
      this.isActive = isActive;
      setIsActiveIsSet(true);
      return this;
    }

    public void unsetIsActive() {
      __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ISACTIVE_ISSET_ID);
    }

    /** Returns true if field isActive is set (has been assigned a value) and false otherwise */
    public boolean isSetIsActive() {
      return EncodingUtils.testBit(__isset_bitfield, __ISACTIVE_ISSET_ID);
    }

    public void setIsActiveIsSet(boolean value) {
      __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ISACTIVE_ISSET_ID, value);
    }

    public String getImagename() {
      return this.imagename;
    }

    public writeLecturedata_args setImagename(String imagename) {
      this.imagename = imagename;
      return this;
    }

    public void unsetImagename() {
      this.imagename = null;
    }

    /** Returns true if field imagename is set (has been assigned a value) and false otherwise */
    public boolean isSetImagename() {
      return this.imagename != null;
    }

    public void setImagenameIsSet(boolean value) {
      if (!value) {
        this.imagename = null;
      }
    }

    public String getFirstname() {
      return this.firstname;
    }

    public writeLecturedata_args setFirstname(String firstname) {
      this.firstname = firstname;
      return this;
    }

    public void unsetFirstname() {
      this.firstname = null;
    }

    /** Returns true if field firstname is set (has been assigned a value) and false otherwise */
    public boolean isSetFirstname() {
      return this.firstname != null;
    }

    public void setFirstnameIsSet(boolean value) {
      if (!value) {
        this.firstname = null;
      }
    }

    public String getLastname() {
      return this.lastname;
    }

    public writeLecturedata_args setLastname(String lastname) {
      this.lastname = lastname;
      return this;
    }

    public void unsetLastname() {
      this.lastname = null;
    }

    /** Returns true if field lastname is set (has been assigned a value) and false otherwise */
    public boolean isSetLastname() {
      return this.lastname != null;
    }

    public void setLastnameIsSet(boolean value) {
      if (!value) {
        this.lastname = null;
      }
    }

    public String getUniversity() {
      return this.university;
    }

    public writeLecturedata_args setUniversity(String university) {
      this.university = university;
      return this;
    }

    public void unsetUniversity() {
      this.university = null;
    }

    /** Returns true if field university is set (has been assigned a value) and false otherwise */
    public boolean isSetUniversity() {
      return this.university != null;
    }

    public void setUniversityIsSet(boolean value) {
      if (!value) {
        this.university = null;
      }
    }

    public String getMail() {
      return this.Mail;
    }

    public writeLecturedata_args setMail(String Mail) {
      this.Mail = Mail;
      return this;
    }

    public void unsetMail() {
      this.Mail = null;
    }

    /** Returns true if field Mail is set (has been assigned a value) and false otherwise */
    public boolean isSetMail() {
      return this.Mail != null;
    }

    public void setMailIsSet(boolean value) {
      if (!value) {
        this.Mail = null;
      }
    }

    public String getTel() {
      return this.Tel;
    }

    public writeLecturedata_args setTel(String Tel) {
      this.Tel = Tel;
      return this;
    }

    public void unsetTel() {
      this.Tel = null;
    }

    /** Returns true if field Tel is set (has been assigned a value) and false otherwise */
    public boolean isSetTel() {
      return this.Tel != null;
    }

    public void setTelIsSet(boolean value) {
      if (!value) {
        this.Tel = null;
      }
    }

    public String getFak() {
      return this.Fak;
    }

    public writeLecturedata_args setFak(String Fak) {
      this.Fak = Fak;
      return this;
    }

    public void unsetFak() {
      this.Fak = null;
    }

    /** Returns true if field Fak is set (has been assigned a value) and false otherwise */
    public boolean isSetFak() {
      return this.Fak != null;
    }

    public void setFakIsSet(boolean value) {
      if (!value) {
        this.Fak = null;
      }
    }

    public void setFieldValue(_Fields field, Object value) {
      switch (field) {
      case NAME:
        if (value == null) {
          unsetName();
        } else {
          setName((String)value);
        }
        break;

      case SHORTDESC:
        if (value == null) {
          unsetShortdesc();
        } else {
          setShortdesc((String)value);
        }
        break;

      case DESC:
        if (value == null) {
          unsetDesc();
        } else {
          setDesc((String)value);
        }
        break;

      case START_DATE:
        if (value == null) {
          unsetStartDate();
        } else {
          setStartDate((String)value);
        }
        break;

      case END_DATE:
        if (value == null) {
          unsetEndDate();
        } else {
          setEndDate((String)value);
        }
        break;

      case IS_ACTIVE:
        if (value == null) {
          unsetIsActive();
        } else {
          setIsActive((Boolean)value);
        }
        break;

      case IMAGENAME:
        if (value == null) {
          unsetImagename();
        } else {
          setImagename((String)value);
        }
        break;

      case FIRSTNAME:
        if (value == null) {
          unsetFirstname();
        } else {
          setFirstname((String)value);
        }
        break;

      case LASTNAME:
        if (value == null) {
          unsetLastname();
        } else {
          setLastname((String)value);
        }
        break;

      case UNIVERSITY:
        if (value == null) {
          unsetUniversity();
        } else {
          setUniversity((String)value);
        }
        break;

      case MAIL:
        if (value == null) {
          unsetMail();
        } else {
          setMail((String)value);
        }
        break;

      case TEL:
        if (value == null) {
          unsetTel();
        } else {
          setTel((String)value);
        }
        break;

      case FAK:
        if (value == null) {
          unsetFak();
        } else {
          setFak((String)value);
        }
        break;

      }
    }

    public Object getFieldValue(_Fields field) {
      switch (field) {
      case NAME:
        return getName();

      case SHORTDESC:
        return getShortdesc();

      case DESC:
        return getDesc();

      case START_DATE:
        return getStartDate();

      case END_DATE:
        return getEndDate();

      case IS_ACTIVE:
        return Boolean.valueOf(isIsActive());

      case IMAGENAME:
        return getImagename();

      case FIRSTNAME:
        return getFirstname();

      case LASTNAME:
        return getLastname();

      case UNIVERSITY:
        return getUniversity();

      case MAIL:
        return getMail();

      case TEL:
        return getTel();

      case FAK:
        return getFak();

      }
      throw new IllegalStateException();
    }

    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
    public boolean isSet(_Fields field) {
      if (field == null) {
        throw new IllegalArgumentException();
      }

      switch (field) {
      case NAME:
        return isSetName();
      case SHORTDESC:
        return isSetShortdesc();
      case DESC:
        return isSetDesc();
      case START_DATE:
        return isSetStartDate();
      case END_DATE:
        return isSetEndDate();
      case IS_ACTIVE:
        return isSetIsActive();
      case IMAGENAME:
        return isSetImagename();
      case FIRSTNAME:
        return isSetFirstname();
      case LASTNAME:
        return isSetLastname();
      case UNIVERSITY:
        return isSetUniversity();
      case MAIL:
        return isSetMail();
      case TEL:
        return isSetTel();
      case FAK:
        return isSetFak();
      }
      throw new IllegalStateException();
    }

    @Override
    public boolean equals(Object that) {
      if (that == null)
        return false;
      if (that instanceof writeLecturedata_args)
        return this.equals((writeLecturedata_args)that);
      return false;
    }

    public boolean equals(writeLecturedata_args that) {
      if (that == null)
        return false;

      boolean this_present_name = true && this.isSetName();
      boolean that_present_name = true && that.isSetName();
      if (this_present_name || that_present_name) {
        if (!(this_present_name && that_present_name))
          return false;
        if (!this.name.equals(that.name))
          return false;
      }

      boolean this_present_shortdesc = true && this.isSetShortdesc();
      boolean that_present_shortdesc = true && that.isSetShortdesc();
      if (this_present_shortdesc || that_present_shortdesc) {
        if (!(this_present_shortdesc && that_present_shortdesc))
          return false;
        if (!this.shortdesc.equals(that.shortdesc))
          return false;
      }

      boolean this_present_desc = true && this.isSetDesc();
      boolean that_present_desc = true && that.isSetDesc();
      if (this_present_desc || that_present_desc) {
        if (!(this_present_desc && that_present_desc))
          return false;
        if (!this.desc.equals(that.desc))
          return false;
      }

      boolean this_present_startDate = true && this.isSetStartDate();
      boolean that_present_startDate = true && that.isSetStartDate();
      if (this_present_startDate || that_present_startDate) {
        if (!(this_present_startDate && that_present_startDate))
          return false;
        if (!this.startDate.equals(that.startDate))
          return false;
      }

      boolean this_present_endDate = true && this.isSetEndDate();
      boolean that_present_endDate = true && that.isSetEndDate();
      if (this_present_endDate || that_present_endDate) {
        if (!(this_present_endDate && that_present_endDate))
          return false;
        if (!this.endDate.equals(that.endDate))
          return false;
      }

      boolean this_present_isActive = true;
      boolean that_present_isActive = true;
      if (this_present_isActive || that_present_isActive) {
        if (!(this_present_isActive && that_present_isActive))
          return false;
        if (this.isActive != that.isActive)
          return false;
      }

      boolean this_present_imagename = true && this.isSetImagename();
      boolean that_present_imagename = true && that.isSetImagename();
      if (this_present_imagename || that_present_imagename) {
        if (!(this_present_imagename && that_present_imagename))
          return false;
        if (!this.imagename.equals(that.imagename))
          return false;
      }

      boolean this_present_firstname = true && this.isSetFirstname();
      boolean that_present_firstname = true && that.isSetFirstname();
      if (this_present_firstname || that_present_firstname) {
        if (!(this_present_firstname && that_present_firstname))
          return false;
        if (!this.firstname.equals(that.firstname))
          return false;
      }

      boolean this_present_lastname = true && this.isSetLastname();
      boolean that_present_lastname = true && that.isSetLastname();
      if (this_present_lastname || that_present_lastname) {
        if (!(this_present_lastname && that_present_lastname))
          return false;
        if (!this.lastname.equals(that.lastname))
          return false;
      }

      boolean this_present_university = true && this.isSetUniversity();
      boolean that_present_university = true && that.isSetUniversity();
      if (this_present_university || that_present_university) {
        if (!(this_present_university && that_present_university))
          return false;
        if (!this.university.equals(that.university))
          return false;
      }

      boolean this_present_Mail = true && this.isSetMail();
      boolean that_present_Mail = true && that.isSetMail();
      if (this_present_Mail || that_present_Mail) {
        if (!(this_present_Mail && that_present_Mail))
          return false;
        if (!this.Mail.equals(that.Mail))
          return false;
      }

      boolean this_present_Tel = true && this.isSetTel();
      boolean that_present_Tel = true && that.isSetTel();
      if (this_present_Tel || that_present_Tel) {
        if (!(this_present_Tel && that_present_Tel))
          return false;
        if (!this.Tel.equals(that.Tel))
          return false;
      }

      boolean this_present_Fak = true && this.isSetFak();
      boolean that_present_Fak = true && that.isSetFak();
      if (this_present_Fak || that_present_Fak) {
        if (!(this_present_Fak && that_present_Fak))
          return false;
        if (!this.Fak.equals(that.Fak))
          return false;
      }

      return true;
    }

    @Override
    public int hashCode() {
      return 0;
    }

    @Override
    public int compareTo(writeLecturedata_args other) {
      if (!getClass().equals(other.getClass())) {
        return getClass().getName().compareTo(other.getClass().getName());
      }

      int lastComparison = 0;

      lastComparison = Boolean.valueOf(isSetName()).compareTo(other.isSetName());
      if (lastComparison != 0) {
        return lastComparison;
      }
      if (isSetName()) {
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, other.name);
        if (lastComparison != 0) {
          return lastComparison;
        }
      }
      lastComparison = Boolean.valueOf(isSetShortdesc()).compareTo(other.isSetShortdesc());
      if (lastComparison != 0) {
        return lastComparison;
      }
      if (isSetShortdesc()) {
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.shortdesc, other.shortdesc);
        if (lastComparison != 0) {
          return lastComparison;
        }
      }
      lastComparison = Boolean.valueOf(isSetDesc()).compareTo(other.isSetDesc());
      if (lastComparison != 0) {
        return lastComparison;
      }
      if (isSetDesc()) {
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.desc, other.desc);
        if (lastComparison != 0) {
          return lastComparison;
        }
      }
      lastComparison = Boolean.valueOf(isSetStartDate()).compareTo(other.isSetStartDate());
      if (lastComparison != 0) {
        return lastComparison;
      }
      if (isSetStartDate()) {
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDate, other.startDate);
        if (lastComparison != 0) {
          return lastComparison;
        }
      }
      lastComparison = Boolean.valueOf(isSetEndDate()).compareTo(other.isSetEndDate());
      if (lastComparison != 0) {
        return lastComparison;
      }
      if (isSetEndDate()) {
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.endDate, other.endDate);
        if (lastComparison != 0) {
          return lastComparison;
        }
      }
      lastComparison = Boolean.valueOf(isSetIsActive()).compareTo(other.isSetIsActive());
      if (lastComparison != 0) {
        return lastComparison;
      }
      if (isSetIsActive()) {
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isActive, other.isActive);
        if (lastComparison != 0) {
          return lastComparison;
        }
      }
      lastComparison = Boolean.valueOf(isSetImagename()).compareTo(other.isSetImagename());
      if (lastComparison != 0) {
        return lastComparison;
      }
      if (isSetImagename()) {
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imagename, other.imagename);
        if (lastComparison != 0) {
          return lastComparison;
        }
      }
      lastComparison = Boolean.valueOf(isSetFirstname()).compareTo(other.isSetFirstname());
      if (lastComparison != 0) {
        return lastComparison;
      }
      if (isSetFirstname()) {
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.firstname, other.firstname);
        if (lastComparison != 0) {
          return lastComparison;
        }
      }
      lastComparison = Boolean.valueOf(isSetLastname()).compareTo(other.isSetLastname());
      if (lastComparison != 0) {
        return lastComparison;
      }
      if (isSetLastname()) {
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastname, other.lastname);
        if (lastComparison != 0) {
          return lastComparison;
        }
      }
      lastComparison = Boolean.valueOf(isSetUniversity()).compareTo(other.isSetUniversity());
      if (lastComparison != 0) {
        return lastComparison;
      }
      if (isSetUniversity()) {
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.university, other.university);
        if (lastComparison != 0) {
          return lastComparison;
        }
      }
      lastComparison = Boolean.valueOf(isSetMail()).compareTo(other.isSetMail());
      if (lastComparison != 0) {
        return lastComparison;
      }
      if (isSetMail()) {
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.Mail, other.Mail);
        if (lastComparison != 0) {
          return lastComparison;
        }
      }
      lastComparison = Boolean.valueOf(isSetTel()).compareTo(other.isSetTel());
      if (lastComparison != 0) {
        return lastComparison;
      }
      if (isSetTel()) {
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.Tel, other.Tel);
        if (lastComparison != 0) {
          return lastComparison;
        }
      }
      lastComparison = Boolean.valueOf(isSetFak()).compareTo(other.isSetFak());
      if (lastComparison != 0) {
        return lastComparison;
      }
      if (isSetFak()) {
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.Fak, other.Fak);
        if (lastComparison != 0) {
          return lastComparison;
        }
      }
      return 0;
    }

    public _Fields fieldForId(int fieldId) {
      return _Fields.findByThriftId(fieldId);
    }

    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
      schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
    }

    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
      schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
    }

    @Override
    public String toString() {
      StringBuilder sb = new StringBuilder("writeLecturedata_args(");
      boolean first = true;

      sb.append("name:");
      if (this.name == null) {
        sb.append("null");
      } else {
        sb.append(this.name);
      }
      first = false;
      if (!first) sb.append(", ");
      sb.append("shortdesc:");
      if (this.shortdesc == null) {
        sb.append("null");
      } else {
        sb.append(this.shortdesc);
      }
      first = false;
      if (!first) sb.append(", ");
      sb.append("desc:");
      if (this.desc == null) {
        sb.append("null");
      } else {
        sb.append(this.desc);
      }
      first = false;
      if (!first) sb.append(", ");
      sb.append("startDate:");
      if (this.startDate == null) {
        sb.append("null");
      } else {
        sb.append(this.startDate);
      }
      first = false;
      if (!first) sb.append(", ");
      sb.append("endDate:");
      if (this.endDate == null) {
        sb.append("null");
      } else {
        sb.append(this.endDate);
      }
      first = false;
      if (!first) sb.append(", ");
      sb.append("isActive:");
      sb.append(this.isActive);
      first = false;
      if (!first) sb.append(", ");
      sb.append("imagename:");
      if (this.imagename == null) {
        sb.append("null");
      } else {
        sb.append(this.imagename);
      }
      first = false;
      if (!first) sb.append(", ");
      sb.append("firstname:");
      if (this.firstname == null) {
        sb.append("null");
      } else {
        sb.append(this.firstname);
      }
      first = false;
      if (!first) sb.append(", ");
      sb.append("lastname:");
      if (this.lastname == null) {
        sb.append("null");
      } else {
        sb.append(this.lastname);
      }
      first = false;
      if (!first) sb.append(", ");
      sb.append("university:");
      if (this.university == null) {
        sb.append("null");
      } else {
        sb.append(this.university);
      }
      first = false;
      if (!first) sb.append(", ");
      sb.append("Mail:");
      if (this.Mail == null) {
        sb.append("null");
      } else {
        sb.append(this.Mail);
      }
      first = false;
      if (!first) sb.append(", ");
      sb.append("Tel:");
      if (this.Tel == null) {
        sb.append("null");
      } else {
        sb.append(this.Tel);
      }
      first = false;
      if (!first) sb.append(", ");
      sb.append("Fak:");
      if (this.Fak == null) {
        sb.append("null");
      } else {
        sb.append(this.Fak);
      }
      first = false;
      sb.append(")");
      return sb.toString();
    }

    public void validate() throws org.apache.thrift.TException {
      // check for required fields
      // check for sub-struct validity
    }

    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
      try {
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
      } catch (org.apache.thrift.TException te) {
        throw new java.io.IOException(te);
      }
    }

    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
      try {
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
        __isset_bitfield = 0;
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
      } catch (org.apache.thrift.TException te) {
        throw new java.io.IOException(te);
      }
    }

    private static class writeLecturedata_argsStandardSchemeFactory implements SchemeFactory {
      public writeLecturedata_argsStandardScheme getScheme() {
        return new writeLecturedata_argsStandardScheme();
      }
    }

    private static class writeLecturedata_argsStandardScheme extends StandardScheme<writeLecturedata_args> {

      public void read(org.apache.thrift.protocol.TProtocol iprot, writeLecturedata_args struct) throws org.apache.thrift.TException {
        org.apache.thrift.protocol.TField schemeField;
        iprot.readStructBegin();
        while (true)
        {
          schemeField = iprot.readFieldBegin();
          if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
            break;
          }
          switch (schemeField.id) {
            case -1: // NAME
              if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
                struct.name = iprot.readString();
                struct.setNameIsSet(true);
              } else { 
                org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
              }
              break;
            case -2: // SHORTDESC
              if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
                struct.shortdesc = iprot.readString();
                struct.setShortdescIsSet(true);
              } else { 
                org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
              }
              break;
            case -3: // DESC
              if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
                struct.desc = iprot.readString();
                struct.setDescIsSet(true);
              } else { 
                org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
              }
              break;
            case -4: // START_DATE
              if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
                struct.startDate = iprot.readString();
                struct.setStartDateIsSet(true);
              } else { 
                org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
              }
              break;
            case -5: // END_DATE
              if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
                struct.endDate = iprot.readString();
                struct.setEndDateIsSet(true);
              } else { 
                org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
              }
              break;
            case -6: // IS_ACTIVE
              if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) {
                struct.isActive = iprot.readBool();
                struct.setIsActiveIsSet(true);
              } else { 
                org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
              }
              break;
            case -7: // IMAGENAME
              if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
                struct.imagename = iprot.readString();
                struct.setImagenameIsSet(true);
              } else { 
                org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
              }
              break;
            case -8: // FIRSTNAME
              if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
                struct.firstname = iprot.readString();
                struct.setFirstnameIsSet(true);
              } else { 
                org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
              }
              break;
            case -9: // LASTNAME
              if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
                struct.lastname = iprot.readString();
                struct.setLastnameIsSet(true);
              } else { 
                org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
              }
              break;
            case -10: // UNIVERSITY
              if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
                struct.university = iprot.readString();
                struct.setUniversityIsSet(true);
              } else { 
                org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
              }
              break;
            case -11: // MAIL
              if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
                struct.Mail = iprot.readString();
                struct.setMailIsSet(true);
              } else { 
                org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
              }
              break;
            case -12: // TEL
              if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
                struct.Tel = iprot.readString();
                struct.setTelIsSet(true);
              } else { 
                org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
              }
              break;
            case -13: // FAK
              if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
                struct.Fak = iprot.readString();
                struct.setFakIsSet(true);
              } else { 
                org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
              }
              break;
            default:
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
          }
          iprot.readFieldEnd();
        }
        iprot.readStructEnd();

        // check for required fields of primitive type, which can't be checked in the validate method
        struct.validate();
      }

      public void write(org.apache.thrift.protocol.TProtocol oprot, writeLecturedata_args struct) throws org.apache.thrift.TException {
        struct.validate();

        oprot.writeStructBegin(STRUCT_DESC);
        if (struct.Fak != null) {
          oprot.writeFieldBegin(FAK_FIELD_DESC);
          oprot.writeString(struct.Fak);
          oprot.writeFieldEnd();
        }
        if (struct.Tel != null) {
          oprot.writeFieldBegin(TEL_FIELD_DESC);
          oprot.writeString(struct.Tel);
          oprot.writeFieldEnd();
        }
        if (struct.Mail != null) {
          oprot.writeFieldBegin(MAIL_FIELD_DESC);
          oprot.writeString(struct.Mail);
          oprot.writeFieldEnd();
        }
        if (struct.university != null) {
          oprot.writeFieldBegin(UNIVERSITY_FIELD_DESC);
          oprot.writeString(struct.university);
          oprot.writeFieldEnd();
        }
        if (struct.lastname != null) {
          oprot.writeFieldBegin(LASTNAME_FIELD_DESC);
          oprot.writeString(struct.lastname);
          oprot.writeFieldEnd();
        }
        if (struct.firstname != null) {
          oprot.writeFieldBegin(FIRSTNAME_FIELD_DESC);
          oprot.writeString(struct.firstname);
          oprot.writeFieldEnd();
        }
        if (struct.imagename != null) {
          oprot.writeFieldBegin(IMAGENAME_FIELD_DESC);
          oprot.writeString(struct.imagename);
          oprot.writeFieldEnd();
        }
        oprot.writeFieldBegin(IS_ACTIVE_FIELD_DESC);
        oprot.writeBool(struct.isActive);
        oprot.writeFieldEnd();
        if (struct.endDate != null) {
          oprot.writeFieldBegin(END_DATE_FIELD_DESC);
          oprot.writeString(struct.endDate);
          oprot.writeFieldEnd();
        }
        if (struct.startDate != null) {
          oprot.writeFieldBegin(START_DATE_FIELD_DESC);
          oprot.writeString(struct.startDate);
          oprot.writeFieldEnd();
        }
        if (struct.desc != null) {
          oprot.writeFieldBegin(DESC_FIELD_DESC);
          oprot.writeString(struct.desc);
          oprot.writeFieldEnd();
        }
        if (struct.shortdesc != null) {
          oprot.writeFieldBegin(SHORTDESC_FIELD_DESC);
          oprot.writeString(struct.shortdesc);
          oprot.writeFieldEnd();
        }
        if (struct.name != null) {
          oprot.writeFieldBegin(NAME_FIELD_DESC);
          oprot.writeString(struct.name);
          oprot.writeFieldEnd();
        }
        oprot.writeFieldStop();
        oprot.writeStructEnd();
      }

    }

    private static class writeLecturedata_argsTupleSchemeFactory implements SchemeFactory {
      public writeLecturedata_argsTupleScheme getScheme() {
        return new writeLecturedata_argsTupleScheme();
      }
    }

    private static class writeLecturedata_argsTupleScheme extends TupleScheme<writeLecturedata_args> {

      @Override
      public void write(org.apache.thrift.protocol.TProtocol prot, writeLecturedata_args struct) throws org.apache.thrift.TException {
        TTupleProtocol oprot = (TTupleProtocol) prot;
        BitSet optionals = new BitSet();
        if (struct.isSetName()) {
          optionals.set(0);
        }
        if (struct.isSetShortdesc()) {
          optionals.set(1);
        }
        if (struct.isSetDesc()) {
          optionals.set(2);
        }
        if (struct.isSetStartDate()) {
          optionals.set(3);
        }
        if (struct.isSetEndDate()) {
          optionals.set(4);
        }
        if (struct.isSetIsActive()) {
          optionals.set(5);
        }
        if (struct.isSetImagename()) {
          optionals.set(6);
        }
        if (struct.isSetFirstname()) {
          optionals.set(7);
        }
        if (struct.isSetLastname()) {
          optionals.set(8);
        }
        if (struct.isSetUniversity()) {
          optionals.set(9);
        }
        if (struct.isSetMail()) {
          optionals.set(10);
        }
        if (struct.isSetTel()) {
          optionals.set(11);
        }
        if (struct.isSetFak()) {
          optionals.set(12);
        }
        oprot.writeBitSet(optionals, 13);
        if (struct.isSetName()) {
          oprot.writeString(struct.name);
        }
        if (struct.isSetShortdesc()) {
          oprot.writeString(struct.shortdesc);
        }
        if (struct.isSetDesc()) {
          oprot.writeString(struct.desc);
        }
        if (struct.isSetStartDate()) {
          oprot.writeString(struct.startDate);
        }
        if (struct.isSetEndDate()) {
          oprot.writeString(struct.endDate);
        }
        if (struct.isSetIsActive()) {
          oprot.writeBool(struct.isActive);
        }
        if (struct.isSetImagename()) {
          oprot.writeString(struct.imagename);
        }
        if (struct.isSetFirstname()) {
          oprot.writeString(struct.firstname);
        }
        if (struct.isSetLastname()) {
          oprot.writeString(struct.lastname);
        }
        if (struct.isSetUniversity()) {
          oprot.writeString(struct.university);
        }
        if (struct.isSetMail()) {
          oprot.writeString(struct.Mail);
        }
        if (struct.isSetTel()) {
          oprot.writeString(struct.Tel);
        }
        if (struct.isSetFak()) {
          oprot.writeString(struct.Fak);
        }
      }

      @Override
      public void read(org.apache.thrift.protocol.TProtocol prot, writeLecturedata_args struct) throws org.apache.thrift.TException {
        TTupleProtocol iprot = (TTupleProtocol) prot;
        BitSet incoming = iprot.readBitSet(13);
        if (incoming.get(0)) {
          struct.name = iprot.readString();
          struct.setNameIsSet(true);
        }
        if (incoming.get(1)) {
          struct.shortdesc = iprot.readString();
          struct.setShortdescIsSet(true);
        }
        if (incoming.get(2)) {
          struct.desc = iprot.readString();
          struct.setDescIsSet(true);
        }
        if (incoming.get(3)) {
          struct.startDate = iprot.readString();
          struct.setStartDateIsSet(true);
        }
        if (incoming.get(4)) {
          struct.endDate = iprot.readString();
          struct.setEndDateIsSet(true);
        }
        if (incoming.get(5)) {
          struct.isActive = iprot.readBool();
          struct.setIsActiveIsSet(true);
        }
        if (incoming.get(6)) {
          struct.imagename = iprot.readString();
          struct.setImagenameIsSet(true);
        }
        if (incoming.get(7)) {
          struct.firstname = iprot.readString();
          struct.setFirstnameIsSet(true);
        }
        if (incoming.get(8)) {
          struct.lastname = iprot.readString();
          struct.setLastnameIsSet(true);
        }
        if (incoming.get(9)) {
          struct.university = iprot.readString();
          struct.setUniversityIsSet(true);
        }
        if (incoming.get(10)) {
          struct.Mail = iprot.readString();
          struct.setMailIsSet(true);
        }
        if (incoming.get(11)) {
          struct.Tel = iprot.readString();
          struct.setTelIsSet(true);
        }
        if (incoming.get(12)) {
          struct.Fak = iprot.readString();
          struct.setFakIsSet(true);
        }
      }
    }

  }

  public static class writeLecturedata_result implements org.apache.thrift.TBase<writeLecturedata_result, writeLecturedata_result._Fields>, java.io.Serializable, Cloneable, Comparable<writeLecturedata_result>   {
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("writeLecturedata_result");

    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);

    private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
    static {
      schemes.put(StandardScheme.class, new writeLecturedata_resultStandardSchemeFactory());
      schemes.put(TupleScheme.class, new writeLecturedata_resultTupleSchemeFactory());
    }

    public boolean success; // required

    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
      SUCCESS((short)0, "success");

      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();

      static {
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
          byName.put(field.getFieldName(), field);
        }
      }

      /**
       * Find the _Fields constant that matches fieldId, or null if its not found.
       */
      public static _Fields findByThriftId(int fieldId) {
        switch(fieldId) {
          case 0: // SUCCESS
            return SUCCESS;
          default:
            return null;
        }
      }

      /**
       * Find the _Fields constant that matches fieldId, throwing an exception
       * if it is not found.
       */
      public static _Fields findByThriftIdOrThrow(int fieldId) {
        _Fields fields = findByThriftId(fieldId);
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
        return fields;
      }

      /**
       * Find the _Fields constant that matches name, or null if its not found.
       */
      public static _Fields findByName(String name) {
        return byName.get(name);
      }

      private final short _thriftId;
      private final String _fieldName;

      _Fields(short thriftId, String fieldName) {
        _thriftId = thriftId;
        _fieldName = fieldName;
      }

      public short getThriftFieldId() {
        return _thriftId;
      }

      public String getFieldName() {
        return _fieldName;
      }
    }

    // isset id assignments
    private static final int __SUCCESS_ISSET_ID = 0;
    private byte __isset_bitfield = 0;
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
    static {
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
      metaDataMap = Collections.unmodifiableMap(tmpMap);
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(writeLecturedata_result.class, metaDataMap);
    }

    public writeLecturedata_result() {
    }

    public writeLecturedata_result(
      boolean success)
    {
      this();
      this.success = success;
      setSuccessIsSet(true);
    }

    /**
     * Performs a deep copy on <i>other</i>.
     */
    public writeLecturedata_result(writeLecturedata_result other) {
      __isset_bitfield = other.__isset_bitfield;
      this.success = other.success;
    }

    public writeLecturedata_result deepCopy() {
      return new writeLecturedata_result(this);
    }

    @Override
    public void clear() {
      setSuccessIsSet(false);
      this.success = false;
    }

    public boolean isSuccess() {
      return this.success;
    }

    public writeLecturedata_result setSuccess(boolean success) {
      this.success = success;
      setSuccessIsSet(true);
      return this;
    }

    public void unsetSuccess() {
      __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
    }

    /** Returns true if field success is set (has been assigned a value) and false otherwise */
    public boolean isSetSuccess() {
      return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
    }

    public void setSuccessIsSet(boolean value) {
      __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
    }

    public void setFieldValue(_Fields field, Object value) {
      switch (field) {
      case SUCCESS:
        if (value == null) {
          unsetSuccess();
        } else {
          setSuccess((Boolean)value);
        }
        break;

      }
    }

    public Object getFieldValue(_Fields field) {
      switch (field) {
      case SUCCESS:
        return Boolean.valueOf(isSuccess());

      }
      throw new IllegalStateException();
    }

    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
    public boolean isSet(_Fields field) {
      if (field == null) {
        throw new IllegalArgumentException();
      }

      switch (field) {
      case SUCCESS:
        return isSetSuccess();
      }
      throw new IllegalStateException();
    }

    @Override
    public boolean equals(Object that) {
      if (that == null)
        return false;
      if (that instanceof writeLecturedata_result)
        return this.equals((writeLecturedata_result)that);
      return false;
    }

    public boolean equals(writeLecturedata_result that) {
      if (that == null)
        return false;

      boolean this_present_success = true;
      boolean that_present_success = true;
      if (this_present_success || that_present_success) {
        if (!(this_present_success && that_present_success))
          return false;
        if (this.success != that.success)
          return false;
      }

      return true;
    }

    @Override
    public int hashCode() {
      return 0;
    }

    @Override
    public int compareTo(writeLecturedata_result other) {
      if (!getClass().equals(other.getClass())) {
        return getClass().getName().compareTo(other.getClass().getName());
      }

      int lastComparison = 0;

      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
      if (lastComparison != 0) {
        return lastComparison;
      }
      if (isSetSuccess()) {
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
        if (lastComparison != 0) {
          return lastComparison;
        }
      }
      return 0;
    }

    public _Fields fieldForId(int fieldId) {
      return _Fields.findByThriftId(fieldId);
    }

    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
      schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
    }

    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
      schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
      }

    @Override
    public String toString() {
      StringBuilder sb = new StringBuilder("writeLecturedata_result(");
      boolean first = true;

      sb.append("success:");
      sb.append(this.success);
      first = false;
      sb.append(")");
      return sb.toString();
    }

    public void validate() throws org.apache.thrift.TException {
      // check for required fields
      // check for sub-struct validity
    }

    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
      try {
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
      } catch (org.apache.thrift.TException te) {
        throw new java.io.IOException(te);
      }
    }

    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
      try {
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
        __isset_bitfield = 0;
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
      } catch (org.apache.thrift.TException te) {
        throw new java.io.IOException(te);
      }
    }

    private static class writeLecturedata_resultStandardSchemeFactory implements SchemeFactory {
      public writeLecturedata_resultStandardScheme getScheme() {
        return new writeLecturedata_resultStandardScheme();
      }
    }

    private static class writeLecturedata_resultStandardScheme extends StandardScheme<writeLecturedata_result> {

      public void read(org.apache.thrift.protocol.TProtocol iprot, writeLecturedata_result struct) throws org.apache.thrift.TException {
        org.apache.thrift.protocol.TField schemeField;
        iprot.readStructBegin();
        while (true)
        {
          schemeField = iprot.readFieldBegin();
          if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
            break;
          }
          switch (schemeField.id) {
            case 0: // SUCCESS
              if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) {
                struct.success = iprot.readBool();
                struct.setSuccessIsSet(true);
              } else { 
                org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
              }
              break;
            default:
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
          }
          iprot.readFieldEnd();
        }
        iprot.readStructEnd();

        // check for required fields of primitive type, which can't be checked in the validate method
        struct.validate();
      }

      public void write(org.apache.thrift.protocol.TProtocol oprot, writeLecturedata_result struct) throws org.apache.thrift.TException {
        struct.validate();

        oprot.writeStructBegin(STRUCT_DESC);
        if (struct.isSetSuccess()) {
          oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
          oprot.writeBool(struct.success);
          oprot.writeFieldEnd();
        }
        oprot.writeFieldStop();
        oprot.writeStructEnd();
      }

    }

    private static class writeLecturedata_resultTupleSchemeFactory implements SchemeFactory {
      public writeLecturedata_resultTupleScheme getScheme() {
        return new writeLecturedata_resultTupleScheme();
      }
    }

    private static class writeLecturedata_resultTupleScheme extends TupleScheme<writeLecturedata_result> {

      @Override
      public void write(org.apache.thrift.protocol.TProtocol prot, writeLecturedata_result struct) throws org.apache.thrift.TException {
        TTupleProtocol oprot = (TTupleProtocol) prot;
        BitSet optionals = new BitSet();
        if (struct.isSetSuccess()) {
          optionals.set(0);
        }
        oprot.writeBitSet(optionals, 1);
        if (struct.isSetSuccess()) {
          oprot.writeBool(struct.success);
        }
      }

      @Override
      public void read(org.apache.thrift.protocol.TProtocol prot, writeLecturedata_result struct) throws org.apache.thrift.TException {
        TTupleProtocol iprot = (TTupleProtocol) prot;
        BitSet incoming = iprot.readBitSet(1);
        if (incoming.get(0)) {
          struct.success = iprot.readBool();
          struct.setSuccessIsSet(true);
        }
      }
    }

  }

  public static class startFileCopy_args implements org.apache.thrift.TBase<startFileCopy_args, startFileCopy_args._Fields>, java.io.Serializable, Cloneable, Comparable<startFileCopy_args>   {
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("startFileCopy_args");

    private static final org.apache.thrift.protocol.TField FILE_FIELD_DESC = new org.apache.thrift.protocol.TField("file", org.apache.thrift.protocol.TType.STRING, (short)-1);

    private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
    static {
      schemes.put(StandardScheme.class, new startFileCopy_argsStandardSchemeFactory());
      schemes.put(TupleScheme.class, new startFileCopy_argsTupleSchemeFactory());
    }

    public String file; // required

    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
      FILE((short)-1, "file");

      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();

      static {
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
          byName.put(field.getFieldName(), field);
        }
      }

      /**
       * Find the _Fields constant that matches fieldId, or null if its not found.
       */
      public static _Fields findByThriftId(int fieldId) {
        switch(fieldId) {
          case -1: // FILE
            return FILE;
          default:
            return null;
        }
      }

      /**
       * Find the _Fields constant that matches fieldId, throwing an exception
       * if it is not found.
       */
      public static _Fields findByThriftIdOrThrow(int fieldId) {
        _Fields fields = findByThriftId(fieldId);
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
        return fields;
      }

      /**
       * Find the _Fields constant that matches name, or null if its not found.
       */
      public static _Fields findByName(String name) {
        return byName.get(name);
      }

      private final short _thriftId;
      private final String _fieldName;

      _Fields(short thriftId, String fieldName) {
        _thriftId = thriftId;
        _fieldName = fieldName;
      }

      public short getThriftFieldId() {
        return _thriftId;
      }

      public String getFieldName() {
        return _fieldName;
      }
    }

    // isset id assignments
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
    static {
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
      tmpMap.put(_Fields.FILE, new org.apache.thrift.meta_data.FieldMetaData("file", org.apache.thrift.TFieldRequirementType.DEFAULT, 
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
      metaDataMap = Collections.unmodifiableMap(tmpMap);
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(startFileCopy_args.class, metaDataMap);
    }

    public startFileCopy_args() {
    }

    public startFileCopy_args(
      String file)
    {
      this();
      this.file = file;
    }

    /**
     * Performs a deep copy on <i>other</i>.
     */
    public startFileCopy_args(startFileCopy_args other) {
      if (other.isSetFile()) {
        this.file = other.file;
      }
    }

    public startFileCopy_args deepCopy() {
      return new startFileCopy_args(this);
    }

    @Override
    public void clear() {
      this.file = null;
    }

    public String getFile() {
      return this.file;
    }

    public startFileCopy_args setFile(String file) {
      this.file = file;
      return this;
    }

    public void unsetFile() {
      this.file = null;
    }

    /** Returns true if field file is set (has been assigned a value) and false otherwise */
    public boolean isSetFile() {
      return this.file != null;
    }

    public void setFileIsSet(boolean value) {
      if (!value) {
        this.file = null;
      }
    }

    public void setFieldValue(_Fields field, Object value) {
      switch (field) {
      case FILE:
        if (value == null) {
          unsetFile();
        } else {
          setFile((String)value);
        }
        break;

      }
    }

    public Object getFieldValue(_Fields field) {
      switch (field) {
      case FILE:
        return getFile();

      }
      throw new IllegalStateException();
    }

    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
    public boolean isSet(_Fields field) {
      if (field == null) {
        throw new IllegalArgumentException();
      }

      switch (field) {
      case FILE:
        return isSetFile();
      }
      throw new IllegalStateException();
    }

    @Override
    public boolean equals(Object that) {
      if (that == null)
        return false;
      if (that instanceof startFileCopy_args)
        return this.equals((startFileCopy_args)that);
      return false;
    }

    public boolean equals(startFileCopy_args that) {
      if (that == null)
        return false;

      boolean this_present_file = true && this.isSetFile();
      boolean that_present_file = true && that.isSetFile();
      if (this_present_file || that_present_file) {
        if (!(this_present_file && that_present_file))
          return false;
        if (!this.file.equals(that.file))
          return false;
      }

      return true;
    }

    @Override
    public int hashCode() {
      return 0;
    }

    @Override
    public int compareTo(startFileCopy_args other) {
      if (!getClass().equals(other.getClass())) {
        return getClass().getName().compareTo(other.getClass().getName());
      }

      int lastComparison = 0;

      lastComparison = Boolean.valueOf(isSetFile()).compareTo(other.isSetFile());
      if (lastComparison != 0) {
        return lastComparison;
      }
      if (isSetFile()) {
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.file, other.file);
        if (lastComparison != 0) {
          return lastComparison;
        }
      }
      return 0;
    }

    public _Fields fieldForId(int fieldId) {
      return _Fields.findByThriftId(fieldId);
    }

    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
      schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
    }

    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
      schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
    }

    @Override
    public String toString() {
      StringBuilder sb = new StringBuilder("startFileCopy_args(");
      boolean first = true;

      sb.append("file:");
      if (this.file == null) {
        sb.append("null");
      } else {
        sb.append(this.file);
      }
      first = false;
      sb.append(")");
      return sb.toString();
    }

    public void validate() throws org.apache.thrift.TException {
      // check for required fields
      // check for sub-struct validity
    }

    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
      try {
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
      } catch (org.apache.thrift.TException te) {
        throw new java.io.IOException(te);
      }
    }

    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
      try {
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
      } catch (org.apache.thrift.TException te) {
        throw new java.io.IOException(te);
      }
    }

    private static class startFileCopy_argsStandardSchemeFactory implements SchemeFactory {
      public startFileCopy_argsStandardScheme getScheme() {
        return new startFileCopy_argsStandardScheme();
      }
    }

    private static class startFileCopy_argsStandardScheme extends StandardScheme<startFileCopy_args> {

      public void read(org.apache.thrift.protocol.TProtocol iprot, startFileCopy_args struct) throws org.apache.thrift.TException {
        org.apache.thrift.protocol.TField schemeField;
        iprot.readStructBegin();
        while (true)
        {
          schemeField = iprot.readFieldBegin();
          if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
            break;
          }
          switch (schemeField.id) {
            case -1: // FILE
              if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
                struct.file = iprot.readString();
                struct.setFileIsSet(true);
              } else { 
                org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
              }
              break;
            default:
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
          }
          iprot.readFieldEnd();
        }
        iprot.readStructEnd();

        // check for required fields of primitive type, which can't be checked in the validate method
        struct.validate();
      }

      public void write(org.apache.thrift.protocol.TProtocol oprot, startFileCopy_args struct) throws org.apache.thrift.TException {
        struct.validate();

        oprot.writeStructBegin(STRUCT_DESC);
        if (struct.file != null) {
          oprot.writeFieldBegin(FILE_FIELD_DESC);
          oprot.writeString(struct.file);
          oprot.writeFieldEnd();
        }
        oprot.writeFieldStop();
        oprot.writeStructEnd();
      }

    }

    private static class startFileCopy_argsTupleSchemeFactory implements SchemeFactory {
      public startFileCopy_argsTupleScheme getScheme() {
        return new startFileCopy_argsTupleScheme();
      }
    }

    private static class startFileCopy_argsTupleScheme extends TupleScheme<startFileCopy_args> {

      @Override
      public void write(org.apache.thrift.protocol.TProtocol prot, startFileCopy_args struct) throws org.apache.thrift.TException {
        TTupleProtocol oprot = (TTupleProtocol) prot;
        BitSet optionals = new BitSet();
        if (struct.isSetFile()) {
          optionals.set(0);
        }
        oprot.writeBitSet(optionals, 1);
        if (struct.isSetFile()) {
          oprot.writeString(struct.file);
        }
      }

      @Override
      public void read(org.apache.thrift.protocol.TProtocol prot, startFileCopy_args struct) throws org.apache.thrift.TException {
        TTupleProtocol iprot = (TTupleProtocol) prot;
        BitSet incoming = iprot.readBitSet(1);
        if (incoming.get(0)) {
          struct.file = iprot.readString();
          struct.setFileIsSet(true);
        }
      }
    }

  }

  public static class startFileCopy_result implements org.apache.thrift.TBase<startFileCopy_result, startFileCopy_result._Fields>, java.io.Serializable, Cloneable, Comparable<startFileCopy_result>   {
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("startFileCopy_result");

    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);

    private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
    static {
      schemes.put(StandardScheme.class, new startFileCopy_resultStandardSchemeFactory());
      schemes.put(TupleScheme.class, new startFileCopy_resultTupleSchemeFactory());
    }

    public boolean success; // required

    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
      SUCCESS((short)0, "success");

      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();

      static {
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
          byName.put(field.getFieldName(), field);
        }
      }

      /**
       * Find the _Fields constant that matches fieldId, or null if its not found.
       */
      public static _Fields findByThriftId(int fieldId) {
        switch(fieldId) {
          case 0: // SUCCESS
            return SUCCESS;
          default:
            return null;
        }
      }

      /**
       * Find the _Fields constant that matches fieldId, throwing an exception
       * if it is not found.
       */
      public static _Fields findByThriftIdOrThrow(int fieldId) {
        _Fields fields = findByThriftId(fieldId);
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
        return fields;
      }

      /**
       * Find the _Fields constant that matches name, or null if its not found.
       */
      public static _Fields findByName(String name) {
        return byName.get(name);
      }

      private final short _thriftId;
      private final String _fieldName;

      _Fields(short thriftId, String fieldName) {
        _thriftId = thriftId;
        _fieldName = fieldName;
      }

      public short getThriftFieldId() {
        return _thriftId;
      }

      public String getFieldName() {
        return _fieldName;
      }
    }

    // isset id assignments
    private static final int __SUCCESS_ISSET_ID = 0;
    private byte __isset_bitfield = 0;
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
    static {
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
      metaDataMap = Collections.unmodifiableMap(tmpMap);
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(startFileCopy_result.class, metaDataMap);
    }

    public startFileCopy_result() {
    }

    public startFileCopy_result(
      boolean success)
    {
      this();
      this.success = success;
      setSuccessIsSet(true);
    }

    /**
     * Performs a deep copy on <i>other</i>.
     */
    public startFileCopy_result(startFileCopy_result other) {
      __isset_bitfield = other.__isset_bitfield;
      this.success = other.success;
    }

    public startFileCopy_result deepCopy() {
      return new startFileCopy_result(this);
    }

    @Override
    public void clear() {
      setSuccessIsSet(false);
      this.success = false;
    }

    public boolean isSuccess() {
      return this.success;
    }

    public startFileCopy_result setSuccess(boolean success) {
      this.success = success;
      setSuccessIsSet(true);
      return this;
    }

    public void unsetSuccess() {
      __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
    }

    /** Returns true if field success is set (has been assigned a value) and false otherwise */
    public boolean isSetSuccess() {
      return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
    }

    public void setSuccessIsSet(boolean value) {
      __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
    }

    public void setFieldValue(_Fields field, Object value) {
      switch (field) {
      case SUCCESS:
        if (value == null) {
          unsetSuccess();
        } else {
          setSuccess((Boolean)value);
        }
        break;

      }
    }

    public Object getFieldValue(_Fields field) {
      switch (field) {
      case SUCCESS:
        return Boolean.valueOf(isSuccess());

      }
      throw new IllegalStateException();
    }

    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
    public boolean isSet(_Fields field) {
      if (field == null) {
        throw new IllegalArgumentException();
      }

      switch (field) {
      case SUCCESS:
        return isSetSuccess();
      }
      throw new IllegalStateException();
    }

    @Override
    public boolean equals(Object that) {
      if (that == null)
        return false;
      if (that instanceof startFileCopy_result)
        return this.equals((startFileCopy_result)that);
      return false;
    }

    public boolean equals(startFileCopy_result that) {
      if (that == null)
        return false;

      boolean this_present_success = true;
      boolean that_present_success = true;
      if (this_present_success || that_present_success) {
        if (!(this_present_success && that_present_success))
          return false;
        if (this.success != that.success)
          return false;
      }

      return true;
    }

    @Override
    public int hashCode() {
      return 0;
    }

    @Override
    public int compareTo(startFileCopy_result other) {
      if (!getClass().equals(other.getClass())) {
        return getClass().getName().compareTo(other.getClass().getName());
      }

      int lastComparison = 0;

      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
      if (lastComparison != 0) {
        return lastComparison;
      }
      if (isSetSuccess()) {
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
        if (lastComparison != 0) {
          return lastComparison;
        }
      }
      return 0;
    }

    public _Fields fieldForId(int fieldId) {
      return _Fields.findByThriftId(fieldId);
    }

    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
      schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
    }

    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
      schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
      }

    @Override
    public String toString() {
      StringBuilder sb = new StringBuilder("startFileCopy_result(");
      boolean first = true;

      sb.append("success:");
      sb.append(this.success);
      first = false;
      sb.append(")");
      return sb.toString();
    }

    public void validate() throws org.apache.thrift.TException {
      // check for required fields
      // check for sub-struct validity
    }

    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
      try {
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
      } catch (org.apache.thrift.TException te) {
        throw new java.io.IOException(te);
      }
    }

    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
      try {
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
        __isset_bitfield = 0;
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
      } catch (org.apache.thrift.TException te) {
        throw new java.io.IOException(te);
      }
    }

    private static class startFileCopy_resultStandardSchemeFactory implements SchemeFactory {
      public startFileCopy_resultStandardScheme getScheme() {
        return new startFileCopy_resultStandardScheme();
      }
    }

    private static class startFileCopy_resultStandardScheme extends StandardScheme<startFileCopy_result> {

      public void read(org.apache.thrift.protocol.TProtocol iprot, startFileCopy_result struct) throws org.apache.thrift.TException {
        org.apache.thrift.protocol.TField schemeField;
        iprot.readStructBegin();
        while (true)
        {
          schemeField = iprot.readFieldBegin();
          if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
            break;
          }
          switch (schemeField.id) {
            case 0: // SUCCESS
              if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) {
                struct.success = iprot.readBool();
                struct.setSuccessIsSet(true);
              } else { 
                org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
              }
              break;
            default:
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
          }
          iprot.readFieldEnd();
        }
        iprot.readStructEnd();

        // check for required fields of primitive type, which can't be checked in the validate method
        struct.validate();
      }

      public void write(org.apache.thrift.protocol.TProtocol oprot, startFileCopy_result struct) throws org.apache.thrift.TException {
        struct.validate();

        oprot.writeStructBegin(STRUCT_DESC);
        if (struct.isSetSuccess()) {
          oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
          oprot.writeBool(struct.success);
          oprot.writeFieldEnd();
        }
        oprot.writeFieldStop();
        oprot.writeStructEnd();
      }

    }

    private static class startFileCopy_resultTupleSchemeFactory implements SchemeFactory {
      public startFileCopy_resultTupleScheme getScheme() {
        return new startFileCopy_resultTupleScheme();
      }
    }

    private static class startFileCopy_resultTupleScheme extends TupleScheme<startFileCopy_result> {

      @Override
      public void write(org.apache.thrift.protocol.TProtocol prot, startFileCopy_result struct) throws org.apache.thrift.TException {
        TTupleProtocol oprot = (TTupleProtocol) prot;
        BitSet optionals = new BitSet();
        if (struct.isSetSuccess()) {
          optionals.set(0);
        }
        oprot.writeBitSet(optionals, 1);
        if (struct.isSetSuccess()) {
          oprot.writeBool(struct.success);
        }
      }

      @Override
      public void read(org.apache.thrift.protocol.TProtocol prot, startFileCopy_result struct) throws org.apache.thrift.TException {
        TTupleProtocol iprot = (TTupleProtocol) prot;
        BitSet incoming = iprot.readBitSet(1);
        if (incoming.get(0)) {
          struct.success = iprot.readBool();
          struct.setSuccessIsSet(true);
        }
      }
    }

  }

  public static class getImageData_args implements org.apache.thrift.TBase<getImageData_args, getImageData_args._Fields>, java.io.Serializable, Cloneable, Comparable<getImageData_args>   {
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getImageData_args");

    private static final org.apache.thrift.protocol.TField IMAGEID_FIELD_DESC = new org.apache.thrift.protocol.TField("imageid", org.apache.thrift.protocol.TType.STRING, (short)-1);
    private static final org.apache.thrift.protocol.TField IMAGEVERSION_FIELD_DESC = new org.apache.thrift.protocol.TField("imageversion", org.apache.thrift.protocol.TType.STRING, (short)-2);

    private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
    static {
      schemes.put(StandardScheme.class, new getImageData_argsStandardSchemeFactory());
      schemes.put(TupleScheme.class, new getImageData_argsTupleSchemeFactory());
    }

    public String imageid; // required
    public String imageversion; // required

    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
      IMAGEID((short)-1, "imageid"),
      IMAGEVERSION((short)-2, "imageversion");

      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();

      static {
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
          byName.put(field.getFieldName(), field);
        }
      }

      /**
       * Find the _Fields constant that matches fieldId, or null if its not found.
       */
      public static _Fields findByThriftId(int fieldId) {
        switch(fieldId) {
          case -1: // IMAGEID
            return IMAGEID;
          case -2: // IMAGEVERSION
            return IMAGEVERSION;
          default:
            return null;
        }
      }

      /**
       * Find the _Fields constant that matches fieldId, throwing an exception
       * if it is not found.
       */
      public static _Fields findByThriftIdOrThrow(int fieldId) {
        _Fields fields = findByThriftId(fieldId);
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
        return fields;
      }

      /**
       * Find the _Fields constant that matches name, or null if its not found.
       */
      public static _Fields findByName(String name) {
        return byName.get(name);
      }

      private final short _thriftId;
      private final String _fieldName;

      _Fields(short thriftId, String fieldName) {
        _thriftId = thriftId;
        _fieldName = fieldName;
      }

      public short getThriftFieldId() {
        return _thriftId;
      }

      public String getFieldName() {
        return _fieldName;
      }
    }

    // isset id assignments
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
    static {
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
      tmpMap.put(_Fields.IMAGEID, new org.apache.thrift.meta_data.FieldMetaData("imageid", org.apache.thrift.TFieldRequirementType.DEFAULT, 
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
      tmpMap.put(_Fields.IMAGEVERSION, new org.apache.thrift.meta_data.FieldMetaData("imageversion", org.apache.thrift.TFieldRequirementType.DEFAULT, 
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
      metaDataMap = Collections.unmodifiableMap(tmpMap);
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImageData_args.class, metaDataMap);
    }

    public getImageData_args() {
    }

    public getImageData_args(
      String imageid,
      String imageversion)
    {
      this();
      this.imageid = imageid;
      this.imageversion = imageversion;
    }

    /**
     * Performs a deep copy on <i>other</i>.
     */
    public getImageData_args(getImageData_args other) {
      if (other.isSetImageid()) {
        this.imageid = other.imageid;
      }
      if (other.isSetImageversion()) {
        this.imageversion = other.imageversion;
      }
    }

    public getImageData_args deepCopy() {
      return new getImageData_args(this);
    }

    @Override
    public void clear() {
      this.imageid = null;
      this.imageversion = null;
    }

    public String getImageid() {
      return this.imageid;
    }

    public getImageData_args setImageid(String imageid) {
      this.imageid = imageid;
      return this;
    }

    public void unsetImageid() {
      this.imageid = null;
    }

    /** Returns true if field imageid is set (has been assigned a value) and false otherwise */
    public boolean isSetImageid() {
      return this.imageid != null;
    }

    public void setImageidIsSet(boolean value) {
      if (!value) {
        this.imageid = null;
      }
    }

    public String getImageversion() {
      return this.imageversion;
    }

    public getImageData_args setImageversion(String imageversion) {
      this.imageversion = imageversion;
      return this;
    }

    public void unsetImageversion() {
      this.imageversion = null;
    }

    /** Returns true if field imageversion is set (has been assigned a value) and false otherwise */
    public boolean isSetImageversion() {
      return this.imageversion != null;
    }

    public void setImageversionIsSet(boolean value) {
      if (!value) {
        this.imageversion = null;
      }
    }

    public void setFieldValue(_Fields field, Object value) {
      switch (field) {
      case IMAGEID:
        if (value == null) {
          unsetImageid();
        } else {
          setImageid((String)value);
        }
        break;

      case IMAGEVERSION:
        if (value == null) {
          unsetImageversion();
        } else {
          setImageversion((String)value);
        }
        break;

      }
    }

    public Object getFieldValue(_Fields field) {
      switch (field) {
      case IMAGEID:
        return getImageid();

      case IMAGEVERSION:
        return getImageversion();

      }
      throw new IllegalStateException();
    }

    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
    public boolean isSet(_Fields field) {
      if (field == null) {
        throw new IllegalArgumentException();
      }

      switch (field) {
      case IMAGEID:
        return isSetImageid();
      case IMAGEVERSION:
        return isSetImageversion();
      }
      throw new IllegalStateException();
    }

    @Override
    public boolean equals(Object that) {
      if (that == null)
        return false;
      if (that instanceof getImageData_args)
        return this.equals((getImageData_args)that);
      return false;
    }

    public boolean equals(getImageData_args that) {
      if (that == null)
        return false;

      boolean this_present_imageid = true && this.isSetImageid();
      boolean that_present_imageid = true && that.isSetImageid();
      if (this_present_imageid || that_present_imageid) {
        if (!(this_present_imageid && that_present_imageid))
          return false;
        if (!this.imageid.equals(that.imageid))
          return false;
      }

      boolean this_present_imageversion = true && this.isSetImageversion();
      boolean that_present_imageversion = true && that.isSetImageversion();
      if (this_present_imageversion || that_present_imageversion) {
        if (!(this_present_imageversion && that_present_imageversion))
          return false;
        if (!this.imageversion.equals(that.imageversion))
          return false;
      }

      return true;
    }

    @Override
    public int hashCode() {
      return 0;
    }

    @Override
    public int compareTo(getImageData_args other) {
      if (!getClass().equals(other.getClass())) {
        return getClass().getName().compareTo(other.getClass().getName());
      }

      int lastComparison = 0;

      lastComparison = Boolean.valueOf(isSetImageid()).compareTo(other.isSetImageid());
      if (lastComparison != 0) {
        return lastComparison;
      }
      if (isSetImageid()) {
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imageid, other.imageid);
        if (lastComparison != 0) {
          return lastComparison;
        }
      }
      lastComparison = Boolean.valueOf(isSetImageversion()).compareTo(other.isSetImageversion());
      if (lastComparison != 0) {
        return lastComparison;
      }
      if (isSetImageversion()) {
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imageversion, other.imageversion);
        if (lastComparison != 0) {
          return lastComparison;
        }
      }
      return 0;
    }

    public _Fields fieldForId(int fieldId) {
      return _Fields.findByThriftId(fieldId);
    }

    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
      schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
    }

    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
      schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
    }

    @Override
    public String toString() {
      StringBuilder sb = new StringBuilder("getImageData_args(");
      boolean first = true;

      sb.append("imageid:");
      if (this.imageid == null) {
        sb.append("null");
      } else {
        sb.append(this.imageid);
      }
      first = false;
      if (!first) sb.append(", ");
      sb.append("imageversion:");
      if (this.imageversion == null) {
        sb.append("null");
      } else {
        sb.append(this.imageversion);
      }
      first = false;
      sb.append(")");
      return sb.toString();
    }

    public void validate() throws org.apache.thrift.TException {
      // check for required fields
      // check for sub-struct validity
    }

    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
      try {
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
      } catch (org.apache.thrift.TException te) {
        throw new java.io.IOException(te);
      }
    }

    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
      try {
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
      } catch (org.apache.thrift.TException te) {
        throw new java.io.IOException(te);
      }
    }

    private static class getImageData_argsStandardSchemeFactory implements SchemeFactory {
      public getImageData_argsStandardScheme getScheme() {
        return new getImageData_argsStandardScheme();
      }
    }

    private static class getImageData_argsStandardScheme extends StandardScheme<getImageData_args> {

      public void read(org.apache.thrift.protocol.TProtocol iprot, getImageData_args struct) throws org.apache.thrift.TException {
        org.apache.thrift.protocol.TField schemeField;
        iprot.readStructBegin();
        while (true)
        {
          schemeField = iprot.readFieldBegin();
          if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
            break;
          }
          switch (schemeField.id) {
            case -1: // IMAGEID
              if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
                struct.imageid = iprot.readString();
                struct.setImageidIsSet(true);
              } else { 
                org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
              }
              break;
            case -2: // IMAGEVERSION
              if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
                struct.imageversion = iprot.readString();
                struct.setImageversionIsSet(true);
              } else { 
                org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
              }
              break;
            default:
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
          }
          iprot.readFieldEnd();
        }
        iprot.readStructEnd();

        // check for required fields of primitive type, which can't be checked in the validate method
        struct.validate();
      }

      public void write(org.apache.thrift.protocol.TProtocol oprot, getImageData_args struct) throws org.apache.thrift.TException {
        struct.validate();

        oprot.writeStructBegin(STRUCT_DESC);
        if (struct.imageversion != null) {
          oprot.writeFieldBegin(IMAGEVERSION_FIELD_DESC);
          oprot.writeString(struct.imageversion);
          oprot.writeFieldEnd();
        }
        if (struct.imageid != null) {
          oprot.writeFieldBegin(IMAGEID_FIELD_DESC);
          oprot.writeString(struct.imageid);
          oprot.writeFieldEnd();
        }
        oprot.writeFieldStop();
        oprot.writeStructEnd();
      }

    }

    private static class getImageData_argsTupleSchemeFactory implements SchemeFactory {
      public getImageData_argsTupleScheme getScheme() {
        return new getImageData_argsTupleScheme();
      }
    }

    private static class getImageData_argsTupleScheme extends TupleScheme<getImageData_args> {

      @Override
      public void write(org.apache.thrift.protocol.TProtocol prot, getImageData_args struct) throws org.apache.thrift.TException {
        TTupleProtocol oprot = (TTupleProtocol) prot;
        BitSet optionals = new BitSet();
        if (struct.isSetImageid()) {
          optionals.set(0);
        }
        if (struct.isSetImageversion()) {
          optionals.set(1);
        }
        oprot.writeBitSet(optionals, 2);
        if (struct.isSetImageid()) {
          oprot.writeString(struct.imageid);
        }
        if (struct.isSetImageversion()) {
          oprot.writeString(struct.imageversion);
        }
      }

      @Override
      public void read(org.apache.thrift.protocol.TProtocol prot, getImageData_args struct) throws org.apache.thrift.TException {
        TTupleProtocol iprot = (TTupleProtocol) prot;
        BitSet incoming = iprot.readBitSet(2);
        if (incoming.get(0)) {
          struct.imageid = iprot.readString();
          struct.setImageidIsSet(true);
        }
        if (incoming.get(1)) {
          struct.imageversion = iprot.readString();
          struct.setImageversionIsSet(true);
        }
      }
    }

  }

  public static class getImageData_result implements org.apache.thrift.TBase<getImageData_result, getImageData_result._Fields>, java.io.Serializable, Cloneable, Comparable<getImageData_result>   {
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getImageData_result");

    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0);

    private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
    static {
      schemes.put(StandardScheme.class, new getImageData_resultStandardSchemeFactory());
      schemes.put(TupleScheme.class, new getImageData_resultTupleSchemeFactory());
    }

    public Map<String,String> success; // required

    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
      SUCCESS((short)0, "success");

      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();

      static {
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
          byName.put(field.getFieldName(), field);
        }
      }

      /**
       * Find the _Fields constant that matches fieldId, or null if its not found.
       */
      public static _Fields findByThriftId(int fieldId) {
        switch(fieldId) {
          case 0: // SUCCESS
            return SUCCESS;
          default:
            return null;
        }
      }

      /**
       * Find the _Fields constant that matches fieldId, throwing an exception
       * if it is not found.
       */
      public static _Fields findByThriftIdOrThrow(int fieldId) {
        _Fields fields = findByThriftId(fieldId);
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
        return fields;
      }

      /**
       * Find the _Fields constant that matches name, or null if its not found.
       */
      public static _Fields findByName(String name) {
        return byName.get(name);
      }

      private final short _thriftId;
      private final String _fieldName;

      _Fields(short thriftId, String fieldName) {
        _thriftId = thriftId;
        _fieldName = fieldName;
      }

      public short getThriftFieldId() {
        return _thriftId;
      }

      public String getFieldName() {
        return _fieldName;
      }
    }

    // isset id assignments
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
    static {
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), 
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
      metaDataMap = Collections.unmodifiableMap(tmpMap);
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImageData_result.class, metaDataMap);
    }

    public getImageData_result() {
    }

    public getImageData_result(
      Map<String,String> success)
    {
      this();
      this.success = success;
    }

    /**
     * Performs a deep copy on <i>other</i>.
     */
    public getImageData_result(getImageData_result other) {
      if (other.isSetSuccess()) {
        Map<String,String> __this__success = new HashMap<String,String>(other.success);
        this.success = __this__success;
      }
    }

    public getImageData_result deepCopy() {
      return new getImageData_result(this);
    }

    @Override
    public void clear() {
      this.success = null;
    }

    public int getSuccessSize() {
      return (this.success == null) ? 0 : this.success.size();
    }

    public void putToSuccess(String key, String val) {
      if (this.success == null) {
        this.success = new HashMap<String,String>();
      }
      this.success.put(key, val);
    }

    public Map<String,String> getSuccess() {
      return this.success;
    }

    public getImageData_result setSuccess(Map<String,String> success) {
      this.success = success;
      return this;
    }

    public void unsetSuccess() {
      this.success = null;
    }

    /** Returns true if field success is set (has been assigned a value) and false otherwise */
    public boolean isSetSuccess() {
      return this.success != null;
    }

    public void setSuccessIsSet(boolean value) {
      if (!value) {
        this.success = null;
      }
    }

    public void setFieldValue(_Fields field, Object value) {
      switch (field) {
      case SUCCESS:
        if (value == null) {
          unsetSuccess();
        } else {
          setSuccess((Map<String,String>)value);
        }
        break;

      }
    }

    public Object getFieldValue(_Fields field) {
      switch (field) {
      case SUCCESS:
        return getSuccess();

      }
      throw new IllegalStateException();
    }

    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
    public boolean isSet(_Fields field) {
      if (field == null) {
        throw new IllegalArgumentException();
      }

      switch (field) {
      case SUCCESS:
        return isSetSuccess();
      }
      throw new IllegalStateException();
    }

    @Override
    public boolean equals(Object that) {
      if (that == null)
        return false;
      if (that instanceof getImageData_result)
        return this.equals((getImageData_result)that);
      return false;
    }

    public boolean equals(getImageData_result that) {
      if (that == null)
        return false;

      boolean this_present_success = true && this.isSetSuccess();
      boolean that_present_success = true && that.isSetSuccess();
      if (this_present_success || that_present_success) {
        if (!(this_present_success && that_present_success))
          return false;
        if (!this.success.equals(that.success))
          return false;
      }

      return true;
    }

    @Override
    public int hashCode() {
      return 0;
    }

    @Override
    public int compareTo(getImageData_result other) {
      if (!getClass().equals(other.getClass())) {
        return getClass().getName().compareTo(other.getClass().getName());
      }

      int lastComparison = 0;

      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
      if (lastComparison != 0) {
        return lastComparison;
      }
      if (isSetSuccess()) {
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
        if (lastComparison != 0) {
          return lastComparison;
        }
      }
      return 0;
    }

    public _Fields fieldForId(int fieldId) {
      return _Fields.findByThriftId(fieldId);
    }

    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
      schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
    }

    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
      schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
      }

    @Override
    public String toString() {
      StringBuilder sb = new StringBuilder("getImageData_result(");
      boolean first = true;

      sb.append("success:");
      if (this.success == null) {
        sb.append("null");
      } else {
        sb.append(this.success);
      }
      first = false;
      sb.append(")");
      return sb.toString();
    }

    public void validate() throws org.apache.thrift.TException {
      // check for required fields
      // check for sub-struct validity
    }

    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
      try {
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
      } catch (org.apache.thrift.TException te) {
        throw new java.io.IOException(te);
      }
    }

    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
      try {
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
      } catch (org.apache.thrift.TException te) {
        throw new java.io.IOException(te);
      }
    }

    private static class getImageData_resultStandardSchemeFactory implements SchemeFactory {
      public getImageData_resultStandardScheme getScheme() {
        return new getImageData_resultStandardScheme();
      }
    }

    private static class getImageData_resultStandardScheme extends StandardScheme<getImageData_result> {

      public void read(org.apache.thrift.protocol.TProtocol iprot, getImageData_result struct) throws org.apache.thrift.TException {
        org.apache.thrift.protocol.TField schemeField;
        iprot.readStructBegin();
        while (true)
        {
          schemeField = iprot.readFieldBegin();
          if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
            break;
          }
          switch (schemeField.id) {
            case 0: // SUCCESS
              if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
                {
                  org.apache.thrift.protocol.TMap _map26 = iprot.readMapBegin();
                  struct.success = new HashMap<String,String>(2*_map26.size);
                  for (int _i27 = 0; _i27 < _map26.size; ++_i27)
                  {
                    String _key28;
                    String _val29;
                    _key28 = iprot.readString();
                    _val29 = iprot.readString();
                    struct.success.put(_key28, _val29);
                  }
                  iprot.readMapEnd();
                }
                struct.setSuccessIsSet(true);
              } else { 
                org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
              }
              break;
            default:
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
          }
          iprot.readFieldEnd();
        }
        iprot.readStructEnd();

        // check for required fields of primitive type, which can't be checked in the validate method
        struct.validate();
      }

      public void write(org.apache.thrift.protocol.TProtocol oprot, getImageData_result struct) throws org.apache.thrift.TException {
        struct.validate();

        oprot.writeStructBegin(STRUCT_DESC);
        if (struct.success != null) {
          oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
          {
            oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.success.size()));
            for (Map.Entry<String, String> _iter30 : struct.success.entrySet())
            {
              oprot.writeString(_iter30.getKey());
              oprot.writeString(_iter30.getValue());
            }
            oprot.writeMapEnd();
          }
          oprot.writeFieldEnd();
        }
        oprot.writeFieldStop();
        oprot.writeStructEnd();
      }

    }

    private static class getImageData_resultTupleSchemeFactory implements SchemeFactory {
      public getImageData_resultTupleScheme getScheme() {
        return new getImageData_resultTupleScheme();
      }
    }

    private static class getImageData_resultTupleScheme extends TupleScheme<getImageData_result> {

      @Override
      public void write(org.apache.thrift.protocol.TProtocol prot, getImageData_result struct) throws org.apache.thrift.TException {
        TTupleProtocol oprot = (TTupleProtocol) prot;
        BitSet optionals = new BitSet();
        if (struct.isSetSuccess()) {
          optionals.set(0);
        }
        oprot.writeBitSet(optionals, 1);
        if (struct.isSetSuccess()) {
          {
            oprot.writeI32(struct.success.size());
            for (Map.Entry<String, String> _iter31 : struct.success.entrySet())
            {
              oprot.writeString(_iter31.getKey());
              oprot.writeString(_iter31.getValue());
            }
          }
        }
      }

      @Override
      public void read(org.apache.thrift.protocol.TProtocol prot, getImageData_result struct) throws org.apache.thrift.TException {
        TTupleProtocol iprot = (TTupleProtocol) prot;
        BitSet incoming = iprot.readBitSet(1);
        if (incoming.get(0)) {
          {
            org.apache.thrift.protocol.TMap _map32 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32());
            struct.success = new HashMap<String,String>(2*_map32.size);
            for (int _i33 = 0; _i33 < _map32.size; ++_i33)
            {
              String _key34;
              String _val35;
              _key34 = iprot.readString();
              _val35 = iprot.readString();
              struct.success.put(_key34, _val35);
            }
          }
          struct.setSuccessIsSet(true);
        }
      }
    }

  }

  public static class updateImageData_args implements org.apache.thrift.TBase<updateImageData_args, updateImageData_args._Fields>, java.io.Serializable, Cloneable, Comparable<updateImageData_args>   {
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateImageData_args");

    private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)-1);
    private static final org.apache.thrift.protocol.TField NEW_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("newName", org.apache.thrift.protocol.TType.STRING, (short)-2);
    private static final org.apache.thrift.protocol.TField LICENSE_FIELD_DESC = new org.apache.thrift.protocol.TField("license", org.apache.thrift.protocol.TType.BOOL, (short)-3);
    private static final org.apache.thrift.protocol.TField INTERNET_FIELD_DESC = new org.apache.thrift.protocol.TField("internet", org.apache.thrift.protocol.TType.BOOL, (short)-4);
    private static final org.apache.thrift.protocol.TField RAM_FIELD_DESC = new org.apache.thrift.protocol.TField("ram", org.apache.thrift.protocol.TType.I64, (short)-5);
    private static final org.apache.thrift.protocol.TField CPU_FIELD_DESC = new org.apache.thrift.protocol.TField("cpu", org.apache.thrift.protocol.TType.I64, (short)-6);
    private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.STRING, (short)-7);
    private static final org.apache.thrift.protocol.TField VERSION_FIELD_DESC = new org.apache.thrift.protocol.TField("version", org.apache.thrift.protocol.TType.STRING, (short)-8);

    private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
    static {
      schemes.put(StandardScheme.class, new updateImageData_argsStandardSchemeFactory());
      schemes.put(TupleScheme.class, new updateImageData_argsTupleSchemeFactory());
    }

    public String name; // required
    public String newName; // required
    public boolean license; // required
    public boolean internet; // required
    public long ram; // required
    public long cpu; // required
    public String id; // required
    public String version; // required

    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
      NAME((short)-1, "name"),
      NEW_NAME((short)-2, "newName"),
      LICENSE((short)-3, "license"),
      INTERNET((short)-4, "internet"),
      RAM((short)-5, "ram"),
      CPU((short)-6, "cpu"),
      ID((short)-7, "id"),
      VERSION((short)-8, "version");

      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();

      static {
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
          byName.put(field.getFieldName(), field);
        }
      }

      /**
       * Find the _Fields constant that matches fieldId, or null if its not found.
       */
      public static _Fields findByThriftId(int fieldId) {
        switch(fieldId) {
          case -1: // NAME
            return NAME;
          case -2: // NEW_NAME
            return NEW_NAME;
          case -3: // LICENSE
            return LICENSE;
          case -4: // INTERNET
            return INTERNET;
          case -5: // RAM
            return RAM;
          case -6: // CPU
            return CPU;
          case -7: // ID
            return ID;
          case -8: // VERSION
            return VERSION;
          default:
            return null;
        }
      }

      /**
       * Find the _Fields constant that matches fieldId, throwing an exception
       * if it is not found.
       */
      public static _Fields findByThriftIdOrThrow(int fieldId) {
        _Fields fields = findByThriftId(fieldId);
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
        return fields;
      }

      /**
       * Find the _Fields constant that matches name, or null if its not found.
       */
      public static _Fields findByName(String name) {
        return byName.get(name);
      }

      private final short _thriftId;
      private final String _fieldName;

      _Fields(short thriftId, String fieldName) {
        _thriftId = thriftId;
        _fieldName = fieldName;
      }

      public short getThriftFieldId() {
        return _thriftId;
      }

      public String getFieldName() {
        return _fieldName;
      }
    }

    // isset id assignments
    private static final int __LICENSE_ISSET_ID = 0;
    private static final int __INTERNET_ISSET_ID = 1;
    private static final int __RAM_ISSET_ID = 2;
    private static final int __CPU_ISSET_ID = 3;
    private byte __isset_bitfield = 0;
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
    static {
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
      tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT, 
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
      tmpMap.put(_Fields.NEW_NAME, new org.apache.thrift.meta_data.FieldMetaData("newName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
      tmpMap.put(_Fields.LICENSE, new org.apache.thrift.meta_data.FieldMetaData("license", org.apache.thrift.TFieldRequirementType.DEFAULT, 
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
      tmpMap.put(_Fields.INTERNET, new org.apache.thrift.meta_data.FieldMetaData("internet", org.apache.thrift.TFieldRequirementType.DEFAULT, 
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
      tmpMap.put(_Fields.RAM, new org.apache.thrift.meta_data.FieldMetaData("ram", org.apache.thrift.TFieldRequirementType.DEFAULT, 
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64          , "int")));
      tmpMap.put(_Fields.CPU, new org.apache.thrift.meta_data.FieldMetaData("cpu", org.apache.thrift.TFieldRequirementType.DEFAULT, 
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64          , "int")));
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
      tmpMap.put(_Fields.VERSION, new org.apache.thrift.meta_data.FieldMetaData("version", org.apache.thrift.TFieldRequirementType.DEFAULT, 
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
      metaDataMap = Collections.unmodifiableMap(tmpMap);
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateImageData_args.class, metaDataMap);
    }

    public updateImageData_args() {
    }

    public updateImageData_args(
      String name,
      String newName,
      boolean license,
      boolean internet,
      long ram,
      long cpu,
      String id,
      String version)
    {
      this();
      this.name = name;
      this.newName = newName;
      this.license = license;
      setLicenseIsSet(true);
      this.internet = internet;
      setInternetIsSet(true);
      this.ram = ram;
      setRamIsSet(true);
      this.cpu = cpu;
      setCpuIsSet(true);
      this.id = id;
      this.version = version;
    }

    /**
     * Performs a deep copy on <i>other</i>.
     */
    public updateImageData_args(updateImageData_args other) {
      __isset_bitfield = other.__isset_bitfield;
      if (other.isSetName()) {
        this.name = other.name;
      }
      if (other.isSetNewName()) {
        this.newName = other.newName;
      }
      this.license = other.license;
      this.internet = other.internet;
      this.ram = other.ram;
      this.cpu = other.cpu;
      if (other.isSetId()) {
        this.id = other.id;
      }
      if (other.isSetVersion()) {
        this.version = other.version;
      }
    }

    public updateImageData_args deepCopy() {
      return new updateImageData_args(this);
    }

    @Override
    public void clear() {
      this.name = null;
      this.newName = null;
      setLicenseIsSet(false);
      this.license = false;
      setInternetIsSet(false);
      this.internet = false;
      setRamIsSet(false);
      this.ram = 0;
      setCpuIsSet(false);
      this.cpu = 0;
      this.id = null;
      this.version = null;
    }

    public String getName() {
      return this.name;
    }

    public updateImageData_args setName(String name) {
      this.name = name;
      return this;
    }

    public void unsetName() {
      this.name = null;
    }

    /** Returns true if field name is set (has been assigned a value) and false otherwise */
    public boolean isSetName() {
      return this.name != null;
    }

    public void setNameIsSet(boolean value) {
      if (!value) {
        this.name = null;
      }
    }

    public String getNewName() {
      return this.newName;
    }

    public updateImageData_args setNewName(String newName) {
      this.newName = newName;
      return this;
    }

    public void unsetNewName() {
      this.newName = null;
    }

    /** Returns true if field newName is set (has been assigned a value) and false otherwise */
    public boolean isSetNewName() {
      return this.newName != null;
    }

    public void setNewNameIsSet(boolean value) {
      if (!value) {
        this.newName = null;
      }
    }

    public boolean isLicense() {
      return this.license;
    }

    public updateImageData_args setLicense(boolean license) {
      this.license = license;
      setLicenseIsSet(true);
      return this;
    }

    public void unsetLicense() {
      __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __LICENSE_ISSET_ID);
    }

    /** Returns true if field license is set (has been assigned a value) and false otherwise */
    public boolean isSetLicense() {
      return EncodingUtils.testBit(__isset_bitfield, __LICENSE_ISSET_ID);
    }

    public void setLicenseIsSet(boolean value) {
      __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __LICENSE_ISSET_ID, value);
    }

    public boolean isInternet() {
      return this.internet;
    }

    public updateImageData_args setInternet(boolean internet) {
      this.internet = internet;
      setInternetIsSet(true);
      return this;
    }

    public void unsetInternet() {
      __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __INTERNET_ISSET_ID);
    }

    /** Returns true if field internet is set (has been assigned a value) and false otherwise */
    public boolean isSetInternet() {
      return EncodingUtils.testBit(__isset_bitfield, __INTERNET_ISSET_ID);
    }

    public void setInternetIsSet(boolean value) {
      __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __INTERNET_ISSET_ID, value);
    }

    public long getRam() {
      return this.ram;
    }

    public updateImageData_args setRam(long ram) {
      this.ram = ram;
      setRamIsSet(true);
      return this;
    }

    public void unsetRam() {
      __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RAM_ISSET_ID);
    }

    /** Returns true if field ram is set (has been assigned a value) and false otherwise */
    public boolean isSetRam() {
      return EncodingUtils.testBit(__isset_bitfield, __RAM_ISSET_ID);
    }

    public void setRamIsSet(boolean value) {
      __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RAM_ISSET_ID, value);
    }

    public long getCpu() {
      return this.cpu;
    }

    public updateImageData_args setCpu(long cpu) {
      this.cpu = cpu;
      setCpuIsSet(true);
      return this;
    }

    public void unsetCpu() {
      __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __CPU_ISSET_ID);
    }

    /** Returns true if field cpu is set (has been assigned a value) and false otherwise */
    public boolean isSetCpu() {
      return EncodingUtils.testBit(__isset_bitfield, __CPU_ISSET_ID);
    }

    public void setCpuIsSet(boolean value) {
      __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __CPU_ISSET_ID, value);
    }

    public String getId() {
      return this.id;
    }

    public updateImageData_args setId(String id) {
      this.id = id;
      return this;
    }

    public void unsetId() {
      this.id = null;
    }

    /** Returns true if field id is set (has been assigned a value) and false otherwise */
    public boolean isSetId() {
      return this.id != null;
    }

    public void setIdIsSet(boolean value) {
      if (!value) {
        this.id = null;
      }
    }

    public String getVersion() {
      return this.version;
    }

    public updateImageData_args setVersion(String version) {
      this.version = version;
      return this;
    }

    public void unsetVersion() {
      this.version = null;
    }

    /** Returns true if field version is set (has been assigned a value) and false otherwise */
    public boolean isSetVersion() {
      return this.version != null;
    }

    public void setVersionIsSet(boolean value) {
      if (!value) {
        this.version = null;
      }
    }

    public void setFieldValue(_Fields field, Object value) {
      switch (field) {
      case NAME:
        if (value == null) {
          unsetName();
        } else {
          setName((String)value);
        }
        break;

      case NEW_NAME:
        if (value == null) {
          unsetNewName();
        } else {
          setNewName((String)value);
        }
        break;

      case LICENSE:
        if (value == null) {
          unsetLicense();
        } else {
          setLicense((Boolean)value);
        }
        break;

      case INTERNET:
        if (value == null) {
          unsetInternet();
        } else {
          setInternet((Boolean)value);
        }
        break;

      case RAM:
        if (value == null) {
          unsetRam();
        } else {
          setRam((Long)value);
        }
        break;

      case CPU:
        if (value == null) {
          unsetCpu();
        } else {
          setCpu((Long)value);
        }
        break;

      case ID:
        if (value == null) {
          unsetId();
        } else {
          setId((String)value);
        }
        break;

      case VERSION:
        if (value == null) {
          unsetVersion();
        } else {
          setVersion((String)value);
        }
        break;

      }
    }

    public Object getFieldValue(_Fields field) {
      switch (field) {
      case NAME:
        return getName();

      case NEW_NAME:
        return getNewName();

      case LICENSE:
        return Boolean.valueOf(isLicense());

      case INTERNET:
        return Boolean.valueOf(isInternet());

      case RAM:
        return Long.valueOf(getRam());

      case CPU:
        return Long.valueOf(getCpu());

      case ID:
        return getId();

      case VERSION:
        return getVersion();

      }
      throw new IllegalStateException();
    }

    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
    public boolean isSet(_Fields field) {
      if (field == null) {
        throw new IllegalArgumentException();
      }

      switch (field) {
      case NAME:
        return isSetName();
      case NEW_NAME:
        return isSetNewName();
      case LICENSE:
        return isSetLicense();
      case INTERNET:
        return isSetInternet();
      case RAM:
        return isSetRam();
      case CPU:
        return isSetCpu();
      case ID:
        return isSetId();
      case VERSION:
        return isSetVersion();
      }
      throw new IllegalStateException();
    }

    @Override
    public boolean equals(Object that) {
      if (that == null)
        return false;
      if (that instanceof updateImageData_args)
        return this.equals((updateImageData_args)that);
      return false;
    }

    public boolean equals(updateImageData_args that) {
      if (that == null)
        return false;

      boolean this_present_name = true && this.isSetName();
      boolean that_present_name = true && that.isSetName();
      if (this_present_name || that_present_name) {
        if (!(this_present_name && that_present_name))
          return false;
        if (!this.name.equals(that.name))
          return false;
      }

      boolean this_present_newName = true && this.isSetNewName();
      boolean that_present_newName = true && that.isSetNewName();
      if (this_present_newName || that_present_newName) {
        if (!(this_present_newName && that_present_newName))
          return false;
        if (!this.newName.equals(that.newName))
          return false;
      }

      boolean this_present_license = true;
      boolean that_present_license = true;
      if (this_present_license || that_present_license) {
        if (!(this_present_license && that_present_license))
          return false;
        if (this.license != that.license)
          return false;
      }

      boolean this_present_internet = true;
      boolean that_present_internet = true;
      if (this_present_internet || that_present_internet) {
        if (!(this_present_internet && that_present_internet))
          return false;
        if (this.internet != that.internet)
          return false;
      }

      boolean this_present_ram = true;
      boolean that_present_ram = true;
      if (this_present_ram || that_present_ram) {
        if (!(this_present_ram && that_present_ram))
          return false;
        if (this.ram != that.ram)
          return false;
      }

      boolean this_present_cpu = true;
      boolean that_present_cpu = true;
      if (this_present_cpu || that_present_cpu) {
        if (!(this_present_cpu && that_present_cpu))
          return false;
        if (this.cpu != that.cpu)
          return false;
      }

      boolean this_present_id = true && this.isSetId();
      boolean that_present_id = true && that.isSetId();
      if (this_present_id || that_present_id) {
        if (!(this_present_id && that_present_id))
          return false;
        if (!this.id.equals(that.id))
          return false;
      }

      boolean this_present_version = true && this.isSetVersion();
      boolean that_present_version = true && that.isSetVersion();
      if (this_present_version || that_present_version) {
        if (!(this_present_version && that_present_version))
          return false;
        if (!this.version.equals(that.version))
          return false;
      }

      return true;
    }

    @Override
    public int hashCode() {
      return 0;
    }

    @Override
    public int compareTo(updateImageData_args other) {
      if (!getClass().equals(other.getClass())) {
        return getClass().getName().compareTo(other.getClass().getName());
      }

      int lastComparison = 0;

      lastComparison = Boolean.valueOf(isSetName()).compareTo(other.isSetName());
      if (lastComparison != 0) {
        return lastComparison;
      }
      if (isSetName()) {
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, other.name);
        if (lastComparison != 0) {
          return lastComparison;
        }
      }
      lastComparison = Boolean.valueOf(isSetNewName()).compareTo(other.isSetNewName());
      if (lastComparison != 0) {
        return lastComparison;
      }
      if (isSetNewName()) {
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.newName, other.newName);
        if (lastComparison != 0) {
          return lastComparison;
        }
      }
      lastComparison = Boolean.valueOf(isSetLicense()).compareTo(other.isSetLicense());
      if (lastComparison != 0) {
        return lastComparison;
      }
      if (isSetLicense()) {
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.license, other.license);
        if (lastComparison != 0) {
          return lastComparison;
        }
      }
      lastComparison = Boolean.valueOf(isSetInternet()).compareTo(other.isSetInternet());
      if (lastComparison != 0) {
        return lastComparison;
      }
      if (isSetInternet()) {
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.internet, other.internet);
        if (lastComparison != 0) {
          return lastComparison;
        }
      }
      lastComparison = Boolean.valueOf(isSetRam()).compareTo(other.isSetRam());
      if (lastComparison != 0) {
        return lastComparison;
      }
      if (isSetRam()) {
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ram, other.ram);
        if (lastComparison != 0) {
          return lastComparison;
        }
      }
      lastComparison = Boolean.valueOf(isSetCpu()).compareTo(other.isSetCpu());
      if (lastComparison != 0) {
        return lastComparison;
      }
      if (isSetCpu()) {
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cpu, other.cpu);
        if (lastComparison != 0) {
          return lastComparison;
        }
      }
      lastComparison = Boolean.valueOf(isSetId()).compareTo(other.isSetId());
      if (lastComparison != 0) {
        return lastComparison;
      }
      if (isSetId()) {
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, other.id);
        if (lastComparison != 0) {
          return lastComparison;
        }
      }
      lastComparison = Boolean.valueOf(isSetVersion()).compareTo(other.isSetVersion());
      if (lastComparison != 0) {
        return lastComparison;
      }
      if (isSetVersion()) {
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.version, other.version);
        if (lastComparison != 0) {
          return lastComparison;
        }
      }
      return 0;
    }

    public _Fields fieldForId(int fieldId) {
      return _Fields.findByThriftId(fieldId);
    }

    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
      schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
    }

    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
      schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
    }

    @Override
    public String toString() {
      StringBuilder sb = new StringBuilder("updateImageData_args(");
      boolean first = true;

      sb.append("name:");
      if (this.name == null) {
        sb.append("null");
      } else {
        sb.append(this.name);
      }
      first = false;
      if (!first) sb.append(", ");
      sb.append("newName:");
      if (this.newName == null) {
        sb.append("null");
      } else {
        sb.append(this.newName);
      }
      first = false;
      if (!first) sb.append(", ");
      sb.append("license:");
      sb.append(this.license);
      first = false;
      if (!first) sb.append(", ");
      sb.append("internet:");
      sb.append(this.internet);
      first = false;
      if (!first) sb.append(", ");
      sb.append("ram:");
      sb.append(this.ram);
      first = false;
      if (!first) sb.append(", ");
      sb.append("cpu:");
      sb.append(this.cpu);
      first = false;
      if (!first) sb.append(", ");
      sb.append("id:");
      if (this.id == null) {
        sb.append("null");
      } else {
        sb.append(this.id);
      }
      first = false;
      if (!first) sb.append(", ");
      sb.append("version:");
      if (this.version == null) {
        sb.append("null");
      } else {
        sb.append(this.version);
      }
      first = false;
      sb.append(")");
      return sb.toString();
    }

    public void validate() throws org.apache.thrift.TException {
      // check for required fields
      // check for sub-struct validity
    }

    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
      try {
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
      } catch (org.apache.thrift.TException te) {
        throw new java.io.IOException(te);
      }
    }

    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
      try {
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
        __isset_bitfield = 0;
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
      } catch (org.apache.thrift.TException te) {
        throw new java.io.IOException(te);
      }
    }

    private static class updateImageData_argsStandardSchemeFactory implements SchemeFactory {
      public updateImageData_argsStandardScheme getScheme() {
        return new updateImageData_argsStandardScheme();
      }
    }

    private static class updateImageData_argsStandardScheme extends StandardScheme<updateImageData_args> {

      public void read(org.apache.thrift.protocol.TProtocol iprot, updateImageData_args struct) throws org.apache.thrift.TException {
        org.apache.thrift.protocol.TField schemeField;
        iprot.readStructBegin();
        while (true)
        {
          schemeField = iprot.readFieldBegin();
          if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
            break;
          }
          switch (schemeField.id) {
            case -1: // NAME
              if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
                struct.name = iprot.readString();
                struct.setNameIsSet(true);
              } else { 
                org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
              }
              break;
            case -2: // NEW_NAME
              if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
                struct.newName = iprot.readString();
                struct.setNewNameIsSet(true);
              } else { 
                org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
              }
              break;
            case -3: // LICENSE
              if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) {
                struct.license = iprot.readBool();
                struct.setLicenseIsSet(true);
              } else { 
                org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
              }
              break;
            case -4: // INTERNET
              if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) {
                struct.internet = iprot.readBool();
                struct.setInternetIsSet(true);
              } else { 
                org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
              }
              break;
            case -5: // RAM
              if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
                struct.ram = iprot.readI64();
                struct.setRamIsSet(true);
              } else { 
                org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
              }
              break;
            case -6: // CPU
              if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
                struct.cpu = iprot.readI64();
                struct.setCpuIsSet(true);
              } else { 
                org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
              }
              break;
            case -7: // ID
              if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
                struct.id = iprot.readString();
                struct.setIdIsSet(true);
              } else { 
                org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
              }
              break;
            case -8: // VERSION
              if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
                struct.version = iprot.readString();
                struct.setVersionIsSet(true);
              } else { 
                org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
              }
              break;
            default:
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
          }
          iprot.readFieldEnd();
        }
        iprot.readStructEnd();

        // check for required fields of primitive type, which can't be checked in the validate method
        struct.validate();
      }

      public void write(org.apache.thrift.protocol.TProtocol oprot, updateImageData_args struct) throws org.apache.thrift.TException {
        struct.validate();

        oprot.writeStructBegin(STRUCT_DESC);
        if (struct.version != null) {
          oprot.writeFieldBegin(VERSION_FIELD_DESC);
          oprot.writeString(struct.version);
          oprot.writeFieldEnd();
        }
        if (struct.id != null) {
          oprot.writeFieldBegin(ID_FIELD_DESC);
          oprot.writeString(struct.id);
          oprot.writeFieldEnd();
        }
        oprot.writeFieldBegin(CPU_FIELD_DESC);
        oprot.writeI64(struct.cpu);
        oprot.writeFieldEnd();
        oprot.writeFieldBegin(RAM_FIELD_DESC);
        oprot.writeI64(struct.ram);
        oprot.writeFieldEnd();
        oprot.writeFieldBegin(INTERNET_FIELD_DESC);
        oprot.writeBool(struct.internet);
        oprot.writeFieldEnd();
        oprot.writeFieldBegin(LICENSE_FIELD_DESC);
        oprot.writeBool(struct.license);
        oprot.writeFieldEnd();
        if (struct.newName != null) {
          oprot.writeFieldBegin(NEW_NAME_FIELD_DESC);
          oprot.writeString(struct.newName);
          oprot.writeFieldEnd();
        }
        if (struct.name != null) {
          oprot.writeFieldBegin(NAME_FIELD_DESC);
          oprot.writeString(struct.name);
          oprot.writeFieldEnd();
        }
        oprot.writeFieldStop();
        oprot.writeStructEnd();
      }

    }

    private static class updateImageData_argsTupleSchemeFactory implements SchemeFactory {
      public updateImageData_argsTupleScheme getScheme() {
        return new updateImageData_argsTupleScheme();
      }
    }

    private static class updateImageData_argsTupleScheme extends TupleScheme<updateImageData_args> {

      @Override
      public void write(org.apache.thrift.protocol.TProtocol prot, updateImageData_args struct) throws org.apache.thrift.TException {
        TTupleProtocol oprot = (TTupleProtocol) prot;
        BitSet optionals = new BitSet();
        if (struct.isSetName()) {
          optionals.set(0);
        }
        if (struct.isSetNewName()) {
          optionals.set(1);
        }
        if (struct.isSetLicense()) {
          optionals.set(2);
        }
        if (struct.isSetInternet()) {
          optionals.set(3);
        }
        if (struct.isSetRam()) {
          optionals.set(4);
        }
        if (struct.isSetCpu()) {
          optionals.set(5);
        }
        if (struct.isSetId()) {
          optionals.set(6);
        }
        if (struct.isSetVersion()) {
          optionals.set(7);
        }
        oprot.writeBitSet(optionals, 8);
        if (struct.isSetName()) {
          oprot.writeString(struct.name);
        }
        if (struct.isSetNewName()) {
          oprot.writeString(struct.newName);
        }
        if (struct.isSetLicense()) {
          oprot.writeBool(struct.license);
        }
        if (struct.isSetInternet()) {
          oprot.writeBool(struct.internet);
        }
        if (struct.isSetRam()) {
          oprot.writeI64(struct.ram);
        }
        if (struct.isSetCpu()) {
          oprot.writeI64(struct.cpu);
        }
        if (struct.isSetId()) {
          oprot.writeString(struct.id);
        }
        if (struct.isSetVersion()) {
          oprot.writeString(struct.version);
        }
      }

      @Override
      public void read(org.apache.thrift.protocol.TProtocol prot, updateImageData_args struct) throws org.apache.thrift.TException {
        TTupleProtocol iprot = (TTupleProtocol) prot;
        BitSet incoming = iprot.readBitSet(8);
        if (incoming.get(0)) {
          struct.name = iprot.readString();
          struct.setNameIsSet(true);
        }
        if (incoming.get(1)) {
          struct.newName = iprot.readString();
          struct.setNewNameIsSet(true);
        }
        if (incoming.get(2)) {
          struct.license = iprot.readBool();
          struct.setLicenseIsSet(true);
        }
        if (incoming.get(3)) {
          struct.internet = iprot.readBool();
          struct.setInternetIsSet(true);
        }
        if (incoming.get(4)) {
          struct.ram = iprot.readI64();
          struct.setRamIsSet(true);
        }
        if (incoming.get(5)) {
          struct.cpu = iprot.readI64();
          struct.setCpuIsSet(true);
        }
        if (incoming.get(6)) {
          struct.id = iprot.readString();
          struct.setIdIsSet(true);
        }
        if (incoming.get(7)) {
          struct.version = iprot.readString();
          struct.setVersionIsSet(true);
        }
      }
    }

  }

  public static class updateImageData_result implements org.apache.thrift.TBase<updateImageData_result, updateImageData_result._Fields>, java.io.Serializable, Cloneable, Comparable<updateImageData_result>   {
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateImageData_result");

    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);

    private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
    static {
      schemes.put(StandardScheme.class, new updateImageData_resultStandardSchemeFactory());
      schemes.put(TupleScheme.class, new updateImageData_resultTupleSchemeFactory());
    }

    public boolean success; // required

    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
      SUCCESS((short)0, "success");

      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();

      static {
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
          byName.put(field.getFieldName(), field);
        }
      }

      /**
       * Find the _Fields constant that matches fieldId, or null if its not found.
       */
      public static _Fields findByThriftId(int fieldId) {
        switch(fieldId) {
          case 0: // SUCCESS
            return SUCCESS;
          default:
            return null;
        }
      }

      /**
       * Find the _Fields constant that matches fieldId, throwing an exception
       * if it is not found.
       */
      public static _Fields findByThriftIdOrThrow(int fieldId) {
        _Fields fields = findByThriftId(fieldId);
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
        return fields;
      }

      /**
       * Find the _Fields constant that matches name, or null if its not found.
       */
      public static _Fields findByName(String name) {
        return byName.get(name);
      }

      private final short _thriftId;
      private final String _fieldName;

      _Fields(short thriftId, String fieldName) {
        _thriftId = thriftId;
        _fieldName = fieldName;
      }

      public short getThriftFieldId() {
        return _thriftId;
      }

      public String getFieldName() {
        return _fieldName;
      }
    }

    // isset id assignments
    private static final int __SUCCESS_ISSET_ID = 0;
    private byte __isset_bitfield = 0;
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
    static {
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
      metaDataMap = Collections.unmodifiableMap(tmpMap);
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateImageData_result.class, metaDataMap);
    }

    public updateImageData_result() {
    }

    public updateImageData_result(
      boolean success)
    {
      this();
      this.success = success;
      setSuccessIsSet(true);
    }

    /**
     * Performs a deep copy on <i>other</i>.
     */
    public updateImageData_result(updateImageData_result other) {
      __isset_bitfield = other.__isset_bitfield;
      this.success = other.success;
    }

    public updateImageData_result deepCopy() {
      return new updateImageData_result(this);
    }

    @Override
    public void clear() {
      setSuccessIsSet(false);
      this.success = false;
    }

    public boolean isSuccess() {
      return this.success;
    }

    public updateImageData_result setSuccess(boolean success) {
      this.success = success;
      setSuccessIsSet(true);
      return this;
    }

    public void unsetSuccess() {
      __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
    }

    /** Returns true if field success is set (has been assigned a value) and false otherwise */
    public boolean isSetSuccess() {
      return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
    }

    public void setSuccessIsSet(boolean value) {
      __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
    }

    public void setFieldValue(_Fields field, Object value) {
      switch (field) {
      case SUCCESS:
        if (value == null) {
          unsetSuccess();
        } else {
          setSuccess((Boolean)value);
        }
        break;

      }
    }

    public Object getFieldValue(_Fields field) {
      switch (field) {
      case SUCCESS:
        return Boolean.valueOf(isSuccess());

      }
      throw new IllegalStateException();
    }

    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
    public boolean isSet(_Fields field) {
      if (field == null) {
        throw new IllegalArgumentException();
      }

      switch (field) {
      case SUCCESS:
        return isSetSuccess();
      }
      throw new IllegalStateException();
    }

    @Override
    public boolean equals(Object that) {
      if (that == null)
        return false;
      if (that instanceof updateImageData_result)
        return this.equals((updateImageData_result)that);
      return false;
    }

    public boolean equals(updateImageData_result that) {
      if (that == null)
        return false;

      boolean this_present_success = true;
      boolean that_present_success = true;
      if (this_present_success || that_present_success) {
        if (!(this_present_success && that_present_success))
          return false;
        if (this.success != that.success)
          return false;
      }

      return true;
    }

    @Override
    public int hashCode() {
      return 0;
    }

    @Override
    public int compareTo(updateImageData_result other) {
      if (!getClass().equals(other.getClass())) {
        return getClass().getName().compareTo(other.getClass().getName());
      }

      int lastComparison = 0;

      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
      if (lastComparison != 0) {
        return lastComparison;
      }
      if (isSetSuccess()) {
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
        if (lastComparison != 0) {
          return lastComparison;
        }
      }
      return 0;
    }

    public _Fields fieldForId(int fieldId) {
      return _Fields.findByThriftId(fieldId);
    }

    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
      schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
    }

    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
      schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
      }

    @Override
    public String toString() {
      StringBuilder sb = new StringBuilder("updateImageData_result(");
      boolean first = true;

      sb.append("success:");
      sb.append(this.success);
      first = false;
      sb.append(")");
      return sb.toString();
    }

    public void validate() throws org.apache.thrift.TException {
      // check for required fields
      // check for sub-struct validity
    }

    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
      try {
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
      } catch (org.apache.thrift.TException te) {
        throw new java.io.IOException(te);
      }
    }

    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
      try {
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
        __isset_bitfield = 0;
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
      } catch (org.apache.thrift.TException te) {
        throw new java.io.IOException(te);
      }
    }

    private static class updateImageData_resultStandardSchemeFactory implements SchemeFactory {
      public updateImageData_resultStandardScheme getScheme() {
        return new updateImageData_resultStandardScheme();
      }
    }

    private static class updateImageData_resultStandardScheme extends StandardScheme<updateImageData_result> {

      public void read(org.apache.thrift.protocol.TProtocol iprot, updateImageData_result struct) throws org.apache.thrift.TException {
        org.apache.thrift.protocol.TField schemeField;
        iprot.readStructBegin();
        while (true)
        {
          schemeField = iprot.readFieldBegin();
          if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
            break;
          }
          switch (schemeField.id) {
            case 0: // SUCCESS
              if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) {
                struct.success = iprot.readBool();
                struct.setSuccessIsSet(true);
              } else { 
                org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
              }
              break;
            default:
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
          }
          iprot.readFieldEnd();
        }
        iprot.readStructEnd();

        // check for required fields of primitive type, which can't be checked in the validate method
        struct.validate();
      }

      public void write(org.apache.thrift.protocol.TProtocol oprot, updateImageData_result struct) throws org.apache.thrift.TException {
        struct.validate();

        oprot.writeStructBegin(STRUCT_DESC);
        if (struct.isSetSuccess()) {
          oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
          oprot.writeBool(struct.success);
          oprot.writeFieldEnd();
        }
        oprot.writeFieldStop();
        oprot.writeStructEnd();
      }

    }

    private static class updateImageData_resultTupleSchemeFactory implements SchemeFactory {
      public updateImageData_resultTupleScheme getScheme() {
        return new updateImageData_resultTupleScheme();
      }
    }

    private static class updateImageData_resultTupleScheme extends TupleScheme<updateImageData_result> {

      @Override
      public void write(org.apache.thrift.protocol.TProtocol prot, updateImageData_result struct) throws org.apache.thrift.TException {
        TTupleProtocol oprot = (TTupleProtocol) prot;
        BitSet optionals = new BitSet();
        if (struct.isSetSuccess()) {
          optionals.set(0);
        }
        oprot.writeBitSet(optionals, 1);
        if (struct.isSetSuccess()) {
          oprot.writeBool(struct.success);
        }
      }

      @Override
      public void read(org.apache.thrift.protocol.TProtocol prot, updateImageData_result struct) throws org.apache.thrift.TException {
        TTupleProtocol iprot = (TTupleProtocol) prot;
        BitSet incoming = iprot.readBitSet(1);
        if (incoming.get(0)) {
          struct.success = iprot.readBool();
          struct.setSuccessIsSet(true);
        }
      }
    }

  }

  public static class getLectureData_args implements org.apache.thrift.TBase<getLectureData_args, getLectureData_args._Fields>, java.io.Serializable, Cloneable, Comparable<getLectureData_args>   {
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLectureData_args");

    private static final org.apache.thrift.protocol.TField LECTURENAME_FIELD_DESC = new org.apache.thrift.protocol.TField("lecturename", org.apache.thrift.protocol.TType.STRING, (short)-1);

    private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
    static {
      schemes.put(StandardScheme.class, new getLectureData_argsStandardSchemeFactory());
      schemes.put(TupleScheme.class, new getLectureData_argsTupleSchemeFactory());
    }

    public String lecturename; // required

    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
      LECTURENAME((short)-1, "lecturename");

      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();

      static {
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
          byName.put(field.getFieldName(), field);
        }
      }

      /**
       * Find the _Fields constant that matches fieldId, or null if its not found.
       */
      public static _Fields findByThriftId(int fieldId) {
        switch(fieldId) {
          case -1: // LECTURENAME
            return LECTURENAME;
          default:
            return null;
        }
      }

      /**
       * Find the _Fields constant that matches fieldId, throwing an exception
       * if it is not found.
       */
      public static _Fields findByThriftIdOrThrow(int fieldId) {
        _Fields fields = findByThriftId(fieldId);
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
        return fields;
      }

      /**
       * Find the _Fields constant that matches name, or null if its not found.
       */
      public static _Fields findByName(String name) {
        return byName.get(name);
      }

      private final short _thriftId;
      private final String _fieldName;

      _Fields(short thriftId, String fieldName) {
        _thriftId = thriftId;
        _fieldName = fieldName;
      }

      public short getThriftFieldId() {
        return _thriftId;
      }

      public String getFieldName() {
        return _fieldName;
      }
    }

    // isset id assignments
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
    static {
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
      tmpMap.put(_Fields.LECTURENAME, new org.apache.thrift.meta_data.FieldMetaData("lecturename", org.apache.thrift.TFieldRequirementType.DEFAULT, 
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
      metaDataMap = Collections.unmodifiableMap(tmpMap);
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLectureData_args.class, metaDataMap);
    }

    public getLectureData_args() {
    }

    public getLectureData_args(
      String lecturename)
    {
      this();
      this.lecturename = lecturename;
    }

    /**
     * Performs a deep copy on <i>other</i>.
     */
    public getLectureData_args(getLectureData_args other) {
      if (other.isSetLecturename()) {
        this.lecturename = other.lecturename;
      }
    }

    public getLectureData_args deepCopy() {
      return new getLectureData_args(this);
    }

    @Override
    public void clear() {
      this.lecturename = null;
    }

    public String getLecturename() {
      return this.lecturename;
    }

    public getLectureData_args setLecturename(String lecturename) {
      this.lecturename = lecturename;
      return this;
    }

    public void unsetLecturename() {
      this.lecturename = null;
    }

    /** Returns true if field lecturename is set (has been assigned a value) and false otherwise */
    public boolean isSetLecturename() {
      return this.lecturename != null;
    }

    public void setLecturenameIsSet(boolean value) {
      if (!value) {
        this.lecturename = null;
      }
    }

    public void setFieldValue(_Fields field, Object value) {
      switch (field) {
      case LECTURENAME:
        if (value == null) {
          unsetLecturename();
        } else {
          setLecturename((String)value);
        }
        break;

      }
    }

    public Object getFieldValue(_Fields field) {
      switch (field) {
      case LECTURENAME:
        return getLecturename();

      }
      throw new IllegalStateException();
    }

    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
    public boolean isSet(_Fields field) {
      if (field == null) {
        throw new IllegalArgumentException();
      }

      switch (field) {
      case LECTURENAME:
        return isSetLecturename();
      }
      throw new IllegalStateException();
    }

    @Override
    public boolean equals(Object that) {
      if (that == null)
        return false;
      if (that instanceof getLectureData_args)
        return this.equals((getLectureData_args)that);
      return false;
    }

    public boolean equals(getLectureData_args that) {
      if (that == null)
        return false;

      boolean this_present_lecturename = true && this.isSetLecturename();
      boolean that_present_lecturename = true && that.isSetLecturename();
      if (this_present_lecturename || that_present_lecturename) {
        if (!(this_present_lecturename && that_present_lecturename))
          return false;
        if (!this.lecturename.equals(that.lecturename))
          return false;
      }

      return true;
    }

    @Override
    public int hashCode() {
      return 0;
    }

    @Override
    public int compareTo(getLectureData_args other) {
      if (!getClass().equals(other.getClass())) {
        return getClass().getName().compareTo(other.getClass().getName());
      }

      int lastComparison = 0;

      lastComparison = Boolean.valueOf(isSetLecturename()).compareTo(other.isSetLecturename());
      if (lastComparison != 0) {
        return lastComparison;
      }
      if (isSetLecturename()) {
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lecturename, other.lecturename);
        if (lastComparison != 0) {
          return lastComparison;
        }
      }
      return 0;
    }

    public _Fields fieldForId(int fieldId) {
      return _Fields.findByThriftId(fieldId);
    }

    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
      schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
    }

    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
      schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
    }

    @Override
    public String toString() {
      StringBuilder sb = new StringBuilder("getLectureData_args(");
      boolean first = true;

      sb.append("lecturename:");
      if (this.lecturename == null) {
        sb.append("null");
      } else {
        sb.append(this.lecturename);
      }
      first = false;
      sb.append(")");
      return sb.toString();
    }

    public void validate() throws org.apache.thrift.TException {
      // check for required fields
      // check for sub-struct validity
    }

    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
      try {
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
      } catch (org.apache.thrift.TException te) {
        throw new java.io.IOException(te);
      }
    }

    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
      try {
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
      } catch (org.apache.thrift.TException te) {
        throw new java.io.IOException(te);
      }
    }

    private static class getLectureData_argsStandardSchemeFactory implements SchemeFactory {
      public getLectureData_argsStandardScheme getScheme() {
        return new getLectureData_argsStandardScheme();
      }
    }

    private static class getLectureData_argsStandardScheme extends StandardScheme<getLectureData_args> {

      public void read(org.apache.thrift.protocol.TProtocol iprot, getLectureData_args struct) throws org.apache.thrift.TException {
        org.apache.thrift.protocol.TField schemeField;
        iprot.readStructBegin();
        while (true)
        {
          schemeField = iprot.readFieldBegin();
          if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
            break;
          }
          switch (schemeField.id) {
            case -1: // LECTURENAME
              if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
                struct.lecturename = iprot.readString();
                struct.setLecturenameIsSet(true);
              } else { 
                org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
              }
              break;
            default:
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
          }
          iprot.readFieldEnd();
        }
        iprot.readStructEnd();

        // check for required fields of primitive type, which can't be checked in the validate method
        struct.validate();
      }

      public void write(org.apache.thrift.protocol.TProtocol oprot, getLectureData_args struct) throws org.apache.thrift.TException {
        struct.validate();

        oprot.writeStructBegin(STRUCT_DESC);
        if (struct.lecturename != null) {
          oprot.writeFieldBegin(LECTURENAME_FIELD_DESC);
          oprot.writeString(struct.lecturename);
          oprot.writeFieldEnd();
        }
        oprot.writeFieldStop();
        oprot.writeStructEnd();
      }

    }

    private static class getLectureData_argsTupleSchemeFactory implements SchemeFactory {
      public getLectureData_argsTupleScheme getScheme() {
        return new getLectureData_argsTupleScheme();
      }
    }

    private static class getLectureData_argsTupleScheme extends TupleScheme<getLectureData_args> {

      @Override
      public void write(org.apache.thrift.protocol.TProtocol prot, getLectureData_args struct) throws org.apache.thrift.TException {
        TTupleProtocol oprot = (TTupleProtocol) prot;
        BitSet optionals = new BitSet();
        if (struct.isSetLecturename()) {
          optionals.set(0);
        }
        oprot.writeBitSet(optionals, 1);
        if (struct.isSetLecturename()) {
          oprot.writeString(struct.lecturename);
        }
      }

      @Override
      public void read(org.apache.thrift.protocol.TProtocol prot, getLectureData_args struct) throws org.apache.thrift.TException {
        TTupleProtocol iprot = (TTupleProtocol) prot;
        BitSet incoming = iprot.readBitSet(1);
        if (incoming.get(0)) {
          struct.lecturename = iprot.readString();
          struct.setLecturenameIsSet(true);
        }
      }
    }

  }

  public static class getLectureData_result implements org.apache.thrift.TBase<getLectureData_result, getLectureData_result._Fields>, java.io.Serializable, Cloneable, Comparable<getLectureData_result>   {
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLectureData_result");

    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0);

    private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
    static {
      schemes.put(StandardScheme.class, new getLectureData_resultStandardSchemeFactory());
      schemes.put(TupleScheme.class, new getLectureData_resultTupleSchemeFactory());
    }

    public Map<String,String> success; // required

    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
      SUCCESS((short)0, "success");

      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();

      static {
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
          byName.put(field.getFieldName(), field);
        }
      }

      /**
       * Find the _Fields constant that matches fieldId, or null if its not found.
       */
      public static _Fields findByThriftId(int fieldId) {
        switch(fieldId) {
          case 0: // SUCCESS
            return SUCCESS;
          default:
            return null;
        }
      }

      /**
       * Find the _Fields constant that matches fieldId, throwing an exception
       * if it is not found.
       */
      public static _Fields findByThriftIdOrThrow(int fieldId) {
        _Fields fields = findByThriftId(fieldId);
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
        return fields;
      }

      /**
       * Find the _Fields constant that matches name, or null if its not found.
       */
      public static _Fields findByName(String name) {
        return byName.get(name);
      }

      private final short _thriftId;
      private final String _fieldName;

      _Fields(short thriftId, String fieldName) {
        _thriftId = thriftId;
        _fieldName = fieldName;
      }

      public short getThriftFieldId() {
        return _thriftId;
      }

      public String getFieldName() {
        return _fieldName;
      }
    }

    // isset id assignments
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
    static {
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), 
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
      metaDataMap = Collections.unmodifiableMap(tmpMap);
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLectureData_result.class, metaDataMap);
    }

    public getLectureData_result() {
    }

    public getLectureData_result(
      Map<String,String> success)
    {
      this();
      this.success = success;
    }

    /**
     * Performs a deep copy on <i>other</i>.
     */
    public getLectureData_result(getLectureData_result other) {
      if (other.isSetSuccess()) {
        Map<String,String> __this__success = new HashMap<String,String>(other.success);
        this.success = __this__success;
      }
    }

    public getLectureData_result deepCopy() {
      return new getLectureData_result(this);
    }

    @Override
    public void clear() {
      this.success = null;
    }

    public int getSuccessSize() {
      return (this.success == null) ? 0 : this.success.size();
    }

    public void putToSuccess(String key, String val) {
      if (this.success == null) {
        this.success = new HashMap<String,String>();
      }
      this.success.put(key, val);
    }

    public Map<String,String> getSuccess() {
      return this.success;
    }

    public getLectureData_result setSuccess(Map<String,String> success) {
      this.success = success;
      return this;
    }

    public void unsetSuccess() {
      this.success = null;
    }

    /** Returns true if field success is set (has been assigned a value) and false otherwise */
    public boolean isSetSuccess() {
      return this.success != null;
    }

    public void setSuccessIsSet(boolean value) {
      if (!value) {
        this.success = null;
      }
    }

    public void setFieldValue(_Fields field, Object value) {
      switch (field) {
      case SUCCESS:
        if (value == null) {
          unsetSuccess();
        } else {
          setSuccess((Map<String,String>)value);
        }
        break;

      }
    }

    public Object getFieldValue(_Fields field) {
      switch (field) {
      case SUCCESS:
        return getSuccess();

      }
      throw new IllegalStateException();
    }

    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
    public boolean isSet(_Fields field) {
      if (field == null) {
        throw new IllegalArgumentException();
      }

      switch (field) {
      case SUCCESS:
        return isSetSuccess();
      }
      throw new IllegalStateException();
    }

    @Override
    public boolean equals(Object that) {
      if (that == null)
        return false;
      if (that instanceof getLectureData_result)
        return this.equals((getLectureData_result)that);
      return false;
    }

    public boolean equals(getLectureData_result that) {
      if (that == null)
        return false;

      boolean this_present_success = true && this.isSetSuccess();
      boolean that_present_success = true && that.isSetSuccess();
      if (this_present_success || that_present_success) {
        if (!(this_present_success && that_present_success))
          return false;
        if (!this.success.equals(that.success))
          return false;
      }

      return true;
    }

    @Override
    public int hashCode() {
      return 0;
    }

    @Override
    public int compareTo(getLectureData_result other) {
      if (!getClass().equals(other.getClass())) {
        return getClass().getName().compareTo(other.getClass().getName());
      }

      int lastComparison = 0;

      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
      if (lastComparison != 0) {
        return lastComparison;
      }
      if (isSetSuccess()) {
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
        if (lastComparison != 0) {
          return lastComparison;
        }
      }
      return 0;
    }

    public _Fields fieldForId(int fieldId) {
      return _Fields.findByThriftId(fieldId);
    }

    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
      schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
    }

    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
      schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
      }

    @Override
    public String toString() {
      StringBuilder sb = new StringBuilder("getLectureData_result(");
      boolean first = true;

      sb.append("success:");
      if (this.success == null) {
        sb.append("null");
      } else {
        sb.append(this.success);
      }
      first = false;
      sb.append(")");
      return sb.toString();
    }

    public void validate() throws org.apache.thrift.TException {
      // check for required fields
      // check for sub-struct validity
    }

    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
      try {
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
      } catch (org.apache.thrift.TException te) {
        throw new java.io.IOException(te);
      }
    }

    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
      try {
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
      } catch (org.apache.thrift.TException te) {
        throw new java.io.IOException(te);
      }
    }

    private static class getLectureData_resultStandardSchemeFactory implements SchemeFactory {
      public getLectureData_resultStandardScheme getScheme() {
        return new getLectureData_resultStandardScheme();
      }
    }

    private static class getLectureData_resultStandardScheme extends StandardScheme<getLectureData_result> {

      public void read(org.apache.thrift.protocol.TProtocol iprot, getLectureData_result struct) throws org.apache.thrift.TException {
        org.apache.thrift.protocol.TField schemeField;
        iprot.readStructBegin();
        while (true)
        {
          schemeField = iprot.readFieldBegin();
          if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
            break;
          }
          switch (schemeField.id) {
            case 0: // SUCCESS
              if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
                {
                  org.apache.thrift.protocol.TMap _map36 = iprot.readMapBegin();
                  struct.success = new HashMap<String,String>(2*_map36.size);
                  for (int _i37 = 0; _i37 < _map36.size; ++_i37)
                  {
                    String _key38;
                    String _val39;
                    _key38 = iprot.readString();
                    _val39 = iprot.readString();
                    struct.success.put(_key38, _val39);
                  }
                  iprot.readMapEnd();
                }
                struct.setSuccessIsSet(true);
              } else { 
                org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
              }
              break;
            default:
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
          }
          iprot.readFieldEnd();
        }
        iprot.readStructEnd();

        // check for required fields of primitive type, which can't be checked in the validate method
        struct.validate();
      }

      public void write(org.apache.thrift.protocol.TProtocol oprot, getLectureData_result struct) throws org.apache.thrift.TException {
        struct.validate();

        oprot.writeStructBegin(STRUCT_DESC);
        if (struct.success != null) {
          oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
          {
            oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.success.size()));
            for (Map.Entry<String, String> _iter40 : struct.success.entrySet())
            {
              oprot.writeString(_iter40.getKey());
              oprot.writeString(_iter40.getValue());
            }
            oprot.writeMapEnd();
          }
          oprot.writeFieldEnd();
        }
        oprot.writeFieldStop();
        oprot.writeStructEnd();
      }

    }

    private static class getLectureData_resultTupleSchemeFactory implements SchemeFactory {
      public getLectureData_resultTupleScheme getScheme() {
        return new getLectureData_resultTupleScheme();
      }
    }

    private static class getLectureData_resultTupleScheme extends TupleScheme<getLectureData_result> {

      @Override
      public void write(org.apache.thrift.protocol.TProtocol prot, getLectureData_result struct) throws org.apache.thrift.TException {
        TTupleProtocol oprot = (TTupleProtocol) prot;
        BitSet optionals = new BitSet();
        if (struct.isSetSuccess()) {
          optionals.set(0);
        }
        oprot.writeBitSet(optionals, 1);
        if (struct.isSetSuccess()) {
          {
            oprot.writeI32(struct.success.size());
            for (Map.Entry<String, String> _iter41 : struct.success.entrySet())
            {
              oprot.writeString(_iter41.getKey());
              oprot.writeString(_iter41.getValue());
            }
          }
        }
      }

      @Override
      public void read(org.apache.thrift.protocol.TProtocol prot, getLectureData_result struct) throws org.apache.thrift.TException {
        TTupleProtocol iprot = (TTupleProtocol) prot;
        BitSet incoming = iprot.readBitSet(1);
        if (incoming.get(0)) {
          {
            org.apache.thrift.protocol.TMap _map42 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32());
            struct.success = new HashMap<String,String>(2*_map42.size);
            for (int _i43 = 0; _i43 < _map42.size; ++_i43)
            {
              String _key44;
              String _val45;
              _key44 = iprot.readString();
              _val45 = iprot.readString();
              struct.success.put(_key44, _val45);
            }
          }
          struct.setSuccessIsSet(true);
        }
      }
    }

  }

}